async page => { await page.unrouteAll({behavior:'wait'}); const events=[];page.on('response',r=>{if(r.url().includes('favicon.ico'))events.push({url:r.url(),status:r.status(),type:r.headers()['content-type']});});page.on('requestfailed',r=>events.push({failed:r.url(),error:r.failure()})); if(page.url()!=='http://127.0.0.1:52007/ui-kit/') throw Error('Expected own loaded origin'); const result=await page.evaluate(async()=>{ const url=location.origin+'/brand/favicon.ico';const res=await fetch(url);const b=new Uint8Array(await res.arrayBuffer());const v=new DataView(b.buffer);const hash=Array.from(new Uint8Array(await crypto.subtle.digest('SHA-256',b))).map(x=>x.toString(16).padStart(2,'0')).join(''); const decode=async(src)=>{const im=new Image();im.src=src;try{await im.decode();return {ok:true,width:im.naturalWidth,height:im.naturalHeight,image:im};}catch(e){return{ok:false,error:String(e)}}}; const bare=await decode(url);const frames=[];const row=document.createElement('section');row.style='position:fixed;z-index:999999;top:0;left:0;background:white;color:black;padding:30px;display:flex;gap:40px;align-items:center';row.setAttribute('aria-label','ICO native frame diagnostics'); for(let i=0;i