document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{let m="string"==typeof window.GROUP_IDENT?window.GROUP_IDENT:"";function d(){let t="";var r,e=document.cookie.split("; ").reduce((t,r)=>{var[r,e]=r.split("=");return r&&e&&(t[r]=decodeURIComponent(e.trim())),t},{});return t=e._fbc||"",e=e._fbp||"",t||(r=new URLSearchParams(window.location.search).get("fbclid"))&&(t=`fb.1.${Date.now()}.`+r),{fbc:t,fbp:e}}try{let r=sessionStorage.getItem("trackId"),o=!!r,{fbc:n,fbp:a}=d(),i=!1,c=0,s=(r||(r=crypto.randomUUID().replace(/-/g,"")||Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),sessionStorage.setItem("trackId",r)),setInterval(()=>{var t,e;i||0<(t=Array.from(document.querySelectorAll("a")).filter(t=>t.href.match(/^https:\/\/.*micromentor\.org\/signup/)||t.href.match(/^https:\/\/.*micromentor\.org\/signin/))).length&&(t=t,e=r,0!==t.length&&t.forEach(r=>{try{var t=new URL(r.href);e&&t.searchParams.set("t",e),m&&(t.hostname=m+".micromentor.org",t.searchParams.set("groupIdent",m)),r.setAttribute("href",t.toString())}catch(t){console.error(`Error updating link ${r.href}:`,t)}}),i=!0),o||(n&&a||({fbc:n,fbp:a}=d()),n&&a&&((async(t,r,e,o)=>{t={query:"mutation M($input: UserTrackingInput!) { createUserTracking(input: $input) }",variables:{input:{trackId:t,metaClickId:r,metaBrowserId:e,metaPixelId:o}}};try{return await(await fetch("https://mmdata.micromentor.org/mmdata/api/graphql",{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer none","x-authorization-auth-type":"none","x-device":"www.micromentor.org"}})).json()}catch(t){return!console.error("Error sending to mmdata:",t)}})(r,n,a,"1841994169638548"),o=!0)),(i&&o||9