1import{d as e}from"./zyZk7soG.js";import{a as t,i as n,r,t as i}from"./CAijlBiw.js";var a=()=>{let a=i(),o=e(()=>r(a.value).replace(/\/+$/g,``)),s=e(()=>n(a.value));return{imageBaseUrl:o,normalizeOpencartImageUrl:e=>{let n=String(e||``).trim();if(!n)return``;if(/^https?:\/\//i.test(n)){try{let e=new URL(n);if(s.value.has(t(e.hostname))&&e.pathname.startsWith(`/image`))return new URL(`${e.pathname}${e.search}${e.hash}`,`${o.value}/`).toString()}catch{return n}return n}return n.startsWith(`/`)?`${o.value}${n}`:n.startsWith(`image/`)?`${o.value}/${n}`:`${o.value}/image/${n}`}}};export{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.