import"./xihTtKlq.mjs";import{Ft as e,J as t,Jt as n,Lt as r,S as i,bt as a,c as o,dn as s,dt as c,et as l,fn as u,gt as d,l as f,nt as p,tt as m}from"./DRAiiyBy.mjs";var h=new Set([`$$slots`,`$$events`,`$$legacy`,`src`,`alt`,`id`,`draggable`,`width`,`height`,`placeholder`,`imgixParams`,`loading`,`style`,`onimageLoaded`,`onload`]),g=p(`
`),_=p(`
`),v=p(`
`,1);function y(p,y){u(y,!0);let b={imageLoaded:()=>a(()=>y.onimageLoaded?.())},x=o(y,`id`,3,void 0),S=o(y,`draggable`,3,!1),C=o(y,`width`,3,void 0),w=o(y,`height`,3,void 0),T=o(y,`placeholder`,3,!0),E=o(y,`imgixParams`,19,()=>({q:50})),D=o(y,`loading`,3,`lazy`),O=o(y,`style`,3,void 0),k=f(y,h),A=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return r?`${t}&${encodeURIComponent(n)}=${encodeURIComponent(r)}`:t},`?`),j=window.devicePixelRatio,M={blur:200,px:6,quality:15},N={dpr:j,format:`auto`,auto:`format`,...E()},P=e=>e,F=n(()=>P(y.src+A({...N}))),I=n(()=>P(y.src+A({...N,...M})));var L=m(),R=e(L),z=e=>{var t=g();l(e,t)},B=n=>{var a=v(),o=e(a),s=e=>{var t=_();i(t,()=>({id:x(),src:d(I),alt:y.alt,width:C(),height:w(),style:O(),draggable:S(),onload:y.onload,...k})),c(t),l(e,t)};t(o,e=>{T()&&e(s)});var u=r(o,2),f=()=>{b.imageLoaded()};i(u,()=>({id:x(),loading:D(),src:d(F),alt:y.alt,width:C(),height:w(),style:O(),onload:f,draggable:S(),...k})),c(u),l(n,a)};t(R,e=>{y.src?e(B,-1):e(z)}),l(p,L),s()}export{y as t};