@marimo-team/frontend 0.10.20-dev3 → 0.10.20-dev30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ConnectedDataExplorerComponent-yFFb96iT.js → ConnectedDataExplorerComponent-xkNU5kc5.js} +4 -10
- package/dist/assets/VegaLite-CAtaBgBy.js +11 -0
- package/dist/assets/{_baseEach-DIjafkx3.js → _baseEach-weSWloUq.js} +1 -1
- package/dist/assets/_baseMap-DPvHaO_2.js +1 -0
- package/dist/assets/_baseUniq-BXp9s_zs.js +1 -0
- package/dist/assets/{any-language-editor-OaIqFa3A.js → any-language-editor-7qgV6T8U.js} +1 -1
- package/dist/assets/{arc-XdNuvsqn.js → arc-BTlVLyGF.js} +1 -1
- package/dist/assets/architectureDiagram-UYN6MBPD-BC3Kimem.js +1 -0
- package/dist/assets/blockDiagram-ZHA2E4KO-APCBkIkm.js +1 -0
- package/dist/assets/{c4Diagram-ZCSEYPFN-DCMk7PQb.js → c4Diagram-6F5ED5ID-DI-xY2s9.js} +1 -1
- package/dist/assets/channel-1zIwg7jY.js +1 -0
- package/dist/assets/{chunk-4LC2V6XN-CiaN7Ln3.js → chunk-5HRBRIJM-Bsyp_o2T.js} +1 -1
- package/dist/assets/{chunk-5RIWM3LS-CtcIAtfH.js → chunk-7U56Z5CX-Cbgvc272.js} +1 -1
- package/dist/assets/{chunk-V35ELUW5-ujf7GFb0.js → chunk-ASOPGD6M-CeyTJoQD.js} +1 -1
- package/dist/assets/{chunk-6JKP7OK7-s_kh4nPG.js → chunk-KFBOBJHC-CvW95mpJ.js} +1 -1
- package/dist/assets/chunk-T2TOU4HS-CZb7RRlU.js +1 -0
- package/dist/assets/{chunk-RYO7GUH3-CukwfQZY.js → chunk-TMUBEWPD-CyXz8Ub_.js} +1 -1
- package/dist/assets/classDiagram-LNE6IOMH-D-qo18yJ.js +1 -0
- package/dist/assets/classDiagram-v2-MQ7JQ4JX-D-qo18yJ.js +1 -0
- package/dist/assets/clone-BHhZhoNv.js +1 -0
- package/dist/assets/compile-BioH3shM.js +1 -0
- package/dist/assets/{createWsUrl-YEr1j21s.js → createWsUrl-qynJeqe6.js} +1 -1
- package/dist/assets/dagre-4EVJKHTY-BsqZ6RTM.js +1 -0
- package/dist/assets/data-editor-tlhEHEXa.js +1 -0
- package/dist/assets/{diagram-AVGMFHF7-Cq0xlHgh.js → diagram-QW4FP2JN-Dk5V9wVk.js} +1 -1
- package/dist/assets/edit-page-BOwF8dmw.js +8 -0
- package/dist/assets/{erDiagram-DKC2X5TE-DRjjaBJz.js → erDiagram-6RL3IURR-DITxoXuu.js} +1 -1
- package/dist/assets/flowDiagram-7ASYPVHJ-BJSvoaSE.js +1 -0
- package/dist/assets/{ganttDiagram-HLVPPPRE-BLMrzFvn.js → ganttDiagram-NTVNEXSI-CsNDqzjS.js} +1 -1
- package/dist/assets/{gitGraph-YCYPL57B-ChgNPcWM.js → gitGraph-YCYPL57B-DI4b_db5.js} +1 -1
- package/dist/assets/{gitGraphDiagram-JPZ3KUXI-JxaFib9_.js → gitGraphDiagram-NRZ2UAAF-BlCtbcCR.js} +1 -1
- package/dist/assets/graph-2iDyaq-l.js +1 -0
- package/dist/assets/home-page-nys0tVym.js +7 -0
- package/dist/assets/{index-DlLKzksC.js → index--7XbaBNN.js} +1 -1
- package/dist/assets/{index-Ch9qSets.js → index-B1pDi7ST.js} +1 -1
- package/dist/assets/{index-C9haayjz.js → index-BDKqfAYE.js} +1 -1
- package/dist/assets/index-BIVUPX2K.css +1 -0
- package/dist/assets/{index-BI9V22Pa.js → index-BIe4nD4_.js} +1 -1
- package/dist/assets/{index-BSLlyii9.js → index-Bq7So1Gr.js} +1 -1
- package/dist/assets/index-BqDAj6ip.js +92 -0
- package/dist/assets/{index-BOid0ZO7.js → index-C3bkVQT0.js} +1 -1
- package/dist/assets/{index-ms66T3nF.js → index-CF9LIsho.js} +1 -1
- package/dist/assets/{index-DNfH0GB8.js → index-CS0RJole.js} +1 -1
- package/dist/assets/{index-yPPzOFi7.js → index-CjwgmGK9.js} +1 -1
- package/dist/assets/{index-CPri-PMa.js → index-CmdgnqtO.js} +1 -1
- package/dist/assets/{index-CgcUtxn_.js → index-Co2w8eGE.js} +1 -1
- package/dist/assets/{index-BP46tb_O.js → index-CxayBkMQ.js} +1 -1
- package/dist/assets/{index-DC0wXkIa.js → index-DpzPGSoG.js} +1 -1
- package/dist/assets/{index-r6wBevTg.js → index-Dzjf86WA.js} +1 -1
- package/dist/assets/{index-K4dZrqa6.js → index-QZ36z_Gj.js} +1 -1
- package/dist/assets/{index-D69f6gEq.js → index-gqqjE5tO.js} +1 -1
- package/dist/assets/{infoDiagram-RZZSJVI2-BC604r1O.js → infoDiagram-A4XQUW5V-BRRAb14F.js} +1 -1
- package/dist/assets/{journeyDiagram-BLD6N6MZ-DO_CIOO4.js → journeyDiagram-G5WM74LC-BRejw3Ei.js} +1 -1
- package/dist/assets/kanban-definition-QRCXZQQD-BiGFpJxt.js +1 -0
- package/dist/assets/layout-DdMJqr4q.js +1 -0
- package/dist/assets/{linear-BSTPblql.js → linear-CpcVakE4.js} +1 -1
- package/dist/assets/mermaid-CVusvMML.js +13 -0
- package/dist/assets/min-C2OckgO4.js +1 -0
- package/dist/assets/mindmap-definition-GWI6TPTV-s9KettkA.js +1 -0
- package/dist/assets/{pieDiagram-X7YZ5ZEZ-CRLRSWsA.js → pieDiagram-YF2LJOPJ-DXpUZU18.js} +1 -1
- package/dist/assets/postgresql-q8VEBKGg.svg +1 -0
- package/dist/assets/{quadrantDiagram-F36EZAVT-DwV_s3Au.js → quadrantDiagram-OS5C2QUG-WQlGeeG9.js} +1 -1
- package/dist/assets/{react-plotly-Bd2Ml0II.js → react-plotly-CQzOWEjZ.js} +1 -1
- package/dist/assets/{requirementDiagram-JG2LMPGF-CkN62lyM.js → requirementDiagram-MIRIMTAZ-CV9t4qF5.js} +1 -1
- package/dist/assets/run-page-DpkPoUDZ.js +1 -0
- package/dist/assets/{sankeyDiagram-ATFNWWW6-sWy9MCa9.js → sankeyDiagram-Y46BX6SQ-BxOQmfuf.js} +1 -1
- package/dist/assets/save-worker-DTSnJ47D.js +1 -0
- package/dist/assets/{sequenceDiagram-WK7YDQ3N-dRd4PIdU.js → sequenceDiagram-G6AWOVSC-Bta2Ny8g.js} +1 -1
- package/dist/assets/slides-component-Y4ME1KMz.js +1 -0
- package/dist/assets/{sortBy-RWqkCoE9.js → sortBy-BsPdrU2X.js} +1 -1
- package/dist/assets/{stateDiagram-4JV6CC6H-DXbF4Ymr.js → stateDiagram-MAYHULR4-l8HhoOVS.js} +1 -1
- package/dist/assets/stateDiagram-v2-4JROLMXI-DsewC9Ln.js +1 -0
- package/dist/assets/{step-CjxFKgSe.js → step-CaHXtLdi.js} +1 -1
- package/dist/assets/{terminal-DhLWshJ4.js → terminal-B7Pv-0kF.js} +1 -1
- package/dist/assets/{time-CCypEmqU.js → time-CdZ3ECiO.js} +1 -1
- package/dist/assets/timeline-definition-U7ZMHBDA-D28ztpq-.js +1 -0
- package/dist/assets/{transform-BZgIUWgO.js → transform-D6ULhE8R.js} +1 -1
- package/dist/assets/tree-CVJG1Q5_.js +8 -0
- package/dist/assets/useMarimoWebSocket-BcXfSyoh.js +15 -0
- package/dist/assets/{vega-component-DflGdbEq.js → vega-component-C9egsIyZ.js} +1 -1
- package/dist/assets/{web-vitals-DSwKt_Ty.js → web-vitals-rCWRSGQR.js} +1 -1
- package/dist/assets/worker-BHRnpHsl.js +1 -0
- package/dist/assets/worker-BeIyzMbF.js +1 -0
- package/dist/assets/{xychartDiagram-KECQ2H5Q-DgaWndt1.js → xychartDiagram-6QU3TZC5-DMylzFdB.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +49 -49
- package/dist/assets/VegaLite-BNxMm-Co.js +0 -11
- package/dist/assets/_baseMap-DULNqShX.js +0 -1
- package/dist/assets/_baseUniq-DCqXUnel.js +0 -1
- package/dist/assets/architectureDiagram-IFBEXTG3-C_LynsMm.js +0 -1
- package/dist/assets/blockDiagram-TCMKQVZ6-BkJ8w2Km.js +0 -1
- package/dist/assets/channel-CYOqIFAR.js +0 -1
- package/dist/assets/chunk-NGC4727B-BQzEs090.js +0 -1
- package/dist/assets/chunk-REEJFE46-D-tQcFs7.js +0 -1
- package/dist/assets/classDiagram-Q73GJZWF-B24YoNgH.js +0 -1
- package/dist/assets/classDiagram-v2-C6QPLPW4-CTFjV0X-.js +0 -1
- package/dist/assets/clone-DRG_CBNx.js +0 -1
- package/dist/assets/compile-C_l9LEsi.js +0 -1
- package/dist/assets/dagre-7KT5K2WU-CUejqvLZ.js +0 -1
- package/dist/assets/data-editor-Br8vLhok.js +0 -1
- package/dist/assets/edit-page-BbP9MiPZ.js +0 -14
- package/dist/assets/flowDiagram-NWEUNK3L-NFSK6HcM.js +0 -1
- package/dist/assets/graph-DdADGOru.js +0 -1
- package/dist/assets/home-page-Dc18tEzK.js +0 -13
- package/dist/assets/index-Czf0P_31.js +0 -79
- package/dist/assets/index-DfLILvXO.css +0 -1
- package/dist/assets/json-yf_vWmgp.js +0 -1
- package/dist/assets/layout-DG2h9DvT.js +0 -1
- package/dist/assets/mermaid-BNQ_dopT.js +0 -13
- package/dist/assets/min-BIubUKUD.js +0 -1
- package/dist/assets/mindmap-definition-OEB2RXX2-CTbOs_cj.js +0 -1
- package/dist/assets/run-page-BcI7L9NG.js +0 -1
- package/dist/assets/save-worker-8bKai79t.js +0 -1
- package/dist/assets/slides-component-CUySrZGt.js +0 -1
- package/dist/assets/stateDiagram-v2-7KT6RKTD-DgMOPA_Q.js +0 -1
- package/dist/assets/timeline-definition-3ZMEY6HS-gjvMU2ty.js +0 -1
- package/dist/assets/tree-Bv6ZiTby.js +0 -14
- package/dist/assets/useMarimoWebSocket-DHvF6kjP.js +0 -21
- package/dist/assets/worker-ByJ8QhEE.js +0 -1
- package/dist/assets/worker-DK2GD4A8.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e,t;import{i as s,p as i,d as n,b as r,e as o,m as l}from"./chunk-REEJFE46-D-tQcFs7.js";import{_ as a,d as c,l as u,Q as h,D as d,j as g,t as y,z as p,e as b}from"./mermaid-BNQ_dopT.js";import{c as x}from"./clone-DRG_CBNx.js";import{s as S}from"./transform-BZgIUWgO.js";import{G as f}from"./graph-DdADGOru.js";import{c as m}from"./channel-CYOqIFAR.js";import"./step-CjxFKgSe.js";import"./index-Czf0P_31.js";import"./_baseUniq-DCqXUnel.js";import"./_baseEach-DIjafkx3.js";var L=function(){var e=a((function(e,t,s,i){for(s=s||{},i=e.length;i--;s[e[i]]=t);return s}),"o"),t=[1,7],s=[1,13],i=[1,14],n=[1,15],r=[1,19],o=[1,16],l=[1,17],c=[1,18],u=[8,30],h=[8,21,28,29,30,31,32,40,44,47],d=[1,23],g=[1,24],y=[8,15,16,21,28,29,30,31,32,40,44,47],p=[8,15,16,21,27,28,29,30,31,32,40,44,47],b=[1,49],x={trace:a((function(){}),"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:a((function(e,t,s,i,n,r,o){var l=r.length-1;switch(n){case 4:i.getLogger().debug("Rule: separator (NL) ");break;case 5:i.getLogger().debug("Rule: separator (Space) ");break;case 6:i.getLogger().debug("Rule: separator (EOF) ");break;case 7:i.getLogger().debug("Rule: hierarchy: ",r[l-1]),i.setHierarchy(r[l-1]);break;case 8:i.getLogger().debug("Stop NL ");break;case 9:i.getLogger().debug("Stop EOF ");break;case 10:i.getLogger().debug("Stop NL2 ");break;case 11:i.getLogger().debug("Stop EOF2 ");break;case 12:i.getLogger().debug("Rule: statement: ",r[l]),"number"==typeof r[l].length?this.$=r[l]:this.$=[r[l]];break;case 13:i.getLogger().debug("Rule: statement #2: ",r[l-1]),this.$=[r[l-1]].concat(r[l]);break;case 14:i.getLogger().debug("Rule: link: ",r[l],e),this.$={edgeTypeStr:r[l],label:""};break;case 15:i.getLogger().debug("Rule: LABEL link: ",r[l-3],r[l-1],r[l]),this.$={edgeTypeStr:r[l],label:r[l-1]};break;case 18:const t=parseInt(r[l]),s=i.generateId();this.$={id:s,type:"space",label:"",width:t,children:[]};break;case 23:i.getLogger().debug("Rule: (nodeStatement link node) ",r[l-2],r[l-1],r[l]," typestr: ",r[l-1].edgeTypeStr);const n=i.edgeStrToEdgeData(r[l-1].edgeTypeStr);this.$=[{id:r[l-2].id,label:r[l-2].label,type:r[l-2].type,directions:r[l-2].directions},{id:r[l-2].id+"-"+r[l].id,start:r[l-2].id,end:r[l].id,label:r[l-1].label,type:"edge",directions:r[l].directions,arrowTypeEnd:n,arrowTypeStart:"arrow_open"},{id:r[l].id,label:r[l].label,type:i.typeStr2Type(r[l].typeStr),directions:r[l].directions}];break;case 24:i.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[l-1],r[l]),this.$={id:r[l-1].id,label:r[l-1].label,type:i.typeStr2Type(r[l-1].typeStr),directions:r[l-1].directions,widthInColumns:parseInt(r[l],10)};break;case 25:i.getLogger().debug("Rule: nodeStatement (node) ",r[l]),this.$={id:r[l].id,label:r[l].label,type:i.typeStr2Type(r[l].typeStr),directions:r[l].directions,widthInColumns:1};break;case 26:i.getLogger().debug("APA123",this?this:"na"),i.getLogger().debug("COLUMNS: ",r[l]),this.$={type:"column-setting",columns:"auto"===r[l]?-1:parseInt(r[l])};break;case 27:i.getLogger().debug("Rule: id-block statement : ",r[l-2],r[l-1]),i.generateId(),this.$={...r[l-2],type:"composite",children:r[l-1]};break;case 28:i.getLogger().debug("Rule: blockStatement : ",r[l-2],r[l-1],r[l]);const o=i.generateId();this.$={id:o,type:"composite",label:"",children:r[l-1]};break;case 29:i.getLogger().debug("Rule: node (NODE_ID separator): ",r[l]),this.$={id:r[l]};break;case 30:i.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[l-1],r[l]),this.$={id:r[l-1],label:r[l].label,typeStr:r[l].typeStr,directions:r[l].directions};break;case 31:i.getLogger().debug("Rule: dirList: ",r[l]),this.$=[r[l]];break;case 32:i.getLogger().debug("Rule: dirList: ",r[l-1],r[l]),this.$=[r[l-1]].concat(r[l]);break;case 33:i.getLogger().debug("Rule: nodeShapeNLabel: ",r[l-2],r[l-1],r[l]),this.$={typeStr:r[l-2]+r[l],label:r[l-1]};break;case 34:i.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[l-3],r[l-2]," #3:",r[l-1],r[l]),this.$={typeStr:r[l-3]+r[l],label:r[l-2],directions:r[l-1]};break;case 35:case 36:this.$={type:"classDef",id:r[l-1].trim(),css:r[l].trim()};break;case 37:this.$={type:"applyClass",id:r[l-1].trim(),styleClass:r[l].trim()};break;case 38:this.$={type:"applyStyles",id:r[l-1].trim(),stylesStr:r[l].trim()}}}),"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:n,32:r,40:o,44:l,47:c},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:s,29:i,31:n,32:r,40:o,44:l,47:c}),e(h,[2,16],{14:22,15:d,16:g}),e(h,[2,17]),e(h,[2,18]),e(h,[2,19]),e(h,[2,20]),e(h,[2,21]),e(h,[2,22]),e(y,[2,25],{27:[1,25]}),e(h,[2,26]),{19:26,26:12,32:r},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:n,32:r,40:o,44:l,47:c},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(p,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,32:r},{32:[2,14]},{17:[1,36]},e(y,[2,24]),{11:37,13:4,14:22,15:d,16:g,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:i,31:n,32:r,40:o,44:l,47:c},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(p,[2,30]),{18:[1,43]},{18:[1,44]},e(y,[2,23]),{18:[1,45]},{30:[1,46]},e(h,[2,28]),e(h,[2,35]),e(h,[2,36]),e(h,[2,37]),e(h,[2,38]),{37:[1,47]},{34:48,35:b},{15:[1,50]},e(h,[2,27]),e(p,[2,33]),{39:[1,51]},{34:52,35:b,39:[2,31]},{32:[2,15]},e(p,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:a((function(e,t){if(!t.recoverable){var s=new Error(e);throw s.hash=t,s}this.trace(e)}),"parseError"),parse:a((function(e){var t=this,s=[0],i=[],n=[null],r=[],o=this.table,l="",c=0,u=0,h=r.slice.call(arguments,1),d=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);d.setInput(e,g.yy),g.yy.lexer=d,g.yy.parser=this,void 0===d.yylloc&&(d.yylloc={});var p=d.yylloc;r.push(p);var b=d.options&&d.options.ranges;function x(){var e;return"number"!=typeof(e=i.pop()||d.lex()||1)&&(e instanceof Array&&(e=(i=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,a((function(e){s.length=s.length-2*e,n.length=n.length-e,r.length=r.length-e}),"popStack"),a(x,"lex");for(var S,f,m,L,_,k,E,w,v={};;){if(f=s[s.length-1],this.defaultActions[f]?m=this.defaultActions[f]:(null==S&&(S=x()),m=o[f]&&o[f][S]),void 0===m||!m.length||!m[0]){var D="";for(_ in w=[],o[f])this.terminals_[_]&&_>2&&w.push("'"+this.terminals_[_]+"'");D=d.showPosition?"Parse error on line "+(c+1)+":\n"+d.showPosition()+"\nExpecting "+w.join(", ")+", got '"+(this.terminals_[S]||S)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==S?"end of input":"'"+(this.terminals_[S]||S)+"'"),this.parseError(D,{text:d.match,token:this.terminals_[S]||S,line:d.yylineno,loc:p,expected:w})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+S);switch(m[0]){case 1:s.push(S),n.push(d.yytext),r.push(d.yylloc),s.push(m[1]),S=null,u=d.yyleng,l=d.yytext,c=d.yylineno,p=d.yylloc;break;case 2:if(k=this.productions_[m[1]][1],v.$=n[n.length-k],v._$={first_line:r[r.length-(k||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(k||1)].first_column,last_column:r[r.length-1].last_column},b&&(v._$.range=[r[r.length-(k||1)].range[0],r[r.length-1].range[1]]),void 0!==(L=this.performAction.apply(v,[l,u,c,g.yy,m[1],n,r].concat(h))))return L;k&&(s=s.slice(0,-1*k*2),n=n.slice(0,-1*k),r=r.slice(0,-1*k)),s.push(this.productions_[m[1]][0]),n.push(v.$),r.push(v._$),E=o[s[s.length-2]][s[s.length-1]],s.push(E);break;case 3:return!0}}return!0}),"parse")},S=function(){return{EOF:1,parseError:a((function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)}),"parseError"),setInput:a((function(e,t){return this.yy=t||this.yy||{},this._input=e,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:a((function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e}),"input"),unput:a((function(e){var t=e.length,s=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var i=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var n=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:s?(s.length===i.length?this.yylloc.first_column:0)+i[i.length-s.length].length-s[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[n[0],n[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this}),"unput"),more:a((function(){return this._more=!0,this}),"more"),reject:a((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:a((function(e){this.unput(this.match.slice(e))}),"less"),pastInput:a((function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:a((function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:a((function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"}),"showPosition"),test_match:a((function(e,t){var s,i,n;if(this.options.backtrack_lexer&&(n={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&&(n.yylloc.range=this.yylloc.range.slice(0))),(i=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,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(e[0].length),this.matched+=e[0],s=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var r in n)this[r]=n[r];return!1}return!1}),"test_match"),next:a((function(){if(this.done)return this.EOF;var e,t,s,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var n=this._currentRules(),r=0;r<n.length;r++)if((s=this._input.match(this.rules[n[r]]))&&(!t||s[0].length>t[0].length)){if(t=s,i=r,this.options.backtrack_lexer){if(!1!==(e=this.test_match(s,n[r])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,n[i]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:a((function(){var e=this.next();return e||this.lex()}),"lex"),begin:a((function(e){this.conditionStack.push(e)}),"begin"),popState:a((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:a((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:a((function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"}),"topState"),pushState:a((function(e){this.begin(e)}),"pushState"),stateStackSize:a((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:a((function(e,t,s,i){switch(s){case 0:return 10;case 1:return e.getLogger().debug("Found space-block"),31;case 2:return e.getLogger().debug("Found nl-block"),31;case 3:return e.getLogger().debug("Found space-block"),29;case 4:e.getLogger().debug(".",t.yytext);break;case 5:e.getLogger().debug("_",t.yytext);break;case 6:return 5;case 7:return t.yytext=-1,28;case 8:return t.yytext=t.yytext.replace(/columns\s+/,""),e.getLogger().debug("COLUMNS (LEX)",t.yytext),28;case 9:case 77:case 78:case 100:this.pushState("md_string");break;case 10:return"MD_STR";case 11:case 35:case 80:this.popState();break;case 12:this.pushState("string");break;case 13:e.getLogger().debug("LEX: POPPING STR:",t.yytext),this.popState();break;case 14:return e.getLogger().debug("LEX: STR end:",t.yytext),"STR";case 15:return t.yytext=t.yytext.replace(/space\:/,""),e.getLogger().debug("SPACE NUM (LEX)",t.yytext),21;case 16:return t.yytext="1",e.getLogger().debug("COLUMNS (LEX)",t.yytext),21;case 17:return 43;case 18:return"LINKSTYLE";case 19:return"INTERPOLATE";case 20:return this.pushState("CLASSDEF"),40;case 21:return this.popState(),this.pushState("CLASSDEFID"),"DEFAULT_CLASSDEF_ID";case 22:return this.popState(),this.pushState("CLASSDEFID"),41;case 23:return this.popState(),42;case 24:return this.pushState("CLASS"),44;case 25:return this.popState(),this.pushState("CLASS_STYLE"),45;case 26:return this.popState(),46;case 27:return this.pushState("STYLE_STMNT"),47;case 28:return this.popState(),this.pushState("STYLE_DEFINITION"),48;case 29:return this.popState(),49;case 30:return this.pushState("acc_title"),"acc_title";case 31:return this.popState(),"acc_title_value";case 32:return this.pushState("acc_descr"),"acc_descr";case 33:return this.popState(),"acc_descr_value";case 34:this.pushState("acc_descr_multiline");break;case 36:return"acc_descr_multiline_value";case 37:return 30;case 38:case 39:case 41:case 42:case 45:return this.popState(),e.getLogger().debug("Lex: (("),"NODE_DEND";case 40:return this.popState(),e.getLogger().debug("Lex: ))"),"NODE_DEND";case 43:return this.popState(),e.getLogger().debug("Lex: (-"),"NODE_DEND";case 44:return this.popState(),e.getLogger().debug("Lex: -)"),"NODE_DEND";case 46:return this.popState(),e.getLogger().debug("Lex: ]]"),"NODE_DEND";case 47:return this.popState(),e.getLogger().debug("Lex: ("),"NODE_DEND";case 48:return this.popState(),e.getLogger().debug("Lex: ])"),"NODE_DEND";case 49:case 50:return this.popState(),e.getLogger().debug("Lex: /]"),"NODE_DEND";case 51:return this.popState(),e.getLogger().debug("Lex: )]"),"NODE_DEND";case 52:return this.popState(),e.getLogger().debug("Lex: )"),"NODE_DEND";case 53:return this.popState(),e.getLogger().debug("Lex: ]>"),"NODE_DEND";case 54:return this.popState(),e.getLogger().debug("Lex: ]"),"NODE_DEND";case 55:return e.getLogger().debug("Lexa: -)"),this.pushState("NODE"),36;case 56:return e.getLogger().debug("Lexa: (-"),this.pushState("NODE"),36;case 57:return e.getLogger().debug("Lexa: ))"),this.pushState("NODE"),36;case 58:case 60:case 61:case 62:case 65:return e.getLogger().debug("Lexa: )"),this.pushState("NODE"),36;case 59:return e.getLogger().debug("Lex: ((("),this.pushState("NODE"),36;case 63:return e.getLogger().debug("Lexc: >"),this.pushState("NODE"),36;case 64:return e.getLogger().debug("Lexa: (["),this.pushState("NODE"),36;case 66:case 67:case 68:case 69:case 70:case 71:case 72:return this.pushState("NODE"),36;case 73:return e.getLogger().debug("Lexa: ["),this.pushState("NODE"),36;case 74:return this.pushState("BLOCK_ARROW"),e.getLogger().debug("LEX ARR START"),38;case 75:return e.getLogger().debug("Lex: NODE_ID",t.yytext),32;case 76:return e.getLogger().debug("Lex: EOF",t.yytext),8;case 79:return"NODE_DESCR";case 81:e.getLogger().debug("Lex: Starting string"),this.pushState("string");break;case 82:e.getLogger().debug("LEX ARR: Starting string"),this.pushState("string");break;case 83:return e.getLogger().debug("LEX: NODE_DESCR:",t.yytext),"NODE_DESCR";case 84:e.getLogger().debug("LEX POPPING"),this.popState();break;case 85:e.getLogger().debug("Lex: =>BAE"),this.pushState("ARROW_DIR");break;case 86:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (right): dir:",t.yytext),"DIR";case 87:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (left):",t.yytext),"DIR";case 88:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (x):",t.yytext),"DIR";case 89:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (y):",t.yytext),"DIR";case 90:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (up):",t.yytext),"DIR";case 91:return t.yytext=t.yytext.replace(/^,\s*/,""),e.getLogger().debug("Lex (down):",t.yytext),"DIR";case 92:return t.yytext="]>",e.getLogger().debug("Lex (ARROW_DIR end):",t.yytext),this.popState(),this.popState(),"BLOCK_ARROW_END";case 93:return e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 94:case 95:case 96:return e.getLogger().debug("Lex: LINK",t.yytext),15;case 97:case 98:case 99:return e.getLogger().debug("Lex: START_LINK",t.yytext),this.pushState("LLABEL"),16;case 101:return e.getLogger().debug("Lex: Starting string"),this.pushState("string"),"LINK_LABEL";case 102:return this.popState(),e.getLogger().debug("Lex: LINK","#"+t.yytext+"#"),15;case 103:case 104:return this.popState(),e.getLogger().debug("Lex: LINK",t.yytext),15;case 105:return e.getLogger().debug("Lex: COLON",t.yytext),t.yytext=t.yytext.slice(1),27}}),"anonymous"),rules:[/^(?:block-beta\b)/,/^(?:block\s+)/,/^(?:block\n+)/,/^(?:block:)/,/^(?:[\s]+)/,/^(?:[\n]+)/,/^(?:((\u000D\u000A)|(\u000A)))/,/^(?:columns\s+auto\b)/,/^(?:columns\s+[\d]+)/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:space[:]\d+)/,/^(?:space\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\s+)/,/^(?:DEFAULT\s+)/,/^(?:\w+\s+)/,/^(?:[^\n]*)/,/^(?:class\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:style\s+)/,/^(?:(\w+)+((,\s*\w+)*))/,/^(?:[^\n]*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:end\b\s*)/,/^(?:\(\(\()/,/^(?:\)\)\))/,/^(?:[\)]\))/,/^(?:\}\})/,/^(?:\})/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\()/,/^(?:\]\])/,/^(?:\()/,/^(?:\]\))/,/^(?:\\\])/,/^(?:\/\])/,/^(?:\)\])/,/^(?:[\)])/,/^(?:\]>)/,/^(?:[\]])/,/^(?:-\))/,/^(?:\(-)/,/^(?:\)\))/,/^(?:\))/,/^(?:\(\(\()/,/^(?:\(\()/,/^(?:\{\{)/,/^(?:\{)/,/^(?:>)/,/^(?:\(\[)/,/^(?:\()/,/^(?:\[\[)/,/^(?:\[\|)/,/^(?:\[\()/,/^(?:\)\)\))/,/^(?:\[\\)/,/^(?:\[\/)/,/^(?:\[\\)/,/^(?:\[)/,/^(?:<\[)/,/^(?:[^\(\[\n\-\)\{\}\s\<\>:]+)/,/^(?:$)/,/^(?:["][`])/,/^(?:["][`])/,/^(?:[^`"]+)/,/^(?:[`]["])/,/^(?:["])/,/^(?:["])/,/^(?:[^"]+)/,/^(?:["])/,/^(?:\]>\s*\()/,/^(?:,?\s*right\s*)/,/^(?:,?\s*left\s*)/,/^(?:,?\s*x\s*)/,/^(?:,?\s*y\s*)/,/^(?:,?\s*up\s*)/,/^(?:,?\s*down\s*)/,/^(?:\)\s*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*~~[\~]+\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:["][`])/,/^(?:["])/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?::\d+)/],conditions:{STYLE_DEFINITION:{rules:[29],inclusive:!1},STYLE_STMNT:{rules:[28],inclusive:!1},CLASSDEFID:{rules:[23],inclusive:!1},CLASSDEF:{rules:[21,22],inclusive:!1},CLASS_STYLE:{rules:[26],inclusive:!1},CLASS:{rules:[25],inclusive:!1},LLABEL:{rules:[100,101,102,103,104],inclusive:!1},ARROW_DIR:{rules:[86,87,88,89,90,91,92],inclusive:!1},BLOCK_ARROW:{rules:[77,82,85],inclusive:!1},NODE:{rules:[38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,78,81],inclusive:!1},md_string:{rules:[10,11,79,80],inclusive:!1},space:{rules:[],inclusive:!1},string:{rules:[13,14,83,84],inclusive:!1},acc_descr_multiline:{rules:[35,36],inclusive:!1},acc_descr:{rules:[33],inclusive:!1},acc_title:{rules:[31],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,12,15,16,17,18,19,20,24,27,30,32,34,37,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,93,94,95,96,97,98,99,105],inclusive:!0}}}}();function f(){this.yy={}}return x.lexer=S,a(f,"Parser"),f.prototype=x,x.Parser=f,new f}();L.parser=L;var _=L,k=new Map,E=[],w=new Map,v="color",D="fill",$=c(),N=new Map,I=a((e=>b.sanitizeText(e,$)),"sanitizeText"),T=a((function(e,t=""){let s=N.get(e);s||(s={id:e,styles:[],textStyles:[]},N.set(e,s)),null!=t&&t.split(",").forEach((e=>{const t=e.replace(/([^;]*);/,"$1").trim();if(RegExp(v).exec(e)){const e=t.replace(D,"bgFill").replace(v,D);s.textStyles.push(e)}s.styles.push(t)}))}),"addStyleClass"),z=a((function(e,t=""){const s=k.get(e);null!=t&&(s.styles=t.split(","))}),"addStyle2Node"),C=a((function(e,t){e.split(",").forEach((function(e){let s=k.get(e);if(void 0===s){const t=e.trim();s={id:t,type:"na",children:[]},k.set(t,s)}s.classes||(s.classes=[]),s.classes.push(t)}))}),"setCssClass"),O=a(((e,t)=>{const s=e.flat(),i=[];for(const n of s)if(n.label&&(n.label=I(n.label)),"classDef"!==n.type)if("applyClass"!==n.type)if("applyStyles"!==n.type)if("column-setting"===n.type)t.columns=n.columns??-1;else if("edge"===n.type){const e=(w.get(n.id)??0)+1;w.set(n.id,e),n.id=e+"-"+n.id,E.push(n)}else{n.label||("composite"===n.type?n.label="":n.label=n.id);const e=k.get(n.id);if(void 0===e?k.set(n.id,n):("na"!==n.type&&(e.type=n.type),n.label!==n.id&&(e.label=n.label)),n.children&&O(n.children,n),"space"===n.type){const e=n.width??1;for(let t=0;t<e;t++){const e=x(n);e.id=e.id+"-"+t,k.set(e.id,e),i.push(e)}}else void 0===e&&i.push(n)}else(null==n?void 0:n.stylesStr)&&z(n.id,null==n?void 0:n.stylesStr);else C(n.id,(null==n?void 0:n.styleClass)??"");else T(n.id,n.css);t.children=i}),"populateBlockDatabase"),A=[],R={id:"root",type:"composite",children:[],columns:-1},B=a((()=>{u.debug("Clear called"),y(),R={id:"root",type:"composite",children:[],columns:-1},k=new Map([["root",R]]),A=[],N=new Map,E=[],w=new Map}),"clear");function P(e){switch(u.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return u.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function F(e){return u.debug("typeStr2Type",e),"=="===e?"thick":"normal"}function Y(e){switch(e.trim()){case"--x":return"arrow_cross";case"--o":return"arrow_circle";default:return"arrow_point"}}a(P,"typeStr2Type"),a(F,"edgeTypeStr2Type"),a(Y,"edgeStrToEdgeData");var M=0,K=a((()=>(M++,"id-"+Math.random().toString(36).substr(2,12)+"-"+M)),"generateId"),X=a((e=>{R.children=e,O(e,R),A=R.children}),"setHierarchy"),j=a((e=>{const t=k.get(e);return t?t.columns?t.columns:t.children?t.children.length:-1:-1}),"getColumns"),W=a((()=>[...k.values()]),"getBlocksFlat"),U=a((()=>A||[]),"getBlocks"),H=a((()=>E),"getEdges"),G=a((e=>k.get(e)),"getBlock"),q=a((e=>{k.set(e.id,e)}),"setBlock"),J=a((()=>console),"getLogger"),Z=a((function(){return N}),"getClasses"),Q={getConfig:a((()=>d().block),"getConfig"),typeStr2Type:P,edgeTypeStr2Type:F,edgeStrToEdgeData:Y,getLogger:J,getBlocksFlat:W,getBlocks:U,getEdges:H,setHierarchy:X,getBlock:G,setBlock:q,getColumns:j,getClasses:Z,clear:B,generateId:K},V=a(((e,t)=>{const s=m,i=s(e,"r"),n=s(e,"g"),r=s(e,"b");return p(i,n,r,t)}),"fade"),ee=a((e=>`.label {\n font-family: ${e.fontFamily};\n color: ${e.nodeTextColor||e.textColor};\n }\n .cluster-label text {\n fill: ${e.titleColor};\n }\n .cluster-label span,p {\n color: ${e.titleColor};\n }\n\n\n\n .label text,span,p {\n fill: ${e.nodeTextColor||e.textColor};\n color: ${e.nodeTextColor||e.textColor};\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${e.mainBkg};\n stroke: ${e.nodeBorder};\n stroke-width: 1px;\n }\n .flowchart-label text {\n text-anchor: middle;\n }\n // .flowchart-label .text-outer-tspan {\n // text-anchor: middle;\n // }\n // .flowchart-label .text-inner-tspan {\n // text-anchor: start;\n // }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ${e.arrowheadColor};\n }\n\n .edgePath .path {\n stroke: ${e.lineColor};\n stroke-width: 2.0px;\n }\n\n .flowchart-link {\n stroke: ${e.lineColor};\n fill: none;\n }\n\n .edgeLabel {\n background-color: ${e.edgeLabelBackground};\n rect {\n opacity: 0.5;\n background-color: ${e.edgeLabelBackground};\n fill: ${e.edgeLabelBackground};\n }\n text-align: center;\n }\n\n /* For html labels only */\n .labelBkg {\n background-color: ${V(e.edgeLabelBackground,.5)};\n // background-color:\n }\n\n .node .cluster {\n // fill: ${V(e.mainBkg,.5)};\n fill: ${V(e.clusterBkg,.5)};\n stroke: ${V(e.clusterBorder,.2)};\n box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ${e.titleColor};\n }\n\n .cluster span,p {\n color: ${e.titleColor};\n }\n /* .cluster div {\n color: ${e.titleColor};\n } */\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ${e.fontFamily};\n font-size: 12px;\n background: ${e.tertiaryColor};\n border: 1px solid ${e.border2};\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .flowchartTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${e.textColor};\n }\n`),"getStyles"),te=(null==(t=null==(e=c())?void 0:e.block)?void 0:t.padding)??8;function se(e,t){if(0===e||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);if(e<0)return{px:t,py:0};if(1===e)return{px:0,py:t};return{px:t%e,py:Math.floor(t/e)}}a(se,"calculateBlockPosition");var ie=a((e=>{let t=0,s=0;for(const i of e.children){const{width:n,height:r,x:o,y:l}=i.size??{width:0,height:0,x:0,y:0};u.debug("getMaxChildSize abc95 child:",i.id,"width:",n,"height:",r,"x:",o,"y:",l,i.type),"space"!==i.type&&(n>t&&(t=n/(e.widthInColumns??1)),r>s&&(s=r))}return{width:t,height:s}}),"getMaxChildSize");function ne(e,t,s=0,i=0){var n,r,o,l,a,c,h,d,g,y,p;u.debug("setBlockSizes abc95 (start)",e.id,null==(n=null==e?void 0:e.size)?void 0:n.x,"block width =",null==e?void 0:e.size,"sieblingWidth",s),(null==(r=null==e?void 0:e.size)?void 0:r.width)||(e.size={width:s,height:i,x:0,y:0});let b=0,x=0;if((null==(o=e.children)?void 0:o.length)>0){for(const s of e.children)ne(s,t);const n=ie(e);b=n.width,x=n.height,u.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",b,x);for(const t of e.children)t.size&&(u.debug(`abc95 Setting size of children of ${e.id} id=${t.id} ${b} ${x} ${JSON.stringify(t.size)}`),t.size.width=b*(t.widthInColumns??1)+te*((t.widthInColumns??1)-1),t.size.height=x,t.size.x=0,t.size.y=0,u.debug(`abc95 updating size of ${e.id} children child:${t.id} maxWidth:${b} maxHeight:${x}`));for(const s of e.children)ne(s,t,b,x);const r=e.columns??-1;let o=0;for(const t of e.children)o+=t.widthInColumns??1;let d=e.children.length;r>0&&r<o&&(d=r);const g=Math.ceil(o/d);let y=d*(b+te)+te,p=g*(x+te)+te;if(y<s){u.debug(`Detected to small siebling: abc95 ${e.id} sieblingWidth ${s} sieblingHeight ${i} width ${y}`),y=s,p=i;const t=(s-d*te-te)/d,n=(i-g*te-te)/g;u.debug("Size indata abc88",e.id,"childWidth",t,"maxWidth",b),u.debug("Size indata abc88",e.id,"childHeight",n,"maxHeight",x),u.debug("Size indata abc88 xSize",d,"padding",te);for(const s of e.children)s.size&&(s.size.width=t,s.size.height=n,s.size.x=0,s.size.y=0)}if(u.debug(`abc95 (finale calc) ${e.id} xSize ${d} ySize ${g} columns ${r}${e.children.length} width=${Math.max(y,(null==(l=e.size)?void 0:l.width)||0)}`),y<((null==(a=null==e?void 0:e.size)?void 0:a.width)||0)){y=(null==(c=null==e?void 0:e.size)?void 0:c.width)||0;const t=r>0?Math.min(e.children.length,r):e.children.length;if(t>0){const s=(y-t*te-te)/t;u.debug("abc95 (growing to fit) width",e.id,y,null==(h=e.size)?void 0:h.width,s);for(const t of e.children)t.size&&(t.size.width=s)}}e.size={width:y,height:p,x:0,y:0}}u.debug("setBlockSizes abc94 (done)",e.id,null==(d=null==e?void 0:e.size)?void 0:d.x,null==(g=null==e?void 0:e.size)?void 0:g.width,null==(y=null==e?void 0:e.size)?void 0:y.y,null==(p=null==e?void 0:e.size)?void 0:p.height)}function re(e,t){var s,i,n,r,o,l,a,c,h,d,g,y,p,b,x,S,f;u.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${null==(s=null==e?void 0:e.size)?void 0:s.x} y: ${null==(i=null==e?void 0:e.size)?void 0:i.y} width: ${null==(n=null==e?void 0:e.size)?void 0:n.width}`);const m=e.columns??-1;if(u.debug("layoutBlocks columns abc95",e.id,"=>",m,e),e.children&&e.children.length>0){const t=(null==(o=null==(r=null==e?void 0:e.children[0])?void 0:r.size)?void 0:o.width)??0,s=e.children.length*t+(e.children.length-1)*te;u.debug("widthOfChildren 88",s,"posX");let i=0;u.debug("abc91 block?.size?.x",e.id,null==(l=null==e?void 0:e.size)?void 0:l.x);let n=(null==(a=null==e?void 0:e.size)?void 0:a.x)?(null==(c=null==e?void 0:e.size)?void 0:c.x)+(-(null==(h=null==e?void 0:e.size)?void 0:h.width)/2||0):-te,x=0;for(const r of e.children){const t=e;if(!r.size)continue;const{width:s,height:o}=r.size,{px:l,py:a}=se(m,i);if(a!=x&&(x=a,n=(null==(d=null==e?void 0:e.size)?void 0:d.x)?(null==(g=null==e?void 0:e.size)?void 0:g.x)+(-(null==(y=null==e?void 0:e.size)?void 0:y.width)/2||0):-te,u.debug("New row in layout for block",e.id," and child ",r.id,x)),u.debug(`abc89 layout blocks (child) id: ${r.id} Pos: ${i} (px, py) ${l},${a} (${null==(p=null==t?void 0:t.size)?void 0:p.x},${null==(b=null==t?void 0:t.size)?void 0:b.y}) parent: ${t.id} width: ${s}${te}`),t.size){const e=s/2;r.size.x=n+te+e,u.debug(`abc91 layout blocks (calc) px, pyid:${r.id} startingPos=X${n} new startingPosX${r.size.x} ${e} padding=${te} width=${s} halfWidth=${e} => x:${r.size.x} y:${r.size.y} ${r.widthInColumns} (width * (child?.w || 1)) / 2 ${s*((null==r?void 0:r.widthInColumns)??1)/2}`),n=r.size.x+e,r.size.y=t.size.y-t.size.height/2+a*(o+te)+o/2+te,u.debug(`abc88 layout blocks (calc) px, pyid:${r.id}startingPosX${n}${te}${e}=>x:${r.size.x}y:${r.size.y}${r.widthInColumns}(width * (child?.w || 1)) / 2${s*((null==r?void 0:r.widthInColumns)??1)/2}`)}r.children&&re(r),i+=(null==r?void 0:r.widthInColumns)??1,u.debug("abc88 columnsPos",r,i)}}u.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${null==(x=null==e?void 0:e.size)?void 0:x.x} y: ${null==(S=null==e?void 0:e.size)?void 0:S.y} width: ${null==(f=null==e?void 0:e.size)?void 0:f.width}`)}function oe(e,{minX:t,minY:s,maxX:i,maxY:n}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&"root"!==e.id){const{x:r,y:o,width:l,height:a}=e.size;r-l/2<t&&(t=r-l/2),o-a/2<s&&(s=o-a/2),r+l/2>i&&(i=r+l/2),o+a/2>n&&(n=o+a/2)}if(e.children)for(const r of e.children)({minX:t,minY:s,maxX:i,maxY:n}=oe(r,{minX:t,minY:s,maxX:i,maxY:n}));return{minX:t,minY:s,maxX:i,maxY:n}}function le(e){const t=e.getBlock("root");if(!t)return;ne(t,e,0,0),re(t),u.debug("getBlocks",JSON.stringify(t,null,2));const{minX:s,minY:i,maxX:n,maxY:r}=oe(t);return{x:s,y:i,width:n-s,height:r-i}}function ae(e,t,s=!1){var i,n,r;const o=e;let l="default";((null==(i=null==o?void 0:o.classes)?void 0:i.length)||0)>0&&(l=((null==o?void 0:o.classes)??[]).join(" ")),l+=" flowchart-label";let a,c=0,u="";switch(o.type){case"round":c=5,u="rect";break;case"composite":c=0,u="composite",a=0;break;case"square":case"group":default:u="rect";break;case"diamond":u="question";break;case"hexagon":u="hexagon";break;case"block_arrow":u="block_arrow";break;case"odd":case"rect_left_inv_arrow":u="rect_left_inv_arrow";break;case"lean_right":u="lean_right";break;case"lean_left":u="lean_left";break;case"trapezoid":u="trapezoid";break;case"inv_trapezoid":u="inv_trapezoid";break;case"circle":u="circle";break;case"ellipse":u="ellipse";break;case"stadium":u="stadium";break;case"subroutine":u="subroutine";break;case"cylinder":u="cylinder";break;case"doublecircle":u="doublecircle"}const g=h((null==o?void 0:o.styles)??[]),y=o.label,p=o.size??{width:0,height:0,x:0,y:0};return{labelStyle:g.labelStyle,shape:u,labelText:y,rx:c,ry:c,class:l,style:g.style,id:o.id,directions:o.directions,width:p.width,height:p.height,x:p.x,y:p.y,positioned:s,intersect:void 0,type:o.type,padding:a??(null==(r=null==(n=d())?void 0:n.block)?void 0:r.padding)??0}}async function ce(e,t,i){const n=ae(t,0,!1);if("group"===n.type)return;const r=d(),o=await s(e,n,{config:r}),l=o.node().getBBox(),a=i.getBlock(n.id);a.size={width:l.width,height:l.height,x:0,y:0,node:o},i.setBlock(a),o.remove()}async function ue(e,t,n){const r=ae(t,0,!0);if("space"!==n.getBlock(r.id).type){const n=d();await s(e,r,{config:n}),t.intersect=null==r?void 0:r.intersect,i(r)}}async function he(e,t,s,i){for(const n of t)await i(e,n,s),n.children&&await he(e,n.children,s,i)}async function de(e,t,s){await he(e,t,s,ce)}async function ge(e,t,s){await he(e,t,s,ue)}async function ye(e,t,s,i,l){const a=new f({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const n of s)n.size&&a.setNode(n.id,{width:n.size.width,height:n.size.height,intersect:n.intersect});for(const c of t)if(c.start&&c.end){const t=i.getBlock(c.start),s=i.getBlock(c.end);if((null==t?void 0:t.size)&&(null==s?void 0:s.size)){const i=t.size,u=s.size,h=[{x:i.x,y:i.y},{x:i.x+(u.x-i.x)/2,y:i.y+(u.y-i.y)/2},{x:u.x,y:u.y}];n(e,{v:c.start,w:c.end,name:c.id},{...c,arrowTypeEnd:c.arrowTypeEnd,arrowTypeStart:c.arrowTypeStart,points:h,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"},void 0,"block",a,l),c.label&&(await r(e,{...c,label:c.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:c.arrowTypeEnd,arrowTypeStart:c.arrowTypeStart,points:h,classes:"edge-thickness-normal edge-pattern-solid flowchart-link LS-a1 LE-b1"}),o({...c,x:h[1].x,y:h[1].y},{originalPath:h}))}}}a(ne,"setBlockSizes"),a(re,"layoutBlocks"),a(oe,"findBounds"),a(le,"layout"),a(ae,"getNodeFromBlock"),a(ce,"calculateBlockSize"),a(ue,"insertBlockPositioned"),a(he,"performOperations"),a(de,"calculateBlockSizes"),a(ge,"insertBlocks"),a(ye,"insertEdges");var pe=a((function(e,t){return t.db.getClasses()}),"getClasses"),be={parser:_,db:Q,renderer:{draw:a((async function(e,t,s,i){const{securityLevel:n,block:r}=d(),o=i.db;let a;"sandbox"===n&&(a=S("#i"+t));const c=S("sandbox"===n?a.nodes()[0].contentDocument.body:"body"),h="sandbox"===n?c.select(`[id="${t}"]`):S(`[id="${t}"]`);l(h,["point","circle","cross"],i.type,t);const y=o.getBlocks(),p=o.getBlocksFlat(),b=o.getEdges(),x=h.insert("g").attr("class","block");await de(x,y,o);const f=le(o);if(await ge(x,y,o),await ye(x,b,p,o,t),f){const e=f,t=Math.max(1,Math.round(e.width/e.height*.125)),s=e.height+t+10,i=e.width+10,{useMaxWidth:n}=r;g(h,s,i,!!n),u.debug("Here Bounds",f,e),h.attr("viewBox",`${e.x-5} ${e.y-5} ${e.width+10} ${e.height+10}`)}}),"draw"),getClasses:pe},styles:ee};export{be as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{U as a,C as r}from"./mermaid-BNQ_dopT.js";const s=(s,o)=>a.lang.round(r.parse(s)[o]);export{s as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t;import{_ as e,i as s,d as n,O as i,s as u,g as a,b as r,c as o,p as c,q as l,e as h,t as A,l as p,u as d}from"./mermaid-BNQ_dopT.js";import{s as y}from"./transform-BZgIUWgO.js";var C=function(){var t=e((function(t,e,s,n){for(s=s||{},n=t.length;n--;s[t[n]]=e);return s}),"o"),s=[1,17],n=[1,18],i=[1,19],u=[1,39],a=[1,40],r=[1,25],o=[1,23],c=[1,24],l=[1,31],h=[1,32],A=[1,33],p=[1,34],d=[1,35],y=[1,36],C=[1,26],E=[1,27],m=[1,28],g=[1,29],f=[1,43],b=[1,30],T=[1,42],F=[1,44],k=[1,41],D=[1,45],B=[1,9],_=[1,8,9],S=[1,56],N=[1,57],L=[1,58],$=[1,59],x=[1,60],I=[1,61],O=[1,62],v=[1,8,9,40],R=[1,74],w=[1,8,9,12,13,22,38,40,43,60,61,62,63,64,65,66,71,73],P=[1,8,9,12,13,17,20,22,38,40,43,47,60,61,62,63,64,65,66,71,73,75,81,96,98,99],M=[13,75,81,96,98,99],G=[13,65,66,75,81,96,98,99],U=[13,60,61,62,63,64,75,81,96,98,99],z=[1,94],K=[1,111],Y=[1,109],j=[1,103],Q=[1,104],X=[1,105],W=[1,106],q=[1,107],H=[1,108],J=[1,110],V=[1,8,9,38,40,43],Z=[1,8,9,22],tt=[1,8,9,79],et=[1,8,9,22,74,75,79,81,82,83,84,85,86],st={trace:e((function(){}),"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,direction:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,namespaceIdentifier:37,STRUCT_START:38,classStatements:39,STRUCT_STOP:40,NAMESPACE:41,classIdentifier:42,STYLE_SEPARATOR:43,members:44,CLASS:45,ANNOTATION_START:46,ANNOTATION_END:47,MEMBER:48,SEPARATOR:49,relation:50,NOTE_FOR:51,noteText:52,NOTE:53,direction_tb:54,direction_bt:55,direction_rl:56,direction_lr:57,relationType:58,lineType:59,AGGREGATION:60,EXTENSION:61,COMPOSITION:62,DEPENDENCY:63,LOLLIPOP:64,LINE:65,DOTTED_LINE:66,CALLBACK:67,LINK:68,LINK_TARGET:69,CLICK:70,CALLBACK_NAME:71,CALLBACK_ARGS:72,HREF:73,STYLE:74,ALPHA:75,stylesOpt:76,CSSCLASS:77,style:78,COMMA:79,styleComponent:80,NUM:81,COLON:82,UNIT:83,SPACE:84,BRKT:85,PCT:86,commentToken:87,textToken:88,graphCodeTokens:89,textNoTagsToken:90,TAGSTART:91,TAGEND:92,"==":93,"--":94,DEFAULT:95,MINUS:96,keywords:97,UNICODE_TEXT:98,BQUOTE_STR:99,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",38:"STRUCT_START",40:"STRUCT_STOP",41:"NAMESPACE",43:"STYLE_SEPARATOR",45:"CLASS",46:"ANNOTATION_START",47:"ANNOTATION_END",48:"MEMBER",49:"SEPARATOR",51:"NOTE_FOR",53:"NOTE",54:"direction_tb",55:"direction_bt",56:"direction_rl",57:"direction_lr",60:"AGGREGATION",61:"EXTENSION",62:"COMPOSITION",63:"DEPENDENCY",64:"LOLLIPOP",65:"LINE",66:"DOTTED_LINE",67:"CALLBACK",68:"LINK",69:"LINK_TARGET",70:"CLICK",71:"CALLBACK_NAME",72:"CALLBACK_ARGS",73:"HREF",74:"STYLE",75:"ALPHA",77:"CSSCLASS",79:"COMMA",81:"NUM",82:"COLON",83:"UNIT",84:"SPACE",85:"BRKT",86:"PCT",89:"graphCodeTokens",91:"TAGSTART",92:"TAGEND",93:"==",94:"--",95:"DEFAULT",96:"MINUS",97:"keywords",98:"UNICODE_TEXT",99:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[37,2],[39,1],[39,2],[39,3],[24,1],[24,3],[24,4],[24,6],[42,2],[42,3],[26,4],[44,1],[44,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,1],[31,1],[31,1],[31,1],[50,3],[50,2],[50,2],[50,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[76,1],[76,3],[78,1],[78,2],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[80,1],[87,1],[87,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[90,1],[90,1],[90,1],[90,1],[16,1],[16,1],[16,1],[16,1],[19,1],[52,1]],performAction:e((function(t,e,s,n,i,u,a){var r=u.length-1;switch(i){case 8:this.$=u[r-1];break;case 9:case 12:case 14:this.$=u[r];break;case 10:case 13:this.$=u[r-2]+"."+u[r];break;case 11:case 15:case 91:this.$=u[r-1]+u[r];break;case 16:case 17:this.$=u[r-1]+"~"+u[r]+"~";break;case 18:n.addRelation(u[r]);break;case 19:u[r-1].title=n.cleanupLabel(u[r]),n.addRelation(u[r-1]);break;case 29:this.$=u[r].trim(),n.setAccTitle(this.$);break;case 30:case 31:this.$=u[r].trim(),n.setAccDescription(this.$);break;case 32:n.addClassesToNamespace(u[r-3],u[r-1]);break;case 33:n.addClassesToNamespace(u[r-4],u[r-1]);break;case 34:this.$=u[r],n.addNamespace(u[r]);break;case 35:case 45:case 88:this.$=[u[r]];break;case 36:this.$=[u[r-1]];break;case 37:u[r].unshift(u[r-2]),this.$=u[r];break;case 39:n.setCssClass(u[r-2],u[r]);break;case 40:n.addMembers(u[r-3],u[r-1]);break;case 41:n.setCssClass(u[r-5],u[r-3]),n.addMembers(u[r-5],u[r-1]);break;case 42:this.$=u[r],n.addClass(u[r]);break;case 43:this.$=u[r-1],n.addClass(u[r-1]),n.setClassLabel(u[r-1],u[r]);break;case 44:n.addAnnotation(u[r],u[r-2]);break;case 46:u[r].push(u[r-1]),this.$=u[r];break;case 47:case 49:case 50:break;case 48:n.addMember(u[r-1],n.cleanupLabel(u[r]));break;case 51:this.$={id1:u[r-2],id2:u[r],relation:u[r-1],relationTitle1:"none",relationTitle2:"none"};break;case 52:this.$={id1:u[r-3],id2:u[r],relation:u[r-1],relationTitle1:u[r-2],relationTitle2:"none"};break;case 53:this.$={id1:u[r-3],id2:u[r],relation:u[r-2],relationTitle1:"none",relationTitle2:u[r-1]};break;case 54:this.$={id1:u[r-4],id2:u[r],relation:u[r-2],relationTitle1:u[r-3],relationTitle2:u[r-1]};break;case 55:n.addNote(u[r],u[r-1]);break;case 56:n.addNote(u[r]);break;case 57:n.setDirection("TB");break;case 58:n.setDirection("BT");break;case 59:n.setDirection("RL");break;case 60:n.setDirection("LR");break;case 61:this.$={type1:u[r-2],type2:u[r],lineType:u[r-1]};break;case 62:this.$={type1:"none",type2:u[r],lineType:u[r-1]};break;case 63:this.$={type1:u[r-1],type2:"none",lineType:u[r]};break;case 64:this.$={type1:"none",type2:"none",lineType:u[r]};break;case 65:this.$=n.relationType.AGGREGATION;break;case 66:this.$=n.relationType.EXTENSION;break;case 67:this.$=n.relationType.COMPOSITION;break;case 68:this.$=n.relationType.DEPENDENCY;break;case 69:this.$=n.relationType.LOLLIPOP;break;case 70:this.$=n.lineType.LINE;break;case 71:this.$=n.lineType.DOTTED_LINE;break;case 72:case 78:this.$=u[r-2],n.setClickEvent(u[r-1],u[r]);break;case 73:case 79:this.$=u[r-3],n.setClickEvent(u[r-2],u[r-1]),n.setTooltip(u[r-2],u[r]);break;case 74:this.$=u[r-2],n.setLink(u[r-1],u[r]);break;case 75:this.$=u[r-3],n.setLink(u[r-2],u[r-1],u[r]);break;case 76:this.$=u[r-3],n.setLink(u[r-2],u[r-1]),n.setTooltip(u[r-2],u[r]);break;case 77:this.$=u[r-4],n.setLink(u[r-3],u[r-2],u[r]),n.setTooltip(u[r-3],u[r-1]);break;case 80:this.$=u[r-3],n.setClickEvent(u[r-2],u[r-1],u[r]);break;case 81:this.$=u[r-4],n.setClickEvent(u[r-3],u[r-2],u[r-1]),n.setTooltip(u[r-3],u[r]);break;case 82:this.$=u[r-3],n.setLink(u[r-2],u[r]);break;case 83:this.$=u[r-4],n.setLink(u[r-3],u[r-1],u[r]);break;case 84:this.$=u[r-4],n.setLink(u[r-3],u[r-1]),n.setTooltip(u[r-3],u[r]);break;case 85:this.$=u[r-5],n.setLink(u[r-4],u[r-2],u[r]),n.setTooltip(u[r-4],u[r-1]);break;case 86:this.$=u[r-2],n.setCssStyle(u[r-1],u[r]);break;case 87:n.setCssClass(u[r-1],u[r]);break;case 89:u[r-2].push(u[r]),this.$=u[r-2]}}),"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,18:20,19:38,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:s,34:n,36:i,37:21,41:u,42:22,45:a,46:r,48:o,49:c,51:l,53:h,54:A,55:p,56:d,57:y,67:C,68:E,70:m,74:g,75:f,77:b,81:T,96:F,98:k,99:D},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},t(B,[2,5],{8:[1,46]}),{8:[1,47]},t(_,[2,18],{22:[1,48]}),t(_,[2,20]),t(_,[2,21]),t(_,[2,22]),t(_,[2,23]),t(_,[2,24]),t(_,[2,25]),t(_,[2,26]),t(_,[2,27]),t(_,[2,28]),{33:[1,49]},{35:[1,50]},t(_,[2,31]),t(_,[2,47],{50:51,58:54,59:55,13:[1,52],22:[1,53],60:S,61:N,62:L,63:$,64:x,65:I,66:O}),{38:[1,63]},t(v,[2,38],{38:[1,65],43:[1,64]}),t(_,[2,49]),t(_,[2,50]),{16:66,75:f,81:T,96:F,98:k},{16:37,18:67,19:38,75:f,81:T,96:F,98:k,99:D},{16:37,18:68,19:38,75:f,81:T,96:F,98:k,99:D},{16:37,18:69,19:38,75:f,81:T,96:F,98:k,99:D},{75:[1,70]},{13:[1,71]},{16:37,18:72,19:38,75:f,81:T,96:F,98:k,99:D},{13:R,52:73},t(_,[2,57]),t(_,[2,58]),t(_,[2,59]),t(_,[2,60]),t(w,[2,12],{16:37,19:38,18:76,17:[1,75],20:[1,77],75:f,81:T,96:F,98:k,99:D}),t(w,[2,14],{20:[1,78]}),{15:79,16:80,75:f,81:T,96:F,98:k},{16:37,18:81,19:38,75:f,81:T,96:F,98:k,99:D},t(P,[2,114]),t(P,[2,115]),t(P,[2,116]),t(P,[2,117]),t([1,8,9,12,13,20,22,38,40,43,60,61,62,63,64,65,66,71,73],[2,118]),t(B,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,18:20,37:21,42:22,16:37,19:38,5:82,32:s,34:n,36:i,41:u,45:a,46:r,48:o,49:c,51:l,53:h,54:A,55:p,56:d,57:y,67:C,68:E,70:m,74:g,75:f,77:b,81:T,96:F,98:k,99:D}),{5:83,10:5,16:37,18:20,19:38,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:s,34:n,36:i,37:21,41:u,42:22,45:a,46:r,48:o,49:c,51:l,53:h,54:A,55:p,56:d,57:y,67:C,68:E,70:m,74:g,75:f,77:b,81:T,96:F,98:k,99:D},t(_,[2,19]),t(_,[2,29]),t(_,[2,30]),{13:[1,85],16:37,18:84,19:38,75:f,81:T,96:F,98:k,99:D},{50:86,58:54,59:55,60:S,61:N,62:L,63:$,64:x,65:I,66:O},t(_,[2,48]),{59:87,65:I,66:O},t(M,[2,64],{58:88,60:S,61:N,62:L,63:$,64:x}),t(G,[2,65]),t(G,[2,66]),t(G,[2,67]),t(G,[2,68]),t(G,[2,69]),t(U,[2,70]),t(U,[2,71]),{8:[1,90],24:91,39:89,42:22,45:a},{16:92,75:f,81:T,96:F,98:k},{44:93,48:z},{47:[1,95]},{13:[1,96]},{13:[1,97]},{71:[1,98],73:[1,99]},{22:K,74:Y,75:j,76:100,78:101,80:102,81:Q,82:X,83:W,84:q,85:H,86:J},{75:[1,112]},{13:R,52:113},t(_,[2,56]),t(_,[2,119]),{16:37,18:114,19:38,75:f,81:T,96:F,98:k,99:D},t(w,[2,15]),t(w,[2,16]),t(w,[2,17]),{38:[2,34]},{15:116,16:80,17:[1,115],38:[2,9],75:f,81:T,96:F,98:k},t(V,[2,42],{11:117,12:[1,118]}),t(B,[2,7]),{9:[1,119]},t(Z,[2,51]),{16:37,18:120,19:38,75:f,81:T,96:F,98:k,99:D},{13:[1,122],16:37,18:121,19:38,75:f,81:T,96:F,98:k,99:D},t(M,[2,63],{58:123,60:S,61:N,62:L,63:$,64:x}),t(M,[2,62]),{40:[1,124]},{24:91,39:125,42:22,45:a},{8:[1,126],40:[2,35]},t(v,[2,39],{38:[1,127]}),{40:[1,128]},{40:[2,45],44:129,48:z},{16:37,18:130,19:38,75:f,81:T,96:F,98:k,99:D},t(_,[2,72],{13:[1,131]}),t(_,[2,74],{13:[1,133],69:[1,132]}),t(_,[2,78],{13:[1,134],72:[1,135]}),{13:[1,136]},t(_,[2,86],{79:[1,137]}),t(tt,[2,88],{80:138,22:K,74:Y,75:j,81:Q,82:X,83:W,84:q,85:H,86:J}),t(et,[2,90]),t(et,[2,92]),t(et,[2,93]),t(et,[2,94]),t(et,[2,95]),t(et,[2,96]),t(et,[2,97]),t(et,[2,98]),t(et,[2,99]),t(et,[2,100]),t(_,[2,87]),t(_,[2,55]),t(w,[2,13]),{15:139,16:80,75:f,81:T,96:F,98:k},{38:[2,11]},t(V,[2,43]),{13:[1,140]},{1:[2,4]},t(Z,[2,53]),t(Z,[2,52]),{16:37,18:141,19:38,75:f,81:T,96:F,98:k,99:D},t(M,[2,61]),t(_,[2,32]),{40:[1,142]},{24:91,39:143,40:[2,36],42:22,45:a},{44:144,48:z},t(v,[2,40]),{40:[2,46]},t(_,[2,44]),t(_,[2,73]),t(_,[2,75]),t(_,[2,76],{69:[1,145]}),t(_,[2,79]),t(_,[2,80],{13:[1,146]}),t(_,[2,82],{13:[1,148],69:[1,147]}),{22:K,74:Y,75:j,78:149,80:102,81:Q,82:X,83:W,84:q,85:H,86:J},t(et,[2,91]),{38:[2,10]},{14:[1,150]},t(Z,[2,54]),t(_,[2,33]),{40:[2,37]},{40:[1,151]},t(_,[2,77]),t(_,[2,81]),t(_,[2,83]),t(_,[2,84],{69:[1,152]}),t(tt,[2,89],{80:138,22:K,74:Y,75:j,81:Q,82:X,83:W,84:q,85:H,86:J}),t(V,[2,8]),t(v,[2,41]),t(_,[2,85])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],79:[2,34],116:[2,11],119:[2,4],129:[2,46],139:[2,10],143:[2,37]},parseError:e((function(t,e){if(!e.recoverable){var s=new Error(t);throw s.hash=e,s}this.trace(t)}),"parseError"),parse:e((function(t){var s=this,n=[0],i=[],u=[null],a=[],r=this.table,o="",c=0,l=0,h=a.slice.call(arguments,1),A=Object.create(this.lexer),p={yy:{}};for(var d in this.yy)Object.prototype.hasOwnProperty.call(this.yy,d)&&(p.yy[d]=this.yy[d]);A.setInput(t,p.yy),p.yy.lexer=A,p.yy.parser=this,void 0===A.yylloc&&(A.yylloc={});var y=A.yylloc;a.push(y);var C=A.options&&A.options.ranges;function E(){var t;return"number"!=typeof(t=i.pop()||A.lex()||1)&&(t instanceof Array&&(t=(i=t).pop()),t=s.symbols_[t]||t),t}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError,e((function(t){n.length=n.length-2*t,u.length=u.length-t,a.length=a.length-t}),"popStack"),e(E,"lex");for(var m,g,f,b,T,F,k,D,B={};;){if(g=n[n.length-1],this.defaultActions[g]?f=this.defaultActions[g]:(null==m&&(m=E()),f=r[g]&&r[g][m]),void 0===f||!f.length||!f[0]){var _="";for(T in D=[],r[g])this.terminals_[T]&&T>2&&D.push("'"+this.terminals_[T]+"'");_=A.showPosition?"Parse error on line "+(c+1)+":\n"+A.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[m]||m)+"'":"Parse error on line "+(c+1)+": Unexpected "+(1==m?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(_,{text:A.match,token:this.terminals_[m]||m,line:A.yylineno,loc:y,expected:D})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+m);switch(f[0]){case 1:n.push(m),u.push(A.yytext),a.push(A.yylloc),n.push(f[1]),m=null,l=A.yyleng,o=A.yytext,c=A.yylineno,y=A.yylloc;break;case 2:if(F=this.productions_[f[1]][1],B.$=u[u.length-F],B._$={first_line:a[a.length-(F||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(F||1)].first_column,last_column:a[a.length-1].last_column},C&&(B._$.range=[a[a.length-(F||1)].range[0],a[a.length-1].range[1]]),void 0!==(b=this.performAction.apply(B,[o,l,c,p.yy,f[1],u,a].concat(h))))return b;F&&(n=n.slice(0,-1*F*2),u=u.slice(0,-1*F),a=a.slice(0,-1*F)),n.push(this.productions_[f[1]][0]),u.push(B.$),a.push(B._$),k=r[n[n.length-2]][n[n.length-1]],n.push(k);break;case 3:return!0}}return!0}),"parse")},nt=function(){return{EOF:1,parseError:e((function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)}),"parseError"),setInput:e((function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this}),"setInput"),input:e((function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t}),"input"),unput:e((function(t){var e=t.length,s=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var i=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:s?(s.length===n.length?this.yylloc.first_column:0)+n[n.length-s.length].length-s[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this}),"unput"),more:e((function(){return this._more=!0,this}),"more"),reject:e((function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"reject"),less:e((function(t){this.unput(this.match.slice(t))}),"less"),pastInput:e((function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")}),"pastInput"),upcomingInput:e((function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")}),"upcomingInput"),showPosition:e((function(){var t=this.pastInput(),e=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+e+"^"}),"showPosition"),test_match:e((function(t,e){var s,n,i;if(this.options.backtrack_lexer&&(i={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&&(i.yylloc.range=this.yylloc.range.slice(0))),(n=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],s=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var u in i)this[u]=i[u];return!1}return!1}),"test_match"),next:e((function(){if(this.done)return this.EOF;var t,e,s,n;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),u=0;u<i.length;u++)if((s=this._input.match(this.rules[i[u]]))&&(!e||s[0].length>e[0].length)){if(e=s,n=u,this.options.backtrack_lexer){if(!1!==(t=this.test_match(s,i[u])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[n]))&&t:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}),"next"),lex:e((function(){var t=this.next();return t||this.lex()}),"lex"),begin:e((function(t){this.conditionStack.push(t)}),"begin"),popState:e((function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]}),"popState"),_currentRules:e((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:e((function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"}),"topState"),pushState:e((function(t){this.begin(t)}),"pushState"),stateStackSize:e((function(){return this.conditionStack.length}),"stateStackSize"),options:{},performAction:e((function(t,e,s,n){switch(s){case 0:return 54;case 1:return 55;case 2:return 56;case 3:return 57;case 4:case 5:case 14:case 30:case 35:case 39:case 46:break;case 6:return this.begin("acc_title"),32;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),34;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:case 19:case 22:case 24:case 57:case 60:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:case 34:return 8;case 15:case 16:return 7;case 17:case 36:case 44:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 71;case 23:return 72;case 25:return"STR";case 26:this.begin("string");break;case 27:return 74;case 28:return this.begin("namespace"),41;case 29:case 38:return this.popState(),8;case 31:return this.begin("namespace-body"),38;case 32:case 42:return this.popState(),40;case 33:case 43:return"EOF_IN_STRUCT";case 37:return this.begin("class"),45;case 40:return this.popState(),this.popState(),40;case 41:return this.begin("class-body"),38;case 45:return"OPEN_IN_STRUCT";case 47:return"MEMBER";case 48:return 77;case 49:return 67;case 50:return 68;case 51:return 70;case 52:return 51;case 53:return 53;case 54:return 46;case 55:return 47;case 56:return 73;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:case 64:case 65:case 66:return 69;case 67:case 68:return 61;case 69:case 70:return 63;case 71:return 62;case 72:return 60;case 73:return 64;case 74:return 65;case 75:return 66;case 76:return 22;case 77:return 43;case 78:return 96;case 79:return 17;case 80:return"PLUS";case 81:return 82;case 82:return 79;case 83:case 84:return 85;case 85:return 86;case 86:case 87:return"EQUALS";case 88:return 75;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 81;case 93:return 98;case 94:case 95:return 84;case 96:return 9}}),"anonymous"),rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}}}();function it(){this.yy={}}return st.lexer=nt,e(it,"Parser"),it.prototype=st,st.Parser=it,new it}();C.parser=C;var E=C,m=["#","+","~","-",""],g=(e(t=class{constructor(t,e){this.memberType=e,this.visibility="",this.classifier="";const i=s(t,n());this.parseMember(i)}getDisplayDetails(){let t=this.visibility+i(this.id);"method"===this.memberType&&(t+=`(${i(this.parameters.trim())})`,this.returnType&&(t+=" : "+i(this.returnType))),t=t.trim();return{displayText:t,cssStyle:this.parseClassifier()}}parseMember(t){let e="";if("method"===this.memberType){const s=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(t);if(s){const t=s[1]?s[1].trim():"";if(m.includes(t)&&(this.visibility=t),this.id=s[2].trim(),this.parameters=s[3]?s[3].trim():"",e=s[4]?s[4].trim():"",this.returnType=s[5]?s[5].trim():"",""===e){const t=this.returnType.substring(this.returnType.length-1);/[$*]/.exec(t)&&(e=t,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const s=t.length,n=t.substring(0,1),i=t.substring(s-1);m.includes(n)&&(this.visibility=n),/[$*]/.exec(i)&&(e=i),this.id=t.substring(""===this.visibility?0:1,""===e?s:s-1)}this.classifier=e}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}},"ClassMember"),t),f="classId-",b=[],T=new Map,F=[],k=0,D=new Map,B=0,_=[],S=e((t=>h.sanitizeText(t,n())),"sanitizeText"),N=e((function(t){const e=h.sanitizeText(t,n());let s="",i=e;if(e.indexOf("~")>0){const t=e.split("~");i=S(t[0]),s=S(t[1])}return{className:i,type:s}}),"splitClassNameAndType"),L=e((function(t,e){const s=h.sanitizeText(t,n());e&&(e=S(e));const{className:i}=N(s);T.get(i).label=e}),"setClassLabel"),$=e((function(t){const e=h.sanitizeText(t,n()),{className:s,type:i}=N(e);if(T.has(s))return;const u=h.sanitizeText(s,n());T.set(u,{id:u,type:i,label:u,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:f+u+"-"+k}),k++}),"addClass"),x=e((function(t){const e=h.sanitizeText(t,n());if(T.has(e))return T.get(e).domId;throw new Error("Class not found: "+e)}),"lookUpDomId"),I=e((function(){b=[],T=new Map,F=[],(_=[]).push(J),D=new Map,B=0,V="TB",A()}),"clear"),O=e((function(t){return T.get(t)}),"getClass"),v=e((function(){return T}),"getClasses"),R=e((function(){return b}),"getRelations"),w=e((function(){return F}),"getNotes"),P=e((function(t){p.debug("Adding relation: "+JSON.stringify(t)),$(t.id1),$(t.id2),t.id1=N(t.id1).className,t.id2=N(t.id2).className,t.relationTitle1=h.sanitizeText(t.relationTitle1.trim(),n()),t.relationTitle2=h.sanitizeText(t.relationTitle2.trim(),n()),b.push(t)}),"addRelation"),M=e((function(t,e){const s=N(t).className;T.get(s).annotations.push(e)}),"addAnnotation"),G=e((function(t,e){$(t);const s=N(t).className,n=T.get(s);if("string"==typeof e){const t=e.trim();t.startsWith("<<")&&t.endsWith(">>")?n.annotations.push(S(t.substring(2,t.length-2))):t.indexOf(")")>0?n.methods.push(new g(t,"method")):t&&n.members.push(new g(t,"attribute"))}}),"addMember"),U=e((function(t,e){Array.isArray(e)&&(e.reverse(),e.forEach((e=>G(t,e))))}),"addMembers"),z=e((function(t,e){const s={id:`note${F.length}`,class:e,text:t};F.push(s)}),"addNote"),K=e((function(t){return t.startsWith(":")&&(t=t.substring(1)),S(t.trim())}),"cleanupLabel"),Y=e((function(t,e){t.split(",").forEach((function(t){let s=t;/\d/.exec(t[0])&&(s=f+s);const n=T.get(s);n&&n.cssClasses.push(e)}))}),"setCssClass"),j=e((function(t,e){t.split(",").forEach((function(t){void 0!==e&&(T.get(t).tooltip=S(e))}))}),"setTooltip"),Q=e((function(t,e){return e&&D.has(e)?D.get(e).classes.get(t).tooltip:T.get(t).tooltip}),"getTooltip"),X=e((function(t,e,s){const i=n();t.split(",").forEach((function(t){let n=t;/\d/.exec(t[0])&&(n=f+n);const u=T.get(n);u&&(u.link=d.formatUrl(e,i),"sandbox"===i.securityLevel?u.linkTarget="_top":u.linkTarget="string"==typeof s?S(s):"_blank")})),Y(t,"clickable")}),"setLink"),W=e((function(t,e,s){t.split(",").forEach((function(t){q(t,e,s),T.get(t).haveCallback=!0})),Y(t,"clickable")}),"setClickEvent"),q=e((function(t,e,s){const i=h.sanitizeText(t,n());if("loose"!==n().securityLevel)return;if(void 0===e)return;const u=i;if(T.has(u)){const t=x(u);let n=[];if("string"==typeof s){n=s.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let t=0;t<n.length;t++){let e=n[t].trim();e.startsWith('"')&&e.endsWith('"')&&(e=e.substr(1,e.length-2)),n[t]=e}}0===n.length&&n.push(t),_.push((function(){const s=document.querySelector(`[id="${t}"]`);null!==s&&s.addEventListener("click",(function(){d.runFunc(e,...n)}),!1)}))}}),"setClickFunc"),H=e((function(t){_.forEach((function(e){e(t)}))}),"bindFunctions"),J=e((function(t){let e=y(".mermaidTooltip");null===(e._groups||e)[0][0]&&(e=y("body").append("div").attr("class","mermaidTooltip").style("opacity",0));y(t).select("svg").selectAll("g.node").on("mouseover",(function(){const t=y(this);if(null===t.attr("title"))return;const s=this.getBoundingClientRect();e.transition().duration(200).style("opacity",".9"),e.text(t.attr("title")).style("left",window.scrollX+s.left+(s.right-s.left)/2+"px").style("top",window.scrollY+s.top-14+document.body.scrollTop+"px"),e.html(e.html().replace(/<br\/>/g,"<br/>")),t.classed("hover",!0)})).on("mouseout",(function(){e.transition().duration(500).style("opacity",0);y(this).classed("hover",!1)}))}),"setupToolTips");_.push(J);var V="TB",Z=e((()=>V),"getDirection"),tt=e((t=>{V=t}),"setDirection"),et=e((function(t){D.has(t)||(D.set(t,{id:t,classes:new Map,children:{},domId:f+t+"-"+B}),B++)}),"addNamespace"),st=e((function(t){return D.get(t)}),"getNamespace"),nt=e((function(){return D}),"getNamespaces"),it=e((function(t,e){if(D.has(t))for(const s of e){const{className:e}=N(s);T.get(e).parent=t,D.get(t).classes.set(e,T.get(e))}}),"addClassesToNamespace"),ut=e((function(t,e){const s=T.get(t);if(e&&s)for(const n of e)n.includes(",")?s.styles.push(...n.split(",")):s.styles.push(n)}),"setCssStyle"),at={setAccTitle:u,getAccTitle:a,getAccDescription:r,setAccDescription:o,getConfig:e((()=>n().class),"getConfig"),addClass:$,bindFunctions:H,clear:I,getClass:O,getClasses:v,getNotes:w,addAnnotation:M,addNote:z,getRelations:R,addRelation:P,getDirection:Z,setDirection:tt,addMember:G,addMembers:U,cleanupLabel:K,lineType:{LINE:0,DOTTED_LINE:1},relationType:{AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},setClickEvent:W,setCssClass:Y,setLink:X,getTooltip:Q,setTooltip:j,lookUpDomId:x,setDiagramTitle:c,getDiagramTitle:l,setClassLabel:L,addNamespace:et,addClassesToNamespace:it,getNamespace:st,getNamespaces:nt,setCssStyle:ut},rt=e((t=>`g.classGroup text {\n fill: ${t.nodeBorder||t.classText};\n stroke: none;\n font-family: ${t.fontFamily};\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.nodeLabel, .edgeLabel {\n color: ${t.classText};\n}\n.edgeLabel .label rect {\n fill: ${t.mainBkg};\n}\n.label text {\n fill: ${t.classText};\n}\n.edgeLabel .label span {\n background: ${t.mainBkg};\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ${t.mainBkg};\n stroke: ${t.nodeBorder};\n}\n\ng.classGroup line {\n stroke: ${t.nodeBorder};\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ${t.mainBkg};\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ${t.nodeBorder};\n font-size: 10px;\n}\n\n.relation {\n stroke: ${t.lineColor};\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n.dotted-line{\n stroke-dasharray: 1 2;\n}\n\n#compositionStart, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ${t.lineColor} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: transparent !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopStart, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n#lollipopEnd, .lollipop {\n fill: ${t.mainBkg} !important;\n stroke: ${t.lineColor} !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n line-height: initial;\n}\n\n.classTitleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ${t.textColor};\n}\n`),"getStyles");export{at as a,E as c,rt as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as t,l as e,d as a,T as r,V as i,S as s,u as n,W as l,X as d,Y as o,i as h}from"./mermaid-BNQ_dopT.js";import{s as c}from"./transform-BZgIUWgO.js";import{l as y,k as p}from"./step-CjxFKgSe.js";var g=t(((t,e,a,r)=>{e.forEach((e=>{x[e](t,a,r)}))}),"insertMarkers"),x={extension:t(((t,a,r)=>{e.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+a+"-extensionStart").attr("class","marker extension "+a).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+a+"-extensionEnd").attr("class","marker extension "+a).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")}),"extension"),composition:t(((t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",a+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"composition"),aggregation:t(((t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",a+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")}),"aggregation"),dependency:t(((t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",a+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"dependency"),lollipop:t(((t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",a+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)}),"lollipop"),point:t(((t,e,a)=>{t.append("marker").attr("id",a+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",a+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"point"),circle:t(((t,e,a)=>{t.append("marker").attr("id",a+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",a+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")}),"circle"),cross:t(((t,e,a)=>{t.append("marker").attr("id",a+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",a+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")}),"cross"),barb:t(((t,e,a)=>{t.append("defs").append("marker").attr("id",a+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}),"barb")},f=g;function u(t,e){e&&t.attr("style",e)}function w(t){const e=c(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=e.append("xhtml:div"),r=t.label,i=t.isNode?"nodeLabel":"edgeLabel",s=a.append("span");return s.html(r),u(s,t.labelStyle),s.attr("class",i),u(a,t.labelStyle),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),e.node()}t(u,"applyStyle"),t(w,"addHtmlLabel");var b=t(((t,i,s,n)=>{let l=t||"";if("object"==typeof l&&(l=l[0]),r(a().flowchart.htmlLabels)){l=l.replace(/\\n|\n/g,"<br />"),e.debug("vertexText"+l);return w({isNode:n,label:d(o(l)),labelStyle:i.replace("fill:","color:")})}{const t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",i.replace("color:","fill:"));let e=[];e="string"==typeof l?l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?l:[];for(const a of e){const e=document.createElementNS("http://www.w3.org/2000/svg","tspan");e.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e.setAttribute("dy","1em"),e.setAttribute("x","0"),s?e.setAttribute("class","title-row"):e.setAttribute("class","row"),e.textContent=a.trim(),t.appendChild(e)}return t}}),"createLabel"),m=t((async(e,s,n,l)=>{const d=a();let y;const p=s.useHtmlLabels||r(d.flowchart.htmlLabels);y=n||"node default";const g=e.insert("g").attr("class",y).attr("id",s.domId||s.id),x=g.insert("g").attr("class","label").attr("style",s.labelStyle);let f;f=void 0===s.labelText?"":"string"==typeof s.labelText?s.labelText:s.labelText[0];const u=x.node();let w;w="markdown"===s.labelType?i(x,h(o(f),d),{useHtmlLabels:p,width:s.width||d.flowchart.wrappingWidth,classes:"markdown-node-label"},d):u.appendChild(b(h(o(f),d),s.labelStyle,!1,l));let m=w.getBBox();const k=s.padding/2;if(r(d.flowchart.htmlLabels)){const e=w.children[0],a=c(w),r=e.getElementsByTagName("img");if(r){const e=""===f.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map((a=>new Promise((r=>{function i(){if(a.style.display="flex",a.style.flexDirection="column",e){const t=d.fontSize?d.fontSize:window.getComputedStyle(document.body).fontSize,e=5,r=parseInt(t,10)*e+"px";a.style.minWidth=r,a.style.maxWidth=r}else a.style.width="100%";r(a)}t(i,"setupImage"),setTimeout((()=>{a.complete&&i()})),a.addEventListener("error",i),a.addEventListener("load",i)})))))}m=e.getBoundingClientRect(),a.attr("width",m.width),a.attr("height",m.height)}return p?x.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"):x.attr("transform","translate(0, "+-m.height/2+")"),s.centerLabel&&x.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),x.insert("rect",":first-child"),{shapeSvg:g,bbox:m,halfPadding:k,label:x}}),"labelHelper"),k=t(((t,e)=>{const a=e.node().getBBox();t.width=a.width,t.height=a.height}),"updateNodeBounds");function v(t,e,a,r){return t.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+a/2+")")}t(v,"insertPolygonShape");var L=t((t=>{const e=new Set;for(const a of t)switch(a){case"x":e.add("right"),e.add("left");break;case"y":e.add("up"),e.add("down");break;default:e.add(a)}return e}),"expandAndDeduplicateDirections"),S=t(((t,e,a)=>{const r=L(t),i=e.height+2*a.padding,s=i/2,n=e.width+2*s+a.padding,l=a.padding/2;return r.has("right")&&r.has("left")&&r.has("up")&&r.has("down")?[{x:0,y:0},{x:s,y:0},{x:n/2,y:2*l},{x:n-s,y:0},{x:n,y:0},{x:n,y:-i/3},{x:n+2*l,y:-i/2},{x:n,y:-2*i/3},{x:n,y:-i},{x:n-s,y:-i},{x:n/2,y:-i-2*l},{x:s,y:-i},{x:0,y:-i},{x:0,y:-2*i/3},{x:-2*l,y:-i/2},{x:0,y:-i/3}]:r.has("right")&&r.has("left")&&r.has("up")?[{x:s,y:0},{x:n-s,y:0},{x:n,y:-i/2},{x:n-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}]:r.has("right")&&r.has("left")&&r.has("down")?[{x:0,y:0},{x:s,y:-i},{x:n-s,y:-i},{x:n,y:0}]:r.has("right")&&r.has("up")&&r.has("down")?[{x:0,y:0},{x:n,y:-s},{x:n,y:-i+s},{x:0,y:-i}]:r.has("left")&&r.has("up")&&r.has("down")?[{x:n,y:0},{x:0,y:-s},{x:0,y:-i+s},{x:n,y:-i}]:r.has("right")&&r.has("left")?[{x:s,y:0},{x:s,y:-l},{x:n-s,y:-l},{x:n-s,y:0},{x:n,y:-i/2},{x:n-s,y:-i},{x:n-s,y:-i+l},{x:s,y:-i+l},{x:s,y:-i},{x:0,y:-i/2}]:r.has("up")&&r.has("down")?[{x:n/2,y:0},{x:0,y:-l},{x:s,y:-l},{x:s,y:-i+l},{x:0,y:-i+l},{x:n/2,y:-i},{x:n,y:-i+l},{x:n-s,y:-i+l},{x:n-s,y:-l},{x:n,y:-l}]:r.has("right")&&r.has("up")?[{x:0,y:0},{x:n,y:-s},{x:0,y:-i}]:r.has("right")&&r.has("down")?[{x:0,y:0},{x:n,y:0},{x:0,y:-i}]:r.has("left")&&r.has("up")?[{x:n,y:0},{x:0,y:-s},{x:n,y:-i}]:r.has("left")&&r.has("down")?[{x:n,y:0},{x:0,y:0},{x:n,y:-i}]:r.has("right")?[{x:s,y:-l},{x:s,y:-l},{x:n-s,y:-l},{x:n-s,y:0},{x:n,y:-i/2},{x:n-s,y:-i},{x:n-s,y:-i+l},{x:s,y:-i+l},{x:s,y:-i+l}]:r.has("left")?[{x:s,y:0},{x:s,y:-l},{x:n-s,y:-l},{x:n-s,y:-i+l},{x:s,y:-i+l},{x:s,y:-i},{x:0,y:-i/2}]:r.has("up")?[{x:s,y:-l},{x:s,y:-i+l},{x:0,y:-i+l},{x:n/2,y:-i},{x:n,y:-i+l},{x:n-s,y:-i+l},{x:n-s,y:-l}]:r.has("down")?[{x:n/2,y:0},{x:0,y:-l},{x:s,y:-l},{x:s,y:-i+l},{x:n-s,y:-i+l},{x:n-s,y:-l},{x:n,y:-l}]:[{x:0,y:0}]}),"getArrowPoints");function M(t,e){return t.intersect(e)}t(M,"intersectNode");var _=M;function B(t,e,a,r){var i=t.x,s=t.y,n=i-r.x,l=s-r.y,d=Math.sqrt(e*e*l*l+a*a*n*n),o=Math.abs(e*a*n/d);r.x<i&&(o=-o);var h=Math.abs(e*a*l/d);return r.y<s&&(h=-h),{x:i+o,y:s+h}}t(B,"intersectEllipse");var T=B;function C(t,e,a){return T(t,e,e,a)}t(C,"intersectCircle");var E=C;function $(t,e,a,r){var i,s,n,l,d,o,h,c,y,p,g,x,f;if(i=e.y-t.y,n=t.x-e.x,d=e.x*t.y-t.x*e.y,y=i*a.x+n*a.y+d,p=i*r.x+n*r.y+d,!(0!==y&&0!==p&&P(y,p)||(s=r.y-a.y,l=a.x-r.x,o=r.x*a.y-a.x*r.y,h=s*t.x+l*t.y+o,c=s*e.x+l*e.y+o,0!==h&&0!==c&&P(h,c)||0==(g=i*l-s*n))))return x=Math.abs(g/2),{x:(f=n*o-l*d)<0?(f-x)/g:(f+x)/g,y:(f=s*d-i*o)<0?(f-x)/g:(f+x)/g}}function P(t,e){return t*e>0}t($,"intersectLine"),t(P,"sameSign");var N=$,R=W;function W(t,e,a){var r=t.x,i=t.y,s=[],n=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach((function(t){n=Math.min(n,t.x),l=Math.min(l,t.y)})):(n=Math.min(n,e.x),l=Math.min(l,e.y));for(var d=r-t.width/2-n,o=i-t.height/2-l,h=0;h<e.length;h++){var c=e[h],y=e[h<e.length-1?h+1:0],p=N(t,a,{x:d+c.x,y:o+c.y},{x:d+y.x,y:o+y.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort((function(t,e){var r=t.x-a.x,i=t.y-a.y,s=Math.sqrt(r*r+i*i),n=e.x-a.x,l=e.y-a.y,d=Math.sqrt(n*n+l*l);return s<d?-1:s===d?0:1})),s[0]):t}t(W,"intersectPolygon");var H=t(((t,e)=>{var a,r,i=t.x,s=t.y,n=e.x-i,l=e.y-s,d=t.width/2,o=t.height/2;return Math.abs(l)*d>Math.abs(n)*o?(l<0&&(o=-o),a=0===l?0:o*n/l,r=o):(n<0&&(d=-d),a=d,r=0===n?0:d*l/n),{x:i+a,y:s+r}}),"intersectRect"),I={node:_,circle:E,ellipse:T,polygon:R,rect:H},Y=t((async(t,r)=>{r.useHtmlLabels||a().flowchart.htmlLabels||(r.centerLabel=!0);const{shapeSvg:i,bbox:s,halfPadding:n}=await m(t,r,"node "+r.classes,!0);e.info("Classes = ",r.classes);const l=i.insert("rect",":first-child");return l.attr("rx",r.rx).attr("ry",r.ry).attr("x",-s.width/2-n).attr("y",-s.height/2-n).attr("width",s.width+r.padding).attr("height",s.height+r.padding),k(r,l),r.intersect=function(t){return I.rect(r,t)},i}),"note"),D=t((t=>t?" "+t:""),"formatClass"),X=t(((t,e)=>`${e||"node default"}${D(t.classes)} ${D(t.class)}`),"getClassesFromNode"),j=t((async(t,a)=>{const{shapeSvg:r,bbox:i}=await m(t,a,X(a,void 0),!0),s=i.width+a.padding+(i.height+a.padding),n=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}];e.info("Question main (Circle)");const l=v(r,s,s,n);return l.attr("style",a.style),k(a,l),a.intersect=function(t){return e.warn("Intersect called"),I.polygon(a,n,t)},r}),"question"),U=t(((t,e)=>{const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}];return a.insert("polygon",":first-child").attr("points",r.map((function(t){return t.x+","+t.y})).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return I.circle(e,14,t)},a}),"choice"),A=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e,void 0),!0),i=r.height+e.padding,s=i/4,n=r.width+2*s+e.padding,l=[{x:s,y:0},{x:n-s,y:0},{x:n,y:-i/2},{x:n-s,y:-i},{x:s,y:-i},{x:0,y:-i/2}],d=v(a,n,i,l);return d.attr("style",e.style),k(e,d),e.intersect=function(t){return I.polygon(e,l,t)},a}),"hexagon"),O=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,void 0,!0),i=r.height+2*e.padding,s=i/2,n=r.width+2*s+e.padding,l=S(e.directions,r,e),d=v(a,n,i,l);return d.attr("style",e.style),k(e,d),e.intersect=function(t){return I.polygon(e,l,t)},a}),"block_arrow"),z=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e,void 0),!0),i=r.width+e.padding,s=r.height+e.padding,n=[{x:-s/2,y:0},{x:i,y:0},{x:i,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return v(a,i,s,n).attr("style",e.style),e.width=i+s,e.height=s,e.intersect=function(t){return I.polygon(e,n,t)},a}),"rect_left_inv_arrow"),Z=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e),!0),i=r.width+e.padding,s=r.height+e.padding,n=[{x:-2*s/6,y:0},{x:i-s/6,y:0},{x:i+2*s/6,y:-s},{x:s/6,y:-s}],l=v(a,i,s,n);return l.attr("style",e.style),k(e,l),e.intersect=function(t){return I.polygon(e,n,t)},a}),"lean_right"),q=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e,void 0),!0),i=r.width+e.padding,s=r.height+e.padding,n=[{x:2*s/6,y:0},{x:i+s/6,y:0},{x:i-2*s/6,y:-s},{x:-s/6,y:-s}],l=v(a,i,s,n);return l.attr("style",e.style),k(e,l),e.intersect=function(t){return I.polygon(e,n,t)},a}),"lean_left"),V=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e,void 0),!0),i=r.width+e.padding,s=r.height+e.padding,n=[{x:-2*s/6,y:0},{x:i+2*s/6,y:0},{x:i-s/6,y:-s},{x:s/6,y:-s}],l=v(a,i,s,n);return l.attr("style",e.style),k(e,l),e.intersect=function(t){return I.polygon(e,n,t)},a}),"trapezoid"),F=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e,void 0),!0),i=r.width+e.padding,s=r.height+e.padding,n=[{x:s/6,y:0},{x:i-s/6,y:0},{x:i+2*s/6,y:-s},{x:-2*s/6,y:-s}],l=v(a,i,s,n);return l.attr("style",e.style),k(e,l),e.intersect=function(t){return I.polygon(e,n,t)},a}),"inv_trapezoid"),J=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e,void 0),!0),i=r.width+e.padding,s=r.height+e.padding,n=[{x:0,y:0},{x:i+s/2,y:0},{x:i,y:-s/2},{x:i+s/2,y:-s},{x:0,y:-s}],l=v(a,i,s,n);return l.attr("style",e.style),k(e,l),e.intersect=function(t){return I.polygon(e,n,t)},a}),"rect_right_inv_arrow"),Q=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e,void 0),!0),i=r.width+e.padding,s=i/2,n=s/(2.5+i/50),l=r.height+n+e.padding,d="M 0,"+n+" a "+s+","+n+" 0,0,0 "+i+" 0 a "+s+","+n+" 0,0,0 "+-i+" 0 l 0,"+l+" a "+s+","+n+" 0,0,0 "+i+" 0 l 0,"+-l,o=a.attr("label-offset-y",n).insert("path",":first-child").attr("style",e.style).attr("d",d).attr("transform","translate("+-i/2+","+-(l/2+n)+")");return k(e,o),e.intersect=function(t){const a=I.rect(e,t),r=a.x-e.x;if(0!=s&&(Math.abs(r)<e.width/2||Math.abs(r)==e.width/2&&Math.abs(a.y-e.y)>e.height/2-n)){let i=n*n*(1-r*r/(s*s));0!=i&&(i=Math.sqrt(i)),i=n-i,t.y-e.y>0&&(i=-i),a.y+=i}return a},a}),"cylinder"),G=t((async(t,a)=>{const{shapeSvg:r,bbox:i,halfPadding:s}=await m(t,a,"node "+a.classes+" "+a.class,!0),n=r.insert("rect",":first-child"),l=a.positioned?a.width:i.width+a.padding,d=a.positioned?a.height:i.height+a.padding,o=a.positioned?-l/2:-i.width/2-s,h=a.positioned?-d/2:-i.height/2-s;if(n.attr("class","basic label-container").attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("x",o).attr("y",h).attr("width",l).attr("height",d),a.props){const t=new Set(Object.keys(a.props));a.props.borders&&(et(n,a.props.borders,l,d),t.delete("borders")),t.forEach((t=>{e.warn(`Unknown node property ${t}`)}))}return k(a,n),a.intersect=function(t){return I.rect(a,t)},r}),"rect"),K=t((async(t,a)=>{const{shapeSvg:r,bbox:i,halfPadding:s}=await m(t,a,"node "+a.classes,!0),n=r.insert("rect",":first-child"),l=a.positioned?a.width:i.width+a.padding,d=a.positioned?a.height:i.height+a.padding,o=a.positioned?-l/2:-i.width/2-s,h=a.positioned?-d/2:-i.height/2-s;if(n.attr("class","basic cluster composite label-container").attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("x",o).attr("y",h).attr("width",l).attr("height",d),a.props){const t=new Set(Object.keys(a.props));a.props.borders&&(et(n,a.props.borders,l,d),t.delete("borders")),t.forEach((t=>{e.warn(`Unknown node property ${t}`)}))}return k(a,n),a.intersect=function(t){return I.rect(a,t)},r}),"composite"),tt=t((async(t,a)=>{const{shapeSvg:r}=await m(t,a,"label",!0);e.trace("Classes = ",a.class);const i=r.insert("rect",":first-child");if(i.attr("width",0).attr("height",0),r.attr("class","label edgeLabel"),a.props){const t=new Set(Object.keys(a.props));a.props.borders&&(et(i,a.props.borders,0,0),t.delete("borders")),t.forEach((t=>{e.warn(`Unknown node property ${t}`)}))}return k(a,i),a.intersect=function(t){return I.rect(a,t)},r}),"labelRect");function et(a,r,i,s){const n=[],l=t((t=>{n.push(t,0)}),"addBorder"),d=t((t=>{n.push(0,t)}),"skipBorder");r.includes("t")?(e.debug("add top border"),l(i)):d(i),r.includes("r")?(e.debug("add right border"),l(s)):d(s),r.includes("b")?(e.debug("add bottom border"),l(i)):d(i),r.includes("l")?(e.debug("add left border"),l(s)):d(s),a.attr("stroke-dasharray",n.join(" "))}t(et,"applyNodePropertyBorders");var at=t(((t,i)=>{let s;s=i.classes?"node "+i.classes:"node default";const n=t.insert("g").attr("class",s).attr("id",i.domId||i.id),l=n.insert("rect",":first-child"),d=n.insert("line"),o=n.insert("g").attr("class","label"),h=i.labelText.flat?i.labelText.flat():i.labelText;let y="";y="object"==typeof h?h[0]:h,e.info("Label text abc79",y,h,"object"==typeof h);const p=o.node().appendChild(b(y,i.labelStyle,!0,!0));let g={width:0,height:0};if(r(a().flowchart.htmlLabels)){const t=p.children[0],e=c(p);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}e.info("Text 2",h);const x=h.slice(1,h.length);let f=p.getBBox();const u=o.node().appendChild(b(x.join?x.join("<br/>"):x,i.labelStyle,!0,!0));if(r(a().flowchart.htmlLabels)){const t=u.children[0],e=c(u);g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}const w=i.padding/2;return c(u).attr("transform","translate( "+(g.width>f.width?0:(f.width-g.width)/2)+", "+(f.height+w+5)+")"),c(p).attr("transform","translate( "+(g.width<f.width?0:-(f.width-g.width)/2)+", 0)"),g=o.node().getBBox(),o.attr("transform","translate("+-g.width/2+", "+(-g.height/2-w+3)+")"),l.attr("class","outer title-state").attr("x",-g.width/2-w).attr("y",-g.height/2-w).attr("width",g.width+i.padding).attr("height",g.height+i.padding),d.attr("class","divider").attr("x1",-g.width/2-w).attr("x2",g.width/2+w).attr("y1",-g.height/2-w+f.height+w).attr("y2",-g.height/2-w+f.height+w),k(i,l),i.intersect=function(t){return I.rect(i,t)},n}),"rectWithTitle"),rt=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e,void 0),!0),i=r.height+e.padding,s=r.width+i/4+e.padding,n=a.insert("rect",":first-child").attr("style",e.style).attr("rx",i/2).attr("ry",i/2).attr("x",-s/2).attr("y",-i/2).attr("width",s).attr("height",i);return k(e,n),e.intersect=function(t){return I.rect(e,t)},a}),"stadium"),it=t((async(t,a)=>{const{shapeSvg:r,bbox:i,halfPadding:s}=await m(t,a,X(a,void 0),!0),n=r.insert("circle",":first-child");return n.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("r",i.width/2+s).attr("width",i.width+a.padding).attr("height",i.height+a.padding),e.info("Circle main"),k(a,n),a.intersect=function(t){return e.info("Circle intersect",a,i.width/2+s,t),I.circle(a,i.width/2+s,t)},r}),"circle"),st=t((async(t,a)=>{const{shapeSvg:r,bbox:i,halfPadding:s}=await m(t,a,X(a,void 0),!0),n=r.insert("g",":first-child"),l=n.insert("circle"),d=n.insert("circle");return n.attr("class",a.class),l.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("r",i.width/2+s+5).attr("width",i.width+a.padding+10).attr("height",i.height+a.padding+10),d.attr("style",a.style).attr("rx",a.rx).attr("ry",a.ry).attr("r",i.width/2+s).attr("width",i.width+a.padding).attr("height",i.height+a.padding),e.info("DoubleCircle main"),k(a,l),a.intersect=function(t){return e.info("DoubleCircle intersect",a,i.width/2+s+5,t),I.circle(a,i.width/2+s+5,t)},r}),"doublecircle"),nt=t((async(t,e)=>{const{shapeSvg:a,bbox:r}=await m(t,e,X(e,void 0),!0),i=r.width+e.padding,s=r.height+e.padding,n=[{x:0,y:0},{x:i,y:0},{x:i,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:i+8,y:0},{x:i+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],l=v(a,i,s,n);return l.attr("style",e.style),k(e,l),e.intersect=function(t){return I.polygon(e,n,t)},a}),"subroutine"),lt=t(((t,e)=>{const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=a.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),k(e,r),e.intersect=function(t){return I.circle(e,7,t)},a}),"start"),dt=t(((t,e,a)=>{const r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);let i=70,s=10;"LR"===a&&(i=10,s=70);const n=r.append("rect").attr("x",-1*i/2).attr("y",-1*s/2).attr("width",i).attr("height",s).attr("class","fork-join");return k(e,n),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return I.rect(e,t)},r}),"forkJoin"),ot={rhombus:j,composite:K,question:j,rect:G,labelRect:tt,rectWithTitle:at,choice:U,circle:it,doublecircle:st,stadium:rt,hexagon:A,block_arrow:O,rect_left_inv_arrow:z,lean_right:Z,lean_left:q,trapezoid:V,inv_trapezoid:F,rect_right_inv_arrow:J,cylinder:Q,start:lt,end:t(((t,e)=>{const a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),r=a.insert("circle",":first-child"),i=a.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),k(e,i),e.intersect=function(t){return I.circle(e,7,t)},a}),"end"),note:Y,subroutine:nt,fork:dt,join:dt,class_box:t(((t,e)=>{var i;const s=e.padding/2;let n;n=e.classes?"node "+e.classes:"node default";const l=t.insert("g").attr("class",n).attr("id",e.domId||e.id),d=l.insert("rect",":first-child"),o=l.insert("line"),h=l.insert("line");let y=0,p=4;const g=l.insert("g").attr("class","label");let x=0;const f=null==(i=e.classData.annotations)?void 0:i[0],u=e.classData.annotations[0]?"«"+e.classData.annotations[0]+"»":"",w=g.node().appendChild(b(u,e.labelStyle,!0,!0));let m=w.getBBox();if(r(a().flowchart.htmlLabels)){const t=w.children[0],e=c(w);m=t.getBoundingClientRect(),e.attr("width",m.width),e.attr("height",m.height)}e.classData.annotations[0]&&(p+=m.height+4,y+=m.width);let v=e.classData.label;void 0!==e.classData.type&&""!==e.classData.type&&(a().flowchart.htmlLabels?v+="<"+e.classData.type+">":v+="<"+e.classData.type+">");const L=g.node().appendChild(b(v,e.labelStyle,!0,!0));c(L).attr("class","classTitle");let S=L.getBBox();if(r(a().flowchart.htmlLabels)){const t=L.children[0],e=c(L);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}p+=S.height+4,S.width>y&&(y=S.width);const M=[];e.classData.members.forEach((t=>{const i=t.getDisplayDetails();let s=i.displayText;a().flowchart.htmlLabels&&(s=s.replace(/</g,"<").replace(/>/g,">"));const n=g.node().appendChild(b(s,i.cssStyle?i.cssStyle:e.labelStyle,!0,!0));let l=n.getBBox();if(r(a().flowchart.htmlLabels)){const t=n.children[0],e=c(n);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}l.width>y&&(y=l.width),p+=l.height+4,M.push(n)})),p+=8;const _=[];if(e.classData.methods.forEach((t=>{const i=t.getDisplayDetails();let s=i.displayText;a().flowchart.htmlLabels&&(s=s.replace(/</g,"<").replace(/>/g,">"));const n=g.node().appendChild(b(s,i.cssStyle?i.cssStyle:e.labelStyle,!0,!0));let l=n.getBBox();if(r(a().flowchart.htmlLabels)){const t=n.children[0],e=c(n);l=t.getBoundingClientRect(),e.attr("width",l.width),e.attr("height",l.height)}l.width>y&&(y=l.width),p+=l.height+4,_.push(n)})),p+=8,f){let t=(y-m.width)/2;c(w).attr("transform","translate( "+(-1*y/2+t)+", "+-1*p/2+")"),x=m.height+4}let B=(y-S.width)/2;return c(L).attr("transform","translate( "+(-1*y/2+B)+", "+(-1*p/2+x)+")"),x+=S.height+4,o.attr("class","divider").attr("x1",-y/2-s).attr("x2",y/2+s).attr("y1",-p/2-s+8+x).attr("y2",-p/2-s+8+x),x+=8,M.forEach((t=>{c(t).attr("transform","translate( "+-y/2+", "+(-1*p/2+x+4)+")");const e=null==t?void 0:t.getBBox();x+=((null==e?void 0:e.height)??0)+4})),x+=8,h.attr("class","divider").attr("x1",-y/2-s).attr("x2",y/2+s).attr("y1",-p/2-s+8+x).attr("y2",-p/2-s+8+x),x+=8,_.forEach((t=>{c(t).attr("transform","translate( "+-y/2+", "+(-1*p/2+x)+")");const e=null==t?void 0:t.getBBox();x+=((null==e?void 0:e.height)??0)+4})),d.attr("style",e.style).attr("class","outer title-state").attr("x",-y/2-s).attr("y",-p/2-s).attr("width",y+e.padding).attr("height",p+e.padding),k(e,d),e.intersect=function(t){return I.rect(e,t)},l}),"class_box")},ht={},ct=t((async(t,e,r)=>{let i,s;if(e.link){let n;"sandbox"===a().securityLevel?n="_top":e.linkTarget&&(n=e.linkTarget||"_blank"),i=t.insert("svg:a").attr("xlink:href",e.link).attr("target",n),s=await ot[e.shape](i,e,r)}else s=await ot[e.shape](t,e,r),i=s;return e.tooltip&&s.attr("title",e.tooltip),e.class&&s.attr("class","node default "+e.class),ht[e.id]=i,e.haveCallback&&ht[e.id].attr("class",ht[e.id].attr("class")+" clickable"),i}),"insertNode"),yt=t(((t,e)=>{ht[e.id]=t}),"setNodeElem"),pt=t((()=>{ht={}}),"clear"),gt=t((t=>{const a=ht[t.id];e.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");const r=t.diff||0;return t.clusterNode?a.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):a.attr("transform","translate("+t.x+", "+t.y+")"),r}),"positionNode"),xt=t(((t,e,a,r,i)=>{e.arrowTypeStart&&ut(t,"start",e.arrowTypeStart,a,r,i),e.arrowTypeEnd&&ut(t,"end",e.arrowTypeEnd,a,r,i)}),"addEdgeMarkers"),ft={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},ut=t(((t,a,r,i,s,n)=>{const l=ft[r];if(!l)return void e.warn(`Unknown arrow type: ${r}`);const d="start"===a?"Start":"End";t.attr(`marker-${a}`,`url(${i}#${s}_${n}-${l}${d})`)}),"addEdgeMarker"),wt={},bt={},mt=t((()=>{wt={},bt={}}),"clear"),kt=t(((t,e)=>{const s=a(),n=r(s.flowchart.htmlLabels),l="markdown"===e.labelType?i(t,e.label,{style:e.labelStyle,useHtmlLabels:n,addSvgBackground:!0},s):b(e.label,e.labelStyle),d=t.insert("g").attr("class","edgeLabel"),o=d.insert("g").attr("class","label");o.node().appendChild(l);let h,y=l.getBBox();if(n){const t=l.children[0],e=c(l);y=t.getBoundingClientRect(),e.attr("width",y.width),e.attr("height",y.height)}if(o.attr("transform","translate("+-y.width/2+", "+-y.height/2+")"),wt[e.id]=d,e.width=y.width,e.height=y.height,e.startLabelLeft){const a=b(e.startLabelLeft,e.labelStyle),r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");h=i.node().appendChild(a);const s=a.getBBox();i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),bt[e.id]||(bt[e.id]={}),bt[e.id].startLeft=r,vt(h,e.startLabelLeft)}if(e.startLabelRight){const a=b(e.startLabelRight,e.labelStyle),r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");h=r.node().appendChild(a),i.node().appendChild(a);const s=a.getBBox();i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),bt[e.id]||(bt[e.id]={}),bt[e.id].startRight=r,vt(h,e.startLabelRight)}if(e.endLabelLeft){const a=b(e.endLabelLeft,e.labelStyle),r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");h=i.node().appendChild(a);const s=a.getBBox();i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),r.node().appendChild(a),bt[e.id]||(bt[e.id]={}),bt[e.id].endLeft=r,vt(h,e.endLabelLeft)}if(e.endLabelRight){const a=b(e.endLabelRight,e.labelStyle),r=t.insert("g").attr("class","edgeTerminals"),i=r.insert("g").attr("class","inner");h=i.node().appendChild(a);const s=a.getBBox();i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),r.node().appendChild(a),bt[e.id]||(bt[e.id]={}),bt[e.id].endRight=r,vt(h,e.endLabelRight)}return l}),"insertEdgeLabel");function vt(t,e){a().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}t(vt,"setTerminalWidth");var Lt=t(((t,r)=>{e.debug("Moving label abc88 ",t.id,t.label,wt[t.id],r);let i=r.updatedPath?r.updatedPath:r.originalPath;const l=a(),{subGraphTitleTotalMargin:d}=s(l);if(t.label){const a=wt[t.id];let s=t.x,l=t.y;if(i){const a=n.calcLabelPosition(i);e.debug("Moving label "+t.label+" from (",s,",",l,") to (",a.x,",",a.y,") abc88"),r.updatedPath&&(s=a.x,l=a.y)}a.attr("transform",`translate(${s}, ${l+d/2})`)}if(t.startLabelLeft){const e=bt[t.id].startLeft;let a=t.x,r=t.y;if(i){const e=n.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",i);a=e.x,r=e.y}e.attr("transform",`translate(${a}, ${r})`)}if(t.startLabelRight){const e=bt[t.id].startRight;let a=t.x,r=t.y;if(i){const e=n.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",i);a=e.x,r=e.y}e.attr("transform",`translate(${a}, ${r})`)}if(t.endLabelLeft){const e=bt[t.id].endLeft;let a=t.x,r=t.y;if(i){const e=n.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",i);a=e.x,r=e.y}e.attr("transform",`translate(${a}, ${r})`)}if(t.endLabelRight){const e=bt[t.id].endRight;let a=t.x,r=t.y;if(i){const e=n.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",i);a=e.x,r=e.y}e.attr("transform",`translate(${a}, ${r})`)}}),"positionEdgeLabel"),St=t(((t,e)=>{const a=t.x,r=t.y,i=Math.abs(e.x-a),s=Math.abs(e.y-r),n=t.width/2,l=t.height/2;return i>=n||s>=l}),"outsideNode"),Mt=t(((t,a,r)=>{e.debug(`intersection calc abc89:\n outsidePoint: ${JSON.stringify(a)}\n insidePoint : ${JSON.stringify(r)}\n node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);const i=t.x,s=t.y,n=Math.abs(i-r.x),l=t.width/2;let d=r.x<a.x?l-n:l+n;const o=t.height/2,h=Math.abs(a.y-r.y),c=Math.abs(a.x-r.x);if(Math.abs(s-a.y)*l>Math.abs(i-a.x)*o){let t=r.y<a.y?a.y-o-s:s-o-a.y;d=c*t/h;const i={x:r.x<a.x?r.x+d:r.x-c+d,y:r.y<a.y?r.y+h-t:r.y-h+t};return 0===d&&(i.x=a.x,i.y=a.y),0===c&&(i.x=a.x),0===h&&(i.y=a.y),e.debug(`abc89 topp/bott calc, Q ${h}, q ${t}, R ${c}, r ${d}`,i),i}{d=r.x<a.x?a.x-l-i:i-l-a.x;let t=h*d/c,s=r.x<a.x?r.x+c-d:r.x-c+d,n=r.y<a.y?r.y+t:r.y-t;return e.debug(`sides calc abc89, Q ${h}, q ${t}, R ${c}, r ${d}`,{_x:s,_y:n}),0===d&&(s=a.x,n=a.y),0===c&&(s=a.x),0===h&&(n=a.y),{x:s,y:n}}}),"intersection"),_t=t(((t,a)=>{e.debug("abc88 cutPathAtIntersect",t,a);let r=[],i=t[0],s=!1;return t.forEach((t=>{if(St(a,t)||s)i=t,s||r.push(t);else{const e=Mt(a,i,t);let n=!1;r.forEach((t=>{n=n||t.x===e.x&&t.y===e.y})),r.some((t=>t.x===e.x&&t.y===e.y))||r.push(e),s=!0}})),r}),"cutPathAtIntersect"),Bt=t((function(t,r,i,s,n,d,o){let h=i.points;e.debug("abc88 InsertEdge: edge=",i,"e=",r);let c=!1;const g=d.node(r.v);var x=d.node(r.w);(null==x?void 0:x.intersect)&&(null==g?void 0:g.intersect)&&(h=h.slice(1,i.points.length-1),h.unshift(g.intersect(h[0])),h.push(x.intersect(h[h.length-1]))),i.toCluster&&(e.debug("to cluster abc88",s[i.toCluster]),h=_t(i.points,s[i.toCluster].node),c=!0),i.fromCluster&&(e.debug("from cluster abc88",s[i.fromCluster]),h=_t(h.reverse(),s[i.fromCluster].node).reverse(),c=!0);const f=h.filter((t=>!Number.isNaN(t.y)));let u=p;!i.curve||"graph"!==n&&"flowchart"!==n||(u=i.curve);const{x:w,y:b}=l(i),m=y().x(w).y(b).curve(u);let k;switch(i.thickness){case"normal":k="edge-thickness-normal";break;case"thick":case"invisible":k="edge-thickness-thick";break;default:k=""}switch(i.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed"}const v=t.append("path").attr("d",m(f)).attr("id",i.id).attr("class"," "+k+(i.classes?" "+i.classes:"")).attr("style",i.style);let L="";(a().flowchart.arrowMarkerAbsolute||a().state.arrowMarkerAbsolute)&&(L=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,L=L.replace(/\(/g,"\\("),L=L.replace(/\)/g,"\\)")),xt(v,i,L,o,n);let S={};return c&&(S.updatedPath=h),S.originalPath=i.points,S}),"insertEdge");export{mt as a,kt as b,pt as c,Bt as d,Lt as e,b as f,H as g,ct as i,f as m,gt as p,yt as s,k as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as t,a as e,s as a}from"./chunk-NGC4727B-BQzEs090.js";import{_ as r,d as i,l as n,j as d,u as o,O as s}from"./mermaid-BNQ_dopT.js";import{s as p}from"./transform-BZgIUWgO.js";import{G as l}from"./graph-DdADGOru.js";import{l as g}from"./layout-DG2h9DvT.js";import{l as c,k as h}from"./step-CjxFKgSe.js";import"./index-Czf0P_31.js";import"./_baseUniq-DCqXUnel.js";import"./_baseEach-DIjafkx3.js";import"./min-BIubUKUD.js";import"./_baseMap-DULNqShX.js";import"./sortBy-RWqkCoE9.js";var f=0,x=r((function(t,e,a,i,d){const s=r((function(t){switch(t){case d.db.relationType.AGGREGATION:return"aggregation";case d.db.relationType.EXTENSION:return"extension";case d.db.relationType.COMPOSITION:return"composition";case d.db.relationType.DEPENDENCY:return"dependency";case d.db.relationType.LOLLIPOP:return"lollipop"}}),"getRelationType");e.points=e.points.filter((t=>!Number.isNaN(t.y)));const p=e.points,l=c().x((function(t){return t.x})).y((function(t){return t.y})).curve(h),g=t.append("path").attr("d",l(p)).attr("id","edge"+f).attr("class","relation");let x,y,u="";i.arrowMarkerAbsolute&&(u=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,u=u.replace(/\(/g,"\\("),u=u.replace(/\)/g,"\\)")),1==a.relation.lineType&&g.attr("class","relation dashed-line"),10==a.relation.lineType&&g.attr("class","relation dotted-line"),"none"!==a.relation.type1&&g.attr("marker-start","url("+u+"#"+s(a.relation.type1)+"Start)"),"none"!==a.relation.type2&&g.attr("marker-end","url("+u+"#"+s(a.relation.type2)+"End)");const m=e.points.length;let b,w,k,E,L=o.calcLabelPosition(e.points);if(x=L.x,y=L.y,m%2!=0&&m>1){let t=o.calcCardinalityPosition("none"!==a.relation.type1,e.points,e.points[0]),r=o.calcCardinalityPosition("none"!==a.relation.type2,e.points,e.points[m-1]);n.debug("cardinality_1_point "+JSON.stringify(t)),n.debug("cardinality_2_point "+JSON.stringify(r)),b=t.x,w=t.y,k=r.x,E=r.y}if(void 0!==a.title){const e=t.append("g").attr("class","classLabel"),r=e.append("text").attr("class","label").attr("x",x).attr("y",y).attr("fill","red").attr("text-anchor","middle").text(a.title);window.label=r;const n=r.node().getBBox();e.insert("rect",":first-child").attr("class","box").attr("x",n.x-i.padding/2).attr("y",n.y-i.padding/2).attr("width",n.width+i.padding).attr("height",n.height+i.padding)}if(n.info("Rendering relation "+JSON.stringify(a)),void 0!==a.relationTitle1&&"none"!==a.relationTitle1){t.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",b).attr("y",w).attr("fill","black").attr("font-size","6").text(a.relationTitle1)}if(void 0!==a.relationTitle2&&"none"!==a.relationTitle2){t.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",k).attr("y",E).attr("fill","black").attr("font-size","6").text(a.relationTitle2)}f++}),"drawEdge"),y=r((function(t,e,a,r){n.debug("Rendering class ",e,a);const i=e.id,d={id:i,label:e.id,width:0,height:0},o=t.append("g").attr("id",r.db.lookUpDomId(i)).attr("class","classGroup");let s;s=e.link?o.append("svg:a").attr("xlink:href",e.link).attr("target",e.linkTarget).append("text").attr("y",a.textHeight+a.padding).attr("x",0):o.append("text").attr("y",a.textHeight+a.padding).attr("x",0);let p=!0;e.annotations.forEach((function(t){const e=s.append("tspan").text("«"+t+"»");p||e.attr("dy",a.textHeight),p=!1}));let l=u(e);const g=s.append("tspan").text(l).attr("class","title");p||g.attr("dy",a.textHeight);const c=s.node().getBBox().height;let h,f,x;if(e.members.length>0){h=o.append("line").attr("x1",0).attr("y1",a.padding+c+a.dividerMargin/2).attr("y2",a.padding+c+a.dividerMargin/2);const t=o.append("text").attr("x",a.padding).attr("y",c+a.dividerMargin+a.textHeight).attr("fill","white").attr("class","classText");p=!0,e.members.forEach((function(e){b(t,e,p,a),p=!1})),f=t.node().getBBox()}if(e.methods.length>0){x=o.append("line").attr("x1",0).attr("y1",a.padding+c+a.dividerMargin+f.height).attr("y2",a.padding+c+a.dividerMargin+f.height);const t=o.append("text").attr("x",a.padding).attr("y",c+2*a.dividerMargin+f.height+a.textHeight).attr("fill","white").attr("class","classText");p=!0,e.methods.forEach((function(e){b(t,e,p,a),p=!1}))}const y=o.node().getBBox();var m=" ";e.cssClasses.length>0&&(m+=e.cssClasses.join(" "));const w=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",y.width+2*a.padding).attr("height",y.height+a.padding+.5*a.dividerMargin).attr("class",m).node().getBBox().width;return s.node().childNodes.forEach((function(t){t.setAttribute("x",(w-t.getBBox().width)/2)})),e.tooltip&&s.insert("title").text(e.tooltip),h&&h.attr("x2",w),x&&x.attr("x2",w),d.width=w,d.height=y.height+a.padding+.5*a.dividerMargin,d}),"drawClass"),u=r((function(t){let e=t.id;return t.type&&(e+="<"+s(t.type)+">"),e}),"getClassTitleString"),m=r((function(t,e,a,r){n.debug("Rendering note ",e,a);const i=e.id,d={id:i,text:e.text,width:0,height:0},o=t.append("g").attr("id",i).attr("class","classGroup");let s=o.append("text").attr("y",a.textHeight+a.padding).attr("x",0);const p=JSON.parse(`"${e.text}"`).split("\n");p.forEach((function(t){n.debug(`Adding line: ${t}`),s.append("tspan").text(t).attr("class","title").attr("dy",a.textHeight)}));const l=o.node().getBBox(),g=o.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",l.width+2*a.padding).attr("height",l.height+p.length*a.textHeight+a.padding+.5*a.dividerMargin).node().getBBox().width;return s.node().childNodes.forEach((function(t){t.setAttribute("x",(g-t.getBBox().width)/2)})),d.width=g,d.height=l.height+p.length*a.textHeight+a.padding+.5*a.dividerMargin,d}),"drawNote"),b=r((function(t,e,a,r){const{displayText:i,cssStyle:n}=e.getDisplayDetails(),d=t.append("tspan").attr("x",r.padding).text(i);""!==n&&d.attr("style",e.cssStyle),a||d.attr("dy",r.textHeight)}),"addTspan"),w={getClassTitleString:u,drawClass:y,drawEdge:x,drawNote:m},k={},E=r((function(t){const e=Object.entries(k).find((e=>e[1].label===t));if(e)return e[0]}),"getGraphId"),L=r((function(t){t.append("defs").append("marker").attr("id","extensionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id","extensionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z"),t.append("defs").append("marker").attr("id","compositionStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","compositionEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","aggregationStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","aggregationEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","dependencyStart").attr("class","extension").attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")}),"insertMarkers"),N={parser:t,db:e,renderer:{draw:r((function(t,e,a,r){const o=i().class;k={},n.info("Rendering diagram "+t);const s=i().securityLevel;let c;"sandbox"===s&&(c=p("#i"+e));const h=p("sandbox"===s?c.nodes()[0].contentDocument.body:"body"),f=h.select(`[id='${e}']`);L(f);const x=new l({multigraph:!0});x.setGraph({isMultiGraph:!0}),x.setDefaultEdgeLabel((function(){return{}}));const y=r.db.getClasses(),u=[...y.keys()];for(const i of u){const t=y.get(i),e=w.drawClass(f,t,o,r);k[e.id]=e,x.setNode(e.id,e),n.info("Org height: "+e.height)}r.db.getRelations().forEach((function(t){n.info("tjoho"+E(t.id1)+E(t.id2)+JSON.stringify(t)),x.setEdge(E(t.id1),E(t.id2),{relation:t},t.title||"DEFAULT")}));r.db.getNotes().forEach((function(t){n.debug(`Adding note: ${JSON.stringify(t)}`);const e=w.drawNote(f,t,o,r);k[e.id]=e,x.setNode(e.id,e),t.class&&y.has(t.class)&&x.setEdge(t.id,E(t.class),{relation:{id1:t.id,id2:t.class,relation:{type1:"none",type2:"none",lineType:10}}},"DEFAULT")})),g(x),x.nodes().forEach((function(t){void 0!==t&&void 0!==x.node(t)&&(n.debug("Node "+t+": "+JSON.stringify(x.node(t))),h.select("#"+(r.db.lookUpDomId(t)||t)).attr("transform","translate("+(x.node(t).x-x.node(t).width/2)+","+(x.node(t).y-x.node(t).height/2)+" )"))})),x.edges().forEach((function(t){void 0!==t&&void 0!==x.edge(t)&&(n.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(x.edge(t))),w.drawEdge(f,x.edge(t),x.edge(t).relation,o,r))}));const m=f.node().getBBox(),b=m.width+40,N=m.height+40;d(f,N,b,o.useMaxWidth);const T=`${m.x-20} ${m.y-20} ${b} ${N}`;n.debug(`viewBox ${T}`),f.attr("viewBox",T)}),"draw")},styles:a,init:r((t=>{t.class||(t.class={}),t.class.arrowMarkerAbsolute=t.arrowMarkerAbsolute,e.clear()}),"init")};export{N as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{m as e,c as t,a as n,u as i,s as r,i as a,b as o,p as s,d,e as l,f as c,g as h}from"./chunk-REEJFE46-D-tQcFs7.js";import{c as g,a as f,s as p}from"./chunk-NGC4727B-BQzEs090.js";import{_ as u,l as w,d as y,u as b,P as v,Q as m,R as x,v as N,e as E,S,T,V as C}from"./mermaid-BNQ_dopT.js";import{s as k}from"./transform-BZgIUWgO.js";import{G as X}from"./graph-DdADGOru.js";import{l as D}from"./layout-DG2h9DvT.js";import{w as B}from"./json-yf_vWmgp.js";import{n as j}from"./step-CjxFKgSe.js";import"./index-Czf0P_31.js";import"./_baseUniq-DCqXUnel.js";import"./_baseEach-DIjafkx3.js";import"./min-BIubUKUD.js";import"./_baseMap-DULNqShX.js";import"./sortBy-RWqkCoE9.js";import"./clone-DRG_CBNx.js";var L={},O={},R={},G=u((()=>{O={},R={},L={}}),"clear"),I=u(((e,t)=>(w.trace("In isDescendant",t," ",e," = ",O[t].includes(e)),!!O[t].includes(e))),"isDescendant"),J=u(((e,t)=>(w.info("Descendants of ",t," is ",O[t]),w.info("Edge is ",e),e.v!==t&&(e.w!==t&&(O[t]?O[t].includes(e.v)||I(e.v,t)||I(e.w,t)||O[t].includes(e.w):(w.debug("Tilt, ",t,",not in descendants"),!1))))),"edgeInCluster"),A=u(((e,t,n,i)=>{w.warn("Copying children of ",e,"root",i,"data",t.node(e),i);const r=t.children(e)||[];e!==i&&r.push(e),w.warn("Copying (nodes) clusterId",e,"nodes",r),r.forEach((r=>{if(t.children(r).length>0)A(r,t,n,i);else{const a=t.node(r);w.info("cp ",r," to ",i," with parent ",e),n.setNode(r,a),i!==t.parent(r)&&(w.warn("Setting parent",r,t.parent(r)),n.setParent(r,t.parent(r))),e!==i&&r!==e?(w.debug("Setting parent",r,e),n.setParent(r,e)):(w.info("In copy ",e,"root",i,"data",t.node(e),i),w.debug("Not Setting parent for node=",r,"cluster!==rootId",e!==i,"node!==clusterId",r!==e));const o=t.edges(r);w.debug("Copying Edges",o),o.forEach((r=>{w.info("Edge",r);const a=t.edge(r.v,r.w,r.name);w.info("Edge data",a,i);try{J(r,i)?(w.info("Copying as ",r.v,r.w,a,r.name),n.setEdge(r.v,r.w,a,r.name),w.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):w.info("Skipping copy of edge ",r.v,"--\x3e",r.w," rootId: ",i," clusterId:",e)}catch(o){w.error(o)}}))}w.debug("Removing node",r),t.removeNode(r)}))}),"copy"),M=u(((e,t)=>{const n=t.children(e);let i=[...n];for(const r of n)R[r]=e,i=[...i,...M(r,t)];return i}),"extractDescendants"),P=u(((e,t)=>{w.trace("Searching",e);const n=t.children(e);if(w.trace("Searching children of id ",e,n),n.length<1)return w.trace("This is a valid node",e),e;for(const i of n){const n=P(i,t);if(n)return w.trace("Found replacement for",e," => ",n),n}}),"findNonClusterChild"),F=u((e=>L[e]&&L[e].externalConnections&&L[e]?L[e].id:e),"getAnchorId"),$=u(((e,t)=>{if(!e||t>10)w.debug("Opting out, no graph ");else{w.debug("Opting in, graph "),e.nodes().forEach((function(t){e.children(t).length>0&&(w.warn("Cluster identified",t," Replacement id in edges: ",P(t,e)),O[t]=M(t,e),L[t]={id:P(t,e),clusterData:e.node(t)})})),e.nodes().forEach((function(t){const n=e.children(t),i=e.edges();n.length>0?(w.debug("Cluster identified",t,O),i.forEach((e=>{if(e.v!==t&&e.w!==t){I(e.v,t)^I(e.w,t)&&(w.warn("Edge: ",e," leaves cluster ",t),w.warn("Descendants of XXX ",t,": ",O[t]),L[t].externalConnections=!0)}}))):w.debug("Not a cluster ",t,O)}));for(let t of Object.keys(L)){const n=L[t].id,i=e.parent(n);i!==t&&L[i]&&!L[i].externalConnections&&(L[t].id=i)}e.edges().forEach((function(t){const n=e.edge(t);w.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),w.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));let i=t.v,r=t.w;if(w.warn("Fix XXX",L,"ids:",t.v,t.w,"Translating: ",L[t.v]," --- ",L[t.w]),L[t.v]&&L[t.w]&&L[t.v]===L[t.w]){w.warn("Fixing and trixing link to self - removing XXX",t.v,t.w,t.name),w.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),i=F(t.v),r=F(t.w),e.removeEdge(t.v,t.w,t.name);const a=t.w+"---"+t.v;e.setNode(a,{domId:a,id:a,labelStyle:"",labelText:n.label,padding:0,shape:"labelRect",style:""});const o=structuredClone(n),s=structuredClone(n);o.label="",o.arrowTypeEnd="none",s.label="",o.fromCluster=t.v,s.toCluster=t.v,e.setEdge(i,a,o,t.name+"-cyclic-special"),e.setEdge(a,r,s,t.name+"-cyclic-special")}else if(L[t.v]||L[t.w]){if(w.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),i=F(t.v),r=F(t.w),e.removeEdge(t.v,t.w,t.name),i!==t.v){const r=e.parent(i);L[r].externalConnections=!0,n.fromCluster=t.v}if(r!==t.w){const i=e.parent(r);L[i].externalConnections=!0,n.toCluster=t.w}w.warn("Fix Replacing with XXX",i,r,t.name),e.setEdge(i,r,n,t.name)}})),w.warn("Adjusted Graph",B(e)),_(e,0),w.trace(L)}}),"adjustClustersAndEdges"),_=u(((e,t)=>{var n,i;if(w.warn("extractor - ",t,B(e),e.children("D")),t>10)return void w.error("Bailing out");let r=e.nodes(),a=!1;for(const o of r){const t=e.children(o);a=a||t.length>0}if(a){w.debug("Nodes = ",r,t);for(const a of r)if(w.debug("Extracting node",a,L,L[a]&&!L[a].externalConnections,!e.parent(a),e.node(a),e.children("D")," Depth ",t),L[a])if(!L[a].externalConnections&&e.children(a)&&e.children(a).length>0){w.warn("Cluster without external connections, without a parent and with children",a,t);let r="TB"===e.graph().rankdir?"LR":"TB";(null==(i=null==(n=L[a])?void 0:n.clusterData)?void 0:i.dir)&&(r=L[a].clusterData.dir,w.warn("Fixing dir",L[a].clusterData.dir,r));const o=new X({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));w.warn("Old graph before copy",B(e)),A(a,e,o,a),e.setNode(a,{clusterNode:!0,id:a,clusterData:L[a].clusterData,labelText:L[a].labelText,graph:o}),w.warn("New graph after copy node: (",a,")",B(o)),w.debug("Old graph after copy",B(e))}else w.warn("Cluster ** ",a," **not meeting the criteria !externalConnections:",!L[a].externalConnections," no parent: ",!e.parent(a)," children ",e.children(a)&&e.children(a).length>0,e.children("D"),t),w.debug(L);else w.debug("Not a cluster",a,t);r=e.nodes(),w.warn("New list of nodes",r);for(const n of r){const i=e.node(n);w.warn(" Now next level",n,i),i.clusterNode&&_(i.graph,t+1)}}else w.debug("Done, no node has children",e.nodes())}),"extractor"),H=u(((e,t)=>{if(0===t.length)return[];let n=Object.assign(t);return t.forEach((t=>{const i=e.children(t),r=H(e,i);n=[...n,...r]})),n}),"sorter"),W=u((e=>H(e,e.children())),"sortNodesByHierarchy"),q=u(((e,t)=>{w.info("Creating subgraph rect for ",t.id,t);const n=y(),i=e.insert("g").attr("class","cluster"+(t.class?" "+t.class:"")).attr("id",t.id),r=i.insert("rect",":first-child"),a=T(n.flowchart.htmlLabels),o=i.insert("g").attr("class","cluster-label"),s="markdown"===t.labelType?C(o,t.labelText,{style:t.labelStyle,useHtmlLabels:a},n):o.node().appendChild(c(t.labelText,t.labelStyle,void 0,!0));let d=s.getBBox();if(T(n.flowchart.htmlLabels)){const e=s.children[0],t=k(s);d=e.getBoundingClientRect(),t.attr("width",d.width),t.attr("height",d.height)}const l=0*t.padding,g=l/2,f=t.width<=d.width+l?d.width+l:t.width;t.width<=d.width+l?t.diff=(d.width-t.width)/2-t.padding/2:t.diff=-t.padding/2,w.trace("Data ",t,JSON.stringify(t)),r.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-f/2).attr("y",t.y-t.height/2-g).attr("width",f).attr("height",t.height+l);const{subGraphTitleTopMargin:p}=S(n);a?o.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+p})`):o.attr("transform",`translate(${t.x}, ${t.y-t.height/2+p})`);const u=r.node().getBBox();return t.width=u.width,t.height=u.height,t.intersect=function(e){return h(t,e)},i}),"rect"),z=u(((e,t)=>{const n=e.insert("g").attr("class","note-cluster").attr("id",t.id),i=n.insert("rect",":first-child"),r=0*t.padding,a=r/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+r).attr("height",t.height+r).attr("fill","none");const o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.intersect=function(e){return h(t,e)},n}),"noteGroup"),Q={rect:q,roundedWithTitle:u(((e,t)=>{const n=y(),i=e.insert("g").attr("class",t.classes).attr("id",t.id),r=i.insert("rect",":first-child"),a=i.insert("g").attr("class","cluster-label"),o=i.append("rect"),s=a.node().appendChild(c(t.labelText,t.labelStyle,void 0,!0));let d=s.getBBox();if(T(n.flowchart.htmlLabels)){const e=s.children[0],t=k(s);d=e.getBoundingClientRect(),t.attr("width",d.width),t.attr("height",d.height)}d=s.getBBox();const l=0*t.padding,g=l/2,f=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(d.width+0*t.padding-t.width)/2:t.diff=-t.padding/2,r.attr("class","outer").attr("x",t.x-f/2-g).attr("y",t.y-t.height/2-g).attr("width",f+l).attr("height",t.height+l),o.attr("class","inner").attr("x",t.x-f/2-g).attr("y",t.y-t.height/2-g+d.height-1).attr("width",f+l).attr("height",t.height+l-d.height-3);const{subGraphTitleTopMargin:p}=S(n);a.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2-t.padding/3+(T(n.flowchart.htmlLabels)?5:3)+p})`);const u=r.node().getBBox();return t.height=u.height,t.intersect=function(e){return h(t,e)},i}),"roundedWithTitle"),noteGroup:z,divider:u(((e,t)=>{const n=e.insert("g").attr("class",t.classes).attr("id",t.id),i=n.insert("rect",":first-child"),r=0*t.padding,a=r/2;i.attr("class","divider").attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2).attr("width",t.width+r).attr("height",t.height+r);const o=i.node().getBBox();return t.width=o.width,t.height=o.height,t.diff=-t.padding/2,t.intersect=function(e){return h(t,e)},n}),"divider")},U={},V=u(((e,t)=>{w.trace("Inserting cluster");const n=t.shape||"rect";U[t.id]=Q[n](e,t)}),"insertCluster"),Y=u((()=>{U={}}),"clear"),K=u((async(e,t,n,c,h,g)=>{w.info("Graph in recursive render: XXX",B(t),h);const f=t.graph().rankdir;w.trace("Dir in recursive render - dir:",f);const p=e.insert("g").attr("class","root");t.nodes()?w.info("Recursive render XXX",t.nodes()):w.info("No nodes found for",t),t.edges().length>0&&w.trace("Recursive edges",t.edge(t.edges()[0]));const u=p.insert("g").attr("class","clusters"),y=p.insert("g").attr("class","edgePaths"),b=p.insert("g").attr("class","edgeLabels"),v=p.insert("g").attr("class","nodes");await Promise.all(t.nodes().map((async function(e){const o=t.node(e);if(void 0!==h){const n=JSON.parse(JSON.stringify(h.clusterData));w.info("Setting data for cluster XXX (",e,") ",n,h),t.setNode(h.id,n),t.parent(e)||(w.trace("Setting parent",e,h.id),t.setParent(e,h.id,n))}if(w.info("(Insert) Node XXX"+e+": "+JSON.stringify(t.node(e))),null==o?void 0:o.clusterNode){w.info("Cluster identified",e,o.width,t.node(e));const{ranksep:a,nodesep:s}=t.graph();o.graph.setGraph({...o.graph.graph(),ranksep:a,nodesep:s});const d=await K(v,o.graph,n,c,t.node(e),g),l=d.elem;i(o,l),o.diff=d.diff||0,w.info("Node bounds (abc123)",e,o,o.width,o.x,o.y),r(l,o),w.warn("Recursive render complete ",l,o)}else t.children(e).length>0?(w.info("Cluster - the non recursive path XXX",e,o.id,o,t),w.info(P(o.id,t)),L[o.id]={id:P(o.id,t),node:o}):(w.info("Node - the non recursive path",e,o.id,o),await a(v,t.node(e),{config:g,dir:f}))}))),t.edges().forEach((async function(e){const n=t.edge(e.v,e.w,e.name);w.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),w.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(t.edge(e))),w.info("Fix",L,"ids:",e.v,e.w,"Translating: ",L[e.v],L[e.w]),await o(b,n)})),t.edges().forEach((function(e){w.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))})),w.info("Graph before layout:",JSON.stringify(B(t))),w.info("#############################################"),w.info("### Layout ###"),w.info("#############################################"),w.info(t),D(t),w.info("Graph after layout:",JSON.stringify(B(t)));let m=0;const{subGraphTitleTotalMargin:x}=S(g);return W(t).forEach((function(e){const n=t.node(e);w.info("Position "+e+": "+JSON.stringify(t.node(e))),w.info("Position "+e+": ("+n.x,","+n.y,") width: ",n.width," height: ",n.height),(null==n?void 0:n.clusterNode)?(n.y+=x,s(n)):t.children(e).length>0?(n.height+=x,V(u,n),L[n.id].node=n):(n.y+=x/2,s(n))})),t.edges().forEach((function(e){const i=t.edge(e);w.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(i),i),i.points.forEach((e=>e.y+=x/2));const r=d(y,e,i,L,n,t,c);l(i,r)})),t.nodes().forEach((function(e){const n=t.node(e);w.info(e,n.type,n.diff),"group"===n.type&&(m=n.diff)})),{elem:p,diff:m}}),"recursiveRender"),Z=u((async(i,r,a,o,s)=>{e(i,a,o,s),t(),n(),Y(),G(),w.warn("Graph at first:",JSON.stringify(B(r))),$(r),w.warn("Graph after:",JSON.stringify(B(r)));const d=y();await K(i,r,o,s,void 0,d)}),"render"),ee=u((e=>E.sanitizeText(e,y())),"sanitizeText"),te={dividerMargin:10,padding:5,textHeight:10,curve:void 0},ne=u((function(e,t,n,i){w.info("keys:",[...e.keys()]),w.info(e),e.forEach((function(e){var r,a;const o={shape:"rect",id:e.id,domId:e.domId,labelText:ee(e.id),labelStyle:"",style:"fill: none; stroke: black",padding:(null==(r=y().flowchart)?void 0:r.padding)??(null==(a=y().class)?void 0:a.padding)};t.setNode(e.id,o),ie(e.classes,t,n,i,e.id),w.info("setNode",o)}))}),"addNamespaces"),ie=u((function(e,t,n,i,r){w.info("keys:",[...e.keys()]),w.info(e),[...e.values()].filter((e=>e.parent===r)).forEach((function(e){var n,a;const o=e.cssClasses.join(" "),s=m(e.styles),d=e.label??e.id,l={labelStyle:s.labelStyle,shape:"class_box",labelText:ee(d),classData:e,rx:0,ry:0,class:o,style:s.style,id:e.id,domId:e.domId,tooltip:i.db.getTooltip(e.id,r)||"",haveCallback:e.haveCallback,link:e.link,width:"group"===e.type?500:void 0,type:e.type,padding:(null==(n=y().flowchart)?void 0:n.padding)??(null==(a=y().class)?void 0:a.padding)};t.setNode(e.id,l),r&&t.setParent(e.id,r),w.info("setNode",l)}))}),"addClasses"),re=u((function(e,t,n,i){w.info(e),e.forEach((function(e,r){var a,o;const s=e,d="",l="",c=s.text,h={labelStyle:d,shape:"note",labelText:ee(c),noteData:s,rx:0,ry:0,class:"",style:l,id:s.id,domId:s.id,tooltip:"",type:"note",padding:(null==(a=y().flowchart)?void 0:a.padding)??(null==(o=y().class)?void 0:o.padding)};if(t.setNode(s.id,h),w.info("setNode",h),!s.class||!i.has(s.class))return;const g=n+r,f={id:`edgeNote${g}`,classes:"relation",pattern:"dotted",arrowhead:"none",startLabelRight:"",endLabelLeft:"",arrowTypeStart:"none",arrowTypeEnd:"none",style:"fill:none",labelStyle:"",curve:x(te.curve,j)};t.setEdge(s.id,s.class,f,g)}))}),"addNotes"),ae=u((function(e,t){const n=y().flowchart;let i=0;e.forEach((function(e){var r;i++;const a={classes:"relation",pattern:1==e.relation.lineType?"dashed":"solid",id:N(e.id1,e.id2,{prefix:"id",counter:i}),arrowhead:"arrow_open"===e.type?"none":"normal",startLabelRight:"none"===e.relationTitle1?"":e.relationTitle1,endLabelLeft:"none"===e.relationTitle2?"":e.relationTitle2,arrowTypeStart:de(e.relation.type1),arrowTypeEnd:de(e.relation.type2),style:"fill:none",labelStyle:"",curve:x(null==n?void 0:n.curve,j)};if(w.info(a,e),void 0!==e.style){const t=m(e.style);a.style=t.style,a.labelStyle=t.labelStyle}e.text=e.title,void 0===e.text?void 0!==e.style&&(a.arrowheadStyle="fill: #333"):(a.arrowheadStyle="fill: #333",a.labelpos="c",(null==(r=y().flowchart)?void 0:r.htmlLabels)??y().htmlLabels?(a.labelType="html",a.label='<span class="edgeLabel">'+e.text+"</span>"):(a.labelType="text",a.label=e.text.replace(E.lineBreakRegex,"\n"),void 0===e.style&&(a.style=a.style||"stroke: #333; stroke-width: 1.5px;fill:none"),a.labelStyle=a.labelStyle.replace("color:","fill:"))),t.setEdge(e.id1,e.id2,a,i)}))}),"addRelations"),oe=u((function(e){te={...te,...e}}),"setConf"),se=u((async function(e,t,n,i){w.info("Drawing class - ",t);const r=y().flowchart??y().class,a=y().securityLevel;w.info("config:",r);const o=(null==r?void 0:r.nodeSpacing)??50,s=(null==r?void 0:r.rankSpacing)??50,d=new X({multigraph:!0,compound:!0}).setGraph({rankdir:i.db.getDirection(),nodesep:o,ranksep:s,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),l=i.db.getNamespaces(),c=i.db.getClasses(),h=i.db.getRelations(),g=i.db.getNotes();let f;w.info(h),ne(l,d,t,i),ie(c,d,t,i),ae(h,d),re(g,d,h.length+1,c),"sandbox"===a&&(f=k("#i"+t));const p=k("sandbox"===a?f.nodes()[0].contentDocument.body:"body"),u=p.select(`[id="${t}"]`),m=p.select("#"+t+" g");if(await Z(m,d,["aggregation","extension","composition","dependency","lollipop"],"classDiagram",t),b.insertTitle(u,"classTitleText",(null==r?void 0:r.titleTopMargin)??5,i.db.getDiagramTitle()),v(d,u,null==r?void 0:r.diagramPadding,null==r?void 0:r.useMaxWidth),!(null==r?void 0:r.htmlLabels)){const e="sandbox"===a?f.nodes()[0].contentDocument:document,n=e.querySelectorAll('[id="'+t+'"] .edgeLabel .label');for(const t of n){const n=t.getBBox(),i=e.createElementNS("http://www.w3.org/2000/svg","rect");i.setAttribute("rx",0),i.setAttribute("ry",0),i.setAttribute("width",n.width),i.setAttribute("height",n.height),t.insertBefore(i,t.firstChild)}}}),"draw");function de(e){let t;switch(e){case 0:t="aggregation";break;case 1:t="extension";break;case 2:t="composition";break;case 3:t="dependency";break;case 4:t="lollipop";break;default:t="none"}return t}u(de,"getArrowMarker");var le={parser:g,db:f,renderer:{setConf:oe,draw:se},styles:p,init:u((e=>{e.class||(e.class={}),e.class.arrowMarkerAbsolute=e.arrowMarkerAbsolute,f.clear()}),"init")};export{le as diagram};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as r}from"./_baseUniq-DCqXUnel.js";function n(n){return r(n,4)}export{n as c};
|