const t=[".frame.claudeusercontent.com",".frame.staging.claudeusercontent.com"],e=/^\/_f\/[A-Za-z0-9_-]{1,64}\/_thumb\.img$/,n=new Set(["ant-frame-content-prod","ant-frame-content-staging"]),a=/^\/([A-Za-z0-9._-]+)\/([0-9a-f-]{36})\/v\/([A-Za-z0-9_-]{1,64})\/_thumb\.img$/,r=(r,o)=>{if(!r)return null;let c;try{c=new URL(r)}catch{return null}if(t.some(t=>c.origin===`https://${o}${t}`))return e.test(c.pathname)?c.href:null;const m=a.exec(c.pathname);return m&&m[2]===o&&"https://storage.googleapis.com"===c.origin&&n.has(m[1])?c.href:null};export{r as t};
