import{i,c as n,a}from"./protocol-CSwLUBaB.js";document.documentElement.setAttribute("data-viverse-ext-id",chrome.runtime.id);const t="https://playcanvas.com";function r(e){return{channel:a,requestId:e.requestId,ok:!1,error:"The extension request could not be completed."}}window.addEventListener("message",e=>{if(e.source!==window||e.origin!==t||!i(e.data))return;const s=e.data;chrome.runtime.sendMessage(s).then(o=>{window.postMessage(n(o)?o:r(s),t)}).catch(()=>{window.postMessage(r(s),t)})});
