1import{n as e}from"./errorLogger-D9Ayy1dk.js";const t=/^07[0-9]{8}$/;function n(e){let t=e?.nativeEvent?.inputType;return t===`insertFromPaste`||t===`insertFromPasteAsQuotation`?`paste`:t===`insertReplacementText`||t===`insertFromDrop`?`autofill_or_replace`:t?`typed`:`unknown`}function r(t,r={}){let i=String(t||``).replace(/\D/g,``);if(i.length===0)return``;if(i.length===1)return i===`0`?`0`:`07`;let a=i;if(i.startsWith(`0040`)?i=`0`+i.slice(4):i.startsWith(`40`)&&i.length>=11&&(i=`0`+i.slice(2)),i.length>10&&(i=i.slice(-10)),i.length===9&&i[0]!==`0`&&(i=`0`+i),i=i.slice(0,10),a.length>10){let o=r.field||`unknown_field`,s=r.source||n(r.event);e(`phone-mask-overflow`,{message:JSON.stringify({field:o,raw:String(t||``),rawDigits:a,rawLen:a.length,normalized:i,source:s})})}return i.length<=4?i:i.length<=7?i.slice(0,4)+` `+i.slice(4):i.slice(0,4)+` `+i.slice(4,7)+` `+i.slice(7)}export{r as n,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.