1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-motion-OSKS7OIm.js","assets/vendor-react-DOIQJm1M.js"])))=>i.map(i=>d[i]); 2import{r as a,_ as C,j as o}from"./vendor-react-DOIQJm1M.js";import{d as j,C as y,c as b}from"./og-image.episode._id-DiXx5cb1.js";import{c as R}from"./podcast-owner-api-BisQFHBF.js";const N=[["path",{d:"M13 17a1 1 0 1 0-2 0l.5 4.5a0.5 0.5 0 0 0 1 0z",fill:"currentColor",key:"x1mxqr"}],["path",{d:"M16.85 18.58a9 9 0 1 0-9.7 0",key:"d71mpg"}],["path",{d:"M8 14a5 5 0 1 1 8 0",key:"fc81rn"}],["circle",{cx:"12",cy:"11",r:"1",fill:"currentColor",key:"vqiwd"}]],T=R("podcast",N);function $(e){let r=5381;for(let n=0;n<e.length;n++)r=(r<<5)+r+e.charCodeAt(n)|0;return Math.abs(r)}function A(e,r,n){r/=100,n/=100;const l=r*Math.min(n,1-n),s=c=>{const t=(c+e/30)%12;return n-l*Math.max(Math.min(t-3,9-t,1),-1)};return[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)]}function P(e,r,n){const[l,s,c]=[e,r,n].map(t=>(t/=255,t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)));return .2126*l+.7152*s+.0722*c}function L(e){const r=$(e),n=r%360,l=50+r%20,s=42+(r>>8)%14,c=`hsl(${n}, ${l}%, ${s}%)`,[t,p,u]=A(n,l,s),f=P(t,p,u)>.179?"rgba(0,0,0,0.7)":"rgba(255,255,255,0.85)";return{bg:c,fg:f}}const D=2,V=1500,w=a.lazy(()=>C(()=>import("./vendor-motion-OSKS7OIm.js"),__vite__mapDeps([0,1])).then(e=>({default:e.motion.div})));function F({src:e,title:r,alt:n,className:l,loading:s="lazy",layoutId:c,size:t="md"}){const[p,u]=a.useState(!1),m=a.useRef(0),f=a.useRef();a.useEffect(()=>(u(!1),m.current=0,()=>{f.current&&clearTimeout(f.current)}),[e]);const x=a.useMemo(()=>r?L(r):null,[r]),E=t?y[t]:void 0,g=a.useMemo(()=>{var i;return!e||t===!1?e:(i=j(e,y[t]))!=null?i:e},[e,t]),k=a.useMemo(()=>{if(!e||t===!1||t==="xs")return;const i=y[t],h=Math.round(i/2),d=j(e,h),_=j(e,i);if(!(!d||!_))return`${d} 1x, ${_} 2x`},[e,t]),S=()=>{m.current<D?(m.current+=1,u(!0),f.current=setTimeout(()=>{u(!1)},V)):u(!0)};if(!e||p){const i=o.jsxs(o.Fragment,{children:[o.jsx(T,{className:"h-1/4 w-1/4 shrink-0",style:{opacity:x?.7:.4}}),r&&o.jsx("p",{className:"mt-1 line-clamp-2 px-1 text-center text-[10px] font-medium leading-tight",style:{opacity:.8},children:r})]}),h=b("flex flex-col items-center justify-center overflow-hidden",l),d=x?{backgroundColor:x.bg,color:x.fg}:void 0;return c?o.jsx(a.Suspense,{fallback:o.jsx("div",{className:h,style:d,children:i}),children:o.jsx(w,{layoutId:c,className:h,style:d,children:i})}):o.jsx("div",{className:h,style:d,children:i})}const v=o.jsx("img",{src:g!=null?g:void 0,srcSet:k,alt:n!=null?n:r?`${r} artwork`:"",loading:s,decoding:"async",width:E,height:E,onError:S,draggable:!1,className:"h-full w-full object-cover select-none"}),M=b("overflow-hidden",l);return c?o.jsx(a.Suspense,{fallback:o.jsx("div",{className:M,children:v}),children:o.jsx(w,{layoutId:c,className:M,children:v})}):o.jsx("div",{className:M,children:v})}export{F as P,L as s};
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.