await new Promise(r=>setTimeout(r, 20000)); const v=(await eda.pcb_PrimitiveVia.getAll()).length; const l=(await eda.pcb_PrimitiveLine.getAll()).length; const mods=[]; for (const m of document.querySelectorAll('[class*="modal"],[class*="Modal"]')) { const t=(m.innerText||'').trim().replace(/\s+/g,' '); if(t && t.length<200 && m.offsetParent!==null) mods.push(t); } const dlg = !!Array.from(document.querySelectorAll('legend')).find(x=>(x.textContent||'').trim()==='忽略网络' && x.offsetParent!==null); return {v,l,dlg,mods:[...new Set(mods)].slice(0,4)};