1var e=e=>{if(!e.identifier)return``;let t=e.identifier.split(`.`);return t.length===1?t[0]:(t?.at(1)??void 0)||``};function t(t,n){let r=t?.contentItems?.slice(0,n);return r?r.filter(t=>e(t)===`p`).length:0}function n(t,n){let r=t?.contentItems?.[n];return r?e(r)===`p`:!1}function r(e,t){let n=e?.contentItems?.[t];return!n||n.textHtml?.replace(/<\/?[^>]+(>|$)/g,``).slice(-1)===`:`}function i(t){return t?.contentItems?.filter(t=>e(t)===`p`).length||0}function a(e){let i=e?.contentItems?.length||0;for(let a=0;a<i;a++)if(t(e,a)>=3&&n(e,a-1)&&!r(e,a-1))return a;return-1}export{e as n,i as r,a as t};
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.