")+"=([^;]*)"));return m?decodeURIComponent(m[1]):""}catch(e){return""}} function sc(n,v,a){try{document.cookie=n+"="+encodeURIComponent(v||"")+"; path=/; domain=.futuremultiverse.com; max-age="+a+"; SameSite=Lax";document.cookie=n+"="+encodeURIComponent(v||"")+"; path=/; max-age="+a+"; SameSite=Lax"}catch(e){}} function ec(n){["",".futuremultiverse.com",location.hostname,"futuremultiverse.com"].forEach(function(d){try{document.cookie=n+"=; path=/; max-age=0; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(d?"; domain="+d:"")+"; SameSite=Lax"}catch(e){}})} function clean(v){return String(v||"").toLowerCase().replace(/^@/,"").replace(/[^a-z0-9-]/g,"")} function hh(){var h=String(location.hostname||"").toLowerCase();if(!/\.futuremultiverse\.com$/i.test(h))return"";var f=h.split(".")[0]||"";return RESERVED[f]?"":f} function handle(){var p=qs();return clean(p.get("account_handle")||p.get("public_handle")||p.get("handle")||gs("fmv:public:account-handle")||gs("fmv:public:handle")||gs("futuremultiversehandle")||ck("fmv_public_handle")||hh())} function verified(){var p=qs();return truth(p.get("fmv_auth_2fa_verified"))||truth(p.get("fmv_2fa_verified"))||truth(p.get("two_factor_verified"))} function loggedOut(){var p=qs();return truth(p.get("guest"))||truth(p.get("fmv_logged_out"))||truth(p.get("fmv_logout"))||truth(p.get("disconnect"))} function connected(){var p=qs();if(loggedOut())return false;return verified()||truth(p.get("connected"))||truth(p.get("fmv_public_connected"))||truth(p.get("fmv_connected"))||truth(gs("fmv_public_connected"))||truth(gs("fmv_connected"))||!!gs("fmv:public:access-token")||!!gs("futuremultiverse_public_session")} function persist(){if(!connected())return;var h=handle();if(h){ss("fmv:public:account-handle",h);ss("fmv:public:handle",h);ss("futuremultiversehandle",h);sc("fmv_public_handle",h,2592000)}["fmv_public_connected","fmv_connected","fmv_auth_2fa_verified","fmv_2fa_verified","two_factor_verified","fmv:public:2fa-verified"].forEach(function(k){ss(k,"1");sc(k,"1",86400)});if(!gs("fmv:public:access-token"))ss("fmv:public:access-token","verified-public-session")} function label(){var h=handle();return gs("futuremultiversename")||(h?h.replace(/(^|-)([a-z])/g,function(_,a,b){return(a?" ":"")+b.toUpperCase()}):"Future Multiverse")} function sub(){var h=handle();return gs("futuremultiverseemail")||(h?"@"+h:"Connected")} function photo(){return gs("futuremultiverseprofilephoto")||gs("fmv_public_profile_photo")||"/images/graceai-profile-icon.jpg"} function url(p){var h=handle();return h?"https://"+h+".futuremultiverse.com/"+p.replace(/^\/+/, ""):"https://www.futuremultiverse.com/"+p.replace(/^\/+/, "")} function style(){if(document.getElementById("fmv-connected-homepage-bridge-v415-style"))return;var s=document.createElement("style");s.id="fmv-connected-homepage-bridge-v415-style";s.textContent="#fmv-v415-host{position:absolute;right:clamp(24px,10vw,170px);top:50%;transform:translateY(-50%);z-index:2147483000;font-family:Bai Jamjuree,Inter,Arial,sans-serif}#fmv-v415-host *{box-sizing:border-box}#fmv-v415-btn{width:52px;height:52px;border-radius:999px;border:2px solid #CFB16D;background:#fff;padding:3px;box-shadow:0 3px 12px rgba(0,0,0,.22);display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;color:#7da0ff;font-weight:700}#fmv-v415-btn img{width:44px;height:44px;border-radius:999px;object-fit:cover;display:block}#fmv-v415-btn span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:16px}#fmv-v415-menu{position:absolute;right:0;top:64px;width:251px;background:#fff;border:2px solid #CFB16D;border-radius:12px;color:#5E6278;box-shadow:0 18px 40px rgba(15,23,42,.18);overflow:visible}#fmv-v415-menu[hidden]{display:none}.fmv-v415-top{padding:11px 22px;border-bottom:1px solid #CFB16D}.fmv-v415-id{display:flex;align-items:center;gap:12px}.fmv-v415-id img{width:45px;height:45px;border-radius:999px;border:1px solid #CFB16D;object-fit:cover}.fmv-v415-name{font-size:15px;line-height:18px;font-weight:700;color:#181C32;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fmv-v415-email{margin-top:4px;font-size:13px;line-height:16px;font-weight:600;color:#6B6E7D;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fmv-v415-badge{margin:10px auto 0;width:max-content;display:flex;align-items:center;gap:8px;height:22px;border:1.5px solid #CFB16D;border-radius:6px;background:#1A1C37;padding:0 12px;color:#CFB16D;font-size:9px;font-weight:700}.fmv-v415-dot{width:8px;height:8px;border-radius:999px;background:#17C653;border:1px solid #CFB16D}.fmv-v415-section{padding:9px 8px;border-bottom:1px solid #CFB16D}.fmv-v415-section:last-child{border-bottom:0}.fmv-v415-row{height:39px;width:100%;display:flex;align-items:center;gap:16px;border:0;background:transparent;border-radius:6px;padding:0 15px;color:#5E6278;font-size:13px;font-weight:700;text-align:left;text-decoration:none;cursor:pointer}.fmv-v415-row:hover{background:#F9F9F9}.fmv-v415-icon{width:29px;height:29px;min-width:29px;border-radius:4px;border:2px solid #fff;background:rgba(207,177,109,.1);box-shadow:0 1px 3px rgba(0,0,0,.12);display:flex;align-items:center;justify-content:center;color:#5E6278;font-size:19px}.fmv-v415-icon img{width:18px;height:18px;border-radius:999px;object-fit:cover}.fmv-v415-lang{margin-left:auto;background:#F9F9F9;border-radius:4px;padding:6px 10px;font-size:12px;line-height:12px}.fmv-v415-lang-menu{position:absolute;left:243px;top:0;width:170px;max-height:381px;overflow:auto;background:#fff;border:2px solid #CFB16D;border-radius:12px;padding:10px;box-shadow:0 8px 14px rgba(15,42,81,.04)}.fmv-v415-lang-menu[hidden]{display:none}.fmv-v415-lang-menu button{height:38px;width:100%;border:0;background:#fff;border-radius:6px;padding:0 10px;text-align:left;color:#5E6278;font-size:14px;font-weight:700}.fmv-v415-lang-menu button:first-child{background:#E8EAFF;color:#1A1C37}#fmv-v415-grace{position:fixed;right:24px;top:110px;width:410px;max-width:calc(100vw - 32px);height:640px;max-height:calc(100vh - 132px);background:#fffaf0;border:2px solid #CFB16D;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.25);z-index:2147483200;overflow:hidden;font-family:Bai Jamjuree,Inter,Arial,sans-serif}#fmv-v415-grace[hidden]{display:none}.fmv-v415-grace-head{height:86px;background:#d9b85f;color:#fff;display:flex;align-items:center;gap:14px;padding:14px 18px}.fmv-v415-grace-head img{width:56px;height:56px;border-radius:999px;object-fit:cover}.fmv-v415-grace-title{font-size:24px;font-weight:800}.fmv-v415-grace-body{padding:18px;color:#1f2937;font-size:15px;line-height:1.45}.fmv-v415-grace-msg{background:#fff;border-radius:12px;padding:16px;margin-bottom:12px}.fmv-v415-grace-close{margin-left:auto;width:34px;height:34px;border:0;border-radius:999px;background:rgba(255,255,255,.22);color:#fff;font-size:22px;cursor:pointer}";document.head.appendChild(s)} function hideConnect(){if(!connected())return;Array.prototype.forEach.call(document.querySelectorAll("a,button"),function(e){var t=(e.textContent||"").replace(/\s+/g," ").trim();if(/Connect\s*\/\s*Onboard/i.test(t)){e.setAttribute("data-fmv-v415-hidden-connect","1");e.style.display="none"}})} function cleanup(){Array.prototype.forEach.call(document.querySelectorAll("#fmv-v111-host,#fmv-v405-host,#fmv-public-connected-header-v406,#fmv-v415-host:not([data-owner='v415'])"),function(e){if(e&&e.parentNode)e.parentNode.removeChild(e)})} function icon(){return ''} function openGrace(){try{window.dispatchEvent(new CustomEvent("fmv:graceai:open",{detail:{source:"public-connected-header"}}))}catch(e){};["openGraceAI","openGraceAi","FMVOpenGraceAI"].forEach(function(k){try{if(typeof window[k]==="function")window[k]()}catch(e){}});var g=document.getElementById("fmv-v415-grace");if(!g){g=document.createElement("div");g.id="fmv-v415-grace";g.innerHTML='
';document.body.appendChild(g);g.querySelector("button").onclick=function(){g.hidden=true}}g.hidden=false} function disconnect(){["fmv_public_connected","fmv_connected","futuremultiverseconnected","futuremultiverse_connected","fmv_auth_2fa_verified","fmv_2fa_verified","two_factor_verified","fmv:public:2fa-verified","fmv:auth:2fa-session-verified","fmv:public:access-token","fmv:auth:access-token","futuremultiverse_public_session","fmv_public_session","futuremultiversename","futuremultiverseemail","futuremultiverseprofilephoto","fmv:public:handle","fmv:public:account-handle","futuremultiversehandle","fmv_marketplace_access","marketplace_access"].forEach(function(k){try{localStorage.removeItem(k)}catch(e){}try{sessionStorage.removeItem(k)}catch(e){}ec(k)});location.href=url("/")+"?guest=1&fmv_logged_out=1&v415_public_logout=1"} function mount(){if(!connected())return;persist();style();cleanup();hideConnect();var header=document.querySelector("header")||document.querySelector("nav")||document.body;if(!header||document.getElementById("fmv-v415-host"))return;try{if(getComputedStyle(header).position==="static")header.style.position="relative"}catch(e){header.style.position="relative"}var h=handle();var host=document.createElement("div");host.id="fmv-v415-host";host.setAttribute("data-owner","v415");host.innerHTML='
';header.appendChild(host);var btn=host.querySelector("#fmv-v415-btn"),menu=host.querySelector("#fmv-v415-menu");btn.onclick=function(e){e.preventDefault();menu.hidden=!menu.hidden};host.querySelector("#fmv-v415-grace-btn").onclick=function(){menu.hidden=true;openGrace()};host.querySelector("#fmv-v415-disconnect").onclick=disconnect;var lang=host.querySelector("#fmv-v415-lang"),lm=host.querySelector("#fmv-v415-lang-menu"),timer;function ol(){clearTimeout(timer);lm.hidden=false}function cl(){clearTimeout(timer);timer=setTimeout(function(){lm.hidden=true},250)}lang.onmouseenter=ol;lang.onmouseleave=cl;lang.onclick=function(){lm.hidden=!lm.hidden};lm.onmouseenter=ol;lm.onmouseleave=cl;document.addEventListener("click",function(e){if(!host.contains(e.target))menu.hidden=true},true)} persist();if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",mount);else mount();new MutationObserver(function(){mount();hideConnect();cleanup()}).observe(document.documentElement,{childList:true,subtree:true});setInterval(function(){mount();hideConnect();cleanup()},700); })();