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