/*
 * Copyright (c) 2013 Netbiscuits GmbH
 * All rights reserved. Unless required by applicable law
 * or agreed to in writing, this software/data
 * USAGE IS STRICTLY PROHIBITED
 *
 * Date: 2013-2-19
 */
(function(){var JSON;var deviceDetect;var dcsInitialization;dcsInitialization=(function(func){return func;}(function DCS_initialization(response,deviceDetectCallbacks){var CONSTANT={LOG:"log",SILENT:"silent",THROW:"throw",ROOT:window};var DCS={};DCS.dcsVersion="1.0.7";function raiseException(){var i;for(i=0;i<response.errors.length;i+=1){DCS._error(response.errors[i].text+". "+response.errors[i].reason);}}function exportPlugin(){var settingsNames=DCS.settings.name,namesLength,i;if(typeof settingsNames==="string"){settingsNames=[settingsNames];}namesLength=settingsNames.length;function processNames(nsName){var namespaceName=nsName,objectTree,papaObject,pluginName;objectTree=getTree(namespaceName);papaObject=getPreLast(objectTree);pluginName=namespaceName.split(".");pluginName=getLast(pluginName);if(papaObject){papaObject[pluginName]=DCS;}}for(i=0;i<namesLength;i+=1){processNames(settingsNames[i]);}}function mergeClientDetection(){if(isObject(deviceDetectCallbacks)){DCS._data=merge(deviceDetectCallbacks,DCS._data);}}function initPlugin(){mergeClientDetection();exportPlugin();raiseException();return DCS;}var create=Object.create?function(){return Object.create.apply(Object,arguments);}:function(obj){var F=function(){};F.prototype=obj;return new F();};var trim=String.prototype.trim?function(string){return string.trim();}:function(string){return string.replace(/^\s+|\s+$/g,"");};function isObject(obj){return Object.prototype.toString.call(obj)==="[object Object]"||typeof obj==="object";}function merge(from,to){var propertyName;for(propertyName in from){if(isObject(from[propertyName])){if(!to.hasOwnProperty(propertyName)){to[propertyName]={};}merge(from[propertyName],to[propertyName]);}else{to[propertyName.toLowerCase()]=from[propertyName];}}return to;}function getLast(arr){return arr[arr.length-1];}function setLast(arr,val){arr[arr.length-1]=val;}function getPreLast(arr){return arr[arr.length-2];}function getTree(string,context){var path;var i;var res;var current_level;string=trim(string);path=string.split(".");current_level=context||CONSTANT.ROOT;res=[current_level];for(i=0;i<path.length;i+=1){if(current_level&&isObject(current_level)&&path[i] in current_level){current_level=current_level[path[i]];}else{current_level=undefined;}res.push(current_level);}return res;}function updateTree(string,context,value){var path;var i;var current_level;string=trim(string);path=string.split(".");current_level=context||CONSTANT.ROOT;for(i=0;i<path.length;i+=1){if(i===path.length-1){current_level[path[i]]=value;}else{if(current_level&&isObject(current_level)&&path[i] in current_level){current_level=current_level[path[i]];}else{current_level[path[i]]={};current_level=current_level[path[i]];}}}}DCS.settings=response.settings;DCS._data=response.data;DCS._log=function(){if(window.console&&typeof window.console.log==="function"){window.console.log.apply(window.console,arguments);}};DCS.Error=function(message){if(this.constructor!==DCS.Error){return new DCS.Error(message);}else{message=DCS.settings.name+": "+message;this.message=message;}};DCS.Error.prototype=create(Error.prototype);DCS.Error.prototype.constructor=DCS.Error;DCS._error=function(error){var loglevel;if(typeof error==="string"){this._error(this.Error(error));}else{loglevel=this.settings.loglevel;switch(loglevel){case CONSTANT.SILENT:break;case CONSTANT.THROW:throw error;case CONSTANT.LOG:this._log(error.message);break;default:this._log(error.message);this._log(DCS.settings.name+': Invalid "loglevel" setting: "'+loglevel+'"');break;}}};DCS.get=function(propertyName){var propertyValue;var path;if(propertyName&&propertyName.toString){if(propertyName.toString().toLowerCase()==="device.model"){propertyName="device.modelname";}path=getTree(trim(propertyName.toString().toLowerCase()),this._data);propertyValue=getLast(path);if(typeof propertyValue==="undefined"){this._error('Property "'+propertyName+'" is not provided');}}if(typeof propertyValue==="function"){try{propertyValue=propertyValue();}catch(err){DCS._error('Error, while evaluating "'+propertyName+'" ');}}return propertyValue;};DCS.set=function(propertyName,value){if(propertyName&&propertyName.toString){updateTree(trim(propertyName.toString().toLowerCase()),this._data,value);}};DCS.isProvided=function(propertyName){var foundProperty;var path;if(propertyName&&propertyName.toString){propertyName=trim(propertyName.toString().toLowerCase());path=getTree(propertyName,DCS._data);foundProperty=getLast(path);return foundProperty!==null&&foundProperty!==undefined;}};return initPlugin();}))||function(){};JSON={};JSON.data=(function(obj){return obj;}(
{"device" : {"modelname" : "Windows PC", "operatingsystemversion" : "7", "model" : "Windows PC", "operatingsystemmodel" : "Windows 7", "operatingsystemvendor" : "Microsoft", "modelseries" : "Windows PC", "isbot" : false, "displayresolutiondetectionmethod" : "document client width", "operatingsystem" : "Windows", "copyright" : "Copyright (c) 2013 Netbiscuits GmbH. All rights reserved.\\nUnless required by applicable law or agreed to in writing, this\\nsoftware/data USAGE IS STRICTLY PROHIBITED.", "canswitchdisplayorientation" : false}, "browser" : {"model" : "Chrome 42", "markup" : {"canhtmltransitional" : true, "canhtml5" : true, "canhtmlstrict" : true, "canxhtml1.0" : true, "canxhtml1.1" : true, "canxhtml1.2" : true}, "canmetaredirect" : true, "canserverredirect" : true, "modelseries" : "Chrome", "canjavascriptredirect" : true, "css" : {"vendorprefix" : "-webkit-", "canpositionfixed" : true}}}
))||{};JSON.errors=(function(arr){return arr;}(

))||[];deviceDetect=(function(obj){return obj;}(
{"internal" : {"cookiesupporttested" : function() {  var support, cvalue, readUrl;  support = false;  cvalue = 0;  try {   if (document.cookie) {    var cookies = document.cookie.split("; ");    var output = "";    for ( var i = 0; i < cookies.length; i++) {     var cookiesplit = cookies[i].split("=");     if (cookiesplit[0] === "emvcc") {      cvalue = cookiesplit[1];     }    }   }   if (cvalue === "true" || cvalue === "1") {    support = true;   }  } catch (ex) { }  return support; }, "connectiontype" : function() {  var ct, t;  ct = "unknown";  try {   for (t in navigator.connection) {    if (t != "type" && navigator.connection.type === navigator.connection[t]) {     ct = t;    }   }  } catch (ex) { }  return ct; }, "browserpixelratio" : function() {  var pr = 1;  try {   pr = window.devicePixelRatio;   if (pr) {    pr = parseFloat(pr, 10);   } else {    pr = 1;   }  } catch (ex) { }  return pr; }}}
))||{};JSON.settings={loglevel:"log",name:["jQuery.dcs","jQuery.dci","window.dcs"]};dcsInitialization(JSON,deviceDetect);}());var dcs=dcs||{set:function(){}};dcs.dynamic=(function(){var requestSessionId,sessionId="eeb9fac6337412e0d800add6b40b4d54",visitorId="null",visitorIdStable=visitorId&&visitorId.indexOf("su-")===0,visitorAliases=[],deviceId="null",deviceIdStable=deviceId&&deviceId.indexOf("sd-")===0,deviceAliases=[],customerUserId=undefined,hostname=(typeof window!=="undefined"&&typeof window.location!=="undefined")?window.location.hostname:undefined,pathname=(typeof window!=="undefined"&&typeof window.location!=="undefined")?window.location.pathname:undefined,origReferrer=(typeof document!=="undefined")?document.referrer:undefined,analytics=undefined,fingerprint=undefined,fpCallback=undefined,conversionCallback=undefined,customClusters=undefined,conversionsToLog=[],autoConversion={},cookies={getItem:function(sKey){if(!sKey){return null
}return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(sKey).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null
},setItem:function(sKey,sValue,vEnd,sDomain,sPath,bSecure){if(!sKey||/^(?:expires|max\-age|path|domain|secure)$/i.test(sKey)){return false
}var sExpires="";if(vEnd){switch(vEnd.constructor){case Number:sExpires=vEnd===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+vEnd;
break;case String:sExpires="; expires="+vEnd;break;case Date:sExpires="; expires="+vEnd.toUTCString();
break}}document.cookie=encodeURIComponent(sKey)+"="+encodeURIComponent(sValue)+sExpires+(sDomain?"; domain="+sDomain:"")+(sPath?"; path="+sPath:"")+(bSecure?"; secure":"");
return true},removeItem:function(sKey,sDomain,sPath){if(!this.hasItem(sKey)){return false}document.cookie=encodeURIComponent(sKey)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(sDomain?"; domain="+sDomain:"")+(sPath?"; path="+sPath:"");
return true},hasItem:function(sKey){if(!sKey){return false}return(new RegExp("(?:^|;\\s*)"+encodeURIComponent(sKey).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=")).test(document.cookie)
}},firstScriptElement=document.getElementsByTagName("script")[0],insertScriptTag=function(script){firstScriptElement.parentNode.insertBefore(script,firstScriptElement)
};function run(paras){var paraSensors=paras.sensors,paraImage=paras.image||"http://bandwidth.netbiscuits.net/pixel.gif",paraHwBench=paras.benchmark||false,paraProfileDiff=paras.profilediff||false,disableAnalyticsSessionFlag=paras.disableAnalyticsSession||false,toolsToExecuteCount=0,tools={},results={},nbParams="",allToolsCount=0,path=paras.path,callback="dcs.dynamic.processCluster",finishedSensorsCount=0,pathClusters="//dcs.netbiscuits.net:80/ds/detect/cluster/tonline/286aa45710e25399a74e066747bd29c546cd4a76623cf38aa61ee3eccc6fd57d2d2358fdb0988c6b828f0e2ac990eac68c038aad905a54f12207b02c495b1b51?cb=",pathAnalytics="//dcs.netbiscuits.net:80/ds/analytics/log/tonline/286aa45710e25399a74e066747bd29c546cd4a76623cf38aa61ee3eccc6fd57d2d2358fdb0988c6b828f0e2ac990eac68c038aad905a54f12207b02c495b1b51?cb=";
typeof paras.cbNbSid==="function"&&paras.cbNbSid(sessionId);customerUserId=paras.userId;hostname=paras.hostname||hostname;
fpCallback=paras.fpCallback||function(){};conversionCallback=paras.conversionCallback||function(){};nbParams+=(hostname)?"&h="+hostname:"";
if(pathname){nbParams+="&p="+encodeURIComponent(pathname);var googlePaid=/(utm_|GCLID)/i;if(googlePaid.test(window.location.search)){var sParams=window.location.search.slice(1).split("&"),queryString="";
while(sParams.length){var p=sParams.pop();if(googlePaid.test(p)){queryString+=(queryString?"%26":"?")+p
}}nbParams+=queryString}}nbParams+=(origReferrer)?"&or="+encodeURIComponent(origReferrer):"";dcs.dynamic.clientCallback=paras.callback;
if(!path){if(!customClusters){path=pathAnalytics}else{nbParams+="&cl="+encodeURIComponent(customClusters.join(","));
path=pathClusters}}tools.hardware=function(){var pr="1.0",ar="",ident,t=-1,settings,p="",ch=window.navigator.userAgent.indexOf("CriOS")>=0,osv,ack,i,cv,getCookie,measureTime,cube,measureCubeTime,getPixelRatio,getOsVersion,getAspectRatio,getPlatform,getSettings,deciders=[];
getOsVersion=function(){var ua,osv,v,versions;versions={};ua=window.navigator.userAgent;if(ua.indexOf("OS 9")>=0){osv=9
}else{if(ua.indexOf("OS 8")>=0){osv=8}else{if(ua.indexOf("OS 7")>=0){osv=7}else{if(ua.indexOf("OS 6")>=0){osv=6
}else{if(ua.indexOf("OS 5")>=0){osv=5}else{if(ua.indexOf("OS 4")>=0){osv=4}else{if(ua.indexOf("OS 3")>=0){osv=3
}else{if(ua.indexOf("OS 2")>=0){osv=2}else{if(ua.indexOf("OS 1")>=0){osv=1}else{osv=0}}}}}}}}}if(osv===1){versions.major=1;
versions.minor=0;versions.build=0}else{try{v=(navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);versions.major=parseInt(v[1],10);
versions.minor=parseInt(v[2],10);versions.build=parseInt(v[3],10)}catch(e){versions.major=osv;versions.minor=0;
versions.build=0}}return versions};getPixelRatio=function(){var pr="1.0";try{pr=window.devicePixelRatio;
if(pr){pr=""+parseFloat(pr)}else{pr="1.0"}}catch(e2){}return pr};ack=function(mm,nn){return mm===0?nn+1:ack(mm-1,nn===0?1:ack(mm,nn-1))
};measureTime=function(mm,nn){var startS,endS,t;t=-1;try{startS=new Date().getTime();ack(mm,nn);endS=new Date().getTime();
t=endS-startS}catch(ex){t=-1}return t};cube=function(){var Q=new Array();var MTrans=new Array();var MQube=new Array();
var I=new Array();var Origin=new Object();var Testing=new Object();var LoopTimer;var validation={20:2889.0000000000045,40:2889.0000000000055,80:2889.000000000005,160:2889.0000000000055};
var DisplArea=new Object();DisplArea.Width=300;DisplArea.Height=300;function DrawLine(From,To){var x1=From.V[0];
var x2=To.V[0];var y1=From.V[1];var y2=To.V[1];var dx=Math.abs(x2-x1);var dy=Math.abs(y2-y1);var x=x1;
var y=y1;var IncX1,IncY1;var IncX2,IncY2;var Den;var Num;var NumAdd;var NumPix;if(x2>=x1){IncX1=1;IncX2=1
}else{IncX1=-1;IncX2=-1}if(y2>=y1){IncY1=1;IncY2=1}else{IncY1=-1;IncY2=-1}if(dx>=dy){IncX1=0;IncY2=0;
Den=dx;Num=dx/2;NumAdd=dy;NumPix=dx}else{IncX2=0;IncY1=0;Den=dy;Num=dy/2;NumAdd=dx;NumPix=dy}NumPix=Math.round(Q.LastPx+NumPix);
var i=Q.LastPx;for(;i<NumPix;i++){Num+=NumAdd;if(Num>=Den){Num-=Den;x+=IncX1;y+=IncY1}x+=IncX2;y+=IncY2
}Q.LastPx=NumPix}function CalcCross(V0,V1){var Cross=new Array();Cross[0]=V0[1]*V1[2]-V0[2]*V1[1];Cross[1]=V0[2]*V1[0]-V0[0]*V1[2];
Cross[2]=V0[0]*V1[1]-V0[1]*V1[0];return Cross}function CalcNormal(V0,V1,V2){var A=new Array();var B=new Array();
for(var i=0;i<3;i++){A[i]=V0[i]-V1[i];B[i]=V2[i]-V1[i]}A=CalcCross(A,B);var Length=Math.sqrt(A[0]*A[0]+A[1]*A[1]+A[2]*A[2]);
for(var i=0;i<3;i++){A[i]=A[i]/Length}A[3]=1;return A}function CreateP(X,Y,Z){this.V=[X,Y,Z,1]}function MMulti(M1,M2){var M=[[],[],[],[]];
var i=0;var j=0;for(;i<4;i++){j=0;for(;j<4;j++){M[i][j]=M1[i][0]*M2[0][j]+M1[i][1]*M2[1][j]+M1[i][2]*M2[2][j]+M1[i][3]*M2[3][j]
}}return M}function VMulti(M,V){var Vect=new Array();var i=0;for(;i<4;i++){Vect[i]=M[i][0]*V[0]+M[i][1]*V[1]+M[i][2]*V[2]+M[i][3]*V[3]
}return Vect}function VMulti2(M,V){var Vect=new Array();var i=0;for(;i<3;i++){Vect[i]=M[i][0]*V[0]+M[i][1]*V[1]+M[i][2]*V[2]
}return Vect}function MAdd(M1,M2){var M=[[],[],[],[]];var i=0;var j=0;for(;i<4;i++){j=0;for(;j<4;j++){M[i][j]=M1[i][j]+M2[i][j]
}}return M}function Translate(M,Dx,Dy,Dz){var T=[[1,0,0,Dx],[0,1,0,Dy],[0,0,1,Dz],[0,0,0,1]];return MMulti(T,M)
}function RotateX(M,Phi){var a=Phi;a*=Math.PI/180;var Cos=Math.cos(a);var Sin=Math.sin(a);var R=[[1,0,0,0],[0,Cos,-Sin,0],[0,Sin,Cos,0],[0,0,0,1]];
return MMulti(R,M)}function RotateY(M,Phi){var a=Phi;a*=Math.PI/180;var Cos=Math.cos(a);var Sin=Math.sin(a);
var R=[[Cos,0,Sin,0],[0,1,0,0],[-Sin,0,Cos,0],[0,0,0,1]];return MMulti(R,M)}function RotateZ(M,Phi){var a=Phi;
a*=Math.PI/180;var Cos=Math.cos(a);var Sin=Math.sin(a);var R=[[Cos,-Sin,0,0],[Sin,Cos,0,0],[0,0,1,0],[0,0,0,1]];
return MMulti(R,M)}function DrawQube(){var CurN=new Array();var i=5;Q.LastPx=0;for(;i>-1;i--){CurN[i]=VMulti2(MQube,Q.Normal[i])
}if(CurN[0][2]<0){if(!Q.Line[0]){DrawLine(Q[0],Q[1]);Q.Line[0]=true}if(!Q.Line[1]){DrawLine(Q[1],Q[2]);
Q.Line[1]=true}if(!Q.Line[2]){DrawLine(Q[2],Q[3]);Q.Line[2]=true}if(!Q.Line[3]){DrawLine(Q[3],Q[0]);Q.Line[3]=true
}}if(CurN[1][2]<0){if(!Q.Line[2]){DrawLine(Q[3],Q[2]);Q.Line[2]=true}if(!Q.Line[9]){DrawLine(Q[2],Q[6]);
Q.Line[9]=true}if(!Q.Line[6]){DrawLine(Q[6],Q[7]);Q.Line[6]=true}if(!Q.Line[10]){DrawLine(Q[7],Q[3]);
Q.Line[10]=true}}if(CurN[2][2]<0){if(!Q.Line[4]){DrawLine(Q[4],Q[5]);Q.Line[4]=true}if(!Q.Line[5]){DrawLine(Q[5],Q[6]);
Q.Line[5]=true}if(!Q.Line[6]){DrawLine(Q[6],Q[7]);Q.Line[6]=true}if(!Q.Line[7]){DrawLine(Q[7],Q[4]);Q.Line[7]=true
}}if(CurN[3][2]<0){if(!Q.Line[4]){DrawLine(Q[4],Q[5]);Q.Line[4]=true}if(!Q.Line[8]){DrawLine(Q[5],Q[1]);
Q.Line[8]=true}if(!Q.Line[0]){DrawLine(Q[1],Q[0]);Q.Line[0]=true}if(!Q.Line[11]){DrawLine(Q[0],Q[4]);
Q.Line[11]=true}}if(CurN[4][2]<0){if(!Q.Line[11]){DrawLine(Q[4],Q[0]);Q.Line[11]=true}if(!Q.Line[3]){DrawLine(Q[0],Q[3]);
Q.Line[3]=true}if(!Q.Line[10]){DrawLine(Q[3],Q[7]);Q.Line[10]=true}if(!Q.Line[7]){DrawLine(Q[7],Q[4]);
Q.Line[7]=true}}if(CurN[5][2]<0){if(!Q.Line[8]){DrawLine(Q[1],Q[5]);Q.Line[8]=true}if(!Q.Line[5]){DrawLine(Q[5],Q[6]);
Q.Line[5]=true}if(!Q.Line[9]){DrawLine(Q[6],Q[2]);Q.Line[9]=true}if(!Q.Line[1]){DrawLine(Q[2],Q[1]);Q.Line[1]=true
}}Q.Line=[false,false,false,false,false,false,false,false,false,false,false,false];Q.LastPx=0}function Loop(){if(Testing.LoopCount>Testing.LoopMax){return
}var TestingStr=String(Testing.LoopCount);while(TestingStr.length<3){TestingStr="0"+TestingStr}MTrans=Translate(I,-Q[8].V[0],-Q[8].V[1],-Q[8].V[2]);
MTrans=RotateX(MTrans,1);MTrans=RotateY(MTrans,3);MTrans=RotateZ(MTrans,5);MTrans=Translate(MTrans,Q[8].V[0],Q[8].V[1],Q[8].V[2]);
MQube=MMulti(MTrans,MQube);var i=8;for(;i>-1;i--){Q[i].V=VMulti(MTrans,Q[i].V)}DrawQube();Testing.LoopCount++;
Loop()}function Init(CubeSize){Origin.V=[150,150,20,1];Testing.LoopCount=0;Testing.LoopMax=50;Testing.TimeMax=0;
Testing.TimeAvg=0;Testing.TimeMin=0;Testing.TimeTemp=0;Testing.TimeTotal=0;Testing.Init=false;MTrans=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];
MQube=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];I=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];Q[0]=new CreateP(-CubeSize,-CubeSize,CubeSize);
Q[1]=new CreateP(-CubeSize,CubeSize,CubeSize);Q[2]=new CreateP(CubeSize,CubeSize,CubeSize);Q[3]=new CreateP(CubeSize,-CubeSize,CubeSize);
Q[4]=new CreateP(-CubeSize,-CubeSize,-CubeSize);Q[5]=new CreateP(-CubeSize,CubeSize,-CubeSize);Q[6]=new CreateP(CubeSize,CubeSize,-CubeSize);
Q[7]=new CreateP(CubeSize,-CubeSize,-CubeSize);Q[8]=new CreateP(0,0,0);Q.Edge=[[0,1,2],[3,2,6],[7,6,5],[4,5,1],[4,0,3],[1,5,6]];
Q.Normal=new Array();for(var i=0;i<Q.Edge.length;i++){Q.Normal[i]=CalcNormal(Q[Q.Edge[i][0]].V,Q[Q.Edge[i][1]].V,Q[Q.Edge[i][2]].V)
}Q.Line=[false,false,false,false,false,false,false,false,false,false,false,false];Q.NumPx=9*2*CubeSize;
for(var i=0;i<Q.NumPx;i++){CreateP(0,0,0)}MTrans=Translate(MTrans,Origin.V[0],Origin.V[1],Origin.V[2]);
MQube=MMulti(MTrans,MQube);var i=0;for(;i<9;i++){Q[i].V=VMulti(MTrans,Q[i].V)}DrawQube();Testing.Init=true;
Loop();var sum=0;for(var i=0;i<Q.length;++i){var vector=Q[i].V;for(var j=0;j<vector.length;++j){sum+=vector[j]
}}if(sum!=validation[CubeSize]){throw"Error: bad vector sum for CubeSize = "+CubeSize+"; expected "+validation[CubeSize]+" but got "+sum
}}for(var i=20;i<=160;i*=2){Init(i)}Q=null;MTrans=null;MQube=null;I=null;Origin=null;Testing=null;LoopTime=null;
DisplArea=null};measureCubeTime=function(){var i=-1,iter=10,total=0;for(;++i<iter;){var startS,endS;startS=new Date().getTime();
cube();endS=new Date().getTime();total+=(endS-startS)}return total};getPlatform=function(){var p="";try{p=window.navigator.platform;
if(p==="iPhone Simulator"){p="iPhone"}}catch(e1){}return p};getAspectRatio=function(){var mq,ar;try{mq=window.matchMedia("(device-aspect-ratio: 2/3)");
if(mq.matches){ar="2/3"}}catch(e3){}try{mq=window.matchMedia("(device-aspect-ratio: 40/71)");if(mq.matches){ar="40/71"
}}catch(e4){}try{mq=window.matchMedia("(device-aspect-ratio: 3/4)");if(mq.matches){ar="3/4"}}catch(e5){}return ar
};getCookie=function(name){var cv,cvs,ctvs;cv=undefined;try{cvs=document.cookie.split(";");for(i=0;i<cvs.length;
i=i+1){ctvs=cvs[i].split("=");if(ctvs[0]===name){cv=ctvs[1]}}}catch(e0){}return cv};getSettings=function(platform,pixelRatio,aspectRatio,osVersion){var m,n,cube,result;
m=2;n=0;cube=false;result={};if(platform==="iPhone"&&(pixelRatio==="2.0"||pixelRatio==="2"||pixelRatio==="3.0"||pixelRatio==="3")){if(aspectRatio==="2/3"){if(osVersion.major<=4){n=300
}else{m=3;n=7}}else{if(aspectRatio==="40/71"){if(osVersion.major<=7){n=600}else{if(osVersion.major===8){n=500
}else{n=600}}}else{if(aspectRatio===""){if(osVersion.major<=4){n=300}}}}if(pixelRatio==="3.0"||pixelRatio==="3"){n=0;
cube=true}else{if(pixelRatio==="2.0"||pixelRatio==="2"){if((screen.availWidth===375&&screen.availHeight===647)||(screen.availWidth===667&&screen.availHeight===375)){n=0;
cube=true}}}}if(platform==="iPad"){if(screen.availWidth===1024&&screen.availHeight===1346){n=0}else{if(pixelRatio==="2.0"||pixelRatio==="2"){if(osVersion.major<=7){n=1000
}else{if(osVersion.major===8){n=600}else{m=3;n=8}}}else{if(osVersion.major<=4){m=3;n=6}else{m=3;n=7}}}}result.m=m;
result.n=n;result.cube=cube;return result};deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"&&(pr==="3.0"||pr==="3")&&osVersion.major>=8){if((time>=0&&time<135)||(time>170&&time<220)){if(osVersion.major>=9){result="61ba"
}else{result="2c66"}}else{if((time>=135&&time<=170)||time>=220){result="2c66"}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"&&(pixelRatio==="2.0"||pixelRatio==="2")){if((screen.availWidth===375&&screen.availHeight===647)||(screen.availWidth===667&&screen.availHeight===375)){if((time>=0&&time<135)||(time>170&&time<220)){if(osVersion.major>=9){result="5dde"
}else{result="a9b4"}}else{if((time>=135&&time<=170)||time>=220){result="a9b4"}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"&&(pr==="3.0"||pr==="3")&&osVersion.major>=8){result="cdee"}else{if(platform==="iPhone"&&(pixelRatio==="2.0"||pixelRatio==="2")){if((screen.availWidth===375&&screen.availHeight===647)||(screen.availWidth===667&&screen.availHeight===375)){result="33e4"
}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(aspectRatio==="40/71"){if(osVersion.major<=7){if(time>=0&&time<=35){result="1bc3"
}}else{if(osVersion.major===8){if(time>=0&&time<=16){result="1bc3"}}else{if(time>=0&&time<=28){result="1bc3"
}}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(aspectRatio==="40/71"){if(osVersion.major===6){if(bench){result="e55d"
}else{result="9f1b"}}else{if(osVersion.major===7){if(time>35){result="9afe"}}else{if(osVersion.major===8){if(time>16){result="9afe"
}}else{if(time>28){result="9afe"}}}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(aspectRatio==="40/71"){if(osVersion.major===7){if(time===-1){result="ffe7"
}}else{if(!(screen.availWidth===375&&screen.availHeight===647)&&!(screen.availWidth===667&&screen.availHeight===375)){result="ffe7"
}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"){if(osVersion.major<=3){result="50d7"}else{if(osVersion.major===4){if(pixelRatio==="1.0"||pixelRatio==="1"){result="6e7b"
}}else{if(pixelRatio==="1.0"||pixelRatio==="1"){result="27ac"}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(aspectRatio==="2/3"){if(osVersion.major===5){if(time>=0&&time<=155){result="cb24"
}}else{if(osVersion.major===6||osVersion.major===7){if(time>=0&&time<=120){result="cb24"}}else{if(bench){result="cb24"
}else{result="d7d5"}}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(osVersion.major<=4){if(bench){result="6b71"
}else{result="154e"}}else{if(osVersion.major===5){if(time>155){result="6b71"}}else{if(osVersion.major>5){if(time>120){result="6b71"
}}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPhone"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(aspectRatio==="2/3"){if(time===-1||!bench){result="a11c"
}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(screen.availWidth===1024&&screen.availHeight===1346){result="229b"}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPad"&&(pixelRatio==="1.0"||pixelRatio==="1")){if(osVersion.major<=4){if(time>=0&&time<=50){result="7a3d"
}}else{if(osVersion.major===5){if(time>=0&&time<=125){result="7a3d"}}else{result="bb57"}}}return result
});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPad"){if(osVersion.major===3){if(bench){result="5766"}else{result="e199"}}else{if(osVersion.major===4&&osVersion.minor<3){if(bench){result="5766"
}else{result="e199"}}else{if(osVersion.major===4&&osVersion.minor===3){if(time>50){result="5766"}}else{if(osVersion.major===5){if(pixelRatio==="1.0"||pixelRatio==="1"){if(time>125){result="5766"
}}}}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPad"&&(pixelRatio==="1.0"||pixelRatio==="1")){if(osVersion.major===4&&osVersion.minor===3){if(!bench){result="1e79"
}}else{if(osVersion.major===5){if(!bench){result="1e79"}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPad"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(osVersion.major===8){if(time>=0&&time<10){result="a40c"
}}else{if(time>=0&&time<33){result="q8d4"}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPad"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(osVersion.major<=7){if(time>=0&&time<=65){result="88a1"
}}else{if(osVersion.major===8){if(time>=10&&time<=27){result="88a1"}}else{if(time>=33&&time<=75){result="88a1"
}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPad"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(osVersion.major<=7){if(time>65&&time<=130){result="58be"
}}else{if(osVersion.major===8){if(time>27&&time<=40){result="58be"}}else{if(time>75&&time<=150){result="58be"
}}}}return result});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPad"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(osVersion.major===5&&osVersion.minor===1){if(bench){result="4c04"
}else{result="162a"}}else{if(osVersion.major===6){if(time>110){result="4c04"}}else{if(osVersion.major===7){if(time>130){result="4c04"
}}else{if(osVersion.major===8){if(time>40){result="4c04"}}else{if(time>150){result="4c04"}}}}}}return result
});deciders.push(function(platform,pixelRatio,aspectRatio,osVersion,time,bench){var result=undefined;
if(platform==="iPad"&&(pixelRatio==="2.0"||pixelRatio==="2")){if(time===-1){if(osVersion.major===6){result="6630"
}else{if(osVersion.major===7&&osVersion.minor===0&&osVersion.build<3){result="6630"}else{result="2bf5"
}}}}return result});cv=getCookie("nbhwident");if(typeof cv==="undefined"){osv=getOsVersion();pr=getPixelRatio();
p=getPlatform();ar=getAspectRatio();settings=getSettings(p,pr,ar,osv);if(paraHwBench&&settings.n!==0&&(p==="iPhone"||p==="iPad")&&!ch){t=measureTime(settings.m,settings.n)
}else{if(paraHwBench&&settings.n===0&&settings.cube&&(p==="iPhone"||p==="iPad")&&!ch){t=measureCubeTime()
}}ident=undefined;for(i=0;i<deciders.length;i=i+1){var f=deciders[i];ident=f(p,pr,ar,osv,t,paraHwBench);
if(typeof ident!=="undefined"){break}}if(typeof ident==="undefined"){ident=""}document.cookie="nbhwident="+ident
}else{pr=getPixelRatio();ar=getAspectRatio();t=-1;ident=cv}if(typeof results.hardware==="undefined"){results.hardware={}
}results.hardware.os=osv;results.hardware.pr=pr;results.hardware.ar=ar;results.hardware.t=t;results.hardware.ident=ident;
if(ident!==""){nbParams+="&hwIdent="+results.hardware.ident}if(paraProfileDiff&&ident!==""){var diffs=dcs.get("profile.diffs");
try{if(typeof diffs!=="undefined"){for(i=0;i<diffs.length;i=i+1){var cond=diffs[i].condition;var diff=diffs[i].diff;
if((typeof cond!=="undefined"&&typeof diff!=="undefined")&&(cond.param.toLowerCase()==="hwident")&&(cond.comp==="="||cond.comp==="==")&&(cond.value===ident)){for(var j=0;
j<diff.length;j=j+1){dcs.set(diff[j].name,diff[j].value)}}}}}catch(e){}}if(nbParams.indexOf("nbpr")===-1){nbParams+="&nbpr="+pr
}if(typeof dcs!=="undefined"&&typeof dcs.set==="function"){dcs.set("browser.pixelratio",pr);dcs.set("device.aspectratio",ar)
}checkToSend()};tools.battery=function(){function handleBattery(battery){if(battery){results.battery={};results.battery.charging=battery.charging;
results.battery.chargingTime=battery.chargingTime;results.battery.dischargingTime=battery.dischargingTime;
results.battery.level=battery.level;nbParams+="&batteryCharging="+results.battery.charging;nbParams+="&batteryChargingTime="+results.battery.chargingTime;
nbParams+="&batteryDischargingTime="+(results.battery.dischargingTime===Infinity?-1:results.battery.dischargingTime);
nbParams+="&batteryLevel="+results.battery.level}else{results.battery={};results.battery.charging=undefined;
results.battery.chargingTime=-1;results.battery.dischargingTime=-1;results.battery.level=-1}if(typeof dcs!=="undefined"&&typeof dcs.set==="function"){dcs.set("device.battery.ischarging",results.battery.charging);
dcs.set("device.battery.chargingtime",results.battery.chargingTime);dcs.set("device.battery.dischargingtime",results.battery.dischargingTime);
dcs.set("device.battery.level",results.battery.level)}checkToSend()}if(typeof navigator.getBattery==="function"){navigator.getBattery().then(handleBattery,function(){checkToSend()
})}else{var battery=navigator.battery||navigator.mozBattery||navigator.webkitBattery;handleBattery(battery)
}};analytics=(function(){var odsVersion="1.43.3";var getQueryVariable=function(variable){var query=window.location.search.substring(1);
if(query&&query.indexOf(variable)>-1){var vars=query.split("&");for(var i=0;i<vars.length;i++){var pair=vars[i].split("=");
if(pair[0]===variable){return pair[1]}}}};var updateOneParam=function(nbParams,name){var tmp;tmp=cookies.getItem(name);
if(!tmp){tmp=getQueryVariable(name)}if(tmp){nbParams=nbParams+"&"+name+"="+tmp}return nbParams};var updateParams=function(nbParams){var params=nbParams;
params=updateOneParam(params,"emvcc");params=updateOneParam(params,"emvAD");params=updateOneParam(params,"nbcol");
if(params.indexOf("nbpr")===-1){params=updateOneParam(params,"nbpr")}return params};var getExtraRequestParams=function(){return(sessionId?"&nbasl="+sessionId:"")+(odsVersion?"&ods="+encodeURIComponent(odsVersion):"")+(dcs.dcsVersion?"&dcs="+encodeURIComponent(dcs.dcsVersion):"")+(customerUserId?"&cuid="+encodeURIComponent(customerUserId):"")+"&eoq"
};return{sendValues:function(nbParams,path,callback){var script=document.createElement("script");script.src=path+callback+updateParams(nbParams)+getExtraRequestParams();
insertScriptTag(script)},disableAnalyticsSession:function(){var script=document.createElement("script");
script.type="text/javascript";script.src="//dcs.netbiscuits.net:80/ds/analytics/disableSession";insertScriptTag(script)
},trackConversion:function(conversionData){if(typeof conversionData!=="object"){return}var script=document.createElement("script");
script.type="text/javascript";script.src="//dcs.netbiscuits.net:80/ds/analytics/log/conversion//tonline/286aa45710e25399a74e066747bd29c546cd4a76623cf38aa61ee3eccc6fd57d2d2358fdb0988c6b828f0e2ac990eac68c038aad905a54f12207b02c495b1b51?conversion="+encodeURIComponent(JSON.stringify(conversionData))+"&rsid="+requestSessionId+nbParams+getExtraRequestParams();
insertScriptTag(script)}}})();/*!Copyright (c), 2014, Netbiscuits*/
var quality=(function(){"use strict";function h(){var m,l,j=(new Date()).getTime(),k=false;
return{done:function(n){m=n},resolve:function(o){if(k){return}k=true;var p=(new Date()).getTime()-j,n=0;
if(p<20){n=20}if(m){setTimeout(function(){m.call(undefined,o)},n)}},wait:function(n){setTimeout(function(){if(l){l.call(undefined)
}else{this.resolve([])}},n);return this},terminate:function(n){l=n}}}function f(l,j){var k;for(k in j){if(j.hasOwnProperty(k)){l[k]=j[k]
}}return l}function b(j,l){var k;for(k=0;k<l.length;k+=1){delete j[l[k]]}return j}function i(){if(typeof console!=="undefined"&&console&&typeof console.log==="function"){return console.log.apply(console,arguments)
}}var a={t_quantile:{1:6.313,2:2.92,3:2.3534,4:2.1318,5:2.015,6:1.943,7:1.8946,8:1.8596,9:1.8331,10:1.8125,11:1.795,12:1.7823,13:1.7709,14:1.7613,15:1.753,16:1.745,17:1.7396,18:1.7341,19:1.7291,20:1.7247,21:1.72,22:1.7117,23:1.7139,24:1.7109,25:1.7081,26:1.705,27:1.7033,28:1.7011,29:1.6991,30:1.6973},mean:function(j){var l=0,k;
for(k=0;k<j.length;k+=1){l+=parseFloat(j[k])}return l/(j.length===0?1:j.length)},deviation:function(l){if(l.length<2){return 0
}var k=this.mean(l),o=0,n;for(n=0;n<l.length;n+=1){o+=parseFloat(Math.pow(l[n]-k,2))}return Math.sqrt(o/(l.length-1))
},confidenceInterval:function(o){var l=this.mean(o),s=o.length,r=this.range(o),q=l-r,k=l+r,j=[],p;for(p=0;
p<s;p+=1){if(o[p]<k&&o[p]>q){j.push(o[p])}}if(j.length===0){j.push(l)}return j},range:function(j){var l=this.deviation(j),m=j.length>1?j.length:2,k=this.t_quantile[m-1];
return k*l/Math.sqrt(m)},sampleSize:function(o,n,j){if(j.length<3){return o}var l=j.length,k=this.t_quantile[l-1],m=this.deviation(j);
return Math.round((Math.pow(k,2)*o*Math.pow(m,2))/(Math.pow(n,2)*o+Math.pow(k,2)*Math.pow(m,2)))}},g=function(k){var j={image:function(){var p=new Image(),o=new h();
p.onload=function(){o.resolve(true)};p.onerror=function(){i("Problem with downloading test image");o.resolve(false)
};p.onabort=function(){i("Downloading test image was aborted");o.resolve(false)};p.src=k.url+"?size="+k.size+"&n="+Math.random();
return o}},m=new h(),n=j[k.loader]||j.image,l=(new Date()).getTime();n().done(function(p){function q(s,r){if(s===0){return 0
}return r*8/1024/s}var o=p?((new Date()).getTime()-l)/1000:0;m.resolve(q(o,k.size))});return m},d={networks:[{name:"Very Slow (GPRS equivalent)",max_score:0,max_samples:0},{name:"Very Slow (GPRS equivalent)",max_score:0.6,max_samples:2},{name:"Slow (EDGE equivalent)",max_score:2,max_samples:2},{name:"Medium (3G equivalent)",max_score:6,max_samples:3},{name:"Fast (3.5G/HSDPA equivalent)",max_score:12,max_samples:4},{name:"Very Fast (4G/WiFi equivalent)",max_score:30,max_samples:5}],byScore:function(l){if(l<=0){return this.networks[0]
}var j,k;for(j=0;j<this.networks.length;j+=1){k=this.networks[j];if(l<k.max_score){return k}}return this.networks[this.networks.length-1]
}},c={magicConst:111,estimate:function(k,j){return(j*this.magicConst/k).toFixed(1)}},e={isOperaMini:Object.prototype.toString.call(window.operamini)==="[object OperaMini]"};
return{speed:function(l){var k=(new Date()).getTime(),o=new h(),j={size:45,url:"cqdsampleimg.gif",timeout:30,debug:false,debugMessage:"",loader:"image",store:false,quick:false,maxTime:5000};
l=l?f(j,b(l,["timeout","debug","debugMessage","loader"])):j;function n(){function r(w){if(l.quick){return d.networks[1].max_samples
}var v=a.mean(a.confidenceInterval(w)),x=d.byScore(c.estimate(l.size,v)).max_samples;return a.sampleSize(x,a.mean(w)/10,w)
}var t=new h(),u=0,s=[];function q(){if(e.isOperaMini){t.resolve([0.4,0.5,0.5,0.5,0.5,0.4])}else{g(l).done(function(v){u+=1;
s.push(v);if(u>=r(s)){t.resolve(s)}else{setTimeout(function(){q()},l.timeout)}})}}setTimeout(function(){q()
},l.timeout);t.terminate(function(){t.resolve(s)});return t}function p(t){if(t.length===0){return{score:0.1,network:d.byScore(0.1),network_second:d.byScore(0.1),stability:10,samples_size:0,size:0,time:new Date().getTime()-k}
}var q={},r=a.mean(a.confidenceInterval(t)),s=a.range(t);q.score=c.estimate(l.size,r);q.stability=q.score>0?Math.abs(100-(s*100/r).toPrecision(2)):0;
if(q.stability>100||q.stability<0){q.stability=10}q.network=d.byScore(q.score);q.network_second=d.byScore(c.estimate(l.size,(r+s)));
q.time=new Date().getTime()-k;q.samples_size=t.length;q.size=l.size;return q}function m(q){q=Math.max(q,0);
if(q>=10){q=Math.floor(q)}return Math.round(q*10)}n().wait(l.maxTime).done(function(q){var r=p(q);if(l.debug){i(l.debugMessage+"|"+l.loader+"|"+l.quick+"|"+navigator.userAgent+"|"+navigator.appName+"|"+q.join(",")+"|"+r.score+"|"+r.network.name+"|"+r.network_second.name+"|"+r.time)
}if(l.store){quality.storage().save("Netbiscuits.quality.speed",r)}r.score=m(r.score);o.resolve(r)});
return o},storage:function(){var j={};j.save=function(k,l){document.cookie=[k,"=",JSON.stringify(l),"; expires=Wed, 09-Jun-2021 10:18:14 GMT; path=/;"].join("")
};j.load=function(l){var k=document.cookie.match(new RegExp(l+"=([^;]+)"));if(k){k=JSON.parse(k[1])}return k
};j.remove=function(k){document.cookie=[k,"=empty; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;"].join("")
};return j}}}());if(typeof quality!=="undefined"){tools.bwd=function(){var params={url:paraImage};
function callBack(result){results.bwd={};results.bwd.bandwidthScore=result.score;results.bwd.bandwidthNetwork=encodeURIComponent(result.network.name);
dcs.set("bandwidth.estimatednetwork",results.bwd.bandwidthNetwork);dcs.set("bandwidth.score",results.bwd.bandwidthScore);
nbParams+="&bandwidthScore="+results.bwd.bandwidthScore+"&bandwidthNetwork="+results.bwd.bandwidthNetwork;
checkToSend()}quality.speed(params).done(callBack)}}if(typeof nbgeo!=="undefined"){tools.geo=function(){var timedOut=false,timeoutId;
function success_callback(result){if(timedOut){return}clearTimeout(timeoutId);if(result.coords&&result.coords.latitude&&result.coords.longitude){results.geo={};
results.geo.latitude=result.coords.latitude.toFixed(5);results.geo.longitude=result.coords.longitude.toFixed(5);
dcs.set("location.latitude",results.geo.latitude);dcs.set("internal.latitude",results.geo.latitude);dcs.set("location.longitude",results.geo.longitude);
dcs.set("internal.longitude",results.geo.longitude);nbParams+="&latitude="+results.geo.latitude+"&longitude="+results.geo.longitude
}if(!timedOut){checkToSend()}}function error_callback(){clearTimeout(timeoutId);if(!timedOut){checkToSend()
}}if(nbgeo.init()){timeoutId=setTimeout(function(){timedOut=true;checkToSend()},5000);nbgeo.getCurrentPosition(success_callback,error_callback,{enableHighAccuracy:true})
}else{checkToSend()}}}tools.localtime=function(){var date=new Date();nbParams+="&localtime="+(date.getTime()-(date.getTimezoneOffset()*60000));
checkToSend()};tools.screensize=function(){var checkSizeVariable=function(v){return v&&typeof(v)==="number"&&v>0
};var sensor=function(results){var w,h;if(checkSizeVariable(window.innerWidth)&&checkSizeVariable(window.innerHeight)){w=window.innerWidth;
h=window.innerHeight}else{if(document.documentElement&&checkSizeVariable(document.documentElement.clientWidth)&&checkSizeVariable(document.documentElement.clientHeight)){w=document.documentElement.clientWidth;
h=document.documentElement.clientHeight}else{if(document.body&&checkSizeVariable(document.body.clientWidth)&&checkSizeVariable(document.body.clientHeight)){w=document.body.clientWidth;
h=document.body.clientHeight}else{if(checkSizeVariable(window.screen.availWidth)&&checkSizeVariable(window.screen.availHeight)){w=window.screen.availWidth;
h=window.screen.availHeight}}}}results.browserusablewidth=w;results.browserusableheight=h;results.screenorientation=undefined;
if(results.browserusablewidth<=results.browserusableheight){results.screenorientation="portrait"}else{results.screenorientation="landscape"
}dcs.set("browser.usablewidth",results.browserusablewidth);dcs.set("browser.usableheight",results.browserusableheight);
if(results.screenorientation!==undefined){dcs.set("device.screen.orientation",results.screenorientation)
}};sensor(results);try{if("onresize" in window){addEventListener("resize",function(){sensor(results)},true)
}else{if("onorientationchange" in window){addEventListener("orientationchange",function(){sensor(results)
},true)}}}catch(e){}nbParams+="&buw="+results.browserusablewidth;nbParams+="&buh="+results.browserusableheight;
if(results.browserusablewidth>10000){var d="";try{d+="&wiw=";d+=window.innerWidth;d+="&wih=";d+=window.innerHeight
}catch(ignore){}try{d+="&dcw=";d+=document.documentElement.clientWidth;d+="&dch=";d+=document.documentElement.clientHeight
}catch(ignore){}try{d+="&dbw=";d+=document.body.clientWidth;d+="&dbh=";d+=document.body.clientHeight}catch(ignore){}try{d+="&saw=";
d+=window.screen.availWidth;d+="&sah=";d+=window.screen.availHeight}catch(ignore){}nbParams+=d}checkToSend()
};for(var tool in tools){if(tools.hasOwnProperty(tool)){allToolsCount+=1}}if(disableAnalyticsSessionFlag){dcs.dynamic.disableAnalyticsSession()
}function checkToSend(){finishedSensorsCount+=1;if(toolsToExecuteCount===finishedSensorsCount){dcs.dynamic.result=results;
sendAndCallback()}}function addSensor(sensorName){toolsToExecuteCount+=1;paraSensors.push(sensorName)
}if(!paraSensors){paraSensors=[];addSensor("localtime");addSensor("screensize");if(tools.hardware){addSensor("hardware")
}if(tools.battery){addSensor("battery")}if(tools.pr){addSensor("pr")}if(tools.cs){addSensor("cs")}if(tools.bwd){addSensor("bwd")
}if(tools.geo){addSensor("geo")}if(tools.benchmark){addSensor("benchmark")}}else{var filteredSensors=[];
for(var i=0;i<paraSensors.length;i++){if(tools.hasOwnProperty(paraSensors[i])){filteredSensors.push(paraSensors[i])
}}paraSensors=filteredSensors;toolsToExecuteCount=paraSensors.length;var containsLocaltime=false;var containsScreensize=false;
var containsbenchmark=false;for(var j=0;j<paraSensors.length;j++){if(paraSensors[j]==="localtime"){containsLocaltime=true
}else{if(paraSensors[j]==="screensize"){containsScreensize=true}else{if(paraSensors[j]==="benchmark"){containsbenchmark=true
}}}}if(!containsLocaltime){addSensor("localtime")}if(!containsScreensize){addSensor("screensize")}if(tools.benchmark&&!containsbenchmark){addSensor("benchmark")
}}if(toolsToExecuteCount>0&&toolsToExecuteCount<=allToolsCount){for(var k=0;k<toolsToExecuteCount;k++){if(tools[paraSensors[k]]){tools[paraSensors[k]]()
}}}else{if(toolsToExecuteCount===0){sendAndCallback()}}function sendAndCallback(){if(analytics&&typeof analytics.sendValues==="function"){analytics.sendValues(nbParams,path,callback)
}if(dcs.dynamic.clientCallback&&!customClusters){dcs.dynamic.clientCallback()}if(typeof fingerprint!=="undefined"){setTimeout(function(){fingerprint.generate(fpCallback)
},100)}}}return{init:function(args){run(args)},processCluster:function(data){if(data){var result={};for(var property in data){if(data.hasOwnProperty(property)){if(property.indexOf("cluster_")===0){result[property]=data[property]
}else{if(property==="requestSessionId"){requestSessionId=data.requestSessionId[0]}else{if(property==="autoConversionConfig"){setTimeout(function(){for(var i=0;
i<data.autoConversionConfig.length;++i){var setting=data.autoConversionConfig[i];if(autoConversion[setting.type]){autoConversion[setting.type].init(setting)
}}},0)}}}}}dcs.dynamic.cluster=result}var conversion=conversionsToLog.shift();while(conversion){analytics.trackConversion(conversion);
conversion=conversionsToLog.shift()}if(dcs.dynamic.clientCallback&&customClusters){dcs.dynamic.clientCallback()
}},disableAnalyticsSession:function(){if(analytics&&typeof analytics.disableAnalyticsSession==="function"){analytics.disableAnalyticsSession()
}},trackConversion:function(conversionData){if(analytics&&typeof analytics.trackConversion==="function"){if(requestSessionId){analytics.trackConversion(conversionData)
}else{conversionsToLog.push(conversionData)}}},conversionTracked:function(conversionData){conversionCallback(conversionData)
},getVisitorId:function(){return{visitorId:visitorId,visitorIdStable:visitorIdStable,deviceId:deviceId,deviceIdStable:deviceIdStable,visitorAliases:visitorAliases,deviceAliases:deviceAliases}
}}})();