You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
35 KiB
JavaScript

"use strict";exports.id=601,exports.ids=[601],exports.modules={86247:(t,e,r)=>{r.d(e,{a:()=>o,c:()=>s});var a=r(15537),n=r(66136),i=r(55085);function l(t,e,r){return t.append("tspan").attr("class","text-outer-tspan").attr("x",0).attr("y",e*r-.1+"em").attr("dy",r+"em")}function s(t,e,r){var a;let n=t.append("text"),i=l(n,1,e);d(i,[{content:r,type:"normal"}]);let s=null==(a=i.node())?void 0:a.getBoundingClientRect();return s&&n.remove(),s}function d(t,e){t.text(""),e.forEach((e,r)=>{let a=t.append("tspan").attr("font-style","emphasis"===e.type?"italic":"normal").attr("class","text-inner-tspan").attr("font-weight","strong"===e.type?"bold":"normal");0===r?a.text(e.content):a.text(" "+e.content)})}let o=(t,e="",{style:r="",isTitle:s=!1,classes:o="",useHtmlLabels:h=!0,isNode:c=!0,width:p=200,addSvgBackground:y=!1}={})=>{if(a.l.info("createText",e,r,s,o,h,c,y),!h)return function(t,e,r,a=!1){let n=e.append("g"),i=n.insert("rect").attr("class","background"),s=n.append("text").attr("y","-10.1"),o=0;for(let e of r){let r=e=>(function(t,e,r){let a=t.append("text"),n=l(a,1,1.1);d(n,r);let i=n.node().getComputedTextLength();return a.remove(),i})(n,0,e)<=t;for(let t of r(e)?[e]:function(t,e){if(t.some(({content:t})=>t.includes("\n")))throw Error("splitLineToFitWidth does not support newlines in the line");return function t(e,r,a=[],n=[]){if(0===e.length)return n.length>0&&a.push(n),a.length>0?a:[];let i="";" "===e[0].content&&(i=" ",e.shift());let l=e.shift()??{content:" ",type:"normal"},s=[...n];if(""!==i&&s.push({content:i,type:"normal"}),s.push(l),r(s))return t(e,r,a,s);if(n.length>0)a.push(n),e.unshift(l);else if(l.content){var d;let[t,n]=function t(e,r,a,n){if(0===a.length)return[{content:r.join(""),type:n},{content:"",type:n}];let[i,...l]=a,s=[...r,i];return e([{content:s.join(""),type:n}])?t(e,s,l,n):(0===r.length&&i&&(r.push(i),a.shift()),[{content:r.join(""),type:n},{content:a.join(""),type:n}])}(r,[],(d=l.content,Intl.Segmenter?[...new Intl.Segmenter().segment(d)].map(t=>t.segment):[...d]),l.type);a.push([t]),n.content&&e.unshift(n)}return t(e,r,a)}(t,e)}(e,r))d(l(s,o,1.1),t),o++}if(!a)return s.node();{let t=s.node().getBBox();return i.attr("x",-2).attr("y",-2).attr("width",t.width+4).attr("height",t.height+4),n.node()}}(p,t,function(t){let e=function(t){let e=t.replace(/\n{2,}/g,"\n");return(0,i.Z)(e)}(t),{children:r}=(0,n.V)(e),a=[[]],l=0;return r.forEach(t=>{"paragraph"===t.type&&t.children.forEach(t=>{!function t(e,r="normal"){"text"===e.type?e.value.split("\n").forEach((t,e)=>{0!==e&&(l++,a.push([])),t.split(" ").forEach(t=>{t&&a[l].push({content:t,type:r})})}):("strong"===e.type||"emphasis"===e.type)&&e.children.forEach(r=>{t(r,e.type)})}(t)})}),a}(e),y);{let i=function(t){let{children:e}=(0,n.V)(t);return e.map(function t(e){return"text"===e.type?e.value.replace(/\n/g,"<br/>"):"strong"===e.type?`<strong>${e.children.map(t).join("")}</strong>`:"emphasis"===e.type?`<em>${e.children.map(t).join("")}</em>`:"paragraph"===e.type?`<p>${e.children.map(t).join("")}</p>`:`Unsupported markdown: ${e.type}`}).join("")}(e);return function(t,e,r,a,n=!1){var i;let l=t.append("foreignObject"),s=l.append("xhtml:div"),d=e.label,o=e.isNode?"nodeLabel":"edgeLabel";s.html(`
<span class="${o} ${a}" `+(e.labelStyle?'style="'+e.labelStyle+'"':"")+">"+d+"</span>"),(i=e.labelStyle)&&s.attr("style",i),s.style("display","table-cell"),s.style("white-space","nowrap"),s.style("max-width",r+"px"),s.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&s.attr("class","labelBkg");let h=s.node().getBoundingClientRect();return h.width===r&&(s.style("display","table"),s.style("white-space","break-spaces"),s.style("width",r+"px"),h=s.node().getBoundingClientRect()),l.style("width",h.width),l.style("height",h.height),l.node()}(t,{isNode:c,label:(0,a.J)(i).replace(/fa[blrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`),labelStyle:r.replace("fill:","color:")},p,o,y)}}},84601:(t,e,r)=>{r.d(e,{a:()=>s,b:()=>v,c:()=>d,d:()=>j,e:()=>L,f:()=>$,g:()=>D,h:()=>P,i:()=>y,j:()=>B,l:()=>o,p:()=>_,s:()=>S,u:()=>h});var a=r(15537),n=r(3896),i=r(86247);let l={extension:(t,e,r)=>{a.l.trace("Making markers for ",r),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionStart").attr("class","marker extension "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-extensionEnd").attr("class","marker extension "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionStart").attr("class","marker composition "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-compositionEnd").attr("class","marker composition "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationStart").attr("class","marker aggregation "+e).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-aggregationEnd").attr("class","marker aggregation "+e).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyStart").attr("class","marker dependency "+e).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",r+"_"+e+"-dependencyEnd").attr("class","marker dependency "+e).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},lollipop:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopStart").attr("class","marker lollipop "+e).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",r+"_"+e+"-lollipopEnd").attr("class","marker lollipop "+e).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},point:(t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-pointEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-pointStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:(t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-circleEnd").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-circleStart").attr("class","marker "+e).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:(t,e,r)=>{t.append("marker").attr("id",r+"_"+e+"-crossEnd").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",r+"_"+e+"-crossStart").attr("class","marker cross "+e).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:(t,e,r)=>{t.append("defs").append("marker").attr("id",r+"_"+e+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}},s=(t,e,r,a)=>{e.forEach(e=>{l[e](t,r,a)})},d=(t,e,r,i)=>{let l=t||"";if("object"==typeof l&&(l=l[0]),(0,a.m)((0,a.c)().flowchart.htmlLabels))return l=l.replace(/\\n|\n/g,"<br />"),a.l.info("vertexText"+l),function(t){var e;let r=(0,n.Ys)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),a=r.append("xhtml:div"),i=t.label,l=t.isNode?"nodeLabel":"edgeLabel";return a.html('<span class="'+l+'" '+(t.labelStyle?'style="'+t.labelStyle+'"':"")+">"+i+"</span>"),(e=t.labelStyle)&&a.attr("style",e),a.style("display","inline-block"),a.style("white-space","nowrap"),a.attr("xmlns","http://www.w3.org/1999/xhtml"),r.node()}({isNode:i,label:(0,a.J)(l).replace(/fa[blrs]?:fa-[\w-]+/g,t=>`<i class='${t.replace(":"," ")}'></i>`),labelStyle:e.replace("fill:","color:")});{let t=document.createElementNS("http://www.w3.org/2000/svg","text");t.setAttribute("style",e.replace("color:","fill:"));for(let e of"string"==typeof l?l.split(/\\n|\n|<br\s*\/?>/gi):Array.isArray(l)?l:[]){let a=document.createElementNS("http://www.w3.org/2000/svg","tspan");a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),a.setAttribute("dy","1em"),a.setAttribute("x","0"),r?a.setAttribute("class","title-row"):a.setAttribute("class","row"),a.textContent=e.trim(),t.appendChild(a)}return t}},o=async(t,e,r,l)=>{let s,o;let h=e.useHtmlLabels||(0,a.m)((0,a.c)().flowchart.htmlLabels),c=t.insert("g").attr("class",r||"node default").attr("id",e.domId||e.id),p=c.insert("g").attr("class","label").attr("style",e.labelStyle);s=void 0===e.labelText?"":"string"==typeof e.labelText?e.labelText:e.labelText[0];let y=p.node(),g=(o="markdown"===e.labelType?(0,i.a)(p,(0,a.d)((0,a.J)(s),(0,a.c)()),{useHtmlLabels:h,width:e.width||(0,a.c)().flowchart.wrappingWidth,classes:"markdown-node-label"}):y.appendChild(d((0,a.d)((0,a.J)(s),(0,a.c)()),e.labelStyle,!1,l))).getBBox(),f=e.padding/2;if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=o.children[0],e=(0,n.Ys)(o),r=t.getElementsByTagName("img");if(r){let t=""===s.replace(/<img[^>]*>/g,"").trim();await Promise.all([...r].map(e=>new Promise(r=>{function n(){if(e.style.display="flex",e.style.flexDirection="column",t){let t=(0,a.c)().fontSize?(0,a.c)().fontSize:window.getComputedStyle(document.body).fontSize;e.style.width=5*parseInt(t,10)+"px"}else e.style.width="100%";r(e)}setTimeout(()=>{e.complete&&n()}),e.addEventListener("error",n),e.addEventListener("load",n)})))}g=t.getBoundingClientRect(),e.attr("width",g.width),e.attr("height",g.height)}return h?p.attr("transform","translate("+-g.width/2+", "+-g.height/2+")"):p.attr("transform","translate(0, "+-g.height/2+")"),e.centerLabel&&p.attr("transform","translate("+-g.width/2+", "+-g.height/2+")"),p.insert("rect",":first-child"),{shapeSvg:c,bbox:g,halfPadding:f,label:p}},h=(t,e)=>{let r=e.node().getBBox();t.width=r.width,t.height=r.height};function c(t,e,r,a){return t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-e/2+","+r/2+")")}function p(t,e,r,a){var n=t.x,i=t.y,l=n-a.x,s=i-a.y,d=Math.sqrt(e*e*s*s+r*r*l*l),o=Math.abs(e*r*l/d);a.x<n&&(o=-o);var h=Math.abs(e*r*s/d);return a.y<i&&(h=-h),{x:n+o,y:i+h}}let y=(t,e)=>{var r,a,n=t.x,i=t.y,l=e.x-n,s=e.y-i,d=t.width/2,o=t.height/2;return Math.abs(s)*d>Math.abs(l)*o?(s<0&&(o=-o),r=0===s?0:o*l/s,a=o):(l<0&&(d=-d),r=d,a=0===l?0:d*s/l),{x:n+r,y:i+a}},g={node:function(t,e){return t.intersect(e)},circle:function(t,e,r){return p(t,e,e,r)},ellipse:p,polygon:function(t,e,r){var a=t.x,n=t.y,i=[],l=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;"function"==typeof e.forEach?e.forEach(function(t){l=Math.min(l,t.x),s=Math.min(s,t.y)}):(l=Math.min(l,e.x),s=Math.min(s,e.y));for(var d=a-t.width/2-l,o=n-t.height/2-s,h=0;h<e.length;h++){var c=e[h],p=e[h<e.length-1?h+1:0],y=function(t,e,r,a){var n,i,l,s,d,o,h,c,p,y,g,f,u;if(n=e.y-t.y,l=t.x-e.x,d=e.x*t.y-t.x*e.y,p=n*r.x+l*r.y+d,y=n*a.x+l*a.y+d,(0===p||0===y||!(p*y>0))&&(i=a.y-r.y,s=r.x-a.x,o=a.x*r.y-r.x*a.y,h=i*t.x+s*t.y+o,c=i*e.x+s*e.y+o,!(0!==h&&0!==c&&h*c>0)&&0!=(g=n*s-i*l)))return f=Math.abs(g/2),{x:(u=l*o-s*d)<0?(u-f)/g:(u+f)/g,y:(u=i*d-n*o)<0?(u-f)/g:(u+f)/g}}(t,r,{x:d+c.x,y:o+c.y},{x:d+p.x,y:o+p.y});y&&i.push(y)}return i.length?(i.length>1&&i.sort(function(t,e){var a=t.x-r.x,n=t.y-r.y,i=Math.sqrt(a*a+n*n),l=e.x-r.x,s=e.y-r.y,d=Math.sqrt(l*l+s*s);return i<d?-1:i===d?0:1}),i[0]):t},rect:y},f=t=>t?" "+t:"",u=(t,e)=>`${e||"node default"}${f(t.classes)} ${f(t.class)}`,w=async(t,e)=>{let{shapeSvg:r,bbox:n}=await o(t,e,u(e,void 0),!0),i=n.width+e.padding+(n.height+e.padding),l=[{x:i/2,y:0},{x:i,y:-i/2},{x:i/2,y:-i},{x:0,y:-i/2}];a.l.info("Question main (Circle)");let s=c(r,i,i,l);return s.attr("style",e.style),h(e,s),e.intersect=function(t){return a.l.warn("Intersect called"),g.polygon(e,l,t)},r};function m(t,e,r,n){let i=[],l=t=>{i.push(t,0)},s=t=>{i.push(0,t)};e.includes("t")?(a.l.debug("add top border"),l(r)):s(r),e.includes("r")?(a.l.debug("add right border"),l(n)):s(n),e.includes("b")?(a.l.debug("add bottom border"),l(r)):s(r),e.includes("l")?(a.l.debug("add left border"),l(n)):s(n),t.attr("stroke-dasharray",i.join(" "))}let x=(t,e,r)=>{let a=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),n=70,i=10;return"LR"===r&&(n=10,i=70),h(e,a.append("rect").attr("x",-1*n/2).attr("y",-1*i/2).attr("width",n).attr("height",i).attr("class","fork-join")),e.height=e.height+e.padding/2,e.width=e.width+e.padding/2,e.intersect=function(t){return g.rect(e,t)},a},b={rhombus:w,question:w,rect:async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await o(t,e,"node "+e.classes+" "+e.class,!0),l=r.insert("rect",":first-child"),s=n.width+e.padding,d=n.height+e.padding;if(l.attr("class","basic label-container").attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("x",-n.width/2-i).attr("y",-n.height/2-i).attr("width",s).attr("height",d),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(m(l,e.props.borders,s,d),t.delete("borders")),t.forEach(t=>{a.l.warn(`Unknown node property ${t}`)})}return h(e,l),e.intersect=function(t){return g.rect(e,t)},r},labelRect:async(t,e)=>{let{shapeSvg:r}=await o(t,e,"label",!0);a.l.trace("Classes = ",e.class);let n=r.insert("rect",":first-child");if(n.attr("width",0).attr("height",0),r.attr("class","label edgeLabel"),e.props){let t=new Set(Object.keys(e.props));e.props.borders&&(m(n,e.props.borders,0,0),t.delete("borders")),t.forEach(t=>{a.l.warn(`Unknown node property ${t}`)})}return h(e,n),e.intersect=function(t){return g.rect(e,t)},r},rectWithTitle:(t,e)=>{let r;r=e.classes?"node "+e.classes:"node default";let i=t.insert("g").attr("class",r).attr("id",e.domId||e.id),l=i.insert("rect",":first-child"),s=i.insert("line"),o=i.insert("g").attr("class","label"),c=e.labelText.flat?e.labelText.flat():e.labelText,p="";p="object"==typeof c?c[0]:c,a.l.info("Label text abc79",p,c,"object"==typeof c);let y=o.node().appendChild(d(p,e.labelStyle,!0,!0)),f={width:0,height:0};if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=y.children[0],e=(0,n.Ys)(y);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}a.l.info("Text 2",c);let u=c.slice(1,c.length),w=y.getBBox(),m=o.node().appendChild(d(u.join?u.join("<br/>"):u,e.labelStyle,!0,!0));if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=m.children[0],e=(0,n.Ys)(m);f=t.getBoundingClientRect(),e.attr("width",f.width),e.attr("height",f.height)}let x=e.padding/2;return(0,n.Ys)(m).attr("transform","translate( "+(f.width>w.width?0:(w.width-f.width)/2)+", "+(w.height+x+5)+")"),(0,n.Ys)(y).attr("transform","translate( "+(f.width<w.width?0:-(w.width-f.width)/2)+", 0)"),f=o.node().getBBox(),o.attr("transform","translate("+-f.width/2+", "+(-f.height/2-x+3)+")"),l.attr("class","outer title-state").attr("x",-f.width/2-x).attr("y",-f.height/2-x).attr("width",f.width+e.padding).attr("height",f.height+e.padding),s.attr("class","divider").attr("x1",-f.width/2-x).attr("x2",f.width/2+x).attr("y1",-f.height/2-x+w.height+x).attr("y2",-f.height/2-x+w.height+x),h(e,l),e.intersect=function(t){return g.rect(e,t)},i},choice:(t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id);return r.insert("polygon",":first-child").attr("points",[{x:0,y:14},{x:14,y:0},{x:0,y:-14},{x:-14,y:0}].map(function(t){return t.x+","+t.y}).join(" ")).attr("class","state-start").attr("r",7).attr("width",28).attr("height",28),e.width=28,e.height=28,e.intersect=function(t){return g.circle(e,14,t)},r},circle:async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await o(t,e,u(e,void 0),!0),l=r.insert("circle",":first-child");return l.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),a.l.info("Circle main"),h(e,l),e.intersect=function(t){return a.l.info("Circle intersect",e,n.width/2+i,t),g.circle(e,n.width/2+i,t)},r},doublecircle:async(t,e)=>{let{shapeSvg:r,bbox:n,halfPadding:i}=await o(t,e,u(e,void 0),!0),l=r.insert("g",":first-child"),s=l.insert("circle"),d=l.insert("circle");return l.attr("class",e.class),s.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i+5).attr("width",n.width+e.padding+10).attr("height",n.height+e.padding+10),d.attr("style",e.style).attr("rx",e.rx).attr("ry",e.ry).attr("r",n.width/2+i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),a.l.info("DoubleCircle main"),h(e,s),e.intersect=function(t){return a.l.info("DoubleCircle intersect",e,n.width/2+i+5,t),g.circle(e,n.width/2+i+5,t)},r},stadium:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e,void 0),!0),n=a.height+e.padding,i=a.width+n/4+e.padding,l=r.insert("rect",":first-child").attr("style",e.style).attr("rx",n/2).attr("ry",n/2).attr("x",-i/2).attr("y",-n/2).attr("width",i).attr("height",n);return h(e,l),e.intersect=function(t){return g.rect(e,t)},r},hexagon:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e,void 0),!0),n=a.height+e.padding,i=n/4,l=a.width+2*i+e.padding,s=[{x:i,y:0},{x:l-i,y:0},{x:l,y:-n/2},{x:l-i,y:-n},{x:i,y:-n},{x:0,y:-n/2}],d=c(r,l,n,s);return d.attr("style",e.style),h(e,d),e.intersect=function(t){return g.polygon(e,s,t)},r},rect_left_inv_arrow:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:-i/2,y:0},{x:n,y:0},{x:n,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}];return c(r,n,i,l).attr("style",e.style),e.width=n+i,e.height=i,e.intersect=function(t){return g.polygon(e,l,t)},r},lean_right:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:-2*i/6,y:0},{x:n-i/6,y:0},{x:n+2*i/6,y:-i},{x:i/6,y:-i}],s=c(r,n,i,l);return s.attr("style",e.style),h(e,s),e.intersect=function(t){return g.polygon(e,l,t)},r},lean_left:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:2*i/6,y:0},{x:n+i/6,y:0},{x:n-2*i/6,y:-i},{x:-i/6,y:-i}],s=c(r,n,i,l);return s.attr("style",e.style),h(e,s),e.intersect=function(t){return g.polygon(e,l,t)},r},trapezoid:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:-2*i/6,y:0},{x:n+2*i/6,y:0},{x:n-i/6,y:-i},{x:i/6,y:-i}],s=c(r,n,i,l);return s.attr("style",e.style),h(e,s),e.intersect=function(t){return g.polygon(e,l,t)},r},inv_trapezoid:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:i/6,y:0},{x:n-i/6,y:0},{x:n+2*i/6,y:-i},{x:-2*i/6,y:-i}],s=c(r,n,i,l);return s.attr("style",e.style),h(e,s),e.intersect=function(t){return g.polygon(e,l,t)},r},rect_right_inv_arrow:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:0,y:0},{x:n+i/2,y:0},{x:n,y:-i/2},{x:n+i/2,y:-i},{x:0,y:-i}],s=c(r,n,i,l);return s.attr("style",e.style),h(e,s),e.intersect=function(t){return g.polygon(e,l,t)},r},cylinder:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e,void 0),!0),n=a.width+e.padding,i=n/2,l=i/(2.5+n/50),s=a.height+l+e.padding,d=r.attr("label-offset-y",l).insert("path",":first-child").attr("style",e.style).attr("d","M 0,"+l+" a "+i+","+l+" 0,0,0 "+n+" 0 a "+i+","+l+" 0,0,0 "+-n+" 0 l 0,"+s+" a "+i+","+l+" 0,0,0 "+n+" 0 l 0,"+-s).attr("transform","translate("+-n/2+","+-(s/2+l)+")");return h(e,d),e.intersect=function(t){let r=g.rect(e,t),a=r.x-e.x;if(0!=i&&(Math.abs(a)<e.width/2||Math.abs(a)==e.width/2&&Math.abs(r.y-e.y)>e.height/2-l)){let n=l*l*(1-a*a/(i*i));0!=n&&(n=Math.sqrt(n)),n=l-n,t.y-e.y>0&&(n=-n),r.y+=n}return r},r},start:(t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child");return a.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),h(e,a),e.intersect=function(t){return g.circle(e,7,t)},r},end:(t,e)=>{let r=t.insert("g").attr("class","node default").attr("id",e.domId||e.id),a=r.insert("circle",":first-child"),n=r.insert("circle",":first-child");return n.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),a.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),h(e,n),e.intersect=function(t){return g.circle(e,7,t)},r},note:async(t,e)=>{e.useHtmlLabels||(0,a.c)().flowchart.htmlLabels||(e.centerLabel=!0);let{shapeSvg:r,bbox:n,halfPadding:i}=await o(t,e,"node "+e.classes,!0);a.l.info("Classes = ",e.classes);let l=r.insert("rect",":first-child");return l.attr("rx",e.rx).attr("ry",e.ry).attr("x",-n.width/2-i).attr("y",-n.height/2-i).attr("width",n.width+e.padding).attr("height",n.height+e.padding),h(e,l),e.intersect=function(t){return g.rect(e,t)},r},subroutine:async(t,e)=>{let{shapeSvg:r,bbox:a}=await o(t,e,u(e,void 0),!0),n=a.width+e.padding,i=a.height+e.padding,l=[{x:0,y:0},{x:n,y:0},{x:n,y:-i},{x:0,y:-i},{x:0,y:0},{x:-8,y:0},{x:n+8,y:0},{x:n+8,y:-i},{x:-8,y:-i},{x:-8,y:0}],s=c(r,n,i,l);return s.attr("style",e.style),h(e,s),e.intersect=function(t){return g.polygon(e,l,t)},r},fork:x,join:x,class_box:(t,e)=>{let r;let i=e.padding/2;r=e.classes?"node "+e.classes:"node default";let l=t.insert("g").attr("class",r).attr("id",e.domId||e.id),s=l.insert("rect",":first-child"),o=l.insert("line"),c=l.insert("line"),p=0,y=4,f=l.insert("g").attr("class","label"),u=0,w=e.classData.annotations&&e.classData.annotations[0],m=e.classData.annotations[0]?"\xab"+e.classData.annotations[0]+"\xbb":"",x=f.node().appendChild(d(m,e.labelStyle,!0,!0)),b=x.getBBox();if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=x.children[0],e=(0,n.Ys)(x);b=t.getBoundingClientRect(),e.attr("width",b.width),e.attr("height",b.height)}e.classData.annotations[0]&&(y+=b.height+4,p+=b.width);let k=e.classData.label;void 0!==e.classData.type&&""!==e.classData.type&&((0,a.c)().flowchart.htmlLabels?k+="&lt;"+e.classData.type+"&gt;":k+="<"+e.classData.type+">");let L=f.node().appendChild(d(k,e.labelStyle,!0,!0));(0,n.Ys)(L).attr("class","classTitle");let S=L.getBBox();if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=L.children[0],e=(0,n.Ys)(L);S=t.getBoundingClientRect(),e.attr("width",S.width),e.attr("height",S.height)}y+=S.height+4,S.width>p&&(p=S.width);let v=[];e.classData.members.forEach(t=>{let r=t.getDisplayDetails(),i=r.displayText;(0,a.c)().flowchart.htmlLabels&&(i=i.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let l=f.node().appendChild(d(i,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0)),s=l.getBBox();if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=l.children[0],e=(0,n.Ys)(l);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s.width>p&&(p=s.width),y+=s.height+4,v.push(l)}),y+=8;let _=[];if(e.classData.methods.forEach(t=>{let r=t.getDisplayDetails(),i=r.displayText;(0,a.c)().flowchart.htmlLabels&&(i=i.replace(/</g,"&lt;").replace(/>/g,"&gt;"));let l=f.node().appendChild(d(i,r.cssStyle?r.cssStyle:e.labelStyle,!0,!0)),s=l.getBBox();if((0,a.m)((0,a.c)().flowchart.htmlLabels)){let t=l.children[0],e=(0,n.Ys)(l);s=t.getBoundingClientRect(),e.attr("width",s.width),e.attr("height",s.height)}s.width>p&&(p=s.width),y+=s.height+4,_.push(l)}),y+=8,w){let t=(p-b.width)/2;(0,n.Ys)(x).attr("transform","translate( "+(-1*p/2+t)+", "+-1*y/2+")"),u=b.height+4}let M=(p-S.width)/2;return(0,n.Ys)(L).attr("transform","translate( "+(-1*p/2+M)+", "+(-1*y/2+u)+")"),u+=S.height+4,o.attr("class","divider").attr("x1",-p/2-i).attr("x2",p/2+i).attr("y1",-y/2-i+8+u).attr("y2",-y/2-i+8+u),u+=8,v.forEach(t=>{(0,n.Ys)(t).attr("transform","translate( "+-p/2+", "+(-1*y/2+u+4)+")");let e=null==t?void 0:t.getBBox();u+=((null==e?void 0:e.height)??0)+4}),u+=8,c.attr("class","divider").attr("x1",-p/2-i).attr("x2",p/2+i).attr("y1",-y/2-i+8+u).attr("y2",-y/2-i+8+u),u+=8,_.forEach(t=>{(0,n.Ys)(t).attr("transform","translate( "+-p/2+", "+(-1*y/2+u)+")");let e=null==t?void 0:t.getBBox();u+=((null==e?void 0:e.height)??0)+4}),s.attr("class","outer title-state").attr("x",-p/2-i).attr("y",-(y/2)-i).attr("width",p+e.padding).attr("height",y+e.padding),h(e,s),e.intersect=function(t){return g.rect(e,t)},l}},k={},L=async(t,e,r)=>{let n,i;if(e.link){let l;"sandbox"===(0,a.c)().securityLevel?l="_top":e.linkTarget&&(l=e.linkTarget||"_blank"),n=t.insert("svg:a").attr("xlink:href",e.link).attr("target",l),i=await b[e.shape](n,e,r)}else n=i=await b[e.shape](t,e,r);return e.tooltip&&i.attr("title",e.tooltip),e.class&&i.attr("class","node default "+e.class),k[e.id]=n,e.haveCallback&&k[e.id].attr("class",k[e.id].attr("class")+" clickable"),n},S=(t,e)=>{k[e.id]=t},v=()=>{k={}},_=t=>{let e=k[t.id];a.l.trace("Transforming node",t.diff,t,"translate("+(t.x-t.width/2-5)+", "+t.width/2+")");let r=t.diff||0;return t.clusterNode?e.attr("transform","translate("+(t.x+r-t.width/2)+", "+(t.y-t.height/2-8)+")"):e.attr("transform","translate("+t.x+", "+t.y+")"),r},M={aggregation:18,extension:18,composition:18,dependency:6,lollipop:13.5,arrow_point:5.3};function E(t,e){t=T(t),e=T(e);let[r,a]=[t.x,t.y],[n,i]=[e.x,e.y],l=n-r,s=i-a;return{angle:Math.atan(s/l),deltaX:l,deltaY:s}}let T=t=>Array.isArray(t)?{x:t[0],y:t[1]}:t,B=t=>({x:function(e,r,a){let n=0;if(0===r&&Object.hasOwn(M,t.arrowTypeStart)){let{angle:e,deltaX:r}=E(a[0],a[1]);n=M[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(M,t.arrowTypeEnd)){let{angle:e,deltaX:r}=E(a[a.length-1],a[a.length-2]);n=M[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}return T(e).x+n},y:function(e,r,a){let n=0;if(0===r&&Object.hasOwn(M,t.arrowTypeStart)){let{angle:e,deltaY:r}=E(a[0],a[1]);n=M[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===a.length-1&&Object.hasOwn(M,t.arrowTypeEnd)){let{angle:e,deltaY:r}=E(a[a.length-1],a[a.length-2]);n=M[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}return T(e).y+n}}),C={},Y={},j=()=>{C={},Y={}},$=(t,e)=>{let r;let l=(0,a.m)((0,a.c)().flowchart.htmlLabels),s="markdown"===e.labelType?(0,i.a)(t,e.label,{style:e.labelStyle,useHtmlLabels:l,addSvgBackground:!0}):d(e.label,e.labelStyle);a.l.info("abc82",e,e.labelType);let o=t.insert("g").attr("class","edgeLabel"),h=o.insert("g").attr("class","label");h.node().appendChild(s);let c=s.getBBox();if(l){let t=s.children[0],e=(0,n.Ys)(s);c=t.getBoundingClientRect(),e.attr("width",c.width),e.attr("height",c.height)}if(h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),C[e.id]=o,e.width=c.width,e.height=c.height,e.startLabelLeft){let a=d(e.startLabelLeft,e.labelStyle),n=t.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");r=i.node().appendChild(a);let l=a.getBBox();i.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),Y[e.id]||(Y[e.id]={}),Y[e.id].startLeft=n,R(r,e.startLabelLeft)}if(e.startLabelRight){let a=d(e.startLabelRight,e.labelStyle),n=t.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");r=n.node().appendChild(a),i.node().appendChild(a);let l=a.getBBox();i.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),Y[e.id]||(Y[e.id]={}),Y[e.id].startRight=n,R(r,e.startLabelRight)}if(e.endLabelLeft){let a=d(e.endLabelLeft,e.labelStyle),n=t.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");r=i.node().appendChild(a);let l=a.getBBox();i.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),n.node().appendChild(a),Y[e.id]||(Y[e.id]={}),Y[e.id].endLeft=n,R(r,e.endLabelLeft)}if(e.endLabelRight){let a=d(e.endLabelRight,e.labelStyle),n=t.insert("g").attr("class","edgeTerminals"),i=n.insert("g").attr("class","inner");r=i.node().appendChild(a);let l=a.getBBox();i.attr("transform","translate("+-l.width/2+", "+-l.height/2+")"),n.node().appendChild(a),Y[e.id]||(Y[e.id]={}),Y[e.id].endRight=n,R(r,e.endLabelRight)}return s};function R(t,e){(0,a.c)().flowchart.htmlLabels&&t&&(t.style.width=9*e.length+"px",t.style.height="12px")}let P=(t,e)=>{a.l.info("Moving label abc78 ",t.id,t.label,C[t.id]);let r=e.updatedPath?e.updatedPath:e.originalPath;if(t.label){let n=C[t.id],i=t.x,l=t.y;if(r){let n=a.u.calcLabelPosition(r);a.l.info("Moving label "+t.label+" from (",i,",",l,") to (",n.x,",",n.y,") abc78"),e.updatedPath&&(i=n.x,l=n.y)}n.attr("transform","translate("+i+", "+l+")")}if(t.startLabelLeft){let e=Y[t.id].startLeft,n=t.x,i=t.y;if(r){let e=a.u.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",r);n=e.x,i=e.y}e.attr("transform","translate("+n+", "+i+")")}if(t.startLabelRight){let e=Y[t.id].startRight,n=t.x,i=t.y;if(r){let e=a.u.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",r);n=e.x,i=e.y}e.attr("transform","translate("+n+", "+i+")")}if(t.endLabelLeft){let e=Y[t.id].endLeft,n=t.x,i=t.y;if(r){let e=a.u.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",r);n=e.x,i=e.y}e.attr("transform","translate("+n+", "+i+")")}if(t.endLabelRight){let e=Y[t.id].endRight,n=t.x,i=t.y;if(r){let e=a.u.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",r);n=e.x,i=e.y}e.attr("transform","translate("+n+", "+i+")")}},I=(t,e)=>{let r=t.x,a=t.y,n=Math.abs(e.x-r),i=Math.abs(e.y-a),l=t.width/2,s=t.height/2;return n>=l||i>=s},O=(t,e,r)=>{a.l.warn(`intersection calc abc89:
outsidePoint: ${JSON.stringify(e)}
insidePoint : ${JSON.stringify(r)}
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let n=t.x,i=t.y,l=Math.abs(n-r.x),s=t.width/2,d=r.x<e.x?s-l:s+l,o=t.height/2,h=Math.abs(e.y-r.y),c=Math.abs(e.x-r.x);if(Math.abs(i-e.y)*s>Math.abs(n-e.x)*o){let t=r.y<e.y?e.y-o-i:i-o-e.y;d=c*t/h;let n={x:r.x<e.x?r.x+d:r.x-c+d,y:r.y<e.y?r.y+h-t:r.y-h+t};return 0===d&&(n.x=e.x,n.y=e.y),0===c&&(n.x=e.x),0===h&&(n.y=e.y),a.l.warn(`abc89 topp/bott calc, Q ${h}, q ${t}, R ${c}, r ${d}`,n),n}{let t=h*(d=r.x<e.x?e.x-s-n:n-s-e.x)/c,i=r.x<e.x?r.x+c-d:r.x-c+d,l=r.y<e.y?r.y+t:r.y-t;return a.l.warn(`sides calc abc89, Q ${h}, q ${t}, R ${c}, r ${d}`,{_x:i,_y:l}),0===d&&(i=e.x,l=e.y),0===c&&(i=e.x),0===h&&(l=e.y),{x:i,y:l}}},W=(t,e)=>{a.l.warn("abc88 cutPathAtIntersect",t,e);let r=[],n=t[0],i=!1;return t.forEach(t=>{if(a.l.info("abc88 checking point",t,e),I(e,t)||i)a.l.warn("abc88 outside",t,n),n=t,i||r.push(t);else{let l=O(e,n,t);a.l.warn("abc88 inside",t,n,l),a.l.warn("abc88 intersection",l);let s=!1;r.forEach(t=>{s=s||t.x===l.x&&t.y===l.y}),r.some(t=>t.x===l.x&&t.y===l.y)?a.l.warn("abc88 no intersect",l,r):r.push(l),i=!0}}),a.l.warn("abc88 returning points",r),r},D=function(t,e,r,i,l,s,d){let o,h=r.points,c=!1,p=s.node(e.v);var y=s.node(e.w);a.l.info("abc88 InsertEdge: ",r),y.intersect&&p.intersect&&((h=h.slice(1,r.points.length-1)).unshift(p.intersect(h[0])),a.l.info("Last point",h[h.length-1],y,y.intersect(h[h.length-1])),h.push(y.intersect(h[h.length-1]))),r.toCluster&&(a.l.info("to cluster abc88",i[r.toCluster]),h=W(r.points,i[r.toCluster].node),c=!0),r.fromCluster&&(a.l.info("from cluster abc88",i[r.fromCluster]),h=W(h.reverse(),i[r.fromCluster].node).reverse(),c=!0);let g=h.filter(t=>!Number.isNaN(t.y)),f=n.$0Z;r.curve&&("graph"===l||"flowchart"===l)&&(f=r.curve);let{x:u,y:w}=B(r),m=(0,n.jvg)().x(u).y(w).curve(f);switch(r.thickness){case"normal":o="edge-thickness-normal";break;case"thick":case"invisible":o="edge-thickness-thick";break;default:o=""}switch(r.pattern){case"solid":o+=" edge-pattern-solid";break;case"dotted":o+=" edge-pattern-dotted";break;case"dashed":o+=" edge-pattern-dashed"}let x=t.append("path").attr("d",m(g)).attr("id",r.id).attr("class"," "+o+(r.classes?" "+r.classes:"")).attr("style",r.style),b="";switch(((0,a.c)().flowchart.arrowMarkerAbsolute||(0,a.c)().state.arrowMarkerAbsolute)&&(b=(b=(b=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),a.l.info("arrowTypeStart",r.arrowTypeStart),a.l.info("arrowTypeEnd",r.arrowTypeEnd),r.arrowTypeStart){case"arrow_cross":x.attr("marker-start","url("+b+"#"+d+"_"+l+"-crossStart)");break;case"arrow_point":x.attr("marker-start","url("+b+"#"+d+"_"+l+"-pointStart)");break;case"arrow_barb":x.attr("marker-start","url("+b+"#"+d+"_"+l+"-barbStart)");break;case"arrow_circle":x.attr("marker-start","url("+b+"#"+d+"_"+l+"-circleStart)");break;case"aggregation":x.attr("marker-start","url("+b+"#"+d+"_"+l+"-aggregationStart)");break;case"extension":x.attr("marker-start","url("+b+"#"+d+"_"+l+"-extensionStart)");break;case"composition":x.attr("marker-start","url("+b+"#"+d+"_"+l+"-compositionStart)");break;case"dependency":x.attr("marker-start","url("+b+"#"+d+"_"+l+"-dependencyStart)");break;case"lollipop":x.attr("marker-start","url("+b+"#"+d+"_"+l+"-lollipopStart)")}switch(r.arrowTypeEnd){case"arrow_cross":x.attr("marker-end","url("+b+"#"+d+"_"+l+"-crossEnd)");break;case"arrow_point":x.attr("marker-end","url("+b+"#"+d+"_"+l+"-pointEnd)");break;case"arrow_barb":x.attr("marker-end","url("+b+"#"+d+"_"+l+"-barbEnd)");break;case"arrow_circle":x.attr("marker-end","url("+b+"#"+d+"_"+l+"-circleEnd)");break;case"aggregation":x.attr("marker-end","url("+b+"#"+d+"_"+l+"-aggregationEnd)");break;case"extension":x.attr("marker-end","url("+b+"#"+d+"_"+l+"-extensionEnd)");break;case"composition":x.attr("marker-end","url("+b+"#"+d+"_"+l+"-compositionEnd)");break;case"dependency":x.attr("marker-end","url("+b+"#"+d+"_"+l+"-dependencyEnd)");break;case"lollipop":x.attr("marker-end","url("+b+"#"+d+"_"+l+"-lollipopEnd)")}let k={};return c&&(k.updatedPath=h),k.originalPath=r.points,k}}};