1import{D as e,F as t,T as n,U as r,W as i,Z as a,ct as o,it as s,k as c,ot as l,st as u}from"./vendor-vue-Bu-KQjoC.js";import{i as d,n as f,r as p,t as m}from"./index-BE2-dWra.js";function h(e){let t=s(!1),i=s(!1),o=s(0),c=0,u=null,p=null,h=n(()=>l(e)||``),g=n(()=>f(h.value,o.value));function _(){u&&(clearTimeout(u),u=null)}function v(){let e=p;!e||i.value||e.complete&&e.naturalWidth>0&&(t.value=!0)}function y(){_();let e=d(c);u=setTimeout(()=>{c+=1,o.value=c,t.value=!1},e)}function b(){if(_(),c>=m.length){i.value=!0;return}y()}function x(){_(),t.value=!0}function S(e){p=e instanceof HTMLImageElement?e:null,v()}return a(()=>l(e),()=>{_(),c=0,o.value=0,t.value=!1,i.value=!1}),r(_),{displaySrc:g,loaded:t,exhausted:i,attempt:o,bindImageEl:S,handleLoad:x,handleError:b}}var g=[`src`],_=t({__name:`ImageLoadFallback`,props:{objectFit:{default:`cover`}},setup(e){let t=e,r=n(()=>p()),a=n(()=>t.objectFit===`contain`?`object-contain`:`object-cover`);return(e,t)=>(i(),c(`img`,{src:r.value,alt:``,"data-no-retry":`1`,class:o([`h-full w-full`,a.value])},null,10,g))}}),v=[`src`,`alt`,`loading`],y=t({__name:`BlogCachedImage`,props:{src:{},alt:{default:``},blur:{type:Boolean,default:!1},fit:{default:`cover`}},setup(t){let n=t,{displaySrc:r,exhausted:a,attempt:s,bindImageEl:l,handleLoad:d,handleError:f}=h(()=>n.src);return(n,p)=>(i(),c(`div`,{class:o([`relative overflow-hidden bg-reader`,[t.blur?`blog-gore-thumb`:``,t.fit===`contain`?``:`h-full w-full`]])},[u(a)?(i(),e(_,{key:0})):(i(),c(`img`,{key:1,ref:u(l),src:u(r),alt:t.alt,"data-no-retry":`1`,loading:u(s)===0?`lazy`:`eager`,decoding:`async`,class:o([`w-full`,[t.fit===`contain`?`h-auto max-h-36 object-contain md:max-h-40`:`h-full object-cover`,t.blur?`blur-xl`:``]]),onLoad:p[0]||(p[0]=(...e)=>u(d)&&u(d)(...e)),onError:p[1]||(p[1]=(...e)=>u(f)&&u(f)(...e))},null,42,v))],2))}});export{y 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.