`;
window.mountCppLab = function(){
const m=document.getElementById('embeddedCppLabMount');
if(!m || m.dataset.mounted==='1') return;
m.innerHTML=CPP_PAGE_HTML;
m.dataset.mounted='1';
const scripts=m.querySelectorAll('script');
scripts.forEach(s=>{
try{ Function(s.textContent)(); }catch(e){ console.error(e); }
});
};
const oldGo=window.go;
if(typeof oldGo==='function'){
window.go=function(page){
const r=oldGo.apply(this,arguments);
if(page==='cpplab') setTimeout(window.mountCppLab,30);
return r;
};
}
})();