import { attach } from '/tmp/cdp3.mjs'; const c = await attach('/web/temu/add') || await attach('dianxiaomi.com'); const o = await c.evalJS(`(()=>{const p=document.querySelector('#app').__vue_app__.config.globalProperties.$pinia; const d=JSON.parse(JSON.stringify(p._s.get('temuAddSkuDataStore').$state)); const a=JSON.parse(JSON.stringify(p._s.get('temuAddSkuAttrStore').$state)); const tables=[...document.querySelectorAll('table')].filter(t=>t.offsetParent!==null).map(t=>({ th:[...t.querySelectorAll('th')].map(e=>(e.innerText||'').replace(/\\s+/g,' ').trim()).slice(0,12), rows:[...t.querySelectorAll('tbody tr')].filter(x=>x.querySelectorAll('input').length).length})); return JSON.stringify({tables, skuN:(d.formState.skuDataList||[]).length, row0:(d.formState.skuDataList||[])[0], attrs:(a.formState.skuAttrs||[]).map(x=>({name:x.parentSpecName, n:(x.options||[]).length}))},null,1);})()`); console.log(String(o).slice(0,1400)); process.exit(0);