/* This software Connector and its source code are the property of Contxtful Technologies Inc. Use of this script is Subject to the terms and conditions of the License Agreement. As a subscriber, you agree that you are solely responsible for providing all appropriate and legally required disclosures pertaining to the use and removal of the Connector(s) and obtain any legally required consents as needed, and you agree that it will defend, indemnify and hold Contxtful Technologies Inc. harmless from and against any and all third-party claims stemming from or related to the use of Tags as provided herein. */ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(c){var g=0;return function(){return gh;h++){var k=e&255;m[n++]=k;e=(e-k)/256}}function f(e){if("undefined"!==typeof e&&e.length)for(var h=0;h=R)return;1==oa&&("FIRST"==b||"STOP"==b||"TRIGGER"==b||5>x.counter||1==pa?C():I={});I.ctxtpc=x.counter; l.postCount=x.counter;1==d&&setTimeout(function(){x({autopost:d,noRawData:q,async:f})},250);l.tBrowser=c();l.other=F(I);l.uField=F(T);l.cParam=F(U);var m=1E3*((new Date).getTime()-N);if(m<2E3*O||1==q){var n=0;l.ctxtReq=F(qa);l.eDesc="WEB_"+b+"_POST";0==x.counter?l.key=da+"_STATS":"RUNTIME"===b?l.eDesc="WEB_RUNTIME":"RUNTIME"!==b&&"FIRST_POST"!==b&&"TRAFFIC"!==b&&u!=A&&(m=m*A/u);l.url="";l.originUrl="";l.uaStr="";if("FIRST"==b||"STOP"==b||5>x.counter||1==pa)l.url=window.location.href,l.originUrl=document.referrer, l.uaStr="NaN";for(var e in l)l[e]=encodeURIComponent(l[e]);if(0==q){l.key="TRAFFIC"==b?da+"_"+b:da+"_STATS";e=function(v){return 0!=v};var h;n=0;if(L.some(e)||P.some(e)||Q.some(e)){D.sensorsWorking=!0;var k=1}else D.sensorsWorking=!1,k=0;e=V.some(e)||W.some(e)||X.some(e)?1:0;for(n=h=0;nCa?!0:!1:h>Da?!0:!1;h=e&k;n=3*(k+e+h);1==M&&0==oa&&S();var w=a;"TRIGGER"==b&&(w=A);n="undefined"!==typeof H&&0d;d++)q=a&255,a>>=8,b[d]=q;a=na(b,f);"undefined"!==typeof a&&J(a);return a}}function E(a,b,d){b!=A&&d.AddFloat32Array(a.slice(b,A));0!=b&&d.AddFloat32Array(a.slice(0,b))}function ia(a){0==u&&(N=(new Date).getTime(),c());var b=Ia?-1:1;null!=a.accelerationIncludingGravity?(L[u]=b*a.accelerationIncludingGravity.x,P[u]=b*a.accelerationIncludingGravity.y,Q[u]=b*a.accelerationIncludingGravity.z):(L[u]= 0,P[u]=0,Q[u]=0);null!=a.acceleration?(ea[u]=b*a.acceleration.x,fa[u]=b*a.acceleration.y,ha[u]=b*a.acceleration.z):(ea[u]=0,fa[u]=0,ha[u]=0);null!=a.rotationRate?(V[u]=a.rotationRate.alpha*ja,W[u]=a.rotationRate.beta*ja,X[u]=a.rotationRate.gamma*ja):(V[u]=0,W[u]=0,X[u]=0);a=(new Date).getTime()-N;"undefined"!==typeof Y&&(O=1E3*Y);a>O/2&&(A=sa(u,O/a),Z=!0);u+=1;1==M&&a>Ja&&(a=A,A=u,x({async:aa,CtxtEvent:"TRAFFIC",dataSize:u}),A=a,M=!1);1==Z&&u>=A&&(0==ta&&(x({async:aa,CtxtEvent:"RUNTIME",dataSize:A}), ka=(new Date).getTime()),N-ka>=ua&&(x({async:aa,CtxtEvent:"RUNTIME",dataSize:A}),ka=N),ta+=1,u=0,Z=!1)}function sa(a,b){a=Math.round(a*b);Z=!0;b=1;if(!a||a&a-1)for(;b>=1;)f<<=1;d=f}a=b-aB&&(a=B);return a}function va(a){a=void 0===a?"FIRST":a;D.sampling=!0;"undefined"!=typeof Dfp&&Dfp.setReceptivity()&&(M=!1);x({noRawData:!0,async:!0,CtxtEvent:void 0===a?"FIRST":a});wa();u=0;"DeviceMotionEvent"in window&&(window.addEventListener("devicemotion", ia,!1),setTimeout(window.removeEventListener,18E5,"devicemotion",ia))}function S(){D.sampling&&(D.sampling=!1,x({noRawData:!0,async:!0,CtxtEvent:"STOP"}),window.removeEventListener("devicemotion",ia))}function wa(){try{Dfp.callbackInjection("-1",Dfp.getLookAlike())||xa()}catch(a){xa()}}function xa(){ya++;2>=ya&&setTimeout(function(){wa()},500)}var D={cicalls:[],ptim:[],clc:0,sicalls:[]},K=document.currentScript.getAttribute("src"),O=1E3,A=sa(32*O/1E3,2),u=0,l={},qa={},T={},I={},U={},N=0,Ha=-1,Y,ba, Fa="cracq",Ga="ctxtfl.com/",ra="ctxtfl.com/",Ba=!0,R=5,aa=!0,M=!1,oa=!0,Da=16,Ca=4,da=function(){var a=g(K).id;if(20b;b++){var f=d[b].charCodeAt();if(f<"0".charCodeAt()||f>"9".charCodeAt()&&f<"A".charCodeAt()||f>"Z".charCodeAt()&&f<"a".charCodeAt()||f>"z".charCodeAt()){b=!1;break b}}b=!0}if(b){b="";for(f=0;f4*q-3?q=0:(q=Math.floor(4*q-3),100ma?!p(ma):!1;D.sampling=!1;ua=1E3;var L=new Float32Array(B),P=new Float32Array(B),Q=new Float32Array(B),ea=new Float32Array(B),fa=new Float32Array(B),ha=new Float32Array(B),V=new Float32Array(B),W=new Float32Array(B),X=new Float32Array(B);l.uaStr="NaN";l.screenW="NaN";l.screenH="NaN";l.color="NaN";l.dpi="NaN";var Ia=~navigator.userAgent.indexOf("iPhone")|| ~navigator.userAgent.indexOf("iPad");l.ctxtReq=F(qa);l.lang="NaN";var z=new function(){return{SetId:function(a){this.userId=a},GetId:function(){return this.userId},SetUserField:function(a,b){T[a]=b},ClearUserField:function(){T={}},GetUserField:function(a){return T[a]},SetCampaignParam:function(a,b){U[a]=b},ClearCampaignParam:function(){U={}},GetCampaignParam:function(a){return U[a]},SetReceptivity:function(){"undefined"!=typeof Dfp&&Dfp.setReceptivity()},TriggerEvent:function(a){var b="no_Valid_parameter"; if("string"===typeof a||"object"===typeof a)b=a;I.Trigger=b;x({CtxtEvent:"TRIGGER",async:aa,dataSize:u});I={}}}};z.Results={"Attention Level":{Confidence:"Contact Contxtful",State:"Contact Contxtful"},"Device Movement":{Confidence:"Contact Contxtful",State:"Contact Contxtful"},"Holding In Hand":{Confidence:"Contact Contxtful",State:"Contact Contxtful"}};z.Modules={attention:{Level:"Contact Contxtful",State:"Contact Contxtful"},humanity:{Level:"Contact Contxtful",State:"Contact Contxtful"},movement:{Level:"Contact Contxtful", State:"Contact Contxtful"}};z.Data={Att:{Lv:"Contact Contxtful",St:"Contact Contxtful"},InHand:{Lv:"Contact Contxtful",St:"Contact Contxtful"},Mvt:{Lv:"Contact Contxtful",St:"Contact Contxtful"}};z.Response="Contact Contxtful";z.userId="Contact Contxtful";z.Recep="Contact Contxtful";l.userIdInternal="f0822c8e0335e7bb";z.userId=l.userIdInternal;l.userIdClient=g(K).userId;l.dataSampled="Y";la&&va();return{tests:D,Api:z,Start:va,Stop:S}}; // Tue Oct 12 18:54:24 UTC 2021