const e=new AbortController;var t,r;export function WCRegistryLoaderCSS(e=!1,r="*",l=":not(:defined)"){clearTimeout(t),t=setTimeout((()=>{let t=r+"[laser-loader]"+l;e&&(t=r+l),[...document.body.querySelectorAll("replace-tag,"+t)].map((t=>{e&&t.setAttribute("laser-loader","laser-loader");const r=t.getBoundingClientRect();t.style.setProperty("--laserEdgeAni-width",r.width+"px"),t.style.setProperty("--laserEdgeAni-innerWidth",r.width-2+"px"),t.style.setProperty("--laserEdgeAni-innerHeight",r.height-2+"px"),t.style.setProperty("--laserEdgeAni-height",r.height+"px"),customElements.whenDefined(t.localName).then((e=>{"replace-tag"!=t.localName&&(t.setAttribute("loaded","loaded"),t.removeAttribute("laser-loader"),t.style.setProperty("--laserEdgeAni-width",null),t.style.setProperty("--laserEdgeAni-innerWidth",null),t.style.setProperty("--laserEdgeAni-height",null),t.style.setProperty("--laserEdgeAni-innerHeight",null),setTimeout((()=>{t.removeAttribute("popup-loader"),setTimeout((()=>{t.removeAttribute("loaded")}),1e3)}),1e3))}))}))}),10)}globalThis.addEventListener("resize",(function(){clearTimeout(r),r=setTimeout((()=>{globalThis.document.body.querySelectorAll("replace-tag,:not(:defined)").length>0?WCRegistryLoaderCSS():e.abort()}),100)}),{signal:e.signal});