code-server
Version:
Run VS Code on a remote server.
11 lines (10 loc) • 33.6 kB
JavaScript
import{c as B}from"./chunk-MI7L3JDQ.js";import{a as bt}from"./chunk-EWILYK3H.js";import{c as yt,d as gt}from"./chunk-IR42YTGA.js";import{a as X,b as H,c as rt,d as kt}from"./chunk-MX6DGWIA.js";import{a as ut}from"./chunk-JDBNYPCC.js";import{f as xt}from"./chunk-623C5XAY.js";import{p as E,t as mt}from"./chunk-PKRYIESI.js";import{B as O,F as K,_ as $}from"./chunk-VBOJ6TJX.js";import{$ as pt,I,J as et,L as nt,M as st,N as tt,R as ot,U as it,Y as ct,Z as lt,_ as dt,aa as ht,b as d,ba as ft,d as g,j as U}from"./chunk-XDY7PRES.js";var Et=d((r,t,a,s,o,n=!1,e)=>{t.arrowTypeStart&&wt(r,"start",t.arrowTypeStart,a,s,o,n,e),t.arrowTypeEnd&&wt(r,"end",t.arrowTypeEnd,a,s,o,n,e)},"addEdgeMarkers"),Wt={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},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}},Xt=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],wt=d((r,t,a,s,o,n,e=!1,i)=>{let c=Wt[a],l=c&&Xt.includes(c.type);if(!c){g.warn(`Unknown arrow type: ${a}`);return}let k=c.type,p=`${o}_${n}-${k}${t==="start"?"Start":"End"}${e&&l?"-margin":""}`;if(i&&i.trim()!==""){let x=i.replace(/[^\dA-Za-z]/g,"_"),f=`${p}_${x}`;if(!document.getElementById(f)){let m=document.getElementById(p);if(m){let u=m.cloneNode(!0);u.id=f,u.querySelectorAll("path, circle, line").forEach(W=>{W.setAttribute("stroke",i),c.fill&&W.setAttribute("fill",i)}),m.parentNode?.appendChild(u)}}r.attr(`marker-${t}`,`url(${s}#${f})`)}else r.attr(`marker-${t}`,`url(${s}#${p})`)},"addEdgeMarker"),Yt=d(r=>typeof r=="string"?r:$()?.flowchart?.curve,"resolveEdgeCurveType"),V=new Map,M=new Map,gr=d(()=>{V.clear(),M.clear()},"clear"),T=d(r=>r?typeof r=="string"?r:r.reduce((t,a)=>t+";"+a,""):"","getLabelStyles"),xr=d(async(r,t)=>{let a=$(),s=K(a),{labelStyles:o}=gt(t);t.labelStyle=o;let n=r.insert("g").attr("class","edgeLabel"),e=n.insert("g").attr("class","label").attr("data-id",t.id),i=t.labelType==="markdown",l=await xt(r,t.label,{style:T(t.labelStyle),useHtmlLabels:s,addSvgBackground:!0,isNode:!1,markdown:i,width:i?void 0:void 0},a);e.node().appendChild(l),g.info("abc82",t,t.labelType);let k=l.getBBox(),y=k;if(s){let p=l.children[0],x=U(l);k=p.getBoundingClientRect(),y=k,x.attr("width",k.width),x.attr("height",k.height)}else{let p=U(l).select("text").node();p&&typeof p.getBBox=="function"&&(y=p.getBBox())}e.attr("transform",X(y,s)),V.set(t.id,n),t.width=k.width,t.height=k.height;let h;if(t.startLabelLeft){let p=r.insert("g").attr("class","edgeTerminals"),x=p.insert("g").attr("class","inner"),f=await B(x,t.startLabelLeft,T(t.labelStyle)||"",!1,!1);h=f;let m=f.getBBox();if(s){let u=f.children[0],w=U(f);m=u.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}x.attr("transform",X(m,s)),M.get(t.id)||M.set(t.id,{}),M.get(t.id).startLeft=p,z(h,t.startLabelLeft)}if(t.startLabelRight){let p=r.insert("g").attr("class","edgeTerminals"),x=p.insert("g").attr("class","inner"),f=await B(x,t.startLabelRight,T(t.labelStyle)||"",!1,!1);h=f;let m=f.getBBox();if(s){let u=f.children[0],w=U(f);m=u.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}x.attr("transform",X(m,s)),M.get(t.id)||M.set(t.id,{}),M.get(t.id).startRight=p,z(h,t.startLabelRight)}if(t.endLabelLeft){let p=r.insert("g").attr("class","edgeTerminals"),x=p.insert("g").attr("class","inner"),f=await B(p,t.endLabelLeft,T(t.labelStyle)||"",!1,!1);h=f;let m=f.getBBox();if(s){let u=f.children[0],w=U(f);m=u.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}x.attr("transform",X(m,s)),M.get(t.id)||M.set(t.id,{}),M.get(t.id).endLeft=p,z(h,t.endLabelLeft)}if(t.endLabelRight){let p=r.insert("g").attr("class","edgeTerminals"),x=p.insert("g").attr("class","inner"),f=await B(p,t.endLabelRight,T(t.labelStyle)||"",!1,!1);h=f;let m=f.getBBox();if(s){let u=f.children[0],w=U(f);m=u.getBoundingClientRect(),w.attr("width",m.width),w.attr("height",m.height)}x.attr("transform",X(m,s)),M.get(t.id)||M.set(t.id,{}),M.get(t.id).endRight=p,z(h,t.endLabelRight)}return l},"insertEdgeLabel");function z(r,t){K($())&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}d(z,"setTerminalWidth");var br=d((r,t)=>{g.debug("Moving label abc88 ",r.id,r.label,V.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,s=$(),{subGraphTitleTotalMargin:o}=ut(s);if(r.label){let n=V.get(r.id),e=r.x,i=r.y;if(a){let c=E.calcLabelPosition(a);g.debug("Moving label "+r.label+" from (",e,",",i,") to (",c.x,",",c.y,") abc88"),t.updatedPath&&(e=c.x,i=c.y)}n.attr("transform",`translate(${e}, ${i+o/2})`)}if(r.startLabelLeft){let n=M.get(r.id).startLeft,e=r.x,i=r.y;if(a){let c=E.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);e=c.x,i=c.y}n.attr("transform",`translate(${e}, ${i})`)}if(r.startLabelRight){let n=M.get(r.id).startRight,e=r.x,i=r.y;if(a){let c=E.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);e=c.x,i=c.y}n.attr("transform",`translate(${e}, ${i})`)}if(r.endLabelLeft){let n=M.get(r.id).endLeft,e=r.x,i=r.y;if(a){let c=E.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);e=c.x,i=c.y}n.attr("transform",`translate(${e}, ${i})`)}if(r.endLabelRight){let n=M.get(r.id).endRight,e=r.x,i=r.y;if(a){let c=E.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);e=c.x,i=c.y}n.attr("transform",`translate(${e}, ${i})`)}},"positionEdgeLabel"),Ht=d((r,t)=>{let a=r.x,s=r.y,o=Math.abs(t.x-a),n=Math.abs(t.y-s),e=r.width/2,i=r.height/2;return o>=e||n>=i},"outsideNode"),Bt=d((r,t,a)=>{g.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(t)}
insidePoint : ${JSON.stringify(a)}
node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let s=r.x,o=r.y,n=Math.abs(s-a.x),e=r.width/2,i=a.x<t.x?e-n:e+n,c=r.height/2,l=Math.abs(t.y-a.y),k=Math.abs(t.x-a.x);if(Math.abs(o-t.y)*e>Math.abs(s-t.x)*c){let y=a.y<t.y?t.y-c-o:o-c-t.y;i=k*y/l;let h={x:a.x<t.x?a.x+i:a.x-k+i,y:a.y<t.y?a.y+l-y:a.y-l+y};return i===0&&(h.x=t.x,h.y=t.y),k===0&&(h.x=t.x),l===0&&(h.y=t.y),g.debug(`abc89 top/bottom calc, Q ${l}, q ${y}, R ${k}, r ${i}`,h),h}else{a.x<t.x?i=t.x-e-s:i=s-e-t.x;let y=l*i/k,h=a.x<t.x?a.x+k-i:a.x-k+i,p=a.y<t.y?a.y+y:a.y-y;return g.debug(`sides calc abc89, Q ${l}, q ${y}, R ${k}, r ${i}`,{_x:h,_y:p}),i===0&&(h=t.x,p=t.y),k===0&&(h=t.x),l===0&&(p=t.y),{x:h,y:p}}},"intersection"),Mt=d((r,t)=>{g.warn("abc88 cutPathAtIntersect",r,t);let a=[],s=r[0],o=!1;return r.forEach(n=>{if(g.info("abc88 checking point",n,t),!Ht(t,n)&&!o){let e=Bt(t,s,n);g.debug("abc88 inside",n,s,e),g.debug("abc88 intersection",e,t);let i=!1;a.forEach(c=>{i=i||c.x===e.x&&c.y===e.y}),a.some(c=>c.x===e.x&&c.y===e.y)?g.warn("abc88 no intersect",e,a):a.push(e),o=!0}else g.warn("abc88 outside",n,s),s=n,o||a.push(n)}),g.debug("returning points",a),a},"cutPathAtIntersect");function _t(r){let t=[],a=[];for(let s=1;s<r.length-1;s++){let o=r[s-1],n=r[s],e=r[s+1];(o.x===n.x&&n.y===e.y&&Math.abs(n.x-e.x)>5&&Math.abs(n.y-o.y)>5||o.y===n.y&&n.x===e.x&&Math.abs(n.x-o.x)>5&&Math.abs(n.y-e.y)>5)&&(t.push(n),a.push(s))}return{cornerPoints:t,cornerPointPositions:a}}d(_t,"extractCornerPoints");var Lt=d(function(r,t,a){let s=t.x-r.x,o=t.y-r.y,n=Math.sqrt(s*s+o*o),e=a/n;return{x:t.x-e*s,y:t.y-e*o}},"findAdjacentPoint"),Tt=d(function(r){let{cornerPointPositions:t}=_t(r),a=[];for(let s=0;s<r.length;s++)if(t.includes(s)){let o=r[s-1],n=r[s+1],e=r[s],i=Lt(o,e,5),c=Lt(n,e,5),l=c.x-i.x,k=c.y-i.y;a.push(i);let y=Math.sqrt(2)*2,h={x:e.x,y:e.y};if(Math.abs(n.x-o.x)>10&&Math.abs(n.y-o.y)>=10){g.debug("Corner point fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));let p=5;e.x===i.x?h={x:l<0?i.x-p+y:i.x+p-y,y:k<0?i.y-y:i.y+y}:h={x:l<0?i.x-y:i.x+y,y:k<0?i.y-p+y:i.y+p-y}}else g.debug("Corner point skipping fixing",Math.abs(n.x-o.x),Math.abs(n.y-o.y));a.push(h,c)}else a.push(r[s]);return a},"fixCorners"),zt=d((r,t,a)=>{let s=r-t-a,o=2,n=2,e=o+n,i=Math.floor(s/e),c=Array(i).fill(`${o} ${n}`).join(" ");return`0 ${t} ${c} ${a}`},"generateDashArray"),wr=d(function(r,t,a,s,o,n,e,i=!1){if(!e)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);let{handDrawnSeed:c}=$(),l=t.points,k=!1,y=o;var h=n;let p=[];for(let _ in t.cssCompiledStyles)yt(_)||p.push(t.cssCompiledStyles[_]);g.debug("UIO intersect check",t.points,h.x,y.x),h.intersect&&y.intersect&&!i&&(l=l.slice(1,t.points.length-1),l.unshift(y.intersect(l[0])),g.debug("Last point UIO",t.start,"-->",t.end,l[l.length-1],h,h.intersect(l[l.length-1])),l.push(h.intersect(l[l.length-1])));let x=btoa(JSON.stringify(l));t.toCluster&&(g.info("to cluster abc88",a.get(t.toCluster)),l=Mt(t.points,a.get(t.toCluster).node),k=!0),t.fromCluster&&(g.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(l,null,2)),l=Mt(l.reverse(),a.get(t.fromCluster).node).reverse(),k=!0);let f=l.filter(_=>!Number.isNaN(_.y)),m=Yt(t.curve);m!=="rounded"&&(f=Tt(f));let u=I;switch(m){case"linear":u=I;break;case"basis":u=tt;break;case"cardinal":u=ot;break;case"bumpX":u=nt;break;case"bumpY":u=st;break;case"catmullRom":u=it;break;case"monotoneX":u=ct;break;case"monotoneY":u=lt;break;case"natural":u=dt;break;case"step":u=pt;break;case"stepAfter":u=ft;break;case"stepBefore":u=ht;break;case"rounded":u=I;break;default:u=tt}let{x:w,y:W}=kt(t),j=et().x(w).y(W).curve(u),L;switch(t.thickness){case"normal":L="edge-thickness-normal";break;case"thick":L="edge-thickness-thick";break;case"invisible":L="edge-thickness-invisible";break;default:L="edge-thickness-normal"}switch(t.pattern){case"solid":L+=" edge-pattern-solid";break;case"dotted":L+=" edge-pattern-dotted";break;case"dashed":L+=" edge-pattern-dashed";break;default:L+=" edge-pattern-solid"}let b,C=m==="rounded"?vt(St(f,t),5):j(f),v=Array.isArray(t.style)?t.style:[t.style],R=v.find(_=>_?.startsWith("stroke:")),S="";t.animate&&(S="edge-animation-fast"),t.animation&&(S="edge-animation-"+t.animation);let D=!1;if(t.look==="handDrawn"){let _=bt.svg(r);Object.assign([],f);let A=_.path(C,{roughness:.3,seed:c});L+=" transition",b=U(A).select("path").attr("id",`${e}-${t.id}`).attr("class"," "+L+(t.classes?" "+t.classes:"")+(S?" "+S:"")).attr("style",v?v.reduce((Q,Z)=>Q+";"+Z,""):"");let P=b.attr("d");b.attr("d",P),r.node().appendChild(b.node())}else{let _=p.join(";"),A=v?v.reduce((N,Y)=>N+Y+";",""):"",P=(_?_+";"+A+";":A)+";"+(v?v.reduce((N,Y)=>N+";"+Y,""):"");b=r.append("path").attr("d",C).attr("id",`${e}-${t.id}`).attr("class"," "+L+(t.classes?" "+t.classes:"")+(S?" "+S:"")).attr("style",P),R=P.match(/stroke:([^;]+)/)?.[1],D=t.animate===!0||!!t.animation||_.includes("animation");let Q=b.node(),Z=typeof Q.getTotalLength=="function"?Q.getTotalLength():0,F=rt[t.arrowTypeStart]||0,G=rt[t.arrowTypeEnd]||0;if(t.look==="neo"&&!D){let Y=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?zt(Z,F,G):`0 ${F} ${Z-F-G} ${G}`}; stroke-dashoffset: 0;`;b.attr("style",Y+b.attr("style"))}}b.attr("data-edge",!0),b.attr("data-et","edge"),b.attr("data-id",t.id),b.attr("data-points",x),b.attr("data-look",mt(t.look)),t.showPoints&&f.forEach(_=>{r.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",_.x).attr("cy",_.y)});let q="";($().flowchart.arrowMarkerAbsolute||$().state.arrowMarkerAbsolute)&&(q=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,q=q.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),g.info("arrowTypeStart",t.arrowTypeStart),g.info("arrowTypeEnd",t.arrowTypeEnd);let Ot=!D&&t?.look==="neo";Et(b,t,q,e,s,Ot,R);let $t=Math.floor(l.length/2),Ut=l[$t];E.isLabelCoordinateInPath(Ut,b.attr("d"))||(k=!0);let J={};return k&&(J.updatedPath=l),J.originalPath=t.points,J},"insertEdge");function vt(r,t){if(r.length<2)return"";let a="",s=r.length,o=1e-5;for(let n=0;n<s;n++){let e=r[n],i=r[n-1],c=r[n+1];if(n===0)a+=`M${e.x},${e.y}`;else if(n===s-1)a+=`L${e.x},${e.y}`;else{let l=e.x-i.x,k=e.y-i.y,y=c.x-e.x,h=c.y-e.y,p=Math.hypot(l,k),x=Math.hypot(y,h);if(p<o||x<o){a+=`L${e.x},${e.y}`;continue}let f=l/p,m=k/p,u=y/x,w=h/x,W=f*u+m*w,j=Math.max(-1,Math.min(1,W)),L=Math.acos(j);if(L<o||Math.abs(Math.PI-L)<o){a+=`L${e.x},${e.y}`;continue}let b=Math.min(t/Math.sin(L/2),p/2,x/2),C=e.x-f*b,v=e.y-m*b,R=e.x+u*b,S=e.y+w*b;a+=`L${C},${v}`,a+=`Q${e.x},${e.y} ${R},${S}`}}return a}d(vt,"generateRoundedPath");function at(r,t){if(!r||!t)return{angle:0,deltaX:0,deltaY:0};let a=t.x-r.x,s=t.y-r.y;return{angle:Math.atan2(s,a),deltaX:a,deltaY:s}}d(at,"calculateDeltaAndAngle");function St(r,t){let a=r.map(o=>({...o}));if(r.length>=2&&H[t.arrowTypeStart]){let o=H[t.arrowTypeStart],n=r[0],e=r[1],{angle:i}=at(n,e),c=o*Math.cos(i),l=o*Math.sin(i);a[0].x=n.x+c,a[0].y=n.y+l}let s=r.length;if(s>=2&&H[t.arrowTypeEnd]){let o=H[t.arrowTypeEnd],n=r[s-1],e=r[s-2],{angle:i}=at(e,n),c=o*Math.cos(i),l=o*Math.sin(i);a[s-1].x=n.x-c,a[s-1].y=n.y-l}return a}d(St,"applyMarkerOffsetsToPoints");var Ct=d((r,t,a,s)=>{t.forEach(o=>{ir[o](r,a,s)})},"insertMarkers"),Rt=d((r,t,a)=>{g.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).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"),r.append("marker").attr("id",a+"_"+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",a+"_"+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"),qt=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).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"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).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"),r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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"),At=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).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"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).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"),r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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"),Pt=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).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"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).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"),r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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"),Qt=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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"),Zt=d((r,t,a)=>{r.append("marker").attr("id",a+"_"+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",a+"_"+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",a+"_"+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",a+"_"+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"),Nt=d((r,t,a)=>{r.append("marker").attr("id",a+"_"+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",a+"_"+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",a+"_"+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",a+"_"+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"),It=d((r,t,a)=>{r.append("marker").attr("id",a+"_"+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",a+"_"+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",a+"_"+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",a+"_"+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"),Vt=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+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"),jt=d((r,t,a)=>{let s=O(),{themeVariables:o}=s,{transitionColor:n}=o;r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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"),Dt=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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"),Jt=d((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneStart").attr("class","marker zeroOrOne "+t).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),s.append("path").attr("d","M9,0 L9,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrOneEnd").attr("class","marker zeroOrOne "+t).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),o.append("path").attr("d","M21,0 L21,18")},"zero_or_one"),Ft=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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"),Gt=d((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreStart").attr("class","marker zeroOrMore "+t).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");s.append("circle").attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),s.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18");let o=r.append("defs").append("marker").attr("id",a+"_"+t+"-zeroOrMoreEnd").attr("class","marker zeroOrMore "+t).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto");o.append("circle").attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),o.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")},"zero_or_more"),Kt=d((r,t,a)=>{let s=O(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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"),tr=d((r,t,a)=>{let s=O(),{themeVariables:o}=s,{strokeWidth:n,mainBkg:e}=o,i=r.append("defs").append("marker").attr("id",a+"_"+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");i.append("circle").attr("fill",e??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),i.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${n}`);let c=r.append("defs").append("marker").attr("id",a+"_"+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");c.append("circle").attr("fill",e??"white").attr("cx",9).attr("cy",9).attr("stroke-width",`${n}`).attr("r",6),c.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${n}`)},"zero_or_one_neo"),rr=d((r,t,a)=>{let s=O(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+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",a+"_"+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"),ar=d((r,t,a)=>{let s=O(),{themeVariables:o}=s,{strokeWidth:n,mainBkg:e}=o,i=r.append("defs").append("marker").attr("id",a+"_"+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");i.append("circle").attr("fill",e??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),i.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${n}`);let c=r.append("defs").append("marker").attr("id",a+"_"+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");c.append("circle").attr("fill",e??"white").attr("cx",11).attr("cy",18).attr("r",6).attr("stroke-width",`${n}`),c.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${n}`)},"zero_or_more_neo"),er=d((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+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"),nr=d((r,t,a)=>{let s=O(),{themeVariables:o}=s,{strokeWidth:n}=o;r.append("defs").append("marker").attr("id",a+"_"+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"),sr=d((r,t,a)=>{let s=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").append("g");s.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),s.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),s.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10)},"requirement_contains"),or=d((r,t,a)=>{let s=O(),{themeVariables:o}=s,{strokeWidth:n}=o,e=r.append("defs").append("marker").attr("id",a+"_"+t+"-requirement_containsStart").attr("refX",0).attr("refY",10).attr("markerWidth",20).attr("markerHeight",20).attr("orient","auto").attr("markerUnits","userSpaceOnUse").append("g");e.append("circle").attr("cx",10).attr("cy",10).attr("r",9).attr("fill","none"),e.append("line").attr("x1",1).attr("x2",19).attr("y1",10).attr("y2",10),e.append("line").attr("y1",1).attr("y2",19).attr("x1",10).attr("x2",10),e.selectAll("*").attr("stroke-width",`${n}`)},"requirement_contains_neo"),ir={extension:Rt,composition:qt,aggregation:At,dependency:Pt,lollipop:Qt,point:Zt,circle:Nt,cross:It,barb:Vt,barbNeo:jt,only_one:Dt,zero_or_one:Jt,one_or_more:Ft,zero_or_more:Gt,only_one_neo:Kt,zero_or_one_neo:tr,one_or_more_neo:rr,zero_or_more_neo:ar,requirement_arrow:er,requirement_contains:sr,requirement_arrow_neo:nr,requirement_contains_neo:or},Mr=Ct;export{gr as a,xr as b,br as c,wr as d,Mr as e};