@bigduu/lotus 2026.4.28 → 2026.4.30

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 (102) hide show
  1. package/dist/assets/App-DCXI8jTD.js +248 -0
  2. package/dist/assets/_baseUniq-JxvxITJ4.js +1 -0
  3. package/dist/assets/architectureDiagram-Q4EWVU46-BtLEHHTC.js +36 -0
  4. package/dist/assets/blockDiagram-DXYQGD6D-VCIl5oVL.js +132 -0
  5. package/dist/assets/c4Diagram-AHTNJAMY-sxcrRtSC.js +10 -0
  6. package/dist/assets/{chunk-4BX2VUAB-BQS5VpDJ.js → chunk-4BX2VUAB-cdpbCefI.js} +1 -1
  7. package/dist/assets/chunk-4TB4RGXK-6y4jkX8O.js +206 -0
  8. package/dist/assets/{chunk-55IACEB6-DDBTvfeq.js → chunk-55IACEB6-zGTUbgou.js} +1 -1
  9. package/dist/assets/{chunk-QN33PNHL-DXRkgd3W.js → chunk-EDXVE4YY-CPKsbfnW.js} +1 -1
  10. package/dist/assets/{chunk-FMBD7UC4-DyekHBM9.js → chunk-FMBD7UC4-u1fsHgLk.js} +1 -1
  11. package/dist/assets/chunk-OYMX7WX6-B_juGEzU.js +231 -0
  12. package/dist/assets/{chunk-QZHKN3VN-BxdDkaqA.js → chunk-QZHKN3VN-Cziuusiz.js} +1 -1
  13. package/dist/assets/chunk-YZCP3GAM-SnPgbijx.js +1 -0
  14. package/dist/assets/classDiagram-6PBFFD2Q-8WbR2T8d.js +1 -0
  15. package/dist/assets/classDiagram-v2-HSJHXN6E-8WbR2T8d.js +1 -0
  16. package/dist/assets/clone-BzHXtWgJ.js +1 -0
  17. package/dist/assets/{cose-bilkent-S5V4N54A-C_pFTYgk.js → cose-bilkent-S5V4N54A-DP12PpvR.js} +1 -1
  18. package/dist/assets/cytoscape.esm-BiciSPf8.js +331 -0
  19. package/dist/assets/dagre-KV5264BT-BWrJEOJE.js +4 -0
  20. package/dist/assets/diagram-5BDNPKRD-B3Ag_nwx.js +10 -0
  21. package/dist/assets/diagram-G4DWMVQ6-CU5AAMtk.js +24 -0
  22. package/dist/assets/diagram-MMDJMWI5-0jeeksm5.js +43 -0
  23. package/dist/assets/diagram-TYMM5635-B8Te0NTK.js +24 -0
  24. package/dist/assets/erDiagram-SMLLAGMA-DgZehpcF.js +85 -0
  25. package/dist/assets/flowDiagram-DWJPFMVM-DME4sy3r.js +162 -0
  26. package/dist/assets/ganttDiagram-T4ZO3ILL-4VUoDKDN.js +292 -0
  27. package/dist/assets/gitGraphDiagram-UUTBAWPF-M9eA0knu.js +106 -0
  28. package/dist/assets/graph-Dl52eM4Z.js +1 -0
  29. package/dist/assets/index-BAibvIVz.js +1 -0
  30. package/dist/assets/index-BNcuFl0J.js +1 -0
  31. package/dist/assets/index-C9mV36Y0.js +1 -0
  32. package/dist/assets/index-v1C2DQLr.js +1 -0
  33. package/dist/assets/{index-CUKVUr8s.js → index-yMJRRs89.js} +1 -1
  34. package/dist/assets/{index.es-DdtT3adr.js → index.es-DYgOq-7b.js} +1 -1
  35. package/dist/assets/infoDiagram-42DDH7IO-DSE-8cVU.js +2 -0
  36. package/dist/assets/ishikawaDiagram-UXIWVN3A-CZdup7Ia.js +70 -0
  37. package/dist/assets/journeyDiagram-VCZTEJTY-DApltPSo.js +139 -0
  38. package/dist/assets/{kanban-definition-3W4ZIXB7-DaQyoaQ-.js → kanban-definition-6JOO6SKY-ClF33MZ9.js} +8 -8
  39. package/dist/assets/katex-DkKDou_j.js +257 -0
  40. package/dist/assets/layout-Cc6oxhrd.js +1 -0
  41. package/dist/assets/{main-DTO0Nb-V.js → main-BgGBpmTu.js} +5 -5
  42. package/dist/assets/min-CRXMcNks.js +1 -0
  43. package/dist/assets/mindmap-definition-QFDTVHPH-Cp5dCq5F.js +96 -0
  44. package/dist/assets/pieDiagram-DEJITSTG-xwiGZjCh.js +30 -0
  45. package/dist/assets/{quadrantDiagram-AYHSOK5B-BxLvBNZc.js → quadrantDiagram-34T5L4WZ-DYFzLdJ_.js} +1 -1
  46. package/dist/assets/requirementDiagram-MS252O5E-CcTppyOC.js +84 -0
  47. package/dist/assets/{sankeyDiagram-TZEHDZUN-CDuaBdM7.js → sankeyDiagram-XADWPNL6-BidnGUTn.js} +1 -1
  48. package/dist/assets/sequenceDiagram-FGHM5R23-BGNLJ-kB.js +157 -0
  49. package/dist/assets/stateDiagram-FHFEXIEX-DaT9haW6.js +1 -0
  50. package/dist/assets/stateDiagram-v2-QKLJ7IA2-CIjRWULt.js +1 -0
  51. package/dist/assets/timeline-definition-GMOUNBTQ-B7UYx32z.js +120 -0
  52. package/dist/assets/{vendor-antd-DzhFcYgt.js → vendor-antd-Dvkx9eba.js} +1 -1
  53. package/dist/assets/{vendor-charts-BvOlsian.js → vendor-charts-DHCOhRb3.js} +1 -1
  54. package/dist/assets/{vendor-markdown-DYfLXXRA.js → vendor-markdown-DrUBuQ-c.js} +1 -1
  55. package/dist/assets/vendor-mermaid-BAz0MwVj.js +309 -0
  56. package/dist/assets/{vendor-pdf-CBvfEKBn.js → vendor-pdf-wx1tMujY.js} +4 -4
  57. package/dist/assets/vennDiagram-DHZGUBPP-DbgCCrwc.js +34 -0
  58. package/dist/assets/wardley-RL74JXVD-BeMJefeY.js +162 -0
  59. package/dist/assets/wardleyDiagram-NUSXRM2D-CfibirQl.js +20 -0
  60. package/dist/assets/xychartDiagram-5P7HB3ND-OkJekxIp.js +7 -0
  61. package/dist/index.html +3 -3
  62. package/package.json +3 -3
  63. package/dist/assets/App-BhEJNmXl.js +0 -247
  64. package/dist/assets/_basePickBy-CQxbmRut.js +0 -1
  65. package/dist/assets/_baseUniq-AfN8N44G.js +0 -1
  66. package/dist/assets/architectureDiagram-VXUJARFQ-b5ju5KOn.js +0 -36
  67. package/dist/assets/blockDiagram-VD42YOAC-CJZ9JC7A.js +0 -122
  68. package/dist/assets/c4Diagram-YG6GDRKO-zPXvbm1r.js +0 -10
  69. package/dist/assets/chunk-B4BG7PRW-DIX1hsaN.js +0 -165
  70. package/dist/assets/chunk-DI55MBZ5-CnR_JcZS.js +0 -220
  71. package/dist/assets/chunk-TZMSLE5B-6C2sedz2.js +0 -1
  72. package/dist/assets/classDiagram-2ON5EDUG-s0FTHA2r.js +0 -1
  73. package/dist/assets/classDiagram-v2-WZHVMYZB-s0FTHA2r.js +0 -1
  74. package/dist/assets/clone-D7s6jAMO.js +0 -1
  75. package/dist/assets/cytoscape.esm-BY7v1xhs.js +0 -331
  76. package/dist/assets/dagre-6UL2VRFP-CZufvh9X.js +0 -4
  77. package/dist/assets/diagram-PSM6KHXK-wHztSVlF.js +0 -24
  78. package/dist/assets/diagram-QEK2KX5R-DSPQM_i_.js +0 -43
  79. package/dist/assets/diagram-S2PKOQOG-r4X8riql.js +0 -24
  80. package/dist/assets/erDiagram-Q2GNP2WA-Lxy4qP7U.js +0 -60
  81. package/dist/assets/flowDiagram-NV44I4VS-Cnln4KZl.js +0 -162
  82. package/dist/assets/ganttDiagram-JELNMOA3-D8EVN47E.js +0 -267
  83. package/dist/assets/gitGraphDiagram-V2S2FVAM-D0f-vt5d.js +0 -65
  84. package/dist/assets/graph-BHQgv4fY.js +0 -1
  85. package/dist/assets/index-B3u0XLw6.js +0 -1
  86. package/dist/assets/index-B9rhKJTy.js +0 -1
  87. package/dist/assets/index-CYeT_vWc.js +0 -1
  88. package/dist/assets/index-DRKTke9V.js +0 -1
  89. package/dist/assets/infoDiagram-HS3SLOUP-DU3h9dF-.js +0 -2
  90. package/dist/assets/journeyDiagram-XKPGCS4Q-CBYV7J-a.js +0 -139
  91. package/dist/assets/katex-ChWnQ-fc.js +0 -261
  92. package/dist/assets/layout-ChFZNADC.js +0 -1
  93. package/dist/assets/mindmap-definition-VGOIOE7T-Dd8rk7Wy.js +0 -68
  94. package/dist/assets/pieDiagram-ADFJNKIX-DMRijIH2.js +0 -30
  95. package/dist/assets/requirementDiagram-UZGBJVZJ-DGpPvRmv.js +0 -64
  96. package/dist/assets/sequenceDiagram-WL72ISMW-vmIEcx_8.js +0 -145
  97. package/dist/assets/stateDiagram-FKZM4ZOC-hx8zwjxY.js +0 -1
  98. package/dist/assets/stateDiagram-v2-4FDKWEC3-D-E3Vh0S.js +0 -1
  99. package/dist/assets/timeline-definition-IT6M3QCI-DQvTmToF.js +0 -61
  100. package/dist/assets/treemap-GDKQZRPO-COsTlA-l.js +0 -160
  101. package/dist/assets/vendor-mermaid-CQXqUd1Z.js +0 -256
  102. package/dist/assets/xychartDiagram-PRI3JC2R-BoJPfqrl.js +0 -7
