@flowfuse/node-red-dashboard 0.11.4 → 0.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{arc-HT979WDr.js → arc-yHC07jh5.js} +1 -1
- package/dist/assets/{c4Diagram-c0b17d02-layKFfWt.js → c4Diagram-c0b17d02-YtgqISMs.js} +1 -1
- package/dist/assets/{classDiagram-a8cc8886-VzwANB8n.js → classDiagram-a8cc8886-yXrzCv-T.js} +1 -1
- package/dist/assets/{classDiagram-v2-802a48d3-M26XBLNm.js → classDiagram-v2-802a48d3-NjkwMnSL.js} +1 -1
- package/dist/assets/{createText-3b1f58a4-LQdZvLTq.js → createText-3b1f58a4-NgnhIV1y.js} +1 -1
- package/dist/assets/{edges-0005682e-lMzwRHyD.js → edges-0005682e-z6K4c7OR.js} +1 -1
- package/dist/assets/{erDiagram-dedf2781-3d1HJdR-.js → erDiagram-dedf2781-qOfGFhoC.js} +1 -1
- package/dist/assets/{flowDb-ff651a22-8b9iWX0f.js → flowDb-ff651a22-VLXAYP-0.js} +1 -1
- package/dist/assets/{flowDiagram-d6f8fe3a-njWzbfzQ.js → flowDiagram-d6f8fe3a-cThkyiTm.js} +1 -1
- package/dist/assets/flowDiagram-v2-58f49b84-JR6gJiOl.js +1 -0
- package/dist/assets/{flowchart-elk-definition-56584a6c-GPNB6Kha.js → flowchart-elk-definition-56584a6c-aGhbEEKl.js} +1 -1
- package/dist/assets/{ganttDiagram-088dbd90-jcU-ukfH.js → ganttDiagram-088dbd90-rlAgIGtj.js} +1 -1
- package/dist/assets/{gitGraphDiagram-e0ffc2d1-dIZkYsih.js → gitGraphDiagram-e0ffc2d1-dlmhzu4a.js} +1 -1
- package/dist/assets/{index-madM--SU.css → index-HxR1I_hP.css} +1 -1
- package/dist/assets/{index-f58d48f9-kIjxmOoc.js → index-f58d48f9-Lp59Xbtf.js} +1 -1
- package/dist/assets/{index-fUjal6zz.js → index-nVoogp1U.js} +5 -5
- package/dist/assets/{infoDiagram-64895a6e-YiATGfeS.js → infoDiagram-64895a6e-HI-1CJkM.js} +1 -1
- package/dist/assets/{journeyDiagram-adaa34f8-C2dMQzW1.js → journeyDiagram-adaa34f8-rTj5fqGN.js} +1 -1
- package/dist/assets/{layout-dqGeNW7E.js → layout-fVXYNle2.js} +1 -1
- package/dist/assets/{line-5CT6jkJV.js → line-Z_CHQEeo.js} +1 -1
- package/dist/assets/{linear-n-hIdvcA.js → linear-q6lIuSLn.js} +1 -1
- package/dist/assets/{mindmap-definition-57868176-zoiLDgkE.js → mindmap-definition-57868176-8Fv_UaTx.js} +1 -1
- package/dist/assets/{pieDiagram-3fca7ce7-M1y5XJ7-.js → pieDiagram-3fca7ce7-LxBanFqs.js} +1 -1
- package/dist/assets/{quadrantDiagram-0ca4be02-d6_yGzai.js → quadrantDiagram-0ca4be02-i3mUuanh.js} +1 -1
- package/dist/assets/{requirementDiagram-e13af0f0-5sui4YMq.js → requirementDiagram-e13af0f0-u5059spj.js} +1 -1
- package/dist/assets/{sankeyDiagram-a7f8e230-CI_VVAG4.js → sankeyDiagram-a7f8e230-lFgjv4Iy.js} +1 -1
- package/dist/assets/{sequenceDiagram-84aa38e3-A8w5qHau.js → sequenceDiagram-84aa38e3-2ROgjdrk.js} +1 -1
- package/dist/assets/{stateDiagram-9a586ac6-7q5M0Pi-.js → stateDiagram-9a586ac6-N4CEixko.js} +1 -1
- package/dist/assets/{stateDiagram-v2-96f2b9df-7tVst5gU.js → stateDiagram-v2-96f2b9df-FbOIE7I-.js} +1 -1
- package/dist/assets/{styles-1b0c237a-sLXSCoO5.js → styles-1b0c237a-AFZGBoCy.js} +1 -1
- package/dist/assets/{styles-622362e4-U0vqC8io.js → styles-622362e4-Uf0NQb62.js} +1 -1
- package/dist/assets/{styles-a1a6e33f-TN9IkCLV.js → styles-a1a6e33f-bG-oUCNz.js} +1 -1
- package/dist/assets/{svgDraw-70101091-Uwgdyqw3.js → svgDraw-70101091-PiQV_Dss.js} +1 -1
- package/dist/assets/{svgDrawCommon-42e92da3-cQnk6Abg.js → svgDrawCommon-42e92da3-nBbiZX3l.js} +1 -1
- package/dist/assets/{timeline-definition-1a90b03d-P7XO3C-W.js → timeline-definition-1a90b03d-PQ0VUSc2.js} +1 -1
- package/dist/index.html +2 -2
- package/nodes/config/locales/en-US/ui_base.json +3 -1
- package/nodes/config/ui_base.html +10 -0
- package/nodes/config/ui_page.html +14 -3
- package/nodes/widgets/ui_button.js +1 -0
- package/package.json +2 -2
- package/dist/assets/flowDiagram-v2-58f49b84-J8Y8LcUP.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{q as H,c as w,d as F,aT as z,h as B,l as x,A as U,G as Q}from"./index-fUjal6zz.js";import{c as rt}from"./createText-3b1f58a4-LQdZvLTq.js";import{p as V}from"./svgDraw-70101091-Uwgdyqw3.js";import{l as it}from"./line-5CT6jkJV.js";const lt=(r,t,e,l)=>{t.forEach(a=>{xt[a](r,e,l)})},nt=(r,t,e)=>{x.trace("Making markers for ",e),r.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).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"),r.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).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")},ct=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).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"),r.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).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")},ht=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).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"),r.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).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")},ot=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).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"),r.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).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")},ft=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},pt=(r,t)=>{r.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",10).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"),r.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).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")},dt=(r,t)=>{r.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).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"),r.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).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")},yt=(r,t)=>{r.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).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"),r.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).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")},bt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-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")},xt={extension:nt,composition:ct,aggregation:ht,dependency:ot,lollipop:ft,point:pt,circle:dt,cross:yt,barb:bt},Pt=lt;function gt(r,t){t&&r.attr("style",t)}function ut(r){const t=B(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),e=t.append("xhtml:div"),l=r.label,a=r.isNode?"nodeLabel":"edgeLabel";return e.html('<span class="'+a+'" '+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+l+"</span>"),gt(e,r.labelStyle),e.style("display","inline-block"),e.style("white-space","nowrap"),e.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const wt=(r,t,e,l)=>{let a=r||"";if(typeof a=="object"&&(a=a[0]),H(w().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"<br />"),x.info("vertexText"+a);const s={isNode:l,label:z(a).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return ut(s)}else{const s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));let i=[];typeof a=="string"?i=a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?i=a:i=[];for(const n of i){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),e?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),s.appendChild(c)}return s}},$=wt,E=async(r,t,e,l)=>{let a;const s=t.useHtmlLabels||H(w().flowchart.htmlLabels);e?a=e:a="node default";const i=r.insert("g").attr("class",a).attr("id",t.domId||t.id),n=i.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=rt(n,F(z(c),w()),{useHtmlLabels:s,width:t.width||w().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild($(F(z(c),w()),t.labelStyle,!1,l));let f=h.getBBox();const b=t.padding/2;if(H(w().flowchart.htmlLabels)){const p=h.children[0],d=B(h),y=p.getElementsByTagName("img");if(y){const g=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...y].map(u=>new Promise(I=>{function R(){if(u.style.display="flex",u.style.flexDirection="column",g){const M=w().fontSize?w().fontSize:window.getComputedStyle(document.body).fontSize,W=5;u.style.width=parseInt(M,10)*W+"px"}else u.style.width="100%";I(u)}setTimeout(()=>{u.complete&&R()}),u.addEventListener("error",R),u.addEventListener("load",R)})))}f=p.getBoundingClientRect(),d.attr("width",f.width),d.attr("height",f.height)}return s?n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):n.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:i,bbox:f,halfPadding:b,label:n}},k=(r,t)=>{const e=t.node().getBBox();r.width=e.width,r.height=e.height};function _(r,t,e,l){return r.insert("polygon",":first-child").attr("points",l.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+e/2+")")}function mt(r,t){return r.intersect(t)}function at(r,t,e,l){var a=r.x,s=r.y,i=a-l.x,n=s-l.y,c=Math.sqrt(t*t*n*n+e*e*i*i),o=Math.abs(t*e*i/c);l.x<a&&(o=-o);var h=Math.abs(t*e*n/c);return l.y<s&&(h=-h),{x:a+o,y:s+h}}function kt(r,t,e){return at(r,t,t,e)}function vt(r,t,e,l){var a,s,i,n,c,o,h,f,b,p,d,y,g,u,I;if(a=t.y-r.y,i=r.x-t.x,c=t.x*r.y-r.x*t.y,b=a*e.x+i*e.y+c,p=a*l.x+i*l.y+c,!(b!==0&&p!==0&&q(b,p))&&(s=l.y-e.y,n=e.x-l.x,o=l.x*e.y-e.x*l.y,h=s*r.x+n*r.y+o,f=s*t.x+n*t.y+o,!(h!==0&&f!==0&&q(h,f))&&(d=a*n-s*i,d!==0)))return y=Math.abs(d/2),g=i*o-n*c,u=g<0?(g-y)/d:(g+y)/d,g=s*c-a*o,I=g<0?(g-y)/d:(g+y)/d,{x:u,y:I}}function q(r,t){return r*t>0}function Lt(r,t,e){var l=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){i=Math.min(i,d.x),n=Math.min(n,d.y)}):(i=Math.min(i,t.x),n=Math.min(n,t.y));for(var c=l-r.width/2-i,o=a-r.height/2-n,h=0;h<t.length;h++){var f=t[h],b=t[h<t.length-1?h+1:0],p=vt(r,e,{x:c+f.x,y:o+f.y},{x:c+b.x,y:o+b.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort(function(d,y){var g=d.x-e.x,u=d.y-e.y,I=Math.sqrt(g*g+u*u),R=y.x-e.x,M=y.y-e.y,W=Math.sqrt(R*R+M*M);return I<W?-1:I===W?0:1}),s[0]):r}const St=(r,t)=>{var e=r.x,l=r.y,a=t.x-e,s=t.y-l,i=r.width/2,n=r.height/2,c,o;return Math.abs(s)*i>Math.abs(a)*n?(s<0&&(n=-n),c=s===0?0:n*a/s,o=n):(a<0&&(i=-i),c=i,o=a===0?0:i*s/a),{x:e+c,y:l+o}},Bt=St,m={node:mt,circle:kt,ellipse:at,polygon:Lt,rect:Bt},Et=async(r,t)=>{t.useHtmlLabels||w().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:l,bbox:a,halfPadding:s}=await E(r,t,"node "+t.classes,!0);x.info("Classes = ",t.classes);const i=l.insert("rect",":first-child");return i.attr("rx",t.rx).attr("ry",t.ry).attr("x",-a.width/2-s).attr("y",-a.height/2-s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),k(t,i),t.intersect=function(n){return m.rect(t,n)},l},Mt=Et,J=r=>r?" "+r:"",T=(r,t)=>`${t||"node default"}${J(r.classes)} ${J(r.class)}`,G=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=a+s,n=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];x.info("Question main (Circle)");const c=_(e,i,i,n);return c.attr("style",t.style),k(t,c),t.intersect=function(o){return x.warn("Intersect called"),m.polygon(t,n,o)},e},Ct=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),l=28,a=[{x:0,y:l/2},{x:l/2,y:0},{x:0,y:-l/2},{x:-l/2,y:0}];return e.insert("polygon",":first-child").attr("points",a.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(i){return m.circle(t,14,i)},e},Tt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=4,s=l.height+t.padding,i=s/a,n=l.width+2*i+t.padding,c=[{x:i,y:0},{x:n-i,y:0},{x:n,y:-s/2},{x:n-i,y:-s},{x:i,y:-s},{x:0,y:-s/2}],o=_(e,n,s,c);return o.attr("style",t.style),k(t,o),t.intersect=function(h){return m.polygon(t,c,h)},e},Rt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:-s/2,y:0},{x:a,y:0},{x:a,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return _(e,a,s,i).attr("style",t.style),t.width=a+s,t.height=s,t.intersect=function(c){return m.polygon(t,i,c)},e},$t=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:-2*s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:s/6,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},It=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:2*s/6,y:0},{x:a+s/6,y:0},{x:a-2*s/6,y:-s},{x:-s/6,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},Ht=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:-2*s/6,y:0},{x:a+2*s/6,y:0},{x:a-s/6,y:-s},{x:s/6,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},Nt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:-2*s/6,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},_t=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:0,y:0},{x:a+s/2,y:0},{x:a,y:-s/2},{x:a+s/2,y:-s},{x:0,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},Wt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=a/2,i=s/(2.5+a/50),n=l.height+i+t.padding,c="M 0,"+i+" a "+s+","+i+" 0,0,0 "+a+" 0 a "+s+","+i+" 0,0,0 "+-a+" 0 l 0,"+n+" a "+s+","+i+" 0,0,0 "+a+" 0 l 0,"+-n,o=e.attr("label-offset-y",i).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-a/2+","+-(n/2+i)+")");return k(t,o),t.intersect=function(h){const f=m.rect(t,h),b=f.x-t.x;if(s!=0&&(Math.abs(b)<t.width/2||Math.abs(b)==t.width/2&&Math.abs(f.y-t.y)>t.height/2-i)){let p=i*i*(1-b*b/(s*s));p!=0&&(p=Math.sqrt(p)),p=i-p,h.y-t.y>0&&(p=-p),f.y+=p}return f},e},Xt=async(r,t)=>{const{shapeSvg:e,bbox:l,halfPadding:a}=await E(r,t,"node "+t.classes+" "+t.class,!0),s=e.insert("rect",":first-child"),i=l.width+t.padding,n=l.height+t.padding;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-a).attr("y",-l.height/2-a).attr("width",i).attr("height",n),t.props){const c=new Set(Object.keys(t.props));t.props.borders&&(et(s,t.props.borders,i,n),c.delete("borders")),c.forEach(o=>{x.warn(`Unknown node property ${o}`)})}return k(t,s),t.intersect=function(c){return m.rect(t,c)},e},Yt=async(r,t)=>{const{shapeSvg:e}=await E(r,t,"label",!0);x.trace("Classes = ",t.class);const l=e.insert("rect",":first-child"),a=0,s=0;if(l.attr("width",a).attr("height",s),e.attr("class","label edgeLabel"),t.props){const i=new Set(Object.keys(t.props));t.props.borders&&(et(l,t.props.borders,a,s),i.delete("borders")),i.forEach(n=>{x.warn(`Unknown node property ${n}`)})}return k(t,l),t.intersect=function(i){return m.rect(t,i)},e};function et(r,t,e,l){const a=[],s=n=>{a.push(n,0)},i=n=>{a.push(0,n)};t.includes("t")?(x.debug("add top border"),s(e)):i(e),t.includes("r")?(x.debug("add right border"),s(l)):i(l),t.includes("b")?(x.debug("add bottom border"),s(e)):i(e),t.includes("l")?(x.debug("add left border"),s(l)):i(l),r.attr("stroke-dasharray",a.join(" "))}const At=(r,t)=>{let e;t.classes?e="node "+t.classes:e="node default";const l=r.insert("g").attr("class",e).attr("id",t.domId||t.id),a=l.insert("rect",":first-child"),s=l.insert("line"),i=l.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,x.info("Label text abc79",c,n,typeof n=="object");const o=i.node().appendChild($(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(w().flowchart.htmlLabels)){const y=o.children[0],g=B(o);h=y.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}x.info("Text 2",n);const f=n.slice(1,n.length);let b=o.getBBox();const p=i.node().appendChild($(f.join?f.join("<br/>"):f,t.labelStyle,!0,!0));if(H(w().flowchart.htmlLabels)){const y=p.children[0],g=B(p);h=y.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}const d=t.padding/2;return B(p).attr("transform","translate( "+(h.width>b.width?0:(b.width-h.width)/2)+", "+(b.height+d+5)+")"),B(o).attr("transform","translate( "+(h.width<b.width?0:-(b.width-h.width)/2)+", 0)"),h=i.node().getBBox(),i.attr("transform","translate("+-h.width/2+", "+(-h.height/2-d+3)+")"),a.attr("class","outer title-state").attr("x",-h.width/2-d).attr("y",-h.height/2-d).attr("width",h.width+t.padding).attr("height",h.height+t.padding),s.attr("class","divider").attr("x1",-h.width/2-d).attr("x2",h.width/2+d).attr("y1",-h.height/2-d+b.height+d).attr("y2",-h.height/2-d+b.height+d),k(t,a),t.intersect=function(y){return m.rect(t,y)},l},Ut=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.height+t.padding,s=l.width+a/4+t.padding,i=e.insert("rect",":first-child").attr("style",t.style).attr("rx",a/2).attr("ry",a/2).attr("x",-s/2).attr("y",-a/2).attr("width",s).attr("height",a);return k(t,i),t.intersect=function(n){return m.rect(t,n)},e},Dt=async(r,t)=>{const{shapeSvg:e,bbox:l,halfPadding:a}=await E(r,t,T(t,void 0),!0),s=e.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+a).attr("width",l.width+t.padding).attr("height",l.height+t.padding),x.info("Circle main"),k(t,s),t.intersect=function(i){return x.info("Circle intersect",t,l.width/2+a,i),m.circle(t,l.width/2+a,i)},e},Ot=async(r,t)=>{const{shapeSvg:e,bbox:l,halfPadding:a}=await E(r,t,T(t,void 0),!0),s=5,i=e.insert("g",":first-child"),n=i.insert("circle"),c=i.insert("circle");return i.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+a+s).attr("width",l.width+t.padding+s*2).attr("height",l.height+t.padding+s*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+a).attr("width",l.width+t.padding).attr("height",l.height+t.padding),x.info("DoubleCircle main"),k(t,n),t.intersect=function(o){return x.info("DoubleCircle intersect",t,l.width/2+a+s,o),m.circle(t,l.width/2+a+s,o)},e},jt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},zt=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),l=e.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),k(t,l),t.intersect=function(a){return m.circle(t,7,a)},e},K=(r,t,e)=>{const l=r.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a=70,s=10;e==="LR"&&(a=10,s=70);const i=l.append("rect").attr("x",-1*a/2).attr("y",-1*s/2).attr("width",a).attr("height",s).attr("class","fork-join");return k(t,i),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return m.rect(t,n)},l},Zt=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),l=e.insert("circle",":first-child"),a=e.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),l.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),k(t,a),t.intersect=function(s){return m.circle(t,7,s)},e},Ft=(r,t)=>{const e=t.padding/2,l=4,a=8;let s;t.classes?s="node "+t.classes:s="node default";const i=r.insert("g").attr("class",s).attr("id",t.domId||t.id),n=i.insert("rect",":first-child"),c=i.insert("line"),o=i.insert("line");let h=0,f=l;const b=i.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],y=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=b.node().appendChild($(y,t.labelStyle,!0,!0));let u=g.getBBox();if(H(w().flowchart.htmlLabels)){const v=g.children[0],L=B(g);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(f+=u.height+l,h+=u.width);let I=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(w().flowchart.htmlLabels?I+="<"+t.classData.type+">":I+="<"+t.classData.type+">");const R=b.node().appendChild($(I,t.labelStyle,!0,!0));B(R).attr("class","classTitle");let M=R.getBBox();if(H(w().flowchart.htmlLabels)){const v=R.children[0],L=B(R);M=v.getBoundingClientRect(),L.attr("width",M.width),L.attr("height",M.height)}f+=M.height+l,M.width>h&&(h=M.width);const W=[];t.classData.members.forEach(v=>{const L=V(v);let X=L.displayText;w().flowchart.htmlLabels&&(X=X.replace(/</g,"<").replace(/>/g,">"));const N=b.node().appendChild($(X,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let C=N.getBBox();if(H(w().flowchart.htmlLabels)){const j=N.children[0],A=B(N);C=j.getBoundingClientRect(),A.attr("width",C.width),A.attr("height",C.height)}C.width>h&&(h=C.width),f+=C.height+l,W.push(N)}),f+=a;const Z=[];if(t.classData.methods.forEach(v=>{const L=V(v);let X=L.displayText;w().flowchart.htmlLabels&&(X=X.replace(/</g,"<").replace(/>/g,">"));const N=b.node().appendChild($(X,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let C=N.getBBox();if(H(w().flowchart.htmlLabels)){const j=N.children[0],A=B(N);C=j.getBoundingClientRect(),A.attr("width",C.width),A.attr("height",C.height)}C.width>h&&(h=C.width),f+=C.height+l,Z.push(N)}),f+=a,d){let v=(h-u.width)/2;B(g).attr("transform","translate( "+(-1*h/2+v)+", "+-1*f/2+")"),p=u.height+l}let st=(h-M.width)/2;return B(R).attr("transform","translate( "+(-1*h/2+st)+", "+(-1*f/2+p)+")"),p+=M.height+l,c.attr("class","divider").attr("x1",-h/2-e).attr("x2",h/2+e).attr("y1",-f/2-e+a+p).attr("y2",-f/2-e+a+p),p+=a,W.forEach(v=>{B(v).attr("transform","translate( "+-h/2+", "+(-1*f/2+p+a/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+l}),p+=a,o.attr("class","divider").attr("x1",-h/2-e).attr("x2",h/2+e).attr("y1",-f/2-e+a+p).attr("y2",-f/2-e+a+p),p+=a,Z.forEach(v=>{B(v).attr("transform","translate( "+-h/2+", "+(-1*f/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+l}),n.attr("class","outer title-state").attr("x",-h/2-e).attr("y",-(f/2)-e).attr("width",h+t.padding).attr("height",f+t.padding),k(t,n),t.intersect=function(v){return m.rect(t,v)},i},P={rhombus:G,question:G,rect:Xt,labelRect:Yt,rectWithTitle:At,choice:Ct,circle:Dt,doublecircle:Ot,stadium:Ut,hexagon:Tt,rect_left_inv_arrow:Rt,lean_right:$t,lean_left:It,trapezoid:Ht,inv_trapezoid:Nt,rect_right_inv_arrow:_t,cylinder:Wt,start:zt,end:Zt,note:Mt,subroutine:jt,fork:K,join:K,class_box:Ft};let Y={};const tr=async(r,t,e)=>{let l,a;if(t.link){let s;w().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),l=r.insert("svg:a").attr("xlink:href",t.link).attr("target",s),a=await P[t.shape](l,t,e)}else a=await P[t.shape](r,t,e),l=a;return t.tooltip&&a.attr("title",t.tooltip),t.class&&a.attr("class","node default "+t.class),Y[t.id]=l,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),l},rr=(r,t)=>{Y[t.id]=r},ar=()=>{Y={}},er=r=>{const t=Y[r.id];x.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");const e=8,l=r.diff||0;return r.clusterNode?t.attr("transform","translate("+(r.x+l-r.width/2)+", "+(r.y-r.height/2-e)+")"):t.attr("transform","translate("+r.x+", "+r.y+")"),l};let O={},S={};const sr=()=>{O={},S={}},ir=(r,t)=>{const e=H(w().flowchart.htmlLabels),l=t.labelType==="markdown"?rt(r,t.label,{style:t.labelStyle,useHtmlLabels:e,addSvgBackground:!0}):$(t.label,t.labelStyle);x.info("abc82",t,t.labelType);const a=r.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label");s.node().appendChild(l);let i=l.getBBox();if(e){const c=l.children[0],o=B(l);i=c.getBoundingClientRect(),o.attr("width",i.width),o.attr("height",i.height)}s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),O[t.id]=a,t.width=i.width,t.height=i.height;let n;if(t.startLabelLeft){const c=$(t.startLabelLeft,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),S[t.id]||(S[t.id]={}),S[t.id].startLeft=o,D(n,t.startLabelLeft)}if(t.startLabelRight){const c=$(t.startLabelRight,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),S[t.id]||(S[t.id]={}),S[t.id].startRight=o,D(n,t.startLabelRight)}if(t.endLabelLeft){const c=$(t.endLabelLeft,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),S[t.id]||(S[t.id]={}),S[t.id].endLeft=o,D(n,t.endLabelLeft)}if(t.endLabelRight){const c=$(t.endLabelRight,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),S[t.id]||(S[t.id]={}),S[t.id].endRight=o,D(n,t.endLabelRight)}return l};function D(r,t){w().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}const lr=(r,t)=>{x.info("Moving label abc78 ",r.id,r.label,O[r.id]);let e=t.updatedPath?t.updatedPath:t.originalPath;if(r.label){const l=O[r.id];let a=r.x,s=r.y;if(e){const i=U.calcLabelPosition(e);x.info("Moving label "+r.label+" from (",a,",",s,") to (",i.x,",",i.y,") abc78"),t.updatedPath&&(a=i.x,s=i.y)}l.attr("transform","translate("+a+", "+s+")")}if(r.startLabelLeft){const l=S[r.id].startLeft;let a=r.x,s=r.y;if(e){const i=U.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",e);a=i.x,s=i.y}l.attr("transform","translate("+a+", "+s+")")}if(r.startLabelRight){const l=S[r.id].startRight;let a=r.x,s=r.y;if(e){const i=U.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",e);a=i.x,s=i.y}l.attr("transform","translate("+a+", "+s+")")}if(r.endLabelLeft){const l=S[r.id].endLeft;let a=r.x,s=r.y;if(e){const i=U.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",e);a=i.x,s=i.y}l.attr("transform","translate("+a+", "+s+")")}if(r.endLabelRight){const l=S[r.id].endRight;let a=r.x,s=r.y;if(e){const i=U.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",e);a=i.x,s=i.y}l.attr("transform","translate("+a+", "+s+")")}},Qt=(r,t)=>{const e=r.x,l=r.y,a=Math.abs(t.x-e),s=Math.abs(t.y-l),i=r.width/2,n=r.height/2;return a>=i||s>=n},Vt=(r,t,e)=>{x.warn(`intersection calc abc89:
|
|
1
|
+
import{q as H,c as w,d as F,aT as z,h as B,l as x,A as U,G as Q}from"./index-nVoogp1U.js";import{c as rt}from"./createText-3b1f58a4-NgnhIV1y.js";import{p as V}from"./svgDraw-70101091-PiQV_Dss.js";import{l as it}from"./line-Z_CHQEeo.js";const lt=(r,t,e,l)=>{t.forEach(a=>{xt[a](r,e,l)})},nt=(r,t,e)=>{x.trace("Making markers for ",e),r.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).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"),r.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).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")},ct=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).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"),r.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).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")},ht=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).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"),r.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).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")},ot=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).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"),r.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).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")},ft=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","white").attr("cx",6).attr("cy",7).attr("r",6)},pt=(r,t)=>{r.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",10).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"),r.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).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")},dt=(r,t)=>{r.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).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"),r.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).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")},yt=(r,t)=>{r.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).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"),r.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).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")},bt=(r,t)=>{r.append("defs").append("marker").attr("id",t+"-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")},xt={extension:nt,composition:ct,aggregation:ht,dependency:ot,lollipop:ft,point:pt,circle:dt,cross:yt,barb:bt},Pt=lt;function gt(r,t){t&&r.attr("style",t)}function ut(r){const t=B(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),e=t.append("xhtml:div"),l=r.label,a=r.isNode?"nodeLabel":"edgeLabel";return e.html('<span class="'+a+'" '+(r.labelStyle?'style="'+r.labelStyle+'"':"")+">"+l+"</span>"),gt(e,r.labelStyle),e.style("display","inline-block"),e.style("white-space","nowrap"),e.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}const wt=(r,t,e,l)=>{let a=r||"";if(typeof a=="object"&&(a=a[0]),H(w().flowchart.htmlLabels)){a=a.replace(/\\n|\n/g,"<br />"),x.info("vertexText"+a);const s={isNode:l,label:z(a).replace(/fa[blrs]?:fa-[\w-]+/g,n=>`<i class='${n.replace(":"," ")}'></i>`),labelStyle:t.replace("fill:","color:")};return ut(s)}else{const s=document.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("style",t.replace("color:","fill:"));let i=[];typeof a=="string"?i=a.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(a)?i=a:i=[];for(const n of i){const c=document.createElementNS("http://www.w3.org/2000/svg","tspan");c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),c.setAttribute("dy","1em"),c.setAttribute("x","0"),e?c.setAttribute("class","title-row"):c.setAttribute("class","row"),c.textContent=n.trim(),s.appendChild(c)}return s}},$=wt,E=async(r,t,e,l)=>{let a;const s=t.useHtmlLabels||H(w().flowchart.htmlLabels);e?a=e:a="node default";const i=r.insert("g").attr("class",a).attr("id",t.domId||t.id),n=i.insert("g").attr("class","label").attr("style",t.labelStyle);let c;t.labelText===void 0?c="":c=typeof t.labelText=="string"?t.labelText:t.labelText[0];const o=n.node();let h;t.labelType==="markdown"?h=rt(n,F(z(c),w()),{useHtmlLabels:s,width:t.width||w().flowchart.wrappingWidth,classes:"markdown-node-label"}):h=o.appendChild($(F(z(c),w()),t.labelStyle,!1,l));let f=h.getBBox();const b=t.padding/2;if(H(w().flowchart.htmlLabels)){const p=h.children[0],d=B(h),y=p.getElementsByTagName("img");if(y){const g=c.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...y].map(u=>new Promise(I=>{function R(){if(u.style.display="flex",u.style.flexDirection="column",g){const M=w().fontSize?w().fontSize:window.getComputedStyle(document.body).fontSize,W=5;u.style.width=parseInt(M,10)*W+"px"}else u.style.width="100%";I(u)}setTimeout(()=>{u.complete&&R()}),u.addEventListener("error",R),u.addEventListener("load",R)})))}f=p.getBoundingClientRect(),d.attr("width",f.width),d.attr("height",f.height)}return s?n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"):n.attr("transform","translate(0, "+-f.height/2+")"),t.centerLabel&&n.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),n.insert("rect",":first-child"),{shapeSvg:i,bbox:f,halfPadding:b,label:n}},k=(r,t)=>{const e=t.node().getBBox();r.width=e.width,r.height=e.height};function _(r,t,e,l){return r.insert("polygon",":first-child").attr("points",l.map(function(a){return a.x+","+a.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+e/2+")")}function mt(r,t){return r.intersect(t)}function at(r,t,e,l){var a=r.x,s=r.y,i=a-l.x,n=s-l.y,c=Math.sqrt(t*t*n*n+e*e*i*i),o=Math.abs(t*e*i/c);l.x<a&&(o=-o);var h=Math.abs(t*e*n/c);return l.y<s&&(h=-h),{x:a+o,y:s+h}}function kt(r,t,e){return at(r,t,t,e)}function vt(r,t,e,l){var a,s,i,n,c,o,h,f,b,p,d,y,g,u,I;if(a=t.y-r.y,i=r.x-t.x,c=t.x*r.y-r.x*t.y,b=a*e.x+i*e.y+c,p=a*l.x+i*l.y+c,!(b!==0&&p!==0&&q(b,p))&&(s=l.y-e.y,n=e.x-l.x,o=l.x*e.y-e.x*l.y,h=s*r.x+n*r.y+o,f=s*t.x+n*t.y+o,!(h!==0&&f!==0&&q(h,f))&&(d=a*n-s*i,d!==0)))return y=Math.abs(d/2),g=i*o-n*c,u=g<0?(g-y)/d:(g+y)/d,g=s*c-a*o,I=g<0?(g-y)/d:(g+y)/d,{x:u,y:I}}function q(r,t){return r*t>0}function Lt(r,t,e){var l=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(d){i=Math.min(i,d.x),n=Math.min(n,d.y)}):(i=Math.min(i,t.x),n=Math.min(n,t.y));for(var c=l-r.width/2-i,o=a-r.height/2-n,h=0;h<t.length;h++){var f=t[h],b=t[h<t.length-1?h+1:0],p=vt(r,e,{x:c+f.x,y:o+f.y},{x:c+b.x,y:o+b.y});p&&s.push(p)}return s.length?(s.length>1&&s.sort(function(d,y){var g=d.x-e.x,u=d.y-e.y,I=Math.sqrt(g*g+u*u),R=y.x-e.x,M=y.y-e.y,W=Math.sqrt(R*R+M*M);return I<W?-1:I===W?0:1}),s[0]):r}const St=(r,t)=>{var e=r.x,l=r.y,a=t.x-e,s=t.y-l,i=r.width/2,n=r.height/2,c,o;return Math.abs(s)*i>Math.abs(a)*n?(s<0&&(n=-n),c=s===0?0:n*a/s,o=n):(a<0&&(i=-i),c=i,o=a===0?0:i*s/a),{x:e+c,y:l+o}},Bt=St,m={node:mt,circle:kt,ellipse:at,polygon:Lt,rect:Bt},Et=async(r,t)=>{t.useHtmlLabels||w().flowchart.htmlLabels||(t.centerLabel=!0);const{shapeSvg:l,bbox:a,halfPadding:s}=await E(r,t,"node "+t.classes,!0);x.info("Classes = ",t.classes);const i=l.insert("rect",":first-child");return i.attr("rx",t.rx).attr("ry",t.ry).attr("x",-a.width/2-s).attr("y",-a.height/2-s).attr("width",a.width+t.padding).attr("height",a.height+t.padding),k(t,i),t.intersect=function(n){return m.rect(t,n)},l},Mt=Et,J=r=>r?" "+r:"",T=(r,t)=>`${t||"node default"}${J(r.classes)} ${J(r.class)}`,G=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=a+s,n=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];x.info("Question main (Circle)");const c=_(e,i,i,n);return c.attr("style",t.style),k(t,c),t.intersect=function(o){return x.warn("Intersect called"),m.polygon(t,n,o)},e},Ct=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),l=28,a=[{x:0,y:l/2},{x:l/2,y:0},{x:0,y:-l/2},{x:-l/2,y:0}];return e.insert("polygon",":first-child").attr("points",a.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),t.width=28,t.height=28,t.intersect=function(i){return m.circle(t,14,i)},e},Tt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=4,s=l.height+t.padding,i=s/a,n=l.width+2*i+t.padding,c=[{x:i,y:0},{x:n-i,y:0},{x:n,y:-s/2},{x:n-i,y:-s},{x:i,y:-s},{x:0,y:-s/2}],o=_(e,n,s,c);return o.attr("style",t.style),k(t,o),t.intersect=function(h){return m.polygon(t,c,h)},e},Rt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:-s/2,y:0},{x:a,y:0},{x:a,y:-s},{x:-s/2,y:-s},{x:0,y:-s/2}];return _(e,a,s,i).attr("style",t.style),t.width=a+s,t.height=s,t.intersect=function(c){return m.polygon(t,i,c)},e},$t=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:-2*s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:s/6,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},It=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:2*s/6,y:0},{x:a+s/6,y:0},{x:a-2*s/6,y:-s},{x:-s/6,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},Ht=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:-2*s/6,y:0},{x:a+2*s/6,y:0},{x:a-s/6,y:-s},{x:s/6,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},Nt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:s/6,y:0},{x:a-s/6,y:0},{x:a+2*s/6,y:-s},{x:-2*s/6,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},_t=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:0,y:0},{x:a+s/2,y:0},{x:a,y:-s/2},{x:a+s/2,y:-s},{x:0,y:-s}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},Wt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=a/2,i=s/(2.5+a/50),n=l.height+i+t.padding,c="M 0,"+i+" a "+s+","+i+" 0,0,0 "+a+" 0 a "+s+","+i+" 0,0,0 "+-a+" 0 l 0,"+n+" a "+s+","+i+" 0,0,0 "+a+" 0 l 0,"+-n,o=e.attr("label-offset-y",i).insert("path",":first-child").attr("style",t.style).attr("d",c).attr("transform","translate("+-a/2+","+-(n/2+i)+")");return k(t,o),t.intersect=function(h){const f=m.rect(t,h),b=f.x-t.x;if(s!=0&&(Math.abs(b)<t.width/2||Math.abs(b)==t.width/2&&Math.abs(f.y-t.y)>t.height/2-i)){let p=i*i*(1-b*b/(s*s));p!=0&&(p=Math.sqrt(p)),p=i-p,h.y-t.y>0&&(p=-p),f.y+=p}return f},e},Xt=async(r,t)=>{const{shapeSvg:e,bbox:l,halfPadding:a}=await E(r,t,"node "+t.classes+" "+t.class,!0),s=e.insert("rect",":first-child"),i=l.width+t.padding,n=l.height+t.padding;if(s.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-l.width/2-a).attr("y",-l.height/2-a).attr("width",i).attr("height",n),t.props){const c=new Set(Object.keys(t.props));t.props.borders&&(et(s,t.props.borders,i,n),c.delete("borders")),c.forEach(o=>{x.warn(`Unknown node property ${o}`)})}return k(t,s),t.intersect=function(c){return m.rect(t,c)},e},Yt=async(r,t)=>{const{shapeSvg:e}=await E(r,t,"label",!0);x.trace("Classes = ",t.class);const l=e.insert("rect",":first-child"),a=0,s=0;if(l.attr("width",a).attr("height",s),e.attr("class","label edgeLabel"),t.props){const i=new Set(Object.keys(t.props));t.props.borders&&(et(l,t.props.borders,a,s),i.delete("borders")),i.forEach(n=>{x.warn(`Unknown node property ${n}`)})}return k(t,l),t.intersect=function(i){return m.rect(t,i)},e};function et(r,t,e,l){const a=[],s=n=>{a.push(n,0)},i=n=>{a.push(0,n)};t.includes("t")?(x.debug("add top border"),s(e)):i(e),t.includes("r")?(x.debug("add right border"),s(l)):i(l),t.includes("b")?(x.debug("add bottom border"),s(e)):i(e),t.includes("l")?(x.debug("add left border"),s(l)):i(l),r.attr("stroke-dasharray",a.join(" "))}const At=(r,t)=>{let e;t.classes?e="node "+t.classes:e="node default";const l=r.insert("g").attr("class",e).attr("id",t.domId||t.id),a=l.insert("rect",":first-child"),s=l.insert("line"),i=l.insert("g").attr("class","label"),n=t.labelText.flat?t.labelText.flat():t.labelText;let c="";typeof n=="object"?c=n[0]:c=n,x.info("Label text abc79",c,n,typeof n=="object");const o=i.node().appendChild($(c,t.labelStyle,!0,!0));let h={width:0,height:0};if(H(w().flowchart.htmlLabels)){const y=o.children[0],g=B(o);h=y.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}x.info("Text 2",n);const f=n.slice(1,n.length);let b=o.getBBox();const p=i.node().appendChild($(f.join?f.join("<br/>"):f,t.labelStyle,!0,!0));if(H(w().flowchart.htmlLabels)){const y=p.children[0],g=B(p);h=y.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}const d=t.padding/2;return B(p).attr("transform","translate( "+(h.width>b.width?0:(b.width-h.width)/2)+", "+(b.height+d+5)+")"),B(o).attr("transform","translate( "+(h.width<b.width?0:-(b.width-h.width)/2)+", 0)"),h=i.node().getBBox(),i.attr("transform","translate("+-h.width/2+", "+(-h.height/2-d+3)+")"),a.attr("class","outer title-state").attr("x",-h.width/2-d).attr("y",-h.height/2-d).attr("width",h.width+t.padding).attr("height",h.height+t.padding),s.attr("class","divider").attr("x1",-h.width/2-d).attr("x2",h.width/2+d).attr("y1",-h.height/2-d+b.height+d).attr("y2",-h.height/2-d+b.height+d),k(t,a),t.intersect=function(y){return m.rect(t,y)},l},Ut=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.height+t.padding,s=l.width+a/4+t.padding,i=e.insert("rect",":first-child").attr("style",t.style).attr("rx",a/2).attr("ry",a/2).attr("x",-s/2).attr("y",-a/2).attr("width",s).attr("height",a);return k(t,i),t.intersect=function(n){return m.rect(t,n)},e},Dt=async(r,t)=>{const{shapeSvg:e,bbox:l,halfPadding:a}=await E(r,t,T(t,void 0),!0),s=e.insert("circle",":first-child");return s.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+a).attr("width",l.width+t.padding).attr("height",l.height+t.padding),x.info("Circle main"),k(t,s),t.intersect=function(i){return x.info("Circle intersect",t,l.width/2+a,i),m.circle(t,l.width/2+a,i)},e},Ot=async(r,t)=>{const{shapeSvg:e,bbox:l,halfPadding:a}=await E(r,t,T(t,void 0),!0),s=5,i=e.insert("g",":first-child"),n=i.insert("circle"),c=i.insert("circle");return i.attr("class",t.class),n.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+a+s).attr("width",l.width+t.padding+s*2).attr("height",l.height+t.padding+s*2),c.attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("r",l.width/2+a).attr("width",l.width+t.padding).attr("height",l.height+t.padding),x.info("DoubleCircle main"),k(t,n),t.intersect=function(o){return x.info("DoubleCircle intersect",t,l.width/2+a+s,o),m.circle(t,l.width/2+a+s,o)},e},jt=async(r,t)=>{const{shapeSvg:e,bbox:l}=await E(r,t,T(t,void 0),!0),a=l.width+t.padding,s=l.height+t.padding,i=[{x:0,y:0},{x:a,y:0},{x:a,y:-s},{x:0,y:-s},{x:0,y:0},{x:-8,y:0},{x:a+8,y:0},{x:a+8,y:-s},{x:-8,y:-s},{x:-8,y:0}],n=_(e,a,s,i);return n.attr("style",t.style),k(t,n),t.intersect=function(c){return m.polygon(t,i,c)},e},zt=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),l=e.insert("circle",":first-child");return l.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),k(t,l),t.intersect=function(a){return m.circle(t,7,a)},e},K=(r,t,e)=>{const l=r.insert("g").attr("class","node default").attr("id",t.domId||t.id);let a=70,s=10;e==="LR"&&(a=10,s=70);const i=l.append("rect").attr("x",-1*a/2).attr("y",-1*s/2).attr("width",a).attr("height",s).attr("class","fork-join");return k(t,i),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(n){return m.rect(t,n)},l},Zt=(r,t)=>{const e=r.insert("g").attr("class","node default").attr("id",t.domId||t.id),l=e.insert("circle",":first-child"),a=e.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),l.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),k(t,a),t.intersect=function(s){return m.circle(t,7,s)},e},Ft=(r,t)=>{const e=t.padding/2,l=4,a=8;let s;t.classes?s="node "+t.classes:s="node default";const i=r.insert("g").attr("class",s).attr("id",t.domId||t.id),n=i.insert("rect",":first-child"),c=i.insert("line"),o=i.insert("line");let h=0,f=l;const b=i.insert("g").attr("class","label");let p=0;const d=t.classData.annotations&&t.classData.annotations[0],y=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",g=b.node().appendChild($(y,t.labelStyle,!0,!0));let u=g.getBBox();if(H(w().flowchart.htmlLabels)){const v=g.children[0],L=B(g);u=v.getBoundingClientRect(),L.attr("width",u.width),L.attr("height",u.height)}t.classData.annotations[0]&&(f+=u.height+l,h+=u.width);let I=t.classData.label;t.classData.type!==void 0&&t.classData.type!==""&&(w().flowchart.htmlLabels?I+="<"+t.classData.type+">":I+="<"+t.classData.type+">");const R=b.node().appendChild($(I,t.labelStyle,!0,!0));B(R).attr("class","classTitle");let M=R.getBBox();if(H(w().flowchart.htmlLabels)){const v=R.children[0],L=B(R);M=v.getBoundingClientRect(),L.attr("width",M.width),L.attr("height",M.height)}f+=M.height+l,M.width>h&&(h=M.width);const W=[];t.classData.members.forEach(v=>{const L=V(v);let X=L.displayText;w().flowchart.htmlLabels&&(X=X.replace(/</g,"<").replace(/>/g,">"));const N=b.node().appendChild($(X,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let C=N.getBBox();if(H(w().flowchart.htmlLabels)){const j=N.children[0],A=B(N);C=j.getBoundingClientRect(),A.attr("width",C.width),A.attr("height",C.height)}C.width>h&&(h=C.width),f+=C.height+l,W.push(N)}),f+=a;const Z=[];if(t.classData.methods.forEach(v=>{const L=V(v);let X=L.displayText;w().flowchart.htmlLabels&&(X=X.replace(/</g,"<").replace(/>/g,">"));const N=b.node().appendChild($(X,L.cssStyle?L.cssStyle:t.labelStyle,!0,!0));let C=N.getBBox();if(H(w().flowchart.htmlLabels)){const j=N.children[0],A=B(N);C=j.getBoundingClientRect(),A.attr("width",C.width),A.attr("height",C.height)}C.width>h&&(h=C.width),f+=C.height+l,Z.push(N)}),f+=a,d){let v=(h-u.width)/2;B(g).attr("transform","translate( "+(-1*h/2+v)+", "+-1*f/2+")"),p=u.height+l}let st=(h-M.width)/2;return B(R).attr("transform","translate( "+(-1*h/2+st)+", "+(-1*f/2+p)+")"),p+=M.height+l,c.attr("class","divider").attr("x1",-h/2-e).attr("x2",h/2+e).attr("y1",-f/2-e+a+p).attr("y2",-f/2-e+a+p),p+=a,W.forEach(v=>{B(v).attr("transform","translate( "+-h/2+", "+(-1*f/2+p+a/2)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+l}),p+=a,o.attr("class","divider").attr("x1",-h/2-e).attr("x2",h/2+e).attr("y1",-f/2-e+a+p).attr("y2",-f/2-e+a+p),p+=a,Z.forEach(v=>{B(v).attr("transform","translate( "+-h/2+", "+(-1*f/2+p)+")");const L=v==null?void 0:v.getBBox();p+=((L==null?void 0:L.height)??0)+l}),n.attr("class","outer title-state").attr("x",-h/2-e).attr("y",-(f/2)-e).attr("width",h+t.padding).attr("height",f+t.padding),k(t,n),t.intersect=function(v){return m.rect(t,v)},i},P={rhombus:G,question:G,rect:Xt,labelRect:Yt,rectWithTitle:At,choice:Ct,circle:Dt,doublecircle:Ot,stadium:Ut,hexagon:Tt,rect_left_inv_arrow:Rt,lean_right:$t,lean_left:It,trapezoid:Ht,inv_trapezoid:Nt,rect_right_inv_arrow:_t,cylinder:Wt,start:zt,end:Zt,note:Mt,subroutine:jt,fork:K,join:K,class_box:Ft};let Y={};const tr=async(r,t,e)=>{let l,a;if(t.link){let s;w().securityLevel==="sandbox"?s="_top":t.linkTarget&&(s=t.linkTarget||"_blank"),l=r.insert("svg:a").attr("xlink:href",t.link).attr("target",s),a=await P[t.shape](l,t,e)}else a=await P[t.shape](r,t,e),l=a;return t.tooltip&&a.attr("title",t.tooltip),t.class&&a.attr("class","node default "+t.class),Y[t.id]=l,t.haveCallback&&Y[t.id].attr("class",Y[t.id].attr("class")+" clickable"),l},rr=(r,t)=>{Y[t.id]=r},ar=()=>{Y={}},er=r=>{const t=Y[r.id];x.trace("Transforming node",r.diff,r,"translate("+(r.x-r.width/2-5)+", "+r.width/2+")");const e=8,l=r.diff||0;return r.clusterNode?t.attr("transform","translate("+(r.x+l-r.width/2)+", "+(r.y-r.height/2-e)+")"):t.attr("transform","translate("+r.x+", "+r.y+")"),l};let O={},S={};const sr=()=>{O={},S={}},ir=(r,t)=>{const e=H(w().flowchart.htmlLabels),l=t.labelType==="markdown"?rt(r,t.label,{style:t.labelStyle,useHtmlLabels:e,addSvgBackground:!0}):$(t.label,t.labelStyle);x.info("abc82",t,t.labelType);const a=r.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label");s.node().appendChild(l);let i=l.getBBox();if(e){const c=l.children[0],o=B(l);i=c.getBoundingClientRect(),o.attr("width",i.width),o.attr("height",i.height)}s.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),O[t.id]=a,t.width=i.width,t.height=i.height;let n;if(t.startLabelLeft){const c=$(t.startLabelLeft,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),S[t.id]||(S[t.id]={}),S[t.id].startLeft=o,D(n,t.startLabelLeft)}if(t.startLabelRight){const c=$(t.startLabelRight,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=o.node().appendChild(c),h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),S[t.id]||(S[t.id]={}),S[t.id].startRight=o,D(n,t.startLabelRight)}if(t.endLabelLeft){const c=$(t.endLabelLeft,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),S[t.id]||(S[t.id]={}),S[t.id].endLeft=o,D(n,t.endLabelLeft)}if(t.endLabelRight){const c=$(t.endLabelRight,t.labelStyle),o=r.insert("g").attr("class","edgeTerminals"),h=o.insert("g").attr("class","inner");n=h.node().appendChild(c);const f=c.getBBox();h.attr("transform","translate("+-f.width/2+", "+-f.height/2+")"),o.node().appendChild(c),S[t.id]||(S[t.id]={}),S[t.id].endRight=o,D(n,t.endLabelRight)}return l};function D(r,t){w().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}const lr=(r,t)=>{x.info("Moving label abc78 ",r.id,r.label,O[r.id]);let e=t.updatedPath?t.updatedPath:t.originalPath;if(r.label){const l=O[r.id];let a=r.x,s=r.y;if(e){const i=U.calcLabelPosition(e);x.info("Moving label "+r.label+" from (",a,",",s,") to (",i.x,",",i.y,") abc78"),t.updatedPath&&(a=i.x,s=i.y)}l.attr("transform","translate("+a+", "+s+")")}if(r.startLabelLeft){const l=S[r.id].startLeft;let a=r.x,s=r.y;if(e){const i=U.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",e);a=i.x,s=i.y}l.attr("transform","translate("+a+", "+s+")")}if(r.startLabelRight){const l=S[r.id].startRight;let a=r.x,s=r.y;if(e){const i=U.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",e);a=i.x,s=i.y}l.attr("transform","translate("+a+", "+s+")")}if(r.endLabelLeft){const l=S[r.id].endLeft;let a=r.x,s=r.y;if(e){const i=U.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",e);a=i.x,s=i.y}l.attr("transform","translate("+a+", "+s+")")}if(r.endLabelRight){const l=S[r.id].endRight;let a=r.x,s=r.y;if(e){const i=U.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",e);a=i.x,s=i.y}l.attr("transform","translate("+a+", "+s+")")}},Qt=(r,t)=>{const e=r.x,l=r.y,a=Math.abs(t.x-e),s=Math.abs(t.y-l),i=r.width/2,n=r.height/2;return a>=i||s>=n},Vt=(r,t,e)=>{x.warn(`intersection calc abc89:
|
|
2
2
|
outsidePoint: ${JSON.stringify(t)}
|
|
3
3
|
insidePoint : ${JSON.stringify(e)}
|
|
4
4
|
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);const l=r.x,a=r.y,s=Math.abs(l-e.x),i=r.width/2;let n=e.x<t.x?i-s:i+s;const c=r.height/2,o=Math.abs(t.y-e.y),h=Math.abs(t.x-e.x);if(Math.abs(a-t.y)*i>Math.abs(l-t.x)*c){let f=e.y<t.y?t.y-c-a:a-c-t.y;n=h*f/o;const b={x:e.x<t.x?e.x+n:e.x-h+n,y:e.y<t.y?e.y+o-f:e.y-o+f};return n===0&&(b.x=t.x,b.y=t.y),h===0&&(b.x=t.x),o===0&&(b.y=t.y),x.warn(`abc89 topp/bott calc, Q ${o}, q ${f}, R ${h}, r ${n}`,b),b}else{e.x<t.x?n=t.x-i-l:n=l-i-t.x;let f=o*n/h,b=e.x<t.x?e.x+h-n:e.x-h+n,p=e.y<t.y?e.y+f:e.y-f;return x.warn(`sides calc abc89, Q ${o}, q ${f}, R ${h}, r ${n}`,{_x:b,_y:p}),n===0&&(b=t.x,p=t.y),h===0&&(b=t.x),o===0&&(p=t.y),{x:b,y:p}}},tt=(r,t)=>{x.warn("abc88 cutPathAtIntersect",r,t);let e=[],l=r[0],a=!1;return r.forEach(s=>{if(x.info("abc88 checking point",s,t),!Qt(t,s)&&!a){const i=Vt(t,l,s);x.warn("abc88 inside",s,l,i),x.warn("abc88 intersection",i);let n=!1;e.forEach(c=>{n=n||c.x===i.x&&c.y===i.y}),e.some(c=>c.x===i.x&&c.y===i.y)?x.warn("abc88 no intersect",i,e):e.push(i),a=!0}else x.warn("abc88 outside",s,l),l=s,a||e.push(s)}),x.warn("abc88 returning points",e),e},nr=function(r,t,e,l,a,s){let i=e.points,n=!1;const c=s.node(t.v);var o=s.node(t.w);x.info("abc88 InsertEdge: ",e),o.intersect&&c.intersect&&(i=i.slice(1,e.points.length-1),i.unshift(c.intersect(i[0])),x.info("Last point",i[i.length-1],o,o.intersect(i[i.length-1])),i.push(o.intersect(i[i.length-1]))),e.toCluster&&(x.info("to cluster abc88",l[e.toCluster]),i=tt(e.points,l[e.toCluster].node),n=!0),e.fromCluster&&(x.info("from cluster abc88",l[e.fromCluster]),i=tt(i.reverse(),l[e.fromCluster].node).reverse(),n=!0);const h=i.filter(u=>!Number.isNaN(u.y));let f;a==="graph"||a==="flowchart"?f=e.curve||Q:f=Q;const b=it().x(function(u){return u.x}).y(function(u){return u.y}).curve(f);let p;switch(e.thickness){case"normal":p="edge-thickness-normal";break;case"thick":p="edge-thickness-thick";break;case"invisible":p="edge-thickness-thick";break;default:p=""}switch(e.pattern){case"solid":p+=" edge-pattern-solid";break;case"dotted":p+=" edge-pattern-dotted";break;case"dashed":p+=" edge-pattern-dashed";break}const d=r.append("path").attr("d",b(h)).attr("id",e.id).attr("class"," "+p+(e.classes?" "+e.classes:"")).attr("style",e.style);let y="";switch((w().flowchart.arrowMarkerAbsolute||w().state.arrowMarkerAbsolute)&&(y=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,y=y.replace(/\(/g,"\\("),y=y.replace(/\)/g,"\\)")),x.info("arrowTypeStart",e.arrowTypeStart),x.info("arrowTypeEnd",e.arrowTypeEnd),e.arrowTypeStart){case"arrow_cross":d.attr("marker-start","url("+y+"#"+a+"-crossStart)");break;case"arrow_point":d.attr("marker-start","url("+y+"#"+a+"-pointStart)");break;case"arrow_barb":d.attr("marker-start","url("+y+"#"+a+"-barbStart)");break;case"arrow_circle":d.attr("marker-start","url("+y+"#"+a+"-circleStart)");break;case"aggregation":d.attr("marker-start","url("+y+"#"+a+"-aggregationStart)");break;case"extension":d.attr("marker-start","url("+y+"#"+a+"-extensionStart)");break;case"composition":d.attr("marker-start","url("+y+"#"+a+"-compositionStart)");break;case"dependency":d.attr("marker-start","url("+y+"#"+a+"-dependencyStart)");break;case"lollipop":d.attr("marker-start","url("+y+"#"+a+"-lollipopStart)");break}switch(e.arrowTypeEnd){case"arrow_cross":d.attr("marker-end","url("+y+"#"+a+"-crossEnd)");break;case"arrow_point":d.attr("marker-end","url("+y+"#"+a+"-pointEnd)");break;case"arrow_barb":d.attr("marker-end","url("+y+"#"+a+"-barbEnd)");break;case"arrow_circle":d.attr("marker-end","url("+y+"#"+a+"-circleEnd)");break;case"aggregation":d.attr("marker-end","url("+y+"#"+a+"-aggregationEnd)");break;case"extension":d.attr("marker-end","url("+y+"#"+a+"-extensionEnd)");break;case"composition":d.attr("marker-end","url("+y+"#"+a+"-compositionEnd)");break;case"dependency":d.attr("marker-end","url("+y+"#"+a+"-dependencyEnd)");break;case"lollipop":d.attr("marker-end","url("+y+"#"+a+"-lollipopEnd)");break}let g={};return n&&(g.updatedPath=i),g.originalPath=e.points,g};export{tr as a,ir as b,nr as c,lr as d,ar as e,sr as f,$ as g,Bt as h,Pt as i,E as l,er as p,rr as s,k as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as V,s as xt,g as Rt,b as Ot,a as bt,D as Nt,E as Tt,m as At,l as et,F as Mt,h as st,A as vt,i as Dt,G as wt,H as It}from"./index-
|
|
1
|
+
import{c as V,s as xt,g as Rt,b as Ot,a as bt,D as Nt,E as Tt,m as At,l as et,F as Mt,h as st,A as vt,i as Dt,G as wt,H as It}from"./index-nVoogp1U.js";import{G as St,l as Lt}from"./layout-fVXYNle2.js";import{l as Bt}from"./line-Z_CHQEeo.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const Ct=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Pt(t){return typeof t=="string"&&Ct.test(t)}const T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));function Yt(t,r=0){return(T[t[r+0]]+T[t[r+1]]+T[t[r+2]]+T[t[r+3]]+"-"+T[t[r+4]]+T[t[r+5]]+"-"+T[t[r+6]]+T[t[r+7]]+"-"+T[t[r+8]]+T[t[r+9]]+"-"+T[t[r+10]]+T[t[r+11]]+T[t[r+12]]+T[t[r+13]]+T[t[r+14]]+T[t[r+15]]).toLowerCase()}function Zt(t){if(!Pt(t))throw TypeError("Invalid UUID");let r;const e=new Uint8Array(16);return e[0]=(r=parseInt(t.slice(0,8),16))>>>24,e[1]=r>>>16&255,e[2]=r>>>8&255,e[3]=r&255,e[4]=(r=parseInt(t.slice(9,13),16))>>>8,e[5]=r&255,e[6]=(r=parseInt(t.slice(14,18),16))>>>8,e[7]=r&255,e[8]=(r=parseInt(t.slice(19,23),16))>>>8,e[9]=r&255,e[10]=(r=parseInt(t.slice(24,36),16))/1099511627776&255,e[11]=r/4294967296&255,e[12]=r>>>24&255,e[13]=r>>>16&255,e[14]=r>>>8&255,e[15]=r&255,e}function Ft(t){t=unescape(encodeURIComponent(t));const r=[];for(let e=0;e<t.length;++e)r.push(t.charCodeAt(e));return r}const Wt="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Vt="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ut(t,r,e){function n(s,p,f,o){var c;if(typeof s=="string"&&(s=Ft(s)),typeof p=="string"&&(p=Zt(p)),((c=p)===null||c===void 0?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let _=new Uint8Array(16+s.length);if(_.set(p),_.set(s,p.length),_=e(_),_[6]=_[6]&15|r,_[8]=_[8]&63|128,f){o=o||0;for(let E=0;E<16;++E)f[o+E]=_[E];return f}return Yt(_)}try{n.name=t}catch{}return n.DNS=Wt,n.URL=Vt,n}function Ht(t,r,e,n){switch(t){case 0:return r&e^~r&n;case 1:return r^e^n;case 2:return r&e^r&n^e&n;case 3:return r^e^n}}function ot(t,r){return t<<r|t>>>32-r}function Gt(t){const r=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){const f=unescape(encodeURIComponent(t));t=[];for(let o=0;o<f.length;++o)t.push(f.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);const n=t.length/4+2,s=Math.ceil(n/16),p=new Array(s);for(let f=0;f<s;++f){const o=new Uint32Array(16);for(let c=0;c<16;++c)o[c]=t[f*64+c*4]<<24|t[f*64+c*4+1]<<16|t[f*64+c*4+2]<<8|t[f*64+c*4+3];p[f]=o}p[s-1][14]=(t.length-1)*8/Math.pow(2,32),p[s-1][14]=Math.floor(p[s-1][14]),p[s-1][15]=(t.length-1)*8&4294967295;for(let f=0;f<s;++f){const o=new Uint32Array(80);for(let y=0;y<16;++y)o[y]=p[f][y];for(let y=16;y<80;++y)o[y]=ot(o[y-3]^o[y-8]^o[y-14]^o[y-16],1);let c=e[0],_=e[1],E=e[2],g=e[3],O=e[4];for(let y=0;y<80;++y){const A=Math.floor(y/20),Y=ot(c,5)+Ht(A,_,E,g)+O+r[A]+o[y]>>>0;O=g,g=E,E=ot(_,30)>>>0,_=c,c=Y}e[0]=e[0]+c>>>0,e[1]=e[1]+_>>>0,e[2]=e[2]+E>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+O>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,e[0]&255,e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,e[1]&255,e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,e[2]&255,e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,e[3]&255,e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,e[4]&255]}const zt=Ut("v5",80,Gt),Kt=zt;var ct=function(){var t=function(M,a,l,d){for(l=l||{},d=M.length;d--;l[M[d]]=a);return l},r=[1,2],e=[1,5],n=[6,9,11,23,25,27,29,30,31,52],s=[1,17],p=[1,18],f=[1,19],o=[1,20],c=[1,21],_=[1,22],E=[1,25],g=[1,30],O=[1,31],y=[1,32],A=[1,33],Y=[1,34],U=[6,9,11,15,20,23,25,27,29,30,31,44,45,46,47,48,52],X=[1,46],I=[30,31,49,50],N=[4,6,9,11,23,25,27,29,30,31,52],v=[44,45,46,47,48],k=[22,37],x=[1,66],P=[1,65],Z=[22,37,39,41],w={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,ENTITY_NAME:31,attribute:32,attributeType:33,attributeName:34,attributeKeyTypeList:35,attributeComment:36,ATTRIBUTE_WORD:37,attributeKeyType:38,COMMA:39,ATTRIBUTE_KEY:40,COMMENT:41,cardinality:42,relType:43,ZERO_OR_ONE:44,ZERO_OR_MORE:45,ONE_OR_MORE:46,ONLY_ONE:47,MD_PARENT:48,NON_IDENTIFYING:49,IDENTIFYING:50,WORD:51,open_directive:52,type_directive:53,arg_directive:54,close_directive:55,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"title",24:"title_value",25:"acc_title",26:"acc_title_value",27:"acc_descr",28:"acc_descr_value",29:"acc_descr_multiline_value",30:"ALPHANUM",31:"ENTITY_NAME",37:"ATTRIBUTE_WORD",39:"COMMA",40:"ATTRIBUTE_KEY",41:"COMMENT",44:"ZERO_OR_ONE",45:"ZERO_OR_MORE",46:"ONE_OR_MORE",47:"ONLY_ONE",48:"MD_PARENT",49:"NON_IDENTIFYING",50:"IDENTIFYING",51:"WORD",52:"open_directive",53:"type_directive",54:"arg_directive",55:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[17,1],[21,1],[21,2],[32,2],[32,3],[32,3],[32,4],[33,1],[34,1],[35,1],[35,3],[38,1],[36,1],[18,3],[42,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[19,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(a,l,d,u,m,i,Q){var h=i.length-1;switch(m){case 1:break;case 3:this.$=[];break;case 4:i[h-1].push(i[h]),this.$=i[h-1];break;case 5:case 6:this.$=i[h];break;case 7:case 8:this.$=[];break;case 12:u.addEntity(i[h-4]),u.addEntity(i[h-2]),u.addRelationship(i[h-4],i[h],i[h-2],i[h-3]);break;case 13:u.addEntity(i[h-3]),u.addAttributes(i[h-3],i[h-1]);break;case 14:u.addEntity(i[h-2]);break;case 15:u.addEntity(i[h]);break;case 16:case 17:this.$=i[h].trim(),u.setAccTitle(this.$);break;case 18:case 19:this.$=i[h].trim(),u.setAccDescription(this.$);break;case 20:case 44:this.$=i[h];break;case 21:case 42:case 43:this.$=i[h].replace(/"/g,"");break;case 22:case 30:this.$=[i[h]];break;case 23:i[h].push(i[h-1]),this.$=i[h];break;case 24:this.$={attributeType:i[h-1],attributeName:i[h]};break;case 25:this.$={attributeType:i[h-2],attributeName:i[h-1],attributeKeyTypeList:i[h]};break;case 26:this.$={attributeType:i[h-2],attributeName:i[h-1],attributeComment:i[h]};break;case 27:this.$={attributeType:i[h-3],attributeName:i[h-2],attributeKeyTypeList:i[h-1],attributeComment:i[h]};break;case 28:case 29:case 32:this.$=i[h];break;case 31:i[h-2].push(i[h]),this.$=i[h-2];break;case 33:this.$=i[h].replace(/"/g,"");break;case 34:this.$={cardA:i[h],relType:i[h-1],cardB:i[h-2]};break;case 35:this.$=u.Cardinality.ZERO_OR_ONE;break;case 36:this.$=u.Cardinality.ZERO_OR_MORE;break;case 37:this.$=u.Cardinality.ONE_OR_MORE;break;case 38:this.$=u.Cardinality.ONLY_ONE;break;case 39:this.$=u.Cardinality.MD_PARENT;break;case 40:this.$=u.Identification.NON_IDENTIFYING;break;case 41:this.$=u.Identification.IDENTIFYING;break;case 45:u.parseDirective("%%{","open_directive");break;case 46:u.parseDirective(i[h],"type_directive");break;case 47:i[h]=i[h].trim().replace(/'/g,'"'),u.parseDirective(i[h],"arg_directive");break;case 48:u.parseDirective("}%%","close_directive","er");break}},table:[{3:1,4:r,7:3,12:4,52:e},{1:[3]},t(n,[2,3],{5:6}),{3:7,4:r,7:3,12:4,52:e},{13:8,53:[1,9]},{53:[2,45]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:s,25:p,27:f,29:o,30:c,31:_,52:e},{1:[2,2]},{14:23,15:[1,24],55:E},t([15,55],[2,46]),t(n,[2,8],{1:[2,1]}),t(n,[2,4]),{7:15,10:26,12:4,17:16,23:s,25:p,27:f,29:o,30:c,31:_,52:e},t(n,[2,6]),t(n,[2,7]),t(n,[2,11]),t(n,[2,15],{18:27,42:29,20:[1,28],44:g,45:O,46:y,47:A,48:Y}),{24:[1,35]},{26:[1,36]},{28:[1,37]},t(n,[2,19]),t(U,[2,20]),t(U,[2,21]),{11:[1,38]},{16:39,54:[1,40]},{11:[2,48]},t(n,[2,5]),{17:41,30:c,31:_},{21:42,22:[1,43],32:44,33:45,37:X},{43:47,49:[1,48],50:[1,49]},t(I,[2,35]),t(I,[2,36]),t(I,[2,37]),t(I,[2,38]),t(I,[2,39]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(N,[2,9]),{14:50,55:E},{55:[2,47]},{15:[1,51]},{22:[1,52]},t(n,[2,14]),{21:53,22:[2,22],32:44,33:45,37:X},{34:54,37:[1,55]},{37:[2,28]},{42:56,44:g,45:O,46:y,47:A,48:Y},t(v,[2,40]),t(v,[2,41]),{11:[1,57]},{19:58,30:[1,61],31:[1,60],51:[1,59]},t(n,[2,13]),{22:[2,23]},t(k,[2,24],{35:62,36:63,38:64,40:x,41:P}),t([22,37,40,41],[2,29]),t([30,31],[2,34]),t(N,[2,10]),t(n,[2,12]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),t(k,[2,25],{36:67,39:[1,68],41:P}),t(k,[2,26]),t(Z,[2,30]),t(k,[2,33]),t(Z,[2,32]),t(k,[2,27]),{38:69,40:x},t(Z,[2,31])],defaultActions:{5:[2,45],7:[2,2],25:[2,48],40:[2,47],46:[2,28],53:[2,23]},parseError:function(a,l){if(l.recoverable)this.trace(a);else{var d=new Error(a);throw d.hash=l,d}},parse:function(a){var l=this,d=[0],u=[],m=[null],i=[],Q=this.table,h="",q=0,ht=0,Et=2,dt=1,mt=i.slice.call(arguments,1),b=Object.create(this.lexer),G={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(G.yy[rt]=this.yy[rt]);b.setInput(a,G.yy),G.yy.lexer=b,G.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var it=b.yylloc;i.push(it);var gt=b.options&&b.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function kt(){var W;return W=u.pop()||b.lex()||dt,typeof W!="number"&&(W instanceof Array&&(u=W,W=u.pop()),W=l.symbols_[W]||W),W}for(var D,z,L,at,K={},J,F,ut,tt;;){if(z=d[d.length-1],this.defaultActions[z]?L=this.defaultActions[z]:((D===null||typeof D>"u")&&(D=kt()),L=Q[z]&&Q[z][D]),typeof L>"u"||!L.length||!L[0]){var nt="";tt=[];for(J in Q[z])this.terminals_[J]&&J>Et&&tt.push("'"+this.terminals_[J]+"'");b.showPosition?nt="Parse error on line "+(q+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+tt.join(", ")+", got '"+(this.terminals_[D]||D)+"'":nt="Parse error on line "+(q+1)+": Unexpected "+(D==dt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(nt,{text:b.match,token:this.terminals_[D]||D,line:b.yylineno,loc:it,expected:tt})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+D);switch(L[0]){case 1:d.push(D),m.push(b.yytext),i.push(b.yylloc),d.push(L[1]),D=null,ht=b.yyleng,h=b.yytext,q=b.yylineno,it=b.yylloc;break;case 2:if(F=this.productions_[L[1]][1],K.$=m[m.length-F],K._$={first_line:i[i.length-(F||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(F||1)].first_column,last_column:i[i.length-1].last_column},gt&&(K._$.range=[i[i.length-(F||1)].range[0],i[i.length-1].range[1]]),at=this.performAction.apply(K,[h,ht,q,G.yy,L[1],m,i].concat(mt)),typeof at<"u")return at;F&&(d=d.slice(0,-1*F*2),m=m.slice(0,-1*F),i=i.slice(0,-1*F)),d.push(this.productions_[L[1]][0]),m.push(K.$),i.push(K._$),ut=Q[d[d.length-2]][d[d.length-1]],d.push(ut);break;case 3:return!0}}return!0}},H=function(){var M={EOF:1,parseError:function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},setInput:function(a,l){return this.yy=l||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var l=a.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var l=a.length,d=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var m=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:d?(d.length===u.length?this.yylloc.first_column:0)+u[u.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),l=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as At,aS as Ie,s as Re,g as Ne,a as Oe,b as Pe,D as we,E as Ge,m as Ue,l as dt,A as Et,F as Me,j as Ke,h as N1}from"./index-fUjal6zz.js";var pt=function(){var e=function(l1,a,o,p){for(o=o||{},p=l1.length;p--;o[l1[p]]=a);return o},u=[1,9],i=[1,7],n=[1,6],c=[1,8],l=[1,20,21,22,23,38,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],h=[2,10],G=[1,20],g=[1,21],O=[1,22],z=[1,23],c1=[1,30],h1=[1,32],p1=[1,33],V1=[1,34],k=[1,56],S=[1,55],w1=[1,36],G1=[1,37],U1=[1,38],M1=[1,39],K1=[1,40],B=[1,51],v=[1,53],x=[1,49],y=[1,54],m=[1,50],V=[1,57],L=[1,52],I=[1,58],R=[1,59],j1=[1,41],Y1=[1,42],X1=[1,43],z1=[1,44],bt=[1,62],L1=[1,67],_=[1,20,21,22,23,38,43,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],H=[1,71],W=[1,70],q=[1,72],H1=[20,21,23,84,86],E1=[1,98],k1=[1,103],b1=[1,102],D1=[1,99],g1=[1,95],F1=[1,101],_1=[1,97],T1=[1,104],S1=[1,100],C1=[1,105],B1=[1,96],W1=[20,21,22,23,84,86],N=[20,21,22,23,55,84,86],M=[20,21,22,23,40,53,55,57,59,61,63,65,67,69,72,74,76,77,79,84,86,97,110,113,114,117,119,122,123,124],F=[20,21,23],Dt=[20,21,23,53,69,84,86,97,110,113,114,117,119,122,123,124],it=[1,12,20,21,22,23,24,38,43,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],I1=[53,69,97,110,113,114,117,119,122,123,124],gt=[1,134],Ft=[1,133],_t=[1,141],Tt=[1,155],St=[1,156],Ct=[1,157],Bt=[1,158],vt=[1,143],xt=[1,145],yt=[1,149],mt=[1,150],Vt=[1,151],Lt=[1,152],It=[1,153],Rt=[1,154],Nt=[1,159],Ot=[1,160],Pt=[1,139],wt=[1,140],Gt=[1,147],Ut=[1,142],Mt=[1,146],Kt=[1,144],rt=[20,21,22,23,38,43,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],jt=[1,162],K=[20,21,22,23,26,53,69,97,113,114,117,119,122,123,124],f=[1,182],P=[1,178],w=[1,179],A=[1,183],d=[1,180],E=[1,181],Yt=[12,21,22,24],v1=[86,124,127],b=[20,21,22,23,24,26,38,40,43,53,69,84,92,93,94,95,96,97,98,113,117,119,122,123,124],Xt=[22,114],o1=[42,58,60,62,64,66,71,73,75,76,78,80,124,125,126],Z=[1,250],J=[1,248],$=[1,252],t1=[1,246],e1=[1,247],s1=[1,249],u1=[1,251],i1=[1,253],x1=[1,270],zt=[20,21,23,114],Q=[20,21,22,23,69,92,113,114,117,118,119,120],nt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,textNoTags:39,SQS:40,text:41,SQE:42,end:43,direction:44,acc_title:45,acc_title_value:46,acc_descr:47,acc_descr_value:48,acc_descr_multiline_value:49,link:50,node:51,styledVertex:52,AMP:53,vertex:54,STYLE_SEPARATOR:55,idString:56,DOUBLECIRCLESTART:57,DOUBLECIRCLEEND:58,PS:59,PE:60,"(-":61,"-)":62,STADIUMSTART:63,STADIUMEND:64,SUBROUTINESTART:65,SUBROUTINEEND:66,VERTEX_WITH_PROPS_START:67,"NODE_STRING[field]":68,COLON:69,"NODE_STRING[value]":70,PIPE:71,CYLINDERSTART:72,CYLINDEREND:73,DIAMOND_START:74,DIAMOND_STOP:75,TAGEND:76,TRAPSTART:77,TRAPEND:78,INVTRAPSTART:79,INVTRAPEND:80,linkStatement:81,arrowText:82,TESTSTR:83,START_LINK:84,edgeText:85,LINK:86,edgeTextToken:87,STR:88,MD_STR:89,textToken:90,keywords:91,STYLE:92,LINKSTYLE:93,CLASSDEF:94,CLASS:95,CLICK:96,DOWN:97,UP:98,textNoTagsToken:99,stylesOpt:100,"idString[vertex]":101,"idString[class]":102,CALLBACKNAME:103,CALLBACKARGS:104,HREF:105,LINK_TARGET:106,"STR[link]":107,"STR[tooltip]":108,alphaNum:109,DEFAULT:110,numList:111,INTERPOLATE:112,NUM:113,COMMA:114,style:115,styleComponent:116,NODE_STRING:117,UNIT:118,BRKT:119,PCT:120,idStringToken:121,MINUS:122,MULT:123,UNICODE_TEXT:124,TEXT:125,TAGSTART:126,EDGE_TEXT:127,alphaNumToken:128,direction_tb:129,direction_bt:130,direction_rl:131,direction_lr:132,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",42:"SQE",43:"end",45:"acc_title",46:"acc_title_value",47:"acc_descr",48:"acc_descr_value",49:"acc_descr_multiline_value",53:"AMP",55:"STYLE_SEPARATOR",57:"DOUBLECIRCLESTART",58:"DOUBLECIRCLEEND",59:"PS",60:"PE",61:"(-",62:"-)",63:"STADIUMSTART",64:"STADIUMEND",65:"SUBROUTINESTART",66:"SUBROUTINEEND",67:"VERTEX_WITH_PROPS_START",68:"NODE_STRING[field]",69:"COLON",70:"NODE_STRING[value]",71:"PIPE",72:"CYLINDERSTART",73:"CYLINDEREND",74:"DIAMOND_START",75:"DIAMOND_STOP",76:"TAGEND",77:"TRAPSTART",78:"TRAPEND",79:"INVTRAPSTART",80:"INVTRAPEND",83:"TESTSTR",84:"START_LINK",86:"LINK",88:"STR",89:"MD_STR",92:"STYLE",93:"LINKSTYLE",94:"CLASSDEF",95:"CLASS",96:"CLICK",97:"DOWN",98:"UP",101:"idString[vertex]",102:"idString[class]",103:"CALLBACKNAME",104:"CALLBACKARGS",105:"HREF",106:"LINK_TARGET",107:"STR[link]",108:"STR[tooltip]",110:"DEFAULT",112:"INTERPOLATE",113:"NUM",114:"COMMA",117:"NODE_STRING",118:"UNIT",119:"BRKT",120:"PCT",122:"MINUS",123:"MULT",124:"UNICODE_TEXT",125:"TEXT",126:"TAGSTART",127:"EDGE_TEXT",129:"direction_tb",130:"direction_bt",131:"direction_rl",132:"direction_lr"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[51,1],[51,5],[52,1],[52,3],[54,4],[54,4],[54,6],[54,4],[54,4],[54,4],[54,8],[54,4],[54,4],[54,4],[54,6],[54,4],[54,4],[54,4],[54,4],[54,4],[54,1],[50,2],[50,3],[50,3],[50,1],[50,3],[85,1],[85,2],[85,1],[85,1],[81,1],[82,3],[41,1],[41,2],[41,1],[41,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[39,1],[39,2],[39,1],[39,1],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,3],[37,5],[37,5],[37,7],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[111,1],[111,3],[100,1],[100,3],[115,1],[115,2],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[90,1],[90,1],[90,1],[90,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[87,1],[87,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[56,1],[56,2],[109,1],[109,2],[44,1],[44,1],[44,1],[44,1]],performAction:function(a,o,p,r,T,t,R1){var s=t.length-1;switch(T){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(t[s],"type_directive");break;case 7:t[s]=t[s].trim().replace(/'/g,'"'),r.parseDirective(t[s],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 12:case 184:this.$=t[s];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(t[s-1]),this.$=t[s-1];break;case 35:this.$=t[s-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 42:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 43:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 45:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 46:case 47:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 51:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 52:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 53:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 54:this.$={stmt:t[s],nodes:t[s]};break;case 55:this.$=[t[s]];break;case 56:this.$=t[s-4].concat(t[s]);break;case 57:this.$=t[s];break;case 58:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 65:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 67:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 68:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 69:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 70:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 71:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 72:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 73:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 74:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 75:this.$=t[s],r.addVertex(t[s]);break;case 76:t[s-1].text=t[s],this.$=t[s-1];break;case 77:case 78:t[s-2].text=t[s-1],this.$=t[s-2];break;case 79:this.$=t[s];break;case 80:var j=r.destructLink(t[s],t[s-2]);this.$={type:j.type,stroke:j.stroke,length:j.length,text:t[s-1]};break;case 81:this.$={text:t[s],type:"text"};break;case 82:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 83:this.$={text:t[s],type:"string"};break;case 84:this.$={text:t[s],type:"markdown"};break;case 85:var j=r.destructLink(t[s]);this.$={type:j.type,stroke:j.stroke,length:j.length};break;case 86:this.$=t[s-1];break;case 87:this.$={text:t[s],type:"text"};break;case 88:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 89:this.$={text:t[s],type:"string"};break;case 90:case 105:this.$={text:t[s],type:"markdown"};break;case 102:this.$={text:t[s],type:"text"};break;case 103:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 104:this.$={text:t[s],type:"text"};break;case 106:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 107:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 108:case 116:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 109:case 117:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 110:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 111:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 112:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 113:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 114:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 115:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 118:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 119:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 120:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 121:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 122:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 123:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 124:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 125:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 126:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 127:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 128:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 129:case 131:this.$=[t[s]];break;case 130:case 132:t[s-2].push(t[s]),this.$=t[s-2];break;case 134:this.$=t[s-1]+t[s];break;case 182:this.$=t[s];break;case 183:this.$=t[s-1]+""+t[s];break;case 185:this.$=t[s-1]+""+t[s];break;case 186:this.$={stmt:"dir",value:"TB"};break;case 187:this.$={stmt:"dir",value:"BT"};break;case 188:this.$={stmt:"dir",value:"RL"};break;case 189:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,5:3,6:5,12:u,16:4,21:i,22:n,24:c},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:u,16:4,21:i,22:n,24:c},e(l,h,{17:11}),{7:12,13:[1,13]},{16:14,21:i,22:n,24:c},{16:15,21:i,22:n,24:c},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:G,21:g,22:O,23:z,32:24,33:25,34:26,35:27,36:28,37:29,38:c1,44:31,45:h1,47:p1,49:V1,51:35,52:45,53:k,54:46,56:47,69:S,92:w1,93:G1,94:U1,95:M1,96:K1,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R,129:j1,130:Y1,131:X1,132:z1},{8:60,10:[1,61],15:bt},e([10,15],[2,6]),e(l,[2,17]),e(l,[2,18]),e(l,[2,19]),{20:[1,64],21:[1,65],22:L1,27:63,30:66},e(_,[2,11]),e(_,[2,12]),e(_,[2,13]),e(_,[2,14]),e(_,[2,15]),e(_,[2,16]),{9:68,20:H,21:W,23:q,50:69,81:73,84:[1,74],86:[1,75]},{9:76,20:H,21:W,23:q},{9:77,20:H,21:W,23:q},{9:78,20:H,21:W,23:q},{9:79,20:H,21:W,23:q},{9:80,20:H,21:W,23:q},{9:82,20:H,21:W,22:[1,81],23:q},e(_,[2,44]),{46:[1,83]},{48:[1,84]},e(_,[2,47]),e(H1,[2,54],{30:85,22:L1}),{22:[1,86]},{22:[1,87]},{22:[1,88]},{22:[1,89]},{26:E1,53:k1,69:b1,88:[1,93],97:D1,103:[1,90],105:[1,91],109:92,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1,128:94},e(_,[2,186]),e(_,[2,187]),e(_,[2,188]),e(_,[2,189]),e(W1,[2,55]),e(W1,[2,57],{55:[1,106]}),e(N,[2,75],{121:119,40:[1,107],53:k,57:[1,108],59:[1,109],61:[1,110],63:[1,111],65:[1,112],67:[1,113],69:S,72:[1,114],74:[1,115],76:[1,116],77:[1,117],79:[1,118],97:B,110:v,113:x,114:y,117:m,119:V,122:L,123:I,124:R}),e(M,[2,182]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(M,[2,146]),e(M,[2,147]),e(M,[2,148]),e(M,[2,149]),e(M,[2,150]),e(M,[2,151]),e(M,[2,152]),e(M,[2,153]),{9:120,20:H,21:W,23:q},{11:121,14:[1,122]},e(F,[2,8]),e(l,[2,20]),e(l,[2,26]),e(l,[2,27]),{21:[1,123]},e(Dt,[2,34],{30:124,22:L1}),e(_,[2,35]),{51:125,52:45,53:k,54:46,56:47,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},e(it,[2,48]),e(it,[2,49]),e(it,[2,50]),e(I1,[2,79],{82:126,71:[1,128],83:[1,127]}),{85:129,87:130,88:[1,131],89:[1,132],124:gt,127:Ft},e([53,69,71,83,97,110,113,114,117,119,122,123,124],[2,85]),e(_,[2,36]),e(_,[2,37]),e(_,[2,38]),e(_,[2,39]),e(_,[2,40]),{22:_t,24:Tt,26:St,38:Ct,39:135,43:Bt,53:vt,69:xt,84:yt,88:[1,137],89:[1,138],91:148,92:mt,93:Vt,94:Lt,95:It,96:Rt,97:Nt,98:Ot,99:136,113:Pt,117:wt,119:Gt,122:Ut,123:Mt,124:Kt},e(rt,h,{17:161}),e(_,[2,45]),e(_,[2,46]),e(H1,[2,53],{53:jt}),{53:k,56:163,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},{110:[1,164],111:165,113:[1,166]},{53:k,56:167,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},{53:k,56:168,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},e(F,[2,108],{22:[1,169],104:[1,170]}),{88:[1,171]},e(F,[2,116],{128:173,22:[1,172],26:E1,53:k1,69:b1,97:D1,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1}),e(F,[2,118],{22:[1,174]}),e(K,[2,184]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),e(K,[2,174]),e(K,[2,175]),e(K,[2,176]),e(K,[2,177]),e(K,[2,178]),e(K,[2,179]),e(K,[2,180]),e(K,[2,181]),{53:k,56:175,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},{41:176,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:184,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:186,59:[1,185],76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:187,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:188,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:189,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{117:[1,190]},{41:191,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:192,74:[1,193],76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:194,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:195,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:196,76:f,88:P,89:w,90:177,124:A,125:d,126:E},e(M,[2,183]),e(Yt,[2,3]),{8:197,15:bt},{15:[2,7]},e(l,[2,28]),e(Dt,[2,33]),e(H1,[2,51],{30:198,22:L1}),e(I1,[2,76],{22:[1,199]}),{22:[1,200]},{41:201,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{86:[1,202],87:203,124:gt,127:Ft},e(v1,[2,81]),e(v1,[2,83]),e(v1,[2,84]),e(v1,[2,169]),e(v1,[2,170]),{9:205,20:H,21:W,22:_t,23:q,24:Tt,26:St,38:Ct,40:[1,204],43:Bt,53:vt,69:xt,84:yt,91:148,92:mt,93:Vt,94:Lt,95:It,96:Rt,97:Nt,98:Ot,99:206,113:Pt,117:wt,119:Gt,122:Ut,123:Mt,124:Kt},e(b,[2,102]),e(b,[2,104]),e(b,[2,105]),e(b,[2,158]),e(b,[2,159]),e(b,[2,160]),e(b,[2,161]),e(b,[2,162]),e(b,[2,163]),e(b,[2,164]),e(b,[2,165]),e(b,[2,166]),e(b,[2,167]),e(b,[2,168]),e(b,[2,91]),e(b,[2,92]),e(b,[2,93]),e(b,[2,94]),e(b,[2,95]),e(b,[2,96]),e(b,[2,97]),e(b,[2,98]),e(b,[2,99]),e(b,[2,100]),e(b,[2,101]),{18:18,19:19,20:G,21:g,22:O,23:z,32:24,33:25,34:26,35:27,36:28,37:29,38:c1,43:[1,207],44:31,45:h1,47:p1,49:V1,51:35,52:45,53:k,54:46,56:47,69:S,92:w1,93:G1,94:U1,95:M1,96:K1,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R,129:j1,130:Y1,131:X1,132:z1},{22:L1,30:208},{22:[1,209],53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:119,122:L,123:I,124:R},{22:[1,210]},{22:[1,211],114:[1,212]},e(Xt,[2,129]),{22:[1,213],53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:119,122:L,123:I,124:R},{22:[1,214],53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:119,122:L,123:I,124:R},{88:[1,215]},e(F,[2,110],{22:[1,216]}),e(F,[2,112],{22:[1,217]}),{88:[1,218]},e(K,[2,185]),{88:[1,219],106:[1,220]},e(W1,[2,58],{121:119,53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,122:L,123:I,124:R}),{42:[1,221],76:f,90:222,124:A,125:d,126:E},e(o1,[2,87]),e(o1,[2,89]),e(o1,[2,90]),e(o1,[2,154]),e(o1,[2,155]),e(o1,[2,156]),e(o1,[2,157]),{58:[1,223],76:f,90:222,124:A,125:d,126:E},{41:224,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{60:[1,225],76:f,90:222,124:A,125:d,126:E},{62:[1,226],76:f,90:222,124:A,125:d,126:E},{64:[1,227],76:f,90:222,124:A,125:d,126:E},{66:[1,228],76:f,90:222,124:A,125:d,126:E},{69:[1,229]},{73:[1,230],76:f,90:222,124:A,125:d,126:E},{75:[1,231],76:f,90:222,124:A,125:d,126:E},{41:232,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{42:[1,233],76:f,90:222,124:A,125:d,126:E},{76:f,78:[1,234],80:[1,235],90:222,124:A,125:d,126:E},{76:f,78:[1,237],80:[1,236],90:222,124:A,125:d,126:E},{9:238,20:H,21:W,23:q},e(H1,[2,52],{53:jt}),e(I1,[2,78]),e(I1,[2,77]),{71:[1,239],76:f,90:222,124:A,125:d,126:E},e(I1,[2,80]),e(v1,[2,82]),{41:240,76:f,88:P,89:w,90:177,124:A,125:d,126:E},e(rt,h,{17:241}),e(b,[2,103]),e(_,[2,43]),{52:242,53:k,54:46,56:47,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},{22:Z,69:J,92:$,100:243,113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{22:Z,69:J,92:$,100:254,112:[1,255],113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{22:Z,69:J,92:$,100:256,112:[1,257],113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{113:[1,258]},{22:Z,69:J,92:$,100:259,113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{53:k,56:260,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},e(F,[2,109]),{88:[1,261]},{88:[1,262],106:[1,263]},e(F,[2,117]),e(F,[2,119],{22:[1,264]}),e(F,[2,120]),e(N,[2,59]),e(o1,[2,88]),e(N,[2,60]),{60:[1,265],76:f,90:222,124:A,125:d,126:E},e(N,[2,67]),e(N,[2,62]),e(N,[2,63]),e(N,[2,64]),{117:[1,266]},e(N,[2,66]),e(N,[2,68]),{75:[1,267],76:f,90:222,124:A,125:d,126:E},e(N,[2,70]),e(N,[2,71]),e(N,[2,73]),e(N,[2,72]),e(N,[2,74]),e(Yt,[2,4]),e([22,53,69,97,110,113,114,117,119,122,123,124],[2,86]),{42:[1,268],76:f,90:222,124:A,125:d,126:E},{18:18,19:19,20:G,21:g,22:O,23:z,32:24,33:25,34:26,35:27,36:28,37:29,38:c1,43:[1,269],44:31,45:h1,47:p1,49:V1,51:35,52:45,53:k,54:46,56:47,69:S,92:w1,93:G1,94:U1,95:M1,96:K1,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R,129:j1,130:Y1,131:X1,132:z1},e(W1,[2,56]),e(F,[2,122],{114:x1}),e(zt,[2,131],{116:271,22:Z,69:J,92:$,113:t1,117:e1,118:s1,119:u1,120:i1}),e(Q,[2,133]),e(Q,[2,135]),e(Q,[2,136]),e(Q,[2,137]),e(Q,[2,138]),e(Q,[2,139]),e(Q,[2,140]),e(Q,[2,141]),e(Q,[2,142]),e(F,[2,123],{114:x1}),{22:[1,272]},e(F,[2,124],{114:x1}),{22:[1,273]},e(Xt,[2,130]),e(F,[2,106],{114:x1}),e(F,[2,107],{121:119,53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,122:L,123:I,124:R}),e(F,[2,111]),e(F,[2,113],{22:[1,274]}),e(F,[2,114]),{106:[1,275]},{60:[1,276]},{71:[1,277]},{75:[1,278]},{9:279,20:H,21:W,23:q},e(_,[2,42]),{22:Z,69:J,92:$,113:t1,115:280,116:245,117:e1,118:s1,119:u1,120:i1},e(Q,[2,134]),{26:E1,53:k1,69:b1,97:D1,109:281,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1,128:94},{26:E1,53:k1,69:b1,97:D1,109:282,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1,128:94},{106:[1,283]},e(F,[2,121]),e(N,[2,61]),{41:284,76:f,88:P,89:w,90:177,124:A,125:d,126:E},e(N,[2,69]),e(rt,h,{17:285}),e(zt,[2,132],{116:271,22:Z,69:J,92:$,113:t1,117:e1,118:s1,119:u1,120:i1}),e(F,[2,127],{128:173,22:[1,286],26:E1,53:k1,69:b1,97:D1,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1}),e(F,[2,128],{128:173,22:[1,287],26:E1,53:k1,69:b1,97:D1,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1}),e(F,[2,115]),{42:[1,288],76:f,90:222,124:A,125:d,126:E},{18:18,19:19,20:G,21:g,22:O,23:z,32:24,33:25,34:26,35:27,36:28,37:29,38:c1,43:[1,289],44:31,45:h1,47:p1,49:V1,51:35,52:45,53:k,54:46,56:47,69:S,92:w1,93:G1,94:U1,95:M1,96:K1,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R,129:j1,130:Y1,131:X1,132:z1},{22:Z,69:J,92:$,100:290,113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{22:Z,69:J,92:$,100:291,113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},e(N,[2,65]),e(_,[2,41]),e(F,[2,125],{114:x1}),e(F,[2,126],{114:x1})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],122:[2,7]},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var p=new Error(a);throw p.hash=o,p}},parse:function(a){var o=this,p=[0],r=[],T=[null],t=[],R1=this.table,s="",j=0,Ht=0,ye=2,Wt=1,me=t.slice.call(arguments,1),C=Object.create(this.lexer),f1={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(f1.yy[ct]=this.yy[ct]);C.setInput(a,f1.yy),f1.yy.lexer=C,f1.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var ot=C.yylloc;t.push(ot);var Ve=C.options&&C.options.ranges;typeof f1.yy.parseError=="function"?this.parseError=f1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var n1;return n1=r.pop()||C.lex()||Wt,typeof n1!="number"&&(n1 instanceof Array&&(r=n1,n1=r.pop()),n1=o.symbols_[n1]||n1),n1}for(var U,A1,Y,lt,y1={},q1,r1,qt,Q1;;){if(A1=p[p.length-1],this.defaultActions[A1]?Y=this.defaultActions[A1]:((U===null||typeof U>"u")&&(U=Le()),Y=R1[A1]&&R1[A1][U]),typeof Y>"u"||!Y.length||!Y[0]){var ht="";Q1=[];for(q1 in R1[A1])this.terminals_[q1]&&q1>ye&&Q1.push("'"+this.terminals_[q1]+"'");C.showPosition?ht="Parse error on line "+(j+1)+`:
|
|
1
|
+
import{c as At,aS as Ie,s as Re,g as Ne,a as Oe,b as Pe,D as we,E as Ge,m as Ue,l as dt,A as Et,F as Me,j as Ke,h as N1}from"./index-nVoogp1U.js";var pt=function(){var e=function(l1,a,o,p){for(o=o||{},p=l1.length;p--;o[l1[p]]=a);return o},u=[1,9],i=[1,7],n=[1,6],c=[1,8],l=[1,20,21,22,23,38,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],h=[2,10],G=[1,20],g=[1,21],O=[1,22],z=[1,23],c1=[1,30],h1=[1,32],p1=[1,33],V1=[1,34],k=[1,56],S=[1,55],w1=[1,36],G1=[1,37],U1=[1,38],M1=[1,39],K1=[1,40],B=[1,51],v=[1,53],x=[1,49],y=[1,54],m=[1,50],V=[1,57],L=[1,52],I=[1,58],R=[1,59],j1=[1,41],Y1=[1,42],X1=[1,43],z1=[1,44],bt=[1,62],L1=[1,67],_=[1,20,21,22,23,38,43,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],H=[1,71],W=[1,70],q=[1,72],H1=[20,21,23,84,86],E1=[1,98],k1=[1,103],b1=[1,102],D1=[1,99],g1=[1,95],F1=[1,101],_1=[1,97],T1=[1,104],S1=[1,100],C1=[1,105],B1=[1,96],W1=[20,21,22,23,84,86],N=[20,21,22,23,55,84,86],M=[20,21,22,23,40,53,55,57,59,61,63,65,67,69,72,74,76,77,79,84,86,97,110,113,114,117,119,122,123,124],F=[20,21,23],Dt=[20,21,23,53,69,84,86,97,110,113,114,117,119,122,123,124],it=[1,12,20,21,22,23,24,38,43,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],I1=[53,69,97,110,113,114,117,119,122,123,124],gt=[1,134],Ft=[1,133],_t=[1,141],Tt=[1,155],St=[1,156],Ct=[1,157],Bt=[1,158],vt=[1,143],xt=[1,145],yt=[1,149],mt=[1,150],Vt=[1,151],Lt=[1,152],It=[1,153],Rt=[1,154],Nt=[1,159],Ot=[1,160],Pt=[1,139],wt=[1,140],Gt=[1,147],Ut=[1,142],Mt=[1,146],Kt=[1,144],rt=[20,21,22,23,38,43,45,47,49,53,69,92,93,94,95,96,97,110,113,114,117,119,122,123,124,129,130,131,132],jt=[1,162],K=[20,21,22,23,26,53,69,97,113,114,117,119,122,123,124],f=[1,182],P=[1,178],w=[1,179],A=[1,183],d=[1,180],E=[1,181],Yt=[12,21,22,24],v1=[86,124,127],b=[20,21,22,23,24,26,38,40,43,53,69,84,92,93,94,95,96,97,98,113,117,119,122,123,124],Xt=[22,114],o1=[42,58,60,62,64,66,71,73,75,76,78,80,124,125,126],Z=[1,250],J=[1,248],$=[1,252],t1=[1,246],e1=[1,247],s1=[1,249],u1=[1,251],i1=[1,253],x1=[1,270],zt=[20,21,23,114],Q=[20,21,22,23,69,92,113,114,117,118,119,120],nt={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,textNoTags:39,SQS:40,text:41,SQE:42,end:43,direction:44,acc_title:45,acc_title_value:46,acc_descr:47,acc_descr_value:48,acc_descr_multiline_value:49,link:50,node:51,styledVertex:52,AMP:53,vertex:54,STYLE_SEPARATOR:55,idString:56,DOUBLECIRCLESTART:57,DOUBLECIRCLEEND:58,PS:59,PE:60,"(-":61,"-)":62,STADIUMSTART:63,STADIUMEND:64,SUBROUTINESTART:65,SUBROUTINEEND:66,VERTEX_WITH_PROPS_START:67,"NODE_STRING[field]":68,COLON:69,"NODE_STRING[value]":70,PIPE:71,CYLINDERSTART:72,CYLINDEREND:73,DIAMOND_START:74,DIAMOND_STOP:75,TAGEND:76,TRAPSTART:77,TRAPEND:78,INVTRAPSTART:79,INVTRAPEND:80,linkStatement:81,arrowText:82,TESTSTR:83,START_LINK:84,edgeText:85,LINK:86,edgeTextToken:87,STR:88,MD_STR:89,textToken:90,keywords:91,STYLE:92,LINKSTYLE:93,CLASSDEF:94,CLASS:95,CLICK:96,DOWN:97,UP:98,textNoTagsToken:99,stylesOpt:100,"idString[vertex]":101,"idString[class]":102,CALLBACKNAME:103,CALLBACKARGS:104,HREF:105,LINK_TARGET:106,"STR[link]":107,"STR[tooltip]":108,alphaNum:109,DEFAULT:110,numList:111,INTERPOLATE:112,NUM:113,COMMA:114,style:115,styleComponent:116,NODE_STRING:117,UNIT:118,BRKT:119,PCT:120,idStringToken:121,MINUS:122,MULT:123,UNICODE_TEXT:124,TEXT:125,TAGSTART:126,EDGE_TEXT:127,alphaNumToken:128,direction_tb:129,direction_bt:130,direction_rl:131,direction_lr:132,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",42:"SQE",43:"end",45:"acc_title",46:"acc_title_value",47:"acc_descr",48:"acc_descr_value",49:"acc_descr_multiline_value",53:"AMP",55:"STYLE_SEPARATOR",57:"DOUBLECIRCLESTART",58:"DOUBLECIRCLEEND",59:"PS",60:"PE",61:"(-",62:"-)",63:"STADIUMSTART",64:"STADIUMEND",65:"SUBROUTINESTART",66:"SUBROUTINEEND",67:"VERTEX_WITH_PROPS_START",68:"NODE_STRING[field]",69:"COLON",70:"NODE_STRING[value]",71:"PIPE",72:"CYLINDERSTART",73:"CYLINDEREND",74:"DIAMOND_START",75:"DIAMOND_STOP",76:"TAGEND",77:"TRAPSTART",78:"TRAPEND",79:"INVTRAPSTART",80:"INVTRAPEND",83:"TESTSTR",84:"START_LINK",86:"LINK",88:"STR",89:"MD_STR",92:"STYLE",93:"LINKSTYLE",94:"CLASSDEF",95:"CLASS",96:"CLICK",97:"DOWN",98:"UP",101:"idString[vertex]",102:"idString[class]",103:"CALLBACKNAME",104:"CALLBACKARGS",105:"HREF",106:"LINK_TARGET",107:"STR[link]",108:"STR[tooltip]",110:"DEFAULT",112:"INTERPOLATE",113:"NUM",114:"COMMA",117:"NODE_STRING",118:"UNIT",119:"BRKT",120:"PCT",122:"MINUS",123:"MULT",124:"UNICODE_TEXT",125:"TEXT",126:"TAGSTART",127:"EDGE_TEXT",129:"direction_tb",130:"direction_bt",131:"direction_rl",132:"direction_lr"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[51,1],[51,5],[52,1],[52,3],[54,4],[54,4],[54,6],[54,4],[54,4],[54,4],[54,8],[54,4],[54,4],[54,4],[54,6],[54,4],[54,4],[54,4],[54,4],[54,4],[54,1],[50,2],[50,3],[50,3],[50,1],[50,3],[85,1],[85,2],[85,1],[85,1],[81,1],[82,3],[41,1],[41,2],[41,1],[41,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[39,1],[39,2],[39,1],[39,1],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,3],[37,5],[37,5],[37,7],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[111,1],[111,3],[100,1],[100,3],[115,1],[115,2],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[121,1],[90,1],[90,1],[90,1],[90,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[99,1],[87,1],[87,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[56,1],[56,2],[109,1],[109,2],[44,1],[44,1],[44,1],[44,1]],performAction:function(a,o,p,r,T,t,R1){var s=t.length-1;switch(T){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(t[s],"type_directive");break;case 7:t[s]=t[s].trim().replace(/'/g,'"'),r.parseDirective(t[s],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:(!Array.isArray(t[s])||t[s].length>0)&&t[s-1].push(t[s]),this.$=t[s-1];break;case 12:case 184:this.$=t[s];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(t[s-1]),this.$=t[s-1];break;case 35:this.$=t[s-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=r.addSubGraph(t[s-6],t[s-1],t[s-4]);break;case 42:this.$=r.addSubGraph(t[s-3],t[s-1],t[s-3]);break;case 43:this.$=r.addSubGraph(void 0,t[s-1],void 0);break;case 45:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 46:case 47:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 51:r.addLink(t[s-2].stmt,t[s],t[s-1]),this.$={stmt:t[s],nodes:t[s].concat(t[s-2].nodes)};break;case 52:r.addLink(t[s-3].stmt,t[s-1],t[s-2]),this.$={stmt:t[s-1],nodes:t[s-1].concat(t[s-3].nodes)};break;case 53:this.$={stmt:t[s-1],nodes:t[s-1]};break;case 54:this.$={stmt:t[s],nodes:t[s]};break;case 55:this.$=[t[s]];break;case 56:this.$=t[s-4].concat(t[s]);break;case 57:this.$=t[s];break;case 58:this.$=t[s-2],r.setClass(t[s-2],t[s]);break;case 59:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"square");break;case 60:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"doublecircle");break;case 61:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"circle");break;case 62:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"ellipse");break;case 63:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"stadium");break;case 64:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"subroutine");break;case 65:this.$=t[s-7],r.addVertex(t[s-7],t[s-1],"rect",void 0,void 0,void 0,Object.fromEntries([[t[s-5],t[s-3]]]));break;case 66:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"cylinder");break;case 67:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"round");break;case 68:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"diamond");break;case 69:this.$=t[s-5],r.addVertex(t[s-5],t[s-2],"hexagon");break;case 70:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"odd");break;case 71:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"trapezoid");break;case 72:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"inv_trapezoid");break;case 73:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_right");break;case 74:this.$=t[s-3],r.addVertex(t[s-3],t[s-1],"lean_left");break;case 75:this.$=t[s],r.addVertex(t[s]);break;case 76:t[s-1].text=t[s],this.$=t[s-1];break;case 77:case 78:t[s-2].text=t[s-1],this.$=t[s-2];break;case 79:this.$=t[s];break;case 80:var j=r.destructLink(t[s],t[s-2]);this.$={type:j.type,stroke:j.stroke,length:j.length,text:t[s-1]};break;case 81:this.$={text:t[s],type:"text"};break;case 82:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 83:this.$={text:t[s],type:"string"};break;case 84:this.$={text:t[s],type:"markdown"};break;case 85:var j=r.destructLink(t[s]);this.$={type:j.type,stroke:j.stroke,length:j.length};break;case 86:this.$=t[s-1];break;case 87:this.$={text:t[s],type:"text"};break;case 88:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 89:this.$={text:t[s],type:"string"};break;case 90:case 105:this.$={text:t[s],type:"markdown"};break;case 102:this.$={text:t[s],type:"text"};break;case 103:this.$={text:t[s-1].text+""+t[s],type:t[s-1].type};break;case 104:this.$={text:t[s],type:"text"};break;case 106:this.$=t[s-4],r.addClass(t[s-2],t[s]);break;case 107:this.$=t[s-4],r.setClass(t[s-2],t[s]);break;case 108:case 116:this.$=t[s-1],r.setClickEvent(t[s-1],t[s]);break;case 109:case 117:this.$=t[s-3],r.setClickEvent(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 110:this.$=t[s-2],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 111:this.$=t[s-4],r.setClickEvent(t[s-4],t[s-3],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 112:this.$=t[s-2],r.setLink(t[s-2],t[s]);break;case 113:this.$=t[s-4],r.setLink(t[s-4],t[s-2]),r.setTooltip(t[s-4],t[s]);break;case 114:this.$=t[s-4],r.setLink(t[s-4],t[s-2],t[s]);break;case 115:this.$=t[s-6],r.setLink(t[s-6],t[s-4],t[s]),r.setTooltip(t[s-6],t[s-2]);break;case 118:this.$=t[s-1],r.setLink(t[s-1],t[s]);break;case 119:this.$=t[s-3],r.setLink(t[s-3],t[s-2]),r.setTooltip(t[s-3],t[s]);break;case 120:this.$=t[s-3],r.setLink(t[s-3],t[s-2],t[s]);break;case 121:this.$=t[s-5],r.setLink(t[s-5],t[s-4],t[s]),r.setTooltip(t[s-5],t[s-2]);break;case 122:this.$=t[s-4],r.addVertex(t[s-2],void 0,void 0,t[s]);break;case 123:this.$=t[s-4],r.updateLink([t[s-2]],t[s]);break;case 124:this.$=t[s-4],r.updateLink(t[s-2],t[s]);break;case 125:this.$=t[s-8],r.updateLinkInterpolate([t[s-6]],t[s-2]),r.updateLink([t[s-6]],t[s]);break;case 126:this.$=t[s-8],r.updateLinkInterpolate(t[s-6],t[s-2]),r.updateLink(t[s-6],t[s]);break;case 127:this.$=t[s-6],r.updateLinkInterpolate([t[s-4]],t[s]);break;case 128:this.$=t[s-6],r.updateLinkInterpolate(t[s-4],t[s]);break;case 129:case 131:this.$=[t[s]];break;case 130:case 132:t[s-2].push(t[s]),this.$=t[s-2];break;case 134:this.$=t[s-1]+t[s];break;case 182:this.$=t[s];break;case 183:this.$=t[s-1]+""+t[s];break;case 185:this.$=t[s-1]+""+t[s];break;case 186:this.$={stmt:"dir",value:"TB"};break;case 187:this.$={stmt:"dir",value:"BT"};break;case 188:this.$={stmt:"dir",value:"RL"};break;case 189:this.$={stmt:"dir",value:"LR"};break}},table:[{3:1,4:2,5:3,6:5,12:u,16:4,21:i,22:n,24:c},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:u,16:4,21:i,22:n,24:c},e(l,h,{17:11}),{7:12,13:[1,13]},{16:14,21:i,22:n,24:c},{16:15,21:i,22:n,24:c},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:G,21:g,22:O,23:z,32:24,33:25,34:26,35:27,36:28,37:29,38:c1,44:31,45:h1,47:p1,49:V1,51:35,52:45,53:k,54:46,56:47,69:S,92:w1,93:G1,94:U1,95:M1,96:K1,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R,129:j1,130:Y1,131:X1,132:z1},{8:60,10:[1,61],15:bt},e([10,15],[2,6]),e(l,[2,17]),e(l,[2,18]),e(l,[2,19]),{20:[1,64],21:[1,65],22:L1,27:63,30:66},e(_,[2,11]),e(_,[2,12]),e(_,[2,13]),e(_,[2,14]),e(_,[2,15]),e(_,[2,16]),{9:68,20:H,21:W,23:q,50:69,81:73,84:[1,74],86:[1,75]},{9:76,20:H,21:W,23:q},{9:77,20:H,21:W,23:q},{9:78,20:H,21:W,23:q},{9:79,20:H,21:W,23:q},{9:80,20:H,21:W,23:q},{9:82,20:H,21:W,22:[1,81],23:q},e(_,[2,44]),{46:[1,83]},{48:[1,84]},e(_,[2,47]),e(H1,[2,54],{30:85,22:L1}),{22:[1,86]},{22:[1,87]},{22:[1,88]},{22:[1,89]},{26:E1,53:k1,69:b1,88:[1,93],97:D1,103:[1,90],105:[1,91],109:92,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1,128:94},e(_,[2,186]),e(_,[2,187]),e(_,[2,188]),e(_,[2,189]),e(W1,[2,55]),e(W1,[2,57],{55:[1,106]}),e(N,[2,75],{121:119,40:[1,107],53:k,57:[1,108],59:[1,109],61:[1,110],63:[1,111],65:[1,112],67:[1,113],69:S,72:[1,114],74:[1,115],76:[1,116],77:[1,117],79:[1,118],97:B,110:v,113:x,114:y,117:m,119:V,122:L,123:I,124:R}),e(M,[2,182]),e(M,[2,143]),e(M,[2,144]),e(M,[2,145]),e(M,[2,146]),e(M,[2,147]),e(M,[2,148]),e(M,[2,149]),e(M,[2,150]),e(M,[2,151]),e(M,[2,152]),e(M,[2,153]),{9:120,20:H,21:W,23:q},{11:121,14:[1,122]},e(F,[2,8]),e(l,[2,20]),e(l,[2,26]),e(l,[2,27]),{21:[1,123]},e(Dt,[2,34],{30:124,22:L1}),e(_,[2,35]),{51:125,52:45,53:k,54:46,56:47,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},e(it,[2,48]),e(it,[2,49]),e(it,[2,50]),e(I1,[2,79],{82:126,71:[1,128],83:[1,127]}),{85:129,87:130,88:[1,131],89:[1,132],124:gt,127:Ft},e([53,69,71,83,97,110,113,114,117,119,122,123,124],[2,85]),e(_,[2,36]),e(_,[2,37]),e(_,[2,38]),e(_,[2,39]),e(_,[2,40]),{22:_t,24:Tt,26:St,38:Ct,39:135,43:Bt,53:vt,69:xt,84:yt,88:[1,137],89:[1,138],91:148,92:mt,93:Vt,94:Lt,95:It,96:Rt,97:Nt,98:Ot,99:136,113:Pt,117:wt,119:Gt,122:Ut,123:Mt,124:Kt},e(rt,h,{17:161}),e(_,[2,45]),e(_,[2,46]),e(H1,[2,53],{53:jt}),{53:k,56:163,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},{110:[1,164],111:165,113:[1,166]},{53:k,56:167,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},{53:k,56:168,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},e(F,[2,108],{22:[1,169],104:[1,170]}),{88:[1,171]},e(F,[2,116],{128:173,22:[1,172],26:E1,53:k1,69:b1,97:D1,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1}),e(F,[2,118],{22:[1,174]}),e(K,[2,184]),e(K,[2,171]),e(K,[2,172]),e(K,[2,173]),e(K,[2,174]),e(K,[2,175]),e(K,[2,176]),e(K,[2,177]),e(K,[2,178]),e(K,[2,179]),e(K,[2,180]),e(K,[2,181]),{53:k,56:175,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},{41:176,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:184,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:186,59:[1,185],76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:187,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:188,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:189,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{117:[1,190]},{41:191,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:192,74:[1,193],76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:194,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:195,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{41:196,76:f,88:P,89:w,90:177,124:A,125:d,126:E},e(M,[2,183]),e(Yt,[2,3]),{8:197,15:bt},{15:[2,7]},e(l,[2,28]),e(Dt,[2,33]),e(H1,[2,51],{30:198,22:L1}),e(I1,[2,76],{22:[1,199]}),{22:[1,200]},{41:201,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{86:[1,202],87:203,124:gt,127:Ft},e(v1,[2,81]),e(v1,[2,83]),e(v1,[2,84]),e(v1,[2,169]),e(v1,[2,170]),{9:205,20:H,21:W,22:_t,23:q,24:Tt,26:St,38:Ct,40:[1,204],43:Bt,53:vt,69:xt,84:yt,91:148,92:mt,93:Vt,94:Lt,95:It,96:Rt,97:Nt,98:Ot,99:206,113:Pt,117:wt,119:Gt,122:Ut,123:Mt,124:Kt},e(b,[2,102]),e(b,[2,104]),e(b,[2,105]),e(b,[2,158]),e(b,[2,159]),e(b,[2,160]),e(b,[2,161]),e(b,[2,162]),e(b,[2,163]),e(b,[2,164]),e(b,[2,165]),e(b,[2,166]),e(b,[2,167]),e(b,[2,168]),e(b,[2,91]),e(b,[2,92]),e(b,[2,93]),e(b,[2,94]),e(b,[2,95]),e(b,[2,96]),e(b,[2,97]),e(b,[2,98]),e(b,[2,99]),e(b,[2,100]),e(b,[2,101]),{18:18,19:19,20:G,21:g,22:O,23:z,32:24,33:25,34:26,35:27,36:28,37:29,38:c1,43:[1,207],44:31,45:h1,47:p1,49:V1,51:35,52:45,53:k,54:46,56:47,69:S,92:w1,93:G1,94:U1,95:M1,96:K1,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R,129:j1,130:Y1,131:X1,132:z1},{22:L1,30:208},{22:[1,209],53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:119,122:L,123:I,124:R},{22:[1,210]},{22:[1,211],114:[1,212]},e(Xt,[2,129]),{22:[1,213],53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:119,122:L,123:I,124:R},{22:[1,214],53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:119,122:L,123:I,124:R},{88:[1,215]},e(F,[2,110],{22:[1,216]}),e(F,[2,112],{22:[1,217]}),{88:[1,218]},e(K,[2,185]),{88:[1,219],106:[1,220]},e(W1,[2,58],{121:119,53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,122:L,123:I,124:R}),{42:[1,221],76:f,90:222,124:A,125:d,126:E},e(o1,[2,87]),e(o1,[2,89]),e(o1,[2,90]),e(o1,[2,154]),e(o1,[2,155]),e(o1,[2,156]),e(o1,[2,157]),{58:[1,223],76:f,90:222,124:A,125:d,126:E},{41:224,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{60:[1,225],76:f,90:222,124:A,125:d,126:E},{62:[1,226],76:f,90:222,124:A,125:d,126:E},{64:[1,227],76:f,90:222,124:A,125:d,126:E},{66:[1,228],76:f,90:222,124:A,125:d,126:E},{69:[1,229]},{73:[1,230],76:f,90:222,124:A,125:d,126:E},{75:[1,231],76:f,90:222,124:A,125:d,126:E},{41:232,76:f,88:P,89:w,90:177,124:A,125:d,126:E},{42:[1,233],76:f,90:222,124:A,125:d,126:E},{76:f,78:[1,234],80:[1,235],90:222,124:A,125:d,126:E},{76:f,78:[1,237],80:[1,236],90:222,124:A,125:d,126:E},{9:238,20:H,21:W,23:q},e(H1,[2,52],{53:jt}),e(I1,[2,78]),e(I1,[2,77]),{71:[1,239],76:f,90:222,124:A,125:d,126:E},e(I1,[2,80]),e(v1,[2,82]),{41:240,76:f,88:P,89:w,90:177,124:A,125:d,126:E},e(rt,h,{17:241}),e(b,[2,103]),e(_,[2,43]),{52:242,53:k,54:46,56:47,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},{22:Z,69:J,92:$,100:243,113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{22:Z,69:J,92:$,100:254,112:[1,255],113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{22:Z,69:J,92:$,100:256,112:[1,257],113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{113:[1,258]},{22:Z,69:J,92:$,100:259,113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{53:k,56:260,69:S,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R},e(F,[2,109]),{88:[1,261]},{88:[1,262],106:[1,263]},e(F,[2,117]),e(F,[2,119],{22:[1,264]}),e(F,[2,120]),e(N,[2,59]),e(o1,[2,88]),e(N,[2,60]),{60:[1,265],76:f,90:222,124:A,125:d,126:E},e(N,[2,67]),e(N,[2,62]),e(N,[2,63]),e(N,[2,64]),{117:[1,266]},e(N,[2,66]),e(N,[2,68]),{75:[1,267],76:f,90:222,124:A,125:d,126:E},e(N,[2,70]),e(N,[2,71]),e(N,[2,73]),e(N,[2,72]),e(N,[2,74]),e(Yt,[2,4]),e([22,53,69,97,110,113,114,117,119,122,123,124],[2,86]),{42:[1,268],76:f,90:222,124:A,125:d,126:E},{18:18,19:19,20:G,21:g,22:O,23:z,32:24,33:25,34:26,35:27,36:28,37:29,38:c1,43:[1,269],44:31,45:h1,47:p1,49:V1,51:35,52:45,53:k,54:46,56:47,69:S,92:w1,93:G1,94:U1,95:M1,96:K1,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R,129:j1,130:Y1,131:X1,132:z1},e(W1,[2,56]),e(F,[2,122],{114:x1}),e(zt,[2,131],{116:271,22:Z,69:J,92:$,113:t1,117:e1,118:s1,119:u1,120:i1}),e(Q,[2,133]),e(Q,[2,135]),e(Q,[2,136]),e(Q,[2,137]),e(Q,[2,138]),e(Q,[2,139]),e(Q,[2,140]),e(Q,[2,141]),e(Q,[2,142]),e(F,[2,123],{114:x1}),{22:[1,272]},e(F,[2,124],{114:x1}),{22:[1,273]},e(Xt,[2,130]),e(F,[2,106],{114:x1}),e(F,[2,107],{121:119,53:k,69:S,97:B,110:v,113:x,114:y,117:m,119:V,122:L,123:I,124:R}),e(F,[2,111]),e(F,[2,113],{22:[1,274]}),e(F,[2,114]),{106:[1,275]},{60:[1,276]},{71:[1,277]},{75:[1,278]},{9:279,20:H,21:W,23:q},e(_,[2,42]),{22:Z,69:J,92:$,113:t1,115:280,116:245,117:e1,118:s1,119:u1,120:i1},e(Q,[2,134]),{26:E1,53:k1,69:b1,97:D1,109:281,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1,128:94},{26:E1,53:k1,69:b1,97:D1,109:282,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1,128:94},{106:[1,283]},e(F,[2,121]),e(N,[2,61]),{41:284,76:f,88:P,89:w,90:177,124:A,125:d,126:E},e(N,[2,69]),e(rt,h,{17:285}),e(zt,[2,132],{116:271,22:Z,69:J,92:$,113:t1,117:e1,118:s1,119:u1,120:i1}),e(F,[2,127],{128:173,22:[1,286],26:E1,53:k1,69:b1,97:D1,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1}),e(F,[2,128],{128:173,22:[1,287],26:E1,53:k1,69:b1,97:D1,113:g1,114:F1,117:_1,119:T1,122:S1,123:C1,124:B1}),e(F,[2,115]),{42:[1,288],76:f,90:222,124:A,125:d,126:E},{18:18,19:19,20:G,21:g,22:O,23:z,32:24,33:25,34:26,35:27,36:28,37:29,38:c1,43:[1,289],44:31,45:h1,47:p1,49:V1,51:35,52:45,53:k,54:46,56:47,69:S,92:w1,93:G1,94:U1,95:M1,96:K1,97:B,110:v,113:x,114:y,117:m,119:V,121:48,122:L,123:I,124:R,129:j1,130:Y1,131:X1,132:z1},{22:Z,69:J,92:$,100:290,113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},{22:Z,69:J,92:$,100:291,113:t1,115:244,116:245,117:e1,118:s1,119:u1,120:i1},e(N,[2,65]),e(_,[2,41]),e(F,[2,125],{114:x1}),e(F,[2,126],{114:x1})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],122:[2,7]},parseError:function(a,o){if(o.recoverable)this.trace(a);else{var p=new Error(a);throw p.hash=o,p}},parse:function(a){var o=this,p=[0],r=[],T=[null],t=[],R1=this.table,s="",j=0,Ht=0,ye=2,Wt=1,me=t.slice.call(arguments,1),C=Object.create(this.lexer),f1={yy:{}};for(var ct in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ct)&&(f1.yy[ct]=this.yy[ct]);C.setInput(a,f1.yy),f1.yy.lexer=C,f1.yy.parser=this,typeof C.yylloc>"u"&&(C.yylloc={});var ot=C.yylloc;t.push(ot);var Ve=C.options&&C.options.ranges;typeof f1.yy.parseError=="function"?this.parseError=f1.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Le(){var n1;return n1=r.pop()||C.lex()||Wt,typeof n1!="number"&&(n1 instanceof Array&&(r=n1,n1=r.pop()),n1=o.symbols_[n1]||n1),n1}for(var U,A1,Y,lt,y1={},q1,r1,qt,Q1;;){if(A1=p[p.length-1],this.defaultActions[A1]?Y=this.defaultActions[A1]:((U===null||typeof U>"u")&&(U=Le()),Y=R1[A1]&&R1[A1][U]),typeof Y>"u"||!Y.length||!Y[0]){var ht="";Q1=[];for(q1 in R1[A1])this.terminals_[q1]&&q1>ye&&Q1.push("'"+this.terminals_[q1]+"'");C.showPosition?ht="Parse error on line "+(j+1)+`:
|
|
2
2
|
`+C.showPosition()+`
|
|
3
3
|
Expecting `+Q1.join(", ")+", got '"+(this.terminals_[U]||U)+"'":ht="Parse error on line "+(j+1)+": Unexpected "+(U==Wt?"end of input":"'"+(this.terminals_[U]||U)+"'"),this.parseError(ht,{text:C.match,token:this.terminals_[U]||U,line:C.yylineno,loc:ot,expected:Q1})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A1+", token: "+U);switch(Y[0]){case 1:p.push(U),T.push(C.yytext),t.push(C.yylloc),p.push(Y[1]),U=null,Ht=C.yyleng,s=C.yytext,j=C.yylineno,ot=C.yylloc;break;case 2:if(r1=this.productions_[Y[1]][1],y1.$=T[T.length-r1],y1._$={first_line:t[t.length-(r1||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(r1||1)].first_column,last_column:t[t.length-1].last_column},Ve&&(y1._$.range=[t[t.length-(r1||1)].range[0],t[t.length-1].range[1]]),lt=this.performAction.apply(y1,[s,Ht,j,f1.yy,Y[1],T,t].concat(me)),typeof lt<"u")return lt;r1&&(p=p.slice(0,-1*r1*2),T=T.slice(0,-1*r1),t=t.slice(0,-1*r1)),p.push(this.productions_[Y[1]][0]),T.push(y1.$),t.push(y1._$),qt=R1[p[p.length-2]][p[p.length-1]],p.push(qt);break;case 3:return!0}}return!0}},xe=function(){var l1={EOF:1,parseError:function(o,p){if(this.yy.parser)this.yy.parser.parseError(o,p);else throw new Error(o)},setInput:function(a,o){return this.yy=o||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var o=a.match(/(?:\r\n?|\n).*/g);return o?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},unput:function(a){var o=a.length,p=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-o),this.offset-=o;var r=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),p.length-1&&(this.yylineno-=p.length-1);var T=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:p?(p.length===r.length?this.yylloc.first_column:0)+r[r.length-p.length].length-p[0].length:this.yylloc.first_column-o},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-o]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),o=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as St,f as W}from"./flowDb-ff651a22-
|
|
1
|
+
import{p as St,f as W}from"./flowDb-ff651a22-VLXAYP-0.js";import{h as S,u as Lt,r as Et,p as _t,l as Tt,d as M,f as tt,G as Nt}from"./layout-fVXYNle2.js";import{h as x,o as P,p as z,q as et,c as J,j as rt,l as R,r as V,t as At}from"./index-nVoogp1U.js";import{a as N,b as at,i as nt,c as _,e as st,d as it,f as Ct,g as It,s as Bt}from"./styles-1b0c237a-AFZGBoCy.js";import{l as Mt}from"./line-Z_CHQEeo.js";import"./index-f58d48f9-Lp59Xbtf.js";import"./edges-0005682e-z6K4c7OR.js";import"./createText-3b1f58a4-NgnhIV1y.js";import"./svgDraw-70101091-PiQV_Dss.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";function Dt(r){if(!r.ok)throw new Error(r.status+" "+r.statusText);return r.text()}function Rt(r,e){return fetch(r,e).then(Dt)}function Gt(r){return(e,t)=>Rt(e,t).then(n=>new DOMParser().parseFromString(n,r))}var Pt=Gt("image/svg+xml"),Y={normal:$t,vee:Wt,undirected:Vt};function Ut(r){Y=r}function $t(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Wt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function Vt(r,e,t,n){var a=r.append("marker").attr("id",e).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),s=a.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");N(s,t[n+"Style"]),t[n+"Class"]&&s.attr("class",t[n+"Class"])}function zt(r,e){var t=r;return t.node().appendChild(e.label),N(t,e.labelStyle),t}function Yt(r,e){for(var t=r.append("text"),n=Ht(e.label).split(`
|
|
2
2
|
`),a=0;a<n.length;a++)t.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(n[a]);return N(t,e.labelStyle),t}function Ht(r){for(var e="",t=!1,n,a=0;a<r.length;++a)if(n=r[a],t){switch(n){case"n":e+=`
|
|
3
3
|
`;break;default:e+=n}t=!1}else n==="\\"?t=!0:e+=n;return e}function K(r,e,t){var n=e.label,a=r.append("g");e.labelType==="svg"?zt(a,e):typeof n!="string"||e.labelType==="html"?at(a,e):Yt(a,e);var s=a.node().getBBox(),i;switch(t){case"top":i=-e.height/2;break;case"bottom":i=e.height/2-s.height;break;default:i=-s.height/2}return a.attr("transform","translate("+-s.width/2+","+i+")"),a}var H=function(r,e){var t=e.nodes().filter(function(s){return nt(e,s)}),n=r.selectAll("g.cluster").data(t,function(s){return s});_(n.exit(),e).style("opacity",0).remove();var a=n.enter().append("g").attr("class","cluster").attr("id",function(s){var i=e.node(s);return i.id}).style("opacity",0).each(function(s){var i=e.node(s),o=x(this);x(this).append("rect");var c=o.append("g").attr("class","label");K(c,i,i.clusterLabelPos)});return n=n.merge(a),n=_(n,e).style("opacity",1),n.selectAll("rect").each(function(s){var i=e.node(s),o=x(this);N(o,i.style)}),n};function Xt(r){H=r}let X=function(r,e){var t=r.selectAll("g.edgeLabel").data(e.edges(),function(a){return st(a)}).classed("update",!0);t.exit().remove(),t.enter().append("g").classed("edgeLabel",!0).style("opacity",0),t=r.selectAll("g.edgeLabel"),t.each(function(a){var s=x(this);s.select(".label").remove();var i=e.edge(a),o=K(s,e.edge(a),0).classed("label",!0),c=o.node().getBBox();i.labelId&&o.attr("id",i.labelId),S(i,"width")||(i.width=c.width),S(i,"height")||(i.height=c.height)});var n;return t.exit?n=t.exit():n=t.selectAll(null),_(n,e).style("opacity",0).remove(),t};function Ft(r){X=r}function O(r,e){return r.intersect(e)}var F=function(r,e,t){var n=r.selectAll("g.edgePath").data(e.edges(),function(i){return st(i)}).classed("update",!0),a=Zt(n,e);Ot(n,e);var s=n.merge!==void 0?n.merge(a):n;return _(s,e).style("opacity",1),s.each(function(i){var o=x(this),c=e.edge(i);c.elem=this,c.id&&o.attr("id",c.id),it(o,c.class,(o.classed("update")?"update ":"")+"edgePath")}),s.selectAll("path.path").each(function(i){var o=e.edge(i);o.arrowheadId=Lt("arrowhead");var c=x(this).attr("marker-end",function(){return"url("+Qt(location.href,o.arrowheadId)+")"}).style("fill","none");_(c,e).attr("d",function(d){return Jt(e,d)}),N(c,o.style)}),s.selectAll("defs *").remove(),s.selectAll("defs").each(function(i){var o=e.edge(i),c=t[o.arrowhead];c(x(this),o.arrowheadId,o,"arrowhead")}),s};function qt(r){F=r}function Qt(r,e){var t=r.split("#")[0];return t+"#"+e}function Jt(r,e){var t=r.edge(e),n=r.node(e.v),a=r.node(e.w),s=t.points.slice(1,t.points.length-1);return s.unshift(O(n,s[0])),s.push(O(a,s[s.length-1])),ot(t,s)}function ot(r,e){var t=(Mt||Pt.line)().x(function(n){return n.x}).y(function(n){return n.y});return(t.curve||t.interpolate)(r.curve),t(e)}function Kt(r){var e=r.getBBox(),t=r.ownerSVGElement.getScreenCTM().inverse().multiply(r.getScreenCTM()).translate(e.width/2,e.height/2);return{x:t.e,y:t.f}}function Zt(r,e){var t=r.enter().append("g").attr("class","edgePath").style("opacity",0);return t.append("path").attr("class","path").attr("d",function(n){var a=e.edge(n),s=e.node(n.v).elem,i=Et(a.points.length).map(function(){return Kt(s)});return ot(a,i)}),t.append("defs"),t}function Ot(r,e){var t=r.exit();_(t,e).style("opacity",0).remove()}var q=function(r,e,t){var n=e.nodes().filter(function(i){return!nt(e,i)}),a=r.selectAll("g.node").data(n,function(i){return i}).classed("update",!0);a.exit().remove(),a.enter().append("g").attr("class","node").style("opacity",0),a=r.selectAll("g.node"),a.each(function(i){var o=e.node(i),c=x(this);it(c,o.class,(c.classed("update")?"update ":"")+"node"),c.select("g.label").remove();var d=c.append("g").attr("class","label"),l=K(d,o),v=t[o.shape],h=_t(l.node().getBBox(),"width","height");o.elem=this,o.id&&c.attr("id",o.id),o.labelId&&d.attr("id",o.labelId),S(o,"width")&&(h.width=o.width),S(o,"height")&&(h.height=o.height),h.width+=o.paddingLeft+o.paddingRight,h.height+=o.paddingTop+o.paddingBottom,d.attr("transform","translate("+(o.paddingLeft-o.paddingRight)/2+","+(o.paddingTop-o.paddingBottom)/2+")");var u=x(this);u.select(".label-container").remove();var p=v(u,h,o).classed("label-container",!0);N(p,o.style);var g=p.node().getBBox();o.width=g.width,o.height=g.height});var s;return a.exit?s=a.exit():s=a.selectAll(null),_(s,e).style("opacity",0).remove(),a};function jt(r){q=r}function te(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),_(r,e).style("opacity",1).attr("transform",n),_(t.selectAll("rect"),e).attr("width",function(a){return e.node(a).width}).attr("height",function(a){return e.node(a).height}).attr("x",function(a){var s=e.node(a);return-s.width/2}).attr("y",function(a){var s=e.node(a);return-s.height/2})}function ee(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.edge(a);return S(s,"x")?"translate("+s.x+","+s.y+")":""}t.attr("transform",n),_(r,e).style("opacity",1).attr("transform",n)}function re(r,e){var t=r.filter(function(){return!x(this).classed("update")});function n(a){var s=e.node(a);return"translate("+s.x+","+s.y+")"}t.attr("transform",n),_(r,e).style("opacity",1).attr("transform",n)}function lt(r,e,t,n){var a=r.x,s=r.y,i=a-n.x,o=s-n.y,c=Math.sqrt(e*e*o*o+t*t*i*i),d=Math.abs(e*t*i/c);n.x<a&&(d=-d);var l=Math.abs(e*t*o/c);return n.y<s&&(l=-l),{x:a+d,y:s+l}}function ae(r,e,t){return lt(r,e,e,t)}function ne(r,e,t,n){var a,s,i,o,c,d,l,v,h,u,p,g,f,y,k;if(a=e.y-r.y,i=r.x-e.x,c=e.x*r.y-r.x*e.y,h=a*t.x+i*t.y+c,u=a*n.x+i*n.y+c,!(h!==0&&u!==0&&j(h,u))&&(s=n.y-t.y,o=t.x-n.x,d=n.x*t.y-t.x*n.y,l=s*r.x+o*r.y+d,v=s*e.x+o*e.y+d,!(l!==0&&v!==0&&j(l,v))&&(p=a*o-s*i,p!==0)))return g=Math.abs(p/2),f=i*d-o*c,y=f<0?(f-g)/p:(f+g)/p,f=s*c-a*d,k=f<0?(f-g)/p:(f+g)/p,{x:y,y:k}}function j(r,e){return r*e>0}function T(r,e,t){var n=r.x,a=r.y,s=[],i=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;e.forEach(function(p){i=Math.min(i,p.x),o=Math.min(o,p.y)});for(var c=n-r.width/2-i,d=a-r.height/2-o,l=0;l<e.length;l++){var v=e[l],h=e[l<e.length-1?l+1:0],u=ne(r,t,{x:c+v.x,y:d+v.y},{x:c+h.x,y:d+h.y});u&&s.push(u)}return s.length?(s.length>1&&s.sort(function(p,g){var f=p.x-t.x,y=p.y-t.y,k=Math.sqrt(f*f+y*y),I=g.x-t.x,E=g.y-t.y,U=Math.sqrt(I*I+E*E);return k<U?-1:k===U?0:1}),s[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",r),r)}function Z(r,e){var t=r.x,n=r.y,a=e.x-t,s=e.y-n,i=r.width/2,o=r.height/2,c,d;return Math.abs(s)*i>Math.abs(a)*o?(s<0&&(o=-o),c=s===0?0:o*a/s,d=o):(a<0&&(i=-i),c=i,d=a===0?0:i*s/a),{x:t+c,y:n+d}}var Q={rect:ie,ellipse:oe,circle:le,diamond:ce};function se(r){Q=r}function ie(r,e,t){var n=r.insert("rect",":first-child").attr("rx",t.rx).attr("ry",t.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return t.intersect=function(a){return Z(t,a)},n}function oe(r,e,t){var n=e.width/2,a=e.height/2,s=r.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",n).attr("ry",a);return t.intersect=function(i){return lt(t,n,a,i)},s}function le(r,e,t){var n=Math.max(e.width,e.height)/2,a=r.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",n);return t.intersect=function(s){return ae(t,n,s)},a}function ce(r,e,t){var n=e.width*Math.SQRT2/2,a=e.height*Math.SQRT2/2,s=[{x:0,y:-a},{x:-n,y:0},{x:0,y:a},{x:n,y:0}],i=r.insert("polygon",":first-child").attr("points",s.map(function(o){return o.x+","+o.y}).join(" "));return t.intersect=function(o){return T(t,s,o)},i}function de(){var r=function(e,t){fe(t);var n=D(e,"output"),a=D(n,"clusters"),s=D(n,"edgePaths"),i=X(D(n,"edgeLabels"),t),o=q(D(n,"nodes"),t,Q);Tt(t),re(o,t),ee(i,t),F(s,t,Y);var c=H(a,t);te(c,t),pe(t)};return r.createNodes=function(e){return arguments.length?(jt(e),r):q},r.createClusters=function(e){return arguments.length?(Xt(e),r):H},r.createEdgeLabels=function(e){return arguments.length?(Ft(e),r):X},r.createEdgePaths=function(e){return arguments.length?(qt(e),r):F},r.shapes=function(e){return arguments.length?(se(e),r):Q},r.arrows=function(e){return arguments.length?(Ut(e),r):Y},r}var he={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},ue={arrowhead:"normal",curve:P};function fe(r){r.nodes().forEach(function(e){var t=r.node(e);!S(t,"label")&&!r.children(e).length&&(t.label=e),S(t,"paddingX")&&M(t,{paddingLeft:t.paddingX,paddingRight:t.paddingX}),S(t,"paddingY")&&M(t,{paddingTop:t.paddingY,paddingBottom:t.paddingY}),S(t,"padding")&&M(t,{paddingLeft:t.padding,paddingRight:t.padding,paddingTop:t.padding,paddingBottom:t.padding}),M(t,he),tt(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(n){t[n]=Number(t[n])}),S(t,"width")&&(t._prevWidth=t.width),S(t,"height")&&(t._prevHeight=t.height)}),r.edges().forEach(function(e){var t=r.edge(e);S(t,"label")||(t.label=""),M(t,ue)})}function pe(r){tt(r.nodes(),function(e){var t=r.node(e);S(t,"_prevWidth")?t.width=t._prevWidth:delete t.width,S(t,"_prevHeight")?t.height=t._prevHeight:delete t.height,delete t._prevWidth,delete t._prevHeight})}function D(r,e){var t=r.select("g."+e);return t.empty()&&(t=r.append("g").attr("class",e)),t}function ct(r,e,t){const n=e.width,a=e.height,s=(n+a)*.9,i=[{x:s/2,y:0},{x:s,y:-s/2},{x:s/2,y:-s},{x:0,y:-s/2}],o=A(r,s,s,i);return t.intersect=function(c){return T(t,i,c)},o}function dt(r,e,t){const a=e.height,s=a/4,i=e.width+2*s,o=[{x:s,y:0},{x:i-s,y:0},{x:i,y:-a/2},{x:i-s,y:-a},{x:s,y:-a},{x:0,y:-a/2}],c=A(r,i,a,o);return t.intersect=function(d){return T(t,o,d)},c}function ht(r,e,t){const n=e.width,a=e.height,s=[{x:-a/2,y:0},{x:n,y:0},{x:n,y:-a},{x:-a/2,y:-a},{x:0,y:-a/2}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ut(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function ft(r,e,t){const n=e.width,a=e.height,s=[{x:2*a/6,y:0},{x:n+a/6,y:0},{x:n-2*a/6,y:-a},{x:-a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function pt(r,e,t){const n=e.width,a=e.height,s=[{x:-2*a/6,y:0},{x:n+2*a/6,y:0},{x:n-a/6,y:-a},{x:a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function vt(r,e,t){const n=e.width,a=e.height,s=[{x:a/6,y:0},{x:n-a/6,y:0},{x:n+2*a/6,y:-a},{x:-2*a/6,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function yt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n+a/2,y:0},{x:n,y:-a/2},{x:n+a/2,y:-a},{x:0,y:-a}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function gt(r,e,t){const n=e.height,a=e.width+n/4,s=r.insert("rect",":first-child").attr("rx",n/2).attr("ry",n/2).attr("x",-a/2).attr("y",-n/2).attr("width",a).attr("height",n);return t.intersect=function(i){return Z(t,i)},s}function wt(r,e,t){const n=e.width,a=e.height,s=[{x:0,y:0},{x:n,y:0},{x:n,y:-a},{x:0,y:-a},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-a},{x:-8,y:-a},{x:-8,y:0}],i=A(r,n,a,s);return t.intersect=function(o){return T(t,s,o)},i}function mt(r,e,t){const n=e.width,a=n/2,s=a/(2.5+n/50),i=e.height+s,o="M 0,"+s+" a "+a+","+s+" 0,0,0 "+n+" 0 a "+a+","+s+" 0,0,0 "+-n+" 0 l 0,"+i+" a "+a+","+s+" 0,0,0 "+n+" 0 l 0,"+-i,c=r.attr("label-offset-y",s).insert("path",":first-child").attr("d",o).attr("transform","translate("+-n/2+","+-(i/2+s)+")");return t.intersect=function(d){const l=Z(t,d),v=l.x-t.x;if(a!=0&&(Math.abs(v)<t.width/2||Math.abs(v)==t.width/2&&Math.abs(l.y-t.y)>t.height/2-s)){let h=s*s*(1-v*v/(a*a));h!=0&&(h=Math.sqrt(h)),h=s-h,d.y-t.y>0&&(h=-h),l.y+=h}return l},c}function ve(r){r.shapes().question=ct,r.shapes().hexagon=dt,r.shapes().stadium=gt,r.shapes().subroutine=wt,r.shapes().cylinder=mt,r.shapes().rect_left_inv_arrow=ht,r.shapes().lean_right=ut,r.shapes().lean_left=ft,r.shapes().trapezoid=pt,r.shapes().inv_trapezoid=vt,r.shapes().rect_right_inv_arrow=yt}function ye(r){r({question:ct}),r({hexagon:dt}),r({stadium:gt}),r({subroutine:wt}),r({cylinder:mt}),r({rect_left_inv_arrow:ht}),r({lean_right:ut}),r({lean_left:ft}),r({trapezoid:pt}),r({inv_trapezoid:vt}),r({rect_right_inv_arrow:yt})}function A(r,e,t,n){return r.insert("polygon",":first-child").attr("points",n.map(function(a){return a.x+","+a.y}).join(" ")).attr("transform","translate("+-e/2+","+t/2+")")}const ge={addToRender:ve,addToRenderV2:ye},xt={},we=function(r){const e=Object.keys(r);for(const t of e)xt[t]=r[t]},bt=function(r,e,t,n,a,s){const i=n?n.select(`[id="${t}"]`):x(`[id="${t}"]`),o=a||document;Object.keys(r).forEach(function(d){const l=r[d];let v="default";l.classes.length>0&&(v=l.classes.join(" "));const h=z(l.styles);let u=l.text!==void 0?l.text:l.id,p;if(et(J().flowchart.htmlLabels)){const y={label:u.replace(/fa[blrs]?:fa-[\w-]+/g,k=>`<i class='${k.replace(":"," ")}'></i>`)};p=at(i,y).node(),p.parentNode.removeChild(p)}else{const y=o.createElementNS("http://www.w3.org/2000/svg","text");y.setAttribute("style",h.labelStyle.replace("color:","fill:"));const k=u.split(rt.lineBreakRegex);for(const I of k){const E=o.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","1"),E.textContent=I,y.appendChild(E)}p=y}let g=0,f="";switch(l.type){case"round":g=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"hexagon":f="hexagon";break;case"odd":f="rect_left_inv_arrow";break;case"lean_right":f="lean_right";break;case"lean_left":f="lean_left";break;case"trapezoid":f="trapezoid";break;case"inv_trapezoid":f="inv_trapezoid";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;case"ellipse":f="ellipse";break;case"stadium":f="stadium";break;case"subroutine":f="subroutine";break;case"cylinder":f="cylinder";break;case"group":f="rect";break;default:f="rect"}R.warn("Adding node",l.id,l.domId),e.setNode(s.db.lookUpDomId(l.id),{labelType:"svg",labelStyle:h.labelStyle,shape:f,label:p,rx:g,ry:g,class:v,style:h.style,id:s.db.lookUpDomId(l.id)})})},kt=function(r,e,t){let n=0,a,s;if(r.defaultStyle!==void 0){const i=z(r.defaultStyle);a=i.style,s=i.labelStyle}r.forEach(function(i){n++;const o="L-"+i.start+"-"+i.end,c="LS-"+i.start,d="LE-"+i.end,l={};i.type==="arrow_open"?l.arrowhead="none":l.arrowhead="normal";let v="",h="";if(i.style!==void 0){const u=z(i.style);v=u.style,h=u.labelStyle}else switch(i.stroke){case"normal":v="fill:none",a!==void 0&&(v=a),s!==void 0&&(h=s);break;case"dotted":v="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":v=" stroke-width: 3.5px;fill:none";break}l.style=v,l.labelStyle=h,i.interpolate!==void 0?l.curve=V(i.interpolate,P):r.defaultInterpolate!==void 0?l.curve=V(r.defaultInterpolate,P):l.curve=V(xt.curve,P),i.text===void 0?i.style!==void 0&&(l.arrowheadStyle="fill: #333"):(l.arrowheadStyle="fill: #333",l.labelpos="c",et(J().flowchart.htmlLabels)?(l.labelType="html",l.label=`<span id="L-${o}" class="edgeLabel L-${c}' L-${d}" style="${l.labelStyle}">${i.text.replace(/fa[blrs]?:fa-[\w-]+/g,u=>`<i class='${u.replace(":"," ")}'></i>`)}</span>`):(l.labelType="text",l.label=i.text.replace(rt.lineBreakRegex,`
|
|
4
4
|
`),i.style===void 0&&(l.style=l.style||"stroke: #333; stroke-width: 1.5px;fill:none"),l.labelStyle=l.labelStyle.replace("color:","fill:"))),l.id=o,l.class=c+" "+d,l.minlen=i.length||1,e.setEdge(t.db.lookUpDomId(i.start),t.db.lookUpDomId(i.end),l,n)})},me=function(r,e){return R.info("Extracting classes"),e.db.getClasses()},xe=function(r,e,t,n){R.info("Drawing flowchart");const{securityLevel:a,flowchart:s}=J();let i;a==="sandbox"&&(i=x("#i"+e));const o=a==="sandbox"?x(i.nodes()[0].contentDocument.body):x("body"),c=a==="sandbox"?i.nodes()[0].contentDocument:document;let d=n.db.getDirection();d===void 0&&(d="TD");const l=s.nodeSpacing||50,v=s.rankSpacing||50,h=new Nt({multigraph:!0,compound:!0}).setGraph({rankdir:d,nodesep:l,ranksep:v,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});let u;const p=n.db.getSubGraphs();for(let w=p.length-1;w>=0;w--)u=p[w],n.db.addVertex(u.id,u.title,"group",void 0,u.classes);const g=n.db.getVertices();R.warn("Get vertices",g);const f=n.db.getEdges();let y=0;for(y=p.length-1;y>=0;y--){u=p[y],Bt("cluster").append("text");for(let w=0;w<u.nodes.length;w++)R.warn("Setting subgraph",u.nodes[w],n.db.lookUpDomId(u.nodes[w]),n.db.lookUpDomId(u.id)),h.setParent(n.db.lookUpDomId(u.nodes[w]),n.db.lookUpDomId(u.id))}bt(g,h,e,o,c,n),kt(f,h,n);const k=new de;ge.addToRender(k),k.arrows().none=function(b,L,m,B){const C=b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 0 0 L 0 0 z");N(C,m[B+"Style"])},k.arrows().normal=function(b,L){b.append("marker").attr("id",L).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowheadPath").style("stroke-width",1).style("stroke-dasharray","1,0")};const I=o.select(`[id="${e}"]`),E=o.select("#"+e+" g");for(k(E,h),E.selectAll("g.node").attr("title",function(){return n.db.getTooltip(this.id)}),n.db.indexNodes("subGraph"+y),y=0;y<p.length;y++)if(u=p[y],u.title!=="undefined"){const w=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"] rect'),b=c.querySelectorAll("#"+e+' [id="'+n.db.lookUpDomId(u.id)+'"]'),L=w[0].x.baseVal.value,m=w[0].y.baseVal.value,B=w[0].width.baseVal.value,C=x(b[0]).select(".label");C.attr("transform",`translate(${L+B/2}, ${m+14})`),C.attr("id",e+"Text");for(let $=0;$<u.classes.length;$++)b[0].classList.add(u.classes[$])}if(!s.htmlLabels){const w=c.querySelectorAll('[id="'+e+'"] .edgeLabel .label');for(const b of w){const L=b.getBBox(),m=c.createElementNS("http://www.w3.org/2000/svg","rect");m.setAttribute("rx",0),m.setAttribute("ry",0),m.setAttribute("width",L.width),m.setAttribute("height",L.height),b.insertBefore(m,b.firstChild)}}At(h,I,s.diagramPadding,s.useMaxWidth),Object.keys(g).forEach(function(w){const b=g[w];if(b.link){const L=o.select("#"+e+' [id="'+n.db.lookUpDomId(w)+'"]');if(L){const m=c.createElementNS("http://www.w3.org/2000/svg","a");m.setAttributeNS("http://www.w3.org/2000/svg","class",b.classes.join(" ")),m.setAttributeNS("http://www.w3.org/2000/svg","href",b.link),m.setAttributeNS("http://www.w3.org/2000/svg","rel","noopener"),a==="sandbox"?m.setAttributeNS("http://www.w3.org/2000/svg","target","_top"):b.linkTarget&&m.setAttributeNS("http://www.w3.org/2000/svg","target",b.linkTarget);const B=L.insert(function(){return m},":first-child"),G=L.select(".label-container");G&&B.append(function(){return G.node()});const C=L.select(".label");C&&B.append(function(){return C.node()})}}})},be={setConf:we,addVertices:bt,addEdges:kt,getClasses:me,draw:xe},Me={parser:St,db:W,renderer:Ct,styles:It,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,be.setConf(r.flowchart),W.clear(),W.setGen("gen-1")}};export{Me as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{p as e,f as o}from"./flowDb-ff651a22-VLXAYP-0.js";import{f as t,g as a}from"./styles-1b0c237a-AFZGBoCy.js";import{u as s}from"./index-nVoogp1U.js";import"./layout-fVXYNle2.js";import"./index-f58d48f9-Lp59Xbtf.js";import"./edges-0005682e-z6K4c7OR.js";import"./createText-3b1f58a4-NgnhIV1y.js";import"./svgDraw-70101091-PiQV_Dss.js";import"./line-Z_CHQEeo.js";import"./array-Nw74a44z.js";import"./path-aUcfwwLI.js";const k={parser:e,db:o,renderer:t,styles:a,init:r=>{r.flowchart||(r.flowchart={}),r.flowchart.arrowMarkerAbsolute=r.arrowMarkerAbsolute,s({flowchart:{arrowMarkerAbsolute:r.arrowMarkerAbsolute}}),t.setConf(r.flowchart),o.clear(),o.setGen("gen-2")}};export{k as diagram};
|