PageSourceSearch

https://grade.net.au/_nuxt/DH8XdHQx.js

js grade.net.au collected 2026-10-07 03:28:27 UTC 1,392 bytes, 1 lines download raw bytes

1import{u as m}from"./BnBD5Rqn.js";const o=/\/f\/[^/]+\/(\d+)x(\d+)\//;function h(r){if(!r)return null;const t=o.exec(r.split("/m/")[0]??"");return t?{width:Number(t[1]),height:Number(t[2])}:null}function u(r,t={}){if(!r)return"";const a=r.split("/m/")[0]??r,i=[];t.fitIn&&i.push("fit-in");const f=t.width??0,e=t.height??0,s=f>0||e>0;s&&i.push(`${f}x${e}`),!t.focal&&s&&t.smart!==!1&&i.push("smart");const n=[];return t.quality!==void 0&&n.push(`quality(${t.quality})`),t.format&&n.push(`format(${t.format})`),t.fill&&n.push(`fill(${t.fill})`),t.focal&&n.push(`focal(${t.focal})`),n.length>0&&i.push(`filters:${n.join(":")}`),i.length===0?`${a}/m/`:`${a}/m/${i.join("/")}`}function g(r,t,a={}){if(!r||t.length===0)return"";const{aspectRatio:i,...f}=a;return t.map(e=>{const s=i?Math.round(e*i):0;return`${u(r,{...f,width:e,height:s})} ${e}w`}).join(", ")}const x={content:"640px sm:640px md:768px lg:1024px xl:1440px",card:"640px sm:640px md:384px lg:512px xl:480px 2xl:640px"};function d(){const r=m().options,t=e=>({quality:r.quality||85,format:r.format?.[0]||"webp",smart:!1,...e});return{getDimensions:e=>{const s=h(e);if(!s)return{width:0,height:0,aspect:0};const{width:n,height:c}=s;return{width:n,height:c,aspect:n>0?c/n*100:0}},getTransformedUrl:(e,s={})=>u(e,t(s)),generateSrcset:(e,s,n={})=>{const{aspectRatio:c,...l}=n;return g(e,s,{...t(l),aspectRatio:c})}}}export{x as i,d as u};

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.