1import{D as a,i}from"./languages-0HyQyHlu.js";import{B as u,i as l,b as c,c as g,d as f}from"./legalPaths-3K5gZD5Y.js";const L="ru",E={[u]:L},A=Object.entries(E);function m(n,t){const e=t.endsWith("/")?t.slice(0,-1):t;return n===e||n.startsWith(`${e}/`)}function F(n){for(const[t,e]of A)if(m(n,t))return e;return null}function _(n){if(!l(n)){const e=F(n);if(e)return e;const r=n.split("/")[1]??"";return i(r)?r:null}const t=c(n);return G(t)??g(t)}function G(n){const t=n.split("/"),e=t[t.length-1],r=t[t.length-2];if(t.length>=2&&f.has(e)&&i(r))return r;for(let s=t.length-1;s>=1;s--){const o=t[s];if(i(o))return o}return null}function U(n){return _(n)??a}function h(n,t,e){if(!n)return"";if(n.startsWith("http://")||n.startsWith("https://"))try{const r=new URL(n);return e.some(s=>r.hostname===s)?(r.hostname=t,r.toString()):n}catch{return n}return t.includes("://")?`${t}${n}`:`https://${t}${n}`}export{U as a,h as r};
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.