mermaid
Version:
Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.
11 lines • 54.4 kB
JavaScript
import{a as Zt}from"./chunk-PJ2FCULI.mjs";import{c as zt,g as it}from"./chunk-CBDDXUFN.mjs";import{a as Qt}from"./chunk-JENJ2NYI.mjs";import{c as qt,d as Vt}from"./chunk-J3HIBH47.mjs";import{c as St,e as It}from"./chunk-QMVAV2W2.mjs";import{q,u as Ft}from"./chunk-3A3SYRXV.mjs";import{C as wt,c as $t,da as Z,y as tt}from"./chunk-OI4SXON4.mjs";import{$ as Gt,G as ft,H as vt,J as Bt,K as Yt,L as Mt,P as Wt,S as Xt,W as Ht,X as Ct,Y as Rt,Z as Nt,_ as Dt,b as E,h as z}from"./chunk-NXZFCOWJ.mjs";import{a as i}from"./chunk-V3YWWTDH.mjs";var st=i((r,t)=>{if(t)return"translate("+-r.width/2+", "+-r.height/2+")";let e=r.x??0,a=r.y??0;return"translate("+-(e+r.width/2)+", "+-(a+r.height/2)+")"},"computeLabelTransform");var T={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},Et={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5,arrow_open_head:4,arrow_hollow_circle:8};function ht(r,t){if(r===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};r=L(r),t=L(t);let[e,a]=[r.x,r.y],[s,n]=[t.x,t.y],o=s-e,c=n-a;return{angle:Math.atan(c/o),deltaX:o,deltaY:c}}i(ht,"calculateDeltaAndAngle");var L=i(r=>Array.isArray(r)?{x:r[0],y:r[1]}:r,"pointTransformer"),jt=i(r=>({x:i(function(t,e,a){let s=0,n=L(a[0]).x<L(a[a.length-1]).x?"left":"right";if(e===0&&Object.hasOwn(T,r.arrowTypeStart)){let{angle:f,deltaX:k}=ht(a[0],a[1]);s=T[r.arrowTypeStart]*Math.cos(f)*(k>=0?1:-1)}else if(e===a.length-1&&Object.hasOwn(T,r.arrowTypeEnd)){let{angle:f,deltaX:k}=ht(a[a.length-1],a[a.length-2]);s=T[r.arrowTypeEnd]*Math.cos(f)*(k>=0?1:-1)}let o=Math.abs(L(t).x-L(a[a.length-1]).x),c=Math.abs(L(t).y-L(a[a.length-1]).y),d=Math.abs(L(t).x-L(a[0]).x),h=Math.abs(L(t).y-L(a[0]).y),m=T[r.arrowTypeStart],u=T[r.arrowTypeEnd],l=1;if(o<u&&o>0&&c<u){let f=u+l-o;f*=n==="right"?-1:1,s-=f}if(d<m&&d>0&&h<m){let f=m+l-d;f*=n==="right"?-1:1,s+=f}return L(t).x+s},"x"),y:i(function(t,e,a){let s=0,n=L(a[0]).y<L(a[a.length-1]).y?"down":"up";if(e===0&&Object.hasOwn(T,r.arrowTypeStart)){let{angle:f,deltaY:k}=ht(a[0],a[1]);s=T[r.arrowTypeStart]*Math.abs(Math.sin(f))*(k>=0?1:-1)}else if(e===a.length-1&&Object.hasOwn(T,r.arrowTypeEnd)){let{angle:f,deltaY:k}=ht(a[a.length-1],a[a.length-2]);s=T[r.arrowTypeEnd]*Math.abs(Math.sin(f))*(k>=0?1:-1)}let o=Math.abs(L(t).y-L(a[a.length-1]).y),c=Math.abs(L(t).x-L(a[a.length-1]).x),d=Math.abs(L(t).y-L(a[0]).y),h=Math.abs(L(t).x-L(a[0]).x),m=T[r.arrowTypeStart],u=T[r.arrowTypeEnd],l=1;if(o<u&&o>0&&c<u){let f=u+l-o;f*=n==="up"?-1:1,s-=f}if(d<m&&d>0&&h<m){let f=m+l-d;f*=n==="up"?-1:1,s+=f}return L(t).y+s},"y")}),"getLineFunctionsWithOffset");var Kt=i(r=>typeof r=="number"&&Number.isFinite(r)&&r>0?r:1,"getStepDuration"),ut=i(r=>typeof r.step=="number"&&Number.isInteger(r.step)&&r.step>0,"isStepEdge");var Jt=[.25,.35,.15,.65,.75,.5,.85,.1,.9],Lt=9,Pr=11,Tr=2,Ar="#333333",tr=12,rr=6,er=14,ar=.01,Ur=4.5,cr=/translate\(\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i,$r=4,vr=.6,Br=4,Yr=i((r,t,e=1)=>{let a=Math.max(t,r);return{begin:(r-1)*e,dur:e,gap:(a-1)*e}},"getEdgeStepTiming"),Wr=i(r=>`step_${Array.from(r,t=>/[\dA-Za-z]/.test(t)?t:`_${(t.codePointAt(0)??0).toString(16)}_`).join("")}`,"toAnimationId"),Xr=i(r=>{let t=/^m\s*(-?[\d.e]+)[\s,]+(-?[\d.e]+)/i.exec(r.trim());return t?`translate(${t[1]},${t[2]}) `:""},"pathStartTranslate"),Hr=i(r=>Array.from(r,(t,e)=>{let a=t.codePointAt(0)??0;if(a===0)return"\uFFFD";let s=a<=31||a===127,n=/\d/.test(t)&&(e===0||e===1&&r.startsWith("-"));return s||n?`\\${a.toString(16)} `:r==="-"?"\\-":a>=128||/[\w-]/.test(t)?t:`\\${t}`}).join(""),"escapeCssIdentifierFallback"),Cr=i(r=>typeof CSS<"u"&&typeof CSS.escape=="function"?CSS.escape(r):Hr(r),"escapeCssIdentifier"),Rr=i((r,t)=>{let e=r.node(),a=e?.ownerSVGElement??e?.closest?.("svg")??e,s=t||a?.getAttribute("id");if(!a||!s||a.querySelector("style.edge-step-style"))return;let n=`#${Cr(s)} `,o=a.ownerDocument.createElementNS("http://www.w3.org/2000/svg","style");o.setAttribute("class","edge-step-style"),o.textContent=`@media (prefers-reduced-motion: reduce) { ${n}.edge-step-dot, ${n}.edge-step-highlight { display: none; } }`,a.appendChild(o)},"ensureReducedMotionStyle"),Nr=i((r,t)=>{let e=r.filter(n=>Number.isFinite(n.x)&&Number.isFinite(n.y));if(e.length===0)return;let a=e.slice(1).map((n,o)=>Math.hypot(n.x-e[o].x,n.y-e[o].y)),s=a.reduce((n,o)=>n+o,0)*t;for(let[n,o]of a.entries()){if(s<=o&&o>0){let c=s/o,d=e[n],h=e[n+1];return{x:d.x+(h.x-d.x)*c,y:d.y+(h.y-d.y)*c}}s-=o}return e[e.length-1]},"pointAlongPolyline"),Dr=i((r,t)=>{let e=typeof t?.getTotalLength=="function"?t.getTotalLength():0,a=t?.getPointAtLength?.bind(t);return e>0&&a?s=>{let{x:n,y:o}=a(e*s);return{x:n,y:o}}:s=>Nr(r,s)},"createPathSampler"),Gr=i((r,t)=>Math.min(Number.POSITIVE_INFINITY,...t.map(e=>{let a=Math.max(Math.abs(r.x-e.x)-e.halfWidth,0),s=Math.max(Math.abs(r.y-e.y)-e.halfHeight,0);return Math.hypot(a,s)-Lt})),"roomAround"),Fr=i((r,t)=>{let e=r(t),a=r(Math.max(t-ar,0)),s=r(Math.min(t+ar,1));if(!e||!a||!s)return[];let n=Math.hypot(s.x-a.x,s.y-a.y);if(n===0)return[];let o={x:-(s.y-a.y)/n,y:(s.x-a.x)/n};return[1,-1].map(c=>({x:e.x+o.x*er*c,y:e.y+o.y*er*c}))},"besideThePath"),Ir=i((r,t)=>{let e=[...Jt.map(r),...Jt.flatMap(n=>Fr(r,n))],a,s=Number.NEGATIVE_INFINITY;for(let n of e){if(!n||!Number.isFinite(n.x)||!Number.isFinite(n.y))continue;let o=Gr(n,t);if(o>=Tr)return n;o>s&&(a=n,s=o)}return a},"chooseBadgePosition"),lr=i((r,t)=>({...r,halfWidth:t,halfHeight:t}),"square"),zr=i(r=>{let t=cr.exec(r.getAttribute("transform")??"");return t?{x:Number(t[1]),y:Number(t[2])}:{x:0,y:0}},"translationOf"),Ot=i(r=>{let t={x:0,y:0};for(let e=r;e&&e.localName!=="svg";e=e.parentElement){let{x:a,y:s}=zr(e);t.x+=a,t.y+=s}return t},"offsetInSvg"),qr=i((r,t)=>{if(!cr.test(r.getAttribute("transform")??""))return;let e=Ot(r),a=e.x-t.x,s=e.y-t.y,n=r.getBBox?.();if(n)return{x:a+n.x+n.width/2,y:s+n.y+n.height/2,halfWidth:n.width/2,halfHeight:n.height/2}},"boxedObstacle"),Vr=i(r=>{try{let t=JSON.parse(atob(r.getAttribute("data-points")??""));return Array.isArray(t)?t:[]}catch{return[]}},"readPoints"),nr=i((r,t)=>{let e=Math.hypot(r.x-t.x,r.y-t.y);if(e===0)return lr(r,tr);let a={x:(r.x-t.x)/e,y:(r.y-t.y)/e},s=tr/2;return{x:r.x-a.x*s,y:r.y-a.y*s,halfWidth:Math.abs(a.x)*s+Math.abs(a.y)*rr,halfHeight:Math.abs(a.y)*s+Math.abs(a.x)*rr}},"arrowheadObstacle"),sr=i((r,t)=>{let e=r.getAttribute(t);return!!e&&e!=="none"},"hasMarker"),Qr=i((r,t)=>{let e=Vr(r).filter(c=>Number.isFinite(c?.x)&&Number.isFinite(c?.y));if(e.length===0)return[];let a=Ot(r),s=i(c=>({x:c.x+a.x-t.x,y:c.y+a.y-t.y}),"toSvg"),n=e.length-1,o=[];return sr(r,"marker-start")&&o.push(nr(s(e[0]),s(e[Math.min(1,n)]))),sr(r,"marker-end")&&o.push(nr(s(e[n]),s(e[Math.max(n-1,0)]))),o},"arrowheadObstacles"),dr=i(r=>{let t={x:0,y:0},e=[...r?.querySelectorAll(".edgeLabel, .node")??[]].map(s=>qr(s,t)).filter(s=>s!==void 0),a=[...r?.querySelectorAll('path[data-edge="true"]')??[]].flatMap(s=>Qr(s,t));return[...e,...a]},"collectBadgeObstacles"),Zr=i((r,t)=>{if(!r.label||t.length===0)return[];let{x:e,y:a}=q.calcLabelPosition(t);return[{x:e,y:a,halfWidth:(r.width??0)/2,halfHeight:(r.height??0)/2}]},"edgeLabelObstacles"),jr=i(r=>{let t=r/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},"linearChannel"),or=i(r=>{try{let[t,e,a]=["r","g","b"].map(s=>jr($t(r,s)));return .2126*t+.7152*e+.0722*a}catch{return}},"relativeLuminance"),Kr=i((r,t)=>{let e=or(r),a=or(t);return e===void 0||a===void 0?0:(Math.max(e,a)+.05)/(Math.min(e,a)+.05)},"contrastRatio"),Jr=i((r,t)=>{let a=[...t.filter(n=>!!n),"#ffffff","#000000"].map(n=>({color:n,ratio:Kr(r,n)}));return(a.find(({ratio:n})=>n>=Ur)??a.reduce((n,o)=>o.ratio>n.ratio?o:n)).color},"pickBadgeTextColor"),te=i(r=>{let t=r?.replace(/^stroke:\s*/,"").trim();return t===""?void 0:t},"bareColor"),re=i((r,t,e,a=dr(r.node()?.closest("svg")))=>{if(!ut(t)||!t.showStepNumber)return;let s=Ot(r.node()),n=a.map(h=>({...h,x:h.x-s.x,y:h.y-s.y})),o=Ir(Dr(e.points,e.pathNode),[...n,...Zr(t,e.points)]);if(!o)return;let c=te(e.color)??Ar,d=r.append("g").attr("class","edge-step-badge").attr("transform",`translate(${o.x},${o.y})`).attr("pointer-events","none").attr("data-step",t.step);return d.append("circle").attr("r",Lt).attr("fill",c),d.append("text").attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",Pr).attr("fill",Jr(c,e.textColors??[])).text(String(t.step)),lr({x:o.x+s.x,y:o.y+s.y},Lt)},"insertEdgeStepBadge"),ir=i((r,t,e)=>{r.append("animateTransform").attr("attributeName","transform").attr("type","scale").attr("values","1;1").attr("dur",`${e}s`).attr("begin",`${t}.begin`).attr("fill","remove")},"showWhileStepPlays"),ee=i((r,t,e,a,s)=>{if(!ut(t)||!e)return;let{begin:n,dur:o,gap:c}=Yr(t.step,t.stepCount??t.step,Kt(t.stepDuration)),d=Wr(`${a}-${t.id}-step`),h=`${Xr(e)}scale(0)`,m=s?.replace(/^stroke:\s*/,""),u=r.append("path").attr("class","edge-step-highlight").attr("aria-hidden","true").attr("d",e).attr("fill","none").attr("stroke",m??"currentColor").attr("stroke-width",$r).attr("stroke-linecap","round").attr("stroke-opacity",vr).attr("pointer-events","none").attr("transform",h).attr("data-step",t.step);ir(u,d,o);let l=r.append("circle").attr("class","edge-step-dot").attr("r",Br).attr("aria-hidden","true").attr("transform",h).attr("data-step",t.step);m&&l.attr("fill",m).attr("stroke","none"),l.append("animateMotion").attr("id",d).attr("path",e).attr("dur",`${o}s`).attr("begin",`${n}s;${d}.end+${c}s`).attr("fill","remove"),ir(l,d,o),Rr(r,a)},"insertEdgeStepDot"),mt=new WeakMap,ae=i(r=>{let t=r.querySelector(":scope > g.edge-step-badges");if(t)return t;let e=r.ownerDocument.createElementNS("http://www.w3.org/2000/svg","g");return e.setAttribute("class","edge-step-badges"),r.appendChild(e)},"badgeLayer"),da=i(r=>{let t=r?mt.get(r):void 0;if(!r||!t)return;mt.delete(r);let e=dr(r);for(let{elem:a,edge:s,options:n}of t){let o=a.node()?.parentElement;if(!o)continue;let c=z(ae(o)),d=re(c,s,n,e);d&&e.push(d)}},"placeQueuedStepBadges"),pr=i((r,t,e,a,s)=>{ee(r,t,e,a,s.color);let n=r.node(),o=n?.ownerSVGElement??n;!o||!ut(t)||!t.showStepNumber||mt.set(o,[...mt.get(o)??[],{elem:r,edge:t,options:s}])},"insertEdgeStepMarks");function fr(r){return typeof r=="number"&&Number.isFinite(r)&&r>=0?r:5}i(fr,"resolveEdgeCornerRadius");var _t=i(({cssCompiledStyles:r})=>Object.entries(r??{}).filter(([t])=>!qt(t)).map(([,t])=>t),"edgeClassStyles"),Pt=i(r=>r.animate===!0||!!r.animation||_t(r).join(";").includes("animation"),"isAnimatedEdge"),ur=i(r=>r.look==="neo"&&!Pt(r),"drawsMarginMarkers"),mr=i((r,t,e,a,s,n=!1,o)=>{t.arrowTypeStart&&hr(r,"start",t.arrowTypeStart,e,a,s,n,o),t.arrowTypeEnd&&hr(r,"end",t.arrowTypeEnd,e,a,s,n,o)},"addEdgeMarkers"),ne={arrow_cross:{type:"cross",fill:!1},arrow_point:{type:"point",fill:!0},arrow_barb:{type:"barb",fill:!0},arrow_barb_neo:{type:"barb",fill:!0},arrow_circle:{type:"circle",fill:!1},arrow_open_head:{type:"openArrow",fill:!1},arrow_hollow_circle:{type:"hollowCircle",fill:!1},arrow_hierarchy:{type:"hierarchy",fill:!1},aggregation:{type:"aggregation",fill:!1},extension:{type:"extension",fill:!1},composition:{type:"composition",fill:!0},dependency:{type:"dependency",fill:!0},lollipop:{type:"lollipop",fill:!1},only_one:{type:"onlyOne",fill:!1},zero_or_one:{type:"zeroOrOne",fill:!1},one_or_more:{type:"oneOrMore",fill:!1},zero_or_more:{type:"zeroOrMore",fill:!1},requirement_arrow:{type:"requirement_arrow",fill:!1},requirement_contains:{type:"requirement_contains",fill:!1}},se=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],hr=i((r,t,e,a,s,n,o=!1,c)=>{if(!e||e==="none")return;let d=ne[e],h=d&&se.includes(d.type);if(!d){E.warn(`Unknown arrow type: ${e}`);return}let m=d.type,f=`${s}_${n}-${m}${t==="start"?"Start":"End"}${o&&h?"-margin":""}`;if(c&&c.trim()!==""){let k=c.replace(/[^\dA-Za-z]/g,"_"),x=`${f}_${k}`;if(!document.getElementById(x)){let g=document.getElementById(f);if(g){let M=g.cloneNode(!0);M.id=x,M.querySelectorAll("path, circle, line").forEach($=>{$.setAttribute("stroke",c),d.fill&&$.setAttribute("fill",c)}),g.parentNode?.appendChild(M)}}r.attr(`marker-${t}`,`url(${a}#${x})`)}else r.attr(`marker-${t}`,`url(${a}#${f})`)},"addEdgeMarker");var j=1e-6,oe=i(r=>r&&Number.isFinite(r.x)&&Number.isFinite(r.y),"isFinitePoint"),kr=i((r,t)=>Math.abs(r.x-t.x)<=j&&Math.abs(r.y-t.y)<=j,"samePoint"),R=i((r,t)=>{(!r.length||!kr(r.at(-1),t))&&r.push(t)},"appendDistinctPoint"),yr=i((r,t,e)=>{if(!r?.intersect)return;let a=Math.abs(t.x-e.x)<=j,s=Math.abs(t.y-e.y)<=j;if(!a&&!s)return;let n=Math.sign(a?t.y-e.y:t.x-e.x);if(!n)return;let o=a?r.height:r.width,c=Math.abs(a?t.y-e.y:t.x-e.x),d=Number.isFinite(r.width)&&r.width>0&&Number.isFinite(r.height)&&r.height>0&&Number.isFinite(o)&&Number.isFinite(c),h=a?{x:t.x,y:t.y+n*(o+c+1)}:{x:t.x+n*(o+c+1),y:t.y},m=r.intersect(d?zt(e,h):e);if(!(!oe(m)||Number.isFinite(r.x)&&Number.isFinite(r.y)&&kr(m,{x:r.x,y:r.y})||a&&Math.abs(m.x-t.x)>j||s&&Math.abs(m.y-t.y)>j||(a?(m.y-t.y)*n:(m.x-t.x)*n)<=j))return{outline:m,elbow:a?{x:m.x,y:e.y}:{x:e.x,y:m.y}}},"outlineEndpoint"),gr=i((r,t,e)=>{if(!Array.isArray(r)||r.length<2)return r;let a=r[0],s=r[1],n=r[r.length-2],o=r[r.length-1],c=yr(t,a,s),d=yr(e,o,n);if(!c&&!d)return r;let h=[];if(r.length===2){let m=c?.outline??a,u=d?.outline??o,l=Math.abs(a.x-o.x)<=j,f=Math.abs(a.y-o.y)<=j;if(!l&&!f)return r;if(R(h,m),l){let k=(m.y+u.y)/2;R(h,{x:m.x,y:k}),R(h,{x:u.x,y:k})}else{let k=(m.x+u.x)/2;R(h,{x:k,y:m.y}),R(h,{x:k,y:u.y})}return R(h,u),h}c?(R(h,c.outline),R(h,c.elbow)):R(h,a);for(let m of r.slice(1,-1))R(h,m);return d?(R(h,d.elbow),R(h,d.outline)):R(h,o),h},"clipOrthogonalEndpointsToNodeOutlines");function Tt(r){return Array.isArray(r)&&r.length>=2&&r.every(t=>t!==null&&typeof t=="object"&&(t.axis==="v"||t.axis==="h"))}i(Tt,"isAxisTaggedRoute");function xr(r,t){return Math.max(.25,Math.min(.5,4*Math.abs(t)/(Math.abs(r)||1)))}i(xr,"ease");var ie=6,ce=12,le=5,yt=.62;function wr(r){return r==="linear"||r==="step"||r==="stepBefore"||r==="stepAfter"||r==="rounded"?r:"curved"}i(wr,"curveKind");function Ut(r){return r?T[r]??0:0}i(Ut,"markerTrim");function U(r){if(!Number.isFinite(r))throw new RangeError(`Cannot write the number ${r} into SVG`);let t=Math.round(r*100)/100;return t===0?"0":String(t)}i(U,"num");var At=class{constructor(){this.d=""}static{i(this,"PathBuilder")}moveTo(t,e){return this.d+="M"+U(t)+","+U(e),this}lineTo(t,e){return this.d+="L"+U(t)+","+U(e),this}curveTo(t,e,a,s,n,o){return this.d+="C"+U(t)+","+U(e)+" "+U(a)+","+U(s)+" "+U(n)+","+U(o),this}quadTo(t,e,a,s){return this.d+="Q"+U(t)+","+U(e)+" "+U(a)+","+U(s),this}arcTo(t,e,a,s,n,o,c){return this.d+="A"+U(t)+","+U(e)+" "+U(a)+" "+(s?"1":"0")+","+(n?"1":"0")+" "+U(o)+","+U(c),this}done(){return this.d}};function br(r,t,e){return r==="stepBefore"?t:r==="stepAfter"?e:(t+e)/2}i(br,"stepCorner");function Mr(r,t,e,a){let s=t==="linear",n=t==="step"||t==="stepBefore"||t==="stepAfter",o=n||t==="rounded",c=[],d=[],h=[],m=i((p,b,y,w)=>Math.abs(p-y)<.01&&Math.abs(b-w)<.01,"near");for(let p of r){let b=p.axis==="h"?1:0,y=c.length-1;if(n&&y>=0&&Math.abs(p.x-c[y])>=.01&&Math.abs(p.y-d[y])>=.01){let w=c[y],P=d[y],v=br(t,P,p.y),H=br(t,w,p.x),W=b===0?[w,v,p.x,v]:[H,P,H,p.y];for(let B=0;B<4;B+=2)m(W[B],W[B+1],w,P)||m(W[B],W[B+1],p.x,p.y)||(c.push(W[B]),d.push(W[B+1]),h.push(b))}c.push(p.x),d.push(p.y),h.push(b)}let u=c.length-1,l=i(p=>c[p],"X"),f=i(p=>d[p],"Y"),k=i(p=>Math.abs(l(p)-l(p-1))<.01||Math.abs(f(p)-f(p-1))<.01,"aligned"),x=i(p=>s||t==="rounded"||k(p),"straight"),g=i((p,b,y)=>{if(!x(Math.max(p,b)))return y===0?[0,Math.sign(f(b)-f(p))||1]:[Math.sign(l(b)-l(p))||1,0];let w=l(b)-l(p),P=f(b)-f(p),v=Math.hypot(w,P)||1;return[w/v,P/v]},"unit"),[M,O]=g(0,1,h[1]??0),[$,D]=g(u-1,u,h[u]??0),_=l(0),V=f(0),et=l(u),at=f(u);c[0]=_+M*e,d[0]=V+O*e,c[u]=et-$*a,d[u]=at-D*a;let A=i(p=>Math.abs(l(p)-l(p-1))+Math.abs(f(p)-f(p-1)),"length"),S=i(p=>!s&&p>0&&p<u&&k(p)&&k(p+1)&&A(p)>=.01&&A(p+1)>=.01&&Math.abs(l(p)-l(p-1))<.01!=Math.abs(l(p+1)-l(p))<.01,"turns"),nt=i((p,b,y)=>Math.abs(l(p)-l(p-1))*Math.abs(b)+Math.abs(f(p)-f(p-1))*Math.abs(y),"along"),F=i(p=>Math.min(ie,p/4),"lead"),rt=a>0&&(!x(u)||S(u-1))?F(nt(u,$,D)):0,I=e>0&&(!x(1)||S(1))?F(nt(1,M,O)):0;rt>=1&&(c.splice(u,0,l(u)-$*rt),d.splice(u,0,f(u)-D*rt),h.splice(u,0,h[u]),u++),I>=1&&(c.splice(1,0,l(0)+M*I),d.splice(1,0,f(0)+O*I),h.splice(1,0,h[1]),u++);let Q=new At().moveTo(l(0),f(0)),X=l(0),N=f(0),lt=i((p,b)=>{m(p,b,X,N)||(Q.lineTo(p,b),X=p,N=b)},"lineTo");for(let p=1;p<=u;p++){let b=l(p),y=f(p);if(!x(p)){let G=h[p]===0,C=G?y-N:b-X,bt=Math.abs(C)*xr(G?b-X:y-N,C),dt=G?0:Math.sign(C)*bt,pt=G?Math.sign(C)*bt:0;Q.curveTo(X+dt,N+pt,b-dt,y-pt,b,y),X=b,N=y;continue}if(!S(p)){if(p<u&&k(p)&&k(p+1)&&(b-l(p-1))*(l(p+1)-b)+(y-f(p-1))*(f(p+1)-y)>0)continue;lt(b,y);continue}let w=S(p-1)?A(p)/2:A(p),P=S(p+1)?A(p+1)/2:A(p+1);o&&(w=P=Math.min(t==="rounded"?le:ce,w,P));let[v,H]=g(p-1,p,h[p]),[W,B]=g(p,p+1,h[p+1]);lt(b-v*w,y-H*w),X=b+W*P,N=y+B*P,t==="rounded"?Q.arcTo(w,w,0,!1,v*B-H*W>0,X,N):o?Q.quadTo(b,y,X,N):Q.curveTo(b-v*w*(1-yt),y-H*w*(1-yt),b+W*P*(1-yt),y+B*P*(1-yt),X,N)}return{d:Q.done(),sx:_,sy:V,sdx:-M,sdy:-O,ex:et,ey:at,edx:$,edy:D}}i(Mr,"routePath");var de=i(r=>typeof r=="string"?r:Z()?.flowchart?.curve,"resolveEdgeCurveType"),xt=new Map,Y=new Map,za=i(()=>{xt.clear(),Y.clear()},"clear"),qa=i(r=>!!(r.label||r.startLabelLeft||r.startLabelRight||r.endLabelLeft||r.endLabelRight),"hasEdgeLabel"),ct=i(r=>r?typeof r=="string"?r:r.reduce((t,e)=>t+";"+e,""):"","getLabelStyles"),Va=i(async(r,t)=>{let e=Z(),a=wt(e),{labelStyles:s}=Vt(t);t.labelStyle=s;let n=r.insert("g").attr("class","edgeLabel"),o=n.insert("g").attr("class","label").attr("data-id",t.id),c=t.labelType==="markdown",h=await It(r,t.label,{style:ct(t.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1,markdown:c,width:c?void 0:void 0},e);o.node().appendChild(h),E.info("abc82",t,t.labelType);let m,u;if(a){let f=h.children[0],k=z(h);m=await St.measure(()=>f.getBoundingClientRect()),u=m,k.attr("width",m.width),k.attr("height",m.height)}else{let f=z(h).select("text").node();await St.measure(()=>{m=h.getBBox(),f&&typeof f.getBBox=="function"?u=f.getBBox():u=m})}o.attr("transform",st(u,a)),xt.set(t.id,n),t.width=m.width,t.height=m.height;let l;if(t.startLabelLeft){let f=r.insert("g").attr("class","edgeTerminals"),k=f.insert("g").attr("class","inner"),x=await it(k,t.startLabelLeft,ct(t.labelStyle)||"",!1,!1);l=x;let g=x.getBBox();if(a){let M=x.children[0],O=z(x);g=M.getBoundingClientRect(),O.attr("width",g.width),O.attr("height",g.height)}k.attr("transform",st(g,a)),Y.get(t.id)||Y.set(t.id,{}),Y.get(t.id).startLeft=f,gt(l,t.startLabelLeft,g),kt(t,"startLeft",g)}if(t.startLabelRight){let f=r.insert("g").attr("class","edgeTerminals"),k=f.insert("g").attr("class","inner"),x=await it(k,t.startLabelRight,ct(t.labelStyle)||"",!1,!1);l=x;let g=x.getBBox();if(a){let M=x.children[0],O=z(x);g=M.getBoundingClientRect(),O.attr("width",g.width),O.attr("height",g.height)}k.attr("transform",st(g,a)),Y.get(t.id)||Y.set(t.id,{}),Y.get(t.id).startRight=f,gt(l,t.startLabelRight,g),kt(t,"startRight",g)}if(t.endLabelLeft){let f=r.insert("g").attr("class","edgeTerminals"),k=f.insert("g").attr("class","inner"),x=await it(k,t.endLabelLeft,ct(t.labelStyle)||"",!1,!1);l=x;let g=x.getBBox();if(a){let M=x.children[0],O=z(x);g=M.getBoundingClientRect(),O.attr("width",g.width),O.attr("height",g.height)}k.attr("transform",st(g,a)),Y.get(t.id)||Y.set(t.id,{}),Y.get(t.id).endLeft=f,gt(l,t.endLabelLeft,g),kt(t,"endLeft",g)}if(t.endLabelRight){let f=r.insert("g").attr("class","edgeTerminals"),k=f.insert("g").attr("class","inner"),x=await it(k,t.endLabelRight,ct(t.labelStyle)||"",!1,!1);l=x;let g=x.getBBox();if(a){let M=x.children[0],O=z(x);g=M.getBoundingClientRect(),O.attr("width",g.width),O.attr("height",g.height)}k.attr("transform",st(g,a)),Y.get(t.id)||Y.set(t.id,{}),Y.get(t.id).endRight=f,gt(l,t.endLabelRight,g),kt(t,"endRight",g)}return h},"insertEdgeLabel");function kt(r,t,e){r.terminalLabelSizes??={},r.terminalLabelSizes[t]={width:e.width,height:e.height}}i(kt,"recordTerminalLabelSize");function gt(r,t,e){wt(Z())&&r&&(r.style.width=Math.max(t.length*9,e.width)+"px",r.style.height=e.height+"px")}i(gt,"setTerminalWidth");var pe=i((r,t)=>{let e=r.x,a=r.y;if(t?.updatedPath){let s=q.calcLabelPosition(t.updatedPath);if(t.originalPath){let n=q.calcLabelPosition(t.originalPath);e=r.x+(s.x-n.x),a=r.y+(s.y-n.y)}else e=s.x,a=s.y}return{x:e,y:a}},"resolveEdgeLabelPosition"),Qa=i((r,t)=>{E.debug("Moving label abc88 ",r.id,r.label,xt.get(r.id),t);let e=Z(),{subGraphTitleTotalMargin:a}=Zt(e);if(r.label){let n=xt.get(r.id),{x:o,y:c}=pe(r,t);E.debug("Moving label "+r.label+" from (",r.x,",",r.y,") to (",o,",",c,") abc88"),n.attr("transform",`translate(${o}, ${c+a/2})`)}let s=t.updatedPath?t.updatedPath:t.originalPath;if(r.startLabelLeft){let n=Y.get(r.id).startLeft,o=r.x,c=r.y;if(s){let d=q.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",s);o=d.x,c=d.y}n.attr("transform",`translate(${o}, ${c})`)}if(r.startLabelRight){let n=Y.get(r.id).startRight,o=r.x,c=r.y;if(s){let d=q.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",s);o=d.x,c=d.y}n.attr("transform",`translate(${o}, ${c})`)}if(r.endLabelLeft){let n=Y.get(r.id).endLeft,o=r.x,c=r.y;if(s){let d=q.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",s);o=d.x,c=d.y}n.attr("transform",`translate(${o}, ${c})`)}if(r.endLabelRight){let n=Y.get(r.id).endRight,o=r.x,c=r.y;if(s){let d=q.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",s);o=d.x,c=d.y}n.attr("transform",`translate(${o}, ${c})`)}},"positionEdgeLabel"),ot=.5,K=i((r,t)=>Math.abs(r.x-t.x)<ot,"sharesColumn"),J=i((r,t)=>Math.abs(r.y-t.y)<ot,"sharesRow"),Or=i((r,t)=>K(r,t)&&J(r,t),"coincides");function fe(r,t,e){return K(r,t)&&!J(r,t)?K(e,t):J(r,t)&&!K(r,t)?J(e,t):K(e,t)||J(e,t)}i(fe,"keepsArrivalAxis");function he(r,t,e){return Or(r,t)?{heading:t,from:e}:{heading:r,from:t}}i(he,"arrivalSegment");function ue({heading:r,from:t},e,a){return(r.x-t.x)*(a.x-e.x)+(r.y-t.y)*(a.y-e.y)<0}i(ue,"runsAgainstHeading");function me({heading:r,from:t},e,a){return J(r,t)&&!K(r,t)?{x:a.x,y:e.y}:K(r,t)&&!J(r,t)?{x:e.x,y:a.y}:a}i(me,"snapToArrivalAxis");function ye(r,t,e,a){if((K(r,t)||J(r,t))&&!fe(r,t,a))return r;let n=he(r,t,e);return ue(n,t,a)?t:me(n,t,a)}i(ye,"dockFinalPoint");function ke(r){let t=Object.hasOwn(T,r)?T[r]:0;return Number.isFinite(t)?t:0}i(ke,"markerPullBack");function ge({originalLast:r,lastInner:t,newLast:e,minLength:a}){let s=!Or(r,t),n=Math.hypot(e.x-t.x,e.y-t.y);return n>=Math.max(ot,a)?e:s&&n>=ot?r:void 0}i(ge,"finalDockPoint");var xe=i((r,t)=>{if(!r?.isLabelEdge||!r?.id?.endsWith("-to-label")||!Array.isArray(t)||t.length!==2)return t;let[e,a]=t,s=Math.abs(a.x-e.x),n=Math.abs(a.y-e.y);return s<.001||n<.001?t:n>=s?[e,{x:e.x,y:a.y},a]:[e,{x:a.x,y:e.y},a]},"orthogonalizeToLabelClippedPoints"),be=i((r,t)=>{let e=r.x,a=r.y,s=Math.abs(t.x-e),n=Math.abs(t.y-a),o=r.width/2,c=r.height/2;return s>=o||n>=c},"outsideNode"),we=i((r,t,e)=>{E.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(e)}
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let a=r.x,s=r.y,n=Math.abs(a-e.x),o=r.width/2,c=e.x<t.x?o-n:o+n,d=r.height/2,h=Math.abs(t.y-e.y),m=Math.abs(t.x-e.x);if(Math.abs(s-t.y)*o>Math.abs(a-t.x)*d){let u=e.y<t.y?t.y-d-s:s-d-t.y;c=m*u/h;let l={x:e.x<t.x?e.x+c:e.x-m+c,y:e.y<t.y?e.y+h-u:e.y-h+u};return c===0&&(l.x=t.x,l.y=t.y),m===0&&(l.x=t.x),h===0&&(l.y=t.y),E.debug(`abc89 top/bottom calc, Q ${h}, q ${u}, R ${m}, r ${c}`,l),l}else{e.x<t.x?c=t.x-o-a:c=a-o-t.x;let u=h*c/m,l=e.x<t.x?e.x+m-c:e.x-m+c,f=e.y<t.y?e.y+u:e.y-u;return E.debug(`sides calc abc89, Q ${h}, q ${u}, R ${m}, r ${c}`,{_x:l,_y:f}),c===0&&(l=t.x,f=t.y),m===0&&(l=t.x),h===0&&(f=t.y),{x:l,y:f}}},"intersection"),Sr=i((r,t)=>{E.warn("abc88 cutPathAtIntersect",r,t);let e=[],a=r[0],s=!1;return r.forEach(n=>{if(E.info("abc88 checking point",n,t),!be(t,n)&&!s){let o=we(t,a,n);E.debug("abc88 inside",n,a,o),E.debug("abc88 intersection",o,t);let c=!1;e.forEach(d=>{c=c||d.x===o.x&&d.y===o.y}),e.some(d=>d.x===o.x&&d.y===o.y)?E.warn("abc88 no intersect",o,e):e.push(o),s=!0}else E.warn("abc88 outside",n,a),a=n,s||e.push(n)}),E.debug("returning points",e),e},"cutPathAtIntersect");function Me(r){let t=[],e=[];for(let a=1;a<r.length-1;a++){let s=r[a-1],n=r[a],o=r[a+1];(s.x===n.x&&n.y===o.y&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-s.y)>5||s.y===n.y&&n.x===o.x&&Math.abs(n.x-s.x)>5&&Math.abs(n.y-o.y)>5)&&(t.push(n),e.push(a))}return{cornerPoints:t,cornerPointPositions:e}}i(Me,"extractCornerPoints");var Er=i(function(r,t,e){let a=t.x-r.x,s=t.y-r.y,n=Math.sqrt(a*a+s*s),o=e/n;return{x:t.x-o*a,y:t.y-o*s}},"findAdjacentPoint"),Se=i(function(r){let{cornerPointPositions:t}=Me(r),e=[];for(let a=0;a<r.length;a++)if(t.includes(a)){let s=r[a-1],n=r[a+1],o=r[a],c=Er(s,o,5),d=Er(n,o,5),h=d.x-c.x,m=d.y-c.y;e.push(c);let u=Math.sqrt(2)*2,l={x:o.x,y:o.y};if(Math.abs(n.x-s.x)>10&&Math.abs(n.y-s.y)>=10){E.debug("Corner point fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));let f=5;o.x===c.x?l={x:h<0?c.x-f+u:c.x+f-u,y:m<0?c.y-u:c.y+u}:l={x:h<0?c.x-u:c.x+u,y:m<0?c.y-f+u:c.y+f-u}}else E.debug("Corner point skipping fixing",Math.abs(n.x-s.x),Math.abs(n.y-s.y));e.push(l,d)}else e.push(r[a]);return e},"fixCorners"),Ee=i((r,t,e)=>{let a=r-t-e,s=2,n=2,o=s+n,c=Math.floor(a/o),d=Number.isFinite(c)?Math.max(0,c):0,h=Array(d).fill(`${s} ${n}`).join(" ");return`0 ${t} ${h} ${e}`},"generateDashArray"),Za=i(function(r,t,e,a,s,n,o,c=!1,d=void 0){if(!o)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:h,layout:m}=Z(),u=d??m,l=t.points,f=!1,k=s;var x=n;let g=_t(t),M=Tt(l);if(!M&&t.portClipping==="outline-orthogonal"&&!c)l=gr(l,k,x);else if(!M&&u==="swimlane"){if(!c&&x.intersect&&k.intersect&&Array.isArray(l)&&l.length>=2)if(l.length===2){let[y,w]=l;l=K(y,w)||J(y,w)?[k.intersect(y),x.intersect(w)]:[k.intersect(w),x.intersect(y)]}else{let y=l.slice(1,-1),w=y[0],P=y[y.length-1],v=k.intersect(w),H=l[l.length-1],W=x.intersect(P),B=y.at(-2)??l[0],G=ye(H,P,B,W),C=ge({originalLast:H,lastInner:P,newLast:G,minLength:ke(t.arrowTypeEnd)}),dt=Math.abs(v.x-w.x)<ot&&Math.abs(v.y-w.y)<ot?[]:[v],pt=C?[C]:[];l=[...dt,...y,...pt]}l=xe(t,l)}else!M&&x.intersect&&k.intersect&&!c&&(l=l.slice(1,t.points.length-1),l.unshift(k.intersect(l[0])),l.push(x.intersect(l[l.length-1])));let O=btoa(JSON.stringify(l));t.toCluster&&!M&&(E.info("to cluster abc88",e.get(t.toCluster)),l=Sr(t.points,e.get(t.toCluster).node),f=!0),t.fromCluster&&!M&&(E.debug("from cluster abc88",e.get(t.fromCluster),JSON.stringify(l,null,2)),l=Sr(l.reverse(),e.get(t.fromCluster).node).reverse(),f=!0);let $=l.filter(y=>!Number.isNaN(y.y)),D=de(t.curve);D!=="rounded"&&!M&&!t.skipCornerFix&&($=Se($));let _=ft;switch(D){case"linear":_=ft;break;case"basis":_=Mt;break;case"cardinal":_=Wt;break;case"bumpX":_=Bt;break;case"bumpY":_=Yt;break;case"catmullRom":_=Xt;break;case"monotoneX":_=Ht;break;case"monotoneY":_=Ct;break;case"natural":_=Rt;break;case"step":_=Nt;break;case"stepAfter":_=Gt;break;case"stepBefore":_=Dt;break;case"rounded":_=ft;break;default:_=Mt}let{x:V,y:et}=jt(t),at=vt().x(V).y(et).curve(_),A;switch(t.thickness){case"normal":A="edge-thickness-normal";break;case"thick":A="edge-thickness-thick";break;case"invisible":A="edge-thickness-invisible";break;default:A="edge-thickness-normal"}switch(t.pattern){case"solid":A+=" edge-pattern-solid";break;case"dotted":A+=" edge-pattern-dotted";break;case"dashed":A+=" edge-pattern-dashed";break;default:A+=" edge-pattern-solid"}let S,nt=M?Mr($,wr(D),Ut(t.arrowTypeStart),Ut(t.arrowTypeEnd)).d:D==="rounded"?Le(Oe($,t),fr(t.cornerRadius)):at($),F=Array.isArray(t.style)?t.style:[t.style],rt=F.find(y=>y?.startsWith("stroke:")),I="";t.animate&&(I="edge-animation-fast"),t.animation&&(I="edge-animation-"+t.animation);let Q=!1;if(t.look==="handDrawn"){let y=Qt.svg(r);Object.assign([],$);let w=y.path(nt,{roughness:.3,seed:h});A+=" transition",S=z(w).select("path").attr("id",`${o}-${t.id}`).attr("class"," "+A+(t.classes?" "+t.classes:"")+(I?" "+I:"")).attr("style",F?F.reduce((v,H)=>v+";"+H,""):"");let P=S.attr("d");S.attr("d",P),r.node().appendChild(S.node())}else{let y=g.join(";"),w=F?F.reduce((G,C)=>G+C+";",""):"",P=(y?y+";"+w+";":w)+";"+(F?F.reduce((G,C)=>G+";"+C,""):"");S=r.append("path").attr("d",nt).attr("id",`${o}-${t.id}`).attr("class"," "+A+(t.classes?" "+t.classes:"")+(I?" "+I:"")).attr("style",P),rt=P.match(/stroke:([^;]+)/)?.[1],Q=Pt(t);let v=S.node(),H=typeof v.getTotalLength=="function"?v.getTotalLength():0,W=Et[t.arrowTypeStart]||0,B=Et[t.arrowTypeEnd]||0;if(t.look==="neo"&&!Q){let C=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?Ee(H,W,B):`0 ${W} ${H-W-B} ${B}`}; stroke-dashoffset: 0;`;S.attr("style",C+S.attr("style"))}}if(S.attr("data-edge",!0),S.attr("data-et","edge"),S.attr("data-id",t.id),S.attr("data-points",O),S.attr("data-look",Ft(t.look)),t.step!==void 0){let{themeVariables:y}=Z(),w=rt??y?.lineColor;pr(r,t,nt,o,{points:$,pathNode:S.node(),color:w,textColors:[y?.background,y?.primaryTextColor]})}t.showPoints&&$.forEach(y=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",y.x).attr("cy",y.y)});let X="";(Z().flowchart.arrowMarkerAbsolute||Z().state.arrowMarkerAbsolute)&&(X=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,X=X.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),E.info("arrowTypeStart",t.arrowTypeStart),E.info("arrowTypeEnd",t.arrowTypeEnd);let N=ur(t);mr(S,t,X,o,a,N,rt);let lt=Math.floor(l.length/2),p=l[lt];q.isLabelCoordinateInPath(p,S.attr("d"))||(f=!0);let b={};return f&&(b.updatedPath=l),b.originalPath=t.points,b},"insertEdge");function Le(r,t){if(r.length<2)return"";let e="",a=r.length,s=1e-5;for(let n=0;n<a;n++){let o=r[n],c=r[n-1],d=r[n+1];if(n===0)e+=`M${o.x},${o.y}`;else if(n===a-1)e+=`L${o.x},${o.y}`;else{let h=o.x-c.x,m=o.y-c.y,u=d.x-o.x,l=d.y-o.y,f=Math.hypot(h,m),k=Math.hypot(u,l);if(f<s||k<s){e+=`L${o.x},${o.y}`;continue}let x=h/f,g=m/f,M=u/k,O=l/k,$=x*M+g*O,D=Math.max(-1,Math.min(1,$)),_=Math.acos(D);if(_<s||Math.abs(Math.PI-_)<s){e+=`L${o.x},${o.y}`;continue}let V=Math.min(t/Math.sin(_/2),f/2,k/2),et=o.x-x*V,at=o.y-g*V,A=o.x+M*V,S=o.y+O*V;e+=`L${et},${at}`,e+=`Q${o.x},${o.y} ${A},${S}`}}return e}i(Le,"generateRoundedPath");function Lr(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let e=t.x-r.x,a=t.y-r.y;return{angle:Math.atan2(a,e),deltaX:e,deltaY:a}}i(Lr,"calculateDeltaAndAngle");function Oe(r,t){let e=r.map(s=>({...s}));if(r.length>=2&&T[t.arrowTypeStart]){let s=T[t.arrowTypeStart],n=r[0],o=r[1],{angle:c}=Lr(n,o),d=s*Math.cos(c),h=s*Math.sin(c);e[0].x=n.x+d,e[0].y=n.y+h}let a=r.length;if(a>=2&&T[t.arrowTypeEnd]){let s=T[t.arrowTypeEnd],n=r[a-1],o=r[a-2],{angle:c}=Lr(o,n),d=s*Math.cos(c),h=s*Math.sin(c);e[a-1].x=n.x-d,e[a-1].y=n.y-h}return e}i(Oe,"applyMarkerOffsetsToPoints");var _e=i((r,t,e,a)=>{t.forEach(s=>{Je[s](r,e,a)})},"insertMarkers"),Pe=i((r,t,e)=>{E.trace("Making markers for ",e),r.append("defs").append("marker").attr("id",e+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 1,1 V 13 L18,7 Z"),r.append("marker").attr("id",e+"_"+t+"-extensionStart-margin").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,7 18,13 18,1").style("stroke-width",2).style("stroke-dasharray","0"),r.append("defs").append("marker").attr("id",e+"_"+t+"-extensionEnd-margin").attr("class","marker extension "+t).attr("refX",9).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("viewBox","0 0 20 14").append("polygon").attr("points","10,1 10,13 18,7").style("stroke-width",2).style("stroke-dasharray","0")},"extension"),Te=i((r,t,e)=>{r.append("defs").append("marker").attr("id",e+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-compositionStart-margin").attr("class","marker composition "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("viewBox","0 0 15 15").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-compositionEnd-margin").attr("class","marker composition "+t).attr("refX",3.5).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),Ae=i((r,t,e)=>{r.append("defs").append("marker").attr("id",e+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-aggregationStart-margin").attr("class","marker aggregation "+t).attr("refX",15).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-aggregationEnd-margin").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",2).attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),Ue=i((r,t,e)=>{r.append("defs").append("marker").attr("id",e+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-dependencyStart-margin").attr("class","marker dependency "+t).attr("refX",4).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-dependencyEnd-margin").attr("class","marker dependency "+t).attr("refX",16).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").style("stroke-width",0).attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),$e=i((r,t,e)=>{r.append("defs").append("marker").attr("id",e+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",e+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",e+"_"+t+"-lollipopStart-margin").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2),r.append("defs").append("marker").attr("id",e+"_"+t+"-lollipopEnd-margin").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6).attr("stroke-width",2)},"lollipop"),ve=i((r,t,e)=>{r.append("marker").attr("id",e+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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",e+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).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"),r.append("marker").attr("id",e+"_"+t+"-pointEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",11.5).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10.5).attr("markerHeight",14).attr("orient","auto").append("path").attr("d","M 0 0 L 11.5 7 L 0 14 z").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",e+"_"+t+"-pointStart-margin").attr("class","marker "+t).attr("viewBox","0 0 11.5 14").attr("refX",1).attr("refY",7).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11.5).attr("markerHeight",14).attr("orient","auto").append("polygon").attr("points","0,7 11.5,14 11.5,0").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"point"),Be=i((r,t,e)=>{r.append("marker").attr("id",e+"_"+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",e+"_"+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"),r.append("marker").attr("id",e+"_"+t+"-circleEnd-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refY",5).attr("refX",12.25).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0"),r.append("marker").attr("id",e+"_"+t+"-circleStart-margin").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",14).attr("markerHeight",14).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",0).style("stroke-dasharray","1,0")},"circle"),Ye=i((r,t,e)=>{r.append("marker").attr("id",e+"_"+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",e+"_"+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"),r.append("marker").attr("id",e+"_"+t+"-crossEnd-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",17.7).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5),r.append("marker").attr("id",e+"_"+t+"-crossStart-margin").attr("class","marker cross "+t).attr("viewBox","0 0 15 15").attr("refX",-3.5).attr("refY",7.5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1,1 L 14,14 M 1,14 L 14,1").attr("class","arrowMarkerPath").style("stroke-width",2.5).style("stroke-dasharray","1,0")},"cross"),We=i((r,t,e)=>{r.append("defs").append("marker").attr("id",e+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),Xe=i((r,t,e)=>{let a=tt(),{themeVariables:s}=a,{transitionColor:n}=s;r.append("defs").append("marker").attr("id",e+"_"+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 L11,14 L13,7 L11,0 Z"),r.append("defs").append("marker").attr("id",e+"_"+t+"-barbEnd-margin").attr("refX",17).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L11,14 L13,7 L11,0 Z").attr("fill",`${n}`)},"barbNeo"),He=i((r,t,e)=>{r.append("defs").append("marker").attr("id",e+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M9,0 L9,18 M15,0 L15,18"),r.append("defs").append("marker").attr("id",e+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("d","M3,0 L3,18 M9,0 L9,18")},"only_one"),Ce=i((r,t,e)=>{let a=r.append("defs").append("marker").attr("id",e+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),a.append("path").attr("d","M9,0 L9,18");let s=r.append("defs").append("marker").attr("id",e+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),s.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Re=i((r,t,e)=>{r.append("defs").append("marker").attr("id",e+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),r.append("defs").append("marker").attr("id",e+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18")},"one_or_more"),Ne=i((r,t,e)=>{let a=r.append("defs").append("marker").attr("id",e+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");a.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),a.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let s=r.append("defs").append("marker").attr("id",e+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),s.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),De=i((r,t,e)=>{let a=tt(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",e+"_"+t+"-onlyOneStart").attr("class","marker onlyOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M9,0 L9,18 M15,0 L15,18").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",e+"_"+t+"-onlyOneEnd").attr("class","marker onlyOne "+t).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M3,0 L3,18 M9,0 L9,18").attr("stroke-width",`${n}`)},"only_one_neo"),Ge=i((r,t,e)=>{let a=tt(),{themeVariables:s}=a,{strokeWidth:n,mainBkg:o}=s,c=r.append("defs").append("marker").attr("id",e+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto").attr("markerUnits","userSpaceOnUse");c.append("circle").attr("fill",o??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),c.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let d=r.append("defs").append("marker").attr("id",e+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("markerUnits","userSpaceOnUse").attr("orient","auto");d.append("circle").attr("fill",o??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),d.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),Fe=i((r,t,e)=>{let a=tt(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",e+"_"+t+"-oneOrMoreStart").attr("class","marker oneOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("path").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width",`${n}`),r.append("defs").append("marker").attr("id",e+"_"+t+"-oneOrMoreEnd").attr("class","marker oneOrMore "+t).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width",`${n}`)},"one_or_more_neo"),Ie=i((r,t,e)=>{let a=tt(),{themeVariables:s}=a,{strokeWidth:n,mainBkg:o}=s,c=r.append("defs").append("marker").attr("id",e+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("markerUnits","userSpaceOnUse").attr("orient","auto");c.append("circle").attr("fill",o??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),c.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let d=r.append("defs").append("marker").attr("id",e+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto").attr("markerUnits","userSpaceOnUse");d.append("circle").attr("fill",o??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),d.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),ze=i((r,t,e)=>{r.append("defs").append("marker").attr("id",e+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("path").attr("d",`M0,0
L20,10
M20,10
L0,20`)},"requirement_arrow"),qe=i((r,t,e)=>{let a=tt(),{themeVariables:s}=a,{strokeWidth:n}=s;r.append("defs").append("marker").attr("id",e+"_"+t+"-requirement_arrowEnd").attr("refX",20).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").attr("stroke-width",`${n}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
L20,10
M20,10
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),Ve=i((r,t,e)=>{let a=r.append("defs").append("marker").attr("id",e+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");a.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),a.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),a.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),Qe=i((r,t,e)=>{let a=tt(),{themeVariables:s}=a,{strokeWidth:n}=s,o=r.append("defs").append("marker").attr("id",e+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");o.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),o.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),o.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),o.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),Ze=i((r,t,e)=>{r.append("marker").attr("id",e+"_"+t+"-hierarchyEnd").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 0 0 L 6 5 L 0 10 M 4 0 L 10 5 L 4 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",e+"_"+t+"-hierarchyStart").attr("class","marker hierarchy "+t).attr("viewBox","0 0 12 10").attr("refX",2).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",10).attr("orient","auto").append("path").attr("d","M 12 0 L 6 5 L 12 10 M 8 0 L 2 5 L 8 10").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0").style("fill","none")},"hierarchy"),je=i((r,t,e)=>{r.append("marker").attr("id",e+"_"+t+"-openArrowEnd").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",11).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 1 1 L 11 6 L 1 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",e+"_"+t+"-openArrowStart").attr("class","marker openArrow "+t).attr("viewBox","0 0 12 12").attr("refX",1).attr("refY",6).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 11 1 L 1 6 L 11 11").attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-linecap","round").style("stroke-linejoin","round").style("stroke-dasharray","1,0").style("fill","none")},"openArrow"),Ke=i((r,t,e)=>{r.append("marker").attr("id",e+"_"+t+"-hollowCircleStart").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none"),r.append("marker").attr("id",e+"_"+t+"-hollowCircleEnd").attr("class","marker hollowCircle "+t).attr("viewBox","0 0 10 10").attr("refX",10).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",10).attr("markerHeight",10).attr("orient","auto").append("circle").attr("cx",5).attr("cy",5).attr("r",3.6).attr("class","arrowMarkerPath").style("stroke-width",1.4).style("stroke-dasharray","1,0").style("fill","none")},"hollowCircle"),Je={extension:Pe,composition:Te,aggregation:Ae,dependency:Ue,lollipop:$e,point:ve,circle:Be,cross:Ye,barb:We,barbNeo:Xe,hierarchy:Ze,only_one:He,zero_or_one:Ce,one_or_more:Re,zero_or_more:Ne,only_one_neo:De,zero_or_one_neo:Ge,one_or_more_neo:Fe,zero_or_more_neo:Ie,requirement_arrow:ze,requirement_contains:Ve,requirement_arrow_neo:qe,requirement_contains_neo:Qe,openArrow:je,hollowCircle:Ke},rn=_e;export{Kt as a,ut as b,T as c,Et as d,Cr as e,da as f,fr as g,ur as h,Tt as i,xr as j,xt as k,Y as l,za as m,qa as n,Va as o,pe as p,Qa as q,Za as r,rn as s};