1const c=t=>t.startsWith("+")?t.replace(/^\+(?:\d{1,4}[\s-]|\d(?=\d{10})|\d{1,3})/,""):t,i=t=>t.replace(/\D/g,""),n=t=>{const s=t.replace(/\D/g,""),e=(s.length===11&&s.startsWith("1")?s.slice(1):s).slice(0,10);return e.length>=7?`(${e.slice(0,3)}) ${e.slice(3,6)}-${e.slice(6)}`:e.length>=4?`(${e.slice(0,3)}) ${e.slice(3)}`:e.length>0?`(${e}`:e},l=t=>{if(!t)return t;const s=t.search(/\s*(?:ext|x)/i);if(s===-1)return n(t);const r=n(t.slice(0,s)),e=t.slice(s);return r?`${r}${e}`:e},o=t=>{if(!t)return"";const s=i(t);return s.length!==10?t:`(${s.slice(0,3)}) ${s.slice(3,6)}-${s.slice(6)}`};export{c as a,o as b,l as c,n as f,i as s};
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.