import {bootPlatform} from './platform-v23.mjs?v=27'; const root=document.querySelector('#app'); try{ await bootPlatform(); await import('./app.mjs?v=27'); }catch(error){ root.replaceChildren();const h=document.createElement('h1');h.textContent='Your GoFam world needs a moment.';const p=document.createElement('p');p.textContent=error.message||'Check your connection and try again.';const b=document.createElement('button');b.textContent='Try again';b.onclick=()=>location.reload();root.append(h,p,b); } window.addEventListener('gofam:signed-out',()=>{const app=document.getElementById('app');if(app){app.inert=true;app.replaceChildren();}document.getElementById('modal-root')?.replaceChildren();location.reload();},{once:true});