const t=(t,r,e)=>{if("undefined"==typeof MutationObserver)return;const n=new MutationObserver((t=>{(t=t.filter((t=>t.target.nodeName===r.toLocaleUpperCase()))).length>0&&e()}));return n.observe(t,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),n},r=async(t,r)=>{const e=Array.from(t.querySelectorAll(r)),n=[];for(const t of e){const r=await t.getLevelInfo();n.push(r)}return n};export{t as o,r}