@@ -1,139 +0,0 @@
1
- import{a as gt,g as lt,f as mt,d as xt}from"./chunk-TZMSLE5B-6C2sedz2.js";import{g as kt}from"./chunk-FMBD7UC4-DyekHBM9.js";import{g as _t,s as vt,a as bt,b as wt,q as Tt,p as St,_ as n,c as R,d as G,e as $t,y as Mt}from"./vendor-mermaid-CQXqUd1Z.js";import{B as et}from"./vendor-charts-BvOlsian.js";import"./vendor-markdown-DYfLXXRA.js";import"./vendor-i18n-BNURlJ23.js";import"./vendor-antd-DzhFcYgt.js";var U=function(){var t=n(function(h,i,a,l){for(a=a||{},l=h.length;l--;a[h[l]]=i);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],c=[1,10],r=[1,11],f=[1,12],u=[1,13],d=[1,14],g={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:n(function(i,a,l,y,p,o,b){var k=o.length-1;switch(p){case 1:return o[k-1];case 2:this.$=[];break;case 3:o[k-1].push(o[k]),this.$=o[k-1];break;case 4:case 5:this.$=o[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(o[k].substr(6)),this.$=o[k].substr(6);break;case 9:this.$=o[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=o[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(o[k].substr(8)),this.$=o[k].substr(8);break;case 13:y.addTask(o[k-1],o[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:c,14:r,16:f,17:u,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:r,16:f,17:u,18:d},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:n(function(i,a){if(a.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=a,l}},"parseError"),parse:n(function(i){var a=this,l=[0],y=[],p=[null],o=[],b=this.table,k="",C=0,K=0,yt=2,Q=1,dt=o.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(i,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;o.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,p.length=p.length-w,o.length=o.length-w}n(pt,"popStack");function D(){var w;return w=y.pop()||_.lex()||Q,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=a.symbols_[w]||w),w}n(D,"lex");for(var v,A,T,q,F={},N,M,tt,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((v===null||typeof v>"u")&&(v=D()),T=b[A]&&b[A][v]),typeof T>"u"||!T.length||!T[0]){var X="";z=[];for(N in b[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
2
- `+_.showPosition()+`
3
- Expecting `+z.join(", ")+", got '"+(this.terminals_[v]||v)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(v==Q?"end of input":"'"+(this.terminals_[v]||v)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[v]||v,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+v);switch(T[0]){case 1:l.push(v),p.push(_.yytext),o.push(_.yylloc),l.push(T[1]),v=null,K=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=p[p.length-M],F._$={first_line:o[o.length-(M||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(M||1)].first_column,last_column:o[o.length-1].last_column},ft&&(F._$.range=[o[o.length-(M||1)].range[0],o[o.length-1].range[1]]),q=this.performAction.apply(F,[k,K,C,I.yy,T[1],p,o].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),p=p.slice(0,-1*M),o=o.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),p.push(F.$),o.push(F._$),tt=b[l[l.length-2]][l[l.length-1]],l.push(tt);break;case 3:return!0}}return!0},"parse")},m=function(){var h={EOF:1,parseError:n(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:n(function(i,a){return this.yy=a||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:n(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.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),i},"input"),unput:n(function(i){var a=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=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 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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(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:n(function(i){this.unput(this.match.slice(i))},"less"),pastInput:n(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:n(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:n(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
5
- `+a+"^"},"showPosition"),test_match:n(function(i,a){var l,y,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))),y=i[0].match(/(?:\r\n?|\n).*/g),y&&(this.yylineno+=y.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:y?y[y.length-1].length-y[y.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,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var o in p)this[o]=p[o];return!1}return!1},"test_match"),next:n(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,a,l,y;this._more||(this.yytext="",this.match="");for(var p=this._currentRules(),o=0;o<p.length;o++)if(l=this._input.match(this.rules[p[o]]),l&&(!a||l[0].length>a[0].length)){if(a=l,y=o,this.options.backtrack_lexer){if(i=this.test_match(l,p[o]),i!==!1)return i;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(i=this.test_match(a,p[y]),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:n(function(){var a=this.next();return a||this.lex()},"lex"),begin:n(function(a){this.conditionStack.push(a)},"begin"),popState:n(function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:n(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:n(function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:n(function(a){this.begin(a)},"pushState"),stateStackSize:n(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:n(function(a,l,y,p){switch(y){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return h}();g.lexer=m;function x(){this.yy={}}return n(x,"Parser"),x.prototype=g,g.Parser=x,new x}();U.parser=U;var Et=U,V="",Z=[],L=[],B=[],Ct=n(function(){Z.length=0,L.length=0,V="",B.length=0,Mt()},"clear"),Pt=n(function(t){V=t,Z.push(t)},"addSection"),It=n(function(){return Z},"getSections"),At=n(function(){let t=it();const e=100;let s=0;for(;!t&&s<e;)t=it(),s++;return L.push(...B),L},"getTasks"),Ft=n(function(){const t=[];return L.forEach(s=>{s.people&&t.push(...s.people)}),[...new Set(t)].sort()},"updateActors"),Vt=n(function(t,e){const s=e.substr(1).split(":");let c=0,r=[];s.length===1?(c=Number(s[0]),r=[]):(c=Number(s[0]),r=s[1].split(","));const f=r.map(d=>d.trim()),u={section:V,type:V,people:f,task:t,score:c};B.push(u)},"addTask"),Rt=n(function(t){const e={section:V,type:V,description:t,task:t,classes:[]};L.push(e)},"addTaskOrg"),it=n(function(){const t=n(function(s){return B[s].processed},"compileTask");let e=!0;for(const[s,c]of B.entries())t(s),e=e&&c.processed;return e},"compileTasks"),Lt=n(function(){return Ft()},"getActors"),rt={getConfig:n(()=>R().journey,"getConfig"),clear:Ct,setDiagramTitle:St,getDiagramTitle:Tt,setAccTitle:wt,getAccTitle:bt,setAccDescription:vt,getAccDescription:_t,addSection:Pt,getSections:It,getTasks:At,addTask:Vt,addTaskOrg:Rt,getActors:Lt},Bt=n(t=>`.label {
7
- font-family: ${t.fontFamily};
8
- color: ${t.textColor};
9
- }
10
- .mouth {
11
- stroke: #666;
12
- }
13
-
14
- line {
15
- stroke: ${t.textColor}
16
- }
17
-
18
- .legend {
19
- fill: ${t.textColor};
20
- font-family: ${t.fontFamily};
21
- }
22
-
23
- .label text {
24
- fill: #333;
25
- }
26
- .label {
27
- color: ${t.textColor}
28
- }
29
-
30
- .face {
31
- ${t.faceColor?`fill: ${t.faceColor}`:"fill: #FFF8DC"};
32
- stroke: #999;
33
- }
34
-
35
- .node rect,
36
- .node circle,
37
- .node ellipse,
38
- .node polygon,
39
- .node path {
40
- fill: ${t.mainBkg};
41
- stroke: ${t.nodeBorder};
42
- stroke-width: 1px;
43
- }
44
-
45
- .node .label {
46
- text-align: center;
47
- }
48
- .node.clickable {
49
- cursor: pointer;
50
- }
51
-
52
- .arrowheadPath {
53
- fill: ${t.arrowheadColor};
54
- }
55
-
56
- .edgePath .path {
57
- stroke: ${t.lineColor};
58
- stroke-width: 1.5px;
59
- }
60
-
61
- .flowchart-link {
62
- stroke: ${t.lineColor};
63
- fill: none;
64
- }
65
-
66
- .edgeLabel {
67
- background-color: ${t.edgeLabelBackground};
68
- rect {
69
- opacity: 0.5;
70
- }
71
- text-align: center;
72
- }
73
-
74
- .cluster rect {
75
- }
76
-
77
- .cluster text {
78
- fill: ${t.titleColor};
79
- }
80
-
81
- div.mermaidTooltip {
82
- position: absolute;
83
- text-align: center;
84
- max-width: 200px;
85
- padding: 2px;
86
- font-family: ${t.fontFamily};
87
- font-size: 12px;
88
- background: ${t.tertiaryColor};
89
- border: 1px solid ${t.border2};
90
- border-radius: 2px;
91
- pointer-events: none;
92
- z-index: 100;
93
- }
94
-
95
- .task-type-0, .section-type-0 {
96
- ${t.fillType0?`fill: ${t.fillType0}`:""};
97
- }
98
- .task-type-1, .section-type-1 {
99
- ${t.fillType0?`fill: ${t.fillType1}`:""};
100
- }
101
- .task-type-2, .section-type-2 {
102
- ${t.fillType0?`fill: ${t.fillType2}`:""};
103
- }
104
- .task-type-3, .section-type-3 {
105
- ${t.fillType0?`fill: ${t.fillType3}`:""};
106
- }
107
- .task-type-4, .section-type-4 {
108
- ${t.fillType0?`fill: ${t.fillType4}`:""};
109
- }
110
- .task-type-5, .section-type-5 {
111
- ${t.fillType0?`fill: ${t.fillType5}`:""};
112
- }
113
- .task-type-6, .section-type-6 {
114
- ${t.fillType0?`fill: ${t.fillType6}`:""};
115
- }
116
- .task-type-7, .section-type-7 {
117
- ${t.fillType0?`fill: ${t.fillType7}`:""};
118
- }
119
-
120
- .actor-0 {
121
- ${t.actor0?`fill: ${t.actor0}`:""};
122
- }
123
- .actor-1 {
124
- ${t.actor1?`fill: ${t.actor1}`:""};
125
- }
126
- .actor-2 {
127
- ${t.actor2?`fill: ${t.actor2}`:""};
128
- }
129
- .actor-3 {
130
- ${t.actor3?`fill: ${t.actor3}`:""};
131
- }
132
- .actor-4 {
133
- ${t.actor4?`fill: ${t.actor4}`:""};
134
- }
135
- .actor-5 {
136
- ${t.actor5?`fill: ${t.actor5}`:""};
137
- }
138
- ${kt()}
139
- `,"getStyles"),jt=Bt,J=n(function(t,e){return xt(t,e)},"drawRect"),Nt=n(function(t,e){const c=t.append("circle").attr("cx",e.cx).attr("cy",e.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),r=t.append("g");r.append("circle").attr("cx",e.cx-15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),r.append("circle").attr("cx",e.cx+15/3).attr("cy",e.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function f(g){const m=et().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+2)+")")}n(f,"smile");function u(g){const m=et().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);g.append("path").attr("class","mouth").attr("d",m).attr("transform","translate("+e.cx+","+(e.cy+7)+")")}n(u,"sad");function d(g){g.append("line").attr("class","mouth").attr("stroke",2).attr("x1",e.cx-5).attr("y1",e.cy+7).attr("x2",e.cx+5).attr("y2",e.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return n(d,"ambivalent"),e.score>3?f(r):e.score<3?u(r):d(r),c},"drawFace"),ot=n(function(t,e){const s=t.append("circle");return s.attr("cx",e.cx),s.attr("cy",e.cy),s.attr("class","actor-"+e.pos),s.attr("fill",e.fill),s.attr("stroke",e.stroke),s.attr("r",e.r),s.class!==void 0&&s.attr("class",s.class),e.title!==void 0&&s.append("title").text(e.title),s},"drawCircle"),ct=n(function(t,e){return mt(t,e)},"drawText"),zt=n(function(t,e){function s(r,f,u,d,g){return r+","+f+" "+(r+u)+","+f+" "+(r+u)+","+(f+d-g)+" "+(r+u-g*1.2)+","+(f+d)+" "+r+","+(f+d)}n(s,"genPoints");const c=t.append("polygon");c.attr("points",s(e.x,e.y,50,20,7)),c.attr("class","labelBox"),e.y=e.y+e.labelMargin,e.x=e.x+.5*e.labelMargin,ct(t,e)},"drawLabel"),Wt=n(function(t,e,s){const c=t.append("g"),r=lt();r.x=e.x,r.y=e.y,r.fill=e.fill,r.width=s.width*e.taskCount+s.diagramMarginX*(e.taskCount-1),r.height=s.height,r.class="journey-section section-type-"+e.num,r.rx=3,r.ry=3,J(c,r),ht(s)(e.text,c,r.x,r.y,r.width,r.height,{class:"journey-section section-type-"+e.num},s,e.colour)},"drawSection"),nt=-1,Ot=n(function(t,e,s){const c=e.x+s.width/2,r=t.append("g");nt++;const f=300+5*30;r.append("line").attr("id","task"+nt).attr("x1",c).attr("y1",e.y).attr("x2",c).attr("y2",f).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),Nt(r,{cx:c,cy:300+(5-e.score)*30,score:e.score});const u=lt();u.x=e.x,u.y=e.y,u.fill=e.fill,u.width=s.width,u.height=s.height,u.class="task task-type-"+e.num,u.rx=3,u.ry=3,J(r,u);let d=e.x+14;e.people.forEach(g=>{const m=e.actors[g].color,x={cx:d,cy:e.y,r:7,fill:m,stroke:"#000",title:g,pos:e.actors[g].position};ot(r,x),d+=10}),ht(s)(e.task,r,u.x,u.y,u.width,u.height,{class:"task"},s,e.colour)},"drawTask"),Yt=n(function(t,e){gt(t,e)},"drawBackgroundRect"),ht=function(){function t(r,f,u,d,g,m,x,h){const i=f.append("text").attr("x",u+g/2).attr("y",d+m/2+5).style("font-color",h).style("text-anchor","middle").text(r);c(i,x)}n(t,"byText");function e(r,f,u,d,g,m,x,h,i){const{taskFontSize:a,taskFontFamily:l}=h,y=r.split(/<br\s*\/?>/gi);for(let p=0;p<y.length;p++){const o=p*a-a*(y.length-1)/2,b=f.append("text").attr("x",u+g/2).attr("y",d).attr("fill",i).style("text-anchor","middle").style("font-size",a).style("font-family",l);b.append("tspan").attr("x",u+g/2).attr("dy",o).text(y[p]),b.attr("y",d+m/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),c(b,x)}}n(e,"byTspan");function s(r,f,u,d,g,m,x,h){const i=f.append("switch"),l=i.append("foreignObject").attr("x",u).attr("y",d).attr("width",g).attr("height",m).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(r),e(r,i,u,d,g,m,x,h),c(l,x)}n(s,"byFo");function c(r,f){for(const u in f)u in f&&r.attr(u,f[u])}return n(c,"_setTextAttrs"),function(r){return r.textPlacement==="fo"?s:r.textPlacement==="old"?t:e}}(),qt=n(function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),j={drawRect:J,drawCircle:ot,drawSection:Wt,drawText:ct,drawLabel:zt,drawTask:Ot,drawBackgroundRect:Yt,initGraphics:qt},Xt=n(function(t){Object.keys(t).forEach(function(s){$[s]=t[s]})},"setConf"),E={},W=0;function ut(t){const e=R().journey,s=e.maxLabelWidth;W=0;let c=60;Object.keys(E).forEach(r=>{const f=E[r].color,u={cx:20,cy:c,r:7,fill:f,stroke:"#000",pos:E[r].position};j.drawCircle(t,u);let d=t.append("text").attr("visibility","hidden").text(r);const g=d.node().getBoundingClientRect().width;d.remove();let m=[];if(g<=s)m=[r];else{const x=r.split(" ");let h="";d=t.append("text").attr("visibility","hidden"),x.forEach(i=>{const a=h?`${h} ${i}`:i;if(d.text(a),d.node().getBoundingClientRect().width>s){if(h&&m.push(h),h=i,d.text(i),d.node().getBoundingClientRect().width>s){let y="";for(const p of i)y+=p,d.text(y+"-"),d.node().getBoundingClientRect().width>s&&(m.push(y.slice(0,-1)+"-"),y=p);h=y}}else h=a}),h&&m.push(h),d.remove()}m.forEach((x,h)=>{const i={x:40,y:c+7+h*20,fill:"#666",text:x,textMargin:e.boxTextMargin??5},l=j.drawText(t,i).node().getBoundingClientRect().width;l>W&&l>e.leftMargin-l&&(W=l)}),c+=Math.max(20,m.length*20)})}n(ut,"drawActorLegend");var $=R().journey,P=0,Gt=n(function(t,e,s,c){const r=R(),f=r.journey.titleColor,u=r.journey.titleFontSize,d=r.journey.titleFontFamily,g=r.securityLevel;let m;g==="sandbox"&&(m=G("#i"+e));const x=g==="sandbox"?G(m.nodes()[0].contentDocument.body):G("body");S.init();const h=x.select("#"+e);j.initGraphics(h);const i=c.db.getTasks(),a=c.db.getDiagramTitle(),l=c.db.getActors();for(const C in E)delete E[C];let y=0;l.forEach(C=>{E[C]={color:$.actorColours[y%$.actorColours.length],position:y},y++}),ut(h),P=$.leftMargin+W,S.insert(0,0,P,Object.keys(E).length*50),Ht(h,i,0);const p=S.getBounds();a&&h.append("text").text(a).attr("x",P).attr("font-size",u).attr("font-weight","bold").attr("y",25).attr("fill",f).attr("font-family",d);const o=p.stopy-p.starty+2*$.diagramMarginY,b=P+p.stopx+2*$.diagramMarginX;$t(h,o,b,$.useMaxWidth),h.append("line").attr("x1",P).attr("y1",$.height*4).attr("x2",b-P-4).attr("y2",$.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#arrowhead)");const k=a?70:0;h.attr("viewBox",`${p.startx} -25 ${b} ${o+k}`),h.attr("preserveAspectRatio","xMinYMin meet"),h.attr("height",o+k+25)},"draw"),S={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:n(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:n(function(t,e,s,c){t[e]===void 0?t[e]=s:t[e]=c(s,t[e])},"updateVal"),updateBounds:n(function(t,e,s,c){const r=R().journey,f=this;let u=0;function d(g){return n(function(x){u++;const h=f.sequenceItems.length-u+1;f.updateVal(x,"starty",e-h*r.boxMargin,Math.min),f.updateVal(x,"stopy",c+h*r.boxMargin,Math.max),f.updateVal(S.data,"startx",t-h*r.boxMargin,Math.min),f.updateVal(S.data,"stopx",s+h*r.boxMargin,Math.max),g!=="activation"&&(f.updateVal(x,"startx",t-h*r.boxMargin,Math.min),f.updateVal(x,"stopx",s+h*r.boxMargin,Math.max),f.updateVal(S.data,"starty",e-h*r.boxMargin,Math.min),f.updateVal(S.data,"stopy",c+h*r.boxMargin,Math.max))},"updateItemBounds")}n(d,"updateFn"),this.sequenceItems.forEach(d())},"updateBounds"),insert:n(function(t,e,s,c){const r=Math.min(t,s),f=Math.max(t,s),u=Math.min(e,c),d=Math.max(e,c);this.updateVal(S.data,"startx",r,Math.min),this.updateVal(S.data,"starty",u,Math.min),this.updateVal(S.data,"stopx",f,Math.max),this.updateVal(S.data,"stopy",d,Math.max),this.updateBounds(r,u,f,d)},"insert"),bumpVerticalPos:n(function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:n(function(){return this.verticalPos},"getVerticalPos"),getBounds:n(function(){return this.data},"getBounds")},H=$.sectionFills,st=$.sectionColours,Ht=n(function(t,e,s){const c=R().journey;let r="";const f=c.height*2+c.diagramMarginY,u=s+f;let d=0,g="#CCC",m="black",x=0;for(const[h,i]of e.entries()){if(r!==i.section){g=H[d%H.length],x=d%H.length,m=st[d%st.length];let l=0;const y=i.section;for(let o=h;o<e.length&&e[o].section==y;o++)l=l+1;const p={x:h*c.taskMargin+h*c.width+P,y:50,text:i.section,fill:g,num:x,colour:m,taskCount:l};j.drawSection(t,p,c),r=i.section,d++}const a=i.people.reduce((l,y)=>(E[y]&&(l[y]=E[y]),l),{});i.x=h*c.taskMargin+h*c.width+P,i.y=u,i.width=c.diagramMarginX,i.height=c.diagramMarginY,i.colour=m,i.fill=g,i.num=x,i.actors=a,j.drawTask(t,i,c),S.insert(i.x,i.y,i.x+i.width+c.taskMargin,300+5*30)}},"drawTasks"),at={setConf:Xt,draw:Gt},ee={parser:Et,db:rt,renderer:at,styles:jt,init:n(t=>{at.setConf(t.journey),rt.clear()},"init")};export{ee as diagram};