forked from matomo-org/matomo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
piwik.js
68 lines (68 loc) · 54.7 KB
/
piwik.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*!!
* Piwik - free/libre analytics platform
*
* JavaScript tracking client
*
* @link http://piwik.org
* @source https://github.com/piwik/piwik/blob/master/js/piwik.js
* @license http://piwik.org/free-software/bsd/ BSD-3 Clause (also in js/LICENSE.txt)
* @license magnet:?xt=urn:btih:c80d50af7d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt BSD-3-Clause
*/
if(typeof JSON2!=="object"&&typeof window.JSON==="object"&&window.JSON.stringify&&window.JSON.parse){JSON2=window.JSON}else{(function(){var a={};
/*!! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
(function(){var c=typeof define==="function"&&define.amd;var e={"function":true,object:true};var h=e[typeof a]&&a&&!a.nodeType&&a;var i=e[typeof window]&&window||this,b=h&&e[typeof module]&&module&&!module.nodeType&&typeof global=="object"&&global;if(b&&(b.global===b||b.window===b||b.self===b)){i=b}function j(ab,V){ab||(ab=i.Object());V||(V=i.Object());var K=ab.Number||i.Number,R=ab.String||i.String,x=ab.Object||i.Object,S=ab.Date||i.Date,T=ab.SyntaxError||i.SyntaxError,aa=ab.TypeError||i.TypeError,J=ab.Math||i.Math,Y=ab.JSON||i.JSON;
if(typeof Y=="object"&&Y){V.stringify=Y.stringify;V.parse=Y.parse}var n=x.prototype,u=n.toString,r,m,L;var B=new S(-3509827334573292);try{B=B.getUTCFullYear()==-109252&&B.getUTCMonth()===0&&B.getUTCDate()===1&&B.getUTCHours()==10&&B.getUTCMinutes()==37&&B.getUTCSeconds()==6&&B.getUTCMilliseconds()==708}catch(v){}function o(ac){if(o[ac]!==L){return o[ac]}var ad;if(ac=="bug-string-char-index"){ad="a"[0]!="a"}else{if(ac=="json"){ad=o("json-stringify")&&o("json-parse")}else{var ak,ah='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if(ac=="json-stringify"){var ai=V.stringify,aj=typeof ai=="function"&&B;if(aj){(ak=function(){return 1}).toJSON=ak;try{aj=ai(0)==="0"&&ai(new K())==="0"&&ai(new R())=='""'&&ai(u)===L&&ai(L)===L&&ai()===L&&ai(ak)==="1"&&ai([ak])=="[1]"&&ai([L])=="[null]"&&ai(null)=="null"&&ai([L,u,null])=="[null,null,null]"&&ai({a:[ak,true,false,null,"\x00\b\n\f\r\t"]})==ah&&ai(null,ak)==="1"&&ai([1,2],null,1)=="[\n 1,\n 2\n]"&&ai(new S(-8640000000000000))=='"-271821-04-20T00:00:00.000Z"'&&ai(new S(8640000000000000))=='"+275760-09-13T00:00:00.000Z"'&&ai(new S(-62198755200000))=='"-000001-01-01T00:00:00.000Z"'&&ai(new S(-1))=='"1969-12-31T23:59:59.999Z"'
}catch(ae){aj=false}}ad=aj}if(ac=="json-parse"){var ag=V.parse;if(typeof ag=="function"){try{if(ag("0")===0&&!ag(false)){ak=ag(ah);var af=ak.a.length==5&&ak.a[0]===1;if(af){try{af=!ag('"\t"')}catch(ae){}if(af){try{af=ag("01")!==1}catch(ae){}}if(af){try{af=ag("1.")!==1}catch(ae){}}}}}catch(ae){af=false}}ad=af}}}return o[ac]=!!ad}if(!o("json")){var U="[object Function]",Q="[object Date]",N="[object Number]",O="[object String]",E="[object Array]",A="[object Boolean]";var F=o("bug-string-char-index");if(!B){var s=J.floor;var Z=[0,31,59,90,120,151,181,212,243,273,304,334];var D=function(ac,ad){return Z[ad]+365*(ac-1970)+s((ac-1969+(ad=+(ad>1)))/4)-s((ac-1901+ad)/100)+s((ac-1601+ad)/400)}}if(!(r=n.hasOwnProperty)){r=function(ae){var ac={},ad;if((ac.__proto__=null,ac.__proto__={toString:1},ac).toString!=u){r=function(ah){var ag=this.__proto__,af=ah in (this.__proto__=null,this);this.__proto__=ag;return af}}else{ad=ac.constructor;r=function(ag){var af=(this.constructor||ad).prototype;return ag in this&&!(ag in af&&this[ag]===af[ag])
}}ac=null;return r.call(this,ae)}}m=function(ae,ah){var af=0,ac,ad,ag;(ac=function(){this.valueOf=0}).prototype.valueOf=0;ad=new ac();for(ag in ad){if(r.call(ad,ag)){af++}}ac=ad=null;if(!af){ad=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"];m=function(aj,an){var am=u.call(aj)==U,al,ak;var ai=!am&&typeof aj.constructor!="function"&&e[typeof aj.hasOwnProperty]&&aj.hasOwnProperty||r;for(al in aj){if(!(am&&al=="prototype")&&ai.call(aj,al)){an(al)}}for(ak=ad.length;al=ad[--ak];ai.call(aj,al)&&an(al)){}}}else{if(af==2){m=function(aj,am){var ai={},al=u.call(aj)==U,ak;for(ak in aj){if(!(al&&ak=="prototype")&&!r.call(ai,ak)&&(ai[ak]=1)&&r.call(aj,ak)){am(ak)}}}}else{m=function(aj,am){var al=u.call(aj)==U,ak,ai;for(ak in aj){if(!(al&&ak=="prototype")&&r.call(aj,ak)&&!(ai=ak==="constructor")){am(ak)}}if(ai||r.call(aj,(ak="constructor"))){am(ak)}}}}return m(ae,ah)};if(!o("json-stringify")){var q={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"};
var I="000000";var t=function(ac,ad){return(I+(ad||0)).slice(-ac)};var z="\\u00";var C=function(ai){var ad='"',ag=0,ah=ai.length,ac=!F||ah>10;var af=ac&&(F?ai.split(""):ai);for(;ag<ah;ag++){var ae=ai.charCodeAt(ag);switch(ae){case 8:case 9:case 10:case 12:case 13:case 34:case 92:ad+=q[ae];break;default:if(ae<32){ad+=z+t(2,ae.toString(16));break}ad+=ac?af[ag]:ai.charAt(ag)}}return ad+'"'};var p=function(ai,aA,ag,al,ax,ac,aj){var at,ae,ap,az,ay,ak,aw,au,aq,an,ar,ad,ah,af,av,ao;try{at=aA[ai]}catch(am){}if(typeof at=="object"&&at){ae=u.call(at);if(ae==Q&&!r.call(at,"toJSON")){if(at>-1/0&&at<1/0){if(D){ay=s(at/86400000);for(ap=s(ay/365.2425)+1970-1;D(ap+1,0)<=ay;ap++){}for(az=s((ay-D(ap,0))/30.42);D(ap,az+1)<=ay;az++){}ay=1+ay-D(ap,az);ak=(at%86400000+86400000)%86400000;aw=s(ak/3600000)%24;au=s(ak/60000)%60;aq=s(ak/1000)%60;an=ak%1000}else{ap=at.getUTCFullYear();az=at.getUTCMonth();ay=at.getUTCDate();aw=at.getUTCHours();au=at.getUTCMinutes();aq=at.getUTCSeconds();an=at.getUTCMilliseconds()}at=(ap<=0||ap>=10000?(ap<0?"-":"+")+t(6,ap<0?-ap:ap):t(4,ap))+"-"+t(2,az+1)+"-"+t(2,ay)+"T"+t(2,aw)+":"+t(2,au)+":"+t(2,aq)+"."+t(3,an)+"Z"
}else{at=null}}else{if(typeof at.toJSON=="function"&&((ae!=N&&ae!=O&&ae!=E)||r.call(at,"toJSON"))){at=at.toJSON(ai)}}}if(ag){at=ag.call(aA,ai,at)}if(at===null){return"null"}ae=u.call(at);if(ae==A){return""+at}else{if(ae==N){return at>-1/0&&at<1/0?""+at:"null"}else{if(ae==O){return C(""+at)}}}if(typeof at=="object"){for(af=aj.length;af--;){if(aj[af]===at){throw aa()}}aj.push(at);ar=[];av=ac;ac+=ax;if(ae==E){for(ah=0,af=at.length;ah<af;ah++){ad=p(ah,at,ag,al,ax,ac,aj);ar.push(ad===L?"null":ad)}ao=ar.length?(ax?"[\n"+ac+ar.join(",\n"+ac)+"\n"+av+"]":("["+ar.join(",")+"]")):"[]"}else{m(al||at,function(aC){var aB=p(aC,at,ag,al,ax,ac,aj);if(aB!==L){ar.push(C(aC)+":"+(ax?" ":"")+aB)}});ao=ar.length?(ax?"{\n"+ac+ar.join(",\n"+ac)+"\n"+av+"}":("{"+ar.join(",")+"}")):"{}"}aj.pop();return ao}};V.stringify=function(ac,ae,af){var ad,al,aj,ai;if(e[typeof ae]&&ae){if((ai=u.call(ae))==U){al=ae}else{if(ai==E){aj={};for(var ah=0,ag=ae.length,ak;ah<ag;ak=ae[ah++],((ai=u.call(ak)),ai==O||ai==N)&&(aj[ak]=1)){}}}}if(af){if((ai=u.call(af))==N){if((af-=af%1)>0){for(ad="",af>10&&(af=10);
ad.length<af;ad+=" "){}}}else{if(ai==O){ad=af.length<=10?af:af.slice(0,10)}}}return p("",(ak={},ak[""]=ac,ak),al,aj,ad,"",[])}}if(!o("json-parse")){var M=R.fromCharCode;var l={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"};var G,X;var H=function(){G=X=null;throw T()};var y=function(){var ah=X,af=ah.length,ag,ae,ac,ai,ad;while(G<af){ad=ah.charCodeAt(G);switch(ad){case 9:case 10:case 13:case 32:G++;break;case 123:case 125:case 91:case 93:case 58:case 44:ag=F?ah.charAt(G):ah[G];G++;return ag;case 34:for(ag="@",G++;G<af;){ad=ah.charCodeAt(G);if(ad<32){H()}else{if(ad==92){ad=ah.charCodeAt(++G);switch(ad){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:ag+=l[ad];G++;break;case 117:ae=++G;for(ac=G+4;G<ac;G++){ad=ah.charCodeAt(G);if(!(ad>=48&&ad<=57||ad>=97&&ad<=102||ad>=65&&ad<=70)){H()}}ag+=M("0x"+ah.slice(ae,G));break;default:H()}}else{if(ad==34){break}ad=ah.charCodeAt(G);ae=G;while(ad>=32&&ad!=92&&ad!=34){ad=ah.charCodeAt(++G)}ag+=ah.slice(ae,G)}}}if(ah.charCodeAt(G)==34){G++;
return ag}H();default:ae=G;if(ad==45){ai=true;ad=ah.charCodeAt(++G)}if(ad>=48&&ad<=57){if(ad==48&&((ad=ah.charCodeAt(G+1)),ad>=48&&ad<=57)){H()}ai=false;for(;G<af&&((ad=ah.charCodeAt(G)),ad>=48&&ad<=57);G++){}if(ah.charCodeAt(G)==46){ac=++G;for(;ac<af&&((ad=ah.charCodeAt(ac)),ad>=48&&ad<=57);ac++){}if(ac==G){H()}G=ac}ad=ah.charCodeAt(G);if(ad==101||ad==69){ad=ah.charCodeAt(++G);if(ad==43||ad==45){G++}for(ac=G;ac<af&&((ad=ah.charCodeAt(ac)),ad>=48&&ad<=57);ac++){}if(ac==G){H()}G=ac}return +ah.slice(ae,G)}if(ai){H()}if(ah.slice(G,G+4)=="true"){G+=4;return true}else{if(ah.slice(G,G+5)=="false"){G+=5;return false}else{if(ah.slice(G,G+4)=="null"){G+=4;return null}}}H()}}return"$"};var W=function(ad){var ac,ae;if(ad=="$"){H()}if(typeof ad=="string"){if((F?ad.charAt(0):ad[0])=="@"){return ad.slice(1)}if(ad=="["){ac=[];for(;;ae||(ae=true)){ad=y();if(ad=="]"){break}if(ae){if(ad==","){ad=y();if(ad=="]"){H()}}else{H()}}if(ad==","){H()}ac.push(W(ad))}return ac}else{if(ad=="{"){ac={};for(;;ae||(ae=true)){ad=y();
if(ad=="}"){break}if(ae){if(ad==","){ad=y();if(ad=="}"){H()}}else{H()}}if(ad==","||typeof ad!="string"||(F?ad.charAt(0):ad[0])!="@"||y()!=":"){H()}ac[ad.slice(1)]=W(y())}return ac}}H()}return ad};var P=function(ae,ad,af){var ac=w(ae,ad,af);if(ac===L){delete ae[ad]}else{ae[ad]=ac}};var w=function(af,ae,ag){var ad=af[ae],ac;if(typeof ad=="object"&&ad){if(u.call(ad)==E){for(ac=ad.length;ac--;){P(ad,ac,ag)}}else{m(ad,function(ah){P(ad,ah,ag)})}}return ag.call(af,ae,ad)};V.parse=function(ae,af){var ac,ad;G=0;X=""+ae;ac=W(y());if(y()!="$"){H()}G=X=null;return af&&u.call(af)==U?w((ad={},ad[""]=ac,ad),"",af):ac}}}V.runInContext=j;return V}if(h&&!c){j(i,h)}else{var f=i.JSON,k=i.JSON3,d=false;var g=j(i,(i.JSON3={noConflict:function(){if(!d){d=true;i.JSON=f;i.JSON3=k;f=k=null}return g}}));i.JSON={parse:g.parse,stringify:g.stringify}}if(c){define(function(){return g})}}).call(this);JSON2=a})()}if(typeof _paq!=="object"){_paq=[]}if(typeof window.Piwik!=="object"){window.Piwik=(function(){var l,a={},x=document,f=navigator,O=screen,K=window,g=K.performance||K.mozPerformance||K.msPerformance||K.webkitPerformance,n=K.encodeURIComponent,J=K.decodeURIComponent,i=unescape,z=[],w,d;
function k(aa){try{return J(aa)}catch(ab){return unescape(aa)}}function A(ab){var aa=typeof ab;return aa!=="undefined"}function s(aa){return typeof aa==="function"}function N(aa){return typeof aa==="object"}function q(aa){return typeof aa==="string"||aa instanceof String}function t(ab){if(!ab){return true}var aa;var ac=true;for(aa in ab){if(Object.prototype.hasOwnProperty.call(ab,aa)){ac=false}}return ac}function W(aa){if(console!==undefined&&console&&console.error){console.error(aa)}}function T(){var ab,aa,ae,ad;for(ab=0;ab<arguments.length;ab+=1){ad=arguments[ab];ae=ad.shift();for(aa=0;aa<z.length;aa++){if(q(ae)){if(z[aa][ae]){z[aa][ae].apply(z[aa],ad)}else{var ac="The method '"+ae+'\' was not found in "_paq" variable. Please have a look at the Piwik tracker documentation: http://developer.piwik.org/api-reference/tracking-javascript';W(ac);throw new TypeError(ac)}if(ae==="addTracker"){break}if(ae==="setTrackerUrl"||ae==="setSiteId"){break}}else{ae.apply(z[aa],ad)}}}}function Y(ad,ac,ab,aa){if(ad.addEventListener){ad.addEventListener(ac,ab,aa);
return true}if(ad.attachEvent){return ad.attachEvent("on"+ac,ab)}ad["on"+ac]=ab}function R(ab,af){var aa="",ad,ac,ae;for(ad in a){if(Object.prototype.hasOwnProperty.call(a,ad)){ac=a[ad][ab];if(s(ac)){ae=ac(af);if(ae){aa+=ae}}}}return aa}function U(){var aa;R("unload");if(l){do{aa=new Date()}while(aa.getTimeAlias()<l)}}function j(ac,ab){var aa=x.createElement("script");aa.type="text/javascript";aa.src=ac;if(aa.readyState){aa.onreadystatechange=function(){var ad=this.readyState;if(ad==="loaded"||ad==="complete"){aa.onreadystatechange=null;ab()}}}else{aa.onload=ab}x.getElementsByTagName("head")[0].appendChild(aa)}function B(){var aa="";try{aa=K.top.document.referrer}catch(ac){if(K.parent){try{aa=K.parent.document.referrer}catch(ab){aa=""}}}if(aa===""){aa=x.referrer}return aa}function m(aa){var ac=new RegExp("^([a-z]+):"),ab=ac.exec(aa);return ab?ab[1]:null}function c(aa){var ac=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)"),ab=ac.exec(aa);return ab?ab[1]:aa}function M(ac,ab){var aa="[\\?&#]"+ab+"=([^&#]*)";
var ae=new RegExp(aa);var ad=ae.exec(ac);return ad?J(ad[1]):""}function v(aa){return unescape(n(aa))}function X(ap){var ac=function(aw,av){return(aw<<av)|(aw>>>(32-av))},aq=function(ay){var aw="",ax,av;for(ax=7;ax>=0;ax--){av=(ay>>>(ax*4))&15;aw+=av.toString(16)}return aw},af,at,ar,ab=[],aj=1732584193,ah=4023233417,ag=2562383102,ae=271733878,ad=3285377520,ao,an,am,al,ak,au,aa,ai=[];ap=v(ap);aa=ap.length;for(at=0;at<aa-3;at+=4){ar=ap.charCodeAt(at)<<24|ap.charCodeAt(at+1)<<16|ap.charCodeAt(at+2)<<8|ap.charCodeAt(at+3);ai.push(ar)}switch(aa&3){case 0:at=2147483648;break;case 1:at=ap.charCodeAt(aa-1)<<24|8388608;break;case 2:at=ap.charCodeAt(aa-2)<<24|ap.charCodeAt(aa-1)<<16|32768;break;case 3:at=ap.charCodeAt(aa-3)<<24|ap.charCodeAt(aa-2)<<16|ap.charCodeAt(aa-1)<<8|128;break}ai.push(at);while((ai.length&15)!==14){ai.push(0)}ai.push(aa>>>29);ai.push((aa<<3)&4294967295);for(af=0;af<ai.length;af+=16){for(at=0;at<16;at++){ab[at]=ai[af+at]}for(at=16;at<=79;at++){ab[at]=ac(ab[at-3]^ab[at-8]^ab[at-14]^ab[at-16],1)
}ao=aj;an=ah;am=ag;al=ae;ak=ad;for(at=0;at<=19;at++){au=(ac(ao,5)+((an&am)|(~an&al))+ak+ab[at]+1518500249)&4294967295;ak=al;al=am;am=ac(an,30);an=ao;ao=au}for(at=20;at<=39;at++){au=(ac(ao,5)+(an^am^al)+ak+ab[at]+1859775393)&4294967295;ak=al;al=am;am=ac(an,30);an=ao;ao=au}for(at=40;at<=59;at++){au=(ac(ao,5)+((an&am)|(an&al)|(am&al))+ak+ab[at]+2400959708)&4294967295;ak=al;al=am;am=ac(an,30);an=ao;ao=au}for(at=60;at<=79;at++){au=(ac(ao,5)+(an^am^al)+ak+ab[at]+3395469782)&4294967295;ak=al;al=am;am=ac(an,30);an=ao;ao=au}aj=(aj+ao)&4294967295;ah=(ah+an)&4294967295;ag=(ag+am)&4294967295;ae=(ae+al)&4294967295;ad=(ad+ak)&4294967295}au=aq(aj)+aq(ah)+aq(ag)+aq(ae)+aq(ad);return au.toLowerCase()}function Q(ac,aa,ab){if(!ac){ac=""}if(!aa){aa=""}if(ac==="translate.googleusercontent.com"){if(ab===""){ab=aa}aa=M(aa,"u");ac=c(aa)}else{if(ac==="cc.bingj.com"||ac==="webcache.googleusercontent.com"||ac.slice(0,5)==="74.6."){aa=x.links[0].href;ac=c(aa)}}return[ac,aa,ab]}function C(ab){var aa=ab.length;if(ab.charAt(--aa)==="."){ab=ab.slice(0,aa)
}if(ab.slice(0,2)==="*."){ab=ab.slice(1)}if(ab.indexOf("/")!==-1){ab=ab.substr(0,ab.indexOf("/"))}return ab}function Z(ab){ab=ab&&ab.text?ab.text:ab;if(!q(ab)){var aa=x.getElementsByTagName("title");if(aa&&A(aa[0])){ab=aa[0].text}}return ab}function G(aa){if(!aa){return[]}if(!A(aa.children)&&A(aa.childNodes)){return aa.children}if(A(aa.children)){return aa.children}return[]}function L(ab,aa){if(!ab||!aa){return false}if(ab.contains){return ab.contains(aa)}if(ab===aa){return true}if(ab.compareDocumentPosition){return !!(ab.compareDocumentPosition(aa)&16)}return false}function D(ac,ad){if(ac&&ac.indexOf){return ac.indexOf(ad)}if(!A(ac)||ac===null){return -1}if(!ac.length){return -1}var aa=ac.length;if(aa===0){return -1}var ab=0;while(ab<aa){if(ac[ab]===ad){return ab}ab++}return -1}function V(ab,aa){ab=String(ab);return ab.lastIndexOf(aa,0)===0}function I(ab,aa){ab=String(ab);return ab.indexOf(aa,ab.length-aa.length)!==-1}function r(ab,aa){ab=String(ab);return ab.indexOf(aa)!==-1}function e(ab,aa){ab=String(ab);
return ab.substr(0,ab.length-aa)}function h(ac){if(!ac){return false}function aa(ae,af){if(K.getComputedStyle){return x.defaultView.getComputedStyle(ae,null)[af]}if(ae.currentStyle){return ae.currentStyle[af]}}function ad(ae){ae=ae.parentNode;while(ae){if(ae===x){return true}ae=ae.parentNode}return false}function ab(ag,am,ae,aj,ah,ak,ai){var af=ag.parentNode,al=1;if(!ad(ag)){return false}if(9===af.nodeType){return true}if("0"===aa(ag,"opacity")||"none"===aa(ag,"display")||"hidden"===aa(ag,"visibility")){return false}if(!A(am)||!A(ae)||!A(aj)||!A(ah)||!A(ak)||!A(ai)){am=ag.offsetTop;ah=ag.offsetLeft;aj=am+ag.offsetHeight;ae=ah+ag.offsetWidth;ak=ag.offsetWidth;ai=ag.offsetHeight}if(ac===ag&&(0===ai||0===ak)&&"hidden"===aa(ag,"overflow")){return false}if(af){if(("hidden"===aa(af,"overflow")||"scroll"===aa(af,"overflow"))){if(ah+al>af.offsetWidth+af.scrollLeft||ah+ak-al<af.scrollLeft||am+al>af.offsetHeight+af.scrollTop||am+ai-al<af.scrollTop){return false}}if(ag.offsetParent===af){ah+=af.offsetLeft;
am+=af.offsetTop}return ab(af,am,ae,aj,ah,ak,ai)}return true}return ab(ac)}var S={htmlCollectionToArray:function(ac){var aa=[],ab;if(!ac||!ac.length){return aa}for(ab=0;ab<ac.length;ab++){aa.push(ac[ab])}return aa},find:function(aa){if(!document.querySelectorAll||!aa){return[]}var ab=document.querySelectorAll(aa);return this.htmlCollectionToArray(ab)},findMultiple:function(ac){if(!ac||!ac.length){return[]}var ab,ad;var aa=[];for(ab=0;ab<ac.length;ab++){ad=this.find(ac[ab]);aa=aa.concat(ad)}aa=this.makeNodesUnique(aa);return aa},findNodesByTagName:function(ab,aa){if(!ab||!aa||!ab.getElementsByTagName){return[]}var ac=ab.getElementsByTagName(aa);return this.htmlCollectionToArray(ac)},makeNodesUnique:function(aa){var af=[].concat(aa);aa.sort(function(ah,ag){if(ah===ag){return 0}var aj=D(af,ah);var ai=D(af,ag);if(aj===ai){return 0}return aj>ai?-1:1});if(aa.length<=1){return aa}var ab=0;var ad=0;var ae=[];var ac;ac=aa[ab++];while(ac){if(ac===aa[ab]){ad=ae.push(ab)}ac=aa[ab++]||null}while(ad--){aa.splice(ae[ad],1)
}return aa},getAttributeValueFromNode:function(ae,ac){if(!this.hasNodeAttribute(ae,ac)){return}if(ae&&ae.getAttribute){return ae.getAttribute(ac)}if(!ae||!ae.attributes){return}var ad=(typeof ae.attributes[ac]);if("undefined"===ad){return}if(ae.attributes[ac].value){return ae.attributes[ac].value}if(ae.attributes[ac].nodeValue){return ae.attributes[ac].nodeValue}var ab;var aa=ae.attributes;if(!aa){return}for(ab=0;ab<aa.length;ab++){if(aa[ab].nodeName===ac){return aa[ab].nodeValue}}return null},hasNodeAttributeWithValue:function(ab,aa){var ac=this.getAttributeValueFromNode(ab,aa);return !!ac},hasNodeAttribute:function(ac,aa){if(ac&&ac.hasAttribute){return ac.hasAttribute(aa)}if(ac&&ac.attributes){var ab=(typeof ac.attributes[aa]);return"undefined"!==ab}return false},hasNodeCssClass:function(ac,aa){if(ac&&aa&&ac.className){var ab=typeof ac.className==="string"?ac.className.split(" "):[];if(-1!==D(ab,aa)){return true}}return false},findNodesHavingAttribute:function(ae,ac,aa){if(!aa){aa=[]}if(!ae||!ac){return aa
}var ad=G(ae);if(!ad||!ad.length){return aa}var ab,af;for(ab=0;ab<ad.length;ab++){af=ad[ab];if(this.hasNodeAttribute(af,ac)){aa.push(af)}aa=this.findNodesHavingAttribute(af,ac,aa)}return aa},findFirstNodeHavingAttribute:function(ac,ab){if(!ac||!ab){return}if(this.hasNodeAttribute(ac,ab)){return ac}var aa=this.findNodesHavingAttribute(ac,ab);if(aa&&aa.length){return aa[0]}},findFirstNodeHavingAttributeWithValue:function(ad,ac){if(!ad||!ac){return}if(this.hasNodeAttributeWithValue(ad,ac)){return ad}var aa=this.findNodesHavingAttribute(ad,ac);if(!aa||!aa.length){return}var ab;for(ab=0;ab<aa.length;ab++){if(this.getAttributeValueFromNode(aa[ab],ac)){return aa[ab]}}},findNodesHavingCssClass:function(ae,ad,aa){if(!aa){aa=[]}if(!ae||!ad){return aa}if(ae.getElementsByClassName){var af=ae.getElementsByClassName(ad);return this.htmlCollectionToArray(af)}var ac=G(ae);if(!ac||!ac.length){return[]}var ab,ag;for(ab=0;ab<ac.length;ab++){ag=ac[ab];if(this.hasNodeCssClass(ag,ad)){aa.push(ag)}aa=this.findNodesHavingCssClass(ag,ad,aa)
}return aa},findFirstNodeHavingClass:function(ac,ab){if(!ac||!ab){return}if(this.hasNodeCssClass(ac,ab)){return ac}var aa=this.findNodesHavingCssClass(ac,ab);if(aa&&aa.length){return aa[0]}},isLinkElement:function(ab){if(!ab){return false}var aa=String(ab.nodeName).toLowerCase();var ad=["a","area"];var ac=D(ad,aa);return ac!==-1},setAnyAttribute:function(ab,aa,ac){if(!ab||!aa){return}if(ab.setAttribute){ab.setAttribute(aa,ac)}else{ab[aa]=ac}}};var p={CONTENT_ATTR:"data-track-content",CONTENT_CLASS:"piwikTrackContent",CONTENT_NAME_ATTR:"data-content-name",CONTENT_PIECE_ATTR:"data-content-piece",CONTENT_PIECE_CLASS:"piwikContentPiece",CONTENT_TARGET_ATTR:"data-content-target",CONTENT_TARGET_CLASS:"piwikContentTarget",CONTENT_IGNOREINTERACTION_ATTR:"data-content-ignoreinteraction",CONTENT_IGNOREINTERACTION_CLASS:"piwikContentIgnoreInteraction",location:undefined,findContentNodes:function(){var ab="."+this.CONTENT_CLASS;var aa="["+this.CONTENT_ATTR+"]";var ac=S.findMultiple([ab,aa]);return ac
},findContentNodesWithinNode:function(ad){if(!ad){return[]}var ab=S.findNodesHavingCssClass(ad,this.CONTENT_CLASS);var aa=S.findNodesHavingAttribute(ad,this.CONTENT_ATTR);if(aa&&aa.length){var ac;for(ac=0;ac<aa.length;ac++){ab.push(aa[ac])}}if(S.hasNodeAttribute(ad,this.CONTENT_ATTR)){ab.push(ad)}else{if(S.hasNodeCssClass(ad,this.CONTENT_CLASS)){ab.push(ad)}}ab=S.makeNodesUnique(ab);return ab},findParentContentNode:function(ab){if(!ab){return}var ac=ab;var aa=0;while(ac&&ac!==x&&ac.parentNode){if(S.hasNodeAttribute(ac,this.CONTENT_ATTR)){return ac}if(S.hasNodeCssClass(ac,this.CONTENT_CLASS)){return ac}ac=ac.parentNode;if(aa>1000){break}aa++}},findPieceNode:function(ab){var aa;aa=S.findFirstNodeHavingAttribute(ab,this.CONTENT_PIECE_ATTR);if(!aa){aa=S.findFirstNodeHavingClass(ab,this.CONTENT_PIECE_CLASS)}if(aa){return aa}return ab},findTargetNodeNoDefault:function(aa){if(!aa){return}var ab=S.findFirstNodeHavingAttributeWithValue(aa,this.CONTENT_TARGET_ATTR);if(ab){return ab}ab=S.findFirstNodeHavingAttribute(aa,this.CONTENT_TARGET_ATTR);
if(ab){return ab}ab=S.findFirstNodeHavingClass(aa,this.CONTENT_TARGET_CLASS);if(ab){return ab}},findTargetNode:function(aa){var ab=this.findTargetNodeNoDefault(aa);if(ab){return ab}return aa},findContentName:function(ab){if(!ab){return}var ae=S.findFirstNodeHavingAttributeWithValue(ab,this.CONTENT_NAME_ATTR);if(ae){return S.getAttributeValueFromNode(ae,this.CONTENT_NAME_ATTR)}var aa=this.findContentPiece(ab);if(aa){return this.removeDomainIfIsInLink(aa)}if(S.hasNodeAttributeWithValue(ab,"title")){return S.getAttributeValueFromNode(ab,"title")}var ac=this.findPieceNode(ab);if(S.hasNodeAttributeWithValue(ac,"title")){return S.getAttributeValueFromNode(ac,"title")}var ad=this.findTargetNode(ab);if(S.hasNodeAttributeWithValue(ad,"title")){return S.getAttributeValueFromNode(ad,"title")}},findContentPiece:function(ab){if(!ab){return}var ad=S.findFirstNodeHavingAttributeWithValue(ab,this.CONTENT_PIECE_ATTR);if(ad){return S.getAttributeValueFromNode(ad,this.CONTENT_PIECE_ATTR)}var aa=this.findPieceNode(ab);
var ac=this.findMediaUrlInNode(aa);if(ac){return this.toAbsoluteUrl(ac)}},findContentTarget:function(ac){if(!ac){return}var ad=this.findTargetNode(ac);if(S.hasNodeAttributeWithValue(ad,this.CONTENT_TARGET_ATTR)){return S.getAttributeValueFromNode(ad,this.CONTENT_TARGET_ATTR)}var ab;if(S.hasNodeAttributeWithValue(ad,"href")){ab=S.getAttributeValueFromNode(ad,"href");return this.toAbsoluteUrl(ab)}var aa=this.findPieceNode(ac);if(S.hasNodeAttributeWithValue(aa,"href")){ab=S.getAttributeValueFromNode(aa,"href");return this.toAbsoluteUrl(ab)}},isSameDomain:function(aa){if(!aa||!aa.indexOf){return false}if(0===aa.indexOf(this.getLocation().origin)){return true}var ab=aa.indexOf(this.getLocation().host);if(8>=ab&&0<=ab){return true}return false},removeDomainIfIsInLink:function(ac){var ab="^https?://[^/]+";var aa="^.*//[^/]+";if(ac&&ac.search&&-1!==ac.search(new RegExp(ab))&&this.isSameDomain(ac)){ac=ac.replace(new RegExp(aa),"");if(!ac){ac="/"}}return ac},findMediaUrlInNode:function(ae){if(!ae){return
}var ac=["img","embed","video","audio"];var aa=ae.nodeName.toLowerCase();if(-1!==D(ac,aa)&&S.findFirstNodeHavingAttributeWithValue(ae,"src")){var ad=S.findFirstNodeHavingAttributeWithValue(ae,"src");return S.getAttributeValueFromNode(ad,"src")}if(aa==="object"&&S.hasNodeAttributeWithValue(ae,"data")){return S.getAttributeValueFromNode(ae,"data")}if(aa==="object"){var af=S.findNodesByTagName(ae,"param");if(af&&af.length){var ab;for(ab=0;ab<af.length;ab++){if("movie"===S.getAttributeValueFromNode(af[ab],"name")&&S.hasNodeAttributeWithValue(af[ab],"value")){return S.getAttributeValueFromNode(af[ab],"value")}}}var ag=S.findNodesByTagName(ae,"embed");if(ag&&ag.length){return this.findMediaUrlInNode(ag[0])}}},trim:function(aa){if(aa&&String(aa)===aa){return aa.replace(/^\s+|\s+$/g,"")}return aa},isOrWasNodeInViewport:function(af){if(!af||!af.getBoundingClientRect||af.nodeType!==1){return true}var ae=af.getBoundingClientRect();var ad=x.documentElement||{};var ac=ae.top<0;if(ac&&af.offsetTop){ac=(af.offsetTop+ae.height)>0
}var ab=ad.clientWidth;if(K.innerWidth&&ab>K.innerWidth){ab=K.innerWidth}var aa=ad.clientHeight;if(K.innerHeight&&aa>K.innerHeight){aa=K.innerHeight}return((ae.bottom>0||ac)&&ae.right>0&&ae.left<ab&&((ae.top<aa)||ac))},isNodeVisible:function(ab){var aa=h(ab);var ac=this.isOrWasNodeInViewport(ab);return aa&&ac},buildInteractionRequestParams:function(aa,ab,ac,ad){var ae="";if(aa){ae+="c_i="+n(aa)}if(ab){if(ae){ae+="&"}ae+="c_n="+n(ab)}if(ac){if(ae){ae+="&"}ae+="c_p="+n(ac)}if(ad){if(ae){ae+="&"}ae+="c_t="+n(ad)}return ae},buildImpressionRequestParams:function(aa,ab,ac){var ad="c_n="+n(aa)+"&c_p="+n(ab);if(ac){ad+="&c_t="+n(ac)}return ad},buildContentBlock:function(ac){if(!ac){return}var aa=this.findContentName(ac);var ab=this.findContentPiece(ac);var ad=this.findContentTarget(ac);aa=this.trim(aa);ab=this.trim(ab);ad=this.trim(ad);return{name:aa||"Unknown",piece:ab||"Unknown",target:ad||""}},collectContent:function(ad){if(!ad||!ad.length){return[]}var ac=[];var aa,ab;for(aa=0;aa<ad.length;
aa++){ab=this.buildContentBlock(ad[aa]);if(A(ab)){ac.push(ab)}}return ac},setLocation:function(aa){this.location=aa},getLocation:function(){var aa=this.location||K.location;if(!aa.origin){aa.origin=aa.protocol+"//"+aa.hostname+(aa.port?":"+aa.port:"")}return aa},toAbsoluteUrl:function(ab){if((!ab||String(ab)!==ab)&&ab!==""){return ab}if(""===ab){return this.getLocation().href}if(ab.search(/^\/\//)!==-1){return this.getLocation().protocol+ab}if(ab.search(/:\/\//)!==-1){return ab}if(0===ab.indexOf("#")){return this.getLocation().origin+this.getLocation().pathname+ab}if(0===ab.indexOf("?")){return this.getLocation().origin+this.getLocation().pathname+ab}if(0===ab.search("^[a-zA-Z]{2,11}:")){return ab}if(ab.search(/^\//)!==-1){return this.getLocation().origin+ab}var aa="(.*/)";var ac=this.getLocation().origin+this.getLocation().pathname.match(new RegExp(aa))[0];return ac+ab},isUrlToCurrentDomain:function(ab){var ac=this.toAbsoluteUrl(ab);if(!ac){return false}var aa=this.getLocation().origin;
if(aa===ac){return true}if(0===String(ac).indexOf(aa)){if(":"===String(ac).substr(aa.length,1)){return false}return true}return false},setHrefAttribute:function(ab,aa){if(!ab||!aa){return}S.setAnyAttribute(ab,"href",aa)},shouldIgnoreInteraction:function(ac){var ab=S.hasNodeAttribute(ac,this.CONTENT_IGNOREINTERACTION_ATTR);var aa=S.hasNodeCssClass(ac,this.CONTENT_IGNOREINTERACTION_CLASS);return ab||aa}};function F(ab,ae){if(ae){return ae}if(r(ab,"?")){var ad=ab.indexOf("?");ab=ab.slice(0,ad)}if(I(ab,"piwik.php")){ab=e(ab,"piwik.php".length)}else{if(I(ab,".php")){var aa=ab.lastIndexOf("/");var ac=1;ab=ab.slice(0,aa+ac)}}if(I(ab,"/js/")){ab=e(ab,"js/".length)}return ab}function E(ag){var ai="Piwik_Overlay";var ab=new RegExp("index\\.php\\?module=Overlay&action=startOverlaySession&idSite=([0-9]+)&period=([^&]+)&date=([^&]+)(&segment=.*)?$");var ac=ab.exec(x.referrer);if(ac){var ae=ac[1];if(ae!==String(ag)){return false}var af=ac[2],aa=ac[3],ad=ac[4];if(!ad){ad=""}else{if(ad.indexOf("&segment=")===0){ad=ad.substr("&segment=".length)
}}K.name=ai+"###"+af+"###"+aa+"###"+ad}var ah=K.name.split("###");return ah.length===4&&ah[0]===ai}function P(ab,ah,ad){var ag=K.name.split("###"),af=ag[1],aa=ag[2],ae=ag[3],ac=F(ab,ah);j(ac+"plugins/Overlay/client/client.js?v=1",function(){Piwik_Overlay_Client.initialize(ac,ad,af,aa,ae)})}function o(){var ac;try{ac=K.frameElement}catch(ab){return true}if(A(ac)){return(ac&&String(ac.nodeName).toLowerCase()==="iframe")?true:false}try{return K.self!==K.top}catch(aa){return true}}function H(bI,bC){var by=Q(x.domain,K.location.href,B()),ch=C(by[0]),bi=k(by[1]),aX=k(by[2]),cf=false,bM="GET",ct=bM,ao="application/x-www-form-urlencoded; charset=UTF-8",bY=ao,ak=bI||"",bd="",cl="",bA=bC||"",a6="",bj="",aI,aT="",cq=["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"],ag=[ch],a7=[],bg=[],aL=[],be=500,b8,aJ,bm,bk,aa,bU=["pk_campaign","piwik_campaign","utm_campaign","utm_source","utm_medium"],bc=["pk_kwd","piwik_kwd","utm_term"],aU="_pk_",cj,aZ,aV=false,cd,aR,a3,b9=33955200000,bS=1800000,cp=15768000000,aG=true,bQ=0,bl=false,av=false,bF,bq={},bP={},aW={},a2=200,cm={},cr={},bE=[],bJ=false,b2=false,ab=false,cs=false,at=false,aQ=o(),ck=null,bG,aw,a8,bB=X,aY;
try{aT=x.title}catch(b0){aT=""}function cw(cG,cD,cC,cF,cB,cE){if(aV){return}var cA;if(cC){cA=new Date();cA.setTime(cA.getTime()+cC)}x.cookie=cG+"="+n(cD)+(cC?";expires="+cA.toGMTString():"")+";path="+(cF||"/")+(cB?";domain="+cB:"")+(cE?";secure":"")}function aj(cC){if(aV){return 0}var cA=new RegExp("(^|;)[ ]*"+cC+"=([^;]*)"),cB=cA.exec(x.cookie);return cB?J(cB[2]):0}function bw(cA){var cB;if(bk){cB=new RegExp("#.*");return cA.replace(cB,"")}return cA}function bp(cC,cA){var cD=m(cA),cB;if(cD){return cA}if(cA.slice(0,1)==="/"){return m(cC)+"://"+c(cC)+cA}cC=bw(cC);cB=cC.indexOf("?");if(cB>=0){cC=cC.slice(0,cB)}cB=cC.lastIndexOf("/");if(cB!==cC.length-1){cC=cC.slice(0,cB+1)}return cC+cA}function b6(cC,cA){var cB;cC=String(cC).toLowerCase();cA=String(cA).toLowerCase();if(cC===cA){return true}if(cA.slice(0,1)==="."){if(cC===cA.slice(1)){return true}cB=cC.length-cA.length;if((cB>0)&&(cC.slice(cB)===cA)){return true}}return false}function bO(cA){var cB=document.createElement("a");if(cA.indexOf("//")!==0&&cA.indexOf("http")!==0){if(cA.indexOf("*")===0){cA=cA.substr(1)
}if(cA.indexOf(".")===0){cA=cA.substr(1)}cA="http://"+cA}cB.href=p.toAbsoluteUrl(cA);if(cB.pathname){return cB.pathname}return""}function aH(cB,cA){if(!V(cA,"/")){cA="/"+cA}if(!V(cB,"/")){cB="/"+cB}var cC=(cA==="/"||cA==="/*");if(cC){return true}if(cB===cA){return true}cA=String(cA).toLowerCase();cB=String(cB).toLowerCase();if(I(cA,"*")){cA=cA.slice(0,-1);cC=(!cA||cA==="/");if(cC){return true}if(cB===cA){return true}return cB.indexOf(cA)===0}if(!I(cB,"/")){cB+="/"}if(!I(cA,"/")){cA+="/"}return cB.indexOf(cA)===0}function ad(cE,cG){var cB,cA,cC,cD,cF;for(cB=0;cB<ag.length;cB++){cD=C(ag[cB]);cF=bO(ag[cB]);if(b6(cE,cD)&&aH(cG,cF)){return true}}return false}function aA(cD){var cB,cA,cC;for(cB=0;cB<ag.length;cB++){cA=C(ag[cB].toLowerCase());if(cD===cA){return true}if(cA.slice(0,1)==="."){if(cD===cA.slice(1)){return true}cC=cD.length-cA.length;if((cC>0)&&(cD.slice(cC)===cA)){return true}}}return false}function bT(cA,cC){var cB=new Image(1,1);cB.onload=function(){w=0;if(typeof cC==="function"){cC()
}};cA=cA.replace("send_image=0","send_image=1");cB.src=ak+(ak.indexOf("?")<0?"?":"&")+cA}function co(cB,cE,cA){if(!A(cA)||null===cA){cA=true}try{var cD=K.XMLHttpRequest?new K.XMLHttpRequest():K.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):null;cD.open("POST",ak,true);cD.onreadystatechange=function(){if(this.readyState===4&&!(this.status>=200&&this.status<300)&&cA){bT(cB,cE)}else{if(this.readyState===4&&(typeof cE==="function")){cE()}}};cD.setRequestHeader("Content-Type",bY);cD.send(cB)}catch(cC){if(cA){bT(cB,cE)}}}function bK(cB){var cA=new Date();var cC=cA.getTime()+cB;if(!l||cC>l){l=cC}}function bR(cA){if(bG||!aJ){return}bG=setTimeout(function cB(){bG=null;if(!aQ){aQ=(!x.hasFocus||x.hasFocus())}if(!aQ){bR(aJ);return}if(bm()){return}var cC=new Date(),cD=aJ-(cC.getTime()-ck);cD=Math.min(aJ,cD);bR(cD)},cA||aJ)}function bf(){if(!bG){return}clearTimeout(bG);bG=null}function aN(){aQ=true;if(bm()){return}bR()}function ah(){bf()}function cy(){if(at||!aJ){return}at=true;Y(K,"focus",aN);
Y(K,"blur",ah);bR()}function b3(cE){var cB=new Date();var cA=cB.getTime();ck=cA;if(b2&&cA<b2){var cC=b2-cA;setTimeout(cE,cC);bK(cC+50);b2+=50;return}if(b2===false){var cD=800;b2=cA+cD}cE()}function bb(cB,cA,cC){if(!cd&&cB){b3(function(){if(ct==="POST"){co(cB,cC)}else{bT(cB,cC)}bK(cA)})}if(!at){cy()}else{bR()}}function bN(cA){if(cd){return false}return(cA&&cA.length)}function cx(cC,cA){if(!bN(cC)){return}var cB='{"requests":["?'+cC.join('","?')+'"]}';b3(function(){co(cB,null,false);bK(cA)})}function ay(cA){return aU+cA+"."+bA+"."+aY}function bz(){if(aV){return"0"}if(!A(f.cookieEnabled)){var cA=ay("testcookie");cw(cA,"1");return aj(cA)==="1"?"1":"0"}return f.cookieEnabled?"1":"0"}function aS(){aY=bB((cj||ch)+(aZ||"/")).slice(0,4)}function br(){var cB=ay("cvar"),cA=aj(cB);if(cA.length){cA=JSON2.parse(cA);if(N(cA)){return cA}}return{}}function b4(){if(av===false){av=br()}}function ce(){return bB((f.userAgent||"")+(f.platform||"")+JSON2.stringify(cr)+(new Date()).getTime()+Math.random()).slice(0,16)
}function cb(){var cC=new Date(),cA=Math.round(cC.getTime()/1000),cB=ay("id"),cF=aj(cB),cE,cD;if(cF){cE=cF.split(".");cE.unshift("0");if(bj.length){cE[1]=bj}return cE}if(bj.length){cD=bj}else{if("0"===bz()){cD=""}else{cD=ce()}}cE=["1",cD,cA,0,cA,"",""];return cE}function aC(){var cH=cb(),cD=cH[0],cE=cH[1],cB=cH[2],cA=cH[3],cF=cH[4],cC=cH[5];if(!A(cH[6])){cH[6]=""}var cG=cH[6];return{newVisitor:cD,uuid:cE,createTs:cB,visitCount:cA,currentVisitTs:cF,lastVisitTs:cC,lastEcommerceOrderTs:cG}}function an(){var cD=new Date(),cB=cD.getTime(),cE=aC().createTs;var cA=parseInt(cE,10);var cC=(cA*1000)+b9-cB;return cC}function aq(cA){if(!bA){return}var cC=new Date(),cB=Math.round(cC.getTime()/1000);if(!A(cA)){cA=aC()}var cD=cA.uuid+"."+cA.createTs+"."+cA.visitCount+"."+cB+"."+cA.lastVisitTs+"."+cA.lastEcommerceOrderTs;cw(ay("id"),cD,an(),aZ,cj)}function bh(){var cA=aj(ay("ref"));if(cA.length){try{cA=JSON2.parse(cA);if(N(cA)){return cA}}catch(cB){}}return["","",0,""]}function bs(cC,cB,cA){cw(cC,"",-86400,cB,cA)
}function a4(cB){var cA="testvalue";cw("test",cA,10000,null,cB);if(aj("test")===cA){bs("test",null,cB);return true}return false}function al(){var cC=aV;aV=false;var cA=["id","ses","cvar","ref"];var cB,cD;for(cB=0;cB<cA.length;cB++){cD=ay(cA[cB]);if(0!==aj(cD)){bs(cD,aZ,cj)}}aV=cC}function bx(cA){bA=cA;aq()}function cz(cE){if(!cE||!N(cE)){return}var cD=[];var cC;for(cC in cE){if(Object.prototype.hasOwnProperty.call(cE,cC)){cD.push(cC)}}var cF={};cD.sort();var cA=cD.length;var cB;for(cB=0;cB<cA;cB++){cF[cD[cB]]=cE[cD[cB]]}return cF}function bH(){cw(ay("ses"),"*",bS,aZ,cj)}function bV(cC,cX,cY,cD){var cW,cB=new Date(),cK=Math.round(cB.getTime()/1000),cH,cV,cE=1024,c3,cL,cT=av,cF=ay("ses"),cR=ay("ref"),cO=ay("cvar"),cP=aj(cF),cU=bh(),c0=aI||bi,cI,cA;if(aV){al()}if(cd){return""}var cQ=aC();if(!A(cD)){cD=""}var cN=x.characterSet||x.charset;if(!cN||cN.toLowerCase()==="utf-8"){cN=null}cI=cU[0];cA=cU[1];cH=cU[2];cV=cU[3];if(!cP){var cZ=bS/1000;if(!cQ.lastVisitTs||(cK-cQ.lastVisitTs)>cZ){cQ.visitCount++;
cQ.lastVisitTs=cQ.currentVisitTs}if(!a3||!cI.length){for(cW in bU){if(Object.prototype.hasOwnProperty.call(bU,cW)){cI=M(c0,bU[cW]);if(cI.length){break}}}for(cW in bc){if(Object.prototype.hasOwnProperty.call(bc,cW)){cA=M(c0,bc[cW]);if(cA.length){break}}}}c3=c(aX);cL=cV.length?c(cV):"";if(c3.length&&!aA(c3)&&(!a3||!cL.length||aA(cL))){cV=aX}if(cV.length||cI.length){cH=cK;cU=[cI,cA,cH,bw(cV.slice(0,cE))];cw(cR,JSON2.stringify(cU),cp,aZ,cj)}}cC+="&idsite="+bA+"&rec=1&r="+String(Math.random()).slice(2,8)+"&h="+cB.getHours()+"&m="+cB.getMinutes()+"&s="+cB.getSeconds()+"&url="+n(bw(c0))+(aX.length?"&urlref="+n(bw(aX)):"")+((a6&&a6.length)?"&uid="+n(a6):"")+"&_id="+cQ.uuid+"&_idts="+cQ.createTs+"&_idvc="+cQ.visitCount+"&_idn="+cQ.newVisitor+(cI.length?"&_rcn="+n(cI):"")+(cA.length?"&_rck="+n(cA):"")+"&_refts="+cH+"&_viewts="+cQ.lastVisitTs+(String(cQ.lastEcommerceOrderTs).length?"&_ects="+cQ.lastEcommerceOrderTs:"")+(String(cV).length?"&_ref="+n(bw(cV.slice(0,cE))):"")+(cN?"&cs="+n(cN):"")+"&send_image=0";
for(cW in cr){if(Object.prototype.hasOwnProperty.call(cr,cW)){cC+="&"+cW+"="+cr[cW]}}var c2=[];if(cX){for(cW in cX){if(Object.prototype.hasOwnProperty.call(cX,cW)&&/^dimension\d+$/.test(cW)){var cG=cW.replace("dimension","");c2.push(parseInt(cG,10));c2.push(String(cG));cC+="&"+cW+"="+cX[cW];delete cX[cW]}}}if(cX&&t(cX)){cX=null}for(cW in aW){if(Object.prototype.hasOwnProperty.call(aW,cW)){var cM=(-1===c2.indexOf(cW));if(cM){cC+="&dimension"+cW+"="+aW[cW]}}}if(cX){cC+="&data="+n(JSON2.stringify(cX))}else{if(aa){cC+="&data="+n(JSON2.stringify(aa))}}function cJ(c4,c5){var c6=JSON2.stringify(c4);if(c6.length>2){return"&"+c5+"="+n(c6)}return""}var c1=cz(bq);var cS=cz(bP);cC+=cJ(c1,"cvar");cC+=cJ(cS,"e_cvar");if(av){cC+=cJ(av,"_cvar");for(cW in cT){if(Object.prototype.hasOwnProperty.call(cT,cW)){if(av[cW][0]===""||av[cW][1]===""){delete av[cW]}}}if(bl){cw(cO,JSON2.stringify(av),bS,aZ,cj)}}if(aG){if(bQ){cC+=">_ms="+bQ}else{if(g&&g.timing&&g.timing.requestStart&&g.timing.responseEnd){cC+=">_ms="+(g.timing.responseEnd-g.timing.requestStart)
}}}cQ.lastEcommerceOrderTs=A(cD)&&String(cD).length?cD:cQ.lastEcommerceOrderTs;aq(cQ);bH();cC+=R(cY);if(cl.length){cC+="&"+cl}if(s(bF)){cC=bF(cC)}return cC}bm=function aK(){var cA=new Date();if(ck+aJ<=cA.getTime()){var cB=bV("ping=1",null,"ping");bb(cB,be);return true}return false};function a0(cD,cC,cI,cE,cA,cL){var cG="idgoal=0",cH,cB=new Date(),cJ=[],cK,cF=String(cD).length;if(cF){cG+="&ec_id="+n(cD);cH=Math.round(cB.getTime()/1000)}cG+="&revenue="+cC;if(String(cI).length){cG+="&ec_st="+cI}if(String(cE).length){cG+="&ec_tx="+cE}if(String(cA).length){cG+="&ec_sh="+cA}if(String(cL).length){cG+="&ec_dt="+cL}if(cm){for(cK in cm){if(Object.prototype.hasOwnProperty.call(cm,cK)){if(!A(cm[cK][1])){cm[cK][1]=""}if(!A(cm[cK][2])){cm[cK][2]=""}if(!A(cm[cK][3])||String(cm[cK][3]).length===0){cm[cK][3]=0}if(!A(cm[cK][4])||String(cm[cK][4]).length===0){cm[cK][4]=1}cJ.push(cm[cK])}}cG+="&ec_items="+n(JSON2.stringify(cJ))}cG=bV(cG,aa,"ecommerce",cH);bb(cG,be);if(cF){cm={}}}function bt(cA,cE,cD,cC,cB,cF){if(String(cA).length&&A(cE)){a0(cA,cE,cD,cC,cB,cF)
}}function a1(cA){if(A(cA)){a0("",cA,"","","","")}}function bu(cB,cD,cC){var cA=bV("action_name="+n(Z(cB||aT)),cD,"log");bb(cA,be,cC)}function aE(cC,cB){var cD,cA="(^| )(piwik[_-]"+cB;if(cC){for(cD=0;cD<cC.length;cD++){cA+="|"+cC[cD]}}cA+=")( |$)";return new RegExp(cA)}function az(cA){return(ak&&cA&&0===String(cA).indexOf(ak))}function bW(cE,cA,cF,cB){if(az(cA)){return 0}var cD=aE(bg,"download"),cC=aE(aL,"link"),cG=new RegExp("\\.("+cq.join("|")+")([?&#]|$)","i");if(cC.test(cE)){return"link"}if(cB||cD.test(cE)||cG.test(cA)){return"download"}if(cF){return 0}return"link"}function ae(cB){var cA;cA=cB.parentNode;while(cA!==null&&A(cA)){if(S.isLinkElement(cB)){break}cB=cA;cA=cB.parentNode}return cB}function cu(cF){cF=ae(cF);if(!S.hasNodeAttribute(cF,"href")){return}if(!A(cF.href)){return}var cE=S.getAttributeValueFromNode(cF,"href");if(az(cE)){return}var cB=cF.pathname||bO(cF.href);var cG=cF.hostname||c(cF.href);var cH=cG.toLowerCase();var cC=cF.href.replace(cG,cH);var cD=new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto|tel):","i");
if(!cD.test(cC)){var cA=bW(cF.className,cC,ad(cH,cB),S.hasNodeAttribute(cF,"download"));if(cA){return{type:cA,href:cC}}}}function au(cA,cB,cC,cD){var cE=p.buildInteractionRequestParams(cA,cB,cC,cD);if(!cE){return}return bV(cE,null,"contentInteraction")}function ca(cC,cD,cH,cA,cB){if(!A(cC)){return}if(az(cC)){return cC}var cF=p.toAbsoluteUrl(cC);var cE="redirecturl="+n(cF)+"&";cE+=au(cD,cH,cA,(cB||cC));var cG="&";if(ak.indexOf("?")<0){cG="?"}return ak+cG+cE}function aO(cA,cB){if(!cA||!cB){return false}var cC=p.findTargetNode(cA);if(p.shouldIgnoreInteraction(cC)){return false}cC=p.findTargetNodeNoDefault(cA);if(cC&&!L(cC,cB)){return false}return true}function bX(cC,cB,cE){if(!cC){return}var cA=p.findParentContentNode(cC);if(!cA){return}if(!aO(cA,cC)){return}var cD=p.buildContentBlock(cA);if(!cD){return}if(!cD.target&&cE){cD.target=cE}return p.buildInteractionRequestParams(cB,cD.name,cD.piece,cD.target)}function aB(cB){if(!bE||!bE.length){return false}var cA,cC;for(cA=0;cA<bE.length;cA++){cC=bE[cA];
if(cC&&cC.name===cB.name&&cC.piece===cB.piece&&cC.target===cB.target){return true}}return false}function ba(cD){if(!cD){return false}var cG=p.findTargetNode(cD);if(!cG||p.shouldIgnoreInteraction(cG)){return false}var cH=cu(cG);if(cs&&cH&&cH.type){return false}if(S.isLinkElement(cG)&&S.hasNodeAttributeWithValue(cG,"href")){var cA=String(S.getAttributeValueFromNode(cG,"href"));if(0===cA.indexOf("#")){return false}if(az(cA)){return true}if(!p.isUrlToCurrentDomain(cA)){return false}var cE=p.buildContentBlock(cD);if(!cE){return}var cC=cE.name;var cI=cE.piece;var cF=cE.target;if(!S.hasNodeAttributeWithValue(cG,p.CONTENT_TARGET_ATTR)||cG.wasContentTargetAttrReplaced){cG.wasContentTargetAttrReplaced=true;cF=p.toAbsoluteUrl(cA);S.setAnyAttribute(cG,p.CONTENT_TARGET_ATTR,cF)}var cB=ca(cA,"click",cC,cI,cF);p.setHrefAttribute(cG,cB);return true}return false}function ar(cB){if(!cB||!cB.length){return}var cA;for(cA=0;cA<cB.length;cA++){ba(cB[cA])}}function aD(cA){return function(cB){if(!cA){return}var cE=p.findParentContentNode(cA);
var cF;if(cB){cF=cB.target||cB.srcElement}if(!cF){cF=cA}if(!aO(cE,cF)){return}bK(be);if(S.isLinkElement(cA)&&S.hasNodeAttributeWithValue(cA,"href")&&S.hasNodeAttributeWithValue(cA,p.CONTENT_TARGET_ATTR)){var cC=S.getAttributeValueFromNode(cA,"href");if(!az(cC)&&cA.wasContentTargetAttrReplaced){S.setAnyAttribute(cA,p.CONTENT_TARGET_ATTR,"")}}var cJ=cu(cA);if(ab&&cJ&&cJ.type){return cJ.type}if(ba(cE)){return"href"}var cG=p.buildContentBlock(cE);if(!cG){return}var cD=cG.name;var cK=cG.piece;var cI=cG.target;var cH=au("click",cD,cK,cI);bb(cH,be);return cH}}function bv(cC){if(!cC||!cC.length){return}var cA,cB;for(cA=0;cA<cC.length;cA++){cB=p.findTargetNode(cC[cA]);if(cB&&!cB.contentInteractionTrackingSetupDone){cB.contentInteractionTrackingSetupDone=true;Y(cB,"click",aD(cB))}}}function a5(cC,cD){if(!cC||!cC.length){return[]}var cA,cB;for(cA=0;cA<cC.length;cA++){if(aB(cC[cA])){cC.splice(cA,1);cA--}else{bE.push(cC[cA])}}if(!cC||!cC.length){return[]}ar(cD);bv(cD);var cE=[];for(cA=0;cA<cC.length;
cA++){cB=bV(p.buildImpressionRequestParams(cC[cA].name,cC[cA].piece,cC[cA].target),undefined,"contentImpressions");if(cB){cE.push(cB)}}return cE}function b1(cB){var cA=p.collectContent(cB);return a5(cA,cB)}function aM(cB){if(!cB||!cB.length){return[]}var cA;for(cA=0;cA<cB.length;cA++){if(!p.isNodeVisible(cB[cA])){cB.splice(cA,1);cA--}}if(!cB||!cB.length){return[]}return b1(cB)}function am(cC,cA,cB){var cD=p.buildImpressionRequestParams(cC,cA,cB);return bV(cD,null,"contentImpression")}function cv(cD,cB){if(!cD){return}var cA=p.findParentContentNode(cD);var cC=p.buildContentBlock(cA);if(!cC){return}if(!cB){cB="Unknown"}return au(cB,cC.name,cC.piece,cC.target)}function cc(cB,cD,cA,cC){return"e_c="+n(cB)+"&e_a="+n(cD)+(A(cA)?"&e_n="+n(cA):"")+(A(cC)?"&e_v="+n(cC):"")}function af(cC,cE,cA,cD,cF){if(String(cC).length===0||String(cE).length===0){return false}var cB=bV(cc(cC,cE,cA,cD),cF,"event");bb(cB,be)}function bD(cA,cD,cB,cE){var cC=bV("search="+n(cA)+(cD?"&search_cat="+n(cD):"")+(A(cB)?"&search_count="+cB:""),cE,"sitesearch");
bb(cC,be)}function cg(cA,cD,cC){var cB=bV("idgoal="+cA+(cD?"&revenue="+cD:""),cC,"goal");bb(cB,be)}function cn(cD,cA,cH,cG,cC){var cF=cA+"="+n(bw(cD));var cB=bX(cC,"click",cD);if(cB){cF+="&"+cB}var cE=bV(cF,cH,"link");bb(cE,(cG?0:be),cG)}function bn(cB,cA){if(cB!==""){return cB+cA.charAt(0).toUpperCase()+cA.slice(1)}return cA}function bL(cF){var cE,cA,cD=["","webkit","ms","moz"],cC;if(!aR){for(cA=0;cA<cD.length;cA++){cC=cD[cA];if(Object.prototype.hasOwnProperty.call(x,bn(cC,"hidden"))){if(x[bn(cC,"visibilityState")]==="prerender"){cE=true}break}}}if(cE){Y(x,cC+"visibilitychange",function cB(){x.removeEventListener(cC+"visibilitychange",cB,false);cF()});return}cF()}function ap(cA){if(x.readyState==="complete"){cA()}else{if(K.addEventListener){K.addEventListener("load",cA)}else{if(K.attachEvent){K.attachEvent("onload",cA)}}}}function aP(cD){var cA=false;if(x.attachEvent){cA=x.readyState==="complete"}else{cA=x.readyState!=="loading"}if(cA){cD();return}var cC;if(x.addEventListener){Y(x,"DOMContentLoaded",function cB(){x.removeEventListener("DOMContentLoaded",cB,false);
if(!cA){cA=true;cD()}})}else{if(x.attachEvent){x.attachEvent("onreadystatechange",function cB(){if(x.readyState==="complete"){x.detachEvent("onreadystatechange",cB);if(!cA){cA=true;cD()}}});if(x.documentElement.doScroll&&K===K.top){(function cB(){if(!cA){try{x.documentElement.doScroll("left")}catch(cE){setTimeout(cB,0);return}cA=true;cD()}}())}}}Y(K,"load",function(){if(!cA){cA=true;cD()}},false)}function b7(cA){var cB=cu(cA);if(cB&&cB.type){cB.href=k(cB.href);cn(cB.href,cB.type,undefined,null,cA)}}function bZ(){return x.all&&!x.addEventListener}function ci(cA){var cC=cA.which;var cB=(typeof cA.button);if(!cC&&cB!=="undefined"){if(bZ()){if(cA.button&1){cC=1}else{if(cA.button&2){cC=3}else{if(cA.button&4){cC=2}}}}else{if(cA.button===0||cA.button==="0"){cC=1}else{if(cA.button&1){cC=2}else{if(cA.button&2){cC=3}}}}}return cC}function bo(cA){switch(ci(cA)){case 1:return"left";case 2:return"middle";case 3:return"right"}}function aF(cA){return cA.target||cA.srcElement}function ai(cA){return function(cD){cD=cD||K.event;
var cC=bo(cD);var cE=aF(cD);if(cD.type==="click"){var cB=false;if(cA&&cC==="middle"){cB=true}if(cE&&!cB){b7(cE)}}else{if(cD.type==="mousedown"){if(cC==="middle"&&cE){aw=cC;a8=cE}else{aw=a8=null}}else{if(cD.type==="mouseup"){if(cC===aw&&cE===a8){b7(cE)}aw=a8=null}else{if(cD.type==="contextmenu"){b7(cE)}}}}}}function ac(cB,cA){Y(cB,"click",ai(cA),false);if(cA){Y(cB,"mouseup",ai(cA),false);Y(cB,"mousedown",ai(cA),false);Y(cB,"contextmenu",ai(cA),false)}}function a9(cB){if(!ab){ab=true;var cC,cA=aE(a7,"ignore"),cD=x.links;if(cD){for(cC=0;cC<cD.length;cC++){if(!cA.test(cD[cC].className)){ac(cD[cC],cB)}}}}}function ax(cC,cE,cF){if(bJ){return true}bJ=true;var cG=false;var cD,cB;function cA(){cG=true}ap(function(){function cH(cJ){setTimeout(function(){if(!bJ){return}cG=false;cF.trackVisibleContentImpressions();cH(cJ)},cJ)}function cI(cJ){setTimeout(function(){if(!bJ){return}if(cG){cG=false;cF.trackVisibleContentImpressions()}cI(cJ)},cJ)}if(cC){cD=["scroll","resize"];for(cB=0;cB<cD.length;cB++){if(x.addEventListener){x.addEventListener(cD[cB],cA)
}else{K.attachEvent("on"+cD[cB],cA)}}cI(100)}if(cE&&cE>0){cE=parseInt(cE,10);cH(cE)}})}function b5(){var cB,cD,cE={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(f.userAgent))){if(f.mimeTypes&&f.mimeTypes.length){for(cB in cE){if(Object.prototype.hasOwnProperty.call(cE,cB)){cD=f.mimeTypes[cE[cB]];cr[cB]=(cD&&cD.enabledPlugin)?"1":"0"}}}if(typeof navigator.javaEnabled!=="unknown"&&A(f.javaEnabled)&&f.javaEnabled()){cr.java="1"}if(s(K.GearsFactory)){cr.gears="1"}cr.cookie=bz()}var cC=parseInt(O.width,10);var cA=parseInt(O.height,10);cr.res=parseInt(cC,10)+"x"+parseInt(cA,10)}b5();aS();aq();return{getVisitorId:function(){return aC().uuid},getVisitorInfo:function(){return cb()},getAttributionInfo:function(){return bh()},getAttributionCampaignName:function(){return bh()[0]
},getAttributionCampaignKeyword:function(){return bh()[1]},getAttributionReferrerTimestamp:function(){return bh()[2]},getAttributionReferrerUrl:function(){return bh()[3]},setTrackerUrl:function(cA){ak=cA},getTrackerUrl:function(){return ak},addTracker:function(cA,cC){if(!cC){throw new Error("A siteId must be given to add a new tracker")}if(!A(cA)||null===cA){cA=this.getTrackerUrl()}var cB=new H(cA,cC);z.push(cB);return cB},getSiteId:function(){return bA},setSiteId:function(cA){bx(cA)},setUserId:function(cA){if(!A(cA)||!cA.length){return}a6=cA;bj=bB(a6).substr(0,16)},getUserId:function(){return a6},setCustomData:function(cA,cB){if(N(cA)){aa=cA}else{if(!aa){aa={}}aa[cA]=cB}},getCustomData:function(){return aa},setCustomRequestProcessing:function(cA){bF=cA},appendToTrackingUrl:function(cA){cl=cA},getRequest:function(cA){return bV(cA)},addPlugin:function(cA,cB){a[cA]=cB},setCustomDimension:function(cA,cB){cA=parseInt(cA,10);if(cA>0){if(!A(cB)){cB=""}if(!q(cB)){cB=String(cB)}aW[cA]=cB}},getCustomDimension:function(cA){cA=parseInt(cA,10);
if(cA>0&&Object.prototype.hasOwnProperty.call(aW,cA)){return aW[cA]}},deleteCustomDimension:function(cA){cA=parseInt(cA,10);if(cA>0){delete aW[cA]}},setCustomVariable:function(cB,cA,cE,cC){var cD;if(!A(cC)){cC="visit"}if(!A(cA)){return}if(!A(cE)){cE=""}if(cB>0){cA=!q(cA)?String(cA):cA;cE=!q(cE)?String(cE):cE;cD=[cA.slice(0,a2),cE.slice(0,a2)];if(cC==="visit"||cC===2){b4();av[cB]=cD}else{if(cC==="page"||cC===3){bq[cB]=cD}else{if(cC==="event"){bP[cB]=cD}}}}},getCustomVariable:function(cB,cC){var cA;if(!A(cC)){cC="visit"}if(cC==="page"||cC===3){cA=bq[cB]}else{if(cC==="event"){cA=bP[cB]}else{if(cC==="visit"||cC===2){b4();cA=av[cB]}}}if(!A(cA)||(cA&&cA[0]==="")){return false}return cA},deleteCustomVariable:function(cA,cB){if(this.getCustomVariable(cA,cB)){this.setCustomVariable(cA,"","",cB)}},storeCustomVariablesInCookie:function(){bl=true},setLinkTrackingTimer:function(cA){be=cA},setDownloadExtensions:function(cA){if(q(cA)){cA=cA.split("|")}cq=cA},addDownloadExtensions:function(cB){var cA;if(q(cB)){cB=cB.split("|")
}for(cA=0;cA<cB.length;cA++){cq.push(cB[cA])}},removeDownloadExtensions:function(cC){var cB,cA=[];if(q(cC)){cC=cC.split("|")}for(cB=0;cB<cq.length;cB++){if(D(cC,cq[cB])===-1){cA.push(cq[cB])}}cq=cA},setDomains:function(cA){ag=q(cA)?[cA]:cA;var cE=false,cC=0,cB;for(cC;cC<ag.length;cC++){cB=String(ag[cC]);if(b6(ch,C(cB))){cE=true;break}var cD=bO(cB);if(cD&&cD!=="/"&&cD!=="/*"){cE=true;break}}if(!cE){ag.push(ch)}},setIgnoreClasses:function(cA){a7=q(cA)?[cA]:cA},setRequestMethod:function(cA){ct=cA||bM},setRequestContentType:function(cA){bY=cA||ao},setReferrerUrl:function(cA){aX=cA},setCustomUrl:function(cA){aI=bp(bi,cA)},setDocumentTitle:function(cA){aT=cA},setAPIUrl:function(cA){bd=cA},setDownloadClasses:function(cA){bg=q(cA)?[cA]:cA},setLinkClasses:function(cA){aL=q(cA)?[cA]:cA},setCampaignNameKey:function(cA){bU=q(cA)?[cA]:cA},setCampaignKeywordKey:function(cA){bc=q(cA)?[cA]:cA},discardHashTag:function(cA){bk=cA},setCookieNamePrefix:function(cA){aU=cA;av=br()},setCookieDomain:function(cA){var cB=C(cA);
if(a4(cB)){cj=cB;aS()}},setCookiePath:function(cA){aZ=cA;aS()},setVisitorCookieTimeout:function(cA){b9=cA*1000},setSessionCookieTimeout:function(cA){bS=cA*1000},setReferralCookieTimeout:function(cA){cp=cA*1000},setConversionAttributionFirstReferrer:function(cA){a3=cA},disableCookies:function(){aV=true;cr.cookie="0";if(bA){al()}},deleteCookies:function(){al()},setDoNotTrack:function(cB){var cA=f.doNotTrack||f.msDoNotTrack;cd=cB&&(cA==="yes"||cA==="1");if(cd){this.disableCookies()}},addListener:function(cB,cA){ac(cB,cA)},enableLinkTracking:function(cA){cs=true;bL(function(){aP(function(){a9(cA)})})},enableJSErrorTracking:function(){if(cf){return}cf=true;var cA=K.onerror;K.onerror=function(cF,cD,cC,cE,cB){bL(function(){var cG="JavaScript Errors";var cH=cD+":"+cC;if(cE){cH+=":"+cE}af(cG,cH,cF)});if(cA){return cA(cF,cD,cC,cE,cB)}return false}},disablePerformanceTracking:function(){aG=false},setGenerationTimeMs:function(cA){bQ=parseInt(cA,10)},enableHeartBeatTimer:function(cA){cA=Math.max(cA,1);
aJ=(cA||15)*1000;if(ck!==null){cy()}},killFrame:function(){if(K.location!==K.top.location){K.top.location=K.location}},redirectFile:function(cA){if(K.location.protocol==="file:"){K.location=cA}},setCountPreRendered:function(cA){aR=cA},trackGoal:function(cA,cC,cB){bL(function(){cg(cA,cC,cB)})},trackLink:function(cB,cA,cD,cC){bL(function(){cn(cB,cA,cD,cC)})},trackPageView:function(cA,cC,cB){bE=[];if(E(bA)){bL(function(){P(ak,bd,bA)})}else{bL(function(){bu(cA,cC,cB)})}},trackAllContentImpressions:function(){if(E(bA)){return}bL(function(){aP(function(){var cA=p.findContentNodes();var cB=b1(cA);cx(cB,be)})})},trackVisibleContentImpressions:function(cA,cB){if(E(bA)){return}if(!A(cA)){cA=true}if(!A(cB)){cB=750}ax(cA,cB,this);bL(function(){ap(function(){var cC=p.findContentNodes();var cD=aM(cC);cx(cD,be)})})},trackContentImpression:function(cC,cA,cB){if(E(bA)){return}if(!cC){return}cA=cA||"Unknown";bL(function(){var cD=am(cC,cA,cB);bb(cD,be)})},trackContentImpressionsWithinNode:function(cA){if(E(bA)||!cA){return
}bL(function(){if(bJ){ap(function(){var cB=p.findContentNodesWithinNode(cA);var cC=aM(cB);cx(cC,be)})}else{aP(function(){var cB=p.findContentNodesWithinNode(cA);var cC=b1(cB);cx(cC,be)})}})},trackContentInteraction:function(cC,cD,cA,cB){if(E(bA)){return}if(!cC||!cD){return}cA=cA||"Unknown";bL(function(){var cE=au(cC,cD,cA,cB);bb(cE,be)})},trackContentInteractionNode:function(cB,cA){if(E(bA)||!cB){return}bL(function(){var cC=cv(cB,cA);bb(cC,be)})},logAllContentBlocksOnPage:function(){var cB=p.findContentNodes();var cA=p.collectContent(cB);if(console!==undefined&&console&&console.log){console.log(cA)}},trackEvent:function(cB,cD,cA,cC,cE){bL(function(){af(cB,cD,cA,cC,cE)})},trackSiteSearch:function(cA,cC,cB,cD){bL(function(){bD(cA,cC,cB,cD)})},setEcommerceView:function(cD,cA,cC,cB){if(!A(cC)||!cC.length){cC=""}else{if(cC instanceof Array){cC=JSON2.stringify(cC)}}bq[5]=["_pkc",cC];if(A(cB)&&String(cB).length){bq[2]=["_pkp",cB]}if((!A(cD)||!cD.length)&&(!A(cA)||!cA.length)){return}if(A(cD)&&cD.length){bq[3]=["_pks",cD]
}if(!A(cA)||!cA.length){cA=""}bq[4]=["_pkn",cA]},addEcommerceItem:function(cE,cA,cC,cB,cD){if(cE.length){cm[cE]=[cE,cA,cC,cB,cD]}},trackEcommerceOrder:function(cA,cE,cD,cC,cB,cF){bt(cA,cE,cD,cC,cB,cF)},trackEcommerceCartUpdate:function(cA){a1(cA)}}}function y(){return{push:T}}function b(af,ae){var ag={};var ac,ad;for(ac=0;ac<ae.length;ac++){var aa=ae[ac];ag[aa]=1;for(ad=0;ad<af.length;ad++){if(af[ad]&&af[ad][0]){var ab=af[ad][0];if(aa===ab){T(af[ad]);delete af[ad];if(ag[ab]>1){W("The method "+ab+' 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: http://developer.piwik.org/guides/tracking-javascript-guide#multiple-piwik-trackers')}ag[ab]++}}}}return af}Y(K,"beforeunload",U,false);Date.prototype.getTimeAlias=Date.prototype.getTime;z.push(new H());var u=["addTracker","disableCookies","setTrackerUrl","setAPIUrl","setCookiePath","setCookieDomain","setDomains","setUserId","setSiteId","enableLinkTracking"];
_paq=b(_paq,u);for(w=0;w<_paq.length;w++){if(_paq[w]){T(_paq[w])}}_paq=new y();d={addPlugin:function(aa,ab){a[aa]=ab},getTracker:function(aa,ab){if(!A(ab)){ab=this.getAsyncTracker().getSiteId()}if(!A(aa)){aa=this.getAsyncTracker().getTrackerUrl()}return new H(aa,ab)},getAsyncTracker:function(ab,ae){var ad;if(z&&z[0]){ad=z[0]}if(!ae&&!ab){return ad}if((!A(ae)||null===ae)&&ad){ae=ad.getSiteId()}if((!A(ab)||null===ab)&&ad){ab=ad.getTrackerUrl()}var ac,aa=0;for(aa;aa<z.length;aa++){ac=z[aa];if(ac&&String(ac.getSiteId())===String(ae)&&ac.getTrackerUrl()===ab){return ac}}}};if(typeof define==="function"&&define.amd){define("piwik",[],function(){return d})}return d}())}if(window&&window.piwikAsyncInit){window.piwikAsyncInit()}(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 */
};