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