1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3327,4330],{24330:(e,t,i)=>{function r(e,t){e.accDescr&&t.setAccDescription?.(e.accDescr),e.accTitle&&t.setAccTitle?.(e.accTitle),e.title&&t.setDiagramTitle?.(e.title)}i.d(t,{S:()=>r}),(0,i(62773).K2)(r,"populateCommonDb")},44944:(e,t,i)=>{i.d(t,{m:()=>n});var r,a=i(62773),n=(r=class{constructor(e){this.init=e,this.records=this.init()}reset(){this.records=this.init()}},(0,a.K2)(r,"ImperativeState"),r)},73327:(e,t,i)=>{i.d(t,{diagram:()=>v});var r=i(24330),a=i(33510),n=i(3806),s=i(44944);i(81596),i(52321),i(21045),i(68389),i(70678),i(23616),i(21955),i(53653);var d=i(77475);i(21885);var c=i(55158),l=i(62773);i(89165),i(87805),i(28355),i(85641);var o=new s.m(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",children:[]}]})),p=(0,l.K2)(()=>{o.reset(),(0,c.IU)()},"clear"),g=(0,l.K2)(()=>o.records.stack[0],"getRoot"),h=(0,l.K2)(()=>o.records.cnt,"getCount"),k=c.UI.treeView,w=(0,l.K2)(()=>(0,d.$t)(k,(0,c.zj)().treeView),"getConfig"),m={clear:p,addNode:(0,l.K2)((e,t)=>{for(;e<=o.records.stack[o.records.stack.length-1].level;)o.records.stack.pop();let i={id:o.records.cnt++,level:e,name:t,children:[]};o.records.stack[o.records.stack.length-1].children.push(i),o.records.stack.push(i)},"addNode"),getRoot:g,getCount:h,getConfig:w,getAccTitle:c.iN,getAccDescription:c.m7,getDiagramTitle:c.ab,setAccDescription:c.EI,setAccTitle:c.SV,setDiagramTitle:c.ke},b=(0,l.K2)(e=>{(0,r.S)(e,m),e.nodes.map(e=>m.addNode(e.indent?parseInt(e.indent):0,e.name))},"populate"),u={parse:(0,l.K2)(async e=>{let t=await (0,a.q)("treeView",e);l.Rm.debug(t),b(t)},"parse")},K=(0,l.K2)((e,t,i,r,a)=>{let n=r.append("text").text(i.name).attr("dominant-baseline","middle").attr("class","treeView-node-label"),{height:s,width:d}=n.node().getBBox(),c=s+2*a.paddingY,l=d+2*a.paddingX;n.attr("x",e+a.paddingX),n.attr("y",t+c/2),i.BBox={x:e,y:t,width:l,height:c}},"positionLabel"),x=(0,l.K2)((e,t,i,r,a,n)=>e.append("line").attr("x1",t).attr("y1",i).attr("x2",r).attr("y2",a).attr("stroke-width",n).attr("class","treeView-node-line"),"positionLine"),T=(0,l.K2)((e,t,i)=>{let r=0,a=0,n=(0,l.K2)((e,t,i,n)=>{let s=n*(i.rowIndent+i.paddingX);K(s,r,t,e,i);let{height:d,width:c}=t.BBox;x(e,s-i.rowIndent,r+d/2,s,r+d/2,i.lineThickness),a=Math.max(a,s+c),r+=d},"drawNode"),s=(0,l.K2)((t,r=0)=>{n(e,t,i,r),t.children.forEach(e=>{s(e,r+1)});let{x:a,y:d,height:c}=t.BBox;if(t.children.length){let{y:r,height:n}=t.children[t.children.length-1].BBox;x(e,a+i.paddingX,d+c,a+i.paddingX,r+n/2+i.lineThickness/2,i.lineThickness)}},"processNode");return s(t),{totalHeight:r,totalWidth:a}},"drawTree"),f=(0,l.K2)((e,t,i,r)=>{l.Rm.debug("Rendering treeView diagram\n"+e);let a=r.db,s=a.getRoot(),d=a.getConfig(),o=(0,n.D)(t),p=o.append("g");p.attr("class","tree-view");let{totalHeight:g,totalWidth:h}=T(p,s,d);o.attr("viewBox",`-${d.lineThickness/2} 0 ${h} ${g}`),(0,c.a$)(o,g,h,d.useMaxWidth)},"draw"),B={labelFontSize:"16px",labelColor:"black",lineColor:"black"},v={db:m,renderer:{draw:f},parser:u,styles:(0,l.K2)(({treeView:e})=>{let{labelFontSize:t,labelColor:i,lineColor:r}=(0,d.$t)(B,e);return` 2 .treeView-node-label { 3 font-size: ${t}; 4 fill: ${i}; 5 } 6 .treeView-node-line { 7 stroke: ${r}; 8 } 9 `},"styles")}}}]);
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.