1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="f3efe2b0-914f-4059-a5d6-4aede645e3b5",t._sentryDebugIdIdentifier="sentry-dbid-f3efe2b0-914f-4059-a5d6-4aede645e3b5")}()}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4241],{4241:(t,e,a)=>{a.d(e,{diagram:()=>K});var i,d=a(11118);a(22285),a(85993),a(86888),a(54455),a(49434),a(26682),a(19837),a(67617),a(63841);var r=a(45783),n=a(56292),s=a(27361),o=a(66095),g=a(73414),l=a(49782),p=(0,s.K2)(t=>t.append("circle").attr("class","start-state").attr("r",(0,n.D7)().state.sizeUnit).attr("cx",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit).attr("cy",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit),"drawStartState"),h=(0,s.K2)(t=>t.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",(0,n.D7)().state.textHeight).attr("class","divider").attr("x2",2*(0,n.D7)().state.textHeight).attr("y1",0).attr("y2",0),"drawDivider"),c=(0,s.K2)((t,e)=>{let a=t.append("text").attr("x",2*(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.textHeight+2*(0,n.D7)().state.padding).attr("font-size",(0,n.D7)().state.fontSize).attr("class","state-title").text(e.id),i=a.node().getBBox();return t.insert("rect",":first-child").attr("x",(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.padding).attr("width",i.width+2*(0,n.D7)().state.padding).attr("height",i.height+2*(0,n.D7)().state.padding).attr("rx",(0,n.D7)().state.radius),a},"drawSimpleState"),D=(0,s.K2)((t,e)=>{let a=(0,s.K2)(function(t,e,a){let i=t.append("tspan").attr("x",2*(0,n.D7)().state.padding).text(e);a||i.attr("dy",(0,n.D7)().state.textHeight)},"addTspan"),i=t.append("text").attr("x",2*(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.textHeight+1.3*(0,n.D7)().state.padding).attr("font-size",(0,n.D7)().state.fontSize).attr("class","state-title").text(e.descriptions[0]).node().getBBox(),d=i.height,r=t.append("text").attr("x",(0,n.D7)().state.padding).attr("y",d+.4*(0,n.D7)().state.padding+(0,n.D7)().state.dividerMargin+(0,n.D7)().state.textHeight).attr("class","state-description"),o=!0,g=!0;e.descriptions.forEach(function(t){o||(a(r,t,g),g=!1),o=!1});let l=t.append("line").attr("x1",(0,n.D7)().state.padding).attr("y1",(0,n.D7)().state.padding+d+(0,n.D7)().state.dividerMargin/2).attr("y2",(0,n.D7)().state.padding+d+(0,n.D7)().state.dividerMargin/2).attr("class","descr-divider"),p=r.node().getBBox(),h=Math.max(p.width,i.width);return l.attr("x2",h+3*(0,n.D7)().state.padding),t.insert("rect",":first-child").attr("x",(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.padding).attr("width",h+2*(0,n.D7)().state.padding).attr("height",p.height+d+2*(0,n.D7)().state.padding).attr("rx",(0,n.D7)().state.radius),t},"drawDescrState"),x=(0,s.K2)((t,e,a)=>{let i,d=(0,n.D7)().state.padding,r=2*(0,n.D7)().state.padding,s=t.node().getBBox(),o=s.width,g=s.x,l=t.append("text").attr("x",0).attr("y",(0,n.D7)().state.titleShift).attr("font-size",(0,n.D7)().state.fontSize).attr("class","state-title").text(e.id),p=l.node().getBBox().width+r,h=Math.max(p,o);h===o&&(h+=r);let c=t.node().getBBox();e.doc,i=g-d,p>o&&(i=(o-h)/2+d),Math.abs(g-c.x)<d&&p>o&&(i=g-(p-o)/2);let D=1-(0,n.D7)().state.textHeight;return t.insert("rect",":first-child").attr("x",i).attr("y",D).attr("class",a?"alt-composit":"composit").attr("width",h).attr("height",c.height+(0,n.D7)().state.textHeight+(0,n.D7)().state.titleShift+1).attr("rx","0"),l.attr("x",i+d),p<=o&&l.attr("x",g+(h-r)/2-p/2+d),t.insert("rect",":first-child").attr("x",i).attr("y",(0,n.D7)().state.titleShift-(0,n.D7)().state.textHeight-(0,n.D7)().state.padding).attr("width",h).attr("height",3*(0,n.D7)().state.textHeight).attr("rx",(0,n.D7)().state.radius),t.insert("rect",":first-child").attr("x",i).attr("y",(0,n.D7)().state.titleShift-(0,n.D7)().state.textHeight-(0,n.D7)().state.padding).attr("width",h).attr("height",c.height+3+2*(0,n.D7)().state.textHeight).attr("rx",(0,n.D7)().state.radius),t},"addTitleAndBox"),u=(0,s.K2)(t=>
1(t.append("circle").attr("class","end-state-outer").attr("r",(0,n.D7)().state.sizeUnit+(0,n.D7)().state.miniPadding).attr("cx",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+(0,n.D7)().state.miniPadding).attr("cy",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+(0,n.D7)().state.miniPadding),t.append("circle").attr("class","end-state-inner").attr("r",(0,n.D7)().state.sizeUnit).attr("cx",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+2).attr("cy",(0,n.D7)().state.padding+(0,n.D7)().state.sizeUnit+2)),"drawEndState"),f=(0,s.K2)((t,e)=>{let a=(0,n.D7)().state.forkWidth,i=(0,n.D7)().state.forkHeight;if(e.parentId){let t=a;a=i,i=t}return t.append("rect").style("stroke","black").style("fill","black").attr("width",a).attr("height",i).attr("x",(0,n.D7)().state.padding).attr("y",(0,n.D7)().state.padding)},"drawForkJoinState"),y=(0,s.K2)((t,e,a,i)=>{let d=0,r=i.append("text");r.style("text-anchor","start"),r.attr("class","noteText");let s=t.replace(/\r\n/g,"<br/>"),o=(s=s.replace(/\n/g,"<br/>")).split(n.Y2.lineBreakRegex),g=1.25*(0,n.D7)().state.noteMargin;for(let t of o){let i=t.trim();if(i.length>0){let t=r.append("tspan");t.text(i),0===g&&(g+=t.node().getBBox().height),d+=g,t.attr("x",e+(0,n.D7)().state.noteMargin),t.attr("y",a+d+1.25*(0,n.D7)().state.noteMargin)}}return{textWidth:r.node().getBBox().width,textHeight:d}},"_drawLongText"),w=(0,s.K2)((t,e)=>{e.attr("class","state-note");let a=e.append("rect").attr("x",0).attr("y",(0,n.D7)().state.padding),{textWidth:i,textHeight:d}=y(t,0,0,e.append("g"));return a.attr("height",d+2*(0,n.D7)().state.noteMargin),a.attr("width",i+2*(0,n.D7)().state.noteMargin),a},"drawNote"),b=(0,s.K2)(function(t,e){let a=e.id,i={id:a,label:e.id,width:0,height:0},d=t.append("g").attr("id",a).attr("class","stateGroup");"start"===e.type&&p(d),"end"===e.type&&u(d),("fork"===e.type||"join"===e.type)&&f(d,e),"note"===e.type&&w(e.note.text,d),"divider"===e.type&&h(d),"default"===e.type&&0===e.descriptions.length&&c(d,e),"default"===e.type&&e.descriptions.length>0&&D(d,e);let r=d.node().getBBox();return i.width=r.width+2*(0,n.D7)().state.padding,i.height=r.height+2*(0,n.D7)().state.padding,i},"drawState"),m=0,B=(0,s.K2)(function(t,e,a){let i=(0,s.K2)(function(t){switch(t){case d.u4.relationType.AGGREGATION:return"aggregation";case d.u4.relationType.EXTENSION:return"extension";case d.u4.relationType.COMPOSITION:return"composition";case d.u4.relationType.DEPENDENCY:return"dependency"}},"getRelationType");e.points=e.points.filter(t=>!Number.isNaN(t.y));let g=e.points,l=(0,o.n8j)().x(function(t){return t.x}).y(function(t){return t.y}).curve(o.qrM),p=t.append("path").attr("d",l(g)).attr("id","edge"+m).attr("class","transition"),h="";if((0,n.D7)().state.arrowMarkerAbsolute&&(h=(0,n.ID)(!0)),p.attr("marker-end","url("+h+"#"+i(d.u4.relationType.DEPENDENCY)+"End)"),void 0!==a.title){let i=t.append("g").attr("class","stateLabel"),{x:d,y:o}=r._K.calcLabelPosition(e.points),g=n.Y2.getRows(a.title),l=0,p=[],h=0,c=0;for(let t=0;t<=g.length;t++){let e=i.append("text").attr("text-anchor","middle").text(g[t]).attr("x",d).attr("y",o+l),a=e.node().getBBox();h=Math.max(h,a.width),c=Math.min(c,a.x),s.Rm.info(a.x,d,o+l),0===l&&(l=e.node().getBBox().height,s.Rm.info("Title height",l,o)),p.push(e)}let D=l*g.length;if(g.length>1){let t=(g.length-1)*l*.5;p.forEach((e,a)=>e.attr("y",o+a*l-t)),D=l*g.length}let x=i.node().getBBox();i.insert("rect",":first-child").attr("class","box").attr("x",d-h/2-(0,n.D7)().state.padding/2).attr("y",o-D/2-(0,n.D7)().state.padding/2-3.5).attr("width",h+(0,n.D7)().state.padding).attr("height",D+(0,n.D7)().state.padding),s.Rm.info(x)}m++},"drawEdge"),k={},E=(0,s.K2)(function(){},"setConf"),N=(0,s.K2)(function(t){t.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),S=(0,s.K2)(function(t,e,a,d){let r;i=(0,n.D7)().state;let g=(0,n.D7)().securityLevel;"sandbox"===g&&(r=(0,o.Ltv)("#i"+e));let l="sandbox"===g?(0,o.Ltv)(r.nodes()[0].contentDocument.body):(0,o.Ltv)("body"),p="sandbox"===g?r.n
1odes()[0].contentDocument:document;s.Rm.debug("Rendering diagram "+t);let h=l.select(`[id='${e}']`);N(h),M(d.db.getRootDoc(),h.append("g").attr("id",e+"-root"),void 0,!1,l,p,d);let c=i.padding,D=h.node().getBBox(),x=D.width+2*c,u=D.height+2*c;(0,n.a$)(h,u,1.75*x,i.useMaxWidth),h.attr("viewBox",`${D.x-i.padding} ${D.y-i.padding} `+x+" "+u)},"draw"),v=(0,s.K2)(t=>t?t.length*i.fontSizeFactor:1,"getLabelWidth"),M=(0,s.K2)((t,e,a,d,r,o,p)=>{let h,c=new l.T({compound:!0,multigraph:!0}),D=!0;for(h=0;h<t.length;h++)if("relation"===t[h].stmt){D=!1;break}a?c.setGraph({rankdir:"LR",multigraph:!0,compound:!0,ranker:"tight-tree",ranksep:D?1:i.edgeLengthFactor,nodeSep:D?1:50,isMultiGraph:!0}):c.setGraph({rankdir:"TB",multigraph:!0,compound:!0,ranksep:D?1:i.edgeLengthFactor,nodeSep:D?1:50,ranker:"tight-tree",isMultiGraph:!0}),c.setDefaultEdgeLabel(function(){return{}});let u=p.db.getStates(),f=p.db.getRelations();for(let t of Object.keys(u)){let n,s=u[t];if(a&&(s.parentId=a),s.doc){let t=e.append("g").attr("id",s.id).attr("class","stateGroup");n=M(s.doc,t,s.id,!d,r,o,p);{let e=(t=x(t,s,d)).node().getBBox();n.width=e.width,n.height=e.height+i.padding/2,k[s.id]={y:i.compositTitleSize}}}else n=b(e,s,c);if(s.note){let t=b(e,{descriptions:[],id:s.id+"-note",note:s.note,type:"note"},c);"left of"===s.note.position?(c.setNode(n.id+"-note",t),c.setNode(n.id,n)):(c.setNode(n.id,n),c.setNode(n.id+"-note",t)),c.setParent(n.id,n.id+"-group"),c.setParent(n.id+"-note",n.id+"-group")}else c.setNode(n.id,n)}s.Rm.debug("Count=",c.nodeCount(),c);let y=0;f.forEach(function(t){y++,s.Rm.debug("Setting edge",t),c.setEdge(t.id1,t.id2,{relation:t,width:v(t.title),height:i.labelHeight*n.Y2.getRows(t.title).length,labelpos:"c"},"id"+y)}),(0,g.Zp)(c),s.Rm.debug("Graph after layout",c.nodes());let w=e.node();c.nodes().forEach(function(t){void 0!==t&&void 0!==c.node(t)?(s.Rm.warn("Node "+t+": "+JSON.stringify(c.node(t))),r.select("#"+w.id+" #"+t).attr("transform","translate("+(c.node(t).x-c.node(t).width/2)+","+(c.node(t).y+(k[t]?k[t].y:0)-c.node(t).height/2)+" )"),r.select("#"+w.id+" #"+t).attr("data-x-shift",c.node(t).x-c.node(t).width/2),o.querySelectorAll("#"+w.id+" #"+t+" .divider").forEach(t=>{let e=t.parentElement,a=0,i=0;e&&(e.parentElement&&(a=e.parentElement.getBBox().width),Number.isNaN(i=parseInt(e.getAttribute("data-x-shift"),10))&&(i=0)),t.setAttribute("x1",0-i+8),t.setAttribute("x2",a-i-8)})):s.Rm.debug("No Node "+t+": "+JSON.stringify(c.node(t)))});let m=w.getBBox();
1c.edges().forEach(function(t){void 0!==t&&void 0!==c.edge(t)&&(s.Rm.debug("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(c.edge(t))),B(e,c.edge(t),c.edge(t).relation))});let E={id:a||"root",label:a||"root",width:0,height:0};return E.width=(m=w.getBBox()).width+2*i.padding,E.height=m.height+2*i.padding,s.Rm.debug("Doc rendered",E,c),E},"renderDoc"),K={parser:d.Zk,get db(){return new d.u4(1)},renderer:{setConf:E,draw:S},styles:d.tM,init:(0,s.K2)(t=>{t.state||(t.state={}),t.state.arrowMarkerAbsolute=t.arrowMarkerAbsolute},"init")}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.