document.addEventListener("DOMContentLoaded",(function(){function t(t){let e=t+"=",n=decodeURIComponent(document.cookie).split(";");for(let t=0;t<n.length;t++){let o=n[t];for(;" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(e))return o.substring(e.length,o.length)}return""}function e(e){let n=`${e}=${t(e)};expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;domain=.${window.location.hostname.split(".").slice(-2).join(".")}`;console.log(n),document.cookie=n}let n=t("kmps_usrid");""!==n&&async function(t){return await(await fetch("https://apis.kompas.com/api/isdeleted",{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({mykompas_id:t})})).json()}(n).then((t=>{t.status&&["kmp_uid","kmp_lgn","kmps_usrid","ukid","kmp_nm","lgn_w","XKMPSS"].map(((t,n)=>{e(t)}))})).catch((t=>console.error(t)))}));