import{t as e}from"../preload-helper-4XLmkqGS.js";var t=null,n=null,r=new WeakMap;function i(){return n||=e(()=>import(`../OmniIconRenderer-CoEQCKwu.js`).then(e=>(t=new e.OmniIconRenderer,t)),[],import.meta.url),n}function a(e){e.tagName===`OMNI-ICON`&&(r.has(e)||(r.set(e,!0),!e.hasAttribute(`data-prerendered`)&&i().then(t=>t.attachRenderer(e))))}function o(e){if(e.nodeType===11){e.childNodes.forEach(o);return}e.nodeType===1&&(e.matches(`omni-icon`)?[e]:Array.from(e.querySelectorAll(`omni-icon`))).forEach(e=>a(e))}o(document.body),new MutationObserver(e=>{for(let{type:t,addedNodes:n}of e)t===`childList`&&n.forEach(o)}).observe(document.body,{childList:!0,subtree:!0});var s=()=>t,c=e=>{r.delete(e)},l=class extends HTMLElement{disconnectedCallback(){s()?.detachRenderer(this),c(this)}};`customElements`in window&&customElements.define(`omni-icon`,l);