(function(h,f,L){var Y;function w(a,b){return function(){try{return a.apply(this,arguments)}catch(c){oa(c,b)}}}function oa(a,b){if(0.01>Math.random())try{(new Z).log("jserrs",$,a.message,b,B.href,O,"string"==typeof a.stack&&a.stack.replace(/\n/g,"\\n"))}catch(c){var e=["cp: "+b,a.name+": "+a.message,"debug: "+O,"code: "+$,"stack: "+a.stack];(new Image).src="//an.yandex.ru/jserr/101500?cnt-class=100&errmsg="+encodeURIComponent(e.join("; ").replace(/\r?\n/g,"\\n"))}}function z(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "), c=b.length,e=c;e--;)a[b[e]]="";try{for(var d=h.location,e=c;e--;){var K=b[e];a[K]=""+d[K]}}catch(g){B&&(a=B)}return a}function lb(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function ga(a){return-1!==(""+h.navigator.userAgent).toLowerCase().search(a)}function pa(a,b){if(!a||!b)return!1;for(var c=[],e=0;ec||36E5b||0>c||0>d||0>g)return null;e=b<<18|c<<12|d<<6|g;b=e>>16&255;c=e>>8&255;e&=255;f=64==d?f+String.fromCharCode(b):64==g?f+String.fromCharCode(b,c):f+String.fromCharCode(b,c,e)}while(hh?(d+=String.fromCharCode(h),g++):191h?(f=a.charCodeAt(g+ 1),d+=String.fromCharCode((h&31)<<6|f&63),g+=2):(f=a.charCodeAt(g+1),b=a.charCodeAt(g+2),d+=String.fromCharCode((h&15)<<12|(f&63)<<6|b&63),g+=3);return d}function ua(a){try{delete h[a]}catch(b){h[a]=L}}function va(a){var b=f.createElement("script");b.type="text/javascript";b.async=!0;b.src=a;try{var c=f.getElementsByTagName("html")[0];f.getElementsByTagName("head")[0]||c.appendChild(f.createElement("head"));var e=f.getElementsByTagName("head")[0];e.insertBefore(b,e.firstChild)}catch(d){}}function Ta(a, b,c,e,d,K){function q(a){var b=(new Date).getTime();a&&b>8,b&255])}function r(a,b){g.mergeArrays(a,[b&255])}function m(a,b){for(b=Math.max(0,b|0);127>=7;g.mergeArrays(a,[b])}function v(a,b){255h)return null;var n={mousemove:V,click:Ja,dblclick:Ka,mousedown:$,mouseup:Ha,touch:na}[b];if(!n)return null;var f=l.getElementXY(c);c=[];r(c,n);m(c,a);m(c,h);m(c,Math.max(0,e[0]-f[0]));m(c,Math.max(0,e[1]-f[1])); /^mouse(up|down)|click$/.test(b)&&(a=d||g,r(c,2>a?La:a==(d?2:4)?Na:Ma));return c}function F(a,b,c,e){b=b[C];if(!b||0>b)return null;var d=[];r(d,Ia);m(d,a);m(d,b);m(d,c[0]);m(d,c[1]);r(d,0);r(d,0);r(d,e);return d}function G(a,b){var c=[];r(c,Z);m(c,a);m(c,b[0]);m(c,b[1]);return c}function J(a,b,c){var d=[];c=c[C];if(!c||0>c)return null;r(d,fa);m(d,a);m(d,b[0]);m(d,b[1]);m(d,c);return d}function H(a,b,c){var d=[];r(d,Fa);m(d,a);m(d,b[0]);m(d,b[1]);m(d,c[0]);m(d,c[1]);return d}function E(a,b,c,d){var e= [];r(e,ga);m(e,a);p(e,b);r(e,c);a=d[C];if(!a||0>a)a=0;m(e,a);return e}function x(a,b){var c,d;0==b.length?d=c="":100>=b.length?(c=b,d=""):200>=b.length?(c=b.substr(0,100),d=b.substr(100)):(c=b.substr(0,97),d=b.substr(b.length-97));var e=[];r(e,Ga);m(e,a);u(e,c);u(e,d);return e}function S(a){var b=[];r(b,va);m(b,a);return b}function aa(a){var b=[];r(b,pa);m(b,a);return b}function M(a){var b=[];r(b,qa);m(b,a);return b}function Cb(a,b){var c=[];r(c,ra);m(c,a);m(c,b[C]);return c}function Db(a,b){var c= [];r(c,ta);m(c,a);m(c,b[C]);return c}function ba(a,b,c){var d=[];r(d,ua);m(d,a);m(d,b[C]);v(d,String(c));return d}function X(a){var b=a[C];if(!b||0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||l.classNameExists(a.form,"-metrika-noform"))return null;var c=l.getFormNumber(a.form);if(0>c)return null;var d;d="INPUT"==a.nodeName?{text:0,color:0,date:0,datetime:0,"datetime-local":0,email:0,number:0,range:0,search:0,tel:0,time:0,url:0,month:0,week:0,password:2,radio:3,checkbox:4,file:6,image:7}[a.type]: {SELECT:1,TEXTAREA:5}[a.nodeName];if("number"!=typeof d)return null;for(var e=-1,g=a.form.elements,h=g.length,n=0,f=0;ne)return null;g=[];r(g,ja);m(g,b);m(g,c);m(g,d);u(g,a.name||"");m(g,e);return g}function N(a,b){var c=l.getFormNumber(b);if(0>c)return null;for(var d=b.elements,e=d.length,h=[],n=0;n=c)b=null;else{var d= Ra,e=0,n=l.getElementParent(a),g=n&&n[C]?n[C]:0;0>g&&(g=0);var h=a.nodeName.toUpperCase(),f=jb[h];f||(d|=Oa);var K=l.getElementNeighborPosition(a);K||(d|=Pa);var q=l.getElementRegion(a);(n=n?l.getElementRegion(n):null)&&q[0]==n[0]&&q[1]==n[1]&&q[2]==n[2]&&q[3]==n[3]&&(d|=mb);wa[c].pos=q[0]+"x"+q[1];wa[c].size=q[2]+"x"+q[3];a.id&&"string"==typeof a.id&&(d|=nb);(n=l.calcTextChecksum(a))&&(d|=Qa);var k=l.calcAttribChecksum(a);k&&(e|=Sa);var t;b:{t=l.getElementChildren(l.getElementParent(a),a.tagName); for(var D=0;D=e||16>e&&100>c||20>c&&256>e||(pb=b,$a=d,t(a))}}function xa(){var a=l.getDocumentScroll(),b=sa();b-qbMath.abs(a[0]-ab[0])&&10>Math.abs(a[1]-ab[1])||(qb=b,ab=a,n(G,[s(),a]))}function rb(a){a=I.getTarget(a);var b=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(b=bb[a.localId],!b||10>Math.abs(c[0]-b[0])&& 10>Math.abs(c[1]-b[1]))return}else{for(;bb[b];)b=Math.random();a.localId=b}bb[a.localId]=c;a!==f&&(y(a),n(J,[s(),c,a]))}function cb(){n(H,[s(),l.getViewportSize(),l.getDocumentSize()])}function ya(){n(ca,[],!0)}function sb(a){return(a.shiftKey?tb:0)|(a.ctrlKey?db:0)|(a.altKey?ub:0)|(a.metaKey?Ta:0)|(a.ctrlKey||a.altKey?za:0)}function Xa(a){return"INPUT"==a.tagName?"password"==a.type||a.name&&vb.test(a.name)||a.id&&vb.test(a.id):!1}function wb(a,b,c){a=I.getTarget(a);Xa(a)||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)|| (y(a),n(E,[s(),b,c,a]))}function xb(a){var b=a.keyCode,c=sb(a);if({3:1,8:1,9:1,13:1,16:1,17:1,18:1,19:1,20:1,27:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,45:1,46:1,91:1,92:1,93:1,106:1,110:1,111:1,144:1,145:1}[b]||112<=b&&123>=b||96<=b&&105>=b||c&za)19==b&&(c&~za)==db&&(b=144),wb(a,b,c|za),eb=!1,g.setTimeout(function(){eb=!0},1),67==b&&c&db&&!(c&ub||c&tb)&&fb()}function yb(a){eb&&!gb&&0!==a.which&&(wb(a,a.charCode||a.keyCode,sb(a)),gb=!0,g.setTimeout(function(){gb=!1},1))}function fb(){hb||(hb=!0, Za&&n(S,[s()]),g.setTimeout(function(){hb=!1},1))}function ib(){ha||(ha=!0,n(aa,[s()]))}function ia(){ha&&(ha=!1,n(M,[s()]))}function zb(a){(!ha||a&&!a.fromElement)&&ib()}function Ab(a){a&&!a.toElement&&ia()}function Aa(a){if((a=I.getTarget(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[C])y(a);else{var b=a.form;if(b)for(var b=b.elements,c=b.length,d=0;da.deltaY?2:0:"mousewheel"==a.type&&(c=0a.wheelDelta?1:0);c&&(y(b),n(F,[s(),b,I.getPos(a),c]))}}function P(a){(a=I.getTarget(a))&&"BODY"==a.tagName&&ea.append([],!0)}var ea=new Bb({protocol:a,counterId:b,counterType:c,meta:{url:z().href, hitId:d,timezone:Ca,timestamp:Da}}),R=20,Q=50,T=10,da=1,V=2,Z=3,fa=16,$=4,ga=5,ja=7,ka=9,la=10,ma=11,na=12,oa=13,pa=14,qa=15,ra=17,ta=18,ua=19,va=27,Fa=28,Ga=29,Ha=30,Ia=31,Ja=32,Ka=33,La=1,Ma=2,Na=4,ob=1,Oa=2,Pa=4,mb=8,Qa=16,nb=32,Ra=64,Sa=2,ub=1,tb=2,db=4,Ta=8,za=16,jb={A:1,ABBR:2,ACRONYM:3,ADDRESS:4,APPLET:5,AREA:6,B:7,BASE:8,BASEFONT:9,BDO:10,BIG:11,BLOCKQUOTE:12,BODY:13,BR:14,BUTTON:15,CAPTION:16,CENTER:17,CITE:18,CODE:19,COL:20,COLGROUP:21,DD:22,DEL:23,DFN:24,DIR:25,DIV:26,DL:27,DT:28,EM:29, FIELDSET:30,FONT:31,FORM:32,FRAME:33,FRAMESET:34,H1:35,H2:36,H3:37,H4:38,H5:39,H6:40,HEAD:41,HR:42,HTML:43,I:44,IFRAME:45,IMG:46,INPUT:47,INS:48,ISINDEX:49,KBD:50,LABEL:51,LEGEND:52,LI:53,LINK:54,MAP:55,MENU:56,META:57,NOFRAMES:58,NOSCRIPT:59,OBJECT:60,OL:61,OPTGROUP:62,OPTION:63,P:64,PARAM:65,PRE:66,Q:67,S:68,SAMP:69,SCRIPT:70,SELECT:71,SMALL:72,SPAN:73,STRIKE:74,STRONG:75,STYLE:76,SUB:77,SUP:78,TABLE:79,TBODY:80,TD:81,TEXTAREA:82,TFOOT:83,TH:84,THEAD:85,TITLE:86,TR:87,TT:88,U:89,UL:90,VAR:91,NOINDEX:100}, Ua=0;q(0);var Va=0,Wa=1,pb=0,$a=[0,0],qb=0,ab=[0,0],bb={},vb=/^(password|passwd|pswd)$/,eb=!0,gb=!1,Za="",hb=!1,ha=!0,kb=sa(),C="metrikaId_"+Math.random(),wa={},Ea=":submit"+Math.random();if("MetrikaPlayer"!=h.name){k.on(f,"mousemove",A);k.on(f,"click,dblclick,mousedown",t);k.on(f,"mouseup",D);k.on(h,"scroll",xa);if("onmousewheel"in f)k.on(f,"mousewheel",W);else k.on(f,"wheel",W);k.on(h,"beforeunload",ya);if(!Eb)k.on(h,"unload",ya);k.on(h,"resize",cb);k.on(f,"keydown",xb);k.on(f,"keypress",yb);k.on(f, "copy",fb);k.on(f,"touchmove,touchstart",Y);if(f.body)k.on(f,"mouseleave",P);f.attachEvent&&!h.opera?(k.on(f,"focusin",zb),k.on(f,"focusout",Ab)):(k.on(h,"focus",ib),k.on(h,"blur",ia),k.on(f,"blur",ia));f.addEventListener?(k.on(f,"scroll",rb),k.on(f,"focus",Aa),k.on(f,"blur",Ba),k.on(f,"change",U),k.on(f,"submit",L)):f.attachEvent&&(k.on(f,"focusin",Aa),k.on(f,"focusout",Ba),function(){for(var a=f.getElementsByTagName("form"),b=0;b]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>","gi"),k.sendContent(l.getDocumentHTML().replace(e,""),K,d,Ca,Da),!0;n&&(n.open("get",z().href,!0),n.onreadystatechange=w(function(){if(4==n.readyState){var a=n.getResponseHeader("content-type"); q&&-1===a.indexOf("charset=")&&(a=K);k.sendContent(n.responseText,a,d,Ca,Da)}},"updatePage.1"),n.overrideMimeType&&q&&n.overrideMimeType(K),n.send(null));return!0},"uploadPage")}return{start:function(){ea.activate()},stop:function(){ea.clear();k.un(f,"mousemove",A);k.un(f,"click,dblclick,mousedown",t);k.un(f,"mouseup",D);k.un(f,"mousewheel,wheel",W);k.un(h,"scroll",xa);k.un(h,"beforeunload",ya);k.un(h,"unload",ya);k.un(h,"resize",cb);k.un(f,"keydown",xb);k.un(f,"keypress",yb);k.un(f,"copy",fb);k.un(f, "touchmove,touchstart",Y);f.body&&k.un(f,"mouseleave",P);k.un(f,"focusin",zb);k.un(f,"focusout",Ab);k.un(h,"focus",ib);k.un(h,"blur",ia);k.un(f,"blur",ia);f.removeEventListener?(k.un(f,"scroll",rb),k.un(f,"focus",Aa),k.un(f,"blur",Ba),k.un(f,"change",U),k.un(f,"submit",L)):f.detachEvent&&(k.un(f,"focusin",Aa),k.un(f,"focusout",Ba),function(){for(var a=f.getElementsByTagName("form"),b=0;b"+a.innerHTML+""}(c=f.doctype)&&(b="\n");return b+a},getRootElement:function(){var a=f.documentElement;return"CSS1Compat"==f.compatMode?a:f.body||a},getViewportSize:function(){var a=l.getRootElement();return[a.clientWidth,a.clientHeight]},getDocumentSize:function(){var a=l.getRootElement(),b=l.getViewportSize();return[Math.max(a.scrollWidth,b[0]),Math.max(a.scrollHeight,b[1])]},getDocumentScroll:function(){return[h.pageXOffset||f.documentElement&&f.documentElement.scrollLeft||f.body&&f.body.scrollLeft||0,h.pageYOffset|| f.documentElement&&f.documentElement.scrollTop||f.body&&f.body.scrollTop||0]},getElementXY:function(a){if(!a.ownerDocument||"PARAM"==a.tagName||a==f.body||a==f.documentElement)return[0,0];if(a.getBoundingClientRect){a=a.getBoundingClientRect();var b=l.getDocumentScroll();return[Math.round(a.left+b[0]),Math.round(a.top+b[1])]}for(var c=b=0;a;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return[b,c]},getElementParent:function(a){return a==f.documentElement?null:a==f.body?f.documentElement:a.parentNode}}, g={isArray:function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"==Object.prototype.toString.call(a)},mergeArrays:function(a){for(var b=1;b>8,h=h&255,h=h^f;e+=h;d+=e}while(--g);e=(e&255)+(e>>8);d=(d&255)+(d>>8)}a=(e&255)+(e>>8)<<8|(d&255)+(d>>8);return 65535==a?0:a};l.calcTextChecksum=function(a){var b="";a=a.childNodes;for(var c=0,e=a.length;c]*>|[\u0000-\u0020])/g,""))};l.getFormNumber=function(a){for(var b=f.getElementsByTagName("form"),c=0,e=b.length;ca.selectedIndex:!0};l.getElementsByClassName=function(a,b){b=b||f;for(var c=b.getElementsByTagName("*"),e=[],d=0;darguments.length?!0:!!d;for(var g=b.split(","),f=0;farguments.length?!0:!!d;for(var g=b.split(","),h=0;harguments.length&&(b=a,a=0);1>arguments.length&& (b=1073741824);return Math.floor(Math.random()*(b-a))+a};var R=F.inherit({id:"form",enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){R.superclass._initComponent.apply(this,arguments);"_htmlfile"in R.prototype||(R.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:f)},request:function(a,b,c,e){var d=this._doc;if(!d)return c.call(e,!1);b=this._splitParams(b);var h="ifr"+g.random(),f=d.createElement("div");f.style.position= "absolute";f.style.left="-99999px";f.style.top="-99999px";var k=['','
'];g.forEachKey(b.post,function(a){g.mergeArrays(k,[''])});g.mergeArrays(k,["
"]);f.innerHTML=k.join("");d.body.appendChild(f);var l=f.getElementsByTagName("form")[0];g.forEachKey(b.post, function(a,b){l[a].value=b});l.submit();g.setTimeout(function(){d.body.removeChild(f)},1E4,"TransportForm.request.2");return c.call(e,!0)},_createHtmlfile:function(){try{if(h.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();a.write("");a.close();return a}}catch(b){}return null}}),Q=R.inherit({id:"htmlfile",htmlfileOnly:!0}),H=F.inherit({id:"img",request:function(a,b,c,e){a=this._buildUrl(a,b);b=f.createElement("img");b.onload=w(function(){c.call(e,!0)},"TransportImage.request"); b.onerror=w(function(){c.call(e,!1)},"TransportImage.request");b.src=a}});g.defer=function(a,b,c,e,d){return g.setTimeout(function(){a.apply(c,e||[])},b,d)};var S=u.inherit({protocol:"",host:"mc.yandex.ru",resource:"",counterId:"",counterType:0,retry:!1,transports:[E,H,Q],_initComponent:function(){S.superclass._initComponent.apply(this,arguments);this.retry&&(this._storage=new aa)},send:function(a,b,c,e){var d=this._registerRequest(a,b);this._sendSavedRequest(d,a,b,c,e)},_sendSavedRequest:function(a, b,c,e,d){var f=h.Ya._metrika.firstReqStatus;if("process"==f)h.Ya._metrika.firstReqCallbacks=g.mergeArrays(h.Ya._metrika.firstReqCallbacks||[],[[this,arguments]]);else{f||(h.Ya._metrika.firstReqStatus="process");f={};this.counterType&&(f["cnt-class"]=this.counterType);g.mixin(f,b);c.st=Math.round((new Date).getTime()/1E3);var k=[this.protocol,"//",this.host,"/"+this.resource+"/"+this.counterId].join(""),l=[];c&&(g.forEachKey(c,function(a,b){"t"!=a&&g.mergeArrays(l,[a,b])}),c.t&&g.mergeArrays(l,["t", c.t]));l.length&&(f["browser-info"]=l.join(":"));return S.superclass.send.call(this,k,f,function(){h.Ya._metrika.firstReqStatus="complete";this._unregisterRequest(a);var b=h.Ya._metrika.firstReqCallbacks;h.Ya._metrika.firstReqCallbacks=null;if(b)for(var c=0;c+new Date&&2>=b.browserInfo.rqnl&&(new S({protocol:b.protocol,host:b.host,resource:b.resource,counterId:b.counterId,counterType:b.counterType,postParams:b.postParams||[],retry:!0})).send(b.params,b.browserInfo)})};var T={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", tail:"+/=",tailSafe:"*-_",encode:function(a,b){for(var c=(T.abc+(b?T.tailSafe:T.tail)).split(""),e=a.length,d=[],f=e-e%3,h,k=0;k>18&63],c[h>>12&63],c[h>>6&63],c[h&63]]);switch(e-f){case 1:h=a[f]<<4;g.mergeArrays(d,[c[h>>6&63],c[h&63],c[64],c[64]]);break;case 2:h=(a[f]<<10)+(a[f+1]<<2),g.mergeArrays(d,[c[h>>12&63],c[h>>6&63],c[h&63],c[64]])}return d.join("")}},kb={encode:function(a){for(var b=[],c=0,e=a.length;cd?b.push(d):(127d?b.push(d>>6|192):(b.push(d>>12|224),b.push(d>>6&63|128)),b.push(d&63|128))}return b}},Fb=S.inherit({resource:"webvisor",transports:[E,R],postParams:["wv-data"],sendContent:function(a,b,c,e,d,g,h){if(!a)return!1;-1+new Date&&this.onFlush.call(this.onFlushCtx||this,a.data,a.meta,a.pnum);this.clear()}},append:function(a,b){g.mergeArrays(this._data,a);this._saveToStorageThrottled();this.active&&((b||this._data.length>=this.maxBufferSize)&&this._flush(),this._flushTID||(this._flushTID=g.defer(this._flush,this.flushTimeout,this,[],"DataBuffer._flush")))},activate:function(){this.active||(this.active= !0,this.append([]))},clear:function(){this._data.length=0;this._flushTID=null;this.storage&&this.storage.remove(this.storageKey)},_flush:function(){this.onFlush.call(this.onFlushCtx||this,this._data,this.meta,this._packetNumber);this._packetNumber++;this.clear()},_saveToStorage:function(){this.storage&&this._data.length&&this.storage.set(this.storageKey,{data:this._data,meta:this.meta,pnum:this._packetNumber,time:+new Date})}});g.trim=function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length> b&&(a=a.substr(0,b));return a};g.arrayIndexOf=function(a,b){for(var c=0;c>>0};v.getFingerPrint=function(){var a=[];if(G.plugins&&G.plugins.length)for(var b=0;bHb)var v=!0;else r("site-info",a);d.saveRef&&(Y=c);g.mixin(f,this._getTechInfo(b,d,this.counterId,k,l,this._trackHash,this.hitId,this.webvisor,this.counter));this.send(m,f,function(){v&&(new da({protocol:this.protocol,counterType:this.counterType,counterId:this.counterId,hitId:this.hitId,trackHash:this.trackHash,webvisor:this.webvisor,counterNum:this.counterNum,counter:this.counter})).sendParams(e);s&&s.apply(p,arguments)}, this)}},_prepareHitUrl:function(a){var b=z(),c=b.host,b=b.href;if(!a)return b;if(-1!=a.search(/^\w+:\/\//))return a;var e=a.charAt(0);if("?"==e)return e=b.search(/\?/),-1==e?b+a:b.substr(0,e)+a;if("#"==e)return e=b.search(/#/),-1==e?b+a:b.substr(0,e)+a;if("/"==e){if(e=b.search(c),-1!=e)return b.substr(0,e+c.length)+a}else return c=b.split("/"),c[c.length-1]=a,c.join("/");return a},_getTechInfo:function(a,b,c,e,d,f,k,w,s){function p(a,b){a&&b&&(m[a]=b)}function r(a){b[a]&&p(a,"1")}b=b||{};var m={}; e=e||N.getTimestamp();d=d||N.getTimezone();p("j",v.getJavaEnabled()?"1":"");V&&p("s",V.width+"x"+V.height+"x"+(V.colorDepth||V.pixelDepth));h.devicePixelRatio&&p("sk",h.devicePixelRatio);p("f",v.getFlashVersion());p("l",v.getSilverlightVersion());p("fpr",v.getFingerPrint());p("cn",this.counterNum);if(!b.pa){var u=l.getViewportSize();p("w",u[0]+"x"+u[1])}p("z",d);p("i",e);p("et",Math.round((new Date).getTime()/1E3));p("en",l.getDocumentCharset());p("v",$);p("c",G.cookieEnabled?"1":"");p("jv",v.getJScriptVersion()); p("la",v.getLanguage());f&&p("wh","1");d="ar ln dl ad nb pa pq".split(" ");for(e=0;ek&&(k*=-1),k%=65535;p("wn",k||g.fletcher(h.name));try{h.history&&p("hl",String(h.history.length))}catch(z){}}k="";this.sendTitle&&(k=this._getTitle(a));p("t",k);return m},_getTitle:function(a){var b="";b="undefined"==typeof a?(b=l.getDocumentTitle())?g.trim(b,Ga):"":g.trim(a,Ga);return b}});g.array2Props=function(a){for(var b=a.length,c={},e=c,d=0;d=v.getJScriptVersion()};var ca={};ca._cookie=new ba({onlyCurrentDomain:!0});ca.log=w(function(){var a=-1a?"0":"")+a};N.getTimestamp=function(){for(var a=new Date,a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],b="",c=0;cc||1Math.random())&&new Ia({counter:d})); d._webvisor&&(N=new Ta(U,a,c,x,P,d))}function q(a){var b={delay:Ja};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Ja:a.delay;break;case "boolean":b.on=a;break;default:return}d._trackLinks=b}function F(){q(!1);k.on(f,"click",function(a){d._trackLinks.on&&s(a)})}function s(a){var b=La(a);if(b){var c=!1,e=""+b.href,f=e?e.split(/\?/)[0]:"",k=function(a){var c=lb(b.innerHTML.replace(/<\/?[^>]+>/gi,""));M.sendClickLink(e,e==c?"":c,a)},m=function(){var c; var e=b.target;c=!1;b.hostname?(e&&"_self"!=e&&"_top"!=e&&"_parent"!=e||(c=!0),(e=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&h.Event&&(e=a.modifiers&h.Event.CONTROL_MASK||a.modifiers&h.Event.SHIFT_MASK||a.modifiers&h.Event.ALT_MASK),c=c&&!e):c=!1;return c?d._trackLinks.delay:0};if(Ka.test(f)||Ka.test(e)||pa(e,Q)||pa(f,Q))c=!0;var p=l.classNameExists(b,"ym-disable-tracklink"),f=l.classNameExists(b,"ym-external-link");p||(p={ln:!0,dl:c},f?(p.delay=m(),k(p)):(f=b.hostname||g.parseUrl(b.href).hostname|| "",Ma(z().hostname,f)?c&&(p.ln=!1,p.delay=m(),k(p)):e&&-1!=e.search(/^ *(data|javascript):/i)||(p.ut=ka,p.delay=m(),k(p))))}}function p(b){"undefined"==typeof b&&(b=!0);!0===b&&(b={});d._clickmap&&d._clickmap.destroy();b&&(d._clickmap=new Kb({filter:b.filter,ignoreTags:b.ignoreTags,quota:b.quota,isTrackHash:b.isTrackHash,protocol:U,counterId:a,counterType:c,startTime:Nb}))}function r(a,b){function c(){if(!z){w&&g.clearTimeout(w);var d=b,e;e=r?s:s+ +new Date-u;d-=e;0>d&&(d=0);w=g.setTimeout(function(){z= !0;m(!1);a()},d,"trackUserTime")}}function d(){r=p=q=!0;s+=+new Date-u;u=+new Date;c()}function e(){p||q||(s=0);u=+new Date;p=q=!0;r=!1;c()}function l(){q||(p=!0,r=!1,q=!0,c())}function m(a){for(var b=0;bMath.random())&&r(function(){d.notBounce()},b)}}function I(a){function b(){var a=z().hash.split("#")[1];if("undefined"==typeof a)return!1;var c=a.indexOf("?");0