(()=>{const r={newPotentialVisitorTrackingId:"miklax8j78lb7vl50rvu64v69mjucvxz9504tet457ikwz4z3ewvwuveal06byfq",visitorTrackingIdCookieName:"clive-visitor-tid-927",host:"live.clive.cloud",accountId:"927"},c=r.visitorTrackingIdCookieName,l=(t,n)=>{const o=t+"=",s=n.split(";");for(let i=0;i<s.length;i++){let e=s[i];for(;e.charAt(0)==" ";)e=e.substring(1);if(e.indexOf(o)==0)return e.substring(o.length,e.length)}return""},u=()=>{const t=window.location.hostname;if(!isNaN(Number(t.replace(/\\./gi,""))))return null;const n=t.split("."),o=n.length;return o<2?null:"."+n[o-2]+"."+n[o-1]},d=(t,n,o)=>{const s=new Date;s.setTime(s.getTime()+o*24*60*60*1e3);const i="expires="+s.toUTCString(),e=u(),a=e?";Domain="+encodeURIComponent(e):"";document.cookie=t+"="+n+";"+i+";path=/"+a,l(t,document.cookie)||(document.cookie=t+"="+n+";"+i+";path=/")},g=t=>{d(c,t,3650)},p=()=>{let t=l(c,document.cookie);return t||(t=r.newPotentialVisitorTrackingId,g(r.newPotentialVisitorTrackingId)),t},v=(t,n,o,s,i)=>{const e=new XMLHttpRequest;e.withCredentials=i!==!1,e.open(n,k(t),!0);for(let a in s)e[a]=s[a];e.send(o)},k=t=>{const n=new URL(t);return n.searchParams.set("referer",window.location.href),n.toString()},h=p(),m=encodeURIComponent(document.title);v(`https://${r.host}/page-views/${r.accountId}/visitors/${h}/register?t=${m}`,"GET",null,{onload:function(){if(this.status===200){const t=JSON.parse(this.responseText);t.success&&t.newTrackingId&&g(t.newTrackingId)}}});})();