/* esm.sh - @iconify/utils@3.1.7/lib/loader/modern */
import{defaultIconCustomisations as d}from"../customisations/defaults.mjs";import{getIconData as p}from"../icon-set/get-icon.mjs";import{iconToSVG as g}from"../svg/build.mjs";import{loaderDefaultHeightProp as h,loaderDefaultWidthProp as l,mergeIconProps as b}from"./utils.mjs";async function P(f,i,c,e){let t,{customize:s}=e?.customizations??{};for(let r of c)if(t=p(f,r),t){let o={...d};typeof s=="function"&&(t=Object.assign({},t),o=s(o,t,`${i}:${r}`)??o);let{attributes:{width:a,height:n,...u},body:m}=g(t,o);return await b(`<svg >${m}</svg>`,i,r,e,()=>({...u,...a?{[l]:a}:{},...n?{[h]:n}:{}}))}}export{P as searchForIcon};
//# sourceMappingURL=modern.mjs.map