1const r="+7 (___) ___-__-__";const u=/^7[3-9]\d{9}$/;function a(i){let e=String(i??"").replace(/\D/g,"");return e?(e[0]==="8"?e=`7${e.slice(1)}`:e[0]!=="7"&&(e=`7${e}`),e.slice(0,11)):""}function c(i){const e=a(i);if(!e)return"";const t=e.slice(1);let n="+7";return t.length&&(n+=` (${t.slice(0,3)}`),t.length>3&&(n+=`) ${t.slice(3,6)}`),t.length>6&&(n+=`-${t.slice(6,8)}`),t.length>8&&(n+=`-${t.slice(8,10)}`),n}function _(i,e){const t=i.target,n=c(t.value);if(t.value!==n){const l=t.selectionStart??t.value.length,s=l>=t.value.length?n.length:Math.max(0,l+n.length-t.value.length);t.value=n,t.setSelectionRange(s,s)}e.value=n}function o(i){return u.test(a(i))}function g(i,e="ТелеÑон"){const t=String(i??"").trim();return t?o(t)?null:`${e}: введиÑе Ð½Ð¾Ð¼ÐµÑ Ð² ÑоÑмаÑе ${r}`:`${e}: ÑкажиÑе номеÑ`}export{r as P,_ as a,c as f,g as v};
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.