import{n as e}from"./collectionImages-DG90KIrV.js";function t(e){let t=e.trim();return t?t.startsWith(`//`)?`https:${t}`:t:``}function n(e){let n=e.skus.map(e=>{let n=e.imageUrl?.trim();if(!n)return e;let r=t(n);return r===n?e:{...e,imageUrl:r}}),r=e.images.filter(e=>e.role!==`sku`);return{...e,images:r,skus:n}}function r(n,r){let i=r.imageUrl?.trim();return i?e(n,t(i)):``}function i(e){let n=new Set,r=[];for(let i of e.skus){let e=t(i.imageUrl??``);!e||n.has(e)||(n.add(e),r.push(e))}return r}export{n as i,i as n,t as r,r as t};