/* 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 k=0;return function(){return kb;b++){var l=a&255;d[f++]=l;a=(a-l)/256}},AddFloat32Array:function(a){a=new Uint8Array(a.buffer);for(var b= 0;b=J)return;1==ja&&("FIRST"==b||"STOP"==b||5>n.counter||1==ka?sa():y={});y.ctxtpc=n.counter;h.postCount=n.counter;1==d&&setTimeout(function(){n({autopost:d,noRawData:l,async:f})},250);h.tBrowser=c();h.other=F(y);h.uField=F(L);h.cParam=F(M);a=1E3*((new Date).getTime()- G);if(a<2E3*N||1==l){var e=0;h.ctxtReq=F(la);h.eDesc="WEB_"+b+"_POST";1==va&&(h.Acq="N");0==n.counter?h.key=O+"_STATS":"RUNTIME"===b?h.eDesc="WEB_RUNTIME":"RUNTIME"!==b&&"FIRST_POST"!==b&&"TRAFFIC"!==b&&g!=m&&(a=a*m/g);h.url="";h.originUrl="";h.uaStr="";if("FIRST"==b||"STOP"==b||5>n.counter||1==ka)h.url=window.location.href,h.originUrl=document.referrer,h.uaStr=navigator.userAgent;for(var k in h)h[k]=encodeURIComponent(h[k]);if(0==l){h.key="TRAFFIC"==b?O+"_"+b:O+"_STATS";k=function(a){return 0!=a}; e=0;B.some(k)||H.some(k)||I.some(k)?(z.sensorsWorking=!0,b=1):(z.sensorsWorking=!1,b=0);k=P.some(k)||Q.some(k)||R.some(k)?1:0;for(var t=e=0;twa?!0:!1:e>xa?!0:!1;e=3*(b+k+k);t=m;1==C&&(m=ma,0==ja&&K());e="undefined"!==typeof w&&0d;d++)c=a&255,a>>=8,b[d]=c;a=ia(b,f);"undefined"!==typeof a&&A(a);return a}}function u(a,b,d){b!=m&&d.AddFloat32Array(a.slice(b,m));0!=b&&d.AddFloat32Array(a.slice(0, b))}function Y(a){0==g&&(G=(new Date).getTime(),c());var b=Aa?-1:1;null!=a.accelerationIncludingGravity?(B[g]=b*a.accelerationIncludingGravity.x,H[g]=b*a.accelerationIncludingGravity.y,I[g]=b*a.accelerationIncludingGravity.z):(B[g]=0,H[g]=0,I[g]=0);null!=a.acceleration?(V[g]=b*a.acceleration.x,W[g]=b*a.acceleration.y,X[g]=b*a.acceleration.z):(V[g]=0,W[g]=0,X[g]=0);null!=a.rotationRate?(P[g]=a.rotationRate.alpha*Z,Q[g]=a.rotationRate.beta*Z,R[g]=a.rotationRate.gamma*Z):(P[g]=0,Q[g]=0,R[g]=0);a=(new Date).getTime()- G;"undefined"!==typeof aa&&(N=1E3*aa);if(a>N/2){m=Math.round(g*N/a);ba=!0;b=1;if(!m||m&m-1)for(;b>=1;)f<<=1;d=f}m=b-mBa&&(ma=g,n({async:S,CtxtEvent:"TRAFFIC"}),C=!1);1==ba&&g>=m&&(0==qa&&(n({async:S,CtxtEvent:"RUNTIME"}),ca=(new Date).getTime()),G-ca>=D&&(n({async:S,CtxtEvent:"RUNTIME"}),ca=G),qa+=1,g=0,ba=!1)}function ra(a){a=void 0===a?"FIRST":a;da=!0;"undefined"!=typeof E&&E.setReceptivity()&&(C=!1);n({noRawData:!0,async:!0, CtxtEvent:void 0===a?"FIRST":a});g=0;"DeviceMotionEvent"in window&&(window.addEventListener("devicemotion",Y,!1),setTimeout(window.removeEventListener,18E5,"devicemotion",Y))}function K(){da&&(da=!1,n({noRawData:!0,async:!0,CtxtEvent:"STOP"}),window.removeEventListener("devicemotion",Y))}var z={},x=document.currentScript.getAttribute("src"),N=1E3,m=void 0,ma=void 0,g=0,h={},la={},L={},y={},M={},G=0,za=-1,aa,ea,ya="cracq",oa="ctxtfl.com/",pa="ctxtfl.com/",ua=!1,J=40,S=!0,C=!0,ja=!0,xa=16,wa=4,O=function(){var a= k(x).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*c-3?c=0:(c=Math.floor(4*c-3),100ha?!q(ha):!1;var da;D=void 0===D||isNaN(D)?8E3:1E3>=D?1E3:5E3<=D?5E3:8E3;var B=new Float32Array(200),H=new Float32Array(200),I=new Float32Array(200),V=new Float32Array(200),W=new Float32Array(200),X=new Float32Array(200),P=new Float32Array(200),Q=new Float32Array(200),R=new Float32Array(200);h.uaStr=navigator.userAgent; h.screenW=screen.width.toString();h.screenH=screen.height.toString();h.color=screen.colorDepth.toString();h.dpi=window.devicePixelRatio.toString();var Aa=~h.uaStr.indexOf("iPhone")||~h.uaStr.indexOf("iPad");h.ctxtReq=F(la);h.lang=navigator.language;var E=new function(){function a(a){var b=!1;var d=parseInt(a);if(40>=d){var c="low";var g="NonReceptive"}else c=50>=d?"average":"premium",g="Receptive";d=k(x).callback;if("undefined"!=typeof d)if(cbStr=d.split("."),5>=cbStr.length)try{if(1==cbStr.length)window[cbStr[0]](c); else if(2==cbStr.length)window[cbStr[0]][cbStr[1]](c);else if(3==cbStr.length)window[cbStr[0]][cbStr[1]][cbStr[2]](c);else if(4==cbStr.length)window[cbStr[0]][cbStr[1]][cbStr[2]][cbStr[3]](c);else if(5==cbStr.length)window[cbStr[0]][cbStr[1]][cbStr[2]][cbStr[3]][cbStr[4]](c);b=!0;z.callbackSetup=!0}catch(t){console.log("[CONTXTFUL INJECTION] ERROR caught: "+t+" for input : "+d)}else z.callbackSetup=!1,console.log("[CONTXTFUL INJECTION] ERROR: window."+d+"(str) is undefined"),console.log("[CONTXTFUL INJECTION] HINT: Make sure to add the callback=domain.function to the