docusaurus/assets/js/96720.3c88f9db.js
2024-09-19 13:56:09 +00:00

4 lines
No EOL
12 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[96720],{86847:(t,r,a)=>{a.d(r,{A:()=>i});var e=a(34081);let i=function(t){return(0,e.A)(t,4)}},92834:(t,r,a)=>{a.d(r,{IU:()=>M,Jo:()=>P,T_:()=>S,g0:()=>y,jP:()=>_});var e=a(82648),i=a(16470),s=a(27923),n=a(67027),d=a(72912),l=a(89601),o=(0,d.K2)((t,r,a,e)=>{r.forEach(r=>{f[r](t,a,e)})},"insertMarkers"),p=(0,d.K2)((t,r,a)=>{d.Rm.trace("Making markers for ",a),t.append("defs").append("marker").attr("id",a+"_"+r+"-extensionStart").attr("class","marker extension "+r).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",a+"_"+r+"-extensionEnd").attr("class","marker extension "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),h=(0,d.K2)((t,r,a)=>{t.append("defs").append("marker").attr("id",a+"_"+r+"-compositionStart").attr("class","marker composition "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",a+"_"+r+"-compositionEnd").attr("class","marker composition "+r).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),c=(0,d.K2)((t,r,a)=>{t.append("defs").append("marker").attr("id",a+"_"+r+"-aggregationStart").attr("class","marker aggregation "+r).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",a+"_"+r+"-aggregationEnd").attr("class","marker aggregation "+r).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"),m=(0,d.K2)((t,r,a)=>{t.append("defs").append("marker").attr("id",a+"_"+r+"-dependencyStart").attr("class","marker dependency "+r).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),t.append("defs").append("marker").attr("id",a+"_"+r+"-dependencyEnd").attr("class","marker dependency "+r).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),g=(0,d.K2)((t,r,a)=>{t.append("defs").append("marker").attr("id",a+"_"+r+"-lollipopStart").attr("class","marker lollipop "+r).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),t.append("defs").append("marker").attr("id",a+"_"+r+"-lollipopEnd").attr("class","marker lollipop "+r).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),k=(0,d.K2)((t,r,a)=>{t.append("marker").attr("id",a+"_"+r+"-pointEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",6).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",a+"_"+r+"-pointStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),f={extension:p,composition:h,aggregation:c,dependency:m,lollipop:g,point:k,circle:(0,d.K2)((t,r,a)=>{t.append("marker").attr("id",a+"_"+r+"-circleEnd").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),t.append("marker").attr("id",a+"_"+r+"-circleStart").attr("class","marker "+r).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),cross:(0,d.K2)((t,r,a)=>{t.append("marker").attr("id",a+"_"+r+"-crossEnd").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),t.append("marker").attr("id",a+"_"+r+"-crossStart").attr("class","marker cross "+r).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),barb:(0,d.K2)((t,r,a)=>{t.append("defs").append("marker").attr("id",a+"_"+r+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb")},y=o,b=(0,d.K2)((t,r,a,e,i)=>{r.arrowTypeStart&&x(t,"start",r.arrowTypeStart,a,e,i),r.arrowTypeEnd&&x(t,"end",r.arrowTypeEnd,a,e,i)},"addEdgeMarkers"),u={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},x=(0,d.K2)((t,r,a,e,i,s)=>{let n=u[a];if(!n){d.Rm.warn(`Unknown arrow type: ${a}`);return}t.attr(`marker-${r}`,`url(${e}#${i}_${s}-${n}${"start"===r?"Start":"End"})`)},"addEdgeMarker"),w={},L={},M=(0,d.K2)(()=>{w={},L={}},"clear"),_=(0,d.K2)((t,r)=>{let a;let i=(0,d.D7)(),n=(0,d._3)(i.flowchart.htmlLabels),o="markdown"===r.labelType?(0,s.GZ)(t,r.label,{style:r.labelStyle,useHtmlLabels:n,addSvgBackground:!0},i):(0,e.DA)(r.label,r.labelStyle),p=t.insert("g").attr("class","edgeLabel"),h=p.insert("g").attr("class","label");h.node().appendChild(o);let c=o.getBBox();if(n){let t=o.children[0],r=(0,l.Ltv)(o);c=t.getBoundingClientRect(),r.attr("width",c.width),r.attr("height",c.height)}if(h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),w[r.id]=p,r.width=c.width,r.height=c.height,r.startLabelLeft){let i=(0,e.DA)(r.startLabelLeft,r.labelStyle),s=t.insert("g").attr("class","edgeTerminals"),n=s.insert("g").attr("class","inner");a=n.node().appendChild(i);let d=i.getBBox();n.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),L[r.id]||(L[r.id]={}),L[r.id].startLeft=s,$(a,r.startLabelLeft)}if(r.startLabelRight){let i=(0,e.DA)(r.startLabelRight,r.labelStyle),s=t.insert("g").attr("class","edgeTerminals"),n=s.insert("g").attr("class","inner");a=s.node().appendChild(i),n.node().appendChild(i);let d=i.getBBox();n.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),L[r.id]||(L[r.id]={}),L[r.id].startRight=s,$(a,r.startLabelRight)}if(r.endLabelLeft){let i=(0,e.DA)(r.endLabelLeft,r.labelStyle),s=t.insert("g").attr("class","edgeTerminals"),n=s.insert("g").attr("class","inner");a=n.node().appendChild(i);let d=i.getBBox();n.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),s.node().appendChild(i),L[r.id]||(L[r.id]={}),L[r.id].endLeft=s,$(a,r.endLabelLeft)}if(r.endLabelRight){let i=(0,e.DA)(r.endLabelRight,r.labelStyle),s=t.insert("g").attr("class","edgeTerminals"),n=s.insert("g").attr("class","inner");a=n.node().appendChild(i);let d=i.getBBox();n.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),s.node().appendChild(i),L[r.id]||(L[r.id]={}),L[r.id].endRight=s,$(a,r.endLabelRight)}return o},"insertEdgeLabel");function $(t,r){(0,d.D7)().flowchart.htmlLabels&&t&&(t.style.width=9*r.length+"px",t.style.height="12px")}(0,d.K2)($,"setTerminalWidth");var S=(0,d.K2)((t,r)=>{d.Rm.debug("Moving label abc88 ",t.id,t.label,w[t.id],r);let a=r.updatedPath?r.updatedPath:r.originalPath,e=(0,d.D7)(),{subGraphTitleTotalMargin:s}=(0,i.O)(e);if(t.label){let e=w[t.id],i=t.x,l=t.y;if(a){let e=n._K.calcLabelPosition(a);d.Rm.debug("Moving label "+t.label+" from (",i,",",l,") to (",e.x,",",e.y,") abc88"),r.updatedPath&&(i=e.x,l=e.y)}e.attr("transform",`translate(${i}, ${l+s/2})`)}if(t.startLabelLeft){let r=L[t.id].startLeft,e=t.x,i=t.y;if(a){let r=n._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_left",a);e=r.x,i=r.y}r.attr("transform",`translate(${e}, ${i})`)}if(t.startLabelRight){let r=L[t.id].startRight,e=t.x,i=t.y;if(a){let r=n._K.calcTerminalLabelPosition(t.arrowTypeStart?10:0,"start_right",a);e=r.x,i=r.y}r.attr("transform",`translate(${e}, ${i})`)}if(t.endLabelLeft){let r=L[t.id].endLeft,e=t.x,i=t.y;if(a){let r=n._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_left",a);e=r.x,i=r.y}r.attr("transform",`translate(${e}, ${i})`)}if(t.endLabelRight){let r=L[t.id].endRight,e=t.x,i=t.y;if(a){let r=n._K.calcTerminalLabelPosition(t.arrowTypeEnd?10:0,"end_right",a);e=r.x,i=r.y}r.attr("transform",`translate(${e}, ${i})`)}},"positionEdgeLabel"),R=(0,d.K2)((t,r)=>{let a=t.x,e=t.y,i=Math.abs(r.x-a),s=Math.abs(r.y-e),n=t.width/2,d=t.height/2;return i>=n||s>=d},"outsideNode"),K=(0,d.K2)((t,r,a)=>{d.Rm.debug(`intersection calc abc89:
outsidePoint: ${JSON.stringify(r)}
insidePoint : ${JSON.stringify(a)}
node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);let e=t.x,i=t.y,s=Math.abs(e-a.x),n=t.width/2,l=a.x<r.x?n-s:n+s,o=t.height/2,p=Math.abs(r.y-a.y),h=Math.abs(r.x-a.x);if(Math.abs(i-r.y)*n>Math.abs(e-r.x)*o){let t=a.y<r.y?r.y-o-i:i-o-r.y;l=h*t/p;let e={x:a.x<r.x?a.x+l:a.x-h+l,y:a.y<r.y?a.y+p-t:a.y-p+t};return 0===l&&(e.x=r.x,e.y=r.y),0===h&&(e.x=r.x),0===p&&(e.y=r.y),d.Rm.debug(`abc89 topp/bott calc, Q ${p}, q ${t}, R ${h}, r ${l}`,e),e}{let t=p*(l=a.x<r.x?r.x-n-e:e-n-r.x)/h,i=a.x<r.x?a.x+h-l:a.x-h+l,s=a.y<r.y?a.y+t:a.y-t;return d.Rm.debug(`sides calc abc89, Q ${p}, q ${t}, R ${h}, r ${l}`,{_x:i,_y:s}),0===l&&(i=r.x,s=r.y),0===h&&(i=r.x),0===p&&(s=r.y),{x:i,y:s}}},"intersection"),E=(0,d.K2)((t,r)=>{d.Rm.debug("abc88 cutPathAtIntersect",t,r);let a=[],e=t[0],i=!1;return t.forEach(t=>{if(R(r,t)||i)e=t,i||a.push(t);else{let s=K(r,e,t),n=!1;a.forEach(t=>{n=n||t.x===s.x&&t.y===s.y}),a.some(t=>t.x===s.x&&t.y===s.y)||a.push(s),i=!0}}),a},"cutPathAtIntersect"),P=(0,d.K2)(function(t,r,a,e,s,n,o){let p,h=a.points;d.Rm.debug("abc88 InsertEdge: edge=",a,"e=",r);let c=!1,m=n.node(r.v);var g=n.node(r.w);g?.intersect&&m?.intersect&&((h=h.slice(1,a.points.length-1)).unshift(m.intersect(h[0])),h.push(g.intersect(h[h.length-1]))),a.toCluster&&(d.Rm.debug("to cluster abc88",e[a.toCluster]),h=E(a.points,e[a.toCluster].node),c=!0),a.fromCluster&&(d.Rm.debug("from cluster abc88",e[a.fromCluster]),h=E(h.reverse(),e[a.fromCluster].node).reverse(),c=!0);let k=h.filter(t=>!Number.isNaN(t.y)),f=l.qrM;a.curve&&("graph"===s||"flowchart"===s)&&(f=a.curve);let{x:y,y:u}=(0,i.R)(a),x=(0,l.n8j)().x(y).y(u).curve(f);switch(a.thickness){case"normal":p="edge-thickness-normal";break;case"thick":case"invisible":p="edge-thickness-thick";break;default:p=""}switch(a.pattern){case"solid":p+=" edge-pattern-solid";break;case"dotted":p+=" edge-pattern-dotted";break;case"dashed":p+=" edge-pattern-dashed"}let w=t.append("path").attr("d",x(k)).attr("id",a.id).attr("class"," "+p+(a.classes?" "+a.classes:"")).attr("style",a.style),L="";((0,d.D7)().flowchart.arrowMarkerAbsolute||(0,d.D7)().state.arrowMarkerAbsolute)&&(L=(L=(L=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),b(w,a,L,o,s);let M={};return c&&(M.updatedPath=h),M.originalPath=a.points,M},"insertEdge")}}]);