diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-03-04 07:26:14 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-03-04 07:26:14 +0300 |
commit | 9241966be35e9f3f3e7292e60c293e82dd8e5aa9 (patch) | |
tree | 9672d0dfdc90074fdefca4271954e508b4f3685e | |
parent | 637871bc6d70d20f4070f63e550831ec5c7812a5 (diff) |
fix queued requests in JS tracker and add possibility to disable it (#14146)
* fix queued requests in JS tracker and add possibility to disable it
* Regenerate core tracker JS.
* Fix jslint error.
* trying to fix and debug failing js test
* fix js test
* trying to fix test
* debugging failing test
* fix JS tests
* fix jslint
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | js/piwik.js | 31 | ||||
-rw-r--r-- | js/piwik.min.js | 73 | ||||
-rw-r--r-- | matomo.js | 73 | ||||
-rw-r--r-- | piwik.js | 73 | ||||
-rw-r--r-- | tests/javascript/index.php | 85 |
6 files changed, 188 insertions, 150 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 88dd8158cb..7aa6afa707 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,8 @@ The Product Changelog at **[matomo.org/changelog](https://matomo.org/changelog)* ### New Features * It is now possible to use monolog's FingersCrossedHandler which buffers all logs and logs all of them in case of warning or error. -### Deprecations +### New APIs +* A new tracker method `disableQueueRequest` has been added to disable queued requests which may be useful when logs are imported. * The event `LanguageManager.getAvailableLanguages` has been deprecated. Use `LanguagesManager.getAvailableLanguages` instead. ## Matomo 3.8.0 diff --git a/js/piwik.js b/js/piwik.js index 44b42124ac..420360c2fa 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -998,7 +998,7 @@ if (typeof JSON_PIWIK !== 'object' && typeof window.JSON === 'object' && window. addListener, enableLinkTracking, enableJSErrorTracking, setLinkTrackingTimer, getLinkTrackingTimer, enableHeartBeatTimer, disableHeartBeatTimer, killFrame, redirectFile, setCountPreRendered, trackGoal, trackLink, trackPageView, getNumTrackedPageViews, trackRequest, queueRequest, trackSiteSearch, trackEvent, - requests, timeout, sendRequests, queueRequest, + requests, timeout, enabled, sendRequests, queueRequest, disableQueueRequest,getRequestQueue, unsetPageIsUnloading, setEcommerceView, getEcommerceItems, addEcommerceItem, removeEcommerceItem, clearEcommerceCart, trackEcommerceOrder, trackEcommerceCartUpdate, deleteCookie, deleteCookies, offsetTop, offsetLeft, offsetHeight, offsetWidth, nodeType, defaultView, innerHTML, scrollLeft, scrollTop, currentStyle, getComputedStyle, querySelectorAll, splice, @@ -5656,29 +5656,32 @@ if (typeof window.Piwik !== 'object') { return hookObj; } + /*</DEBUG>*/ + var requestQueue = { + enabled: true, requests: [], timeout: null, sendRequests: function () { var requestsToTrack = this.requests; this.requests = []; if (requestsToTrack.length === 1) { - sendRequest(requestsToTrack[0]); + sendRequest(requestsToTrack[0], configTrackerPause); } else { - sendBulkRequest(requestsToTrack); + sendBulkRequest(requestsToTrack, configTrackerPause); } }, push: function (requestUrl) { if (!requestUrl) { return; } - if (isPageUnloading) { + if (isPageUnloading || !this.enabled) { // we don't queue as we need to ensure the request will be sent when the page is unloading... - trackerInstance.trackRequest(requestUrl); + sendRequest(requestUrl, configTrackerPause); return; } - this.requests.push(requestUrl); + requestQueue.requests.push(requestUrl); if (this.timeout) { clearTimeout(this.timeout); @@ -5706,9 +5709,6 @@ if (typeof window.Piwik !== 'object') { } } }; - - /*</DEBUG>*/ - /************************************************************ * Constructor ************************************************************/ @@ -5801,6 +5801,12 @@ if (typeof window.Piwik !== 'object') { this.getConsentRequestsQueue = function () { return consentRequestsQueue; }; + this.getRequestQueue = function () { + return requestQueue; + }; + this.unsetPageIsUnloading = function () { + isPageUnloading = false; + }; this.hasConsent = function () { return configHasConsent; }; @@ -7348,6 +7354,13 @@ if (typeof window.Piwik !== 'object') { }; /** + * Disables sending requests queued + */ + this.disableQueueRequest = function () { + requestQueue.enabled = false; + }; + + /** * Won't send the tracking request directly but wait for a short time to possibly send this tracking request * along with other tracking requests in one go. This can reduce the number of requests send to your server. * If the page unloads (user navigates to another page or closes the browser), then all remaining queued diff --git a/js/piwik.min.js b/js/piwik.min.js index a189bdac77..8bdcb8373a 100644 --- a/js/piwik.min.js +++ b/js/piwik.min.js @@ -38,41 +38,42 @@ if(!an){an="/"}}return an},findMediaUrlInNode:function(ap){if(!ap){return}var an if(an&&aq.offsetTop){an=(aq.offsetTop+ap.height)>0}var am=ao.clientWidth;if(T.innerWidth&&am>T.innerWidth){am=T.innerWidth}var al=ao.clientHeight;if(T.innerHeight&&al>T.innerHeight){al=T.innerHeight}return((ap.bottom>0||an)&&ap.right>0&&ap.left<am&&((ap.top<al)||an))},isNodeVisible:function(am){var al=j(am);var an=this.isOrWasNodeInViewport(am);return al&&an},buildInteractionRequestParams:function(al,am,an,ao){var ap="";if(al){ap+="c_i="+t(al)}if(am){if(ap){ap+="&"}ap+="c_n="+t(am)}if(an){if(ap){ap+="&"}ap+="c_p="+t(an)}if(ao){if(ap){ap+="&"}ap+="c_t="+t(ao)}return ap},buildImpressionRequestParams:function(al,am,an){var ao="c_n="+t(al)+"&c_p="+t(am);if(an){ao+="&c_t="+t(an)}return ao},buildContentBlock:function(an){if(!an){return}var al=this.findContentName(an);var am=this.findContentPiece(an);var ao=this.findContentTarget(an);al=this.trim(al);am=this.trim(am);ao=this.trim(ao);return{name:al||"Unknown",piece:am||"Unknown",target:ao||""}},collectContent:function(ao){if(!ao||!ao.length){return[] }var an=[];var al,am;for(al=0;al<ao.length;al++){am=this.buildContentBlock(ao[al]);if(J(am)){an.push(am)}}return an},setLocation:function(al){this.location=al},getLocation:function(){var al=this.location||T.location;if(!al.origin){al.origin=al.protocol+"//"+al.hostname+(al.port?":"+al.port:"")}return al},toAbsoluteUrl:function(am){if((!am||String(am)!==am)&&am!==""){return am}if(""===am){return this.getLocation().href}if(am.search(/^\/\//)!==-1){return this.getLocation().protocol+am}if(am.search(/:\/\//)!==-1){return am}if(0===am.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+am}if(0===am.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+am}if(0===am.search("^[a-zA-Z]{2,11}:")){return am}if(am.search(/^\//)!==-1){return this.getLocation().origin+am}var al="(.*/)";var an=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(al))[0];return an+am},isUrlToCurrentDomain:function(am){var an=this.toAbsoluteUrl(am);if(!an){return false }var al=this.getLocation().origin;if(al===an){return true}if(0===String(an).indexOf(al)){if(":"===String(an).substr(al.length,1)){return false}return true}return false},setHrefAttribute:function(am,al){if(!am||!al){return}ac.setAnyAttribute(am,"href",al)},shouldIgnoreInteraction:function(an){var am=ac.hasNodeAttribute(an,this.CONTENT_IGNOREINTERACTION_ATTR);var al=ac.hasNodeCssClass(an,this.CONTENT_IGNOREINTERACTION_CLASS);return am||al}};function O(am,ap){if(ap){return ap}am=v.toAbsoluteUrl(am);if(z(am,"?")){var ao=am.indexOf("?");am=am.slice(0,ao)}if(R(am,"matomo.php")){am=g(am,"matomo.php".length)}else{if(R(am,"piwik.php")){am=g(am,"piwik.php".length)}else{if(R(am,".php")){var al=am.lastIndexOf("/");var an=1;am=am.slice(0,al+an)}}}if(R(am,"/js/")){am=g(am,"js/".length)}return am}function N(ar){var au="Piwik_Overlay";var am=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=.*)?$");var an=am.exec(G.referrer);if(an){var ap=an[1]; -if(ap!==String(ar)){return false}var aq=an[2],al=an[3],ao=an[4];if(!ao){ao=""}else{if(ao.indexOf("&segment=")===0){ao=ao.substr("&segment=".length)}}T.name=au+"###"+aq+"###"+al+"###"+ao}var at=T.name.split("###");return at.length===4&&at[0]===au}function Y(am,at,ao){var ar=T.name.split("###"),aq=ar[1],al=ar[2],ap=ar[3],an=O(am,at);o(an+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(an,ao,aq,al,ap)})}function u(){var an;try{an=T.frameElement}catch(am){return true}if(J(an)){return(an&&String(an.nodeName).toLowerCase()==="iframe")?true:false}try{return T.self!==T.top}catch(al){return true}}function Q(b8,b3){var bC=this,a9="mtm_consent",cF="mtm_consent_removed",bY=Z(G.domain,T.location.href,K()),cN=L(bY[0]),bH=p(bY[1]),bi=p(bY[2]),cL=false,cc="GET",c2=cc,aE="application/x-www-form-urlencoded; charset=UTF-8",cr=aE,aA=b8||"",bB="",cS="",b0=b3||"",bt="",bI="",a0,be="",cZ=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],au=[cN],bu=[],bF=[],a4=[],bD=500,cP=false,cB,a1,bL,bJ,al,cl=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bA=["pk_kwd","piwik_kwd","utm_term"],bf="_pk_",ar="pk_vid",aV=180,cQ,bk,bM=false,bg=false,cJ,ba,bq,cC=33955200000,cj=1800000,cY=15768000000,aY=true,ch=0,bK=false,aM=false,b5,bQ={},cg={},bh={},bo=200,cT={},c0={},b4=[],b9=false,cv=false,am=false,c1=false,cG=false,aK=false,a8=u(),cR=null,b6,aN,bv,b1=aj,bj,aH,cm=0,bp=["id","ses","cvar","ref"],cu=false,bw=null,cD=[],at=U++; -try{be=G.title}catch(cs){be=""}function c5(dg,de,dd,df,dc,db){if(bg){return}var da;if(dd){da=new Date();da.setTime(da.getTime()+dd)}G.cookie=dg+"="+t(de)+(dd?";expires="+da.toGMTString():"")+";path="+(df||"/")+(dc?";domain="+dc:"")+(db?";secure":"")}function az(dc){if(bg){return 0}var da=new RegExp("(^|;)[ ]*"+dc+"=([^;]*)"),db=da.exec(G.cookie);return db?S(db[2]):0}bw=!az(cF);function bW(da){var db;da=k(da,ar);if(bJ){db=new RegExp("#.*");return da.replace(db,"")}return da}function bP(dc,da){var dd=s(da),db;if(dd){return da}if(da.slice(0,1)==="/"){return s(dc)+"://"+d(dc)+da}dc=bW(dc);db=dc.indexOf("?");if(db>=0){dc=dc.slice(0,db)}db=dc.lastIndexOf("/");if(db!==dc.length-1){dc=dc.slice(0,db+1)}return dc+da}function cA(dc,da){var db;dc=String(dc).toLowerCase();da=String(da).toLowerCase();if(dc===da){return true}if(da.slice(0,1)==="."){if(dc===da.slice(1)){return true}db=dc.length-da.length;if((db>0)&&(dc.slice(db)===da)){return true}}return false}function cf(da){var db=document.createElement("a"); -if(da.indexOf("//")!==0&&da.indexOf("http")!==0){if(da.indexOf("*")===0){da=da.substr(1)}if(da.indexOf(".")===0){da=da.substr(1)}da="http://"+da}db.href=v.toAbsoluteUrl(da);if(db.pathname){return db.pathname}return""}function aZ(db,da){if(!ag(da,"/")){da="/"+da}if(!ag(db,"/")){db="/"+db}var dc=(da==="/"||da==="/*");if(dc){return true}if(db===da){return true}da=String(da).toLowerCase();db=String(db).toLowerCase();if(R(da,"*")){da=da.slice(0,-1);dc=(!da||da==="/");if(dc){return true}if(db===da){return true}return db.indexOf(da)===0}if(!R(db,"/")){db+="/"}if(!R(da,"/")){da+="/"}return db.indexOf(da)===0}function ao(de,dg){var db,da,dc,dd,df;for(db=0;db<au.length;db++){dd=L(au[db]);df=cf(au[db]);if(cA(de,dd)&&aZ(dg,df)){return true}}return false}function aR(dd){var db,da,dc;for(db=0;db<au.length;db++){da=L(au[db].toLowerCase());if(dd===da){return true}if(da.slice(0,1)==="."){if(dd===da.slice(1)){return true}dc=dd.length-da.length;if((dc>0)&&(dd.slice(dc)===da)){return true}}}return false}function ck(da,dc){da=da.replace("send_image=0","send_image=1"); -var db=new Image(1,1);db.onload=function(){E=0;if(typeof dc==="function"){dc({request:da,trackerUrl:aA,success:true})}};db.onerror=function(){if(typeof dc==="function"){dc({request:da,trackerUrl:aA,success:false})}};db.src=aA+(aA.indexOf("?")<0?"?":"&")+da}function aG(){return"object"===typeof h&&"function"===typeof h.sendBeacon&&"function"===typeof Blob}function a2(dd,dh){var dc=aG();if(!dc){return false}var dg={type:"application/x-www-form-urlencoded; charset=UTF-8"};var df=false;var db=aA;try{var da=new Blob([dd],dg);if(dd.length<=2000){da=new Blob([],dg);db=db+(db.indexOf("?")<0?"?":"&")+dd}df=h.sendBeacon(db,da)}catch(de){return false}if(df&&typeof dh==="function"){dh({request:dd,trackerUrl:aA,success:true,isSendBeacon:true})}return df}function cX(db,dc,da){if(!J(da)||null===da){da=true}if(m&&a2(db,dc)){return}setTimeout(function(){if(m&&a2(db,dc)){return}var df;try{var de=T.XMLHttpRequest?new T.XMLHttpRequest():T.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;de.open("POST",aA,true); -de.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dg=m&&a2(db,dc);if(!dg&&da){ck(db,dc)}else{if(typeof dc==="function"){dc({request:db,trackerUrl:aA,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dc==="function")){dc({request:db,trackerUrl:aA,success:true,xhr:this})}}};de.setRequestHeader("Content-Type",cr);de.send(db)}catch(dd){df=m&&a2(db,dc);if(!df&&da){ck(db,dc)}else{if(typeof dc==="function"){dc({request:db,trackerUrl:aA,success:false})}}}},50)}function ca(db){var da=new Date();var dc=da.getTime()+db;if(!r||dc>r){r=dc}}function ci(da){if(b6||!a1||!bw){return}b6=setTimeout(function db(){b6=null;if(!a8){a8=(!G.hasFocus||G.hasFocus())}if(!a8){ci(a1);return}if(bL()){return}var dc=new Date(),dd=a1-(dc.getTime()-cR);dd=Math.min(a1,dd);ci(dd)},da||a1)}function bE(){if(!b6){return}clearTimeout(b6);b6=null}function a6(){a8=true;if(bL()){return}ci()}function av(){bE()}function c7(){if(aK||!a1){return}aK=true;ak(T,"focus",a6);ak(T,"blur",av); -ci()}function cw(de){var db=new Date();var da=db.getTime();cR=da;if(cv&&da<cv){var dc=cv-da;setTimeout(de,dc);ca(dc+50);cv+=50;return}if(cv===false){var dd=800;cv=da+dd}de()}function bz(db,da,dc){if(!bw){cD.push(db);return}if(!cJ&&db){if(cu&&bw){db+="&consent=1"}cw(function(){if(cP&&a2(db,dc)){ca(100);return}if(c2==="POST"||String(db).length>2000){cX(db,dc)}else{ck(db,dc)}ca(da)})}if(!aK){c7()}else{ci()}}function ce(da){if(cJ){return false}return(da&&da.length)}function cW(da,de){if(!de||de>=da.length){return[da]}var db=0;var dc=da.length;var dd=[];for(db;db<dc;db+=de){dd.push(da.slice(db,db+de))}return dd}function c6(db,da){if(!ce(db)){return}if(!bw){cD.push(db);return}cw(function(){var de=cW(db,50);var dc=0,dd;for(dc;dc<de.length;dc++){dd='{"requests":["?'+de[dc].join('","?')+'"]}';cX(dd,null,false)}ca(da)})}function aP(da){return bf+da+"."+b0+"."+bj}function bZ(){if(bg){return"0"}if(!J(h.cookieEnabled)){var da=aP("testcookie");c5(da,"1");return az(da)==="1"?"1":"0"}return h.cookieEnabled?"1":"0" -}function bd(){bj=b1((cQ||cN)+(bk||"/")).slice(0,4)}function bR(){var db=aP("cvar"),da=az(db);if(da.length){da=JSON_PIWIK.parse(da);if(W(da)){return da}}return{}}function cx(){if(aM===false){aM=bR()}}function cK(){return b1((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c0)+(new Date()).getTime()+Math.random()).slice(0,16)}function aw(){return b1((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c0)).slice(0,6)}function bb(){return Math.floor((new Date()).getTime()/1000)}function aF(){var db=bb();var dc=aw();var da=String(db)+dc;return da}function cV(dc){dc=String(dc);var df=aw();var dd=df.length;var de=dc.substr(-1*dd,dd);var db=parseInt(dc.substr(0,dc.length-dd),10);if(db&&de&&de===df){var da=bb();if(aV<=0){return true}if(da>=db&&da<=(db+aV)){return true}}return false}function c8(da){if(!cG){return""}var de=f(da,ar);if(!de){return""}de=String(de);var dc=new RegExp("^[a-zA-Z0-9]+$");if(de.length===32&&dc.test(de)){var db=de.substr(16,32);if(cV(db)){var dd=de.substr(0,16); -return dd}}return""}function cH(){if(!bI){bI=c8(bH)}var dc=new Date(),da=Math.round(dc.getTime()/1000),db=aP("id"),df=az(db),de,dd;if(df){de=df.split(".");de.unshift("0");if(bI.length){de[1]=bI}return de}if(bI.length){dd=bI}else{if("0"===bZ()){dd=""}else{dd=cK()}}de=["1",dd,da,0,da,"",""];return de}function aU(){var dh=cH(),dd=dh[0],de=dh[1],db=dh[2],da=dh[3],df=dh[4],dc=dh[5];if(!J(dh[6])){dh[6]=""}var dg=dh[6];return{newVisitor:dd,uuid:de,createTs:db,visitCount:da,currentVisitTs:df,lastVisitTs:dc,lastEcommerceOrderTs:dg}}function aD(){var dd=new Date(),db=dd.getTime(),de=aU().createTs;var da=parseInt(de,10);var dc=(da*1000)+cC-db;return dc}function aI(da){if(!b0){return}var dc=new Date(),db=Math.round(dc.getTime()/1000);if(!J(da)){da=aU()}var dd=da.uuid+"."+da.createTs+"."+da.visitCount+"."+db+"."+da.lastVisitTs+"."+da.lastEcommerceOrderTs;c5(aP("id"),dd,aD(),bk,cQ,bM)}function bG(){var da=az(aP("ref"));if(da.length){try{da=JSON_PIWIK.parse(da);if(W(da)){return da}}catch(db){}}return["","",0,""] -}function bS(dc,db,da){c5(dc,"",-86400,db,da)}function br(db){var da="testvalue";c5("test",da,10000,null,db);if(az("test")===da){bS("test",null,db);return true}return false}function aB(){var db=bg;bg=false;var da,dc;for(da=0;da<bp.length;da++){dc=aP(bp[da]);if(dc!==cF&&dc!==a9&&0!==az(dc)){bS(dc,bk,cQ)}}bg=db}function bX(da){b0=da;aI()}function c9(de){if(!de||!W(de)){return}var dd=[];var dc;for(dc in de){if(Object.prototype.hasOwnProperty.call(de,dc)){dd.push(dc)}}var df={};dd.sort();var da=dd.length;var db;for(db=0;db<da;db++){df[dd[db]]=de[dd[db]]}return df}function b7(){c5(aP("ses"),"1",cj,bk,cQ,bM)}function bc(){var dd="";var db="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var dc=db.length;var da;for(da=0;da<6;da++){dd+=db.charAt(Math.floor(Math.random()*dc))}return dd}function cn(dc,dy,dz,dd){var dx,db=new Date(),dk=Math.round(db.getTime()/1000),dh,dw,de=1024,dE,dl,du=aM,df=aP("ses"),ds=aP("ref"),dp=aP("cvar"),dq=az(df),dv=bG(),dB=a0||bH,di,da;if(bg){aB()}if(cJ){return"" -}var dr=aU();if(!J(dd)){dd=""}var dn=G.characterSet||G.charset;if(!dn||dn.toLowerCase()==="utf-8"){dn=null}di=dv[0];da=dv[1];dh=dv[2];dw=dv[3];if(!dq){var dA=cj/1000;if(!dr.lastVisitTs||(dk-dr.lastVisitTs)>dA){dr.visitCount++;dr.lastVisitTs=dr.currentVisitTs}if(!bq||!di.length){for(dx in cl){if(Object.prototype.hasOwnProperty.call(cl,dx)){di=f(dB,cl[dx]);if(di.length){break}}}for(dx in bA){if(Object.prototype.hasOwnProperty.call(bA,dx)){da=f(dB,bA[dx]);if(da.length){break}}}}dE=d(bi);dl=dw.length?d(dw):"";if(dE.length&&!aR(dE)&&(!bq||!dl.length||aR(dl))){dw=bi}if(dw.length||di.length){dh=dk;dv=[di,da,dh,bW(dw.slice(0,de))];c5(ds,JSON_PIWIK.stringify(dv),cY,bk,cQ)}}dc+="&idsite="+b0+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+db.getHours()+"&m="+db.getMinutes()+"&s="+db.getSeconds()+"&url="+t(bW(dB))+(bi.length?"&urlref="+t(bW(bi)):"")+((bt&&bt.length)?"&uid="+t(bt):"")+"&_id="+dr.uuid+"&_idts="+dr.createTs+"&_idvc="+dr.visitCount+"&_idn="+dr.newVisitor+(di.length?"&_rcn="+t(di):"")+(da.length?"&_rck="+t(da):"")+"&_refts="+dh+"&_viewts="+dr.lastVisitTs+(String(dr.lastEcommerceOrderTs).length?"&_ects="+dr.lastEcommerceOrderTs:"")+(String(dw).length?"&_ref="+t(bW(dw.slice(0,de))):"")+(dn?"&cs="+t(dn):"")+"&send_image=0"; -for(dx in c0){if(Object.prototype.hasOwnProperty.call(c0,dx)){dc+="&"+dx+"="+c0[dx]}}var dD=[];if(dy){for(dx in dy){if(Object.prototype.hasOwnProperty.call(dy,dx)&&/^dimension\d+$/.test(dx)){var dg=dx.replace("dimension","");dD.push(parseInt(dg,10));dD.push(String(dg));dc+="&"+dx+"="+dy[dx];delete dy[dx]}}}if(dy&&B(dy)){dy=null}for(dx in bh){if(Object.prototype.hasOwnProperty.call(bh,dx)){var dm=(-1===M(dD,dx));if(dm){dc+="&dimension"+dx+"="+bh[dx]}}}if(dy){dc+="&data="+t(JSON_PIWIK.stringify(dy))}else{if(al){dc+="&data="+t(JSON_PIWIK.stringify(al))}}function dj(dF,dG){var dH=JSON_PIWIK.stringify(dF);if(dH.length>2){return"&"+dG+"="+t(dH)}return""}var dC=c9(bQ);var dt=c9(cg);dc+=dj(dC,"cvar");dc+=dj(dt,"e_cvar");if(aM){dc+=dj(aM,"_cvar");for(dx in du){if(Object.prototype.hasOwnProperty.call(du,dx)){if(aM[dx][0]===""||aM[dx][1]===""){delete aM[dx]}}}if(bK){c5(dp,JSON_PIWIK.stringify(aM),cj,bk,cQ)}}if(aY){if(ch){dc+=">_ms="+ch}else{if(i&&i.timing&&i.timing.requestStart&&i.timing.responseEnd){dc+=">_ms="+(i.timing.responseEnd-i.timing.requestStart) -}}}if(aH){dc+="&pv_id="+aH}dr.lastEcommerceOrderTs=J(dd)&&String(dd).length?dd:dr.lastEcommerceOrderTs;aI(dr);b7();dc+=aa(dz,{tracker:bC,request:dc});if(cS.length){dc+="&"+cS}if(A(b5)){dc=b5(dc)}return dc}bL=function a3(){var da=new Date();if(cR+a1<=da.getTime()){var db=cn("ping=1",null,"ping");bz(db,bD);return true}return false};function bl(dd,dc,di,de,da,dl){var dg="idgoal=0",dh,db=new Date(),dj=[],dk,df=String(dd).length;if(df){dg+="&ec_id="+t(dd);dh=Math.round(db.getTime()/1000)}dg+="&revenue="+dc;if(String(di).length){dg+="&ec_st="+di}if(String(de).length){dg+="&ec_tx="+de}if(String(da).length){dg+="&ec_sh="+da}if(String(dl).length){dg+="&ec_dt="+dl}if(cT){for(dk in cT){if(Object.prototype.hasOwnProperty.call(cT,dk)){if(!J(cT[dk][1])){cT[dk][1]=""}if(!J(cT[dk][2])){cT[dk][2]=""}if(!J(cT[dk][3])||String(cT[dk][3]).length===0){cT[dk][3]=0}if(!J(cT[dk][4])||String(cT[dk][4]).length===0){cT[dk][4]=1}dj.push(cT[dk])}}dg+="&ec_items="+t(JSON_PIWIK.stringify(dj))}dg=cn(dg,al,"ecommerce",dh); -bz(dg,bD);if(df){cT={}}}function bT(da,de,dd,dc,db,df){if(String(da).length&&J(de)){bl(da,de,dd,dc,db,df)}}function bn(da){if(J(da)){bl("",da,"","","","")}}function bU(db,dd,dc){aH=bc();var da=cn("action_name="+t(ai(db||be)),dd,"log");bz(da,bD,dc)}function aW(dc,db){var dd,da="(^| )(piwik[_-]"+db;if(dc){for(dd=0;dd<dc.length;dd++){da+="|"+dc[dd]}}da+=")( |$)";return new RegExp(da)}function aQ(da){return(aA&&da&&0===String(da).indexOf(aA))}function cp(de,da,df,db){if(aQ(da)){return 0}var dd=aW(bF,"download"),dc=aW(a4,"link"),dg=new RegExp("\\.("+cZ.join("|")+")([?&#]|$)","i");if(dc.test(de)){return"link"}if(db||dd.test(de)||dg.test(da)){return"download"}if(df){return 0}return"link"}function aq(db){var da;da=db.parentNode;while(da!==null&&J(da)){if(ac.isLinkElement(db)){break}db=da;da=db.parentNode}return db}function c4(df){df=aq(df);if(!ac.hasNodeAttribute(df,"href")){return}if(!J(df.href)){return}var de=ac.getAttributeValueFromNode(df,"href");if(aQ(de)){return}var db=df.pathname||cf(df.href); -var dg=df.hostname||d(df.href);var dh=dg.toLowerCase();var dc=df.href.replace(dg,dh);var dd=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!dd.test(dc)){var da=cp(df.className,dc,ao(dh,db),ac.hasNodeAttribute(df,"download"));if(da){return{type:da,href:dc}}}}function aL(da,db,dc,dd){var de=v.buildInteractionRequestParams(da,db,dc,dd);if(!de){return}return cn(de,null,"contentInteraction")}function cE(dc,dd,dh,da,db){if(!J(dc)){return}if(aQ(dc)){return dc}var df=v.toAbsoluteUrl(dc);var de="redirecturl="+t(df)+"&";de+=aL(dd,dh,da,(db||dc));var dg="&";if(aA.indexOf("?")<0){dg="?"}return aA+dg+de}function a7(da,db){if(!da||!db){return false}var dc=v.findTargetNode(da);if(v.shouldIgnoreInteraction(dc)){return false}dc=v.findTargetNodeNoDefault(da);if(dc&&!V(dc,db)){return false}return true}function co(dc,db,de){if(!dc){return}var da=v.findParentContentNode(dc);if(!da){return}if(!a7(da,dc)){return}var dd=v.buildContentBlock(da);if(!dd){return}if(!dd.target&&de){dd.target=de -}return v.buildInteractionRequestParams(db,dd.name,dd.piece,dd.target)}function aS(db){if(!b4||!b4.length){return false}var da,dc;for(da=0;da<b4.length;da++){dc=b4[da];if(dc&&dc.name===db.name&&dc.piece===db.piece&&dc.target===db.target){return true}}return false}function by(dd){if(!dd){return false}var dg=v.findTargetNode(dd);if(!dg||v.shouldIgnoreInteraction(dg)){return false}var dh=c4(dg);if(c1&&dh&&dh.type){return false}if(ac.isLinkElement(dg)&&ac.hasNodeAttributeWithValue(dg,"href")){var da=String(ac.getAttributeValueFromNode(dg,"href"));if(0===da.indexOf("#")){return false}if(aQ(da)){return true}if(!v.isUrlToCurrentDomain(da)){return false}var de=v.buildContentBlock(dd);if(!de){return}var dc=de.name;var di=de.piece;var df=de.target;if(!ac.hasNodeAttributeWithValue(dg,v.CONTENT_TARGET_ATTR)||dg.wasContentTargetAttrReplaced){dg.wasContentTargetAttrReplaced=true;df=v.toAbsoluteUrl(da);ac.setAnyAttribute(dg,v.CONTENT_TARGET_ATTR,df)}var db=cE(da,"click",dc,di,df);v.setHrefAttribute(dg,db); -return true}return false}function aJ(db){if(!db||!db.length){return}var da;for(da=0;da<db.length;da++){by(db[da])}}function aT(da){return function(db){if(!da){return}var de=v.findParentContentNode(da);var df;if(db){df=db.target||db.srcElement}if(!df){df=da}if(!a7(de,df)){return}ca(bD);if(ac.isLinkElement(da)&&ac.hasNodeAttributeWithValue(da,"href")&&ac.hasNodeAttributeWithValue(da,v.CONTENT_TARGET_ATTR)){var dc=ac.getAttributeValueFromNode(da,"href");if(!aQ(dc)&&da.wasContentTargetAttrReplaced){ac.setAnyAttribute(da,v.CONTENT_TARGET_ATTR,"")}}var dj=c4(da);if(am&&dj&&dj.type){return dj.type}if(by(de)){return"href"}var dg=v.buildContentBlock(de);if(!dg){return}var dd=dg.name;var dk=dg.piece;var di=dg.target;var dh=aL("click",dd,dk,di);bz(dh,bD);return dh}}function bV(dc){if(!dc||!dc.length){return}var da,db;for(da=0;da<dc.length;da++){db=v.findTargetNode(dc[da]);if(db&&!db.contentInteractionTrackingSetupDone){db.contentInteractionTrackingSetupDone=true;ak(db,"click",aT(db))}}}function bs(dc,dd){if(!dc||!dc.length){return[] -}var da,db;for(da=0;da<dc.length;da++){if(aS(dc[da])){dc.splice(da,1);da--}else{b4.push(dc[da])}}if(!dc||!dc.length){return[]}aJ(dd);bV(dd);var de=[];for(da=0;da<dc.length;da++){db=cn(v.buildImpressionRequestParams(dc[da].name,dc[da].piece,dc[da].target),undefined,"contentImpressions");if(db){de.push(db)}}return de}function ct(db){var da=v.collectContent(db);return bs(da,db)}function a5(db){if(!db||!db.length){return[]}var da;for(da=0;da<db.length;da++){if(!v.isNodeVisible(db[da])){db.splice(da,1);da--}}if(!db||!db.length){return[]}return ct(db)}function aC(dc,da,db){var dd=v.buildImpressionRequestParams(dc,da,db);return cn(dd,null,"contentImpression")}function c3(dd,db){if(!dd){return}var da=v.findParentContentNode(dd);var dc=v.buildContentBlock(da);if(!dc){return}if(!db){db="Unknown"}return aL(db,dc.name,dc.piece,dc.target)}function cI(db,dd,da,dc){return"e_c="+t(db)+"&e_a="+t(dd)+(J(da)?"&e_n="+t(da):"")+(J(dc)?"&e_v="+t(dc):"")}function ap(dc,de,da,dd,dg,df){if(a(String(dc)).length===0||a(String(de)).length===0){ah("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces"); -return false}var db=cn(cI(dc,de,da,dd),dg,"event");bz(db,bD,df)}function b2(da,dd,db,de){var dc=cn("search="+t(da)+(dd?"&search_cat="+t(dd):"")+(J(db)?"&search_count="+db:""),de,"sitesearch");bz(dc,bD)}function cM(da,de,dd,dc){var db=cn("idgoal="+da+(de?"&revenue="+de:""),dd,"goal");bz(db,bD,dc)}function cU(dd,da,dh,dg,dc){var df=da+"="+t(bW(dd));var db=co(dc,"click",dd);if(db){df+="&"+db}var de=cn(df,dh,"link");bz(de,bD,dg)}function bO(db,da){if(db!==""){return db+da.charAt(0).toUpperCase()+da.slice(1)}return da}function cb(df){var de,da,dd=["","webkit","ms","moz"],dc;if(!ba){for(da=0;da<dd.length;da++){dc=dd[da];if(Object.prototype.hasOwnProperty.call(G,bO(dc,"hidden"))){if(G[bO(dc,"visibilityState")]==="prerender"){de=true}break}}}if(de){ak(G,dc+"visibilitychange",function db(){G.removeEventListener(dc+"visibilitychange",db,false);df()});return}df()}function bm(){var db=aU().uuid;var da=aF();return db+da}function cd(da){if(!da){return}if(!ac.hasNodeAttribute(da,"href")){return}var db=ac.getAttributeValueFromNode(da,"href"); -if(!db||aQ(db)){return}db=k(db,ar);if(db.indexOf("?")>0){db+="&"}else{db+="?"}var dc=bm();db=F(db,ar,dc);ac.setAnyAttribute(da,"href",db)}function ax(dd){var de=ac.getAttributeValueFromNode(dd,"href");if(!de){return false}de=String(de);var db=de.indexOf("//")===0||de.indexOf("http://")===0||de.indexOf("https://")===0;if(!db){return false}var da=dd.pathname||cf(dd.href);var dc=(dd.hostname||d(dd.href)).toLowerCase();if(ao(dc,da)){if(!cA(cN,L(dc))){return true}return false}return false}function cz(da){var db=c4(da);if(db&&db.type){db.href=p(db.href);cU(db.href,db.type,undefined,null,da);return}if(cG){da=aq(da);if(ax(da)){cd(da)}}}function cq(){return G.all&&!G.addEventListener}function cO(da){var dc=da.which;var db=(typeof da.button);if(!dc&&db!=="undefined"){if(cq()){if(da.button&1){dc=1}else{if(da.button&2){dc=3}else{if(da.button&4){dc=2}}}}else{if(da.button===0||da.button==="0"){dc=1}else{if(da.button&1){dc=2}else{if(da.button&2){dc=3}}}}}return dc}function bN(da){switch(cO(da)){case 1:return"left"; -case 2:return"middle";case 3:return"right"}}function aX(da){return da.target||da.srcElement}function ay(da){return function(dd){dd=dd||T.event;var dc=bN(dd);var de=aX(dd);if(dd.type==="click"){var db=false;if(da&&dc==="middle"){db=true}if(de&&!db){cz(de)}}else{if(dd.type==="mousedown"){if(dc==="middle"&&de){aN=dc;bv=de}else{aN=bv=null}}else{if(dd.type==="mouseup"){if(dc===aN&&de===bv){cz(de)}aN=bv=null}else{if(dd.type==="contextmenu"){cz(de)}}}}}}function an(dc,db){var da=typeof db;if(da==="undefined"){db=true}ak(dc,"click",ay(db),false);if(db){ak(dc,"mouseup",ay(db),false);ak(dc,"mousedown",ay(db),false);ak(dc,"contextmenu",ay(db),false)}}function bx(dc,de){am=true;var dd,db=aW(bu,"ignore"),df=G.links,da=null,dg=null;if(df){for(dd=0;dd<df.length;dd++){da=df[dd];if(!db.test(da.className)){dg=typeof da.piwikTrackers;if("undefined"===dg){da.piwikTrackers=[]}if(-1===M(da.piwikTrackers,de)){da.piwikTrackers.push(de);an(da,dc)}}}}}function aO(db,de,df){if(b9){return true}b9=true;var dg=false; -var dd,dc;function da(){dg=true}n(function(){function dh(dj){setTimeout(function(){if(!b9){return}dg=false;df.trackVisibleContentImpressions();dh(dj)},dj)}function di(dj){setTimeout(function(){if(!b9){return}if(dg){dg=false;df.trackVisibleContentImpressions()}di(dj)},dj)}if(db){dd=["scroll","resize"];for(dc=0;dc<dd.length;dc++){if(G.addEventListener){G.addEventListener(dd[dc],da,false)}else{T.attachEvent("on"+dd[dc],da)}}di(100)}if(de&&de>0){de=parseInt(de,10);dh(de)}})}function cy(){var db,dd,de={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"};if(!((new RegExp("MSIE")).test(h.userAgent))){if(h.mimeTypes&&h.mimeTypes.length){for(db in de){if(Object.prototype.hasOwnProperty.call(de,db)){dd=h.mimeTypes[de[db]];c0[db]=(dd&&dd.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(h.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&J(h.javaEnabled)&&h.javaEnabled()){c0.java="1" -}if(A(T.GearsFactory)){c0.gears="1"}c0.cookie=bZ()}var dc=parseInt(X.width,10);var da=parseInt(X.height,10);c0.res=parseInt(dc,10)+"x"+parseInt(da,10)}cy();bd();aI();this.getVisitorId=function(){return aU().uuid};this.getVisitorInfo=function(){return cH()};this.getAttributionInfo=function(){return bG()};this.getAttributionCampaignName=function(){return bG()[0]};this.getAttributionCampaignKeyword=function(){return bG()[1]};this.getAttributionReferrerTimestamp=function(){return bG()[2]};this.getAttributionReferrerUrl=function(){return bG()[3]};this.setTrackerUrl=function(da){aA=da};this.getTrackerUrl=function(){return aA};this.getPiwikUrl=function(){return O(this.getTrackerUrl(),bB)};this.addTracker=function(da,dc){if(!dc){throw new Error("A siteId must be given to add a new tracker")}if(!J(da)||null===da){da=this.getTrackerUrl()}var db=new Q(da,dc);I.push(db);e.trigger("TrackerAdded",[this]);return db};this.getSiteId=function(){return b0};this.setSiteId=function(da){bX(da)};this.resetUserId=function(){bt="" -};this.setUserId=function(da){if(!J(da)||!da.length){return}bt=da};this.getUserId=function(){return bt};this.setCustomData=function(da,db){if(W(da)){al=da}else{if(!al){al={}}al[da]=db}};this.getCustomData=function(){return al};this.setCustomRequestProcessing=function(da){b5=da};this.appendToTrackingUrl=function(da){cS=da};this.getRequest=function(da){return cn(da)};this.addPlugin=function(da,db){b[da]=db};this.setCustomDimension=function(da,db){da=parseInt(da,10);if(da>0){if(!J(db)){db=""}if(!w(db)){db=String(db)}bh[da]=db}};this.getCustomDimension=function(da){da=parseInt(da,10);if(da>0&&Object.prototype.hasOwnProperty.call(bh,da)){return bh[da]}};this.deleteCustomDimension=function(da){da=parseInt(da,10);if(da>0){delete bh[da]}};this.setCustomVariable=function(db,da,de,dc){var dd;if(!J(dc)){dc="visit"}if(!J(da)){return}if(!J(de)){de=""}if(db>0){da=!w(da)?String(da):da;de=!w(de)?String(de):de;dd=[da.slice(0,bo),de.slice(0,bo)];if(dc==="visit"||dc===2){cx();aM[db]=dd}else{if(dc==="page"||dc===3){bQ[db]=dd -}else{if(dc==="event"){cg[db]=dd}}}}};this.getCustomVariable=function(db,dc){var da;if(!J(dc)){dc="visit"}if(dc==="page"||dc===3){da=bQ[db]}else{if(dc==="event"){da=cg[db]}else{if(dc==="visit"||dc===2){cx();da=aM[db]}}}if(!J(da)||(da&&da[0]==="")){return false}return da};this.deleteCustomVariable=function(da,db){if(this.getCustomVariable(da,db)){this.setCustomVariable(da,"","",db)}};this.deleteCustomVariables=function(da){if(da==="page"||da===3){bQ={}}else{if(da==="event"){cg={}}else{if(da==="visit"||da===2){aM={}}}}};this.storeCustomVariablesInCookie=function(){bK=true};this.setLinkTrackingTimer=function(da){bD=da};this.getLinkTrackingTimer=function(){return bD};this.setDownloadExtensions=function(da){if(w(da)){da=da.split("|")}cZ=da};this.addDownloadExtensions=function(db){var da;if(w(db)){db=db.split("|")}for(da=0;da<db.length;da++){cZ.push(db[da])}};this.removeDownloadExtensions=function(dc){var db,da=[];if(w(dc)){dc=dc.split("|")}for(db=0;db<cZ.length;db++){if(M(dc,cZ[db])===-1){da.push(cZ[db]) -}}cZ=da};this.setDomains=function(da){au=w(da)?[da]:da;var de=false,dc=0,db;for(dc;dc<au.length;dc++){db=String(au[dc]);if(cA(cN,L(db))){de=true;break}var dd=cf(db);if(dd&&dd!=="/"&&dd!=="/*"){de=true;break}}if(!de){au.push(cN)}};this.enableCrossDomainLinking=function(){cG=true};this.disableCrossDomainLinking=function(){cG=false};this.isCrossDomainLinkingEnabled=function(){return cG};this.setCrossDomainLinkingTimeout=function(da){aV=da};this.getCrossDomainLinkingUrlParameter=function(){return t(ar)+"="+t(bm())};this.setIgnoreClasses=function(da){bu=w(da)?[da]:da};this.setRequestMethod=function(da){c2=da||cc};this.setRequestContentType=function(da){cr=da||aE};this.setReferrerUrl=function(da){bi=da};this.setCustomUrl=function(da){a0=bP(bH,da)};this.getCurrentUrl=function(){return a0||bH};this.setDocumentTitle=function(da){be=da};this.setAPIUrl=function(da){bB=da};this.setDownloadClasses=function(da){bF=w(da)?[da]:da};this.setLinkClasses=function(da){a4=w(da)?[da]:da};this.setCampaignNameKey=function(da){cl=w(da)?[da]:da -};this.setCampaignKeywordKey=function(da){bA=w(da)?[da]:da};this.discardHashTag=function(da){bJ=da};this.setCookieNamePrefix=function(da){bf=da;aM=bR()};this.setCookieDomain=function(da){var db=L(da);if(br(db)){cQ=db;bd()}};this.getCookieDomain=function(){return cQ};this.hasCookies=function(){return"1"===bZ()};this.setSessionCookie=function(dc,db,da){if(!dc){throw new Error("Missing cookie name")}if(!J(da)){da=cj}bp.push(dc);c5(aP(dc),db,da,bk,cQ)};this.getCookie=function(db){var da=az(aP(db));if(da===0){return null}return da};this.setCookiePath=function(da){bk=da;bd()};this.getCookiePath=function(da){return bk};this.setVisitorCookieTimeout=function(da){cC=da*1000};this.setSessionCookieTimeout=function(da){cj=da*1000};this.getSessionCookieTimeout=function(){return cj};this.setReferralCookieTimeout=function(da){cY=da*1000};this.setConversionAttributionFirstReferrer=function(da){bq=da};this.setSecureCookie=function(da){bM=da};this.disableCookies=function(){bg=true;c0.cookie="0";if(b0){aB() -}};this.deleteCookies=function(){aB()};this.setDoNotTrack=function(db){var da=h.doNotTrack||h.msDoNotTrack;cJ=db&&(da==="yes"||da==="1");if(cJ){this.disableCookies()}};this.alwaysUseSendBeacon=function(){cP=true};this.addListener=function(db,da){an(db,da)};this.enableLinkTracking=function(db){c1=true;var da=this;cb(function(){q(function(){bx(db,da)})})};this.enableJSErrorTracking=function(){if(cL){return}cL=true;var da=T.onerror;T.onerror=function(df,dd,dc,de,db){cb(function(){var dg="JavaScript Errors";var dh=dd+":"+dc;if(de){dh+=":"+de}ap(dg,dh,df)});if(da){return da(df,dd,dc,de,db)}return false}};this.disablePerformanceTracking=function(){aY=false};this.setGenerationTimeMs=function(da){ch=parseInt(da,10)};this.enableHeartBeatTimer=function(da){da=Math.max(da,1);a1=(da||15)*1000;if(cR!==null){c7()}};this.disableHeartBeatTimer=function(){bE();if(a1||aK){if(T.removeEventListener){T.removeEventListener("focus",a6,true);T.removeEventListener("blur",av,true)}else{if(T.detachEvent){T.detachEvent("onfocus",a6); -T.detachEvent("onblur",av)}}}a1=null;aK=false};this.killFrame=function(){if(T.location!==T.top.location){T.top.location=T.location}};this.redirectFile=function(da){if(T.location.protocol==="file:"){T.location=da}};this.setCountPreRendered=function(da){ba=da};this.trackGoal=function(da,dd,dc,db){cb(function(){cM(da,dd,dc,db)})};this.trackLink=function(db,da,dd,dc){cb(function(){cU(db,da,dd,dc)})};this.getNumTrackedPageViews=function(){return cm};this.trackPageView=function(da,dc,db){b4=[];cD=[];if(N(b0)){cb(function(){Y(aA,bB,b0)})}else{cb(function(){cm++;bU(da,dc,db)})}};this.trackAllContentImpressions=function(){if(N(b0)){return}cb(function(){q(function(){var da=v.findContentNodes();var db=ct(da);c6(db,bD)})})};this.trackVisibleContentImpressions=function(da,db){if(N(b0)){return}if(!J(da)){da=true}if(!J(db)){db=750}aO(da,db,this);cb(function(){n(function(){var dc=v.findContentNodes();var dd=a5(dc);c6(dd,bD)})})};this.trackContentImpression=function(dc,da,db){if(N(b0)){return}dc=a(dc);da=a(da); -db=a(db);if(!dc){return}da=da||"Unknown";cb(function(){var dd=aC(dc,da,db);bz(dd,bD)})};this.trackContentImpressionsWithinNode=function(da){if(N(b0)||!da){return}cb(function(){if(b9){n(function(){var db=v.findContentNodesWithinNode(da);var dc=a5(db);c6(dc,bD)})}else{q(function(){var db=v.findContentNodesWithinNode(da);var dc=ct(db);c6(dc,bD)})}})};this.trackContentInteraction=function(dc,dd,da,db){if(N(b0)){return}dc=a(dc);dd=a(dd);da=a(da);db=a(db);if(!dc||!dd){return}da=da||"Unknown";cb(function(){var de=aL(dc,dd,da,db);bz(de,bD)})};this.trackContentInteractionNode=function(db,da){if(N(b0)||!db){return}cb(function(){var dc=c3(db,da);bz(dc,bD)})};this.logAllContentBlocksOnPage=function(){var dc=v.findContentNodes();var da=v.collectContent(dc);var db=typeof console;if(db!=="undefined"&&console&&console.log){console.log(da)}};this.trackEvent=function(db,dd,da,dc,df,de){cb(function(){ap(db,dd,da,dc,df,de)})};this.trackSiteSearch=function(da,dc,db,dd){cb(function(){b2(da,dc,db,dd)})};this.setEcommerceView=function(dd,da,dc,db){if(!J(dc)||!dc.length){dc="" -}else{if(dc instanceof Array){dc=JSON_PIWIK.stringify(dc)}}bQ[5]=["_pkc",dc];if(J(db)&&String(db).length){bQ[2]=["_pkp",db]}if((!J(dd)||!dd.length)&&(!J(da)||!da.length)){return}if(J(dd)&&dd.length){bQ[3]=["_pks",dd]}if(!J(da)||!da.length){da=""}bQ[4]=["_pkn",da]};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(cT))};this.addEcommerceItem=function(de,da,dc,db,dd){if(de.length){cT[de]=[de,da,dc,db,dd]}};this.removeEcommerceItem=function(da){if(da.length){delete cT[da]}};this.clearEcommerceCart=function(){cT={}};this.trackEcommerceOrder=function(da,de,dd,dc,db,df){bT(da,de,dd,dc,db,df)};this.trackEcommerceCartUpdate=function(da){bn(da)};this.trackRequest=function(db,dd,dc,da){cb(function(){var de=cn(db,dd,da);bz(de,bD,dc)})};this.queueRequest=function(da){cb(function(){var db=cn(da);requestQueue.push(db)})};this.getRememberedConsent=function(){var da=az(a9);if(az(cF)){if(da){bS(a9,bk,cQ)}return null}if(!da||da===0){return null}return da};this.hasRememberedConsent=function(){return !!this.getRememberedConsent() -};this.requireConsent=function(){cu=true;bw=this.hasRememberedConsent();x++;b["CoreConsent"+x]={unload:function(){if(!bw){aB()}}}};this.setConsentGiven=function(){bw=true;bS(cF,bk,cQ);var db,da;for(db=0;db<cD.length;db++){da=typeof cD[db];if(da==="string"){bz(cD[db],bD)}else{if(da==="object"){c6(cD[db],bD)}}}cD=[]};this.rememberConsentGiven=function(db){if(bg){ah("rememberConsentGiven is called but cookies are disabled, consent will not be remembered");return}if(db){db=db*60*60*1000}this.setConsentGiven();var da=new Date().getTime();c5(a9,da,db,bk,cQ,bM)};this.forgetConsentGiven=function(){if(bg){ah("forgetConsentGiven is called but cookies are disabled, consent will not be forgotten");return}bS(a9,bk,cQ);c5(cF,new Date().getTime(),0,bk,cQ,bM);this.requireConsent()};this.isUserOptedOut=function(){return !bw};this.optUserOut=this.forgetConsentGiven;this.forgetUserOptOut=this.rememberConsentGiven;e.trigger("TrackerSetup",[this])}function H(){return{push:ad}}function c(aq,ap){var ar={};var an,ao; -for(an=0;an<ap.length;an++){var al=ap[an];ar[al]=1;for(ao=0;ao<aq.length;ao++){if(aq[ao]&&aq[ao][0]){var am=aq[ao][0];if(al===am){ad(aq[ao]);delete aq[ao];if(ar[am]>1&&am!=="addTracker"){ah("The method "+am+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: https://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers')}ar[am]++}}}}return aq}var C=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","alwaysUseSendBeacon","enableLinkTracking","requireConsent","setConsentGiven"];function ab(al,an){var am=new Q(al,an);I.push(am);_paq=c(_paq,C);for(E=0;E<_paq.length;E++){if(_paq[E]){ad(_paq[E])}}_paq=new H();e.trigger("TrackerAdded",[am]);return am}ak(T,"beforeunload",af,false);Date.prototype.getTimeAlias=Date.prototype.getTime; -e={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(ao,an,am,al){var ap=typeof al;if(ap==="undefined"){al=false}ak(ao,an,am,al)},onLoad:n,onReady:q,isNodeVisible:j,isOrWasNodeVisible:v.isNodeVisible},on:function(am,al){if(!y[am]){y[am]=[]}y[am].push(al)},off:function(an,am){if(!y[an]){return}var al=0;for(al;al<y[an].length;al++){if(y[an][al]===am){y[an].splice(al,1)}}},trigger:function(an,ao,am){if(!y[an]){return}var al=0;for(al;al<y[an].length;al++){y[an][al].apply(am||T,ao)}},addPlugin:function(al,am){b[al]=am},getTracker:function(al,am){if(!J(am)){am=this.getAsyncTracker().getSiteId()}if(!J(al)){al=this.getAsyncTracker().getTrackerUrl()}return new Q(al,am)},getAsyncTrackers:function(){return I},addTracker:function(al,an){var am;if(!I.length){am=ab(al,an)}else{am=I[0].addTracker(al,an)}return am},getAsyncTracker:function(am,ap){var ao;if(I&&I.length&&I[0]){ao=I[0]}else{return ab(am,ap)}if(!ap&&!am){return ao}if((!J(ap)||null===ap)&&ao){ap=ao.getSiteId()}if((!J(am)||null===am)&&ao){am=ao.getTrackerUrl() -}var an,al=0;for(al;al<I.length;al++){an=I[al];if(an&&String(an.getSiteId())===String(ap)&&an.getTrackerUrl()===am){return an}}},retryMissedPluginCalls:function(){var am=ae;ae=[];var al=0;for(al;al<am.length;al++){ad(am[al])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return e});define("matomo",[],function(){return e})}return e}())} +if(ap!==String(ar)){return false}var aq=an[2],al=an[3],ao=an[4];if(!ao){ao=""}else{if(ao.indexOf("&segment=")===0){ao=ao.substr("&segment=".length)}}T.name=au+"###"+aq+"###"+al+"###"+ao}var at=T.name.split("###");return at.length===4&&at[0]===au}function Y(am,at,ao){var ar=T.name.split("###"),aq=ar[1],al=ar[2],ap=ar[3],an=O(am,at);o(an+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(an,ao,aq,al,ap)})}function u(){var an;try{an=T.frameElement}catch(am){return true}if(J(an)){return(an&&String(an.nodeName).toLowerCase()==="iframe")?true:false}try{return T.self!==T.top}catch(al){return true}}function Q(b9,b4){var bD=this,a9="mtm_consent",cG="mtm_consent_removed",bZ=Z(G.domain,T.location.href,K()),cO=L(bZ[0]),bI=p(bZ[1]),bi=p(bZ[2]),cM=false,cd="GET",c3=cd,aE="application/x-www-form-urlencoded; charset=UTF-8",cs=aE,aA=b9||"",bC="",cT="",b1=b4||"",bt="",bJ="",a0,be="",c0=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],au=[cO],bu=[],bG=[],a4=[],bE=500,cQ=false,cC,a1,bM,bK,al,cm=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bB=["pk_kwd","piwik_kwd","utm_term"],bf="_pk_",ar="pk_vid",aV=180,cR,bk,bN=false,bg=false,cK,ba,bq,cD=33955200000,ck=1800000,cZ=15768000000,aY=true,ci=0,bL=false,aM=false,b6,bR={},ch={},bh={},bo=200,cU={},c1={},b5=[],ca=false,cw=false,am=false,c2=false,cH=false,aK=false,a8=u(),cS=null,b7,aN,bv,b2=aj,bj,aH,cn=0,bp=["id","ses","cvar","ref"],cv=false,bw=null,cE=[],at=U++; +try{be=G.title}catch(ct){be=""}function c6(dh,df,de,dg,dd,dc){if(bg){return}var db;if(de){db=new Date();db.setTime(db.getTime()+de)}G.cookie=dh+"="+t(df)+(de?";expires="+db.toGMTString():"")+";path="+(dg||"/")+(dd?";domain="+dd:"")+(dc?";secure":"")}function az(dd){if(bg){return 0}var db=new RegExp("(^|;)[ ]*"+dd+"=([^;]*)"),dc=db.exec(G.cookie);return dc?S(dc[2]):0}bw=!az(cG);function bX(db){var dc;db=k(db,ar);if(bK){dc=new RegExp("#.*");return db.replace(dc,"")}return db}function bQ(dd,db){var de=s(db),dc;if(de){return db}if(db.slice(0,1)==="/"){return s(dd)+"://"+d(dd)+db}dd=bX(dd);dc=dd.indexOf("?");if(dc>=0){dd=dd.slice(0,dc)}dc=dd.lastIndexOf("/");if(dc!==dd.length-1){dd=dd.slice(0,dc+1)}return dd+db}function cB(dd,db){var dc;dd=String(dd).toLowerCase();db=String(db).toLowerCase();if(dd===db){return true}if(db.slice(0,1)==="."){if(dd===db.slice(1)){return true}dc=dd.length-db.length;if((dc>0)&&(dd.slice(dc)===db)){return true}}return false}function cg(db){var dc=document.createElement("a"); +if(db.indexOf("//")!==0&&db.indexOf("http")!==0){if(db.indexOf("*")===0){db=db.substr(1)}if(db.indexOf(".")===0){db=db.substr(1)}db="http://"+db}dc.href=v.toAbsoluteUrl(db);if(dc.pathname){return dc.pathname}return""}function aZ(dc,db){if(!ag(db,"/")){db="/"+db}if(!ag(dc,"/")){dc="/"+dc}var dd=(db==="/"||db==="/*");if(dd){return true}if(dc===db){return true}db=String(db).toLowerCase();dc=String(dc).toLowerCase();if(R(db,"*")){db=db.slice(0,-1);dd=(!db||db==="/");if(dd){return true}if(dc===db){return true}return dc.indexOf(db)===0}if(!R(dc,"/")){dc+="/"}if(!R(db,"/")){db+="/"}return dc.indexOf(db)===0}function ao(df,dh){var dc,db,dd,de,dg;for(dc=0;dc<au.length;dc++){de=L(au[dc]);dg=cg(au[dc]);if(cB(df,de)&&aZ(dh,dg)){return true}}return false}function aR(de){var dc,db,dd;for(dc=0;dc<au.length;dc++){db=L(au[dc].toLowerCase());if(de===db){return true}if(db.slice(0,1)==="."){if(de===db.slice(1)){return true}dd=de.length-db.length;if((dd>0)&&(de.slice(dd)===db)){return true}}}return false}function cl(db,dd){db=db.replace("send_image=0","send_image=1"); +var dc=new Image(1,1);dc.onload=function(){E=0;if(typeof dd==="function"){dd({request:db,trackerUrl:aA,success:true})}};dc.onerror=function(){if(typeof dd==="function"){dd({request:db,trackerUrl:aA,success:false})}};dc.src=aA+(aA.indexOf("?")<0?"?":"&")+db}function aG(){return"object"===typeof h&&"function"===typeof h.sendBeacon&&"function"===typeof Blob}function a2(de,di){var dd=aG();if(!dd){return false}var dh={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dg=false;var dc=aA;try{var db=new Blob([de],dh);if(de.length<=2000){db=new Blob([],dh);dc=dc+(dc.indexOf("?")<0?"?":"&")+de}dg=h.sendBeacon(dc,db)}catch(df){return false}if(dg&&typeof di==="function"){di({request:de,trackerUrl:aA,success:true,isSendBeacon:true})}return dg}function cY(dc,dd,db){if(!J(db)||null===db){db=true}if(m&&a2(dc,dd)){return}setTimeout(function(){if(m&&a2(dc,dd)){return}var dg;try{var df=T.XMLHttpRequest?new T.XMLHttpRequest():T.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;df.open("POST",aA,true); +df.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dh=m&&a2(dc,dd);if(!dh&&db){cl(dc,dd)}else{if(typeof dd==="function"){dd({request:dc,trackerUrl:aA,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dd==="function")){dd({request:dc,trackerUrl:aA,success:true,xhr:this})}}};df.setRequestHeader("Content-Type",cs);df.send(dc)}catch(de){dg=m&&a2(dc,dd);if(!dg&&db){cl(dc,dd)}else{if(typeof dd==="function"){dd({request:dc,trackerUrl:aA,success:false})}}}},50)}function cb(dc){var db=new Date();var dd=db.getTime()+dc;if(!r||dd>r){r=dd}}function cj(db){if(b7||!a1||!bw){return}b7=setTimeout(function dc(){b7=null;if(!a8){a8=(!G.hasFocus||G.hasFocus())}if(!a8){cj(a1);return}if(bM()){return}var dd=new Date(),de=a1-(dd.getTime()-cS);de=Math.min(a1,de);cj(de)},db||a1)}function bF(){if(!b7){return}clearTimeout(b7);b7=null}function a6(){a8=true;if(bM()){return}cj()}function av(){bF()}function c8(){if(aK||!a1){return}aK=true;ak(T,"focus",a6);ak(T,"blur",av); +cj()}function cx(df){var dc=new Date();var db=dc.getTime();cS=db;if(cw&&db<cw){var dd=cw-db;setTimeout(df,dd);cb(dd+50);cw+=50;return}if(cw===false){var de=800;cw=db+de}df()}function bA(dc,db,dd){if(!bw){cE.push(dc);return}if(!cK&&dc){if(cv&&bw){dc+="&consent=1"}cx(function(){if(cQ&&a2(dc,dd)){cb(100);return}if(c3==="POST"||String(dc).length>2000){cY(dc,dd)}else{cl(dc,dd)}cb(db)})}if(!aK){c8()}else{cj()}}function cf(db){if(cK){return false}return(db&&db.length)}function cX(db,df){if(!df||df>=db.length){return[db]}var dc=0;var dd=db.length;var de=[];for(dc;dc<dd;dc+=df){de.push(db.slice(dc,dc+df))}return de}function c7(dc,db){if(!cf(dc)){return}if(!bw){cE.push(dc);return}cx(function(){var df=cX(dc,50);var dd=0,de;for(dd;dd<df.length;dd++){de='{"requests":["?'+df[dd].join('","?')+'"]}';cY(de,null,false)}cb(db)})}function aP(db){return bf+db+"."+b1+"."+bj}function b0(){if(bg){return"0"}if(!J(h.cookieEnabled)){var db=aP("testcookie");c6(db,"1");return az(db)==="1"?"1":"0"}return h.cookieEnabled?"1":"0" +}function bd(){bj=b2((cR||cO)+(bk||"/")).slice(0,4)}function bS(){var dc=aP("cvar"),db=az(dc);if(db.length){db=JSON_PIWIK.parse(db);if(W(db)){return db}}return{}}function cy(){if(aM===false){aM=bS()}}function cL(){return b2((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c1)+(new Date()).getTime()+Math.random()).slice(0,16)}function aw(){return b2((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c1)).slice(0,6)}function bb(){return Math.floor((new Date()).getTime()/1000)}function aF(){var dc=bb();var dd=aw();var db=String(dc)+dd;return db}function cW(dd){dd=String(dd);var dg=aw();var de=dg.length;var df=dd.substr(-1*de,de);var dc=parseInt(dd.substr(0,dd.length-de),10);if(dc&&df&&df===dg){var db=bb();if(aV<=0){return true}if(db>=dc&&db<=(dc+aV)){return true}}return false}function c9(db){if(!cH){return""}var df=f(db,ar);if(!df){return""}df=String(df);var dd=new RegExp("^[a-zA-Z0-9]+$");if(df.length===32&&dd.test(df)){var dc=df.substr(16,32);if(cW(dc)){var de=df.substr(0,16); +return de}}return""}function cI(){if(!bJ){bJ=c9(bI)}var dd=new Date(),db=Math.round(dd.getTime()/1000),dc=aP("id"),dg=az(dc),df,de;if(dg){df=dg.split(".");df.unshift("0");if(bJ.length){df[1]=bJ}return df}if(bJ.length){de=bJ}else{if("0"===b0()){de=""}else{de=cL()}}df=["1",de,db,0,db,"",""];return df}function aU(){var di=cI(),de=di[0],df=di[1],dc=di[2],db=di[3],dg=di[4],dd=di[5];if(!J(di[6])){di[6]=""}var dh=di[6];return{newVisitor:de,uuid:df,createTs:dc,visitCount:db,currentVisitTs:dg,lastVisitTs:dd,lastEcommerceOrderTs:dh}}function aD(){var de=new Date(),dc=de.getTime(),df=aU().createTs;var db=parseInt(df,10);var dd=(db*1000)+cD-dc;return dd}function aI(db){if(!b1){return}var dd=new Date(),dc=Math.round(dd.getTime()/1000);if(!J(db)){db=aU()}var de=db.uuid+"."+db.createTs+"."+db.visitCount+"."+dc+"."+db.lastVisitTs+"."+db.lastEcommerceOrderTs;c6(aP("id"),de,aD(),bk,cR,bN)}function bH(){var db=az(aP("ref"));if(db.length){try{db=JSON_PIWIK.parse(db);if(W(db)){return db}}catch(dc){}}return["","",0,""] +}function bT(dd,dc,db){c6(dd,"",-86400,dc,db)}function br(dc){var db="testvalue";c6("test",db,10000,null,dc);if(az("test")===db){bT("test",null,dc);return true}return false}function aB(){var dc=bg;bg=false;var db,dd;for(db=0;db<bp.length;db++){dd=aP(bp[db]);if(dd!==cG&&dd!==a9&&0!==az(dd)){bT(dd,bk,cR)}}bg=dc}function bY(db){b1=db;aI()}function da(df){if(!df||!W(df)){return}var de=[];var dd;for(dd in df){if(Object.prototype.hasOwnProperty.call(df,dd)){de.push(dd)}}var dg={};de.sort();var db=de.length;var dc;for(dc=0;dc<db;dc++){dg[de[dc]]=df[de[dc]]}return dg}function b8(){c6(aP("ses"),"1",ck,bk,cR,bN)}function bc(){var de="";var dc="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var dd=dc.length;var db;for(db=0;db<6;db++){de+=dc.charAt(Math.floor(Math.random()*dd))}return de}function co(dd,dz,dA,de){var dy,dc=new Date(),dl=Math.round(dc.getTime()/1000),di,dx,df=1024,dF,dm,dv=aM,dg=aP("ses"),dt=aP("ref"),dq=aP("cvar"),dr=az(dg),dw=bH(),dC=a0||bI,dj,db;if(bg){aB()}if(cK){return"" +}var ds=aU();if(!J(de)){de=""}var dp=G.characterSet||G.charset;if(!dp||dp.toLowerCase()==="utf-8"){dp=null}dj=dw[0];db=dw[1];di=dw[2];dx=dw[3];if(!dr){var dB=ck/1000;if(!ds.lastVisitTs||(dl-ds.lastVisitTs)>dB){ds.visitCount++;ds.lastVisitTs=ds.currentVisitTs}if(!bq||!dj.length){for(dy in cm){if(Object.prototype.hasOwnProperty.call(cm,dy)){dj=f(dC,cm[dy]);if(dj.length){break}}}for(dy in bB){if(Object.prototype.hasOwnProperty.call(bB,dy)){db=f(dC,bB[dy]);if(db.length){break}}}}dF=d(bi);dm=dx.length?d(dx):"";if(dF.length&&!aR(dF)&&(!bq||!dm.length||aR(dm))){dx=bi}if(dx.length||dj.length){di=dl;dw=[dj,db,di,bX(dx.slice(0,df))];c6(dt,JSON_PIWIK.stringify(dw),cZ,bk,cR)}}dd+="&idsite="+b1+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+dc.getHours()+"&m="+dc.getMinutes()+"&s="+dc.getSeconds()+"&url="+t(bX(dC))+(bi.length?"&urlref="+t(bX(bi)):"")+((bt&&bt.length)?"&uid="+t(bt):"")+"&_id="+ds.uuid+"&_idts="+ds.createTs+"&_idvc="+ds.visitCount+"&_idn="+ds.newVisitor+(dj.length?"&_rcn="+t(dj):"")+(db.length?"&_rck="+t(db):"")+"&_refts="+di+"&_viewts="+ds.lastVisitTs+(String(ds.lastEcommerceOrderTs).length?"&_ects="+ds.lastEcommerceOrderTs:"")+(String(dx).length?"&_ref="+t(bX(dx.slice(0,df))):"")+(dp?"&cs="+t(dp):"")+"&send_image=0"; +for(dy in c1){if(Object.prototype.hasOwnProperty.call(c1,dy)){dd+="&"+dy+"="+c1[dy]}}var dE=[];if(dz){for(dy in dz){if(Object.prototype.hasOwnProperty.call(dz,dy)&&/^dimension\d+$/.test(dy)){var dh=dy.replace("dimension","");dE.push(parseInt(dh,10));dE.push(String(dh));dd+="&"+dy+"="+dz[dy];delete dz[dy]}}}if(dz&&B(dz)){dz=null}for(dy in bh){if(Object.prototype.hasOwnProperty.call(bh,dy)){var dn=(-1===M(dE,dy));if(dn){dd+="&dimension"+dy+"="+bh[dy]}}}if(dz){dd+="&data="+t(JSON_PIWIK.stringify(dz))}else{if(al){dd+="&data="+t(JSON_PIWIK.stringify(al))}}function dk(dG,dH){var dI=JSON_PIWIK.stringify(dG);if(dI.length>2){return"&"+dH+"="+t(dI)}return""}var dD=da(bR);var du=da(ch);dd+=dk(dD,"cvar");dd+=dk(du,"e_cvar");if(aM){dd+=dk(aM,"_cvar");for(dy in dv){if(Object.prototype.hasOwnProperty.call(dv,dy)){if(aM[dy][0]===""||aM[dy][1]===""){delete aM[dy]}}}if(bL){c6(dq,JSON_PIWIK.stringify(aM),ck,bk,cR)}}if(aY){if(ci){dd+=">_ms="+ci}else{if(i&&i.timing&&i.timing.requestStart&&i.timing.responseEnd){dd+=">_ms="+(i.timing.responseEnd-i.timing.requestStart) +}}}if(aH){dd+="&pv_id="+aH}ds.lastEcommerceOrderTs=J(de)&&String(de).length?de:ds.lastEcommerceOrderTs;aI(ds);b8();dd+=aa(dA,{tracker:bD,request:dd});if(cT.length){dd+="&"+cT}if(A(b6)){dd=b6(dd)}return dd}bM=function a3(){var db=new Date();if(cS+a1<=db.getTime()){var dc=co("ping=1",null,"ping");bA(dc,bE);return true}return false};function bl(de,dd,dj,df,db,dm){var dh="idgoal=0",di,dc=new Date(),dk=[],dl,dg=String(de).length;if(dg){dh+="&ec_id="+t(de);di=Math.round(dc.getTime()/1000)}dh+="&revenue="+dd;if(String(dj).length){dh+="&ec_st="+dj}if(String(df).length){dh+="&ec_tx="+df}if(String(db).length){dh+="&ec_sh="+db}if(String(dm).length){dh+="&ec_dt="+dm}if(cU){for(dl in cU){if(Object.prototype.hasOwnProperty.call(cU,dl)){if(!J(cU[dl][1])){cU[dl][1]=""}if(!J(cU[dl][2])){cU[dl][2]=""}if(!J(cU[dl][3])||String(cU[dl][3]).length===0){cU[dl][3]=0}if(!J(cU[dl][4])||String(cU[dl][4]).length===0){cU[dl][4]=1}dk.push(cU[dl])}}dh+="&ec_items="+t(JSON_PIWIK.stringify(dk))}dh=co(dh,al,"ecommerce",di); +bA(dh,bE);if(dg){cU={}}}function bU(db,df,de,dd,dc,dg){if(String(db).length&&J(df)){bl(db,df,de,dd,dc,dg)}}function bn(db){if(J(db)){bl("",db,"","","","")}}function bV(dc,de,dd){aH=bc();var db=co("action_name="+t(ai(dc||be)),de,"log");bA(db,bE,dd)}function aW(dd,dc){var de,db="(^| )(piwik[_-]"+dc;if(dd){for(de=0;de<dd.length;de++){db+="|"+dd[de]}}db+=")( |$)";return new RegExp(db)}function aQ(db){return(aA&&db&&0===String(db).indexOf(aA))}function cq(df,db,dg,dc){if(aQ(db)){return 0}var de=aW(bG,"download"),dd=aW(a4,"link"),dh=new RegExp("\\.("+c0.join("|")+")([?&#]|$)","i");if(dd.test(df)){return"link"}if(dc||de.test(df)||dh.test(db)){return"download"}if(dg){return 0}return"link"}function aq(dc){var db;db=dc.parentNode;while(db!==null&&J(db)){if(ac.isLinkElement(dc)){break}dc=db;db=dc.parentNode}return dc}function c5(dg){dg=aq(dg);if(!ac.hasNodeAttribute(dg,"href")){return}if(!J(dg.href)){return}var df=ac.getAttributeValueFromNode(dg,"href");if(aQ(df)){return}var dc=dg.pathname||cg(dg.href); +var dh=dg.hostname||d(dg.href);var di=dh.toLowerCase();var dd=dg.href.replace(dh,di);var de=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!de.test(dd)){var db=cq(dg.className,dd,ao(di,dc),ac.hasNodeAttribute(dg,"download"));if(db){return{type:db,href:dd}}}}function aL(db,dc,dd,de){var df=v.buildInteractionRequestParams(db,dc,dd,de);if(!df){return}return co(df,null,"contentInteraction")}function cF(dd,de,di,db,dc){if(!J(dd)){return}if(aQ(dd)){return dd}var dg=v.toAbsoluteUrl(dd);var df="redirecturl="+t(dg)+"&";df+=aL(de,di,db,(dc||dd));var dh="&";if(aA.indexOf("?")<0){dh="?"}return aA+dh+df}function a7(db,dc){if(!db||!dc){return false}var dd=v.findTargetNode(db);if(v.shouldIgnoreInteraction(dd)){return false}dd=v.findTargetNodeNoDefault(db);if(dd&&!V(dd,dc)){return false}return true}function cp(dd,dc,df){if(!dd){return}var db=v.findParentContentNode(dd);if(!db){return}if(!a7(db,dd)){return}var de=v.buildContentBlock(db);if(!de){return}if(!de.target&&df){de.target=df +}return v.buildInteractionRequestParams(dc,de.name,de.piece,de.target)}function aS(dc){if(!b5||!b5.length){return false}var db,dd;for(db=0;db<b5.length;db++){dd=b5[db];if(dd&&dd.name===dc.name&&dd.piece===dc.piece&&dd.target===dc.target){return true}}return false}function bz(de){if(!de){return false}var dh=v.findTargetNode(de);if(!dh||v.shouldIgnoreInteraction(dh)){return false}var di=c5(dh);if(c2&&di&&di.type){return false}if(ac.isLinkElement(dh)&&ac.hasNodeAttributeWithValue(dh,"href")){var db=String(ac.getAttributeValueFromNode(dh,"href"));if(0===db.indexOf("#")){return false}if(aQ(db)){return true}if(!v.isUrlToCurrentDomain(db)){return false}var df=v.buildContentBlock(de);if(!df){return}var dd=df.name;var dj=df.piece;var dg=df.target;if(!ac.hasNodeAttributeWithValue(dh,v.CONTENT_TARGET_ATTR)||dh.wasContentTargetAttrReplaced){dh.wasContentTargetAttrReplaced=true;dg=v.toAbsoluteUrl(db);ac.setAnyAttribute(dh,v.CONTENT_TARGET_ATTR,dg)}var dc=cF(db,"click",dd,dj,dg);v.setHrefAttribute(dh,dc); +return true}return false}function aJ(dc){if(!dc||!dc.length){return}var db;for(db=0;db<dc.length;db++){bz(dc[db])}}function aT(db){return function(dc){if(!db){return}var df=v.findParentContentNode(db);var dg;if(dc){dg=dc.target||dc.srcElement}if(!dg){dg=db}if(!a7(df,dg)){return}cb(bE);if(ac.isLinkElement(db)&&ac.hasNodeAttributeWithValue(db,"href")&&ac.hasNodeAttributeWithValue(db,v.CONTENT_TARGET_ATTR)){var dd=ac.getAttributeValueFromNode(db,"href");if(!aQ(dd)&&db.wasContentTargetAttrReplaced){ac.setAnyAttribute(db,v.CONTENT_TARGET_ATTR,"")}}var dk=c5(db);if(am&&dk&&dk.type){return dk.type}if(bz(df)){return"href"}var dh=v.buildContentBlock(df);if(!dh){return}var de=dh.name;var dl=dh.piece;var dj=dh.target;var di=aL("click",de,dl,dj);bA(di,bE);return di}}function bW(dd){if(!dd||!dd.length){return}var db,dc;for(db=0;db<dd.length;db++){dc=v.findTargetNode(dd[db]);if(dc&&!dc.contentInteractionTrackingSetupDone){dc.contentInteractionTrackingSetupDone=true;ak(dc,"click",aT(dc))}}}function bs(dd,de){if(!dd||!dd.length){return[] +}var db,dc;for(db=0;db<dd.length;db++){if(aS(dd[db])){dd.splice(db,1);db--}else{b5.push(dd[db])}}if(!dd||!dd.length){return[]}aJ(de);bW(de);var df=[];for(db=0;db<dd.length;db++){dc=co(v.buildImpressionRequestParams(dd[db].name,dd[db].piece,dd[db].target),undefined,"contentImpressions");if(dc){df.push(dc)}}return df}function cu(dc){var db=v.collectContent(dc);return bs(db,dc)}function a5(dc){if(!dc||!dc.length){return[]}var db;for(db=0;db<dc.length;db++){if(!v.isNodeVisible(dc[db])){dc.splice(db,1);db--}}if(!dc||!dc.length){return[]}return cu(dc)}function aC(dd,db,dc){var de=v.buildImpressionRequestParams(dd,db,dc);return co(de,null,"contentImpression")}function c4(de,dc){if(!de){return}var db=v.findParentContentNode(de);var dd=v.buildContentBlock(db);if(!dd){return}if(!dc){dc="Unknown"}return aL(dc,dd.name,dd.piece,dd.target)}function cJ(dc,de,db,dd){return"e_c="+t(dc)+"&e_a="+t(de)+(J(db)?"&e_n="+t(db):"")+(J(dd)?"&e_v="+t(dd):"")}function ap(dd,df,db,de,dh,dg){if(a(String(dd)).length===0||a(String(df)).length===0){ah("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces"); +return false}var dc=co(cJ(dd,df,db,de),dh,"event");bA(dc,bE,dg)}function b3(db,de,dc,df){var dd=co("search="+t(db)+(de?"&search_cat="+t(de):"")+(J(dc)?"&search_count="+dc:""),df,"sitesearch");bA(dd,bE)}function cN(db,df,de,dd){var dc=co("idgoal="+db+(df?"&revenue="+df:""),de,"goal");bA(dc,bE,dd)}function cV(de,db,di,dh,dd){var dg=db+"="+t(bX(de));var dc=cp(dd,"click",de);if(dc){dg+="&"+dc}var df=co(dg,di,"link");bA(df,bE,dh)}function bP(dc,db){if(dc!==""){return dc+db.charAt(0).toUpperCase()+db.slice(1)}return db}function cc(dg){var df,db,de=["","webkit","ms","moz"],dd;if(!ba){for(db=0;db<de.length;db++){dd=de[db];if(Object.prototype.hasOwnProperty.call(G,bP(dd,"hidden"))){if(G[bP(dd,"visibilityState")]==="prerender"){df=true}break}}}if(df){ak(G,dd+"visibilitychange",function dc(){G.removeEventListener(dd+"visibilitychange",dc,false);dg()});return}dg()}function bm(){var dc=aU().uuid;var db=aF();return dc+db}function ce(db){if(!db){return}if(!ac.hasNodeAttribute(db,"href")){return}var dc=ac.getAttributeValueFromNode(db,"href"); +if(!dc||aQ(dc)){return}dc=k(dc,ar);if(dc.indexOf("?")>0){dc+="&"}else{dc+="?"}var dd=bm();dc=F(dc,ar,dd);ac.setAnyAttribute(db,"href",dc)}function ax(de){var df=ac.getAttributeValueFromNode(de,"href");if(!df){return false}df=String(df);var dc=df.indexOf("//")===0||df.indexOf("http://")===0||df.indexOf("https://")===0;if(!dc){return false}var db=de.pathname||cg(de.href);var dd=(de.hostname||d(de.href)).toLowerCase();if(ao(dd,db)){if(!cB(cO,L(dd))){return true}return false}return false}function cA(db){var dc=c5(db);if(dc&&dc.type){dc.href=p(dc.href);cV(dc.href,dc.type,undefined,null,db);return}if(cH){db=aq(db);if(ax(db)){ce(db)}}}function cr(){return G.all&&!G.addEventListener}function cP(db){var dd=db.which;var dc=(typeof db.button);if(!dd&&dc!=="undefined"){if(cr()){if(db.button&1){dd=1}else{if(db.button&2){dd=3}else{if(db.button&4){dd=2}}}}else{if(db.button===0||db.button==="0"){dd=1}else{if(db.button&1){dd=2}else{if(db.button&2){dd=3}}}}}return dd}function bO(db){switch(cP(db)){case 1:return"left"; +case 2:return"middle";case 3:return"right"}}function aX(db){return db.target||db.srcElement}function ay(db){return function(de){de=de||T.event;var dd=bO(de);var df=aX(de);if(de.type==="click"){var dc=false;if(db&&dd==="middle"){dc=true}if(df&&!dc){cA(df)}}else{if(de.type==="mousedown"){if(dd==="middle"&&df){aN=dd;bv=df}else{aN=bv=null}}else{if(de.type==="mouseup"){if(dd===aN&&df===bv){cA(df)}aN=bv=null}else{if(de.type==="contextmenu"){cA(df)}}}}}}function an(dd,dc){var db=typeof dc;if(db==="undefined"){dc=true}ak(dd,"click",ay(dc),false);if(dc){ak(dd,"mouseup",ay(dc),false);ak(dd,"mousedown",ay(dc),false);ak(dd,"contextmenu",ay(dc),false)}}function by(dd,df){am=true;var de,dc=aW(bu,"ignore"),dg=G.links,db=null,dh=null;if(dg){for(de=0;de<dg.length;de++){db=dg[de];if(!dc.test(db.className)){dh=typeof db.piwikTrackers;if("undefined"===dh){db.piwikTrackers=[]}if(-1===M(db.piwikTrackers,df)){db.piwikTrackers.push(df);an(db,dd)}}}}}function aO(dc,df,dg){if(ca){return true}ca=true;var dh=false; +var de,dd;function db(){dh=true}n(function(){function di(dk){setTimeout(function(){if(!ca){return}dh=false;dg.trackVisibleContentImpressions();di(dk)},dk)}function dj(dk){setTimeout(function(){if(!ca){return}if(dh){dh=false;dg.trackVisibleContentImpressions()}dj(dk)},dk)}if(dc){de=["scroll","resize"];for(dd=0;dd<de.length;dd++){if(G.addEventListener){G.addEventListener(de[dd],db,false)}else{T.attachEvent("on"+de[dd],db)}}dj(100)}if(df&&df>0){df=parseInt(df,10);di(df)}})}function cz(){var dc,de,df={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"};if(!((new RegExp("MSIE")).test(h.userAgent))){if(h.mimeTypes&&h.mimeTypes.length){for(dc in df){if(Object.prototype.hasOwnProperty.call(df,dc)){de=h.mimeTypes[df[dc]];c1[dc]=(de&&de.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(h.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&J(h.javaEnabled)&&h.javaEnabled()){c1.java="1" +}if(A(T.GearsFactory)){c1.gears="1"}c1.cookie=b0()}var dd=parseInt(X.width,10);var db=parseInt(X.height,10);c1.res=parseInt(dd,10)+"x"+parseInt(db,10)}var bx={enabled:true,requests:[],timeout:null,sendRequests:function(){var db=this.requests;this.requests=[];if(db.length===1){bA(db[0],bE)}else{c7(db,bE)}},push:function(db){if(!db){return}if(m||!this.enabled){bA(db,bE);return}bx.requests.push(db);if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.timeout=setTimeout(function(){bx.timeout=null;bx.sendRequests()},1750);var dc="RequestQueue"+at;if(!Object.prototype.hasOwnProperty.call(b,dc)){b[dc]={unload:function(){if(bx.timeout){clearTimeout(bx.timeout)}bx.sendRequests()}}}}};cz();bd();aI();this.getVisitorId=function(){return aU().uuid};this.getVisitorInfo=function(){return cI()};this.getAttributionInfo=function(){return bH()};this.getAttributionCampaignName=function(){return bH()[0]};this.getAttributionCampaignKeyword=function(){return bH()[1]};this.getAttributionReferrerTimestamp=function(){return bH()[2] +};this.getAttributionReferrerUrl=function(){return bH()[3]};this.setTrackerUrl=function(db){aA=db};this.getTrackerUrl=function(){return aA};this.getPiwikUrl=function(){return O(this.getTrackerUrl(),bC)};this.addTracker=function(db,dd){if(!dd){throw new Error("A siteId must be given to add a new tracker")}if(!J(db)||null===db){db=this.getTrackerUrl()}var dc=new Q(db,dd);I.push(dc);e.trigger("TrackerAdded",[this]);return dc};this.getSiteId=function(){return b1};this.setSiteId=function(db){bY(db)};this.resetUserId=function(){bt=""};this.setUserId=function(db){if(!J(db)||!db.length){return}bt=db};this.getUserId=function(){return bt};this.setCustomData=function(db,dc){if(W(db)){al=db}else{if(!al){al={}}al[db]=dc}};this.getCustomData=function(){return al};this.setCustomRequestProcessing=function(db){b6=db};this.appendToTrackingUrl=function(db){cT=db};this.getRequest=function(db){return co(db)};this.addPlugin=function(db,dc){b[db]=dc};this.setCustomDimension=function(db,dc){db=parseInt(db,10); +if(db>0){if(!J(dc)){dc=""}if(!w(dc)){dc=String(dc)}bh[db]=dc}};this.getCustomDimension=function(db){db=parseInt(db,10);if(db>0&&Object.prototype.hasOwnProperty.call(bh,db)){return bh[db]}};this.deleteCustomDimension=function(db){db=parseInt(db,10);if(db>0){delete bh[db]}};this.setCustomVariable=function(dc,db,df,dd){var de;if(!J(dd)){dd="visit"}if(!J(db)){return}if(!J(df)){df=""}if(dc>0){db=!w(db)?String(db):db;df=!w(df)?String(df):df;de=[db.slice(0,bo),df.slice(0,bo)];if(dd==="visit"||dd===2){cy();aM[dc]=de}else{if(dd==="page"||dd===3){bR[dc]=de}else{if(dd==="event"){ch[dc]=de}}}}};this.getCustomVariable=function(dc,dd){var db;if(!J(dd)){dd="visit"}if(dd==="page"||dd===3){db=bR[dc]}else{if(dd==="event"){db=ch[dc]}else{if(dd==="visit"||dd===2){cy();db=aM[dc]}}}if(!J(db)||(db&&db[0]==="")){return false}return db};this.deleteCustomVariable=function(db,dc){if(this.getCustomVariable(db,dc)){this.setCustomVariable(db,"","",dc)}};this.deleteCustomVariables=function(db){if(db==="page"||db===3){bR={} +}else{if(db==="event"){ch={}}else{if(db==="visit"||db===2){aM={}}}}};this.storeCustomVariablesInCookie=function(){bL=true};this.setLinkTrackingTimer=function(db){bE=db};this.getLinkTrackingTimer=function(){return bE};this.setDownloadExtensions=function(db){if(w(db)){db=db.split("|")}c0=db};this.addDownloadExtensions=function(dc){var db;if(w(dc)){dc=dc.split("|")}for(db=0;db<dc.length;db++){c0.push(dc[db])}};this.removeDownloadExtensions=function(dd){var dc,db=[];if(w(dd)){dd=dd.split("|")}for(dc=0;dc<c0.length;dc++){if(M(dd,c0[dc])===-1){db.push(c0[dc])}}c0=db};this.setDomains=function(db){au=w(db)?[db]:db;var df=false,dd=0,dc;for(dd;dd<au.length;dd++){dc=String(au[dd]);if(cB(cO,L(dc))){df=true;break}var de=cg(dc);if(de&&de!=="/"&&de!=="/*"){df=true;break}}if(!df){au.push(cO)}};this.enableCrossDomainLinking=function(){cH=true};this.disableCrossDomainLinking=function(){cH=false};this.isCrossDomainLinkingEnabled=function(){return cH};this.setCrossDomainLinkingTimeout=function(db){aV=db};this.getCrossDomainLinkingUrlParameter=function(){return t(ar)+"="+t(bm()) +};this.setIgnoreClasses=function(db){bu=w(db)?[db]:db};this.setRequestMethod=function(db){c3=db||cd};this.setRequestContentType=function(db){cs=db||aE};this.setReferrerUrl=function(db){bi=db};this.setCustomUrl=function(db){a0=bQ(bI,db)};this.getCurrentUrl=function(){return a0||bI};this.setDocumentTitle=function(db){be=db};this.setAPIUrl=function(db){bC=db};this.setDownloadClasses=function(db){bG=w(db)?[db]:db};this.setLinkClasses=function(db){a4=w(db)?[db]:db};this.setCampaignNameKey=function(db){cm=w(db)?[db]:db};this.setCampaignKeywordKey=function(db){bB=w(db)?[db]:db};this.discardHashTag=function(db){bK=db};this.setCookieNamePrefix=function(db){bf=db;aM=bS()};this.setCookieDomain=function(db){var dc=L(db);if(br(dc)){cR=dc;bd()}};this.getCookieDomain=function(){return cR};this.hasCookies=function(){return"1"===b0()};this.setSessionCookie=function(dd,dc,db){if(!dd){throw new Error("Missing cookie name")}if(!J(db)){db=ck}bp.push(dd);c6(aP(dd),dc,db,bk,cR)};this.getCookie=function(dc){var db=az(aP(dc)); +if(db===0){return null}return db};this.setCookiePath=function(db){bk=db;bd()};this.getCookiePath=function(db){return bk};this.setVisitorCookieTimeout=function(db){cD=db*1000};this.setSessionCookieTimeout=function(db){ck=db*1000};this.getSessionCookieTimeout=function(){return ck};this.setReferralCookieTimeout=function(db){cZ=db*1000};this.setConversionAttributionFirstReferrer=function(db){bq=db};this.setSecureCookie=function(db){bN=db};this.disableCookies=function(){bg=true;c1.cookie="0";if(b1){aB()}};this.deleteCookies=function(){aB()};this.setDoNotTrack=function(dc){var db=h.doNotTrack||h.msDoNotTrack;cK=dc&&(db==="yes"||db==="1");if(cK){this.disableCookies()}};this.alwaysUseSendBeacon=function(){cQ=true};this.addListener=function(dc,db){an(dc,db)};this.enableLinkTracking=function(dc){c2=true;var db=this;cc(function(){q(function(){by(dc,db)})})};this.enableJSErrorTracking=function(){if(cM){return}cM=true;var db=T.onerror;T.onerror=function(dg,de,dd,df,dc){cc(function(){var dh="JavaScript Errors"; +var di=de+":"+dd;if(df){di+=":"+df}ap(dh,di,dg)});if(db){return db(dg,de,dd,df,dc)}return false}};this.disablePerformanceTracking=function(){aY=false};this.setGenerationTimeMs=function(db){ci=parseInt(db,10)};this.enableHeartBeatTimer=function(db){db=Math.max(db,1);a1=(db||15)*1000;if(cS!==null){c8()}};this.disableHeartBeatTimer=function(){bF();if(a1||aK){if(T.removeEventListener){T.removeEventListener("focus",a6,true);T.removeEventListener("blur",av,true)}else{if(T.detachEvent){T.detachEvent("onfocus",a6);T.detachEvent("onblur",av)}}}a1=null;aK=false};this.killFrame=function(){if(T.location!==T.top.location){T.top.location=T.location}};this.redirectFile=function(db){if(T.location.protocol==="file:"){T.location=db}};this.setCountPreRendered=function(db){ba=db};this.trackGoal=function(db,de,dd,dc){cc(function(){cN(db,de,dd,dc)})};this.trackLink=function(dc,db,de,dd){cc(function(){cV(dc,db,de,dd)})};this.getNumTrackedPageViews=function(){return cn};this.trackPageView=function(db,dd,dc){b5=[]; +cE=[];if(N(b1)){cc(function(){Y(aA,bC,b1)})}else{cc(function(){cn++;bV(db,dd,dc)})}};this.trackAllContentImpressions=function(){if(N(b1)){return}cc(function(){q(function(){var db=v.findContentNodes();var dc=cu(db);c7(dc,bE)})})};this.trackVisibleContentImpressions=function(db,dc){if(N(b1)){return}if(!J(db)){db=true}if(!J(dc)){dc=750}aO(db,dc,this);cc(function(){n(function(){var dd=v.findContentNodes();var de=a5(dd);c7(de,bE)})})};this.trackContentImpression=function(dd,db,dc){if(N(b1)){return}dd=a(dd);db=a(db);dc=a(dc);if(!dd){return}db=db||"Unknown";cc(function(){var de=aC(dd,db,dc);bA(de,bE)})};this.trackContentImpressionsWithinNode=function(db){if(N(b1)||!db){return}cc(function(){if(ca){n(function(){var dc=v.findContentNodesWithinNode(db);var dd=a5(dc);c7(dd,bE)})}else{q(function(){var dc=v.findContentNodesWithinNode(db);var dd=cu(dc);c7(dd,bE)})}})};this.trackContentInteraction=function(dd,de,db,dc){if(N(b1)){return}dd=a(dd);de=a(de);db=a(db);dc=a(dc);if(!dd||!de){return}db=db||"Unknown"; +cc(function(){var df=aL(dd,de,db,dc);bA(df,bE)})};this.trackContentInteractionNode=function(dc,db){if(N(b1)||!dc){return}cc(function(){var dd=c4(dc,db);bA(dd,bE)})};this.logAllContentBlocksOnPage=function(){var dd=v.findContentNodes();var db=v.collectContent(dd);var dc=typeof console;if(dc!=="undefined"&&console&&console.log){console.log(db)}};this.trackEvent=function(dc,de,db,dd,dg,df){cc(function(){ap(dc,de,db,dd,dg,df)})};this.trackSiteSearch=function(db,dd,dc,de){cc(function(){b3(db,dd,dc,de)})};this.setEcommerceView=function(de,db,dd,dc){if(!J(dd)||!dd.length){dd=""}else{if(dd instanceof Array){dd=JSON_PIWIK.stringify(dd)}}bR[5]=["_pkc",dd];if(J(dc)&&String(dc).length){bR[2]=["_pkp",dc]}if((!J(de)||!de.length)&&(!J(db)||!db.length)){return}if(J(de)&&de.length){bR[3]=["_pks",de]}if(!J(db)||!db.length){db=""}bR[4]=["_pkn",db]};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(cU))};this.addEcommerceItem=function(df,db,dd,dc,de){if(df.length){cU[df]=[df,db,dd,dc,de]}}; +this.removeEcommerceItem=function(db){if(db.length){delete cU[db]}};this.clearEcommerceCart=function(){cU={}};this.trackEcommerceOrder=function(db,df,de,dd,dc,dg){bU(db,df,de,dd,dc,dg)};this.trackEcommerceCartUpdate=function(db){bn(db)};this.trackRequest=function(dc,de,dd,db){cc(function(){var df=co(dc,de,db);bA(df,bE,dd)})};this.disableQueueRequest=function(){bx.enabled=false};this.queueRequest=function(db){cc(function(){var dc=co(db);bx.push(dc)})};this.getRememberedConsent=function(){var db=az(a9);if(az(cG)){if(db){bT(a9,bk,cR)}return null}if(!db||db===0){return null}return db};this.hasRememberedConsent=function(){return !!this.getRememberedConsent()};this.requireConsent=function(){cv=true;bw=this.hasRememberedConsent();x++;b["CoreConsent"+x]={unload:function(){if(!bw){aB()}}}};this.setConsentGiven=function(){bw=true;bT(cG,bk,cR);var dc,db;for(dc=0;dc<cE.length;dc++){db=typeof cE[dc];if(db==="string"){bA(cE[dc],bE)}else{if(db==="object"){c7(cE[dc],bE)}}}cE=[]};this.rememberConsentGiven=function(dc){if(bg){ah("rememberConsentGiven is called but cookies are disabled, consent will not be remembered"); +return}if(dc){dc=dc*60*60*1000}this.setConsentGiven();var db=new Date().getTime();c6(a9,db,dc,bk,cR,bN)};this.forgetConsentGiven=function(){if(bg){ah("forgetConsentGiven is called but cookies are disabled, consent will not be forgotten");return}bT(a9,bk,cR);c6(cG,new Date().getTime(),0,bk,cR,bN);this.requireConsent()};this.isUserOptedOut=function(){return !bw};this.optUserOut=this.forgetConsentGiven;this.forgetUserOptOut=this.rememberConsentGiven;e.trigger("TrackerSetup",[this])}function H(){return{push:ad}}function c(aq,ap){var ar={};var an,ao;for(an=0;an<ap.length;an++){var al=ap[an];ar[al]=1;for(ao=0;ao<aq.length;ao++){if(aq[ao]&&aq[ao][0]){var am=aq[ao][0];if(al===am){ad(aq[ao]);delete aq[ao];if(ar[am]>1&&am!=="addTracker"){ah("The method "+am+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: https://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers')}ar[am]++ +}}}}return aq}var C=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","alwaysUseSendBeacon","enableLinkTracking","requireConsent","setConsentGiven"];function ab(al,an){var am=new Q(al,an);I.push(am);_paq=c(_paq,C);for(E=0;E<_paq.length;E++){if(_paq[E]){ad(_paq[E])}}_paq=new H();e.trigger("TrackerAdded",[am]);return am}ak(T,"beforeunload",af,false);Date.prototype.getTimeAlias=Date.prototype.getTime;e={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(ao,an,am,al){var ap=typeof al;if(ap==="undefined"){al=false}ak(ao,an,am,al)},onLoad:n,onReady:q,isNodeVisible:j,isOrWasNodeVisible:v.isNodeVisible},on:function(am,al){if(!y[am]){y[am]=[]}y[am].push(al)},off:function(an,am){if(!y[an]){return}var al=0;for(al;al<y[an].length;al++){if(y[an][al]===am){y[an].splice(al,1)}}},trigger:function(an,ao,am){if(!y[an]){return}var al=0;for(al; +al<y[an].length;al++){y[an][al].apply(am||T,ao)}},addPlugin:function(al,am){b[al]=am},getTracker:function(al,am){if(!J(am)){am=this.getAsyncTracker().getSiteId()}if(!J(al)){al=this.getAsyncTracker().getTrackerUrl()}return new Q(al,am)},getAsyncTrackers:function(){return I},addTracker:function(al,an){var am;if(!I.length){am=ab(al,an)}else{am=I[0].addTracker(al,an)}return am},getAsyncTracker:function(am,ap){var ao;if(I&&I.length&&I[0]){ao=I[0]}else{return ab(am,ap)}if(!ap&&!am){return ao}if((!J(ap)||null===ap)&&ao){ap=ao.getSiteId()}if((!J(am)||null===am)&&ao){am=ao.getTrackerUrl()}var an,al=0;for(al;al<I.length;al++){an=I[al];if(an&&String(an.getSiteId())===String(ap)&&an.getTrackerUrl()===am){return an}}},retryMissedPluginCalls:function(){var am=ae;ae=[];var al=0;for(al;al<am.length;al++){ad(am[al])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return e});define("matomo",[],function(){return e})}return e}())} /*!!! pluginTrackerHook */ -(function(){function b(){if("object"!==typeof _paq){return false}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(!window.Piwik.getAsyncTrackers().length){if(b()){window.Piwik.addTracker()}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&console&&console.error){console.error("_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c) -}}}}}window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true}());(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=window.Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var c,e=window.Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}}} +(function(){function b(){if("object"!==typeof _paq){return false +}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(!window.Piwik.getAsyncTrackers().length){if(b()){window.Piwik.addTracker()}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&console&&console.error){console.error("_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c)}}}}}window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true +}());(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=window.Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var c,e=window.Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}}} /*!! @license-end */;
\ No newline at end of file @@ -38,41 +38,42 @@ if(!an){an="/"}}return an},findMediaUrlInNode:function(ap){if(!ap){return}var an if(an&&aq.offsetTop){an=(aq.offsetTop+ap.height)>0}var am=ao.clientWidth;if(T.innerWidth&&am>T.innerWidth){am=T.innerWidth}var al=ao.clientHeight;if(T.innerHeight&&al>T.innerHeight){al=T.innerHeight}return((ap.bottom>0||an)&&ap.right>0&&ap.left<am&&((ap.top<al)||an))},isNodeVisible:function(am){var al=j(am);var an=this.isOrWasNodeInViewport(am);return al&&an},buildInteractionRequestParams:function(al,am,an,ao){var ap="";if(al){ap+="c_i="+t(al)}if(am){if(ap){ap+="&"}ap+="c_n="+t(am)}if(an){if(ap){ap+="&"}ap+="c_p="+t(an)}if(ao){if(ap){ap+="&"}ap+="c_t="+t(ao)}return ap},buildImpressionRequestParams:function(al,am,an){var ao="c_n="+t(al)+"&c_p="+t(am);if(an){ao+="&c_t="+t(an)}return ao},buildContentBlock:function(an){if(!an){return}var al=this.findContentName(an);var am=this.findContentPiece(an);var ao=this.findContentTarget(an);al=this.trim(al);am=this.trim(am);ao=this.trim(ao);return{name:al||"Unknown",piece:am||"Unknown",target:ao||""}},collectContent:function(ao){if(!ao||!ao.length){return[] }var an=[];var al,am;for(al=0;al<ao.length;al++){am=this.buildContentBlock(ao[al]);if(J(am)){an.push(am)}}return an},setLocation:function(al){this.location=al},getLocation:function(){var al=this.location||T.location;if(!al.origin){al.origin=al.protocol+"//"+al.hostname+(al.port?":"+al.port:"")}return al},toAbsoluteUrl:function(am){if((!am||String(am)!==am)&&am!==""){return am}if(""===am){return this.getLocation().href}if(am.search(/^\/\//)!==-1){return this.getLocation().protocol+am}if(am.search(/:\/\//)!==-1){return am}if(0===am.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+am}if(0===am.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+am}if(0===am.search("^[a-zA-Z]{2,11}:")){return am}if(am.search(/^\//)!==-1){return this.getLocation().origin+am}var al="(.*/)";var an=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(al))[0];return an+am},isUrlToCurrentDomain:function(am){var an=this.toAbsoluteUrl(am);if(!an){return false }var al=this.getLocation().origin;if(al===an){return true}if(0===String(an).indexOf(al)){if(":"===String(an).substr(al.length,1)){return false}return true}return false},setHrefAttribute:function(am,al){if(!am||!al){return}ac.setAnyAttribute(am,"href",al)},shouldIgnoreInteraction:function(an){var am=ac.hasNodeAttribute(an,this.CONTENT_IGNOREINTERACTION_ATTR);var al=ac.hasNodeCssClass(an,this.CONTENT_IGNOREINTERACTION_CLASS);return am||al}};function O(am,ap){if(ap){return ap}am=v.toAbsoluteUrl(am);if(z(am,"?")){var ao=am.indexOf("?");am=am.slice(0,ao)}if(R(am,"matomo.php")){am=g(am,"matomo.php".length)}else{if(R(am,"piwik.php")){am=g(am,"piwik.php".length)}else{if(R(am,".php")){var al=am.lastIndexOf("/");var an=1;am=am.slice(0,al+an)}}}if(R(am,"/js/")){am=g(am,"js/".length)}return am}function N(ar){var au="Piwik_Overlay";var am=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=.*)?$");var an=am.exec(G.referrer);if(an){var ap=an[1]; -if(ap!==String(ar)){return false}var aq=an[2],al=an[3],ao=an[4];if(!ao){ao=""}else{if(ao.indexOf("&segment=")===0){ao=ao.substr("&segment=".length)}}T.name=au+"###"+aq+"###"+al+"###"+ao}var at=T.name.split("###");return at.length===4&&at[0]===au}function Y(am,at,ao){var ar=T.name.split("###"),aq=ar[1],al=ar[2],ap=ar[3],an=O(am,at);o(an+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(an,ao,aq,al,ap)})}function u(){var an;try{an=T.frameElement}catch(am){return true}if(J(an)){return(an&&String(an.nodeName).toLowerCase()==="iframe")?true:false}try{return T.self!==T.top}catch(al){return true}}function Q(b8,b3){var bC=this,a9="mtm_consent",cF="mtm_consent_removed",bY=Z(G.domain,T.location.href,K()),cN=L(bY[0]),bH=p(bY[1]),bi=p(bY[2]),cL=false,cc="GET",c2=cc,aE="application/x-www-form-urlencoded; charset=UTF-8",cr=aE,aA=b8||"",bB="",cS="",b0=b3||"",bt="",bI="",a0,be="",cZ=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],au=[cN],bu=[],bF=[],a4=[],bD=500,cP=false,cB,a1,bL,bJ,al,cl=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bA=["pk_kwd","piwik_kwd","utm_term"],bf="_pk_",ar="pk_vid",aV=180,cQ,bk,bM=false,bg=false,cJ,ba,bq,cC=33955200000,cj=1800000,cY=15768000000,aY=true,ch=0,bK=false,aM=false,b5,bQ={},cg={},bh={},bo=200,cT={},c0={},b4=[],b9=false,cv=false,am=false,c1=false,cG=false,aK=false,a8=u(),cR=null,b6,aN,bv,b1=aj,bj,aH,cm=0,bp=["id","ses","cvar","ref"],cu=false,bw=null,cD=[],at=U++; -try{be=G.title}catch(cs){be=""}function c5(dg,de,dd,df,dc,db){if(bg){return}var da;if(dd){da=new Date();da.setTime(da.getTime()+dd)}G.cookie=dg+"="+t(de)+(dd?";expires="+da.toGMTString():"")+";path="+(df||"/")+(dc?";domain="+dc:"")+(db?";secure":"")}function az(dc){if(bg){return 0}var da=new RegExp("(^|;)[ ]*"+dc+"=([^;]*)"),db=da.exec(G.cookie);return db?S(db[2]):0}bw=!az(cF);function bW(da){var db;da=k(da,ar);if(bJ){db=new RegExp("#.*");return da.replace(db,"")}return da}function bP(dc,da){var dd=s(da),db;if(dd){return da}if(da.slice(0,1)==="/"){return s(dc)+"://"+d(dc)+da}dc=bW(dc);db=dc.indexOf("?");if(db>=0){dc=dc.slice(0,db)}db=dc.lastIndexOf("/");if(db!==dc.length-1){dc=dc.slice(0,db+1)}return dc+da}function cA(dc,da){var db;dc=String(dc).toLowerCase();da=String(da).toLowerCase();if(dc===da){return true}if(da.slice(0,1)==="."){if(dc===da.slice(1)){return true}db=dc.length-da.length;if((db>0)&&(dc.slice(db)===da)){return true}}return false}function cf(da){var db=document.createElement("a"); -if(da.indexOf("//")!==0&&da.indexOf("http")!==0){if(da.indexOf("*")===0){da=da.substr(1)}if(da.indexOf(".")===0){da=da.substr(1)}da="http://"+da}db.href=v.toAbsoluteUrl(da);if(db.pathname){return db.pathname}return""}function aZ(db,da){if(!ag(da,"/")){da="/"+da}if(!ag(db,"/")){db="/"+db}var dc=(da==="/"||da==="/*");if(dc){return true}if(db===da){return true}da=String(da).toLowerCase();db=String(db).toLowerCase();if(R(da,"*")){da=da.slice(0,-1);dc=(!da||da==="/");if(dc){return true}if(db===da){return true}return db.indexOf(da)===0}if(!R(db,"/")){db+="/"}if(!R(da,"/")){da+="/"}return db.indexOf(da)===0}function ao(de,dg){var db,da,dc,dd,df;for(db=0;db<au.length;db++){dd=L(au[db]);df=cf(au[db]);if(cA(de,dd)&&aZ(dg,df)){return true}}return false}function aR(dd){var db,da,dc;for(db=0;db<au.length;db++){da=L(au[db].toLowerCase());if(dd===da){return true}if(da.slice(0,1)==="."){if(dd===da.slice(1)){return true}dc=dd.length-da.length;if((dc>0)&&(dd.slice(dc)===da)){return true}}}return false}function ck(da,dc){da=da.replace("send_image=0","send_image=1"); -var db=new Image(1,1);db.onload=function(){E=0;if(typeof dc==="function"){dc({request:da,trackerUrl:aA,success:true})}};db.onerror=function(){if(typeof dc==="function"){dc({request:da,trackerUrl:aA,success:false})}};db.src=aA+(aA.indexOf("?")<0?"?":"&")+da}function aG(){return"object"===typeof h&&"function"===typeof h.sendBeacon&&"function"===typeof Blob}function a2(dd,dh){var dc=aG();if(!dc){return false}var dg={type:"application/x-www-form-urlencoded; charset=UTF-8"};var df=false;var db=aA;try{var da=new Blob([dd],dg);if(dd.length<=2000){da=new Blob([],dg);db=db+(db.indexOf("?")<0?"?":"&")+dd}df=h.sendBeacon(db,da)}catch(de){return false}if(df&&typeof dh==="function"){dh({request:dd,trackerUrl:aA,success:true,isSendBeacon:true})}return df}function cX(db,dc,da){if(!J(da)||null===da){da=true}if(m&&a2(db,dc)){return}setTimeout(function(){if(m&&a2(db,dc)){return}var df;try{var de=T.XMLHttpRequest?new T.XMLHttpRequest():T.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;de.open("POST",aA,true); -de.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dg=m&&a2(db,dc);if(!dg&&da){ck(db,dc)}else{if(typeof dc==="function"){dc({request:db,trackerUrl:aA,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dc==="function")){dc({request:db,trackerUrl:aA,success:true,xhr:this})}}};de.setRequestHeader("Content-Type",cr);de.send(db)}catch(dd){df=m&&a2(db,dc);if(!df&&da){ck(db,dc)}else{if(typeof dc==="function"){dc({request:db,trackerUrl:aA,success:false})}}}},50)}function ca(db){var da=new Date();var dc=da.getTime()+db;if(!r||dc>r){r=dc}}function ci(da){if(b6||!a1||!bw){return}b6=setTimeout(function db(){b6=null;if(!a8){a8=(!G.hasFocus||G.hasFocus())}if(!a8){ci(a1);return}if(bL()){return}var dc=new Date(),dd=a1-(dc.getTime()-cR);dd=Math.min(a1,dd);ci(dd)},da||a1)}function bE(){if(!b6){return}clearTimeout(b6);b6=null}function a6(){a8=true;if(bL()){return}ci()}function av(){bE()}function c7(){if(aK||!a1){return}aK=true;ak(T,"focus",a6);ak(T,"blur",av); -ci()}function cw(de){var db=new Date();var da=db.getTime();cR=da;if(cv&&da<cv){var dc=cv-da;setTimeout(de,dc);ca(dc+50);cv+=50;return}if(cv===false){var dd=800;cv=da+dd}de()}function bz(db,da,dc){if(!bw){cD.push(db);return}if(!cJ&&db){if(cu&&bw){db+="&consent=1"}cw(function(){if(cP&&a2(db,dc)){ca(100);return}if(c2==="POST"||String(db).length>2000){cX(db,dc)}else{ck(db,dc)}ca(da)})}if(!aK){c7()}else{ci()}}function ce(da){if(cJ){return false}return(da&&da.length)}function cW(da,de){if(!de||de>=da.length){return[da]}var db=0;var dc=da.length;var dd=[];for(db;db<dc;db+=de){dd.push(da.slice(db,db+de))}return dd}function c6(db,da){if(!ce(db)){return}if(!bw){cD.push(db);return}cw(function(){var de=cW(db,50);var dc=0,dd;for(dc;dc<de.length;dc++){dd='{"requests":["?'+de[dc].join('","?')+'"]}';cX(dd,null,false)}ca(da)})}function aP(da){return bf+da+"."+b0+"."+bj}function bZ(){if(bg){return"0"}if(!J(h.cookieEnabled)){var da=aP("testcookie");c5(da,"1");return az(da)==="1"?"1":"0"}return h.cookieEnabled?"1":"0" -}function bd(){bj=b1((cQ||cN)+(bk||"/")).slice(0,4)}function bR(){var db=aP("cvar"),da=az(db);if(da.length){da=JSON_PIWIK.parse(da);if(W(da)){return da}}return{}}function cx(){if(aM===false){aM=bR()}}function cK(){return b1((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c0)+(new Date()).getTime()+Math.random()).slice(0,16)}function aw(){return b1((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c0)).slice(0,6)}function bb(){return Math.floor((new Date()).getTime()/1000)}function aF(){var db=bb();var dc=aw();var da=String(db)+dc;return da}function cV(dc){dc=String(dc);var df=aw();var dd=df.length;var de=dc.substr(-1*dd,dd);var db=parseInt(dc.substr(0,dc.length-dd),10);if(db&&de&&de===df){var da=bb();if(aV<=0){return true}if(da>=db&&da<=(db+aV)){return true}}return false}function c8(da){if(!cG){return""}var de=f(da,ar);if(!de){return""}de=String(de);var dc=new RegExp("^[a-zA-Z0-9]+$");if(de.length===32&&dc.test(de)){var db=de.substr(16,32);if(cV(db)){var dd=de.substr(0,16); -return dd}}return""}function cH(){if(!bI){bI=c8(bH)}var dc=new Date(),da=Math.round(dc.getTime()/1000),db=aP("id"),df=az(db),de,dd;if(df){de=df.split(".");de.unshift("0");if(bI.length){de[1]=bI}return de}if(bI.length){dd=bI}else{if("0"===bZ()){dd=""}else{dd=cK()}}de=["1",dd,da,0,da,"",""];return de}function aU(){var dh=cH(),dd=dh[0],de=dh[1],db=dh[2],da=dh[3],df=dh[4],dc=dh[5];if(!J(dh[6])){dh[6]=""}var dg=dh[6];return{newVisitor:dd,uuid:de,createTs:db,visitCount:da,currentVisitTs:df,lastVisitTs:dc,lastEcommerceOrderTs:dg}}function aD(){var dd=new Date(),db=dd.getTime(),de=aU().createTs;var da=parseInt(de,10);var dc=(da*1000)+cC-db;return dc}function aI(da){if(!b0){return}var dc=new Date(),db=Math.round(dc.getTime()/1000);if(!J(da)){da=aU()}var dd=da.uuid+"."+da.createTs+"."+da.visitCount+"."+db+"."+da.lastVisitTs+"."+da.lastEcommerceOrderTs;c5(aP("id"),dd,aD(),bk,cQ,bM)}function bG(){var da=az(aP("ref"));if(da.length){try{da=JSON_PIWIK.parse(da);if(W(da)){return da}}catch(db){}}return["","",0,""] -}function bS(dc,db,da){c5(dc,"",-86400,db,da)}function br(db){var da="testvalue";c5("test",da,10000,null,db);if(az("test")===da){bS("test",null,db);return true}return false}function aB(){var db=bg;bg=false;var da,dc;for(da=0;da<bp.length;da++){dc=aP(bp[da]);if(dc!==cF&&dc!==a9&&0!==az(dc)){bS(dc,bk,cQ)}}bg=db}function bX(da){b0=da;aI()}function c9(de){if(!de||!W(de)){return}var dd=[];var dc;for(dc in de){if(Object.prototype.hasOwnProperty.call(de,dc)){dd.push(dc)}}var df={};dd.sort();var da=dd.length;var db;for(db=0;db<da;db++){df[dd[db]]=de[dd[db]]}return df}function b7(){c5(aP("ses"),"1",cj,bk,cQ,bM)}function bc(){var dd="";var db="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var dc=db.length;var da;for(da=0;da<6;da++){dd+=db.charAt(Math.floor(Math.random()*dc))}return dd}function cn(dc,dy,dz,dd){var dx,db=new Date(),dk=Math.round(db.getTime()/1000),dh,dw,de=1024,dE,dl,du=aM,df=aP("ses"),ds=aP("ref"),dp=aP("cvar"),dq=az(df),dv=bG(),dB=a0||bH,di,da;if(bg){aB()}if(cJ){return"" -}var dr=aU();if(!J(dd)){dd=""}var dn=G.characterSet||G.charset;if(!dn||dn.toLowerCase()==="utf-8"){dn=null}di=dv[0];da=dv[1];dh=dv[2];dw=dv[3];if(!dq){var dA=cj/1000;if(!dr.lastVisitTs||(dk-dr.lastVisitTs)>dA){dr.visitCount++;dr.lastVisitTs=dr.currentVisitTs}if(!bq||!di.length){for(dx in cl){if(Object.prototype.hasOwnProperty.call(cl,dx)){di=f(dB,cl[dx]);if(di.length){break}}}for(dx in bA){if(Object.prototype.hasOwnProperty.call(bA,dx)){da=f(dB,bA[dx]);if(da.length){break}}}}dE=d(bi);dl=dw.length?d(dw):"";if(dE.length&&!aR(dE)&&(!bq||!dl.length||aR(dl))){dw=bi}if(dw.length||di.length){dh=dk;dv=[di,da,dh,bW(dw.slice(0,de))];c5(ds,JSON_PIWIK.stringify(dv),cY,bk,cQ)}}dc+="&idsite="+b0+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+db.getHours()+"&m="+db.getMinutes()+"&s="+db.getSeconds()+"&url="+t(bW(dB))+(bi.length?"&urlref="+t(bW(bi)):"")+((bt&&bt.length)?"&uid="+t(bt):"")+"&_id="+dr.uuid+"&_idts="+dr.createTs+"&_idvc="+dr.visitCount+"&_idn="+dr.newVisitor+(di.length?"&_rcn="+t(di):"")+(da.length?"&_rck="+t(da):"")+"&_refts="+dh+"&_viewts="+dr.lastVisitTs+(String(dr.lastEcommerceOrderTs).length?"&_ects="+dr.lastEcommerceOrderTs:"")+(String(dw).length?"&_ref="+t(bW(dw.slice(0,de))):"")+(dn?"&cs="+t(dn):"")+"&send_image=0"; -for(dx in c0){if(Object.prototype.hasOwnProperty.call(c0,dx)){dc+="&"+dx+"="+c0[dx]}}var dD=[];if(dy){for(dx in dy){if(Object.prototype.hasOwnProperty.call(dy,dx)&&/^dimension\d+$/.test(dx)){var dg=dx.replace("dimension","");dD.push(parseInt(dg,10));dD.push(String(dg));dc+="&"+dx+"="+dy[dx];delete dy[dx]}}}if(dy&&B(dy)){dy=null}for(dx in bh){if(Object.prototype.hasOwnProperty.call(bh,dx)){var dm=(-1===M(dD,dx));if(dm){dc+="&dimension"+dx+"="+bh[dx]}}}if(dy){dc+="&data="+t(JSON_PIWIK.stringify(dy))}else{if(al){dc+="&data="+t(JSON_PIWIK.stringify(al))}}function dj(dF,dG){var dH=JSON_PIWIK.stringify(dF);if(dH.length>2){return"&"+dG+"="+t(dH)}return""}var dC=c9(bQ);var dt=c9(cg);dc+=dj(dC,"cvar");dc+=dj(dt,"e_cvar");if(aM){dc+=dj(aM,"_cvar");for(dx in du){if(Object.prototype.hasOwnProperty.call(du,dx)){if(aM[dx][0]===""||aM[dx][1]===""){delete aM[dx]}}}if(bK){c5(dp,JSON_PIWIK.stringify(aM),cj,bk,cQ)}}if(aY){if(ch){dc+=">_ms="+ch}else{if(i&&i.timing&&i.timing.requestStart&&i.timing.responseEnd){dc+=">_ms="+(i.timing.responseEnd-i.timing.requestStart) -}}}if(aH){dc+="&pv_id="+aH}dr.lastEcommerceOrderTs=J(dd)&&String(dd).length?dd:dr.lastEcommerceOrderTs;aI(dr);b7();dc+=aa(dz,{tracker:bC,request:dc});if(cS.length){dc+="&"+cS}if(A(b5)){dc=b5(dc)}return dc}bL=function a3(){var da=new Date();if(cR+a1<=da.getTime()){var db=cn("ping=1",null,"ping");bz(db,bD);return true}return false};function bl(dd,dc,di,de,da,dl){var dg="idgoal=0",dh,db=new Date(),dj=[],dk,df=String(dd).length;if(df){dg+="&ec_id="+t(dd);dh=Math.round(db.getTime()/1000)}dg+="&revenue="+dc;if(String(di).length){dg+="&ec_st="+di}if(String(de).length){dg+="&ec_tx="+de}if(String(da).length){dg+="&ec_sh="+da}if(String(dl).length){dg+="&ec_dt="+dl}if(cT){for(dk in cT){if(Object.prototype.hasOwnProperty.call(cT,dk)){if(!J(cT[dk][1])){cT[dk][1]=""}if(!J(cT[dk][2])){cT[dk][2]=""}if(!J(cT[dk][3])||String(cT[dk][3]).length===0){cT[dk][3]=0}if(!J(cT[dk][4])||String(cT[dk][4]).length===0){cT[dk][4]=1}dj.push(cT[dk])}}dg+="&ec_items="+t(JSON_PIWIK.stringify(dj))}dg=cn(dg,al,"ecommerce",dh); -bz(dg,bD);if(df){cT={}}}function bT(da,de,dd,dc,db,df){if(String(da).length&&J(de)){bl(da,de,dd,dc,db,df)}}function bn(da){if(J(da)){bl("",da,"","","","")}}function bU(db,dd,dc){aH=bc();var da=cn("action_name="+t(ai(db||be)),dd,"log");bz(da,bD,dc)}function aW(dc,db){var dd,da="(^| )(piwik[_-]"+db;if(dc){for(dd=0;dd<dc.length;dd++){da+="|"+dc[dd]}}da+=")( |$)";return new RegExp(da)}function aQ(da){return(aA&&da&&0===String(da).indexOf(aA))}function cp(de,da,df,db){if(aQ(da)){return 0}var dd=aW(bF,"download"),dc=aW(a4,"link"),dg=new RegExp("\\.("+cZ.join("|")+")([?&#]|$)","i");if(dc.test(de)){return"link"}if(db||dd.test(de)||dg.test(da)){return"download"}if(df){return 0}return"link"}function aq(db){var da;da=db.parentNode;while(da!==null&&J(da)){if(ac.isLinkElement(db)){break}db=da;da=db.parentNode}return db}function c4(df){df=aq(df);if(!ac.hasNodeAttribute(df,"href")){return}if(!J(df.href)){return}var de=ac.getAttributeValueFromNode(df,"href");if(aQ(de)){return}var db=df.pathname||cf(df.href); -var dg=df.hostname||d(df.href);var dh=dg.toLowerCase();var dc=df.href.replace(dg,dh);var dd=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!dd.test(dc)){var da=cp(df.className,dc,ao(dh,db),ac.hasNodeAttribute(df,"download"));if(da){return{type:da,href:dc}}}}function aL(da,db,dc,dd){var de=v.buildInteractionRequestParams(da,db,dc,dd);if(!de){return}return cn(de,null,"contentInteraction")}function cE(dc,dd,dh,da,db){if(!J(dc)){return}if(aQ(dc)){return dc}var df=v.toAbsoluteUrl(dc);var de="redirecturl="+t(df)+"&";de+=aL(dd,dh,da,(db||dc));var dg="&";if(aA.indexOf("?")<0){dg="?"}return aA+dg+de}function a7(da,db){if(!da||!db){return false}var dc=v.findTargetNode(da);if(v.shouldIgnoreInteraction(dc)){return false}dc=v.findTargetNodeNoDefault(da);if(dc&&!V(dc,db)){return false}return true}function co(dc,db,de){if(!dc){return}var da=v.findParentContentNode(dc);if(!da){return}if(!a7(da,dc)){return}var dd=v.buildContentBlock(da);if(!dd){return}if(!dd.target&&de){dd.target=de -}return v.buildInteractionRequestParams(db,dd.name,dd.piece,dd.target)}function aS(db){if(!b4||!b4.length){return false}var da,dc;for(da=0;da<b4.length;da++){dc=b4[da];if(dc&&dc.name===db.name&&dc.piece===db.piece&&dc.target===db.target){return true}}return false}function by(dd){if(!dd){return false}var dg=v.findTargetNode(dd);if(!dg||v.shouldIgnoreInteraction(dg)){return false}var dh=c4(dg);if(c1&&dh&&dh.type){return false}if(ac.isLinkElement(dg)&&ac.hasNodeAttributeWithValue(dg,"href")){var da=String(ac.getAttributeValueFromNode(dg,"href"));if(0===da.indexOf("#")){return false}if(aQ(da)){return true}if(!v.isUrlToCurrentDomain(da)){return false}var de=v.buildContentBlock(dd);if(!de){return}var dc=de.name;var di=de.piece;var df=de.target;if(!ac.hasNodeAttributeWithValue(dg,v.CONTENT_TARGET_ATTR)||dg.wasContentTargetAttrReplaced){dg.wasContentTargetAttrReplaced=true;df=v.toAbsoluteUrl(da);ac.setAnyAttribute(dg,v.CONTENT_TARGET_ATTR,df)}var db=cE(da,"click",dc,di,df);v.setHrefAttribute(dg,db); -return true}return false}function aJ(db){if(!db||!db.length){return}var da;for(da=0;da<db.length;da++){by(db[da])}}function aT(da){return function(db){if(!da){return}var de=v.findParentContentNode(da);var df;if(db){df=db.target||db.srcElement}if(!df){df=da}if(!a7(de,df)){return}ca(bD);if(ac.isLinkElement(da)&&ac.hasNodeAttributeWithValue(da,"href")&&ac.hasNodeAttributeWithValue(da,v.CONTENT_TARGET_ATTR)){var dc=ac.getAttributeValueFromNode(da,"href");if(!aQ(dc)&&da.wasContentTargetAttrReplaced){ac.setAnyAttribute(da,v.CONTENT_TARGET_ATTR,"")}}var dj=c4(da);if(am&&dj&&dj.type){return dj.type}if(by(de)){return"href"}var dg=v.buildContentBlock(de);if(!dg){return}var dd=dg.name;var dk=dg.piece;var di=dg.target;var dh=aL("click",dd,dk,di);bz(dh,bD);return dh}}function bV(dc){if(!dc||!dc.length){return}var da,db;for(da=0;da<dc.length;da++){db=v.findTargetNode(dc[da]);if(db&&!db.contentInteractionTrackingSetupDone){db.contentInteractionTrackingSetupDone=true;ak(db,"click",aT(db))}}}function bs(dc,dd){if(!dc||!dc.length){return[] -}var da,db;for(da=0;da<dc.length;da++){if(aS(dc[da])){dc.splice(da,1);da--}else{b4.push(dc[da])}}if(!dc||!dc.length){return[]}aJ(dd);bV(dd);var de=[];for(da=0;da<dc.length;da++){db=cn(v.buildImpressionRequestParams(dc[da].name,dc[da].piece,dc[da].target),undefined,"contentImpressions");if(db){de.push(db)}}return de}function ct(db){var da=v.collectContent(db);return bs(da,db)}function a5(db){if(!db||!db.length){return[]}var da;for(da=0;da<db.length;da++){if(!v.isNodeVisible(db[da])){db.splice(da,1);da--}}if(!db||!db.length){return[]}return ct(db)}function aC(dc,da,db){var dd=v.buildImpressionRequestParams(dc,da,db);return cn(dd,null,"contentImpression")}function c3(dd,db){if(!dd){return}var da=v.findParentContentNode(dd);var dc=v.buildContentBlock(da);if(!dc){return}if(!db){db="Unknown"}return aL(db,dc.name,dc.piece,dc.target)}function cI(db,dd,da,dc){return"e_c="+t(db)+"&e_a="+t(dd)+(J(da)?"&e_n="+t(da):"")+(J(dc)?"&e_v="+t(dc):"")}function ap(dc,de,da,dd,dg,df){if(a(String(dc)).length===0||a(String(de)).length===0){ah("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces"); -return false}var db=cn(cI(dc,de,da,dd),dg,"event");bz(db,bD,df)}function b2(da,dd,db,de){var dc=cn("search="+t(da)+(dd?"&search_cat="+t(dd):"")+(J(db)?"&search_count="+db:""),de,"sitesearch");bz(dc,bD)}function cM(da,de,dd,dc){var db=cn("idgoal="+da+(de?"&revenue="+de:""),dd,"goal");bz(db,bD,dc)}function cU(dd,da,dh,dg,dc){var df=da+"="+t(bW(dd));var db=co(dc,"click",dd);if(db){df+="&"+db}var de=cn(df,dh,"link");bz(de,bD,dg)}function bO(db,da){if(db!==""){return db+da.charAt(0).toUpperCase()+da.slice(1)}return da}function cb(df){var de,da,dd=["","webkit","ms","moz"],dc;if(!ba){for(da=0;da<dd.length;da++){dc=dd[da];if(Object.prototype.hasOwnProperty.call(G,bO(dc,"hidden"))){if(G[bO(dc,"visibilityState")]==="prerender"){de=true}break}}}if(de){ak(G,dc+"visibilitychange",function db(){G.removeEventListener(dc+"visibilitychange",db,false);df()});return}df()}function bm(){var db=aU().uuid;var da=aF();return db+da}function cd(da){if(!da){return}if(!ac.hasNodeAttribute(da,"href")){return}var db=ac.getAttributeValueFromNode(da,"href"); -if(!db||aQ(db)){return}db=k(db,ar);if(db.indexOf("?")>0){db+="&"}else{db+="?"}var dc=bm();db=F(db,ar,dc);ac.setAnyAttribute(da,"href",db)}function ax(dd){var de=ac.getAttributeValueFromNode(dd,"href");if(!de){return false}de=String(de);var db=de.indexOf("//")===0||de.indexOf("http://")===0||de.indexOf("https://")===0;if(!db){return false}var da=dd.pathname||cf(dd.href);var dc=(dd.hostname||d(dd.href)).toLowerCase();if(ao(dc,da)){if(!cA(cN,L(dc))){return true}return false}return false}function cz(da){var db=c4(da);if(db&&db.type){db.href=p(db.href);cU(db.href,db.type,undefined,null,da);return}if(cG){da=aq(da);if(ax(da)){cd(da)}}}function cq(){return G.all&&!G.addEventListener}function cO(da){var dc=da.which;var db=(typeof da.button);if(!dc&&db!=="undefined"){if(cq()){if(da.button&1){dc=1}else{if(da.button&2){dc=3}else{if(da.button&4){dc=2}}}}else{if(da.button===0||da.button==="0"){dc=1}else{if(da.button&1){dc=2}else{if(da.button&2){dc=3}}}}}return dc}function bN(da){switch(cO(da)){case 1:return"left"; -case 2:return"middle";case 3:return"right"}}function aX(da){return da.target||da.srcElement}function ay(da){return function(dd){dd=dd||T.event;var dc=bN(dd);var de=aX(dd);if(dd.type==="click"){var db=false;if(da&&dc==="middle"){db=true}if(de&&!db){cz(de)}}else{if(dd.type==="mousedown"){if(dc==="middle"&&de){aN=dc;bv=de}else{aN=bv=null}}else{if(dd.type==="mouseup"){if(dc===aN&&de===bv){cz(de)}aN=bv=null}else{if(dd.type==="contextmenu"){cz(de)}}}}}}function an(dc,db){var da=typeof db;if(da==="undefined"){db=true}ak(dc,"click",ay(db),false);if(db){ak(dc,"mouseup",ay(db),false);ak(dc,"mousedown",ay(db),false);ak(dc,"contextmenu",ay(db),false)}}function bx(dc,de){am=true;var dd,db=aW(bu,"ignore"),df=G.links,da=null,dg=null;if(df){for(dd=0;dd<df.length;dd++){da=df[dd];if(!db.test(da.className)){dg=typeof da.piwikTrackers;if("undefined"===dg){da.piwikTrackers=[]}if(-1===M(da.piwikTrackers,de)){da.piwikTrackers.push(de);an(da,dc)}}}}}function aO(db,de,df){if(b9){return true}b9=true;var dg=false; -var dd,dc;function da(){dg=true}n(function(){function dh(dj){setTimeout(function(){if(!b9){return}dg=false;df.trackVisibleContentImpressions();dh(dj)},dj)}function di(dj){setTimeout(function(){if(!b9){return}if(dg){dg=false;df.trackVisibleContentImpressions()}di(dj)},dj)}if(db){dd=["scroll","resize"];for(dc=0;dc<dd.length;dc++){if(G.addEventListener){G.addEventListener(dd[dc],da,false)}else{T.attachEvent("on"+dd[dc],da)}}di(100)}if(de&&de>0){de=parseInt(de,10);dh(de)}})}function cy(){var db,dd,de={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"};if(!((new RegExp("MSIE")).test(h.userAgent))){if(h.mimeTypes&&h.mimeTypes.length){for(db in de){if(Object.prototype.hasOwnProperty.call(de,db)){dd=h.mimeTypes[de[db]];c0[db]=(dd&&dd.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(h.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&J(h.javaEnabled)&&h.javaEnabled()){c0.java="1" -}if(A(T.GearsFactory)){c0.gears="1"}c0.cookie=bZ()}var dc=parseInt(X.width,10);var da=parseInt(X.height,10);c0.res=parseInt(dc,10)+"x"+parseInt(da,10)}cy();bd();aI();this.getVisitorId=function(){return aU().uuid};this.getVisitorInfo=function(){return cH()};this.getAttributionInfo=function(){return bG()};this.getAttributionCampaignName=function(){return bG()[0]};this.getAttributionCampaignKeyword=function(){return bG()[1]};this.getAttributionReferrerTimestamp=function(){return bG()[2]};this.getAttributionReferrerUrl=function(){return bG()[3]};this.setTrackerUrl=function(da){aA=da};this.getTrackerUrl=function(){return aA};this.getPiwikUrl=function(){return O(this.getTrackerUrl(),bB)};this.addTracker=function(da,dc){if(!dc){throw new Error("A siteId must be given to add a new tracker")}if(!J(da)||null===da){da=this.getTrackerUrl()}var db=new Q(da,dc);I.push(db);e.trigger("TrackerAdded",[this]);return db};this.getSiteId=function(){return b0};this.setSiteId=function(da){bX(da)};this.resetUserId=function(){bt="" -};this.setUserId=function(da){if(!J(da)||!da.length){return}bt=da};this.getUserId=function(){return bt};this.setCustomData=function(da,db){if(W(da)){al=da}else{if(!al){al={}}al[da]=db}};this.getCustomData=function(){return al};this.setCustomRequestProcessing=function(da){b5=da};this.appendToTrackingUrl=function(da){cS=da};this.getRequest=function(da){return cn(da)};this.addPlugin=function(da,db){b[da]=db};this.setCustomDimension=function(da,db){da=parseInt(da,10);if(da>0){if(!J(db)){db=""}if(!w(db)){db=String(db)}bh[da]=db}};this.getCustomDimension=function(da){da=parseInt(da,10);if(da>0&&Object.prototype.hasOwnProperty.call(bh,da)){return bh[da]}};this.deleteCustomDimension=function(da){da=parseInt(da,10);if(da>0){delete bh[da]}};this.setCustomVariable=function(db,da,de,dc){var dd;if(!J(dc)){dc="visit"}if(!J(da)){return}if(!J(de)){de=""}if(db>0){da=!w(da)?String(da):da;de=!w(de)?String(de):de;dd=[da.slice(0,bo),de.slice(0,bo)];if(dc==="visit"||dc===2){cx();aM[db]=dd}else{if(dc==="page"||dc===3){bQ[db]=dd -}else{if(dc==="event"){cg[db]=dd}}}}};this.getCustomVariable=function(db,dc){var da;if(!J(dc)){dc="visit"}if(dc==="page"||dc===3){da=bQ[db]}else{if(dc==="event"){da=cg[db]}else{if(dc==="visit"||dc===2){cx();da=aM[db]}}}if(!J(da)||(da&&da[0]==="")){return false}return da};this.deleteCustomVariable=function(da,db){if(this.getCustomVariable(da,db)){this.setCustomVariable(da,"","",db)}};this.deleteCustomVariables=function(da){if(da==="page"||da===3){bQ={}}else{if(da==="event"){cg={}}else{if(da==="visit"||da===2){aM={}}}}};this.storeCustomVariablesInCookie=function(){bK=true};this.setLinkTrackingTimer=function(da){bD=da};this.getLinkTrackingTimer=function(){return bD};this.setDownloadExtensions=function(da){if(w(da)){da=da.split("|")}cZ=da};this.addDownloadExtensions=function(db){var da;if(w(db)){db=db.split("|")}for(da=0;da<db.length;da++){cZ.push(db[da])}};this.removeDownloadExtensions=function(dc){var db,da=[];if(w(dc)){dc=dc.split("|")}for(db=0;db<cZ.length;db++){if(M(dc,cZ[db])===-1){da.push(cZ[db]) -}}cZ=da};this.setDomains=function(da){au=w(da)?[da]:da;var de=false,dc=0,db;for(dc;dc<au.length;dc++){db=String(au[dc]);if(cA(cN,L(db))){de=true;break}var dd=cf(db);if(dd&&dd!=="/"&&dd!=="/*"){de=true;break}}if(!de){au.push(cN)}};this.enableCrossDomainLinking=function(){cG=true};this.disableCrossDomainLinking=function(){cG=false};this.isCrossDomainLinkingEnabled=function(){return cG};this.setCrossDomainLinkingTimeout=function(da){aV=da};this.getCrossDomainLinkingUrlParameter=function(){return t(ar)+"="+t(bm())};this.setIgnoreClasses=function(da){bu=w(da)?[da]:da};this.setRequestMethod=function(da){c2=da||cc};this.setRequestContentType=function(da){cr=da||aE};this.setReferrerUrl=function(da){bi=da};this.setCustomUrl=function(da){a0=bP(bH,da)};this.getCurrentUrl=function(){return a0||bH};this.setDocumentTitle=function(da){be=da};this.setAPIUrl=function(da){bB=da};this.setDownloadClasses=function(da){bF=w(da)?[da]:da};this.setLinkClasses=function(da){a4=w(da)?[da]:da};this.setCampaignNameKey=function(da){cl=w(da)?[da]:da -};this.setCampaignKeywordKey=function(da){bA=w(da)?[da]:da};this.discardHashTag=function(da){bJ=da};this.setCookieNamePrefix=function(da){bf=da;aM=bR()};this.setCookieDomain=function(da){var db=L(da);if(br(db)){cQ=db;bd()}};this.getCookieDomain=function(){return cQ};this.hasCookies=function(){return"1"===bZ()};this.setSessionCookie=function(dc,db,da){if(!dc){throw new Error("Missing cookie name")}if(!J(da)){da=cj}bp.push(dc);c5(aP(dc),db,da,bk,cQ)};this.getCookie=function(db){var da=az(aP(db));if(da===0){return null}return da};this.setCookiePath=function(da){bk=da;bd()};this.getCookiePath=function(da){return bk};this.setVisitorCookieTimeout=function(da){cC=da*1000};this.setSessionCookieTimeout=function(da){cj=da*1000};this.getSessionCookieTimeout=function(){return cj};this.setReferralCookieTimeout=function(da){cY=da*1000};this.setConversionAttributionFirstReferrer=function(da){bq=da};this.setSecureCookie=function(da){bM=da};this.disableCookies=function(){bg=true;c0.cookie="0";if(b0){aB() -}};this.deleteCookies=function(){aB()};this.setDoNotTrack=function(db){var da=h.doNotTrack||h.msDoNotTrack;cJ=db&&(da==="yes"||da==="1");if(cJ){this.disableCookies()}};this.alwaysUseSendBeacon=function(){cP=true};this.addListener=function(db,da){an(db,da)};this.enableLinkTracking=function(db){c1=true;var da=this;cb(function(){q(function(){bx(db,da)})})};this.enableJSErrorTracking=function(){if(cL){return}cL=true;var da=T.onerror;T.onerror=function(df,dd,dc,de,db){cb(function(){var dg="JavaScript Errors";var dh=dd+":"+dc;if(de){dh+=":"+de}ap(dg,dh,df)});if(da){return da(df,dd,dc,de,db)}return false}};this.disablePerformanceTracking=function(){aY=false};this.setGenerationTimeMs=function(da){ch=parseInt(da,10)};this.enableHeartBeatTimer=function(da){da=Math.max(da,1);a1=(da||15)*1000;if(cR!==null){c7()}};this.disableHeartBeatTimer=function(){bE();if(a1||aK){if(T.removeEventListener){T.removeEventListener("focus",a6,true);T.removeEventListener("blur",av,true)}else{if(T.detachEvent){T.detachEvent("onfocus",a6); -T.detachEvent("onblur",av)}}}a1=null;aK=false};this.killFrame=function(){if(T.location!==T.top.location){T.top.location=T.location}};this.redirectFile=function(da){if(T.location.protocol==="file:"){T.location=da}};this.setCountPreRendered=function(da){ba=da};this.trackGoal=function(da,dd,dc,db){cb(function(){cM(da,dd,dc,db)})};this.trackLink=function(db,da,dd,dc){cb(function(){cU(db,da,dd,dc)})};this.getNumTrackedPageViews=function(){return cm};this.trackPageView=function(da,dc,db){b4=[];cD=[];if(N(b0)){cb(function(){Y(aA,bB,b0)})}else{cb(function(){cm++;bU(da,dc,db)})}};this.trackAllContentImpressions=function(){if(N(b0)){return}cb(function(){q(function(){var da=v.findContentNodes();var db=ct(da);c6(db,bD)})})};this.trackVisibleContentImpressions=function(da,db){if(N(b0)){return}if(!J(da)){da=true}if(!J(db)){db=750}aO(da,db,this);cb(function(){n(function(){var dc=v.findContentNodes();var dd=a5(dc);c6(dd,bD)})})};this.trackContentImpression=function(dc,da,db){if(N(b0)){return}dc=a(dc);da=a(da); -db=a(db);if(!dc){return}da=da||"Unknown";cb(function(){var dd=aC(dc,da,db);bz(dd,bD)})};this.trackContentImpressionsWithinNode=function(da){if(N(b0)||!da){return}cb(function(){if(b9){n(function(){var db=v.findContentNodesWithinNode(da);var dc=a5(db);c6(dc,bD)})}else{q(function(){var db=v.findContentNodesWithinNode(da);var dc=ct(db);c6(dc,bD)})}})};this.trackContentInteraction=function(dc,dd,da,db){if(N(b0)){return}dc=a(dc);dd=a(dd);da=a(da);db=a(db);if(!dc||!dd){return}da=da||"Unknown";cb(function(){var de=aL(dc,dd,da,db);bz(de,bD)})};this.trackContentInteractionNode=function(db,da){if(N(b0)||!db){return}cb(function(){var dc=c3(db,da);bz(dc,bD)})};this.logAllContentBlocksOnPage=function(){var dc=v.findContentNodes();var da=v.collectContent(dc);var db=typeof console;if(db!=="undefined"&&console&&console.log){console.log(da)}};this.trackEvent=function(db,dd,da,dc,df,de){cb(function(){ap(db,dd,da,dc,df,de)})};this.trackSiteSearch=function(da,dc,db,dd){cb(function(){b2(da,dc,db,dd)})};this.setEcommerceView=function(dd,da,dc,db){if(!J(dc)||!dc.length){dc="" -}else{if(dc instanceof Array){dc=JSON_PIWIK.stringify(dc)}}bQ[5]=["_pkc",dc];if(J(db)&&String(db).length){bQ[2]=["_pkp",db]}if((!J(dd)||!dd.length)&&(!J(da)||!da.length)){return}if(J(dd)&&dd.length){bQ[3]=["_pks",dd]}if(!J(da)||!da.length){da=""}bQ[4]=["_pkn",da]};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(cT))};this.addEcommerceItem=function(de,da,dc,db,dd){if(de.length){cT[de]=[de,da,dc,db,dd]}};this.removeEcommerceItem=function(da){if(da.length){delete cT[da]}};this.clearEcommerceCart=function(){cT={}};this.trackEcommerceOrder=function(da,de,dd,dc,db,df){bT(da,de,dd,dc,db,df)};this.trackEcommerceCartUpdate=function(da){bn(da)};this.trackRequest=function(db,dd,dc,da){cb(function(){var de=cn(db,dd,da);bz(de,bD,dc)})};this.queueRequest=function(da){cb(function(){var db=cn(da);requestQueue.push(db)})};this.getRememberedConsent=function(){var da=az(a9);if(az(cF)){if(da){bS(a9,bk,cQ)}return null}if(!da||da===0){return null}return da};this.hasRememberedConsent=function(){return !!this.getRememberedConsent() -};this.requireConsent=function(){cu=true;bw=this.hasRememberedConsent();x++;b["CoreConsent"+x]={unload:function(){if(!bw){aB()}}}};this.setConsentGiven=function(){bw=true;bS(cF,bk,cQ);var db,da;for(db=0;db<cD.length;db++){da=typeof cD[db];if(da==="string"){bz(cD[db],bD)}else{if(da==="object"){c6(cD[db],bD)}}}cD=[]};this.rememberConsentGiven=function(db){if(bg){ah("rememberConsentGiven is called but cookies are disabled, consent will not be remembered");return}if(db){db=db*60*60*1000}this.setConsentGiven();var da=new Date().getTime();c5(a9,da,db,bk,cQ,bM)};this.forgetConsentGiven=function(){if(bg){ah("forgetConsentGiven is called but cookies are disabled, consent will not be forgotten");return}bS(a9,bk,cQ);c5(cF,new Date().getTime(),0,bk,cQ,bM);this.requireConsent()};this.isUserOptedOut=function(){return !bw};this.optUserOut=this.forgetConsentGiven;this.forgetUserOptOut=this.rememberConsentGiven;e.trigger("TrackerSetup",[this])}function H(){return{push:ad}}function c(aq,ap){var ar={};var an,ao; -for(an=0;an<ap.length;an++){var al=ap[an];ar[al]=1;for(ao=0;ao<aq.length;ao++){if(aq[ao]&&aq[ao][0]){var am=aq[ao][0];if(al===am){ad(aq[ao]);delete aq[ao];if(ar[am]>1&&am!=="addTracker"){ah("The method "+am+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: https://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers')}ar[am]++}}}}return aq}var C=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","alwaysUseSendBeacon","enableLinkTracking","requireConsent","setConsentGiven"];function ab(al,an){var am=new Q(al,an);I.push(am);_paq=c(_paq,C);for(E=0;E<_paq.length;E++){if(_paq[E]){ad(_paq[E])}}_paq=new H();e.trigger("TrackerAdded",[am]);return am}ak(T,"beforeunload",af,false);Date.prototype.getTimeAlias=Date.prototype.getTime; -e={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(ao,an,am,al){var ap=typeof al;if(ap==="undefined"){al=false}ak(ao,an,am,al)},onLoad:n,onReady:q,isNodeVisible:j,isOrWasNodeVisible:v.isNodeVisible},on:function(am,al){if(!y[am]){y[am]=[]}y[am].push(al)},off:function(an,am){if(!y[an]){return}var al=0;for(al;al<y[an].length;al++){if(y[an][al]===am){y[an].splice(al,1)}}},trigger:function(an,ao,am){if(!y[an]){return}var al=0;for(al;al<y[an].length;al++){y[an][al].apply(am||T,ao)}},addPlugin:function(al,am){b[al]=am},getTracker:function(al,am){if(!J(am)){am=this.getAsyncTracker().getSiteId()}if(!J(al)){al=this.getAsyncTracker().getTrackerUrl()}return new Q(al,am)},getAsyncTrackers:function(){return I},addTracker:function(al,an){var am;if(!I.length){am=ab(al,an)}else{am=I[0].addTracker(al,an)}return am},getAsyncTracker:function(am,ap){var ao;if(I&&I.length&&I[0]){ao=I[0]}else{return ab(am,ap)}if(!ap&&!am){return ao}if((!J(ap)||null===ap)&&ao){ap=ao.getSiteId()}if((!J(am)||null===am)&&ao){am=ao.getTrackerUrl() -}var an,al=0;for(al;al<I.length;al++){an=I[al];if(an&&String(an.getSiteId())===String(ap)&&an.getTrackerUrl()===am){return an}}},retryMissedPluginCalls:function(){var am=ae;ae=[];var al=0;for(al;al<am.length;al++){ad(am[al])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return e});define("matomo",[],function(){return e})}return e}())} +if(ap!==String(ar)){return false}var aq=an[2],al=an[3],ao=an[4];if(!ao){ao=""}else{if(ao.indexOf("&segment=")===0){ao=ao.substr("&segment=".length)}}T.name=au+"###"+aq+"###"+al+"###"+ao}var at=T.name.split("###");return at.length===4&&at[0]===au}function Y(am,at,ao){var ar=T.name.split("###"),aq=ar[1],al=ar[2],ap=ar[3],an=O(am,at);o(an+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(an,ao,aq,al,ap)})}function u(){var an;try{an=T.frameElement}catch(am){return true}if(J(an)){return(an&&String(an.nodeName).toLowerCase()==="iframe")?true:false}try{return T.self!==T.top}catch(al){return true}}function Q(b9,b4){var bD=this,a9="mtm_consent",cG="mtm_consent_removed",bZ=Z(G.domain,T.location.href,K()),cO=L(bZ[0]),bI=p(bZ[1]),bi=p(bZ[2]),cM=false,cd="GET",c3=cd,aE="application/x-www-form-urlencoded; charset=UTF-8",cs=aE,aA=b9||"",bC="",cT="",b1=b4||"",bt="",bJ="",a0,be="",c0=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],au=[cO],bu=[],bG=[],a4=[],bE=500,cQ=false,cC,a1,bM,bK,al,cm=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bB=["pk_kwd","piwik_kwd","utm_term"],bf="_pk_",ar="pk_vid",aV=180,cR,bk,bN=false,bg=false,cK,ba,bq,cD=33955200000,ck=1800000,cZ=15768000000,aY=true,ci=0,bL=false,aM=false,b6,bR={},ch={},bh={},bo=200,cU={},c1={},b5=[],ca=false,cw=false,am=false,c2=false,cH=false,aK=false,a8=u(),cS=null,b7,aN,bv,b2=aj,bj,aH,cn=0,bp=["id","ses","cvar","ref"],cv=false,bw=null,cE=[],at=U++; +try{be=G.title}catch(ct){be=""}function c6(dh,df,de,dg,dd,dc){if(bg){return}var db;if(de){db=new Date();db.setTime(db.getTime()+de)}G.cookie=dh+"="+t(df)+(de?";expires="+db.toGMTString():"")+";path="+(dg||"/")+(dd?";domain="+dd:"")+(dc?";secure":"")}function az(dd){if(bg){return 0}var db=new RegExp("(^|;)[ ]*"+dd+"=([^;]*)"),dc=db.exec(G.cookie);return dc?S(dc[2]):0}bw=!az(cG);function bX(db){var dc;db=k(db,ar);if(bK){dc=new RegExp("#.*");return db.replace(dc,"")}return db}function bQ(dd,db){var de=s(db),dc;if(de){return db}if(db.slice(0,1)==="/"){return s(dd)+"://"+d(dd)+db}dd=bX(dd);dc=dd.indexOf("?");if(dc>=0){dd=dd.slice(0,dc)}dc=dd.lastIndexOf("/");if(dc!==dd.length-1){dd=dd.slice(0,dc+1)}return dd+db}function cB(dd,db){var dc;dd=String(dd).toLowerCase();db=String(db).toLowerCase();if(dd===db){return true}if(db.slice(0,1)==="."){if(dd===db.slice(1)){return true}dc=dd.length-db.length;if((dc>0)&&(dd.slice(dc)===db)){return true}}return false}function cg(db){var dc=document.createElement("a"); +if(db.indexOf("//")!==0&&db.indexOf("http")!==0){if(db.indexOf("*")===0){db=db.substr(1)}if(db.indexOf(".")===0){db=db.substr(1)}db="http://"+db}dc.href=v.toAbsoluteUrl(db);if(dc.pathname){return dc.pathname}return""}function aZ(dc,db){if(!ag(db,"/")){db="/"+db}if(!ag(dc,"/")){dc="/"+dc}var dd=(db==="/"||db==="/*");if(dd){return true}if(dc===db){return true}db=String(db).toLowerCase();dc=String(dc).toLowerCase();if(R(db,"*")){db=db.slice(0,-1);dd=(!db||db==="/");if(dd){return true}if(dc===db){return true}return dc.indexOf(db)===0}if(!R(dc,"/")){dc+="/"}if(!R(db,"/")){db+="/"}return dc.indexOf(db)===0}function ao(df,dh){var dc,db,dd,de,dg;for(dc=0;dc<au.length;dc++){de=L(au[dc]);dg=cg(au[dc]);if(cB(df,de)&&aZ(dh,dg)){return true}}return false}function aR(de){var dc,db,dd;for(dc=0;dc<au.length;dc++){db=L(au[dc].toLowerCase());if(de===db){return true}if(db.slice(0,1)==="."){if(de===db.slice(1)){return true}dd=de.length-db.length;if((dd>0)&&(de.slice(dd)===db)){return true}}}return false}function cl(db,dd){db=db.replace("send_image=0","send_image=1"); +var dc=new Image(1,1);dc.onload=function(){E=0;if(typeof dd==="function"){dd({request:db,trackerUrl:aA,success:true})}};dc.onerror=function(){if(typeof dd==="function"){dd({request:db,trackerUrl:aA,success:false})}};dc.src=aA+(aA.indexOf("?")<0?"?":"&")+db}function aG(){return"object"===typeof h&&"function"===typeof h.sendBeacon&&"function"===typeof Blob}function a2(de,di){var dd=aG();if(!dd){return false}var dh={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dg=false;var dc=aA;try{var db=new Blob([de],dh);if(de.length<=2000){db=new Blob([],dh);dc=dc+(dc.indexOf("?")<0?"?":"&")+de}dg=h.sendBeacon(dc,db)}catch(df){return false}if(dg&&typeof di==="function"){di({request:de,trackerUrl:aA,success:true,isSendBeacon:true})}return dg}function cY(dc,dd,db){if(!J(db)||null===db){db=true}if(m&&a2(dc,dd)){return}setTimeout(function(){if(m&&a2(dc,dd)){return}var dg;try{var df=T.XMLHttpRequest?new T.XMLHttpRequest():T.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;df.open("POST",aA,true); +df.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dh=m&&a2(dc,dd);if(!dh&&db){cl(dc,dd)}else{if(typeof dd==="function"){dd({request:dc,trackerUrl:aA,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dd==="function")){dd({request:dc,trackerUrl:aA,success:true,xhr:this})}}};df.setRequestHeader("Content-Type",cs);df.send(dc)}catch(de){dg=m&&a2(dc,dd);if(!dg&&db){cl(dc,dd)}else{if(typeof dd==="function"){dd({request:dc,trackerUrl:aA,success:false})}}}},50)}function cb(dc){var db=new Date();var dd=db.getTime()+dc;if(!r||dd>r){r=dd}}function cj(db){if(b7||!a1||!bw){return}b7=setTimeout(function dc(){b7=null;if(!a8){a8=(!G.hasFocus||G.hasFocus())}if(!a8){cj(a1);return}if(bM()){return}var dd=new Date(),de=a1-(dd.getTime()-cS);de=Math.min(a1,de);cj(de)},db||a1)}function bF(){if(!b7){return}clearTimeout(b7);b7=null}function a6(){a8=true;if(bM()){return}cj()}function av(){bF()}function c8(){if(aK||!a1){return}aK=true;ak(T,"focus",a6);ak(T,"blur",av); +cj()}function cx(df){var dc=new Date();var db=dc.getTime();cS=db;if(cw&&db<cw){var dd=cw-db;setTimeout(df,dd);cb(dd+50);cw+=50;return}if(cw===false){var de=800;cw=db+de}df()}function bA(dc,db,dd){if(!bw){cE.push(dc);return}if(!cK&&dc){if(cv&&bw){dc+="&consent=1"}cx(function(){if(cQ&&a2(dc,dd)){cb(100);return}if(c3==="POST"||String(dc).length>2000){cY(dc,dd)}else{cl(dc,dd)}cb(db)})}if(!aK){c8()}else{cj()}}function cf(db){if(cK){return false}return(db&&db.length)}function cX(db,df){if(!df||df>=db.length){return[db]}var dc=0;var dd=db.length;var de=[];for(dc;dc<dd;dc+=df){de.push(db.slice(dc,dc+df))}return de}function c7(dc,db){if(!cf(dc)){return}if(!bw){cE.push(dc);return}cx(function(){var df=cX(dc,50);var dd=0,de;for(dd;dd<df.length;dd++){de='{"requests":["?'+df[dd].join('","?')+'"]}';cY(de,null,false)}cb(db)})}function aP(db){return bf+db+"."+b1+"."+bj}function b0(){if(bg){return"0"}if(!J(h.cookieEnabled)){var db=aP("testcookie");c6(db,"1");return az(db)==="1"?"1":"0"}return h.cookieEnabled?"1":"0" +}function bd(){bj=b2((cR||cO)+(bk||"/")).slice(0,4)}function bS(){var dc=aP("cvar"),db=az(dc);if(db.length){db=JSON_PIWIK.parse(db);if(W(db)){return db}}return{}}function cy(){if(aM===false){aM=bS()}}function cL(){return b2((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c1)+(new Date()).getTime()+Math.random()).slice(0,16)}function aw(){return b2((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c1)).slice(0,6)}function bb(){return Math.floor((new Date()).getTime()/1000)}function aF(){var dc=bb();var dd=aw();var db=String(dc)+dd;return db}function cW(dd){dd=String(dd);var dg=aw();var de=dg.length;var df=dd.substr(-1*de,de);var dc=parseInt(dd.substr(0,dd.length-de),10);if(dc&&df&&df===dg){var db=bb();if(aV<=0){return true}if(db>=dc&&db<=(dc+aV)){return true}}return false}function c9(db){if(!cH){return""}var df=f(db,ar);if(!df){return""}df=String(df);var dd=new RegExp("^[a-zA-Z0-9]+$");if(df.length===32&&dd.test(df)){var dc=df.substr(16,32);if(cW(dc)){var de=df.substr(0,16); +return de}}return""}function cI(){if(!bJ){bJ=c9(bI)}var dd=new Date(),db=Math.round(dd.getTime()/1000),dc=aP("id"),dg=az(dc),df,de;if(dg){df=dg.split(".");df.unshift("0");if(bJ.length){df[1]=bJ}return df}if(bJ.length){de=bJ}else{if("0"===b0()){de=""}else{de=cL()}}df=["1",de,db,0,db,"",""];return df}function aU(){var di=cI(),de=di[0],df=di[1],dc=di[2],db=di[3],dg=di[4],dd=di[5];if(!J(di[6])){di[6]=""}var dh=di[6];return{newVisitor:de,uuid:df,createTs:dc,visitCount:db,currentVisitTs:dg,lastVisitTs:dd,lastEcommerceOrderTs:dh}}function aD(){var de=new Date(),dc=de.getTime(),df=aU().createTs;var db=parseInt(df,10);var dd=(db*1000)+cD-dc;return dd}function aI(db){if(!b1){return}var dd=new Date(),dc=Math.round(dd.getTime()/1000);if(!J(db)){db=aU()}var de=db.uuid+"."+db.createTs+"."+db.visitCount+"."+dc+"."+db.lastVisitTs+"."+db.lastEcommerceOrderTs;c6(aP("id"),de,aD(),bk,cR,bN)}function bH(){var db=az(aP("ref"));if(db.length){try{db=JSON_PIWIK.parse(db);if(W(db)){return db}}catch(dc){}}return["","",0,""] +}function bT(dd,dc,db){c6(dd,"",-86400,dc,db)}function br(dc){var db="testvalue";c6("test",db,10000,null,dc);if(az("test")===db){bT("test",null,dc);return true}return false}function aB(){var dc=bg;bg=false;var db,dd;for(db=0;db<bp.length;db++){dd=aP(bp[db]);if(dd!==cG&&dd!==a9&&0!==az(dd)){bT(dd,bk,cR)}}bg=dc}function bY(db){b1=db;aI()}function da(df){if(!df||!W(df)){return}var de=[];var dd;for(dd in df){if(Object.prototype.hasOwnProperty.call(df,dd)){de.push(dd)}}var dg={};de.sort();var db=de.length;var dc;for(dc=0;dc<db;dc++){dg[de[dc]]=df[de[dc]]}return dg}function b8(){c6(aP("ses"),"1",ck,bk,cR,bN)}function bc(){var de="";var dc="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var dd=dc.length;var db;for(db=0;db<6;db++){de+=dc.charAt(Math.floor(Math.random()*dd))}return de}function co(dd,dz,dA,de){var dy,dc=new Date(),dl=Math.round(dc.getTime()/1000),di,dx,df=1024,dF,dm,dv=aM,dg=aP("ses"),dt=aP("ref"),dq=aP("cvar"),dr=az(dg),dw=bH(),dC=a0||bI,dj,db;if(bg){aB()}if(cK){return"" +}var ds=aU();if(!J(de)){de=""}var dp=G.characterSet||G.charset;if(!dp||dp.toLowerCase()==="utf-8"){dp=null}dj=dw[0];db=dw[1];di=dw[2];dx=dw[3];if(!dr){var dB=ck/1000;if(!ds.lastVisitTs||(dl-ds.lastVisitTs)>dB){ds.visitCount++;ds.lastVisitTs=ds.currentVisitTs}if(!bq||!dj.length){for(dy in cm){if(Object.prototype.hasOwnProperty.call(cm,dy)){dj=f(dC,cm[dy]);if(dj.length){break}}}for(dy in bB){if(Object.prototype.hasOwnProperty.call(bB,dy)){db=f(dC,bB[dy]);if(db.length){break}}}}dF=d(bi);dm=dx.length?d(dx):"";if(dF.length&&!aR(dF)&&(!bq||!dm.length||aR(dm))){dx=bi}if(dx.length||dj.length){di=dl;dw=[dj,db,di,bX(dx.slice(0,df))];c6(dt,JSON_PIWIK.stringify(dw),cZ,bk,cR)}}dd+="&idsite="+b1+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+dc.getHours()+"&m="+dc.getMinutes()+"&s="+dc.getSeconds()+"&url="+t(bX(dC))+(bi.length?"&urlref="+t(bX(bi)):"")+((bt&&bt.length)?"&uid="+t(bt):"")+"&_id="+ds.uuid+"&_idts="+ds.createTs+"&_idvc="+ds.visitCount+"&_idn="+ds.newVisitor+(dj.length?"&_rcn="+t(dj):"")+(db.length?"&_rck="+t(db):"")+"&_refts="+di+"&_viewts="+ds.lastVisitTs+(String(ds.lastEcommerceOrderTs).length?"&_ects="+ds.lastEcommerceOrderTs:"")+(String(dx).length?"&_ref="+t(bX(dx.slice(0,df))):"")+(dp?"&cs="+t(dp):"")+"&send_image=0"; +for(dy in c1){if(Object.prototype.hasOwnProperty.call(c1,dy)){dd+="&"+dy+"="+c1[dy]}}var dE=[];if(dz){for(dy in dz){if(Object.prototype.hasOwnProperty.call(dz,dy)&&/^dimension\d+$/.test(dy)){var dh=dy.replace("dimension","");dE.push(parseInt(dh,10));dE.push(String(dh));dd+="&"+dy+"="+dz[dy];delete dz[dy]}}}if(dz&&B(dz)){dz=null}for(dy in bh){if(Object.prototype.hasOwnProperty.call(bh,dy)){var dn=(-1===M(dE,dy));if(dn){dd+="&dimension"+dy+"="+bh[dy]}}}if(dz){dd+="&data="+t(JSON_PIWIK.stringify(dz))}else{if(al){dd+="&data="+t(JSON_PIWIK.stringify(al))}}function dk(dG,dH){var dI=JSON_PIWIK.stringify(dG);if(dI.length>2){return"&"+dH+"="+t(dI)}return""}var dD=da(bR);var du=da(ch);dd+=dk(dD,"cvar");dd+=dk(du,"e_cvar");if(aM){dd+=dk(aM,"_cvar");for(dy in dv){if(Object.prototype.hasOwnProperty.call(dv,dy)){if(aM[dy][0]===""||aM[dy][1]===""){delete aM[dy]}}}if(bL){c6(dq,JSON_PIWIK.stringify(aM),ck,bk,cR)}}if(aY){if(ci){dd+=">_ms="+ci}else{if(i&&i.timing&&i.timing.requestStart&&i.timing.responseEnd){dd+=">_ms="+(i.timing.responseEnd-i.timing.requestStart) +}}}if(aH){dd+="&pv_id="+aH}ds.lastEcommerceOrderTs=J(de)&&String(de).length?de:ds.lastEcommerceOrderTs;aI(ds);b8();dd+=aa(dA,{tracker:bD,request:dd});if(cT.length){dd+="&"+cT}if(A(b6)){dd=b6(dd)}return dd}bM=function a3(){var db=new Date();if(cS+a1<=db.getTime()){var dc=co("ping=1",null,"ping");bA(dc,bE);return true}return false};function bl(de,dd,dj,df,db,dm){var dh="idgoal=0",di,dc=new Date(),dk=[],dl,dg=String(de).length;if(dg){dh+="&ec_id="+t(de);di=Math.round(dc.getTime()/1000)}dh+="&revenue="+dd;if(String(dj).length){dh+="&ec_st="+dj}if(String(df).length){dh+="&ec_tx="+df}if(String(db).length){dh+="&ec_sh="+db}if(String(dm).length){dh+="&ec_dt="+dm}if(cU){for(dl in cU){if(Object.prototype.hasOwnProperty.call(cU,dl)){if(!J(cU[dl][1])){cU[dl][1]=""}if(!J(cU[dl][2])){cU[dl][2]=""}if(!J(cU[dl][3])||String(cU[dl][3]).length===0){cU[dl][3]=0}if(!J(cU[dl][4])||String(cU[dl][4]).length===0){cU[dl][4]=1}dk.push(cU[dl])}}dh+="&ec_items="+t(JSON_PIWIK.stringify(dk))}dh=co(dh,al,"ecommerce",di); +bA(dh,bE);if(dg){cU={}}}function bU(db,df,de,dd,dc,dg){if(String(db).length&&J(df)){bl(db,df,de,dd,dc,dg)}}function bn(db){if(J(db)){bl("",db,"","","","")}}function bV(dc,de,dd){aH=bc();var db=co("action_name="+t(ai(dc||be)),de,"log");bA(db,bE,dd)}function aW(dd,dc){var de,db="(^| )(piwik[_-]"+dc;if(dd){for(de=0;de<dd.length;de++){db+="|"+dd[de]}}db+=")( |$)";return new RegExp(db)}function aQ(db){return(aA&&db&&0===String(db).indexOf(aA))}function cq(df,db,dg,dc){if(aQ(db)){return 0}var de=aW(bG,"download"),dd=aW(a4,"link"),dh=new RegExp("\\.("+c0.join("|")+")([?&#]|$)","i");if(dd.test(df)){return"link"}if(dc||de.test(df)||dh.test(db)){return"download"}if(dg){return 0}return"link"}function aq(dc){var db;db=dc.parentNode;while(db!==null&&J(db)){if(ac.isLinkElement(dc)){break}dc=db;db=dc.parentNode}return dc}function c5(dg){dg=aq(dg);if(!ac.hasNodeAttribute(dg,"href")){return}if(!J(dg.href)){return}var df=ac.getAttributeValueFromNode(dg,"href");if(aQ(df)){return}var dc=dg.pathname||cg(dg.href); +var dh=dg.hostname||d(dg.href);var di=dh.toLowerCase();var dd=dg.href.replace(dh,di);var de=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!de.test(dd)){var db=cq(dg.className,dd,ao(di,dc),ac.hasNodeAttribute(dg,"download"));if(db){return{type:db,href:dd}}}}function aL(db,dc,dd,de){var df=v.buildInteractionRequestParams(db,dc,dd,de);if(!df){return}return co(df,null,"contentInteraction")}function cF(dd,de,di,db,dc){if(!J(dd)){return}if(aQ(dd)){return dd}var dg=v.toAbsoluteUrl(dd);var df="redirecturl="+t(dg)+"&";df+=aL(de,di,db,(dc||dd));var dh="&";if(aA.indexOf("?")<0){dh="?"}return aA+dh+df}function a7(db,dc){if(!db||!dc){return false}var dd=v.findTargetNode(db);if(v.shouldIgnoreInteraction(dd)){return false}dd=v.findTargetNodeNoDefault(db);if(dd&&!V(dd,dc)){return false}return true}function cp(dd,dc,df){if(!dd){return}var db=v.findParentContentNode(dd);if(!db){return}if(!a7(db,dd)){return}var de=v.buildContentBlock(db);if(!de){return}if(!de.target&&df){de.target=df +}return v.buildInteractionRequestParams(dc,de.name,de.piece,de.target)}function aS(dc){if(!b5||!b5.length){return false}var db,dd;for(db=0;db<b5.length;db++){dd=b5[db];if(dd&&dd.name===dc.name&&dd.piece===dc.piece&&dd.target===dc.target){return true}}return false}function bz(de){if(!de){return false}var dh=v.findTargetNode(de);if(!dh||v.shouldIgnoreInteraction(dh)){return false}var di=c5(dh);if(c2&&di&&di.type){return false}if(ac.isLinkElement(dh)&&ac.hasNodeAttributeWithValue(dh,"href")){var db=String(ac.getAttributeValueFromNode(dh,"href"));if(0===db.indexOf("#")){return false}if(aQ(db)){return true}if(!v.isUrlToCurrentDomain(db)){return false}var df=v.buildContentBlock(de);if(!df){return}var dd=df.name;var dj=df.piece;var dg=df.target;if(!ac.hasNodeAttributeWithValue(dh,v.CONTENT_TARGET_ATTR)||dh.wasContentTargetAttrReplaced){dh.wasContentTargetAttrReplaced=true;dg=v.toAbsoluteUrl(db);ac.setAnyAttribute(dh,v.CONTENT_TARGET_ATTR,dg)}var dc=cF(db,"click",dd,dj,dg);v.setHrefAttribute(dh,dc); +return true}return false}function aJ(dc){if(!dc||!dc.length){return}var db;for(db=0;db<dc.length;db++){bz(dc[db])}}function aT(db){return function(dc){if(!db){return}var df=v.findParentContentNode(db);var dg;if(dc){dg=dc.target||dc.srcElement}if(!dg){dg=db}if(!a7(df,dg)){return}cb(bE);if(ac.isLinkElement(db)&&ac.hasNodeAttributeWithValue(db,"href")&&ac.hasNodeAttributeWithValue(db,v.CONTENT_TARGET_ATTR)){var dd=ac.getAttributeValueFromNode(db,"href");if(!aQ(dd)&&db.wasContentTargetAttrReplaced){ac.setAnyAttribute(db,v.CONTENT_TARGET_ATTR,"")}}var dk=c5(db);if(am&&dk&&dk.type){return dk.type}if(bz(df)){return"href"}var dh=v.buildContentBlock(df);if(!dh){return}var de=dh.name;var dl=dh.piece;var dj=dh.target;var di=aL("click",de,dl,dj);bA(di,bE);return di}}function bW(dd){if(!dd||!dd.length){return}var db,dc;for(db=0;db<dd.length;db++){dc=v.findTargetNode(dd[db]);if(dc&&!dc.contentInteractionTrackingSetupDone){dc.contentInteractionTrackingSetupDone=true;ak(dc,"click",aT(dc))}}}function bs(dd,de){if(!dd||!dd.length){return[] +}var db,dc;for(db=0;db<dd.length;db++){if(aS(dd[db])){dd.splice(db,1);db--}else{b5.push(dd[db])}}if(!dd||!dd.length){return[]}aJ(de);bW(de);var df=[];for(db=0;db<dd.length;db++){dc=co(v.buildImpressionRequestParams(dd[db].name,dd[db].piece,dd[db].target),undefined,"contentImpressions");if(dc){df.push(dc)}}return df}function cu(dc){var db=v.collectContent(dc);return bs(db,dc)}function a5(dc){if(!dc||!dc.length){return[]}var db;for(db=0;db<dc.length;db++){if(!v.isNodeVisible(dc[db])){dc.splice(db,1);db--}}if(!dc||!dc.length){return[]}return cu(dc)}function aC(dd,db,dc){var de=v.buildImpressionRequestParams(dd,db,dc);return co(de,null,"contentImpression")}function c4(de,dc){if(!de){return}var db=v.findParentContentNode(de);var dd=v.buildContentBlock(db);if(!dd){return}if(!dc){dc="Unknown"}return aL(dc,dd.name,dd.piece,dd.target)}function cJ(dc,de,db,dd){return"e_c="+t(dc)+"&e_a="+t(de)+(J(db)?"&e_n="+t(db):"")+(J(dd)?"&e_v="+t(dd):"")}function ap(dd,df,db,de,dh,dg){if(a(String(dd)).length===0||a(String(df)).length===0){ah("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces"); +return false}var dc=co(cJ(dd,df,db,de),dh,"event");bA(dc,bE,dg)}function b3(db,de,dc,df){var dd=co("search="+t(db)+(de?"&search_cat="+t(de):"")+(J(dc)?"&search_count="+dc:""),df,"sitesearch");bA(dd,bE)}function cN(db,df,de,dd){var dc=co("idgoal="+db+(df?"&revenue="+df:""),de,"goal");bA(dc,bE,dd)}function cV(de,db,di,dh,dd){var dg=db+"="+t(bX(de));var dc=cp(dd,"click",de);if(dc){dg+="&"+dc}var df=co(dg,di,"link");bA(df,bE,dh)}function bP(dc,db){if(dc!==""){return dc+db.charAt(0).toUpperCase()+db.slice(1)}return db}function cc(dg){var df,db,de=["","webkit","ms","moz"],dd;if(!ba){for(db=0;db<de.length;db++){dd=de[db];if(Object.prototype.hasOwnProperty.call(G,bP(dd,"hidden"))){if(G[bP(dd,"visibilityState")]==="prerender"){df=true}break}}}if(df){ak(G,dd+"visibilitychange",function dc(){G.removeEventListener(dd+"visibilitychange",dc,false);dg()});return}dg()}function bm(){var dc=aU().uuid;var db=aF();return dc+db}function ce(db){if(!db){return}if(!ac.hasNodeAttribute(db,"href")){return}var dc=ac.getAttributeValueFromNode(db,"href"); +if(!dc||aQ(dc)){return}dc=k(dc,ar);if(dc.indexOf("?")>0){dc+="&"}else{dc+="?"}var dd=bm();dc=F(dc,ar,dd);ac.setAnyAttribute(db,"href",dc)}function ax(de){var df=ac.getAttributeValueFromNode(de,"href");if(!df){return false}df=String(df);var dc=df.indexOf("//")===0||df.indexOf("http://")===0||df.indexOf("https://")===0;if(!dc){return false}var db=de.pathname||cg(de.href);var dd=(de.hostname||d(de.href)).toLowerCase();if(ao(dd,db)){if(!cB(cO,L(dd))){return true}return false}return false}function cA(db){var dc=c5(db);if(dc&&dc.type){dc.href=p(dc.href);cV(dc.href,dc.type,undefined,null,db);return}if(cH){db=aq(db);if(ax(db)){ce(db)}}}function cr(){return G.all&&!G.addEventListener}function cP(db){var dd=db.which;var dc=(typeof db.button);if(!dd&&dc!=="undefined"){if(cr()){if(db.button&1){dd=1}else{if(db.button&2){dd=3}else{if(db.button&4){dd=2}}}}else{if(db.button===0||db.button==="0"){dd=1}else{if(db.button&1){dd=2}else{if(db.button&2){dd=3}}}}}return dd}function bO(db){switch(cP(db)){case 1:return"left"; +case 2:return"middle";case 3:return"right"}}function aX(db){return db.target||db.srcElement}function ay(db){return function(de){de=de||T.event;var dd=bO(de);var df=aX(de);if(de.type==="click"){var dc=false;if(db&&dd==="middle"){dc=true}if(df&&!dc){cA(df)}}else{if(de.type==="mousedown"){if(dd==="middle"&&df){aN=dd;bv=df}else{aN=bv=null}}else{if(de.type==="mouseup"){if(dd===aN&&df===bv){cA(df)}aN=bv=null}else{if(de.type==="contextmenu"){cA(df)}}}}}}function an(dd,dc){var db=typeof dc;if(db==="undefined"){dc=true}ak(dd,"click",ay(dc),false);if(dc){ak(dd,"mouseup",ay(dc),false);ak(dd,"mousedown",ay(dc),false);ak(dd,"contextmenu",ay(dc),false)}}function by(dd,df){am=true;var de,dc=aW(bu,"ignore"),dg=G.links,db=null,dh=null;if(dg){for(de=0;de<dg.length;de++){db=dg[de];if(!dc.test(db.className)){dh=typeof db.piwikTrackers;if("undefined"===dh){db.piwikTrackers=[]}if(-1===M(db.piwikTrackers,df)){db.piwikTrackers.push(df);an(db,dd)}}}}}function aO(dc,df,dg){if(ca){return true}ca=true;var dh=false; +var de,dd;function db(){dh=true}n(function(){function di(dk){setTimeout(function(){if(!ca){return}dh=false;dg.trackVisibleContentImpressions();di(dk)},dk)}function dj(dk){setTimeout(function(){if(!ca){return}if(dh){dh=false;dg.trackVisibleContentImpressions()}dj(dk)},dk)}if(dc){de=["scroll","resize"];for(dd=0;dd<de.length;dd++){if(G.addEventListener){G.addEventListener(de[dd],db,false)}else{T.attachEvent("on"+de[dd],db)}}dj(100)}if(df&&df>0){df=parseInt(df,10);di(df)}})}function cz(){var dc,de,df={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"};if(!((new RegExp("MSIE")).test(h.userAgent))){if(h.mimeTypes&&h.mimeTypes.length){for(dc in df){if(Object.prototype.hasOwnProperty.call(df,dc)){de=h.mimeTypes[df[dc]];c1[dc]=(de&&de.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(h.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&J(h.javaEnabled)&&h.javaEnabled()){c1.java="1" +}if(A(T.GearsFactory)){c1.gears="1"}c1.cookie=b0()}var dd=parseInt(X.width,10);var db=parseInt(X.height,10);c1.res=parseInt(dd,10)+"x"+parseInt(db,10)}var bx={enabled:true,requests:[],timeout:null,sendRequests:function(){var db=this.requests;this.requests=[];if(db.length===1){bA(db[0],bE)}else{c7(db,bE)}},push:function(db){if(!db){return}if(m||!this.enabled){bA(db,bE);return}bx.requests.push(db);if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.timeout=setTimeout(function(){bx.timeout=null;bx.sendRequests()},1750);var dc="RequestQueue"+at;if(!Object.prototype.hasOwnProperty.call(b,dc)){b[dc]={unload:function(){if(bx.timeout){clearTimeout(bx.timeout)}bx.sendRequests()}}}}};cz();bd();aI();this.getVisitorId=function(){return aU().uuid};this.getVisitorInfo=function(){return cI()};this.getAttributionInfo=function(){return bH()};this.getAttributionCampaignName=function(){return bH()[0]};this.getAttributionCampaignKeyword=function(){return bH()[1]};this.getAttributionReferrerTimestamp=function(){return bH()[2] +};this.getAttributionReferrerUrl=function(){return bH()[3]};this.setTrackerUrl=function(db){aA=db};this.getTrackerUrl=function(){return aA};this.getPiwikUrl=function(){return O(this.getTrackerUrl(),bC)};this.addTracker=function(db,dd){if(!dd){throw new Error("A siteId must be given to add a new tracker")}if(!J(db)||null===db){db=this.getTrackerUrl()}var dc=new Q(db,dd);I.push(dc);e.trigger("TrackerAdded",[this]);return dc};this.getSiteId=function(){return b1};this.setSiteId=function(db){bY(db)};this.resetUserId=function(){bt=""};this.setUserId=function(db){if(!J(db)||!db.length){return}bt=db};this.getUserId=function(){return bt};this.setCustomData=function(db,dc){if(W(db)){al=db}else{if(!al){al={}}al[db]=dc}};this.getCustomData=function(){return al};this.setCustomRequestProcessing=function(db){b6=db};this.appendToTrackingUrl=function(db){cT=db};this.getRequest=function(db){return co(db)};this.addPlugin=function(db,dc){b[db]=dc};this.setCustomDimension=function(db,dc){db=parseInt(db,10); +if(db>0){if(!J(dc)){dc=""}if(!w(dc)){dc=String(dc)}bh[db]=dc}};this.getCustomDimension=function(db){db=parseInt(db,10);if(db>0&&Object.prototype.hasOwnProperty.call(bh,db)){return bh[db]}};this.deleteCustomDimension=function(db){db=parseInt(db,10);if(db>0){delete bh[db]}};this.setCustomVariable=function(dc,db,df,dd){var de;if(!J(dd)){dd="visit"}if(!J(db)){return}if(!J(df)){df=""}if(dc>0){db=!w(db)?String(db):db;df=!w(df)?String(df):df;de=[db.slice(0,bo),df.slice(0,bo)];if(dd==="visit"||dd===2){cy();aM[dc]=de}else{if(dd==="page"||dd===3){bR[dc]=de}else{if(dd==="event"){ch[dc]=de}}}}};this.getCustomVariable=function(dc,dd){var db;if(!J(dd)){dd="visit"}if(dd==="page"||dd===3){db=bR[dc]}else{if(dd==="event"){db=ch[dc]}else{if(dd==="visit"||dd===2){cy();db=aM[dc]}}}if(!J(db)||(db&&db[0]==="")){return false}return db};this.deleteCustomVariable=function(db,dc){if(this.getCustomVariable(db,dc)){this.setCustomVariable(db,"","",dc)}};this.deleteCustomVariables=function(db){if(db==="page"||db===3){bR={} +}else{if(db==="event"){ch={}}else{if(db==="visit"||db===2){aM={}}}}};this.storeCustomVariablesInCookie=function(){bL=true};this.setLinkTrackingTimer=function(db){bE=db};this.getLinkTrackingTimer=function(){return bE};this.setDownloadExtensions=function(db){if(w(db)){db=db.split("|")}c0=db};this.addDownloadExtensions=function(dc){var db;if(w(dc)){dc=dc.split("|")}for(db=0;db<dc.length;db++){c0.push(dc[db])}};this.removeDownloadExtensions=function(dd){var dc,db=[];if(w(dd)){dd=dd.split("|")}for(dc=0;dc<c0.length;dc++){if(M(dd,c0[dc])===-1){db.push(c0[dc])}}c0=db};this.setDomains=function(db){au=w(db)?[db]:db;var df=false,dd=0,dc;for(dd;dd<au.length;dd++){dc=String(au[dd]);if(cB(cO,L(dc))){df=true;break}var de=cg(dc);if(de&&de!=="/"&&de!=="/*"){df=true;break}}if(!df){au.push(cO)}};this.enableCrossDomainLinking=function(){cH=true};this.disableCrossDomainLinking=function(){cH=false};this.isCrossDomainLinkingEnabled=function(){return cH};this.setCrossDomainLinkingTimeout=function(db){aV=db};this.getCrossDomainLinkingUrlParameter=function(){return t(ar)+"="+t(bm()) +};this.setIgnoreClasses=function(db){bu=w(db)?[db]:db};this.setRequestMethod=function(db){c3=db||cd};this.setRequestContentType=function(db){cs=db||aE};this.setReferrerUrl=function(db){bi=db};this.setCustomUrl=function(db){a0=bQ(bI,db)};this.getCurrentUrl=function(){return a0||bI};this.setDocumentTitle=function(db){be=db};this.setAPIUrl=function(db){bC=db};this.setDownloadClasses=function(db){bG=w(db)?[db]:db};this.setLinkClasses=function(db){a4=w(db)?[db]:db};this.setCampaignNameKey=function(db){cm=w(db)?[db]:db};this.setCampaignKeywordKey=function(db){bB=w(db)?[db]:db};this.discardHashTag=function(db){bK=db};this.setCookieNamePrefix=function(db){bf=db;aM=bS()};this.setCookieDomain=function(db){var dc=L(db);if(br(dc)){cR=dc;bd()}};this.getCookieDomain=function(){return cR};this.hasCookies=function(){return"1"===b0()};this.setSessionCookie=function(dd,dc,db){if(!dd){throw new Error("Missing cookie name")}if(!J(db)){db=ck}bp.push(dd);c6(aP(dd),dc,db,bk,cR)};this.getCookie=function(dc){var db=az(aP(dc)); +if(db===0){return null}return db};this.setCookiePath=function(db){bk=db;bd()};this.getCookiePath=function(db){return bk};this.setVisitorCookieTimeout=function(db){cD=db*1000};this.setSessionCookieTimeout=function(db){ck=db*1000};this.getSessionCookieTimeout=function(){return ck};this.setReferralCookieTimeout=function(db){cZ=db*1000};this.setConversionAttributionFirstReferrer=function(db){bq=db};this.setSecureCookie=function(db){bN=db};this.disableCookies=function(){bg=true;c1.cookie="0";if(b1){aB()}};this.deleteCookies=function(){aB()};this.setDoNotTrack=function(dc){var db=h.doNotTrack||h.msDoNotTrack;cK=dc&&(db==="yes"||db==="1");if(cK){this.disableCookies()}};this.alwaysUseSendBeacon=function(){cQ=true};this.addListener=function(dc,db){an(dc,db)};this.enableLinkTracking=function(dc){c2=true;var db=this;cc(function(){q(function(){by(dc,db)})})};this.enableJSErrorTracking=function(){if(cM){return}cM=true;var db=T.onerror;T.onerror=function(dg,de,dd,df,dc){cc(function(){var dh="JavaScript Errors"; +var di=de+":"+dd;if(df){di+=":"+df}ap(dh,di,dg)});if(db){return db(dg,de,dd,df,dc)}return false}};this.disablePerformanceTracking=function(){aY=false};this.setGenerationTimeMs=function(db){ci=parseInt(db,10)};this.enableHeartBeatTimer=function(db){db=Math.max(db,1);a1=(db||15)*1000;if(cS!==null){c8()}};this.disableHeartBeatTimer=function(){bF();if(a1||aK){if(T.removeEventListener){T.removeEventListener("focus",a6,true);T.removeEventListener("blur",av,true)}else{if(T.detachEvent){T.detachEvent("onfocus",a6);T.detachEvent("onblur",av)}}}a1=null;aK=false};this.killFrame=function(){if(T.location!==T.top.location){T.top.location=T.location}};this.redirectFile=function(db){if(T.location.protocol==="file:"){T.location=db}};this.setCountPreRendered=function(db){ba=db};this.trackGoal=function(db,de,dd,dc){cc(function(){cN(db,de,dd,dc)})};this.trackLink=function(dc,db,de,dd){cc(function(){cV(dc,db,de,dd)})};this.getNumTrackedPageViews=function(){return cn};this.trackPageView=function(db,dd,dc){b5=[]; +cE=[];if(N(b1)){cc(function(){Y(aA,bC,b1)})}else{cc(function(){cn++;bV(db,dd,dc)})}};this.trackAllContentImpressions=function(){if(N(b1)){return}cc(function(){q(function(){var db=v.findContentNodes();var dc=cu(db);c7(dc,bE)})})};this.trackVisibleContentImpressions=function(db,dc){if(N(b1)){return}if(!J(db)){db=true}if(!J(dc)){dc=750}aO(db,dc,this);cc(function(){n(function(){var dd=v.findContentNodes();var de=a5(dd);c7(de,bE)})})};this.trackContentImpression=function(dd,db,dc){if(N(b1)){return}dd=a(dd);db=a(db);dc=a(dc);if(!dd){return}db=db||"Unknown";cc(function(){var de=aC(dd,db,dc);bA(de,bE)})};this.trackContentImpressionsWithinNode=function(db){if(N(b1)||!db){return}cc(function(){if(ca){n(function(){var dc=v.findContentNodesWithinNode(db);var dd=a5(dc);c7(dd,bE)})}else{q(function(){var dc=v.findContentNodesWithinNode(db);var dd=cu(dc);c7(dd,bE)})}})};this.trackContentInteraction=function(dd,de,db,dc){if(N(b1)){return}dd=a(dd);de=a(de);db=a(db);dc=a(dc);if(!dd||!de){return}db=db||"Unknown"; +cc(function(){var df=aL(dd,de,db,dc);bA(df,bE)})};this.trackContentInteractionNode=function(dc,db){if(N(b1)||!dc){return}cc(function(){var dd=c4(dc,db);bA(dd,bE)})};this.logAllContentBlocksOnPage=function(){var dd=v.findContentNodes();var db=v.collectContent(dd);var dc=typeof console;if(dc!=="undefined"&&console&&console.log){console.log(db)}};this.trackEvent=function(dc,de,db,dd,dg,df){cc(function(){ap(dc,de,db,dd,dg,df)})};this.trackSiteSearch=function(db,dd,dc,de){cc(function(){b3(db,dd,dc,de)})};this.setEcommerceView=function(de,db,dd,dc){if(!J(dd)||!dd.length){dd=""}else{if(dd instanceof Array){dd=JSON_PIWIK.stringify(dd)}}bR[5]=["_pkc",dd];if(J(dc)&&String(dc).length){bR[2]=["_pkp",dc]}if((!J(de)||!de.length)&&(!J(db)||!db.length)){return}if(J(de)&&de.length){bR[3]=["_pks",de]}if(!J(db)||!db.length){db=""}bR[4]=["_pkn",db]};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(cU))};this.addEcommerceItem=function(df,db,dd,dc,de){if(df.length){cU[df]=[df,db,dd,dc,de]}}; +this.removeEcommerceItem=function(db){if(db.length){delete cU[db]}};this.clearEcommerceCart=function(){cU={}};this.trackEcommerceOrder=function(db,df,de,dd,dc,dg){bU(db,df,de,dd,dc,dg)};this.trackEcommerceCartUpdate=function(db){bn(db)};this.trackRequest=function(dc,de,dd,db){cc(function(){var df=co(dc,de,db);bA(df,bE,dd)})};this.disableQueueRequest=function(){bx.enabled=false};this.queueRequest=function(db){cc(function(){var dc=co(db);bx.push(dc)})};this.getRememberedConsent=function(){var db=az(a9);if(az(cG)){if(db){bT(a9,bk,cR)}return null}if(!db||db===0){return null}return db};this.hasRememberedConsent=function(){return !!this.getRememberedConsent()};this.requireConsent=function(){cv=true;bw=this.hasRememberedConsent();x++;b["CoreConsent"+x]={unload:function(){if(!bw){aB()}}}};this.setConsentGiven=function(){bw=true;bT(cG,bk,cR);var dc,db;for(dc=0;dc<cE.length;dc++){db=typeof cE[dc];if(db==="string"){bA(cE[dc],bE)}else{if(db==="object"){c7(cE[dc],bE)}}}cE=[]};this.rememberConsentGiven=function(dc){if(bg){ah("rememberConsentGiven is called but cookies are disabled, consent will not be remembered"); +return}if(dc){dc=dc*60*60*1000}this.setConsentGiven();var db=new Date().getTime();c6(a9,db,dc,bk,cR,bN)};this.forgetConsentGiven=function(){if(bg){ah("forgetConsentGiven is called but cookies are disabled, consent will not be forgotten");return}bT(a9,bk,cR);c6(cG,new Date().getTime(),0,bk,cR,bN);this.requireConsent()};this.isUserOptedOut=function(){return !bw};this.optUserOut=this.forgetConsentGiven;this.forgetUserOptOut=this.rememberConsentGiven;e.trigger("TrackerSetup",[this])}function H(){return{push:ad}}function c(aq,ap){var ar={};var an,ao;for(an=0;an<ap.length;an++){var al=ap[an];ar[al]=1;for(ao=0;ao<aq.length;ao++){if(aq[ao]&&aq[ao][0]){var am=aq[ao][0];if(al===am){ad(aq[ao]);delete aq[ao];if(ar[am]>1&&am!=="addTracker"){ah("The method "+am+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: https://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers')}ar[am]++ +}}}}return aq}var C=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","alwaysUseSendBeacon","enableLinkTracking","requireConsent","setConsentGiven"];function ab(al,an){var am=new Q(al,an);I.push(am);_paq=c(_paq,C);for(E=0;E<_paq.length;E++){if(_paq[E]){ad(_paq[E])}}_paq=new H();e.trigger("TrackerAdded",[am]);return am}ak(T,"beforeunload",af,false);Date.prototype.getTimeAlias=Date.prototype.getTime;e={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(ao,an,am,al){var ap=typeof al;if(ap==="undefined"){al=false}ak(ao,an,am,al)},onLoad:n,onReady:q,isNodeVisible:j,isOrWasNodeVisible:v.isNodeVisible},on:function(am,al){if(!y[am]){y[am]=[]}y[am].push(al)},off:function(an,am){if(!y[an]){return}var al=0;for(al;al<y[an].length;al++){if(y[an][al]===am){y[an].splice(al,1)}}},trigger:function(an,ao,am){if(!y[an]){return}var al=0;for(al; +al<y[an].length;al++){y[an][al].apply(am||T,ao)}},addPlugin:function(al,am){b[al]=am},getTracker:function(al,am){if(!J(am)){am=this.getAsyncTracker().getSiteId()}if(!J(al)){al=this.getAsyncTracker().getTrackerUrl()}return new Q(al,am)},getAsyncTrackers:function(){return I},addTracker:function(al,an){var am;if(!I.length){am=ab(al,an)}else{am=I[0].addTracker(al,an)}return am},getAsyncTracker:function(am,ap){var ao;if(I&&I.length&&I[0]){ao=I[0]}else{return ab(am,ap)}if(!ap&&!am){return ao}if((!J(ap)||null===ap)&&ao){ap=ao.getSiteId()}if((!J(am)||null===am)&&ao){am=ao.getTrackerUrl()}var an,al=0;for(al;al<I.length;al++){an=I[al];if(an&&String(an.getSiteId())===String(ap)&&an.getTrackerUrl()===am){return an}}},retryMissedPluginCalls:function(){var am=ae;ae=[];var al=0;for(al;al<am.length;al++){ad(am[al])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return e});define("matomo",[],function(){return e})}return e}())} /*!!! pluginTrackerHook */ -(function(){function b(){if("object"!==typeof _paq){return false}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(!window.Piwik.getAsyncTrackers().length){if(b()){window.Piwik.addTracker()}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&console&&console.error){console.error("_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c) -}}}}}window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true}());(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=window.Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var c,e=window.Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}}} +(function(){function b(){if("object"!==typeof _paq){return false +}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(!window.Piwik.getAsyncTrackers().length){if(b()){window.Piwik.addTracker()}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&console&&console.error){console.error("_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c)}}}}}window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true +}());(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=window.Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var c,e=window.Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}}} /*!! @license-end */;
\ No newline at end of file @@ -38,41 +38,42 @@ if(!an){an="/"}}return an},findMediaUrlInNode:function(ap){if(!ap){return}var an if(an&&aq.offsetTop){an=(aq.offsetTop+ap.height)>0}var am=ao.clientWidth;if(T.innerWidth&&am>T.innerWidth){am=T.innerWidth}var al=ao.clientHeight;if(T.innerHeight&&al>T.innerHeight){al=T.innerHeight}return((ap.bottom>0||an)&&ap.right>0&&ap.left<am&&((ap.top<al)||an))},isNodeVisible:function(am){var al=j(am);var an=this.isOrWasNodeInViewport(am);return al&&an},buildInteractionRequestParams:function(al,am,an,ao){var ap="";if(al){ap+="c_i="+t(al)}if(am){if(ap){ap+="&"}ap+="c_n="+t(am)}if(an){if(ap){ap+="&"}ap+="c_p="+t(an)}if(ao){if(ap){ap+="&"}ap+="c_t="+t(ao)}return ap},buildImpressionRequestParams:function(al,am,an){var ao="c_n="+t(al)+"&c_p="+t(am);if(an){ao+="&c_t="+t(an)}return ao},buildContentBlock:function(an){if(!an){return}var al=this.findContentName(an);var am=this.findContentPiece(an);var ao=this.findContentTarget(an);al=this.trim(al);am=this.trim(am);ao=this.trim(ao);return{name:al||"Unknown",piece:am||"Unknown",target:ao||""}},collectContent:function(ao){if(!ao||!ao.length){return[] }var an=[];var al,am;for(al=0;al<ao.length;al++){am=this.buildContentBlock(ao[al]);if(J(am)){an.push(am)}}return an},setLocation:function(al){this.location=al},getLocation:function(){var al=this.location||T.location;if(!al.origin){al.origin=al.protocol+"//"+al.hostname+(al.port?":"+al.port:"")}return al},toAbsoluteUrl:function(am){if((!am||String(am)!==am)&&am!==""){return am}if(""===am){return this.getLocation().href}if(am.search(/^\/\//)!==-1){return this.getLocation().protocol+am}if(am.search(/:\/\//)!==-1){return am}if(0===am.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+am}if(0===am.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+am}if(0===am.search("^[a-zA-Z]{2,11}:")){return am}if(am.search(/^\//)!==-1){return this.getLocation().origin+am}var al="(.*/)";var an=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(al))[0];return an+am},isUrlToCurrentDomain:function(am){var an=this.toAbsoluteUrl(am);if(!an){return false }var al=this.getLocation().origin;if(al===an){return true}if(0===String(an).indexOf(al)){if(":"===String(an).substr(al.length,1)){return false}return true}return false},setHrefAttribute:function(am,al){if(!am||!al){return}ac.setAnyAttribute(am,"href",al)},shouldIgnoreInteraction:function(an){var am=ac.hasNodeAttribute(an,this.CONTENT_IGNOREINTERACTION_ATTR);var al=ac.hasNodeCssClass(an,this.CONTENT_IGNOREINTERACTION_CLASS);return am||al}};function O(am,ap){if(ap){return ap}am=v.toAbsoluteUrl(am);if(z(am,"?")){var ao=am.indexOf("?");am=am.slice(0,ao)}if(R(am,"matomo.php")){am=g(am,"matomo.php".length)}else{if(R(am,"piwik.php")){am=g(am,"piwik.php".length)}else{if(R(am,".php")){var al=am.lastIndexOf("/");var an=1;am=am.slice(0,al+an)}}}if(R(am,"/js/")){am=g(am,"js/".length)}return am}function N(ar){var au="Piwik_Overlay";var am=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=.*)?$");var an=am.exec(G.referrer);if(an){var ap=an[1]; -if(ap!==String(ar)){return false}var aq=an[2],al=an[3],ao=an[4];if(!ao){ao=""}else{if(ao.indexOf("&segment=")===0){ao=ao.substr("&segment=".length)}}T.name=au+"###"+aq+"###"+al+"###"+ao}var at=T.name.split("###");return at.length===4&&at[0]===au}function Y(am,at,ao){var ar=T.name.split("###"),aq=ar[1],al=ar[2],ap=ar[3],an=O(am,at);o(an+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(an,ao,aq,al,ap)})}function u(){var an;try{an=T.frameElement}catch(am){return true}if(J(an)){return(an&&String(an.nodeName).toLowerCase()==="iframe")?true:false}try{return T.self!==T.top}catch(al){return true}}function Q(b8,b3){var bC=this,a9="mtm_consent",cF="mtm_consent_removed",bY=Z(G.domain,T.location.href,K()),cN=L(bY[0]),bH=p(bY[1]),bi=p(bY[2]),cL=false,cc="GET",c2=cc,aE="application/x-www-form-urlencoded; charset=UTF-8",cr=aE,aA=b8||"",bB="",cS="",b0=b3||"",bt="",bI="",a0,be="",cZ=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],au=[cN],bu=[],bF=[],a4=[],bD=500,cP=false,cB,a1,bL,bJ,al,cl=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bA=["pk_kwd","piwik_kwd","utm_term"],bf="_pk_",ar="pk_vid",aV=180,cQ,bk,bM=false,bg=false,cJ,ba,bq,cC=33955200000,cj=1800000,cY=15768000000,aY=true,ch=0,bK=false,aM=false,b5,bQ={},cg={},bh={},bo=200,cT={},c0={},b4=[],b9=false,cv=false,am=false,c1=false,cG=false,aK=false,a8=u(),cR=null,b6,aN,bv,b1=aj,bj,aH,cm=0,bp=["id","ses","cvar","ref"],cu=false,bw=null,cD=[],at=U++; -try{be=G.title}catch(cs){be=""}function c5(dg,de,dd,df,dc,db){if(bg){return}var da;if(dd){da=new Date();da.setTime(da.getTime()+dd)}G.cookie=dg+"="+t(de)+(dd?";expires="+da.toGMTString():"")+";path="+(df||"/")+(dc?";domain="+dc:"")+(db?";secure":"")}function az(dc){if(bg){return 0}var da=new RegExp("(^|;)[ ]*"+dc+"=([^;]*)"),db=da.exec(G.cookie);return db?S(db[2]):0}bw=!az(cF);function bW(da){var db;da=k(da,ar);if(bJ){db=new RegExp("#.*");return da.replace(db,"")}return da}function bP(dc,da){var dd=s(da),db;if(dd){return da}if(da.slice(0,1)==="/"){return s(dc)+"://"+d(dc)+da}dc=bW(dc);db=dc.indexOf("?");if(db>=0){dc=dc.slice(0,db)}db=dc.lastIndexOf("/");if(db!==dc.length-1){dc=dc.slice(0,db+1)}return dc+da}function cA(dc,da){var db;dc=String(dc).toLowerCase();da=String(da).toLowerCase();if(dc===da){return true}if(da.slice(0,1)==="."){if(dc===da.slice(1)){return true}db=dc.length-da.length;if((db>0)&&(dc.slice(db)===da)){return true}}return false}function cf(da){var db=document.createElement("a"); -if(da.indexOf("//")!==0&&da.indexOf("http")!==0){if(da.indexOf("*")===0){da=da.substr(1)}if(da.indexOf(".")===0){da=da.substr(1)}da="http://"+da}db.href=v.toAbsoluteUrl(da);if(db.pathname){return db.pathname}return""}function aZ(db,da){if(!ag(da,"/")){da="/"+da}if(!ag(db,"/")){db="/"+db}var dc=(da==="/"||da==="/*");if(dc){return true}if(db===da){return true}da=String(da).toLowerCase();db=String(db).toLowerCase();if(R(da,"*")){da=da.slice(0,-1);dc=(!da||da==="/");if(dc){return true}if(db===da){return true}return db.indexOf(da)===0}if(!R(db,"/")){db+="/"}if(!R(da,"/")){da+="/"}return db.indexOf(da)===0}function ao(de,dg){var db,da,dc,dd,df;for(db=0;db<au.length;db++){dd=L(au[db]);df=cf(au[db]);if(cA(de,dd)&&aZ(dg,df)){return true}}return false}function aR(dd){var db,da,dc;for(db=0;db<au.length;db++){da=L(au[db].toLowerCase());if(dd===da){return true}if(da.slice(0,1)==="."){if(dd===da.slice(1)){return true}dc=dd.length-da.length;if((dc>0)&&(dd.slice(dc)===da)){return true}}}return false}function ck(da,dc){da=da.replace("send_image=0","send_image=1"); -var db=new Image(1,1);db.onload=function(){E=0;if(typeof dc==="function"){dc({request:da,trackerUrl:aA,success:true})}};db.onerror=function(){if(typeof dc==="function"){dc({request:da,trackerUrl:aA,success:false})}};db.src=aA+(aA.indexOf("?")<0?"?":"&")+da}function aG(){return"object"===typeof h&&"function"===typeof h.sendBeacon&&"function"===typeof Blob}function a2(dd,dh){var dc=aG();if(!dc){return false}var dg={type:"application/x-www-form-urlencoded; charset=UTF-8"};var df=false;var db=aA;try{var da=new Blob([dd],dg);if(dd.length<=2000){da=new Blob([],dg);db=db+(db.indexOf("?")<0?"?":"&")+dd}df=h.sendBeacon(db,da)}catch(de){return false}if(df&&typeof dh==="function"){dh({request:dd,trackerUrl:aA,success:true,isSendBeacon:true})}return df}function cX(db,dc,da){if(!J(da)||null===da){da=true}if(m&&a2(db,dc)){return}setTimeout(function(){if(m&&a2(db,dc)){return}var df;try{var de=T.XMLHttpRequest?new T.XMLHttpRequest():T.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;de.open("POST",aA,true); -de.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dg=m&&a2(db,dc);if(!dg&&da){ck(db,dc)}else{if(typeof dc==="function"){dc({request:db,trackerUrl:aA,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dc==="function")){dc({request:db,trackerUrl:aA,success:true,xhr:this})}}};de.setRequestHeader("Content-Type",cr);de.send(db)}catch(dd){df=m&&a2(db,dc);if(!df&&da){ck(db,dc)}else{if(typeof dc==="function"){dc({request:db,trackerUrl:aA,success:false})}}}},50)}function ca(db){var da=new Date();var dc=da.getTime()+db;if(!r||dc>r){r=dc}}function ci(da){if(b6||!a1||!bw){return}b6=setTimeout(function db(){b6=null;if(!a8){a8=(!G.hasFocus||G.hasFocus())}if(!a8){ci(a1);return}if(bL()){return}var dc=new Date(),dd=a1-(dc.getTime()-cR);dd=Math.min(a1,dd);ci(dd)},da||a1)}function bE(){if(!b6){return}clearTimeout(b6);b6=null}function a6(){a8=true;if(bL()){return}ci()}function av(){bE()}function c7(){if(aK||!a1){return}aK=true;ak(T,"focus",a6);ak(T,"blur",av); -ci()}function cw(de){var db=new Date();var da=db.getTime();cR=da;if(cv&&da<cv){var dc=cv-da;setTimeout(de,dc);ca(dc+50);cv+=50;return}if(cv===false){var dd=800;cv=da+dd}de()}function bz(db,da,dc){if(!bw){cD.push(db);return}if(!cJ&&db){if(cu&&bw){db+="&consent=1"}cw(function(){if(cP&&a2(db,dc)){ca(100);return}if(c2==="POST"||String(db).length>2000){cX(db,dc)}else{ck(db,dc)}ca(da)})}if(!aK){c7()}else{ci()}}function ce(da){if(cJ){return false}return(da&&da.length)}function cW(da,de){if(!de||de>=da.length){return[da]}var db=0;var dc=da.length;var dd=[];for(db;db<dc;db+=de){dd.push(da.slice(db,db+de))}return dd}function c6(db,da){if(!ce(db)){return}if(!bw){cD.push(db);return}cw(function(){var de=cW(db,50);var dc=0,dd;for(dc;dc<de.length;dc++){dd='{"requests":["?'+de[dc].join('","?')+'"]}';cX(dd,null,false)}ca(da)})}function aP(da){return bf+da+"."+b0+"."+bj}function bZ(){if(bg){return"0"}if(!J(h.cookieEnabled)){var da=aP("testcookie");c5(da,"1");return az(da)==="1"?"1":"0"}return h.cookieEnabled?"1":"0" -}function bd(){bj=b1((cQ||cN)+(bk||"/")).slice(0,4)}function bR(){var db=aP("cvar"),da=az(db);if(da.length){da=JSON_PIWIK.parse(da);if(W(da)){return da}}return{}}function cx(){if(aM===false){aM=bR()}}function cK(){return b1((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c0)+(new Date()).getTime()+Math.random()).slice(0,16)}function aw(){return b1((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c0)).slice(0,6)}function bb(){return Math.floor((new Date()).getTime()/1000)}function aF(){var db=bb();var dc=aw();var da=String(db)+dc;return da}function cV(dc){dc=String(dc);var df=aw();var dd=df.length;var de=dc.substr(-1*dd,dd);var db=parseInt(dc.substr(0,dc.length-dd),10);if(db&&de&&de===df){var da=bb();if(aV<=0){return true}if(da>=db&&da<=(db+aV)){return true}}return false}function c8(da){if(!cG){return""}var de=f(da,ar);if(!de){return""}de=String(de);var dc=new RegExp("^[a-zA-Z0-9]+$");if(de.length===32&&dc.test(de)){var db=de.substr(16,32);if(cV(db)){var dd=de.substr(0,16); -return dd}}return""}function cH(){if(!bI){bI=c8(bH)}var dc=new Date(),da=Math.round(dc.getTime()/1000),db=aP("id"),df=az(db),de,dd;if(df){de=df.split(".");de.unshift("0");if(bI.length){de[1]=bI}return de}if(bI.length){dd=bI}else{if("0"===bZ()){dd=""}else{dd=cK()}}de=["1",dd,da,0,da,"",""];return de}function aU(){var dh=cH(),dd=dh[0],de=dh[1],db=dh[2],da=dh[3],df=dh[4],dc=dh[5];if(!J(dh[6])){dh[6]=""}var dg=dh[6];return{newVisitor:dd,uuid:de,createTs:db,visitCount:da,currentVisitTs:df,lastVisitTs:dc,lastEcommerceOrderTs:dg}}function aD(){var dd=new Date(),db=dd.getTime(),de=aU().createTs;var da=parseInt(de,10);var dc=(da*1000)+cC-db;return dc}function aI(da){if(!b0){return}var dc=new Date(),db=Math.round(dc.getTime()/1000);if(!J(da)){da=aU()}var dd=da.uuid+"."+da.createTs+"."+da.visitCount+"."+db+"."+da.lastVisitTs+"."+da.lastEcommerceOrderTs;c5(aP("id"),dd,aD(),bk,cQ,bM)}function bG(){var da=az(aP("ref"));if(da.length){try{da=JSON_PIWIK.parse(da);if(W(da)){return da}}catch(db){}}return["","",0,""] -}function bS(dc,db,da){c5(dc,"",-86400,db,da)}function br(db){var da="testvalue";c5("test",da,10000,null,db);if(az("test")===da){bS("test",null,db);return true}return false}function aB(){var db=bg;bg=false;var da,dc;for(da=0;da<bp.length;da++){dc=aP(bp[da]);if(dc!==cF&&dc!==a9&&0!==az(dc)){bS(dc,bk,cQ)}}bg=db}function bX(da){b0=da;aI()}function c9(de){if(!de||!W(de)){return}var dd=[];var dc;for(dc in de){if(Object.prototype.hasOwnProperty.call(de,dc)){dd.push(dc)}}var df={};dd.sort();var da=dd.length;var db;for(db=0;db<da;db++){df[dd[db]]=de[dd[db]]}return df}function b7(){c5(aP("ses"),"1",cj,bk,cQ,bM)}function bc(){var dd="";var db="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var dc=db.length;var da;for(da=0;da<6;da++){dd+=db.charAt(Math.floor(Math.random()*dc))}return dd}function cn(dc,dy,dz,dd){var dx,db=new Date(),dk=Math.round(db.getTime()/1000),dh,dw,de=1024,dE,dl,du=aM,df=aP("ses"),ds=aP("ref"),dp=aP("cvar"),dq=az(df),dv=bG(),dB=a0||bH,di,da;if(bg){aB()}if(cJ){return"" -}var dr=aU();if(!J(dd)){dd=""}var dn=G.characterSet||G.charset;if(!dn||dn.toLowerCase()==="utf-8"){dn=null}di=dv[0];da=dv[1];dh=dv[2];dw=dv[3];if(!dq){var dA=cj/1000;if(!dr.lastVisitTs||(dk-dr.lastVisitTs)>dA){dr.visitCount++;dr.lastVisitTs=dr.currentVisitTs}if(!bq||!di.length){for(dx in cl){if(Object.prototype.hasOwnProperty.call(cl,dx)){di=f(dB,cl[dx]);if(di.length){break}}}for(dx in bA){if(Object.prototype.hasOwnProperty.call(bA,dx)){da=f(dB,bA[dx]);if(da.length){break}}}}dE=d(bi);dl=dw.length?d(dw):"";if(dE.length&&!aR(dE)&&(!bq||!dl.length||aR(dl))){dw=bi}if(dw.length||di.length){dh=dk;dv=[di,da,dh,bW(dw.slice(0,de))];c5(ds,JSON_PIWIK.stringify(dv),cY,bk,cQ)}}dc+="&idsite="+b0+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+db.getHours()+"&m="+db.getMinutes()+"&s="+db.getSeconds()+"&url="+t(bW(dB))+(bi.length?"&urlref="+t(bW(bi)):"")+((bt&&bt.length)?"&uid="+t(bt):"")+"&_id="+dr.uuid+"&_idts="+dr.createTs+"&_idvc="+dr.visitCount+"&_idn="+dr.newVisitor+(di.length?"&_rcn="+t(di):"")+(da.length?"&_rck="+t(da):"")+"&_refts="+dh+"&_viewts="+dr.lastVisitTs+(String(dr.lastEcommerceOrderTs).length?"&_ects="+dr.lastEcommerceOrderTs:"")+(String(dw).length?"&_ref="+t(bW(dw.slice(0,de))):"")+(dn?"&cs="+t(dn):"")+"&send_image=0"; -for(dx in c0){if(Object.prototype.hasOwnProperty.call(c0,dx)){dc+="&"+dx+"="+c0[dx]}}var dD=[];if(dy){for(dx in dy){if(Object.prototype.hasOwnProperty.call(dy,dx)&&/^dimension\d+$/.test(dx)){var dg=dx.replace("dimension","");dD.push(parseInt(dg,10));dD.push(String(dg));dc+="&"+dx+"="+dy[dx];delete dy[dx]}}}if(dy&&B(dy)){dy=null}for(dx in bh){if(Object.prototype.hasOwnProperty.call(bh,dx)){var dm=(-1===M(dD,dx));if(dm){dc+="&dimension"+dx+"="+bh[dx]}}}if(dy){dc+="&data="+t(JSON_PIWIK.stringify(dy))}else{if(al){dc+="&data="+t(JSON_PIWIK.stringify(al))}}function dj(dF,dG){var dH=JSON_PIWIK.stringify(dF);if(dH.length>2){return"&"+dG+"="+t(dH)}return""}var dC=c9(bQ);var dt=c9(cg);dc+=dj(dC,"cvar");dc+=dj(dt,"e_cvar");if(aM){dc+=dj(aM,"_cvar");for(dx in du){if(Object.prototype.hasOwnProperty.call(du,dx)){if(aM[dx][0]===""||aM[dx][1]===""){delete aM[dx]}}}if(bK){c5(dp,JSON_PIWIK.stringify(aM),cj,bk,cQ)}}if(aY){if(ch){dc+=">_ms="+ch}else{if(i&&i.timing&&i.timing.requestStart&&i.timing.responseEnd){dc+=">_ms="+(i.timing.responseEnd-i.timing.requestStart) -}}}if(aH){dc+="&pv_id="+aH}dr.lastEcommerceOrderTs=J(dd)&&String(dd).length?dd:dr.lastEcommerceOrderTs;aI(dr);b7();dc+=aa(dz,{tracker:bC,request:dc});if(cS.length){dc+="&"+cS}if(A(b5)){dc=b5(dc)}return dc}bL=function a3(){var da=new Date();if(cR+a1<=da.getTime()){var db=cn("ping=1",null,"ping");bz(db,bD);return true}return false};function bl(dd,dc,di,de,da,dl){var dg="idgoal=0",dh,db=new Date(),dj=[],dk,df=String(dd).length;if(df){dg+="&ec_id="+t(dd);dh=Math.round(db.getTime()/1000)}dg+="&revenue="+dc;if(String(di).length){dg+="&ec_st="+di}if(String(de).length){dg+="&ec_tx="+de}if(String(da).length){dg+="&ec_sh="+da}if(String(dl).length){dg+="&ec_dt="+dl}if(cT){for(dk in cT){if(Object.prototype.hasOwnProperty.call(cT,dk)){if(!J(cT[dk][1])){cT[dk][1]=""}if(!J(cT[dk][2])){cT[dk][2]=""}if(!J(cT[dk][3])||String(cT[dk][3]).length===0){cT[dk][3]=0}if(!J(cT[dk][4])||String(cT[dk][4]).length===0){cT[dk][4]=1}dj.push(cT[dk])}}dg+="&ec_items="+t(JSON_PIWIK.stringify(dj))}dg=cn(dg,al,"ecommerce",dh); -bz(dg,bD);if(df){cT={}}}function bT(da,de,dd,dc,db,df){if(String(da).length&&J(de)){bl(da,de,dd,dc,db,df)}}function bn(da){if(J(da)){bl("",da,"","","","")}}function bU(db,dd,dc){aH=bc();var da=cn("action_name="+t(ai(db||be)),dd,"log");bz(da,bD,dc)}function aW(dc,db){var dd,da="(^| )(piwik[_-]"+db;if(dc){for(dd=0;dd<dc.length;dd++){da+="|"+dc[dd]}}da+=")( |$)";return new RegExp(da)}function aQ(da){return(aA&&da&&0===String(da).indexOf(aA))}function cp(de,da,df,db){if(aQ(da)){return 0}var dd=aW(bF,"download"),dc=aW(a4,"link"),dg=new RegExp("\\.("+cZ.join("|")+")([?&#]|$)","i");if(dc.test(de)){return"link"}if(db||dd.test(de)||dg.test(da)){return"download"}if(df){return 0}return"link"}function aq(db){var da;da=db.parentNode;while(da!==null&&J(da)){if(ac.isLinkElement(db)){break}db=da;da=db.parentNode}return db}function c4(df){df=aq(df);if(!ac.hasNodeAttribute(df,"href")){return}if(!J(df.href)){return}var de=ac.getAttributeValueFromNode(df,"href");if(aQ(de)){return}var db=df.pathname||cf(df.href); -var dg=df.hostname||d(df.href);var dh=dg.toLowerCase();var dc=df.href.replace(dg,dh);var dd=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!dd.test(dc)){var da=cp(df.className,dc,ao(dh,db),ac.hasNodeAttribute(df,"download"));if(da){return{type:da,href:dc}}}}function aL(da,db,dc,dd){var de=v.buildInteractionRequestParams(da,db,dc,dd);if(!de){return}return cn(de,null,"contentInteraction")}function cE(dc,dd,dh,da,db){if(!J(dc)){return}if(aQ(dc)){return dc}var df=v.toAbsoluteUrl(dc);var de="redirecturl="+t(df)+"&";de+=aL(dd,dh,da,(db||dc));var dg="&";if(aA.indexOf("?")<0){dg="?"}return aA+dg+de}function a7(da,db){if(!da||!db){return false}var dc=v.findTargetNode(da);if(v.shouldIgnoreInteraction(dc)){return false}dc=v.findTargetNodeNoDefault(da);if(dc&&!V(dc,db)){return false}return true}function co(dc,db,de){if(!dc){return}var da=v.findParentContentNode(dc);if(!da){return}if(!a7(da,dc)){return}var dd=v.buildContentBlock(da);if(!dd){return}if(!dd.target&&de){dd.target=de -}return v.buildInteractionRequestParams(db,dd.name,dd.piece,dd.target)}function aS(db){if(!b4||!b4.length){return false}var da,dc;for(da=0;da<b4.length;da++){dc=b4[da];if(dc&&dc.name===db.name&&dc.piece===db.piece&&dc.target===db.target){return true}}return false}function by(dd){if(!dd){return false}var dg=v.findTargetNode(dd);if(!dg||v.shouldIgnoreInteraction(dg)){return false}var dh=c4(dg);if(c1&&dh&&dh.type){return false}if(ac.isLinkElement(dg)&&ac.hasNodeAttributeWithValue(dg,"href")){var da=String(ac.getAttributeValueFromNode(dg,"href"));if(0===da.indexOf("#")){return false}if(aQ(da)){return true}if(!v.isUrlToCurrentDomain(da)){return false}var de=v.buildContentBlock(dd);if(!de){return}var dc=de.name;var di=de.piece;var df=de.target;if(!ac.hasNodeAttributeWithValue(dg,v.CONTENT_TARGET_ATTR)||dg.wasContentTargetAttrReplaced){dg.wasContentTargetAttrReplaced=true;df=v.toAbsoluteUrl(da);ac.setAnyAttribute(dg,v.CONTENT_TARGET_ATTR,df)}var db=cE(da,"click",dc,di,df);v.setHrefAttribute(dg,db); -return true}return false}function aJ(db){if(!db||!db.length){return}var da;for(da=0;da<db.length;da++){by(db[da])}}function aT(da){return function(db){if(!da){return}var de=v.findParentContentNode(da);var df;if(db){df=db.target||db.srcElement}if(!df){df=da}if(!a7(de,df)){return}ca(bD);if(ac.isLinkElement(da)&&ac.hasNodeAttributeWithValue(da,"href")&&ac.hasNodeAttributeWithValue(da,v.CONTENT_TARGET_ATTR)){var dc=ac.getAttributeValueFromNode(da,"href");if(!aQ(dc)&&da.wasContentTargetAttrReplaced){ac.setAnyAttribute(da,v.CONTENT_TARGET_ATTR,"")}}var dj=c4(da);if(am&&dj&&dj.type){return dj.type}if(by(de)){return"href"}var dg=v.buildContentBlock(de);if(!dg){return}var dd=dg.name;var dk=dg.piece;var di=dg.target;var dh=aL("click",dd,dk,di);bz(dh,bD);return dh}}function bV(dc){if(!dc||!dc.length){return}var da,db;for(da=0;da<dc.length;da++){db=v.findTargetNode(dc[da]);if(db&&!db.contentInteractionTrackingSetupDone){db.contentInteractionTrackingSetupDone=true;ak(db,"click",aT(db))}}}function bs(dc,dd){if(!dc||!dc.length){return[] -}var da,db;for(da=0;da<dc.length;da++){if(aS(dc[da])){dc.splice(da,1);da--}else{b4.push(dc[da])}}if(!dc||!dc.length){return[]}aJ(dd);bV(dd);var de=[];for(da=0;da<dc.length;da++){db=cn(v.buildImpressionRequestParams(dc[da].name,dc[da].piece,dc[da].target),undefined,"contentImpressions");if(db){de.push(db)}}return de}function ct(db){var da=v.collectContent(db);return bs(da,db)}function a5(db){if(!db||!db.length){return[]}var da;for(da=0;da<db.length;da++){if(!v.isNodeVisible(db[da])){db.splice(da,1);da--}}if(!db||!db.length){return[]}return ct(db)}function aC(dc,da,db){var dd=v.buildImpressionRequestParams(dc,da,db);return cn(dd,null,"contentImpression")}function c3(dd,db){if(!dd){return}var da=v.findParentContentNode(dd);var dc=v.buildContentBlock(da);if(!dc){return}if(!db){db="Unknown"}return aL(db,dc.name,dc.piece,dc.target)}function cI(db,dd,da,dc){return"e_c="+t(db)+"&e_a="+t(dd)+(J(da)?"&e_n="+t(da):"")+(J(dc)?"&e_v="+t(dc):"")}function ap(dc,de,da,dd,dg,df){if(a(String(dc)).length===0||a(String(de)).length===0){ah("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces"); -return false}var db=cn(cI(dc,de,da,dd),dg,"event");bz(db,bD,df)}function b2(da,dd,db,de){var dc=cn("search="+t(da)+(dd?"&search_cat="+t(dd):"")+(J(db)?"&search_count="+db:""),de,"sitesearch");bz(dc,bD)}function cM(da,de,dd,dc){var db=cn("idgoal="+da+(de?"&revenue="+de:""),dd,"goal");bz(db,bD,dc)}function cU(dd,da,dh,dg,dc){var df=da+"="+t(bW(dd));var db=co(dc,"click",dd);if(db){df+="&"+db}var de=cn(df,dh,"link");bz(de,bD,dg)}function bO(db,da){if(db!==""){return db+da.charAt(0).toUpperCase()+da.slice(1)}return da}function cb(df){var de,da,dd=["","webkit","ms","moz"],dc;if(!ba){for(da=0;da<dd.length;da++){dc=dd[da];if(Object.prototype.hasOwnProperty.call(G,bO(dc,"hidden"))){if(G[bO(dc,"visibilityState")]==="prerender"){de=true}break}}}if(de){ak(G,dc+"visibilitychange",function db(){G.removeEventListener(dc+"visibilitychange",db,false);df()});return}df()}function bm(){var db=aU().uuid;var da=aF();return db+da}function cd(da){if(!da){return}if(!ac.hasNodeAttribute(da,"href")){return}var db=ac.getAttributeValueFromNode(da,"href"); -if(!db||aQ(db)){return}db=k(db,ar);if(db.indexOf("?")>0){db+="&"}else{db+="?"}var dc=bm();db=F(db,ar,dc);ac.setAnyAttribute(da,"href",db)}function ax(dd){var de=ac.getAttributeValueFromNode(dd,"href");if(!de){return false}de=String(de);var db=de.indexOf("//")===0||de.indexOf("http://")===0||de.indexOf("https://")===0;if(!db){return false}var da=dd.pathname||cf(dd.href);var dc=(dd.hostname||d(dd.href)).toLowerCase();if(ao(dc,da)){if(!cA(cN,L(dc))){return true}return false}return false}function cz(da){var db=c4(da);if(db&&db.type){db.href=p(db.href);cU(db.href,db.type,undefined,null,da);return}if(cG){da=aq(da);if(ax(da)){cd(da)}}}function cq(){return G.all&&!G.addEventListener}function cO(da){var dc=da.which;var db=(typeof da.button);if(!dc&&db!=="undefined"){if(cq()){if(da.button&1){dc=1}else{if(da.button&2){dc=3}else{if(da.button&4){dc=2}}}}else{if(da.button===0||da.button==="0"){dc=1}else{if(da.button&1){dc=2}else{if(da.button&2){dc=3}}}}}return dc}function bN(da){switch(cO(da)){case 1:return"left"; -case 2:return"middle";case 3:return"right"}}function aX(da){return da.target||da.srcElement}function ay(da){return function(dd){dd=dd||T.event;var dc=bN(dd);var de=aX(dd);if(dd.type==="click"){var db=false;if(da&&dc==="middle"){db=true}if(de&&!db){cz(de)}}else{if(dd.type==="mousedown"){if(dc==="middle"&&de){aN=dc;bv=de}else{aN=bv=null}}else{if(dd.type==="mouseup"){if(dc===aN&&de===bv){cz(de)}aN=bv=null}else{if(dd.type==="contextmenu"){cz(de)}}}}}}function an(dc,db){var da=typeof db;if(da==="undefined"){db=true}ak(dc,"click",ay(db),false);if(db){ak(dc,"mouseup",ay(db),false);ak(dc,"mousedown",ay(db),false);ak(dc,"contextmenu",ay(db),false)}}function bx(dc,de){am=true;var dd,db=aW(bu,"ignore"),df=G.links,da=null,dg=null;if(df){for(dd=0;dd<df.length;dd++){da=df[dd];if(!db.test(da.className)){dg=typeof da.piwikTrackers;if("undefined"===dg){da.piwikTrackers=[]}if(-1===M(da.piwikTrackers,de)){da.piwikTrackers.push(de);an(da,dc)}}}}}function aO(db,de,df){if(b9){return true}b9=true;var dg=false; -var dd,dc;function da(){dg=true}n(function(){function dh(dj){setTimeout(function(){if(!b9){return}dg=false;df.trackVisibleContentImpressions();dh(dj)},dj)}function di(dj){setTimeout(function(){if(!b9){return}if(dg){dg=false;df.trackVisibleContentImpressions()}di(dj)},dj)}if(db){dd=["scroll","resize"];for(dc=0;dc<dd.length;dc++){if(G.addEventListener){G.addEventListener(dd[dc],da,false)}else{T.attachEvent("on"+dd[dc],da)}}di(100)}if(de&&de>0){de=parseInt(de,10);dh(de)}})}function cy(){var db,dd,de={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"};if(!((new RegExp("MSIE")).test(h.userAgent))){if(h.mimeTypes&&h.mimeTypes.length){for(db in de){if(Object.prototype.hasOwnProperty.call(de,db)){dd=h.mimeTypes[de[db]];c0[db]=(dd&&dd.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(h.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&J(h.javaEnabled)&&h.javaEnabled()){c0.java="1" -}if(A(T.GearsFactory)){c0.gears="1"}c0.cookie=bZ()}var dc=parseInt(X.width,10);var da=parseInt(X.height,10);c0.res=parseInt(dc,10)+"x"+parseInt(da,10)}cy();bd();aI();this.getVisitorId=function(){return aU().uuid};this.getVisitorInfo=function(){return cH()};this.getAttributionInfo=function(){return bG()};this.getAttributionCampaignName=function(){return bG()[0]};this.getAttributionCampaignKeyword=function(){return bG()[1]};this.getAttributionReferrerTimestamp=function(){return bG()[2]};this.getAttributionReferrerUrl=function(){return bG()[3]};this.setTrackerUrl=function(da){aA=da};this.getTrackerUrl=function(){return aA};this.getPiwikUrl=function(){return O(this.getTrackerUrl(),bB)};this.addTracker=function(da,dc){if(!dc){throw new Error("A siteId must be given to add a new tracker")}if(!J(da)||null===da){da=this.getTrackerUrl()}var db=new Q(da,dc);I.push(db);e.trigger("TrackerAdded",[this]);return db};this.getSiteId=function(){return b0};this.setSiteId=function(da){bX(da)};this.resetUserId=function(){bt="" -};this.setUserId=function(da){if(!J(da)||!da.length){return}bt=da};this.getUserId=function(){return bt};this.setCustomData=function(da,db){if(W(da)){al=da}else{if(!al){al={}}al[da]=db}};this.getCustomData=function(){return al};this.setCustomRequestProcessing=function(da){b5=da};this.appendToTrackingUrl=function(da){cS=da};this.getRequest=function(da){return cn(da)};this.addPlugin=function(da,db){b[da]=db};this.setCustomDimension=function(da,db){da=parseInt(da,10);if(da>0){if(!J(db)){db=""}if(!w(db)){db=String(db)}bh[da]=db}};this.getCustomDimension=function(da){da=parseInt(da,10);if(da>0&&Object.prototype.hasOwnProperty.call(bh,da)){return bh[da]}};this.deleteCustomDimension=function(da){da=parseInt(da,10);if(da>0){delete bh[da]}};this.setCustomVariable=function(db,da,de,dc){var dd;if(!J(dc)){dc="visit"}if(!J(da)){return}if(!J(de)){de=""}if(db>0){da=!w(da)?String(da):da;de=!w(de)?String(de):de;dd=[da.slice(0,bo),de.slice(0,bo)];if(dc==="visit"||dc===2){cx();aM[db]=dd}else{if(dc==="page"||dc===3){bQ[db]=dd -}else{if(dc==="event"){cg[db]=dd}}}}};this.getCustomVariable=function(db,dc){var da;if(!J(dc)){dc="visit"}if(dc==="page"||dc===3){da=bQ[db]}else{if(dc==="event"){da=cg[db]}else{if(dc==="visit"||dc===2){cx();da=aM[db]}}}if(!J(da)||(da&&da[0]==="")){return false}return da};this.deleteCustomVariable=function(da,db){if(this.getCustomVariable(da,db)){this.setCustomVariable(da,"","",db)}};this.deleteCustomVariables=function(da){if(da==="page"||da===3){bQ={}}else{if(da==="event"){cg={}}else{if(da==="visit"||da===2){aM={}}}}};this.storeCustomVariablesInCookie=function(){bK=true};this.setLinkTrackingTimer=function(da){bD=da};this.getLinkTrackingTimer=function(){return bD};this.setDownloadExtensions=function(da){if(w(da)){da=da.split("|")}cZ=da};this.addDownloadExtensions=function(db){var da;if(w(db)){db=db.split("|")}for(da=0;da<db.length;da++){cZ.push(db[da])}};this.removeDownloadExtensions=function(dc){var db,da=[];if(w(dc)){dc=dc.split("|")}for(db=0;db<cZ.length;db++){if(M(dc,cZ[db])===-1){da.push(cZ[db]) -}}cZ=da};this.setDomains=function(da){au=w(da)?[da]:da;var de=false,dc=0,db;for(dc;dc<au.length;dc++){db=String(au[dc]);if(cA(cN,L(db))){de=true;break}var dd=cf(db);if(dd&&dd!=="/"&&dd!=="/*"){de=true;break}}if(!de){au.push(cN)}};this.enableCrossDomainLinking=function(){cG=true};this.disableCrossDomainLinking=function(){cG=false};this.isCrossDomainLinkingEnabled=function(){return cG};this.setCrossDomainLinkingTimeout=function(da){aV=da};this.getCrossDomainLinkingUrlParameter=function(){return t(ar)+"="+t(bm())};this.setIgnoreClasses=function(da){bu=w(da)?[da]:da};this.setRequestMethod=function(da){c2=da||cc};this.setRequestContentType=function(da){cr=da||aE};this.setReferrerUrl=function(da){bi=da};this.setCustomUrl=function(da){a0=bP(bH,da)};this.getCurrentUrl=function(){return a0||bH};this.setDocumentTitle=function(da){be=da};this.setAPIUrl=function(da){bB=da};this.setDownloadClasses=function(da){bF=w(da)?[da]:da};this.setLinkClasses=function(da){a4=w(da)?[da]:da};this.setCampaignNameKey=function(da){cl=w(da)?[da]:da -};this.setCampaignKeywordKey=function(da){bA=w(da)?[da]:da};this.discardHashTag=function(da){bJ=da};this.setCookieNamePrefix=function(da){bf=da;aM=bR()};this.setCookieDomain=function(da){var db=L(da);if(br(db)){cQ=db;bd()}};this.getCookieDomain=function(){return cQ};this.hasCookies=function(){return"1"===bZ()};this.setSessionCookie=function(dc,db,da){if(!dc){throw new Error("Missing cookie name")}if(!J(da)){da=cj}bp.push(dc);c5(aP(dc),db,da,bk,cQ)};this.getCookie=function(db){var da=az(aP(db));if(da===0){return null}return da};this.setCookiePath=function(da){bk=da;bd()};this.getCookiePath=function(da){return bk};this.setVisitorCookieTimeout=function(da){cC=da*1000};this.setSessionCookieTimeout=function(da){cj=da*1000};this.getSessionCookieTimeout=function(){return cj};this.setReferralCookieTimeout=function(da){cY=da*1000};this.setConversionAttributionFirstReferrer=function(da){bq=da};this.setSecureCookie=function(da){bM=da};this.disableCookies=function(){bg=true;c0.cookie="0";if(b0){aB() -}};this.deleteCookies=function(){aB()};this.setDoNotTrack=function(db){var da=h.doNotTrack||h.msDoNotTrack;cJ=db&&(da==="yes"||da==="1");if(cJ){this.disableCookies()}};this.alwaysUseSendBeacon=function(){cP=true};this.addListener=function(db,da){an(db,da)};this.enableLinkTracking=function(db){c1=true;var da=this;cb(function(){q(function(){bx(db,da)})})};this.enableJSErrorTracking=function(){if(cL){return}cL=true;var da=T.onerror;T.onerror=function(df,dd,dc,de,db){cb(function(){var dg="JavaScript Errors";var dh=dd+":"+dc;if(de){dh+=":"+de}ap(dg,dh,df)});if(da){return da(df,dd,dc,de,db)}return false}};this.disablePerformanceTracking=function(){aY=false};this.setGenerationTimeMs=function(da){ch=parseInt(da,10)};this.enableHeartBeatTimer=function(da){da=Math.max(da,1);a1=(da||15)*1000;if(cR!==null){c7()}};this.disableHeartBeatTimer=function(){bE();if(a1||aK){if(T.removeEventListener){T.removeEventListener("focus",a6,true);T.removeEventListener("blur",av,true)}else{if(T.detachEvent){T.detachEvent("onfocus",a6); -T.detachEvent("onblur",av)}}}a1=null;aK=false};this.killFrame=function(){if(T.location!==T.top.location){T.top.location=T.location}};this.redirectFile=function(da){if(T.location.protocol==="file:"){T.location=da}};this.setCountPreRendered=function(da){ba=da};this.trackGoal=function(da,dd,dc,db){cb(function(){cM(da,dd,dc,db)})};this.trackLink=function(db,da,dd,dc){cb(function(){cU(db,da,dd,dc)})};this.getNumTrackedPageViews=function(){return cm};this.trackPageView=function(da,dc,db){b4=[];cD=[];if(N(b0)){cb(function(){Y(aA,bB,b0)})}else{cb(function(){cm++;bU(da,dc,db)})}};this.trackAllContentImpressions=function(){if(N(b0)){return}cb(function(){q(function(){var da=v.findContentNodes();var db=ct(da);c6(db,bD)})})};this.trackVisibleContentImpressions=function(da,db){if(N(b0)){return}if(!J(da)){da=true}if(!J(db)){db=750}aO(da,db,this);cb(function(){n(function(){var dc=v.findContentNodes();var dd=a5(dc);c6(dd,bD)})})};this.trackContentImpression=function(dc,da,db){if(N(b0)){return}dc=a(dc);da=a(da); -db=a(db);if(!dc){return}da=da||"Unknown";cb(function(){var dd=aC(dc,da,db);bz(dd,bD)})};this.trackContentImpressionsWithinNode=function(da){if(N(b0)||!da){return}cb(function(){if(b9){n(function(){var db=v.findContentNodesWithinNode(da);var dc=a5(db);c6(dc,bD)})}else{q(function(){var db=v.findContentNodesWithinNode(da);var dc=ct(db);c6(dc,bD)})}})};this.trackContentInteraction=function(dc,dd,da,db){if(N(b0)){return}dc=a(dc);dd=a(dd);da=a(da);db=a(db);if(!dc||!dd){return}da=da||"Unknown";cb(function(){var de=aL(dc,dd,da,db);bz(de,bD)})};this.trackContentInteractionNode=function(db,da){if(N(b0)||!db){return}cb(function(){var dc=c3(db,da);bz(dc,bD)})};this.logAllContentBlocksOnPage=function(){var dc=v.findContentNodes();var da=v.collectContent(dc);var db=typeof console;if(db!=="undefined"&&console&&console.log){console.log(da)}};this.trackEvent=function(db,dd,da,dc,df,de){cb(function(){ap(db,dd,da,dc,df,de)})};this.trackSiteSearch=function(da,dc,db,dd){cb(function(){b2(da,dc,db,dd)})};this.setEcommerceView=function(dd,da,dc,db){if(!J(dc)||!dc.length){dc="" -}else{if(dc instanceof Array){dc=JSON_PIWIK.stringify(dc)}}bQ[5]=["_pkc",dc];if(J(db)&&String(db).length){bQ[2]=["_pkp",db]}if((!J(dd)||!dd.length)&&(!J(da)||!da.length)){return}if(J(dd)&&dd.length){bQ[3]=["_pks",dd]}if(!J(da)||!da.length){da=""}bQ[4]=["_pkn",da]};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(cT))};this.addEcommerceItem=function(de,da,dc,db,dd){if(de.length){cT[de]=[de,da,dc,db,dd]}};this.removeEcommerceItem=function(da){if(da.length){delete cT[da]}};this.clearEcommerceCart=function(){cT={}};this.trackEcommerceOrder=function(da,de,dd,dc,db,df){bT(da,de,dd,dc,db,df)};this.trackEcommerceCartUpdate=function(da){bn(da)};this.trackRequest=function(db,dd,dc,da){cb(function(){var de=cn(db,dd,da);bz(de,bD,dc)})};this.queueRequest=function(da){cb(function(){var db=cn(da);requestQueue.push(db)})};this.getRememberedConsent=function(){var da=az(a9);if(az(cF)){if(da){bS(a9,bk,cQ)}return null}if(!da||da===0){return null}return da};this.hasRememberedConsent=function(){return !!this.getRememberedConsent() -};this.requireConsent=function(){cu=true;bw=this.hasRememberedConsent();x++;b["CoreConsent"+x]={unload:function(){if(!bw){aB()}}}};this.setConsentGiven=function(){bw=true;bS(cF,bk,cQ);var db,da;for(db=0;db<cD.length;db++){da=typeof cD[db];if(da==="string"){bz(cD[db],bD)}else{if(da==="object"){c6(cD[db],bD)}}}cD=[]};this.rememberConsentGiven=function(db){if(bg){ah("rememberConsentGiven is called but cookies are disabled, consent will not be remembered");return}if(db){db=db*60*60*1000}this.setConsentGiven();var da=new Date().getTime();c5(a9,da,db,bk,cQ,bM)};this.forgetConsentGiven=function(){if(bg){ah("forgetConsentGiven is called but cookies are disabled, consent will not be forgotten");return}bS(a9,bk,cQ);c5(cF,new Date().getTime(),0,bk,cQ,bM);this.requireConsent()};this.isUserOptedOut=function(){return !bw};this.optUserOut=this.forgetConsentGiven;this.forgetUserOptOut=this.rememberConsentGiven;e.trigger("TrackerSetup",[this])}function H(){return{push:ad}}function c(aq,ap){var ar={};var an,ao; -for(an=0;an<ap.length;an++){var al=ap[an];ar[al]=1;for(ao=0;ao<aq.length;ao++){if(aq[ao]&&aq[ao][0]){var am=aq[ao][0];if(al===am){ad(aq[ao]);delete aq[ao];if(ar[am]>1&&am!=="addTracker"){ah("The method "+am+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: https://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers')}ar[am]++}}}}return aq}var C=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","alwaysUseSendBeacon","enableLinkTracking","requireConsent","setConsentGiven"];function ab(al,an){var am=new Q(al,an);I.push(am);_paq=c(_paq,C);for(E=0;E<_paq.length;E++){if(_paq[E]){ad(_paq[E])}}_paq=new H();e.trigger("TrackerAdded",[am]);return am}ak(T,"beforeunload",af,false);Date.prototype.getTimeAlias=Date.prototype.getTime; -e={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(ao,an,am,al){var ap=typeof al;if(ap==="undefined"){al=false}ak(ao,an,am,al)},onLoad:n,onReady:q,isNodeVisible:j,isOrWasNodeVisible:v.isNodeVisible},on:function(am,al){if(!y[am]){y[am]=[]}y[am].push(al)},off:function(an,am){if(!y[an]){return}var al=0;for(al;al<y[an].length;al++){if(y[an][al]===am){y[an].splice(al,1)}}},trigger:function(an,ao,am){if(!y[an]){return}var al=0;for(al;al<y[an].length;al++){y[an][al].apply(am||T,ao)}},addPlugin:function(al,am){b[al]=am},getTracker:function(al,am){if(!J(am)){am=this.getAsyncTracker().getSiteId()}if(!J(al)){al=this.getAsyncTracker().getTrackerUrl()}return new Q(al,am)},getAsyncTrackers:function(){return I},addTracker:function(al,an){var am;if(!I.length){am=ab(al,an)}else{am=I[0].addTracker(al,an)}return am},getAsyncTracker:function(am,ap){var ao;if(I&&I.length&&I[0]){ao=I[0]}else{return ab(am,ap)}if(!ap&&!am){return ao}if((!J(ap)||null===ap)&&ao){ap=ao.getSiteId()}if((!J(am)||null===am)&&ao){am=ao.getTrackerUrl() -}var an,al=0;for(al;al<I.length;al++){an=I[al];if(an&&String(an.getSiteId())===String(ap)&&an.getTrackerUrl()===am){return an}}},retryMissedPluginCalls:function(){var am=ae;ae=[];var al=0;for(al;al<am.length;al++){ad(am[al])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return e});define("matomo",[],function(){return e})}return e}())} +if(ap!==String(ar)){return false}var aq=an[2],al=an[3],ao=an[4];if(!ao){ao=""}else{if(ao.indexOf("&segment=")===0){ao=ao.substr("&segment=".length)}}T.name=au+"###"+aq+"###"+al+"###"+ao}var at=T.name.split("###");return at.length===4&&at[0]===au}function Y(am,at,ao){var ar=T.name.split("###"),aq=ar[1],al=ar[2],ap=ar[3],an=O(am,at);o(an+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(an,ao,aq,al,ap)})}function u(){var an;try{an=T.frameElement}catch(am){return true}if(J(an)){return(an&&String(an.nodeName).toLowerCase()==="iframe")?true:false}try{return T.self!==T.top}catch(al){return true}}function Q(b9,b4){var bD=this,a9="mtm_consent",cG="mtm_consent_removed",bZ=Z(G.domain,T.location.href,K()),cO=L(bZ[0]),bI=p(bZ[1]),bi=p(bZ[2]),cM=false,cd="GET",c3=cd,aE="application/x-www-form-urlencoded; charset=UTF-8",cs=aE,aA=b9||"",bC="",cT="",b1=b4||"",bt="",bJ="",a0,be="",c0=["7z","aac","apk","arc","arj","asf","asx","avi","azw3","bin","csv","deb","dmg","doc","docx","epub","exe","flv","gif","gz","gzip","hqx","ibooks","jar","jpg","jpeg","js","mobi","mp2","mp3","mp4","mpg","mpeg","mov","movie","msi","msp","odb","odf","odg","ods","odt","ogg","ogv","pdf","phps","png","ppt","pptx","qt","qtm","ra","ram","rar","rpm","sea","sit","tar","tbz","tbz2","bz","bz2","tgz","torrent","txt","wav","wma","wmv","wpd","xls","xlsx","xml","z","zip"],au=[cO],bu=[],bG=[],a4=[],bE=500,cQ=false,cC,a1,bM,bK,al,cm=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bB=["pk_kwd","piwik_kwd","utm_term"],bf="_pk_",ar="pk_vid",aV=180,cR,bk,bN=false,bg=false,cK,ba,bq,cD=33955200000,ck=1800000,cZ=15768000000,aY=true,ci=0,bL=false,aM=false,b6,bR={},ch={},bh={},bo=200,cU={},c1={},b5=[],ca=false,cw=false,am=false,c2=false,cH=false,aK=false,a8=u(),cS=null,b7,aN,bv,b2=aj,bj,aH,cn=0,bp=["id","ses","cvar","ref"],cv=false,bw=null,cE=[],at=U++; +try{be=G.title}catch(ct){be=""}function c6(dh,df,de,dg,dd,dc){if(bg){return}var db;if(de){db=new Date();db.setTime(db.getTime()+de)}G.cookie=dh+"="+t(df)+(de?";expires="+db.toGMTString():"")+";path="+(dg||"/")+(dd?";domain="+dd:"")+(dc?";secure":"")}function az(dd){if(bg){return 0}var db=new RegExp("(^|;)[ ]*"+dd+"=([^;]*)"),dc=db.exec(G.cookie);return dc?S(dc[2]):0}bw=!az(cG);function bX(db){var dc;db=k(db,ar);if(bK){dc=new RegExp("#.*");return db.replace(dc,"")}return db}function bQ(dd,db){var de=s(db),dc;if(de){return db}if(db.slice(0,1)==="/"){return s(dd)+"://"+d(dd)+db}dd=bX(dd);dc=dd.indexOf("?");if(dc>=0){dd=dd.slice(0,dc)}dc=dd.lastIndexOf("/");if(dc!==dd.length-1){dd=dd.slice(0,dc+1)}return dd+db}function cB(dd,db){var dc;dd=String(dd).toLowerCase();db=String(db).toLowerCase();if(dd===db){return true}if(db.slice(0,1)==="."){if(dd===db.slice(1)){return true}dc=dd.length-db.length;if((dc>0)&&(dd.slice(dc)===db)){return true}}return false}function cg(db){var dc=document.createElement("a"); +if(db.indexOf("//")!==0&&db.indexOf("http")!==0){if(db.indexOf("*")===0){db=db.substr(1)}if(db.indexOf(".")===0){db=db.substr(1)}db="http://"+db}dc.href=v.toAbsoluteUrl(db);if(dc.pathname){return dc.pathname}return""}function aZ(dc,db){if(!ag(db,"/")){db="/"+db}if(!ag(dc,"/")){dc="/"+dc}var dd=(db==="/"||db==="/*");if(dd){return true}if(dc===db){return true}db=String(db).toLowerCase();dc=String(dc).toLowerCase();if(R(db,"*")){db=db.slice(0,-1);dd=(!db||db==="/");if(dd){return true}if(dc===db){return true}return dc.indexOf(db)===0}if(!R(dc,"/")){dc+="/"}if(!R(db,"/")){db+="/"}return dc.indexOf(db)===0}function ao(df,dh){var dc,db,dd,de,dg;for(dc=0;dc<au.length;dc++){de=L(au[dc]);dg=cg(au[dc]);if(cB(df,de)&&aZ(dh,dg)){return true}}return false}function aR(de){var dc,db,dd;for(dc=0;dc<au.length;dc++){db=L(au[dc].toLowerCase());if(de===db){return true}if(db.slice(0,1)==="."){if(de===db.slice(1)){return true}dd=de.length-db.length;if((dd>0)&&(de.slice(dd)===db)){return true}}}return false}function cl(db,dd){db=db.replace("send_image=0","send_image=1"); +var dc=new Image(1,1);dc.onload=function(){E=0;if(typeof dd==="function"){dd({request:db,trackerUrl:aA,success:true})}};dc.onerror=function(){if(typeof dd==="function"){dd({request:db,trackerUrl:aA,success:false})}};dc.src=aA+(aA.indexOf("?")<0?"?":"&")+db}function aG(){return"object"===typeof h&&"function"===typeof h.sendBeacon&&"function"===typeof Blob}function a2(de,di){var dd=aG();if(!dd){return false}var dh={type:"application/x-www-form-urlencoded; charset=UTF-8"};var dg=false;var dc=aA;try{var db=new Blob([de],dh);if(de.length<=2000){db=new Blob([],dh);dc=dc+(dc.indexOf("?")<0?"?":"&")+de}dg=h.sendBeacon(dc,db)}catch(df){return false}if(dg&&typeof di==="function"){di({request:de,trackerUrl:aA,success:true,isSendBeacon:true})}return dg}function cY(dc,dd,db){if(!J(db)||null===db){db=true}if(m&&a2(dc,dd)){return}setTimeout(function(){if(m&&a2(dc,dd)){return}var dg;try{var df=T.XMLHttpRequest?new T.XMLHttpRequest():T.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;df.open("POST",aA,true); +df.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)){var dh=m&&a2(dc,dd);if(!dh&&db){cl(dc,dd)}else{if(typeof dd==="function"){dd({request:dc,trackerUrl:aA,success:false,xhr:this})}}}else{if(this.readyState===4&&(typeof dd==="function")){dd({request:dc,trackerUrl:aA,success:true,xhr:this})}}};df.setRequestHeader("Content-Type",cs);df.send(dc)}catch(de){dg=m&&a2(dc,dd);if(!dg&&db){cl(dc,dd)}else{if(typeof dd==="function"){dd({request:dc,trackerUrl:aA,success:false})}}}},50)}function cb(dc){var db=new Date();var dd=db.getTime()+dc;if(!r||dd>r){r=dd}}function cj(db){if(b7||!a1||!bw){return}b7=setTimeout(function dc(){b7=null;if(!a8){a8=(!G.hasFocus||G.hasFocus())}if(!a8){cj(a1);return}if(bM()){return}var dd=new Date(),de=a1-(dd.getTime()-cS);de=Math.min(a1,de);cj(de)},db||a1)}function bF(){if(!b7){return}clearTimeout(b7);b7=null}function a6(){a8=true;if(bM()){return}cj()}function av(){bF()}function c8(){if(aK||!a1){return}aK=true;ak(T,"focus",a6);ak(T,"blur",av); +cj()}function cx(df){var dc=new Date();var db=dc.getTime();cS=db;if(cw&&db<cw){var dd=cw-db;setTimeout(df,dd);cb(dd+50);cw+=50;return}if(cw===false){var de=800;cw=db+de}df()}function bA(dc,db,dd){if(!bw){cE.push(dc);return}if(!cK&&dc){if(cv&&bw){dc+="&consent=1"}cx(function(){if(cQ&&a2(dc,dd)){cb(100);return}if(c3==="POST"||String(dc).length>2000){cY(dc,dd)}else{cl(dc,dd)}cb(db)})}if(!aK){c8()}else{cj()}}function cf(db){if(cK){return false}return(db&&db.length)}function cX(db,df){if(!df||df>=db.length){return[db]}var dc=0;var dd=db.length;var de=[];for(dc;dc<dd;dc+=df){de.push(db.slice(dc,dc+df))}return de}function c7(dc,db){if(!cf(dc)){return}if(!bw){cE.push(dc);return}cx(function(){var df=cX(dc,50);var dd=0,de;for(dd;dd<df.length;dd++){de='{"requests":["?'+df[dd].join('","?')+'"]}';cY(de,null,false)}cb(db)})}function aP(db){return bf+db+"."+b1+"."+bj}function b0(){if(bg){return"0"}if(!J(h.cookieEnabled)){var db=aP("testcookie");c6(db,"1");return az(db)==="1"?"1":"0"}return h.cookieEnabled?"1":"0" +}function bd(){bj=b2((cR||cO)+(bk||"/")).slice(0,4)}function bS(){var dc=aP("cvar"),db=az(dc);if(db.length){db=JSON_PIWIK.parse(db);if(W(db)){return db}}return{}}function cy(){if(aM===false){aM=bS()}}function cL(){return b2((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c1)+(new Date()).getTime()+Math.random()).slice(0,16)}function aw(){return b2((h.userAgent||"")+(h.platform||"")+JSON_PIWIK.stringify(c1)).slice(0,6)}function bb(){return Math.floor((new Date()).getTime()/1000)}function aF(){var dc=bb();var dd=aw();var db=String(dc)+dd;return db}function cW(dd){dd=String(dd);var dg=aw();var de=dg.length;var df=dd.substr(-1*de,de);var dc=parseInt(dd.substr(0,dd.length-de),10);if(dc&&df&&df===dg){var db=bb();if(aV<=0){return true}if(db>=dc&&db<=(dc+aV)){return true}}return false}function c9(db){if(!cH){return""}var df=f(db,ar);if(!df){return""}df=String(df);var dd=new RegExp("^[a-zA-Z0-9]+$");if(df.length===32&&dd.test(df)){var dc=df.substr(16,32);if(cW(dc)){var de=df.substr(0,16); +return de}}return""}function cI(){if(!bJ){bJ=c9(bI)}var dd=new Date(),db=Math.round(dd.getTime()/1000),dc=aP("id"),dg=az(dc),df,de;if(dg){df=dg.split(".");df.unshift("0");if(bJ.length){df[1]=bJ}return df}if(bJ.length){de=bJ}else{if("0"===b0()){de=""}else{de=cL()}}df=["1",de,db,0,db,"",""];return df}function aU(){var di=cI(),de=di[0],df=di[1],dc=di[2],db=di[3],dg=di[4],dd=di[5];if(!J(di[6])){di[6]=""}var dh=di[6];return{newVisitor:de,uuid:df,createTs:dc,visitCount:db,currentVisitTs:dg,lastVisitTs:dd,lastEcommerceOrderTs:dh}}function aD(){var de=new Date(),dc=de.getTime(),df=aU().createTs;var db=parseInt(df,10);var dd=(db*1000)+cD-dc;return dd}function aI(db){if(!b1){return}var dd=new Date(),dc=Math.round(dd.getTime()/1000);if(!J(db)){db=aU()}var de=db.uuid+"."+db.createTs+"."+db.visitCount+"."+dc+"."+db.lastVisitTs+"."+db.lastEcommerceOrderTs;c6(aP("id"),de,aD(),bk,cR,bN)}function bH(){var db=az(aP("ref"));if(db.length){try{db=JSON_PIWIK.parse(db);if(W(db)){return db}}catch(dc){}}return["","",0,""] +}function bT(dd,dc,db){c6(dd,"",-86400,dc,db)}function br(dc){var db="testvalue";c6("test",db,10000,null,dc);if(az("test")===db){bT("test",null,dc);return true}return false}function aB(){var dc=bg;bg=false;var db,dd;for(db=0;db<bp.length;db++){dd=aP(bp[db]);if(dd!==cG&&dd!==a9&&0!==az(dd)){bT(dd,bk,cR)}}bg=dc}function bY(db){b1=db;aI()}function da(df){if(!df||!W(df)){return}var de=[];var dd;for(dd in df){if(Object.prototype.hasOwnProperty.call(df,dd)){de.push(dd)}}var dg={};de.sort();var db=de.length;var dc;for(dc=0;dc<db;dc++){dg[de[dc]]=df[de[dc]]}return dg}function b8(){c6(aP("ses"),"1",ck,bk,cR,bN)}function bc(){var de="";var dc="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";var dd=dc.length;var db;for(db=0;db<6;db++){de+=dc.charAt(Math.floor(Math.random()*dd))}return de}function co(dd,dz,dA,de){var dy,dc=new Date(),dl=Math.round(dc.getTime()/1000),di,dx,df=1024,dF,dm,dv=aM,dg=aP("ses"),dt=aP("ref"),dq=aP("cvar"),dr=az(dg),dw=bH(),dC=a0||bI,dj,db;if(bg){aB()}if(cK){return"" +}var ds=aU();if(!J(de)){de=""}var dp=G.characterSet||G.charset;if(!dp||dp.toLowerCase()==="utf-8"){dp=null}dj=dw[0];db=dw[1];di=dw[2];dx=dw[3];if(!dr){var dB=ck/1000;if(!ds.lastVisitTs||(dl-ds.lastVisitTs)>dB){ds.visitCount++;ds.lastVisitTs=ds.currentVisitTs}if(!bq||!dj.length){for(dy in cm){if(Object.prototype.hasOwnProperty.call(cm,dy)){dj=f(dC,cm[dy]);if(dj.length){break}}}for(dy in bB){if(Object.prototype.hasOwnProperty.call(bB,dy)){db=f(dC,bB[dy]);if(db.length){break}}}}dF=d(bi);dm=dx.length?d(dx):"";if(dF.length&&!aR(dF)&&(!bq||!dm.length||aR(dm))){dx=bi}if(dx.length||dj.length){di=dl;dw=[dj,db,di,bX(dx.slice(0,df))];c6(dt,JSON_PIWIK.stringify(dw),cZ,bk,cR)}}dd+="&idsite="+b1+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+dc.getHours()+"&m="+dc.getMinutes()+"&s="+dc.getSeconds()+"&url="+t(bX(dC))+(bi.length?"&urlref="+t(bX(bi)):"")+((bt&&bt.length)?"&uid="+t(bt):"")+"&_id="+ds.uuid+"&_idts="+ds.createTs+"&_idvc="+ds.visitCount+"&_idn="+ds.newVisitor+(dj.length?"&_rcn="+t(dj):"")+(db.length?"&_rck="+t(db):"")+"&_refts="+di+"&_viewts="+ds.lastVisitTs+(String(ds.lastEcommerceOrderTs).length?"&_ects="+ds.lastEcommerceOrderTs:"")+(String(dx).length?"&_ref="+t(bX(dx.slice(0,df))):"")+(dp?"&cs="+t(dp):"")+"&send_image=0"; +for(dy in c1){if(Object.prototype.hasOwnProperty.call(c1,dy)){dd+="&"+dy+"="+c1[dy]}}var dE=[];if(dz){for(dy in dz){if(Object.prototype.hasOwnProperty.call(dz,dy)&&/^dimension\d+$/.test(dy)){var dh=dy.replace("dimension","");dE.push(parseInt(dh,10));dE.push(String(dh));dd+="&"+dy+"="+dz[dy];delete dz[dy]}}}if(dz&&B(dz)){dz=null}for(dy in bh){if(Object.prototype.hasOwnProperty.call(bh,dy)){var dn=(-1===M(dE,dy));if(dn){dd+="&dimension"+dy+"="+bh[dy]}}}if(dz){dd+="&data="+t(JSON_PIWIK.stringify(dz))}else{if(al){dd+="&data="+t(JSON_PIWIK.stringify(al))}}function dk(dG,dH){var dI=JSON_PIWIK.stringify(dG);if(dI.length>2){return"&"+dH+"="+t(dI)}return""}var dD=da(bR);var du=da(ch);dd+=dk(dD,"cvar");dd+=dk(du,"e_cvar");if(aM){dd+=dk(aM,"_cvar");for(dy in dv){if(Object.prototype.hasOwnProperty.call(dv,dy)){if(aM[dy][0]===""||aM[dy][1]===""){delete aM[dy]}}}if(bL){c6(dq,JSON_PIWIK.stringify(aM),ck,bk,cR)}}if(aY){if(ci){dd+=">_ms="+ci}else{if(i&&i.timing&&i.timing.requestStart&&i.timing.responseEnd){dd+=">_ms="+(i.timing.responseEnd-i.timing.requestStart) +}}}if(aH){dd+="&pv_id="+aH}ds.lastEcommerceOrderTs=J(de)&&String(de).length?de:ds.lastEcommerceOrderTs;aI(ds);b8();dd+=aa(dA,{tracker:bD,request:dd});if(cT.length){dd+="&"+cT}if(A(b6)){dd=b6(dd)}return dd}bM=function a3(){var db=new Date();if(cS+a1<=db.getTime()){var dc=co("ping=1",null,"ping");bA(dc,bE);return true}return false};function bl(de,dd,dj,df,db,dm){var dh="idgoal=0",di,dc=new Date(),dk=[],dl,dg=String(de).length;if(dg){dh+="&ec_id="+t(de);di=Math.round(dc.getTime()/1000)}dh+="&revenue="+dd;if(String(dj).length){dh+="&ec_st="+dj}if(String(df).length){dh+="&ec_tx="+df}if(String(db).length){dh+="&ec_sh="+db}if(String(dm).length){dh+="&ec_dt="+dm}if(cU){for(dl in cU){if(Object.prototype.hasOwnProperty.call(cU,dl)){if(!J(cU[dl][1])){cU[dl][1]=""}if(!J(cU[dl][2])){cU[dl][2]=""}if(!J(cU[dl][3])||String(cU[dl][3]).length===0){cU[dl][3]=0}if(!J(cU[dl][4])||String(cU[dl][4]).length===0){cU[dl][4]=1}dk.push(cU[dl])}}dh+="&ec_items="+t(JSON_PIWIK.stringify(dk))}dh=co(dh,al,"ecommerce",di); +bA(dh,bE);if(dg){cU={}}}function bU(db,df,de,dd,dc,dg){if(String(db).length&&J(df)){bl(db,df,de,dd,dc,dg)}}function bn(db){if(J(db)){bl("",db,"","","","")}}function bV(dc,de,dd){aH=bc();var db=co("action_name="+t(ai(dc||be)),de,"log");bA(db,bE,dd)}function aW(dd,dc){var de,db="(^| )(piwik[_-]"+dc;if(dd){for(de=0;de<dd.length;de++){db+="|"+dd[de]}}db+=")( |$)";return new RegExp(db)}function aQ(db){return(aA&&db&&0===String(db).indexOf(aA))}function cq(df,db,dg,dc){if(aQ(db)){return 0}var de=aW(bG,"download"),dd=aW(a4,"link"),dh=new RegExp("\\.("+c0.join("|")+")([?&#]|$)","i");if(dd.test(df)){return"link"}if(dc||de.test(df)||dh.test(db)){return"download"}if(dg){return 0}return"link"}function aq(dc){var db;db=dc.parentNode;while(db!==null&&J(db)){if(ac.isLinkElement(dc)){break}dc=db;db=dc.parentNode}return dc}function c5(dg){dg=aq(dg);if(!ac.hasNodeAttribute(dg,"href")){return}if(!J(dg.href)){return}var df=ac.getAttributeValueFromNode(dg,"href");if(aQ(df)){return}var dc=dg.pathname||cg(dg.href); +var dh=dg.hostname||d(dg.href);var di=dh.toLowerCase();var dd=dg.href.replace(dh,di);var de=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");if(!de.test(dd)){var db=cq(dg.className,dd,ao(di,dc),ac.hasNodeAttribute(dg,"download"));if(db){return{type:db,href:dd}}}}function aL(db,dc,dd,de){var df=v.buildInteractionRequestParams(db,dc,dd,de);if(!df){return}return co(df,null,"contentInteraction")}function cF(dd,de,di,db,dc){if(!J(dd)){return}if(aQ(dd)){return dd}var dg=v.toAbsoluteUrl(dd);var df="redirecturl="+t(dg)+"&";df+=aL(de,di,db,(dc||dd));var dh="&";if(aA.indexOf("?")<0){dh="?"}return aA+dh+df}function a7(db,dc){if(!db||!dc){return false}var dd=v.findTargetNode(db);if(v.shouldIgnoreInteraction(dd)){return false}dd=v.findTargetNodeNoDefault(db);if(dd&&!V(dd,dc)){return false}return true}function cp(dd,dc,df){if(!dd){return}var db=v.findParentContentNode(dd);if(!db){return}if(!a7(db,dd)){return}var de=v.buildContentBlock(db);if(!de){return}if(!de.target&&df){de.target=df +}return v.buildInteractionRequestParams(dc,de.name,de.piece,de.target)}function aS(dc){if(!b5||!b5.length){return false}var db,dd;for(db=0;db<b5.length;db++){dd=b5[db];if(dd&&dd.name===dc.name&&dd.piece===dc.piece&&dd.target===dc.target){return true}}return false}function bz(de){if(!de){return false}var dh=v.findTargetNode(de);if(!dh||v.shouldIgnoreInteraction(dh)){return false}var di=c5(dh);if(c2&&di&&di.type){return false}if(ac.isLinkElement(dh)&&ac.hasNodeAttributeWithValue(dh,"href")){var db=String(ac.getAttributeValueFromNode(dh,"href"));if(0===db.indexOf("#")){return false}if(aQ(db)){return true}if(!v.isUrlToCurrentDomain(db)){return false}var df=v.buildContentBlock(de);if(!df){return}var dd=df.name;var dj=df.piece;var dg=df.target;if(!ac.hasNodeAttributeWithValue(dh,v.CONTENT_TARGET_ATTR)||dh.wasContentTargetAttrReplaced){dh.wasContentTargetAttrReplaced=true;dg=v.toAbsoluteUrl(db);ac.setAnyAttribute(dh,v.CONTENT_TARGET_ATTR,dg)}var dc=cF(db,"click",dd,dj,dg);v.setHrefAttribute(dh,dc); +return true}return false}function aJ(dc){if(!dc||!dc.length){return}var db;for(db=0;db<dc.length;db++){bz(dc[db])}}function aT(db){return function(dc){if(!db){return}var df=v.findParentContentNode(db);var dg;if(dc){dg=dc.target||dc.srcElement}if(!dg){dg=db}if(!a7(df,dg)){return}cb(bE);if(ac.isLinkElement(db)&&ac.hasNodeAttributeWithValue(db,"href")&&ac.hasNodeAttributeWithValue(db,v.CONTENT_TARGET_ATTR)){var dd=ac.getAttributeValueFromNode(db,"href");if(!aQ(dd)&&db.wasContentTargetAttrReplaced){ac.setAnyAttribute(db,v.CONTENT_TARGET_ATTR,"")}}var dk=c5(db);if(am&&dk&&dk.type){return dk.type}if(bz(df)){return"href"}var dh=v.buildContentBlock(df);if(!dh){return}var de=dh.name;var dl=dh.piece;var dj=dh.target;var di=aL("click",de,dl,dj);bA(di,bE);return di}}function bW(dd){if(!dd||!dd.length){return}var db,dc;for(db=0;db<dd.length;db++){dc=v.findTargetNode(dd[db]);if(dc&&!dc.contentInteractionTrackingSetupDone){dc.contentInteractionTrackingSetupDone=true;ak(dc,"click",aT(dc))}}}function bs(dd,de){if(!dd||!dd.length){return[] +}var db,dc;for(db=0;db<dd.length;db++){if(aS(dd[db])){dd.splice(db,1);db--}else{b5.push(dd[db])}}if(!dd||!dd.length){return[]}aJ(de);bW(de);var df=[];for(db=0;db<dd.length;db++){dc=co(v.buildImpressionRequestParams(dd[db].name,dd[db].piece,dd[db].target),undefined,"contentImpressions");if(dc){df.push(dc)}}return df}function cu(dc){var db=v.collectContent(dc);return bs(db,dc)}function a5(dc){if(!dc||!dc.length){return[]}var db;for(db=0;db<dc.length;db++){if(!v.isNodeVisible(dc[db])){dc.splice(db,1);db--}}if(!dc||!dc.length){return[]}return cu(dc)}function aC(dd,db,dc){var de=v.buildImpressionRequestParams(dd,db,dc);return co(de,null,"contentImpression")}function c4(de,dc){if(!de){return}var db=v.findParentContentNode(de);var dd=v.buildContentBlock(db);if(!dd){return}if(!dc){dc="Unknown"}return aL(dc,dd.name,dd.piece,dd.target)}function cJ(dc,de,db,dd){return"e_c="+t(dc)+"&e_a="+t(de)+(J(db)?"&e_n="+t(db):"")+(J(dd)?"&e_v="+t(dd):"")}function ap(dd,df,db,de,dh,dg){if(a(String(dd)).length===0||a(String(df)).length===0){ah("Error while logging event: Parameters `category` and `action` must not be empty or filled with whitespaces"); +return false}var dc=co(cJ(dd,df,db,de),dh,"event");bA(dc,bE,dg)}function b3(db,de,dc,df){var dd=co("search="+t(db)+(de?"&search_cat="+t(de):"")+(J(dc)?"&search_count="+dc:""),df,"sitesearch");bA(dd,bE)}function cN(db,df,de,dd){var dc=co("idgoal="+db+(df?"&revenue="+df:""),de,"goal");bA(dc,bE,dd)}function cV(de,db,di,dh,dd){var dg=db+"="+t(bX(de));var dc=cp(dd,"click",de);if(dc){dg+="&"+dc}var df=co(dg,di,"link");bA(df,bE,dh)}function bP(dc,db){if(dc!==""){return dc+db.charAt(0).toUpperCase()+db.slice(1)}return db}function cc(dg){var df,db,de=["","webkit","ms","moz"],dd;if(!ba){for(db=0;db<de.length;db++){dd=de[db];if(Object.prototype.hasOwnProperty.call(G,bP(dd,"hidden"))){if(G[bP(dd,"visibilityState")]==="prerender"){df=true}break}}}if(df){ak(G,dd+"visibilitychange",function dc(){G.removeEventListener(dd+"visibilitychange",dc,false);dg()});return}dg()}function bm(){var dc=aU().uuid;var db=aF();return dc+db}function ce(db){if(!db){return}if(!ac.hasNodeAttribute(db,"href")){return}var dc=ac.getAttributeValueFromNode(db,"href"); +if(!dc||aQ(dc)){return}dc=k(dc,ar);if(dc.indexOf("?")>0){dc+="&"}else{dc+="?"}var dd=bm();dc=F(dc,ar,dd);ac.setAnyAttribute(db,"href",dc)}function ax(de){var df=ac.getAttributeValueFromNode(de,"href");if(!df){return false}df=String(df);var dc=df.indexOf("//")===0||df.indexOf("http://")===0||df.indexOf("https://")===0;if(!dc){return false}var db=de.pathname||cg(de.href);var dd=(de.hostname||d(de.href)).toLowerCase();if(ao(dd,db)){if(!cB(cO,L(dd))){return true}return false}return false}function cA(db){var dc=c5(db);if(dc&&dc.type){dc.href=p(dc.href);cV(dc.href,dc.type,undefined,null,db);return}if(cH){db=aq(db);if(ax(db)){ce(db)}}}function cr(){return G.all&&!G.addEventListener}function cP(db){var dd=db.which;var dc=(typeof db.button);if(!dd&&dc!=="undefined"){if(cr()){if(db.button&1){dd=1}else{if(db.button&2){dd=3}else{if(db.button&4){dd=2}}}}else{if(db.button===0||db.button==="0"){dd=1}else{if(db.button&1){dd=2}else{if(db.button&2){dd=3}}}}}return dd}function bO(db){switch(cP(db)){case 1:return"left"; +case 2:return"middle";case 3:return"right"}}function aX(db){return db.target||db.srcElement}function ay(db){return function(de){de=de||T.event;var dd=bO(de);var df=aX(de);if(de.type==="click"){var dc=false;if(db&&dd==="middle"){dc=true}if(df&&!dc){cA(df)}}else{if(de.type==="mousedown"){if(dd==="middle"&&df){aN=dd;bv=df}else{aN=bv=null}}else{if(de.type==="mouseup"){if(dd===aN&&df===bv){cA(df)}aN=bv=null}else{if(de.type==="contextmenu"){cA(df)}}}}}}function an(dd,dc){var db=typeof dc;if(db==="undefined"){dc=true}ak(dd,"click",ay(dc),false);if(dc){ak(dd,"mouseup",ay(dc),false);ak(dd,"mousedown",ay(dc),false);ak(dd,"contextmenu",ay(dc),false)}}function by(dd,df){am=true;var de,dc=aW(bu,"ignore"),dg=G.links,db=null,dh=null;if(dg){for(de=0;de<dg.length;de++){db=dg[de];if(!dc.test(db.className)){dh=typeof db.piwikTrackers;if("undefined"===dh){db.piwikTrackers=[]}if(-1===M(db.piwikTrackers,df)){db.piwikTrackers.push(df);an(db,dd)}}}}}function aO(dc,df,dg){if(ca){return true}ca=true;var dh=false; +var de,dd;function db(){dh=true}n(function(){function di(dk){setTimeout(function(){if(!ca){return}dh=false;dg.trackVisibleContentImpressions();di(dk)},dk)}function dj(dk){setTimeout(function(){if(!ca){return}if(dh){dh=false;dg.trackVisibleContentImpressions()}dj(dk)},dk)}if(dc){de=["scroll","resize"];for(dd=0;dd<de.length;dd++){if(G.addEventListener){G.addEventListener(de[dd],db,false)}else{T.attachEvent("on"+de[dd],db)}}dj(100)}if(df&&df>0){df=parseInt(df,10);di(df)}})}function cz(){var dc,de,df={pdf:"application/pdf",qt:"video/quicktime",realp:"audio/x-pn-realaudio-plugin",wma:"application/x-mplayer2",dir:"application/x-director",fla:"application/x-shockwave-flash",java:"application/x-java-vm",gears:"application/x-googlegears",ag:"application/x-silverlight"};if(!((new RegExp("MSIE")).test(h.userAgent))){if(h.mimeTypes&&h.mimeTypes.length){for(dc in df){if(Object.prototype.hasOwnProperty.call(df,dc)){de=h.mimeTypes[df[dc]];c1[dc]=(de&&de.enabledPlugin)?"1":"0"}}}if(!((new RegExp("Edge[ /](\\d+[\\.\\d]+)")).test(h.userAgent))&&typeof navigator.javaEnabled!=="unknown"&&J(h.javaEnabled)&&h.javaEnabled()){c1.java="1" +}if(A(T.GearsFactory)){c1.gears="1"}c1.cookie=b0()}var dd=parseInt(X.width,10);var db=parseInt(X.height,10);c1.res=parseInt(dd,10)+"x"+parseInt(db,10)}var bx={enabled:true,requests:[],timeout:null,sendRequests:function(){var db=this.requests;this.requests=[];if(db.length===1){bA(db[0],bE)}else{c7(db,bE)}},push:function(db){if(!db){return}if(m||!this.enabled){bA(db,bE);return}bx.requests.push(db);if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.timeout=setTimeout(function(){bx.timeout=null;bx.sendRequests()},1750);var dc="RequestQueue"+at;if(!Object.prototype.hasOwnProperty.call(b,dc)){b[dc]={unload:function(){if(bx.timeout){clearTimeout(bx.timeout)}bx.sendRequests()}}}}};cz();bd();aI();this.getVisitorId=function(){return aU().uuid};this.getVisitorInfo=function(){return cI()};this.getAttributionInfo=function(){return bH()};this.getAttributionCampaignName=function(){return bH()[0]};this.getAttributionCampaignKeyword=function(){return bH()[1]};this.getAttributionReferrerTimestamp=function(){return bH()[2] +};this.getAttributionReferrerUrl=function(){return bH()[3]};this.setTrackerUrl=function(db){aA=db};this.getTrackerUrl=function(){return aA};this.getPiwikUrl=function(){return O(this.getTrackerUrl(),bC)};this.addTracker=function(db,dd){if(!dd){throw new Error("A siteId must be given to add a new tracker")}if(!J(db)||null===db){db=this.getTrackerUrl()}var dc=new Q(db,dd);I.push(dc);e.trigger("TrackerAdded",[this]);return dc};this.getSiteId=function(){return b1};this.setSiteId=function(db){bY(db)};this.resetUserId=function(){bt=""};this.setUserId=function(db){if(!J(db)||!db.length){return}bt=db};this.getUserId=function(){return bt};this.setCustomData=function(db,dc){if(W(db)){al=db}else{if(!al){al={}}al[db]=dc}};this.getCustomData=function(){return al};this.setCustomRequestProcessing=function(db){b6=db};this.appendToTrackingUrl=function(db){cT=db};this.getRequest=function(db){return co(db)};this.addPlugin=function(db,dc){b[db]=dc};this.setCustomDimension=function(db,dc){db=parseInt(db,10); +if(db>0){if(!J(dc)){dc=""}if(!w(dc)){dc=String(dc)}bh[db]=dc}};this.getCustomDimension=function(db){db=parseInt(db,10);if(db>0&&Object.prototype.hasOwnProperty.call(bh,db)){return bh[db]}};this.deleteCustomDimension=function(db){db=parseInt(db,10);if(db>0){delete bh[db]}};this.setCustomVariable=function(dc,db,df,dd){var de;if(!J(dd)){dd="visit"}if(!J(db)){return}if(!J(df)){df=""}if(dc>0){db=!w(db)?String(db):db;df=!w(df)?String(df):df;de=[db.slice(0,bo),df.slice(0,bo)];if(dd==="visit"||dd===2){cy();aM[dc]=de}else{if(dd==="page"||dd===3){bR[dc]=de}else{if(dd==="event"){ch[dc]=de}}}}};this.getCustomVariable=function(dc,dd){var db;if(!J(dd)){dd="visit"}if(dd==="page"||dd===3){db=bR[dc]}else{if(dd==="event"){db=ch[dc]}else{if(dd==="visit"||dd===2){cy();db=aM[dc]}}}if(!J(db)||(db&&db[0]==="")){return false}return db};this.deleteCustomVariable=function(db,dc){if(this.getCustomVariable(db,dc)){this.setCustomVariable(db,"","",dc)}};this.deleteCustomVariables=function(db){if(db==="page"||db===3){bR={} +}else{if(db==="event"){ch={}}else{if(db==="visit"||db===2){aM={}}}}};this.storeCustomVariablesInCookie=function(){bL=true};this.setLinkTrackingTimer=function(db){bE=db};this.getLinkTrackingTimer=function(){return bE};this.setDownloadExtensions=function(db){if(w(db)){db=db.split("|")}c0=db};this.addDownloadExtensions=function(dc){var db;if(w(dc)){dc=dc.split("|")}for(db=0;db<dc.length;db++){c0.push(dc[db])}};this.removeDownloadExtensions=function(dd){var dc,db=[];if(w(dd)){dd=dd.split("|")}for(dc=0;dc<c0.length;dc++){if(M(dd,c0[dc])===-1){db.push(c0[dc])}}c0=db};this.setDomains=function(db){au=w(db)?[db]:db;var df=false,dd=0,dc;for(dd;dd<au.length;dd++){dc=String(au[dd]);if(cB(cO,L(dc))){df=true;break}var de=cg(dc);if(de&&de!=="/"&&de!=="/*"){df=true;break}}if(!df){au.push(cO)}};this.enableCrossDomainLinking=function(){cH=true};this.disableCrossDomainLinking=function(){cH=false};this.isCrossDomainLinkingEnabled=function(){return cH};this.setCrossDomainLinkingTimeout=function(db){aV=db};this.getCrossDomainLinkingUrlParameter=function(){return t(ar)+"="+t(bm()) +};this.setIgnoreClasses=function(db){bu=w(db)?[db]:db};this.setRequestMethod=function(db){c3=db||cd};this.setRequestContentType=function(db){cs=db||aE};this.setReferrerUrl=function(db){bi=db};this.setCustomUrl=function(db){a0=bQ(bI,db)};this.getCurrentUrl=function(){return a0||bI};this.setDocumentTitle=function(db){be=db};this.setAPIUrl=function(db){bC=db};this.setDownloadClasses=function(db){bG=w(db)?[db]:db};this.setLinkClasses=function(db){a4=w(db)?[db]:db};this.setCampaignNameKey=function(db){cm=w(db)?[db]:db};this.setCampaignKeywordKey=function(db){bB=w(db)?[db]:db};this.discardHashTag=function(db){bK=db};this.setCookieNamePrefix=function(db){bf=db;aM=bS()};this.setCookieDomain=function(db){var dc=L(db);if(br(dc)){cR=dc;bd()}};this.getCookieDomain=function(){return cR};this.hasCookies=function(){return"1"===b0()};this.setSessionCookie=function(dd,dc,db){if(!dd){throw new Error("Missing cookie name")}if(!J(db)){db=ck}bp.push(dd);c6(aP(dd),dc,db,bk,cR)};this.getCookie=function(dc){var db=az(aP(dc)); +if(db===0){return null}return db};this.setCookiePath=function(db){bk=db;bd()};this.getCookiePath=function(db){return bk};this.setVisitorCookieTimeout=function(db){cD=db*1000};this.setSessionCookieTimeout=function(db){ck=db*1000};this.getSessionCookieTimeout=function(){return ck};this.setReferralCookieTimeout=function(db){cZ=db*1000};this.setConversionAttributionFirstReferrer=function(db){bq=db};this.setSecureCookie=function(db){bN=db};this.disableCookies=function(){bg=true;c1.cookie="0";if(b1){aB()}};this.deleteCookies=function(){aB()};this.setDoNotTrack=function(dc){var db=h.doNotTrack||h.msDoNotTrack;cK=dc&&(db==="yes"||db==="1");if(cK){this.disableCookies()}};this.alwaysUseSendBeacon=function(){cQ=true};this.addListener=function(dc,db){an(dc,db)};this.enableLinkTracking=function(dc){c2=true;var db=this;cc(function(){q(function(){by(dc,db)})})};this.enableJSErrorTracking=function(){if(cM){return}cM=true;var db=T.onerror;T.onerror=function(dg,de,dd,df,dc){cc(function(){var dh="JavaScript Errors"; +var di=de+":"+dd;if(df){di+=":"+df}ap(dh,di,dg)});if(db){return db(dg,de,dd,df,dc)}return false}};this.disablePerformanceTracking=function(){aY=false};this.setGenerationTimeMs=function(db){ci=parseInt(db,10)};this.enableHeartBeatTimer=function(db){db=Math.max(db,1);a1=(db||15)*1000;if(cS!==null){c8()}};this.disableHeartBeatTimer=function(){bF();if(a1||aK){if(T.removeEventListener){T.removeEventListener("focus",a6,true);T.removeEventListener("blur",av,true)}else{if(T.detachEvent){T.detachEvent("onfocus",a6);T.detachEvent("onblur",av)}}}a1=null;aK=false};this.killFrame=function(){if(T.location!==T.top.location){T.top.location=T.location}};this.redirectFile=function(db){if(T.location.protocol==="file:"){T.location=db}};this.setCountPreRendered=function(db){ba=db};this.trackGoal=function(db,de,dd,dc){cc(function(){cN(db,de,dd,dc)})};this.trackLink=function(dc,db,de,dd){cc(function(){cV(dc,db,de,dd)})};this.getNumTrackedPageViews=function(){return cn};this.trackPageView=function(db,dd,dc){b5=[]; +cE=[];if(N(b1)){cc(function(){Y(aA,bC,b1)})}else{cc(function(){cn++;bV(db,dd,dc)})}};this.trackAllContentImpressions=function(){if(N(b1)){return}cc(function(){q(function(){var db=v.findContentNodes();var dc=cu(db);c7(dc,bE)})})};this.trackVisibleContentImpressions=function(db,dc){if(N(b1)){return}if(!J(db)){db=true}if(!J(dc)){dc=750}aO(db,dc,this);cc(function(){n(function(){var dd=v.findContentNodes();var de=a5(dd);c7(de,bE)})})};this.trackContentImpression=function(dd,db,dc){if(N(b1)){return}dd=a(dd);db=a(db);dc=a(dc);if(!dd){return}db=db||"Unknown";cc(function(){var de=aC(dd,db,dc);bA(de,bE)})};this.trackContentImpressionsWithinNode=function(db){if(N(b1)||!db){return}cc(function(){if(ca){n(function(){var dc=v.findContentNodesWithinNode(db);var dd=a5(dc);c7(dd,bE)})}else{q(function(){var dc=v.findContentNodesWithinNode(db);var dd=cu(dc);c7(dd,bE)})}})};this.trackContentInteraction=function(dd,de,db,dc){if(N(b1)){return}dd=a(dd);de=a(de);db=a(db);dc=a(dc);if(!dd||!de){return}db=db||"Unknown"; +cc(function(){var df=aL(dd,de,db,dc);bA(df,bE)})};this.trackContentInteractionNode=function(dc,db){if(N(b1)||!dc){return}cc(function(){var dd=c4(dc,db);bA(dd,bE)})};this.logAllContentBlocksOnPage=function(){var dd=v.findContentNodes();var db=v.collectContent(dd);var dc=typeof console;if(dc!=="undefined"&&console&&console.log){console.log(db)}};this.trackEvent=function(dc,de,db,dd,dg,df){cc(function(){ap(dc,de,db,dd,dg,df)})};this.trackSiteSearch=function(db,dd,dc,de){cc(function(){b3(db,dd,dc,de)})};this.setEcommerceView=function(de,db,dd,dc){if(!J(dd)||!dd.length){dd=""}else{if(dd instanceof Array){dd=JSON_PIWIK.stringify(dd)}}bR[5]=["_pkc",dd];if(J(dc)&&String(dc).length){bR[2]=["_pkp",dc]}if((!J(de)||!de.length)&&(!J(db)||!db.length)){return}if(J(de)&&de.length){bR[3]=["_pks",de]}if(!J(db)||!db.length){db=""}bR[4]=["_pkn",db]};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(cU))};this.addEcommerceItem=function(df,db,dd,dc,de){if(df.length){cU[df]=[df,db,dd,dc,de]}}; +this.removeEcommerceItem=function(db){if(db.length){delete cU[db]}};this.clearEcommerceCart=function(){cU={}};this.trackEcommerceOrder=function(db,df,de,dd,dc,dg){bU(db,df,de,dd,dc,dg)};this.trackEcommerceCartUpdate=function(db){bn(db)};this.trackRequest=function(dc,de,dd,db){cc(function(){var df=co(dc,de,db);bA(df,bE,dd)})};this.disableQueueRequest=function(){bx.enabled=false};this.queueRequest=function(db){cc(function(){var dc=co(db);bx.push(dc)})};this.getRememberedConsent=function(){var db=az(a9);if(az(cG)){if(db){bT(a9,bk,cR)}return null}if(!db||db===0){return null}return db};this.hasRememberedConsent=function(){return !!this.getRememberedConsent()};this.requireConsent=function(){cv=true;bw=this.hasRememberedConsent();x++;b["CoreConsent"+x]={unload:function(){if(!bw){aB()}}}};this.setConsentGiven=function(){bw=true;bT(cG,bk,cR);var dc,db;for(dc=0;dc<cE.length;dc++){db=typeof cE[dc];if(db==="string"){bA(cE[dc],bE)}else{if(db==="object"){c7(cE[dc],bE)}}}cE=[]};this.rememberConsentGiven=function(dc){if(bg){ah("rememberConsentGiven is called but cookies are disabled, consent will not be remembered"); +return}if(dc){dc=dc*60*60*1000}this.setConsentGiven();var db=new Date().getTime();c6(a9,db,dc,bk,cR,bN)};this.forgetConsentGiven=function(){if(bg){ah("forgetConsentGiven is called but cookies are disabled, consent will not be forgotten");return}bT(a9,bk,cR);c6(cG,new Date().getTime(),0,bk,cR,bN);this.requireConsent()};this.isUserOptedOut=function(){return !bw};this.optUserOut=this.forgetConsentGiven;this.forgetUserOptOut=this.rememberConsentGiven;e.trigger("TrackerSetup",[this])}function H(){return{push:ad}}function c(aq,ap){var ar={};var an,ao;for(an=0;an<ap.length;an++){var al=ap[an];ar[al]=1;for(ao=0;ao<aq.length;ao++){if(aq[ao]&&aq[ao][0]){var am=aq[ao][0];if(al===am){ad(aq[ao]);delete aq[ao];if(ar[am]>1&&am!=="addTracker"){ah("The method "+am+' is registered more than once in "_paq" variable. Only the last call has an effect. Please have a look at the multiple Piwik trackers documentation: https://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers')}ar[am]++ +}}}}return aq}var C=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","enableCrossDomainLinking","setCrossDomainLinkingTimeout","setSecureCookie","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","alwaysUseSendBeacon","enableLinkTracking","requireConsent","setConsentGiven"];function ab(al,an){var am=new Q(al,an);I.push(am);_paq=c(_paq,C);for(E=0;E<_paq.length;E++){if(_paq[E]){ad(_paq[E])}}_paq=new H();e.trigger("TrackerAdded",[am]);return am}ak(T,"beforeunload",af,false);Date.prototype.getTimeAlias=Date.prototype.getTime;e={initialized:false,JSON:JSON_PIWIK,DOM:{addEventListener:function(ao,an,am,al){var ap=typeof al;if(ap==="undefined"){al=false}ak(ao,an,am,al)},onLoad:n,onReady:q,isNodeVisible:j,isOrWasNodeVisible:v.isNodeVisible},on:function(am,al){if(!y[am]){y[am]=[]}y[am].push(al)},off:function(an,am){if(!y[an]){return}var al=0;for(al;al<y[an].length;al++){if(y[an][al]===am){y[an].splice(al,1)}}},trigger:function(an,ao,am){if(!y[an]){return}var al=0;for(al; +al<y[an].length;al++){y[an][al].apply(am||T,ao)}},addPlugin:function(al,am){b[al]=am},getTracker:function(al,am){if(!J(am)){am=this.getAsyncTracker().getSiteId()}if(!J(al)){al=this.getAsyncTracker().getTrackerUrl()}return new Q(al,am)},getAsyncTrackers:function(){return I},addTracker:function(al,an){var am;if(!I.length){am=ab(al,an)}else{am=I[0].addTracker(al,an)}return am},getAsyncTracker:function(am,ap){var ao;if(I&&I.length&&I[0]){ao=I[0]}else{return ab(am,ap)}if(!ap&&!am){return ao}if((!J(ap)||null===ap)&&ao){ap=ao.getSiteId()}if((!J(am)||null===am)&&ao){am=ao.getTrackerUrl()}var an,al=0;for(al;al<I.length;al++){an=I[al];if(an&&String(an.getSiteId())===String(ap)&&an.getTrackerUrl()===am){return an}}},retryMissedPluginCalls:function(){var am=ae;ae=[];var al=0;for(al;al<am.length;al++){ad(am[al])}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return e});define("matomo",[],function(){return e})}return e}())} /*!!! pluginTrackerHook */ -(function(){function b(){if("object"!==typeof _paq){return false}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(!window.Piwik.getAsyncTrackers().length){if(b()){window.Piwik.addTracker()}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&console&&console.error){console.error("_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c) -}}}}}window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true}());(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=window.Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var c,e=window.Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}}} +(function(){function b(){if("object"!==typeof _paq){return false +}var c=typeof _paq.length;if("undefined"===c){return false}return !!_paq.length}if(window&&"object"===typeof window.piwikPluginAsyncInit&&window.piwikPluginAsyncInit.length){var a=0;for(a;a<window.piwikPluginAsyncInit.length;a++){if(typeof window.piwikPluginAsyncInit[a]==="function"){window.piwikPluginAsyncInit[a]()}}}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}if(!window.Piwik.getAsyncTrackers().length){if(b()){window.Piwik.addTracker()}else{_paq={push:function(c){var d=typeof console;if(d!=="undefined"&&console&&console.error){console.error("_paq.push() was used but Matomo tracker was not initialized before the matomo.js file was loaded. Make sure to configure the tracker via _paq.push before loading matomo.js. Alternatively, you can create a tracker via Matomo.addTracker() manually and then use _paq.push but it may not fully work as tracker methods may not be executed in the correct order.",c)}}}}}window.Piwik.trigger("PiwikInitialized",[]);window.Piwik.initialized=true +}());(function(){var a=(typeof AnalyticsTracker);if(a==="undefined"){AnalyticsTracker=window.Piwik}}());if(typeof piwik_log!=="function"){piwik_log=function(b,f,d,g){function a(h){try{if(window["piwik_"+h]){return window["piwik_"+h]}}catch(i){}return}var c,e=window.Piwik.getTracker(d,f);e.setDocumentTitle(b);e.setCustomData(g);c=a("tracker_pause");if(c){e.setLinkTrackingTimer(c)}c=a("download_extensions");if(c){e.setDownloadExtensions(c)}c=a("hosts_alias");if(c){e.setDomains(c)}c=a("ignore_classes");if(c){e.setIgnoreClasses(c)}e.trackPageView();if(a("install_tracker")){piwik_track=function(i,k,j,h){e.setSiteId(k);e.setTrackerUrl(j);e.trackLink(i,h)};e.enableLinkTracking()}}} /*!! @license-end */;
\ No newline at end of file diff --git a/tests/javascript/index.php b/tests/javascript/index.php index d2c5f8cfa2..e0c8e7ffa3 100644 --- a/tests/javascript/index.php +++ b/tests/javascript/index.php @@ -482,6 +482,10 @@ function PiwikTest() { module('externals'); + QUnit.testDone(function () { + Piwik.getTracker().unsetPageIsUnloading(); + }) + // Delete cookies to prevent cookie store from impacting tests deleteCookies(); @@ -2141,7 +2145,7 @@ function PiwikTest() { }); test("API methods", function() { - expect(106); + expect(107); equal( typeof Piwik.addPlugin, 'function', 'addPlugin' ); equal( typeof Piwik.addPlugin, 'function', 'addTracker' ); @@ -2231,6 +2235,7 @@ function PiwikTest() { equal( typeof tracker.trackPageView, 'function', 'trackPageView' ); equal( typeof tracker.trackRequest, 'function', 'trackRequest' ); equal( typeof tracker.queueRequest, 'function', 'queueRequest' ); + equal( typeof tracker.disableQueueRequest, 'function', 'disableQueueRequest' ); equal( typeof tracker.disableCookies, 'function', 'disableCookies' ); equal( typeof tracker.deleteCookies, 'function', 'deleteCookies' ); // content @@ -3377,35 +3382,6 @@ function PiwikTest() { equal( tracker.hook.test._prefixPropertyName('webkit', 'hidden'), 'webkitHidden', 'webkit prefix' ); }); - test("Internal timers and setLinkTrackingTimer()", function() { - expect(5); - - var tracker = Piwik.getTracker(); - - ok( ! ( _paq instanceof Array ), "async tracker proxy not an array" ); - equal( typeof tracker, typeof _paq, "async tracker proxy" ); - - var startTime, stopTime; - - wait(1000); // in case there is a previous expireDateTime set - - equal( typeof tracker.hook.test._beforeUnloadHandler, 'function', 'beforeUnloadHandler' ); - - startTime = new Date(); - tracker.hook.test._beforeUnloadHandler(); - stopTime = new Date(); - var msSinceStarted = (stopTime.getTime() - startTime.getTime()); - ok( msSinceStarted < 510, 'beforeUnloadHandler(): ' + msSinceStarted + ' was greater than 510 ' ); - - tracker.setLinkTrackingTimer(2000); - startTime = new Date(); - tracker.trackPageView(); - tracker.hook.test._beforeUnloadHandler(); - stopTime = new Date(); - var diffTime = (stopTime.getTime() - startTime.getTime()); - ok( diffTime >= 2000, 'setLinkTrackingTimer()' ); - }); - test("Generate error messages when calling an undefined API method", function() { expect(2); @@ -3631,7 +3607,7 @@ if ($mysql) { test("tracking", function() { - expect(158); + expect(164); // Prevent Opera and HtmlUnit from performing the default action (i.e., load the href URL) var stopEvent = function (evt) { @@ -3883,11 +3859,26 @@ if ($mysql) { ok( visitorIdStart == visitorIdEnd, "tracker.getVisitorId() same at the start and end of process"); // Tracker custom request + var requestQueue = tracker.getRequestQueue(); + strictEqual(true, requestQueue.enabled); + strictEqual(0, requestQueue.requests.length, "has not any request queued yet"); + tracker.trackRequest('myFoo=bar&baz=1'); tracker.queueRequest('myQueue=bar&queue=1'); tracker.queueRequest('myQueue=bar&queue=2'); tracker.queueRequest('myQueue=bar&queue=3'); + requestQueue = tracker.getRequestQueue(); + equal(3, requestQueue.requests.length, "has added only the queued requests to the queue"); + + tracker.disableQueueRequest(); + strictEqual(false, requestQueue.enabled); + + tracker.queueRequest('myQueueDisabled=bar&queue=4'); + requestQueue = tracker.getRequestQueue(); + equal(3, requestQueue.requests.length, "does not increase number of queued requests but send it directly"); + requestQueue.enabled = true; + // Custom variables tracker.storeCustomVariablesInCookie(); tracker.setCookieNamePrefix("PREFIX"); @@ -4082,7 +4073,7 @@ if ($mysql) { xhr.open("GET", "matomo.php?requests=" + getToken(), false); xhr.send(null); results = xhr.responseText; - equal( (/<span\>([0-9]+)\<\/span\>/.exec(results))[1], "40", "count tracking events" ); + equal( (/<span\>([0-9]+)\<\/span\>/.exec(results))[1], "41", "count tracking events" ); // firing callback ok( trackLinkCallbackFired, "trackLink() callback fired" ); @@ -4123,6 +4114,7 @@ if ($mysql) { ok( /myQueue=bar&queue=1/.test( results ), "queueRequest sends queued requests"); ok( /myQueue=bar&queue=2/.test( results ), "queueRequest sends queued requests"); ok( /myQueue=bar&queue=3/.test( results ), "queueRequest sends queued requests"); + ok( /myQueueDisabled=bar&queue=4/.test( results ), "queueRequest sends queued requests when disabled directly"); // Test Custom variables ok( /SaveCustomVariableCookie.*&cvar=%7B%222%22%3A%5B%22cookiename2PAGE%22%2C%22cookievalue2PAGE%22%5D%7D.*&_cvar=%7B%221%22%3A%5B%22cookiename%22%2C%22cookievalue%22%5D%2C%222%22%3A%5B%22cookiename2%22%2C%22cookievalue2%22%5D%7D/.test(results), "test custom vars are set"); @@ -4970,6 +4962,35 @@ if ($mysql) { }); + test("Internal timers and setLinkTrackingTimer()", function() { + expect(8); + + var tracker = Piwik.getTracker(); + + ok( ! ( _paq instanceof Array ), "async tracker proxy not an array" ); + equal( typeof tracker, typeof _paq, "async tracker proxy" ); + + var startTime, stopTime; + + wait(1000); // in case there is a previous expireDateTime set + + equal( typeof tracker.hook.test._beforeUnloadHandler, 'function', 'beforeUnloadHandler' ); + + startTime = new Date(); + tracker.hook.test._beforeUnloadHandler(); + stopTime = new Date(); + var msSinceStarted = (stopTime.getTime() - startTime.getTime()); + ok( msSinceStarted < 510, 'beforeUnloadHandler(): ' + msSinceStarted + ' was greater than 510 ' ); + + tracker.setLinkTrackingTimer(2000); + startTime = new Date(); + tracker.trackPageView(); + tracker.hook.test._beforeUnloadHandler(); + stopTime = new Date(); + var diffTime = (stopTime.getTime() - startTime.getTime()); + ok( diffTime >= 2000, 'setLinkTrackingTimer()' ); + }); + <?php } ?> |