1import{s as o}from"./__vite-dom.566f7651.js";function n(t,e){let s=typeof t=="string"?t:t.preview_image?t.preview_image.src:t.url;if(e===null)return s;if(e==="master")return s.replace(/http(s)?:/,"");const r=s.match(/\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif|webp)(\?v=\d+)?$/i);if(r){const a=s.split(r[0]),c=r[0];return(a[0]+"_"+e+c).replace(/http(s)?:/,"")}else return null}function f(t,e){let s=[];return(typeof t=="string"?e:p(t,e)).forEach(a=>{s.push(`${n(t,a+"x")} ${a}w`)}),s.join(",")}function p(t,e){let s=[],r=t.preview_image.width;return e.forEach(a=>{r>=a&&s.push(a)}),s}function i(t){return new Promise(e=>{!t||t.tagName!=="IMG"||t.complete?e():t.onload=()=>e()})}function u(t,e={}){var a;const r={...{srcAttr:"data-src",srcsetAttr:"data-srcset",loadedClass:"lazyloaded"},...e};((a=t.parentNode)==null?void 0:a.nodeName)==="PICTURE"&&Array.from(t.parentNode.querySelectorAll("source")).forEach(c=>{o(c,r.srcAttr,"src"),o(c,r.srcsetAttr,"srcset")}),o(t,r.srcAttr,"src"),o(t,r.srcsetAttr,"srcset"),r.loadedClass&&t.classList.add(r.loadedClass)}export{f as a,p as b,n as g,i,u as l};
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.