1!function(e){"use strict";"u"<typeof cta&&(e.cta=function(){let t,n={},i="/bi/api/",o="ct_v1_",r={domain:"connecteam.com",local:"localhost",api_host:"https://bi-dev.connecteam.com:8080",referrer:y("referrer")},s=new Promise(function(e,n){t=e}),a=!0,l=[],c=null,u=[],d=null,f=null;function h(e){null!=d&&(clearTimeout(d),d=null),null!=f&&(clearTimeout(f),f=null);let t=u.splice(0);if(l.length>0){let e=c,n=l.splice(0);c=null;let i={metadata:e,events:[]},o=m(JSON.stringify(i));for(let r=0;r<n.length;r++){let s;try{s=m(JSON.stringify(n[r]))+1}catch(e){continue}i.events.length>0&&o+s>49152&&(t.push(i),o=m(JSON.stringify(i={metadata:e,events:[]}))),i.events.push(n[r]),o+=s}i.events.length>0&&t.push(i)}for(let n=0;n<t.length;n++)try{!function(e,t){let n=r.api_host+i+"Bulk/ReportHit/",o=JSON.stringify(e);if(t&&navigator.sendBeacon){let e=new Blob([o],{type:"application/json; charset=UTF-8"});if(navigator.sendBeacon(n,e))return}fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:o,keepalive:!0}).then(function(e){if(!e.ok){if(e.status>=400&&e.status<500)return void console.error("cta: bulk chunk rejected with status "+e.status);throw Error("Network response was not ok")}}).catch(function(){p(e)})}(t[n],!0===e)}catch(e){p(t[n])}}function m(e){return new Blob([e]).size}function p(e){u.length>=10&&(u.shift(),console.error("cta: dropped a bulk chunk after repeated delivery failures")),u.push(e),null==f&&(f=setTimeout(function(){f=null,h()},3e3))}function g(){let t=new Date().getTime();return e.performance&&"function"==typeof e.performance.now&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"===e?n:3&n|8).toString(16)})}function x(e,t,n){let i,o=new Date;n?o.setTime(o.getTime()+60*n*1e3):o.setTime(o.getTime()+15768e7),i="; expires="+o.toGMTString();let r=document.domain;r="localhost"===(r=-1!==r.indexOf("connecteam.com")?"connecteam.com":r)?r:"."+r,document.cookie="cta_"+e+"="+t+i+";domain="+r+";path=/"}function y(e,t=!0){let n;n=t?"cta_"+e+"=":e+"=";let i=document.cookie.split(";");for(let e=0;e<i.length;e++){let t=i[e];for(;" "==t.charAt(0);)t=t.substring(1,t.length);if(0==t.indexOf(n))return t.substring(n.length,t.length)}return null}n.init=function(s,l,c=!1,u=!1){let d;r.isDev=c,r.isDisabled=u,(c||-1==document.domain.indexOf(r.domain))&&(r.domain=document.domain);let f=new URLSearchParams(e.location.search),m=f.get("cta_clientId");m&&x("clientId",m);let p=f.get("cta_v1");p&&x(o,p);let g=f.get("cta_sessionId");g&&x("sessionId",g),r.api_host=s,r.gaId=l;let v=document.referrer;return null==S()||""!=v&&-1==new URL(v).hostname.indexOf(r.domain)?this.session(b(),!1):null!==(d=y("sessionSync"))&&T(d),function(){function e(){document.getElementsByTagName("body")[0].onmousemove=function(){a=!0}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>e()):e(),setInterval(function(){if(a){var e,t;a=!1;let o=S();null==o?n.session(b(),!0):(x("sessionId",o,30),e=o,t=new Date().getTime(),fetch(r.api_host+i+"CreateSession/",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:e,clientSessionHeartbeatTime:t})}))}},1e4)}(),setInterval(function(){h()},3e4),e.addEventListener("pagehide",function(){h(!0)}),document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&h(!0)}),t(),this},n.session=function(t,n=!1){let i;h();let s={},a={};s.clientId=v(),s.sessionId=t;let l=performance.getEntriesByType("navigation");l.length>0&&(i=l[0].type),n||["reload","back_forward"].includes(i)?s.visitId=y(o):(x(o,t),s.visitId=t);let c=new Date;a.clientSessionStartTime=c.getTime(),a.timezone=c.toString().match(/([A-Z]+[+-][0-9]+.*)/)[1],a.gaId=r.gaId,r.referrer=document.referrer,x("referrer",r.referrer),a.referralPath=r.referrer,a.screenResolution=e.screen.availHeight+" x "+e.screen.availWidth+" | "+e.screen.height+" x "+e.screen.width,a.host=e.location.href,a.extra={},a.extra.isResetSession=n,a.extra.navigationType=i,a.extra.fbp=y("_fbp",!1),s.session=a,x("sessionSync",JSON.stringify(s),30),T(s)},n.reportHit=function(t,i){return new Promise(function(a){s.finally(function(){let s=S();null==s&&(s=b(),n.session(s,!0)),function(t,n,i){try{n=JSON.parse(JSON.stringify(n))}catch(e){}n.clientHitStartTime=new Date().getTime(),void 0==n.host&&(n.host=e.location.href),n.pageTitle=document.title,n.eventId=g(),"number"==typeof n.version&&(n.version=String(n.version)),"number"==typeof n.value&&(n.value=String(n.value));let s={type:t,hit:n};(r.isDev||r.isDisabled)&&console.debug("%cBi.report","background: dar
1kblue; color: white; padding: 2px 3px; border-radius: 3px;",JSON.stringify(s,null,2)),r.isDisabled||(0===l.length&&(c={clientId:v(),sessionId:i,visitId:y(o)}),l.push(s),l.length>=20?h():null==d&&(d=setTimeout(h,5e3)))}(t,i,s),a()})})},n.clientId=function(){return v()},n.sessionId=function(){return S()},n.visitId=function(){return y(o)},n.clearLead=function(){x("leadId","",-1)},n.ready=function(){return s};function v(){let e=y("clientId");return null==e&&x("clientId",e=g()),e}function S(){return y("sessionId")}function T(e){return fetch(r.api_host+i+"CreateSession/",{method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(e)}).then(e=>{if(e.ok)x("sessionSync","",-1);else throw Error("Network response was not ok")}).catch(e=>{console.error("There was a problem with creating session:",e)})}function b(){let e=g();return x("sessionId",e,30),e}return n}())}(window);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.