(function(c,b,ia){function Q(e){for(var b=1,c=e.length;b<arguments.length;b++)e[c++]=arguments[b];return e.length}function K(){for(var e={},b="hash host hostname href pathname port protocol search".split(" "),p=b.length,r=p;r--;)e[b[r]]="";try{for(var n=c.location,r=p;r--;){var x=b[r];e[x]=""+n[x]}}catch(u){S&&(e=S)}return e}function Hb(e){return e?(""+e).replace(/^\s+/,"").replace(/\s+$/,""):""}function Ta(){return-1!=K().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)}function Ha(){return"MetrikaPlayer"==
c.name}function Tb(){var e=b.documentElement,c=b.doctype,p=e.attributes,r="",n="",x="",n=e.outerHTML;if(!n){for(n=0;n<p.length;n++){var u=p[n];u&&(r+=" "+u.name+'="'+(u.value||"")+'"')}n="<html"+r+">"+e.innerHTML+"</html>"}c&&(x="<!DOCTYPE "+c.name+(c.publicId?' PUBLIC "'+c.publicId+'"':"")+(c.systemId?' "'+c.systemId+'"':"")+">\n");return x+n}function mb(e){var b=[],c;for(c in e)e.hasOwnProperty(c)&&(b[b.length]=c+"="+encodeURIComponent(e[c]));return b.join("&")}function Ia(e){for(var b=e.length,
c=0,r=255,n=255;b;){var x=21<b?21:b,b=b-x;do{var u="string"==typeof e?e.charCodeAt(c):e[c];c++;if(255<u)var A=u>>8,u=u&255,u=u^A;r+=u;n+=r}while(--x);r=(r&255)+(r>>8);n=(n&255)+(n>>8)}e=(r&255)+(r>>8)<<8|(n&255)+(n>>8);return 65535==e?0:e}function Z(e,c,p,r){var n="";p&&(n=new Date,n.setTime(n.getTime()+6E4*p),n=";expires="+n.toGMTString());b.cookie=e+"="+encodeURIComponent(c)+n+";path="+(r||"/")}function ra(e){return b.cookie.match(RegExp("(?:^|;\\s*)"+e+"=([^;]*)"))?decodeURIComponent(RegExp.$1):
null}function nb(){Z("_metrika_enabled","1",60);var b=!!ra("_metrika_enabled");Z("_metrika_enabled","",-1);return b}function Ja(){var e=b.documentElement;return"CSS1Compat"==b.compatMode?e:b.body||e}function Ua(){var b=Ja();return[b.clientWidth,b.clientHeight]}function Va(){var b=Ja(),c=Ua();return[Math.max(b.scrollWidth,c[0]),Math.max(b.scrollHeight,c[1])]}function Ka(){return[c.pageXOffset||b.documentElement&&b.documentElement.scrollLeft||b.body&&b.body.scrollLeft||0,c.pageYOffset||b.documentElement&&
b.documentElement.scrollTop||b.body&&b.body.scrollTop||0]}function Wa(e){if(!e.ownerDocument||"PARAM"==e.tagName||e==b.body||e==b.documentElement)return[0,0];if(e.getBoundingClientRect)return e=e.getBoundingClientRect(),[Math.round(e.left+U[0]),Math.round(e.top+U[1])];for(var c=0,p=0;e;)c+=e.offsetLeft,p+=e.offsetTop,e=e.offsetParent;return[c,p]}function Y(e,c){return e==b.documentElement?null:c?e.tagName.toLowerCase()===c?e:Y(e.parentNode,c):e==b.body?b.documentElement:e.parentNode}function La(b,
c){var p=[];if(b)for(var r=b.childNodes,n=0,x=r.length;n<x;n++){var u=r[n];"INPUT"==u.nodeName&&u.type&&"hidden"==u.type.toLocaleLowerCase()||c&&u.nodeName!=c||Q(p,u)}return p}function Ma(e){var c=Wa(e);e=e==b.body||e==b.documentElement?Va():[e.offsetWidth,e.offsetHeight];return[c[0],c[1],e[0],e[1]]}function Xa(b){var c="";b=b.childNodes;for(var p=0,r=b.length;p<r;p++)3==b[p].nodeType&&(c+=b[p].nodeValue);return Ia(c.replace(/[\u0000-\u0020]+/g,""))}function Za(b){var c="",p="className width height align title alt name".split(" ");
"IMG"==b.tagName&&(c+=b.src.toLowerCase());"A"==b.tagName&&(c+=b.href.toLowerCase());for(var r=0;r<p.length;r++)b.getAttribute&&(c+=String(b.getAttribute(p[r])||"").toLowerCase());return Ia(c.replace(/[\u0000-\u0020]+/g,""))}function $a(c){for(var E=b.getElementsByTagName("form"),p=0,r=E.length;p<r;p++)if(E[p]==c)return p;return-1}function ob(b,c){return RegExp("(?:^|\\s)"+c+"(?:\\s|$)").test(b.className)}function ab(b){return"INPUT"==b.nodeName&&"submit"!=b.type&&"image"!=b.type&&"hidden"!=b.type?
"radio"==b.type||"checkbox"==b.type?!b.checked:!b.value:"TEXTAREA"==b.nodeName?!b.value:"SELECT"==b.nodeName?0>b.selectedIndex:!0}function $(b,c,p,r){V[V.length]=[p,p];b.addEventListener?b.addEventListener(c,p,!!r):b.attachEvent&&b.attachEvent("on"+c,p)}function Na(b,c,p,r){for(var n=0;n<V.length;n++)if(V[n]&&V[n][0]==p){var x=V[n][1];delete V[n];break}x&&(b.removeEventListener?b.removeEventListener(c,x,!!r):b.detachEvent&&b.detachEvent("on"+c,x))}function ca(b){try{delete c[b]}catch(E){c[b]=ia}}
function sa(c){var E=b.createElement("script");E.type="text/javascript";E.async=!0;E.src=c;try{var p=b.getElementsByTagName("html")[0];b.getElementsByTagName("head")[0]||p.appendChild(b.createElement("head"));var r=b.getElementsByTagName("head")[0];r.insertBefore(E,r.firstChild)}catch(n){}}function ta(){if(top!=c&&parent==top&&c.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var e=b.createElement("div");e.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';
var E=e.firstChild;setTimeout(function(){var c=b.body||b.documentElement;c.insertBefore(E,c.firstChild);try{var e=E.contentWindow.document}catch(n){}e&&(e.open(),e.write('<!doctype html><html><head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,IE=edge" /></head><body><script type="text/javascript">var newversion = true;try {if (top.postMessage) {window.onmessage = function(evt) {evt = evt || window.event;try {var message = new Function("return " + evt.data)();} catch (e) {return;}if (/(^|\\.)yandex\\.(ru|com|ua|kz|by|com\\.tr)(:\\d{4})?$/.test(evt.origin) && message.name == "script" && message.data) {var head = document.getElementsByTagName("head")[0];var base = document.createElement("base");base.href = message.data;head.appendChild(base);var script = document.createElement("script");script.src = message.data;head.appendChild(script);if (navigator.userAgent.indexOf("Firefox/3.6.") > -1) {parent.removeEventListener("message", window.onmessage, false);}window.onmessage = null;}};if (navigator.userAgent.indexOf("Firefox/3.6.") > -1) {parent.addEventListener("message", window.onmessage, false);}top.postMessage(\'{"name":"ping"}\', "*");}} catch (e) {}\x3c/script></body></html>'),
e.close())},500)}}function pb(e,E,p,r,n,x){function u(w){return function(){try{return w.apply(this,arguments)}catch(a){var b=w&&w.name||"";(new Image).src="//an.yandex.ru/jserr/"+e+"?"+mb({"cnt-class":100+E,errmsg:a.name+": "+a.message+", line: "+(a.number||a.lineNumber)+", func: "+b})}}}function A(w,a,b){var d=u(function(w){return b(w||c.event)});da[da.length]=[w,a,b,d];w.addEventListener?w.addEventListener(a,d,!0):w.attachEvent&&w.attachEvent("on"+a,d)}function C(w,a,b){for(var d=0;d<da.length;d++)if(da[d]&&
da[d][0]==w&&da[d][1]==a&&da[d][2]==b){var c=da[d][3];delete da[d];break}c&&(w.removeEventListener?w.removeEventListener(a,c,!0):w.detachEvent&&w.detachEvent("on"+a,c))}function S(w){var a=Ja();return[w.pageX||w.clientX+U[0]-(a.clientLeft||0)||0,w.pageY||w.clientY+U[1]-(a.clientTop||0)||0]}function I(w){return w.target||w.srcElement}function V(w){return(w.shiftKey?Ib:0)|(w.ctrlKey?qb:0)|(w.altKey?Jb:0)|(w.metaKey?Ub:0)|(w.ctrlKey||w.altKey?bb:0)}function T(w){var a=(new Date).getTime();w&&a<w&&(rb+=
w-a+W);c.setTimeout(u(function(){T(a)}),W)}function R(){var w=(new Date).getTime()+rb;w<sb&&(w=sb+W/2);return sb=w}function N(){return Math.round((R()-Vb)/Wb)}function ea(w,a){a=Math.max(0,Math.min(a,65535));Q(w,a>>8,a&255)}function z(w,a){Q(w,a&255)}function l(w,a){for(a=Math.max(0,a|0);127<a;)Q(w,a&127|128),a>>=7;Q(w,a)}function Z(w,a){255<a.length&&(a=a.substr(0,255));Q(w,a.length);for(var b=0;b<a.length;b++)ea(w,a.charCodeAt(b))}function $(a,b){l(a,b.length);for(var D=0;D<b.length;D++)l(a,b.charCodeAt(D))}
function la(a){if(!a.nodeName)return a[L]=-1,null;var b=+a[L];if(!isFinite(b)||0>=b)return null;var D=Fb,d=0,c=Y(a),f=c&&c[L]?c[L]:0;0>f&&(f=0);var k=a.nodeName.toUpperCase(),m=Xb[k];m||(D|=pb);var g;a:{g=La(Y(a),a.nodeName);for(var e=0;e<g.length;e++)if(g[e]==a){g=e;break a}g=0}g||(D|=Db);e=Ma(a);(c=c?Ma(c):null)&&(e[0]==c[0]&&e[1]==c[1]&&e[2]==c[2]&&e[3]==c[3])&&(D|=Kb);cb[b].pos=e[0]+"x"+e[1];cb[b].size=e[2]+"x"+e[3];a.id&&"string"==typeof a.id&&(D|=Lb);(c=Xa(a))&&(D|=Eb);var B=Za(a);B&&(d|=Gb);
var h;a:{h=La(Y(a),a.tagName);for(var t=0;t<h.length;t++)if((!h[t].id||"string"!=typeof h[t].id)&&Za(h[t])==B&&Xa(h[t])==c){h=!0;break a}h=!1}if(h)var D=D|Mb,s=Ia((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,""));h=[];z(h,Yb);l(h,b);z(h,D);l(h,f);m?z(h,m):Z(h,k);g&&l(h,g);D&Kb||(l(h,e[0]),l(h,e[1]),l(h,e[2]),l(h,e[3]));D&Lb&&Z(h,a.id);c&&ea(h,c);D&Mb&&ea(h,s);z(h,d);B&&ea(h,B);return h}function ia(a,b,D,c,d,f){for(;D&&(!D.offsetWidth||!D.offsetHeight);)D=Y(D);if(!D)return null;var k=D[L];
if(!k||0>k)return null;var e={mousemove:v,click:ib,dblclick:jb,mousedown:ua,mouseup:hb,touch:Zb}[b];if(!e)return null;var m=Wa(D);D=[];z(D,e);l(D,a);l(D,k);l(D,Math.max(0,c[0]-m[0]));l(D,Math.max(0,c[1]-m[1]));/^mouse(up|down)|click$/.test(b)&&(a=d||f,z(D,2>a?kb:a==(d?2:4)?nb:lb));return D}function oa(a,b){var c=[];z(c,H);l(c,a);l(c,b[0]);l(c,b[1]);return c}function pa(a,b,c){var d=[];c=c[L];if(!c||0>c)return null;z(d,t);l(d,a);l(d,b[0]);l(d,b[1]);l(d,c);return d}function qa(a,b,c){var d=[];z(d,sa);
l(d,a);l(d,b[0]);l(d,b[1]);l(d,c[0]);l(d,c[1]);return d}function ha(a,b,c,d){var f=[];z(f,m);l(f,a);ea(f,b);z(f,c);a=d[L];if(!a||0>a)a=0;l(f,a);return f}function ra(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 f=[];z(f,ta);l(f,a);$(f,c);$(f,d);return f}function Da(a){var b=[];z(b,ca);l(b,a);return b}function Ea(a){var b=[];z(b,$b);l(b,a);return b}function Fa(a){var b=[];z(b,ac);l(b,a);return b}
function Ga(a,b){var c=[];z(c,G);l(c,a);l(c,b[L]);return c}function Ha(a,b){var c=[];z(c,bc);l(c,a);l(c,b[L]);return c}function Na(a,b,c){var d=[];z(d,Ta);l(d,a);l(d,b[L]);Z(d,String(c));return d}function Sa(a,b){var c=b[L];if(0<c){var d=[],f=Ma(b),k=cb[c],e=f[0]+"x"+f[1],m=f[2]+"x"+f[3];e!=k.pos&&(k.pos=e,z(d,y),l(d,a),l(d,c),l(d,f[0]),l(d,f[1]));m!=k.size&&(k.size=m,z(d,s),l(d,a),l(d,c),l(d,f[2]),l(d,f[3]));if(d.length)return d}return null}function Oa(a){var b=a[L];if(!b||(0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName))||
!a.form||ob(a.form,"-metrika-noform"))return null;var c=$a(a.form);if(0>c)return null;var d;d="INPUT"==a.nodeName?{text: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 f=-1,k=a.form.elements,e=k.length,m=0,g=0;m<e;m++)if(k[m].name==a.name){if(k[m]==a){f=g;break}g++}if(0>f)return null;k=[];z(k,h);l(k,b);l(k,c);l(k,d);$(k,a.name||"");l(k,f);return k}function tb(a,b){var c=$a(b);if(0>c)return null;for(var d=b.elements,
f=d.length,k=[],m=0;m<f;m++)if(!ab(d[m])){var e=d[m][L];e&&0<e&&Q(k,e)}d=[];z(d,aa);l(d,a);l(d,c);l(d,k.length);for(c=0;c<k.length;c++)l(d,k[c]);return d}function q(){var a=[];z(a,cc);return a}function va(a){clearTimeout(Nb);for(var b=(new Date).getTime()+B;db.length&&(a||+(new Date).getTime()<b);){var f=db.shift();if(f=f[0].apply(c,f[1])){var k=f;6500<wa.length+k.length&&d();for(var f=wa,m=0,e=f.length;m<k.length;m++)f[e++]=k[m];eb||(eb=c.setTimeout(u(d),M))}}!0===a&&d(!0);db.length&&(Nb=c.setTimeout(u(va),
g))}function J(a,b,d){Q(db,[a,b]);va(d)}function O(a){if(a[L])J(Sa,[N(),a]);else{var b=Y(a);b&&O(b);a[L]=ub;cb[ub]={};ub++;J(la,[a]);J(Oa,[a])}}function P(a){var b=I(a),d,c,f=0;if(b&&"SCROLLBAR"!=b.nodeName){if(b&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b.tagName))if(b[L])O(b);else if(d=Y(b,"form"))for(d=d.elements,c=d.length;f<c;f++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(d[f].tagName)&&!d[f][L]&&O(d[f]);else O(b);else O(b);J(ia,[N(),a.type,b,S(a),a.which,a.button])}}function xa(a){P(a);var d,f;c.getSelection?
(a=c.getSelection(),d=a.toString(),f=a.anchorNode):b.selection&&b.selection.createRange&&(a=b.selection.createRange(),d=a.text,f=a.parentElement());for(;f&&1!=f.nodeType;)f=f.parentNode;f&&"INPUT"==f.tagName&&"password"==f.type||(f&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(f.className)||d==vb)||(vb=d,J(ra,[N(),d]))}function ya(a){var b=R(),d=b-Ob;if(!(d<Pb)){var c=S(a),f=wb[0]-c[0],k=wb[1]-c[1],f=f*f+k*k;0>=f||(16>f&&100>d||20>d&&256>f)||(Ob=b,wb=c,P(a))}}function ba(){U=Ka();var a=R();a-Qb<Pb||10>
Math.abs(U[0]-xb[0])&&10>Math.abs(U[1]-xb[1])||(Qb=a,xb=U,J(oa,[N(),U]))}function Pa(a){a=I(a);var d=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(d=yb[a.localId],!d||10>Math.abs(c[0]-d[0])&&10>Math.abs(c[1]-d[1]))return}else{for(;yb[d];)d=Math.random();a.localId=d}yb[a.localId]=c;a!==b&&(O(a),J(pa,[N(),c,a]))}function za(){J(qa,[N(),Ua(),Va()])}function F(a){J(q,[],!0);d(!0);if("beforeunload"==a.type)for(a=+new Date+50;+new Date<a;);}function Aa(a,b,d){a=I(a);"INPUT"==a.tagName&&"password"==
a.type||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(O(a),J(ha,[N(),b,d,a]))}function Ba(a){var b=a.keyCode,d=V(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)||d&bb)19==b&&(d&~bb)==qb&&(b=144),Aa(a,b,d|bb),zb=!1,c.setTimeout(u(function(){zb=!0}),1),67==b&&(d&qb&&!(d&Jb||d&Ib))&&Ca()}function ma(a){zb&&(!Ab&&0!==a.which)&&(Aa(a,a.charCode||a.keyCode,V(a)),
Ab=!0,c.setTimeout(u(function(){Ab=!1}),1))}function Ca(){Bb||(Bb=!0,vb&&J(Da,[N()]),c.setTimeout(u(function(){Bb=!1}),1))}function ja(){Qa||(Qa=!0,J(Ea,[N()]))}function fa(){Qa&&(Qa=!1,J(Fa,[N()]))}function ka(a){(!Qa||a&&!a.fromElement)&&ja()}function Ra(a){a&&!a.toElement&&fa()}function na(a){a=I(a);var b,d,c=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[L])O(a);else if(b=Y(a,"form"))for(b=b.elements,d=b.length;c<d;c++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[c].tagName)&&!b[c][L]&&
O(b[c]);else O(a);J(Ga,[N(),a])}}function X(a){(a=I(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(O(a),J(Ha,[N(),a]))}function a(a){a=I(a);if(!("INPUT"==a.tagName&&"password"==a.type||a&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||!a||!/^INPUT|SELECT|TEXTAREA$/.test(a.tagName))){var b=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;O(a);J(Na,[N(),a,b])}}function k(a){a=I(a);if(!ob(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var b=a.elements,d=0;d<b.length;d++)ab(b[d])||O(b[d]);
J(tb,[N(),a],!0)}}function f(a){ba();if(a.touches&&a.touches.length){var b=I(a);if(b){O(b);for(var d=0;d<a.touches.length;d++)J(ia,[N(),"touch",b,[a.touches[d].pageX,a.touches[d].pageY],0,0])}}}function d(a){clearTimeout(eb);eb=0;if(wa.length){a={rn:Math.round(1E5*Math.random()),"wv-type":0,"cnt-class":E,"page-url":K().href,wmode:0,"wv-hit":r,"wv-part":dc++,"wv-check":Ia(wa),"browser-info":["z",Cb,"i",fb].join(":")};for(var b=wa,d=b.length,c=[],f=d-d%3,k,m=0;m<f;m+=3)k=(b[m]<<16)+(b[m+1]<<8)+b[m+
2],Q(c,ga[k>>18&63],ga[k>>12&63],ga[k>>6&63],ga[k&63]);switch(d-f){case 1:k=b[f]<<4;Q(c,ga[k>>6&63],ga[k&63],"__");break;case 2:k=(b[f]<<10)+(b[f+1]<<2),Q(c,ga[k>>12&63],ga[k>>6&63],ga[k&63],"_")}b={"wv-data":c.join("")};n.send("visor","webvisor",a,b);wa.length=0}}var B=100,g=200,M=15E3,W=20,Wb=50,Pb=10,Yb=1,v=2,H=3,t=16,ua=4,m=5,h=7,y=9,s=10,aa=11,Zb=12,cc=13,$b=14,ac=15,G=17,bc=18,Ta=19,ca=27,sa=28,ta=29,hb=30,ib=32,jb=33,kb=1,lb=2,nb=4,Mb=1,pb=2,Db=4,Kb=8,Eb=16,Lb=32,Fb=64,Gb=2,Jb=1,Ib=2,qb=4,
Ub=8,bb=16,Xb={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},da=[],rb=0;T(0);var sb=0,db=[],Nb,ub=1,Ob=0,wb=[0,0],Qb=0,xb=[0,0],yb={},zb=!0,Ab=!1,vb="",Bb=!1,Qa=!0,ga="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*-".split(""),wa=[],eb,dc=1,Vb=R(),L="metrikaId_"+Math.random(),cb={},gb=":submit"+
Math.random();if("MetrikaPlayer"!=c.name){A(b,"mousemove",ya);A(b,"click",P);A(b,"dblclick",P);A(b,"mousedown",P);A(b,"mouseup",xa);A(c,"scroll",ba);A(c,"beforeunload",F);Rb||A(c,"unload",F);A(c,"resize",za);A(b,"keydown",Ba);A(b,"keypress",ma);A(b,"copy",Ca);A(b,"touchmove",f);A(b,"touchstart",f);b.attachEvent&&!c.opera?(A(b,"focusin",ka),A(b,"focusout",Ra)):(A(c,"focus",ja),A(c,"blur",fa),A(b,"blur",fa));b.addEventListener?(b.addEventListener("scroll",Pa,!0),b.addEventListener("focus",na,!0),b.addEventListener("blur",
X,!0),b.addEventListener("change",a,!0),b.addEventListener("submit",k,!0)):b.attachEvent&&(A(b,"focusin",na),A(b,"focusout",X),function(){for(var d=b.getElementsByTagName("form"),c=0;c<d.length;c++){for(var f=d[c].getElementsByTagName("*"),m=0;m<f.length;m++)/^INPUT|SELECT|TEXTAREA$/.test(f[m].tagName)&&A(f[m],"change",a);A(d[c],"submit",k)}}());(function(){var a=b.getElementsByTagName("form");if(a.length)for(var d=0;d<a.length;d++)a[d][gb]=a[d].submit,a[d].submit=function(){k({target:this});return this[gb]()}})();
"0:0"!=U.join(":")&&ba();za();var Sb=function(a,d){if(a){var c={"wv-type":1,"cnt-class":E,"page-url":K().href,"wv-hit":r,"browser-info":["z",Cb,"i",fb,"pct",d||""].join(":")};b.all&&(a=a.replace(/\r\n/g,"\n"));var f;f=a;f=f.replace(/\r\n/g,"\n");for(var k=[],m=String.fromCharCode,e=0,g=f.length;e<g;e++){var h=f.charCodeAt(e);128>h?k.push(m(h)):(127<h&&2048>h?k.push(m(h>>6|192)):(k.push(m(h>>12|224)),k.push(m(h>>6&63|128))),k.push(m(h&63|128)))}f=k.join("");for(var k=[],B,t,s,h=0,y=f.length;h<y;)B=
f.charCodeAt(h++),m=f.charCodeAt(h++),e=f.charCodeAt(h++),g=B>>2,B=(B&3)<<4|m>>4,t=(m&15)<<2|e>>6,s=e&63,isNaN(m)?t=s=64:isNaN(e)&&(s=64),k.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(B)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(s));f={"wv-data":k.join("")};n.sendMultipart("webvisor",
c,f,3)}};x.uploadPage=function(a){if("function"==typeof c.toStaticHTML&&-1<c.toStaticHTML.toString().indexOf("NoScript"))return!1;var d=b.documentElement;if(d&&19E4<(""+d.innerHTML).length)return!1;var f=c.XMLHttpRequest?new c.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),k=(""+(b.characterSet||b.charset||"")).toLowerCase(),d="text/html"+(k?";charset="+k:"");if("html"==a)return a=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>","gi"),Sb(Tb().replace(a,""),d),!0;f&&(f.open("get",
K().href,!0),f.onreadystatechange=function(){4==f.readyState&&Sb(f.responseText,f.getResponseHeader("content-type"))},f.overrideMimeType&&k&&f.overrideMimeType(d),f.send(null));return!0}}return{stop:function(){C(b,"mousemove",ya);C(b,"click",P);C(b,"dblclick",P);C(b,"mousedown",P);C(b,"mouseup",xa);C(c,"scroll",ba);C(c,"beforeunload",F);C(c,"unload",F);C(c,"resize",za);C(b,"keydown",Ba);C(b,"keypress",ma);C(b,"copy",Ca);C(b,"touchmove",f);C(b,"touchstart",f);C(b,"focusin",ka);C(b,"focusout",Ra);C(c,
"focus",ja);C(c,"blur",fa);C(b,"blur",fa);b.removeEventListener?(b.removeEventListener("scroll",Pa,!0),b.removeEventListener("focus",na,!0),b.removeEventListener("blur",X,!0),b.removeEventListener("change",a,!0),b.removeEventListener("submit",k,!0)):b.detachEvent&&(C(b,"focusin",na),C(b,"focusout",X),function(){for(var d=b.getElementsByTagName("form"),c=0;c<d.length;c++){for(var f=d[c].getElementsByTagName("*"),m=0;m<f.length;m++)/^INPUT|SELECT|TEXTAREA$/.test(f[m].tagName)&&C(f[m],"change",a);C(d[c],
"submit",k)}}());(function(){for(var a=b.getElementsByTagName("form"),d=0;d<a.length;d++)a[d][gb]&&(a[d].submit=a[d][gb])})()},uploadPages:function(a,d){function f(){C(b,"DOMContentLoaded",f);C(c,"load",f);for(var k=a.split(/\n/),m=K().href,e=/regexp:/,h=0;h<k.length;h++){var g=k[h];if(g)if(e.test(g)){if(g=Hb(g.replace(e,"")),RegExp(g).test(m)){x.uploadPage(d);break}}else if(-1!==m.indexOf(g)){x.uploadPage(d);break}}}"complete"==b.readyState?f():(A(b,"DOMContentLoaded",f),A(c,"load",f))}}}var Db=
!1,Rb=-1===(""+c.navigator.userAgent).toLowerCase().search(/webkit/)&&-1!==(""+c.navigator.userAgent).toLowerCase().search(/gecko/),U=Ka(),V=[];c.Ya=c.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};var Eb=!1,S=K(),Cb,fb,la=c.navigator,oa=c.screen,Da="https:"==S.protocol?"https:":"http:",Fb="$Rev: 1825 $".match(/(\d+)/)[1],pa="object"==typeof b.all,hb=64,qa=pa?512:2048,ib=pa?512:2048,jb=pa?100:400,Ea="noindex",Fa=50,kb=
RegExp("\\.(3gp|7z|aac|ac3|acs|ai|avi|ape|apk|asf|bmp|bz2|cab|cdr|crc32|css|csv|cue|divx|dmg|djvu?|doc(x|m|b)?|emf|eps|exe|flac?|flv|iso|swf|gif|t?gz|jpe?g?|js|m3u8?|m4a|mp(3|4|e?g?)|m4v|md5|mkv|mov|msi|ods|og(g|m|v)|pdf|phps|png|ppt(x|m|b)?|psd|rar|rss|rtf|sea|sfv|sit|sha1|svg|tar|tif?f|torrent|ts|txt|vob|wave?|wma|wmv|wmf|webm|xls(x|m|b)?|xpi|g?zip)$","i"),Gb=+new Date,lb="_ym_visorc",Sa,Ga;c.Ya.Metrika=function(e,E,p,r){function n(a,b){b=b||256;if(!a)return"";a.length>b&&(a=a.substr(0,b));return(c.encodeURIComponent||
c.escape)(a).replace(/\+/g,"%2B")}function x(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===ia)return"";if(null===a)return"null";switch(a.constructor){case Boolean:return a.toString();case Number:return isFinite(a)?a.toString():"null";case String:return'"'+b(a)+'"';case Array:for(var c=[],d=0,e=a.length;d<e;d++)c[c.length]=x(a[d]);return"["+c.join(",")+"]";case Object:c="{";d=0;for(e in a)if(a.hasOwnProperty(e)){var g=a[e];g!==ia&&(c+=(d?",":"")+'"'+b(e)+'":'+x(g),
d++)}return c+"}";default:return"null"}}function u(a){return Math.floor(Math.random()*("number"==typeof a?a:1E6))}function A(a){for(var b=+new Date,c=1;0<c;c++)if(0==c%1E3){var d=+new Date;if(b>d)break;if(d-b>a)break}}function C(a,b){if(!a||!b)return!1;for(var c=[],d=0;d<b.length;d++)c.push(b[d].replace(/\^/g,"\\^").replace(/\$/g,"\\$").replace(/\./g,"\\.").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/\|/g,"\\|").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\?/g,"\\?").replace(/\*/g,"\\*").replace(/\+/g,
"\\+").replace(/\{/g,"\\{").replace(/\}/g,"\\}"));return RegExp("\\.("+c.join("|")+")$","i").test(a)}function I(a){a=a.target||a.srcElement;if(!a)return!1;3==a.nodeType&&(a=a.parentNode);for(var b=a.nodeName.toString().toLowerCase();a.parentNode&&a.parentNode.nodeName&&("a"!=b&&"area"!=b||!a.href);)a=a.parentNode,b=a.nodeName.toString().toLowerCase();return a.href?a:!1}function U(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}function V(a,b){function c(a){a=a.split(":");
a=a[1]||"";a=a.replace(/^\/*/,"").replace(/^www\./,"");return a.split("/")[0]}return a&&b?c(a)==c(b)?!0:!1:a||b?!1:!0}function T(a,b){var f=b.target,d=!1;if(!b.hostname)return!1;f&&"_self"!=f&&"_top"!=f&&"_parent"!=f||(d=!0);(f=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&c.Event&&(f=a.modifiers&c.Event.CONTROL_MASK||a.modifiers&c.Event.SHIFT_MASK||a.modifiers&c.Event.ALT_MASK);return d&&!f}function R(a,b,c,d,e){function g(a,b){M[M.length]=a;M[M.length]=b}e=e||{};c="undefined"!=typeof c?c:ba;var M=
[];e.ar&&!e.onlyData&&(c=z(c),a=z(a));g("page-ref",n(c,qa));g("page-url",n(a,qa));g("browser-info",Y(b,e));Ta()?g("ut",Ea):"undefined"!=typeof e.ut&&g("ut",n(""+e.ut,hb));d&&g("site-info",n(x(d),ib));e.saveRef&&(ba=c);a=ea(J,M);Ha()||((new Image).src=a,l(a),e.isDelay&&A(e.delay));return a}function N(a,k,f,d,B,g,M){function W(a,b){p[p.length]=a;p[p.length]=b}B=B||{};f="undefined"!=typeof f?f:ba;var p=[];B.ar&&!B.onlyData&&(f=z(f),a=z(a));if(!Ha()){var r="_ymjsp"+("--"==e?"":u()),q=b.createElement("script");
c[r]=function(a){try{delete c[r]}catch(b){c[r]=ia}M(a);q.parentNode&&q.parentNode.removeChild(q)};W("wmode",5);W("callback",r);W("page-ref",n(f,qa));W("page-url",n(a,qa));a=Y(k,B);g&&(a=["vc",g,a].join(":"));W("browser-info",a);Ta()?W("ut",Ea):"undefined"!=typeof B.ut&&W("ut",n(""+B.ut,hb));d&&W("site-info",n(x(d),ib));B.saveRef&&(ba=f);d=ea(J,p);q.type="text/javascript";q.src=d;B=b.getElementsByTagName("head")[0];B.insertBefore(q,B.firstChild);l(d)}}function ea(a,b){for(var c=["rn",u(),"cnt-class",
p].concat(b),d=[],B=0;B<c.length;B+=2){var g=c[B+1];g&&(d[d.length]=c[B]+"="+g)}return ya+a+e+"?"+d.join("&")}function z(a){var b=K(),c=b.host,b=b.href;if(!a)return b;if(-1!=a.search(/^\w+:\/\//))return a;var d=a.charAt(0);if("?"==d)return d=b.search(/\?/),-1==d?b+a:b.substr(0,d)+a;if("#"==d)return d=b.search(/#/),-1==d?b+a:b.substr(0,d)+a;if("/"==d){if(d=b.search(c),-1!=d)return b.substr(0,d+c.length)+a}else return c=b.split("/"),c[c.length-1]=a,c.join("/");return a}function l(a){"function"==typeof c.ymLog&&
c.ymLog(a)}function Y(a,k){function f(a,b){a&&b&&(e[e.length]=[a,b].join(":"))}function d(a){f(a,k[a]?"1":"")}k=k||{};var e=[],g=-1*(new Date).getTimezoneOffset(),M=ta();fb||(fb=M,Cb=g);f("j",la.javaEnabled()?"1":"");oa&&f("s",oa.width+"x"+oa.height+"x"+(oa.colorDepth||oa.pixelDepth));null===Aa&&(Aa=ha());f("f",Aa);f("w",Ja()+"x"+Ma());f("z",g);f("i",M);null===Ba&&(Ba=sa());f("l",Ba||"");f("en",(""+(b.characterSet||b.charset||"")).toLowerCase());f("v",Fb);f("c",la.cookieEnabled?"1":"");pa&&b.documentMode&&
(null===ma&&(ma=Function("return /*@cc_on @_jscript_version @*/;")()),ma&&f("jv",ma));f("la",(la&&(la.language||la.browserLanguage)||"").toLowerCase());f("ex","prerender"==b.webkitVisibilityState?"pre1":"");X&&f("wh","1");M="ar ln dl ad nb pa".split(" ");for(g=0;g<M.length;g++)d(M[g]);M=["va","vt","sn","sa","he"];k.nb&&M.push("cl");for(g=0;g<M.length;g++){var l=M[g];f(l,k[l])}f("hid",va);k.ar||f("ds",Ua());if(q._webvisor){c.name||(c.name=Math.round(65535*Math.random()));if(g=+c.name)0>g&&(g*=-1),
g%=65535;f("wn",g||Ia(c.name));try{c.history&&f("hl",String(c.history.length))}catch(p){}}g="undefined"==typeof a?(g=ca())?n(g,jb):"":n(a,jb);f("t",g);return e.join(":")}function ha(){var a=null,b=null,f,d=c.navigator;if("undefined"!=typeof d.plugins&&"object"==typeof d.plugins["Shockwave Flash"])a=d.plugins["Shockwave Flash"].description,!a||"undefined"!=typeof d.mimeTypes&&d.mimeTypes["application/x-shockwave-flash"]&&!d.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(b=a.replace(/([a-zA-Z]|\s)+/,
"").replace(/(\s+r|\s+b[0-9]+)/,"."));else if("undefined"!=typeof c.ActiveXObject)try{(f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))&&(a=f.GetVariable("$version"))&&(b=a.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}catch(e){}return b}function ca(){var a=b.title;"string"!=typeof a&&(a=(a=b.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function sa(){var a=null;if(c.ActiveXObject)try{var b=new ActiveXObject("AgControl.AgControl"),f=function(a,b,d,c){for(;a.isVersionSupported(b[0]+
"."+b[1]+"."+b[2]+"."+b[3]);)b[d]+=c;b[d]-=c},d=[1,0,0,0];f(b,d,0,1);f(b,d,1,1);f(b,d,2,1E4);f(b,d,2,1E3);f(b,d,2,100);f(b,d,2,10);f(b,d,2,1);f(b,d,3,1);a=d.join(".")}catch(e){}else if(b=la.plugins["Silverlight Plug-In"])a=b.description;return a}function ta(){for(var a=new Date,a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],b="",c=0;c<a.length;c++)b+=10>a[c]?"0"+a[c]:a[c];return b}function Ja(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientWidth:
b.body&&(a=b.body.clientWidth);return a}function Ma(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientHeight:b.body&&(a=b.body.clientHeight);return a}function Ua(){var a=c.performance||c.webkitPerformance;if(a=a&&a.timing){var b=a.navigationStart;if(b){var f=[a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,a.responseEnd-a.responseStart,a.fetchStart-b];a.loadEventStart&&f.push(a.loadEventStart-b);return f.join(",")}}return""}
function Va(a){var c=b.referrer||"";if(RegExp("^https?://"+S.host+"/").test(c))return!1;for(var f=a.patterns,d=0;d<f.length;d++)if(c.match(RegExp(f[d],"i"))){var e=a.params||[];if(e.length)for(var g=decodeURIComponent((RegExp.$1||"").replace(/\+/g,"%20")),l=0;l<e.length;l++){if(g==decodeURIComponent(e[l]))return!0}else return!0}return!1}function Ka(a){var c=!1;if(a&&"string"!=typeof a&&a.length)for(var f=0;f<a.length;f++){var d=a[f].selector,e=a[f].text,g=d.charAt(0),d=d.slice(1);if("#"==g){if(g=
b.getElementById(d))c=!0,g.innerHTML=e}else if("."==g){g=d;d=(d=void 0)||b;if(d.getElementsByClassName)g=d.getElementsByClassName(g);else{for(var d=d.getElementsByTagName("*"),l=[],n=0;n<d.length;n++)ob(d[n],g)&&l.push(d[n]);g=l}for(d=0;d<g.length;d++)c=!0,g[d].innerHTML=e}}return c}function Wa(){var a=!1;if(Ya._metrika.hitParam[P]){if(1!=p||Ya._metrika.counters[P])return!1;a=!0}Ya._metrika.counters[P]=q;Ya._metrika.hitParam[P]=1;q._webvisor=!r&&(F&&F.webvisor||Db||Eb);F&&F.trackHash&&q.trackHash(!0);
if(!r&&!a){q.replacePhones();var k=ra(lb);"b"!=k&&"w"!=k&&(k="");nb()||(k="b");Sa=+new Date;N(S.href,ca(),b.referrer,E,{ut:xa,he:F?~~F.httpError:0,ad:1==p&&c.Ya&&c.Ya.Direct?!0:!1,saveRef:!0},k,function(a){Ga||(Ga=+new Date);a=a||{};var d=a.webvisor||{},B=[];if(ja){var g=+d.recp;if(!isFinite(g)||0>g||1<g)k="w";k||(k=va%1E4/1E4<g?"w":"b");Z(lb,k,30);"w"==k?(Q(B,"visor"),g=d.arch_type,(d=d.urls)&&g&&ja.uploadPages(d,g)):ja.stop()}Ca.init(B);d=a.mp2;B=e;a=q;Z("_ym_mp2_substs_"+B,"",-1);if(d){g="_ym_mp2_track_"+
B;b:{var l=d.conditions;if(l&&l.length)for(var n=0;n<l.length;n++){var p;if("ref"==l[n].type)p=Va(l[n]);else if(p="adv"==l[n].type){var r=l[n],A=r.ServiceNamePattern,v=r.RefererPattern;p=r.direct_camp;var H=b.referrer,t=S.search,t=t&&t.replace(/^\?/,""),ua={};if(t)for(var t=t.split("&"),m=0;m<t.length;m++){var h=t[m].split("=");ua[decodeURIComponent(h[0])]=decodeURIComponent(h[1])}t=void 0;c:{h=S.search;m=S.hash;h=h&&h.replace(/^\?/,"");m=m&&m.replace(/^#/,"");t="";if(h)for(var h=h.split("&"),y=0;y<
h.length;y++){var s=h[y].split("=");"_openstat"==s[0]&&(t=s[1])}m&&0==m.indexOf("_openstat=")&&(t=m.slice(10));if(t){m=void 0;if(-1<t.indexOf(";"))m=decodeURIComponent(t);else d:{for(;t.length%4;)t+="=";var aa=void 0,u=void 0,C=void 0,C=h=m=u=aa=void 0,y=0,s="";do{aa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(y++));u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(y++));m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(y++));
h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(t.charAt(y++));if(0>aa||0>u||0>m||0>h){m=null;break d}C=aa<<18|u<<12|m<<6|h;aa=C>>16&255;u=C>>8&255;C&=255;s=64==m?s+String.fromCharCode(aa):64==h?s+String.fromCharCode(aa,u):s+String.fromCharCode(aa,u,C)}while(y<t.length);t=s;m="";for(y=c1=c2=h=0;h<t.length;)y=t.charCodeAt(h),128>y?(m+=String.fromCharCode(y),h++):191<y&&224>y?(c2=t.charCodeAt(h+1),m+=String.fromCharCode((y&31)<<6|c2&63),h+=2):(c2=t.charCodeAt(h+1),c3=t.charCodeAt(h+
2),m+=String.fromCharCode((y&15)<<12|(c2&63)<<6|c3&63),h+=3)}t=m}if(t&&(t=t.split(";"),4==t.length)){t={service:t[0],campaign:t[1],ad:t[2],source:t[3]};break c}t=null}m={};h=["source","medium","campaign","term","content"];for(y=0;y<h.length;y++)ua["utm_"+h[y]]&&(m[h[y]]=ua["utm_"+h[y]]);y=t&&t.service||m.source;h=!1;if(!h&&A&&A.length)for(s=0;s<A.length;s++)if(RegExp(A[s]).test(y)){h=!0;break}if(!h&&v&&v.length)for(A=0;A<v.length;A++)if(RegExp(v[A]).test(H)){h=!0;break}!h&&(r.google_adwords&&ua.gclid)&&
(h=!0);if(h&&(p&&p.length)&&(h=!1,r=t&&t.campaign||m&&m.campaign))for(v=0;v<p.length;v++)if(p[v]==r){h=!0;break}p=h}if(p){l[n].track_id&&Z(g,l[n].track_id,43200);break b}}}(g=ra(g))&&d.substs&&(d=d.substs[g])&&(Z("_ym_mp2_substs_"+B,x(d)),B=Ka(d),a.params("__ym",B?"mp_trackid":"mp_trackid_bad",g))}$(c,"load",q.replacePhones);q._inited=!0})}Xa();F&&(F.enableAll?q.enableAll():(F.clickmap&&q.clickmap(F.clickmap),F.trackLinks&&q.trackLinks(F.trackLinks),F.accurateTrackBounce&&q.accurateTrackBounce(F.accurateTrackBounce),
F.ad&&ad()));q._webvisor&&(ja=new pb(e,p,F,va,Ca,q))}function La(a){var b={delay:Fa};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Fa:a.delay;break;case "boolean":b.on=a;break;default:return}fa=b}function Xa(){La(!1);$(b,"click",function(a){fa.on&&Za(a)})}function Za(a){function b(a){var d=Hb(c.innerHTML?c.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");R(e,e==d?"":d,K().href,null,a)}var c=I(a);if(c){var d=!1,e=""+c.href,g=e?e.split(/\?/)[0]:
"";if(kb.test(g)||kb.test(e)||C(e,ka)||C(g,ka))d=!0;var l=c.className,g=l&&-1!=l.search(/ym-disable-tracklink/)?!0:!1,l=l&&-1!=l.search(/ym-external-link/)?!0:!1;g||(a={ln:!0,dl:d,isDelay:T(a,c),delay:fa.delay},l?b(a):U(K().hostname,c.hostname)?d&&(a.ln=!1,b(a)):e&&-1!=e.search(/^ *javascript:/i)||(a.ut=Ea,b(a)))}}function $a(a,e){function f(){if(!v){A&&clearTimeout(A);var b=e,c;c=p?r:r+ +new Date-q;b-=c;0>b&&(b=0);A=setTimeout(function(){v=!0;l(!1);a()},b)}}function d(){n||(g=!0,p=!1,n=!0,f())}function l(a){for(var b=
0;b<u.length;b+=3)a?$(u[b],u[b+1],u[b+2]):Na(u[b],u[b+1],u[b+2])}var g=!1,n=!1,p=!0,r=0,q=+new Date,A=null,v=!1,u=[c,"blur",function(){p=g=n=!0;r+=+new Date-q;q=+new Date;f()},c,"focus",function(){g||n||(r=0);q=+new Date;g=n=!0;p=!1;f()},b,"click",d,b,"mousemove",d,b,"keydown",d,b,"scroll",d];l(!0);f()}function ab(a){function b(){var a=K().hash.split("#")[1];if("undefined"==typeof a)return!1;var c=a.indexOf("?");0<c&&(a=a.substring(0,c));return a}var c=b();(function B(){var e=b();e!==c&&(a(),c=e);
na=setTimeout(B,200)})()}function Oa(a){za=ba=Pa;R(K().href,ca(),za,null,{ut:xa,ad:1==p&&c.Ya&&c.Ya.Direct?!0:!1,wh:!0,saveRef:!0});Pa=K().href}function tb(a){function e(){var a=b.documentElement;return Math.max(a.scrollWidth,b.body.scrollWidth,a.clientWidth)}function f(a){function d(a){a=a.getBoundingClientRect();var f=b.body,e=b.documentElement,m=a.left+(c.pageXOffset||e.scrollLeft||f.scrollLeft)-(e.clientLeft||f.clientLeft||0);return{top:Math.round(a.top+(c.pageYOffset||e.scrollTop||f.scrollTop)-
(e.clientTop||f.clientTop||0)),left:Math.round(m)}}return a.getBoundingClientRect?d(a):function(a){for(var b=0,c=0;a;)b+=parseInt(a.offsetTop),c+=parseInt(a.offsetLeft),a=a.offsetParent;return{top:b,left:c}}(a)}function d(a){return a.toString().toUpperCase()}function p(a){return a&&(a=""+a.className)&&-1!=a.search(/ym-clickmap-ignore/)?!0:!1}function g(a){if(null==a.pageX&&null!=a.clientX){var c=b.documentElement,d=b.body;a.pageX=a.clientX+(c&&c.scrollLeft||d&&d.scrollLeft||0)-(c.clientLeft||0);a.pageY=
a.clientY+(c&&c.scrollTop||d&&d.scrollTop||0)-(c.clientTop||0)}return{x:a.pageX,y:a.pageY}}function r(a){for(var b=d(a.nodeName);a.parentNode&&"BODY"!=b&&"HTML"!=b;){if("A"==b||"INPUT"==b||"TEXTAREA"==b)return!0;a=a.parentNode;b=a.nodeName}return!1}for(var q=this,u=0,C=null,z="A B BIG BODY BUTTON DD DIV DL DT EM FIELDSET FORM H1 H2 H3 H4 H5 H6 HR I IMG INPUT LI OL P PRE SELECT SMALL SPAN STRONG SUB SUP TABLE TBODY TD TEXTAREA TFOOT TH THEAD TR U UL ABBR AREA BLOCKQUOTE CAPTION CENTER CITE CODE CANVAS DFN EMBED FONT INS KBD LEGEND LABEL MAP OBJECT Q S SAMP STRIKE TT ARTICLE AUDIO ASIDE FOOTER HEADER MENU METER NAV PROGRESS SECTION TIME VIDEO NOINDEX NOBR".split(" "),
v=59,H=String.fromCharCode,t={},x=0;x<z.length;x++)t[z[x]]=H(v),H(v),v++;this.handler=function(a){var h=b.getElementsByTagName("body")[0];if(!c.ymDisabledClickmap&&!p(h)){if(q._prefs.hasQuota){if(!q._prefs.quota)return;q._prefs.quota--}var y=a.target||a.srcElement;3==y.nodeType&&(y=y.parentNode);var h=d(y.nodeName),s=g(a),v;a.which||a.button===ia||(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);v=a.which;if(v=2!=v&&3!=v||"A"==h)if(v=y.offsetHeight,v=!(0===y.offsetWidth&&0===v||y.style&&"none"===
y.style.display)){b:{for(v=y;v.parentNode;){if(p(v)){v=!0;break b}v=v.parentNode}v=!1}if(v=!v){b:{v=q._prefs.ignoreTags;for(var z=0;z<v.length;z++)if(d(v[z])==d(h)){v=!0;break b}v=!1}v=!v&&q._prefs.filter(y,h)}}if(v){h=+new Date;y={dom:y,x:s.x,y:s.y,time:h};if((s=50<h-u)&&!(s=!q._prefs.ignoreSameClicks)){if(s=C){v=Math.abs(s.x-y.x);var z=Math.abs(s.y-y.y),x=y.time-s.time,s=s.dom==y.dom&&2>v&&2>z&&1E3>x?!0:!1}else s=!1;s=!s}if(s&&!Ha()){v=g(a);s=v.x;v=v.y;var x=a.target||a.srcElement,H=q._prefs,E=
f(x),G="",z=K().href;switch(H.mode){case "fixed":G="0";r(x)&&(G+="u");break;case "centered":G="1";E=Math.floor(e()/2);s=s>E?s-E+32768:s;r(x)&&(G+="u");break;default:G=d(x.nodeName);G="BODY"==G||"HTML"==G?e():x.offsetWidth;H=d(x.nodeName);"BODY"==H||"HTML"==H?(H=b.documentElement,H=Math.max(H.scrollHeight,b.body.scrollHeight,H.clientHeight)):H=x.offsetHeight;G||(G=1);H||(H=1);s=Math.floor(65535*(s-E.left)/G);v=Math.floor(65535*(v-E.top)/H);for(E="";x.parentNode&&"BODY"!=d(x.nodeName)&&"HTML"!=d(x.nodeName);){E+=
t[x.nodeName]||"*";b:{for(var G=x.parentNode,F=H=0;F<G.childNodes.length;F++)if(x.nodeName==G.childNodes[F].nodeName){if(x==G.childNodes[F]){G=H;break b}H++}G=0}E+=G||"";x=x.parentNode}G=n(E,128)}X||(z=z?z.replace(/\#.*$/,""):z);"function"==typeof q._prefs.urlFilter&&(z=q._prefs.urlFilter(z));s=ea(O,["page-url",n(z,qa),"pointer-click","x:"+s+":y:"+v+":t:"+Math.floor(Math.floor(+new Date-Gb)/100)+":p:"+G]);(new Image).src=s;l(s);if(s=a.target||a.srcElement){3==s.nodeType&&(s=s.parentNode);for(v=d(s.nodeName);s.parentNode&&
s.parentNode.nodeName&&("A"!=v&&"AREA"!=v||!s.href);)s=s.parentNode,v=d(s.nodeName);s=s.href?s:!1}else s=!1;s&&T(a,s)&&A(q._prefs.delay)}u=h;C=y}}};this.setPrefs=function(a){function b(a,c){return!0}this._prefs="undefined"==typeof a||!1===a||!0===a?{filter:b,ignoreTags:[],mode:"",delay:Fa,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?Fa:a.delay,quota:a.quota||0,hasQuota:!!a.quota,ignoreSameClicks:"undefined"==
typeof a.ignoreSameClicks?!0:!1,urlFilter:a.urlFilter}};this.updateStatus=function(a){switch(typeof a){case "undefined":this.start(!0);break;case "boolean":a?this.start(a):this.stop();break;case "object":this.start(a)}};this._start=!1;this.start=function(a){this.setPrefs(a);this._start||$(b,"click",this.handler,!0);this._start=!0};this.stop=function(){this._start&&Na(b,"click",this.handler,!0);this._start=!1};this.start(a)}var q=this,va=Math.round(1073741824*Math.random()),J="//mc.yandex.ru/watch/",
O="//mc.yandex.ru/clmap/",P,xa="",ya=Da,ba=S.href,Pa=S.href,za="",F;Ya._metrika.counter||(Ya._metrika.counter=q);"object"==typeof e&&(F=e,r=e.defer,xa=e.ut,p=e.type,E=e.params,ya=e.onlyHttps?"https:":Da,e=e.id);e=e||0;p=p||0;P=e+":"+p;if(Ya._metrika.counters[P])return Ya._metrika.counters[P];var Aa=null,Ba=null,ma=null,Ca=new function(a,e,f){function d(a,b,d){if(p)l(p,g(a,b,0),d,"application/x-www-form-urlencoded");else{if("XMLHttpRequest"in c){var f=new XMLHttpRequest;if("withCredentials"in f){var e=
d?"POST":"GET";a=g(a,b,"POST"==e?1:0);f.open(e,a,!0);f.withCredentials=!0;"POST"!=e||Rb||f.setRequestHeader("Content-Type","application/x-www-form-urlencoded");f.send("POST"==e?mb(d):null);return}}for(e in d)d.hasOwnProperty(e)&&(b[e]=d[e]);(new Image).src=g(a,b,0)}}function l(a,b,c,d){var f="ifr"+Math.round(1E10*Math.random()),e=a.createElement("div");e.style.position="absolute";e.style.left="-99999px";e.style.top="-99999px";b=['<iframe name="',f,'"></iframe>','<form action="',b,'" method="post" target="',
f,'" enctype="',d,'">'];for(var g in c)c.hasOwnProperty(g)&&Q(b,'<textarea name="',g,'"></textarea>');Q(b,"</form>");e.innerHTML=b.join("");a.body.appendChild(e);g=e.getElementsByTagName("form")[0];for(var k in c)c.hasOwnProperty(k)&&(g[k].value=c[k]);g.submit();setTimeout(function(){a.body.removeChild(e)},1E4)}function g(b,c,d){c["browser-info"]=["ct",d,c["browser-info"]].join(":");return a+"//"+e+"/"+b+"/"+f+"?"+mb(c)}function n(){if(c.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();
a.write("<html><body></body></html>");a.close();return a}return null}try{var p=n()}catch(r){}var q="",u=[];return{send:function(a,b,c,e){a?q?-1<q.indexOf("|"+a+"|")&&d(b,c,e):Q(u,arguments):d(b,c,e)},sendMultipart:function(a,c,d,e){l(p||b,g(a,c,e),d,"multipart/form-data")},init:function(a){q="|"+a.join("|")+"|";for(a=0;a<u.length;a++)-1<q.indexOf("|"+u[a][0]+"|")&&d(u[a][1],u[a][2],u[a][3]);u.length=0}}}(ya,"mc.yandex.ru",e),ja;q.replacePhones=function(){try{var a=ra("_ym_mp2_substs_"+e);if(a){var b=
(new Function("return "+a))();b&&Ka(b)}}catch(c){}};q.reachGoal=function(a,c){var e=a?"goal://"+K().hostname+"/"+a:K().href,d=ca(),l=a?K().href:b.referrer;R(e,d,l,c,{ar:!0,isDelay:a?!0:!1,delay:100});return!0};var fa;q.trackLinks=La;q.hit=function(a,b,c,d,e){a&&R(a,b,c,d,{ut:e,ar:!0,saveRef:!0})};q.params=function(a){if(a){var b=arguments.length;if(1<b){for(var c={},d=c,e=0;e<b-1;e++){var g=""+arguments[e];d[g]={};e<b-2&&(d=d[g])}d[g]=arguments[b-1];a=c}R("","","",a,{ar:!0,pa:!0,onlyData:!0})}};q.file=
function(a,b,c,d){a&&R(a,"",K().href,d,{ar:!0,ln:!0,dl:!0})};q.extLink=function(a,b,c,d){a&&R(a,"",K().href,d,{ar:!0,ln:!0,ut:Ea})};q.notBounce=function(){var a=0;Sa&&Ga&&(a=Ga-Sa);R("","","",null,{cl:a,ar:!0,nb:!0,onlyData:!0})};var ka=[];q.addFileExtension=function(a){"string"==typeof a?ka.push(a):ka=ka.concat(a)};q.clickmap=function(a){q._clickmap?q._clickmap.updateStatus(a):q._clickmap=new tb(a)};var Ra=!1;q.accurateTrackBounce=function(a){function c(){q.notBounce()}Ra||(Ra=!0,V(b.referrer,K().href)||
("number"!=typeof a&&(a=15E3),pa?setTimeout(c,a):$a(c,a)))};var na=null,X=!1;q.trackHash=function(a){!1===a?X&&("onhashchange"in c?Na(c,"hashchange",Oa):clearInterval(na),X=!1):X||("onhashchange"in c?$(c,"hashchange",Oa):ab(Oa),X=!0);q._trackHash=X};q.video=function(a,b,c,d){var e=["end","play","pause","seek"];if(a&&c){a:{for(var g=0,l=e.length;g<l;g+=1)if(a===e[g]){e=g;break a}e=-1}-1!==e&&R(c,d||"","",null,{ar:!0,va:a,vt:~~b})}};q.social=function(a,b,c){a&&b&&R(c||K().href,"","",null,{ar:!0,sn:n(a,
64),sa:n(b,64)})};q.enableAll=function(){q.trackLinks(!0);q.clickmap(!0);q.accurateTrackBounce()};q.pause=A;q.uploadPage=function(){};e&&Wa()};c.ya_cid&&new Ya.Metrika(c.ya_cid,c.ya_params,c.ya_class);c.ya_cid&&!c.ya_hit&&(c.ya_hit=function(b,c){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(b,c)});var I=c.yandex_metrika_callback,T=c.yandex_metrika_callbacks;"function"==typeof I&&I();if("object"==typeof T)for(I=0;I<T.length;I++){var ha=T[I];ha&&(T[I]=null,ha())}ca("yandex_metrika_callback");ca("yandex_metrika_callbacks");
T=["link","click","scroll","res"];for(I=0;I<T.length;I++)if(ha=T[I]+"map",-1!=S.href.search("ym_playback="+ha)){sa(Da+"//metrika.yandex.ru/js/"+ha+"/_loader.js");break}c.Ya.Metrika.informer=function(b){var c=!!Ya.Metrika._informer;Ya.Metrika._informer=b;c||sa(Da+"//mc.yandex.ru/metrika/informer.js")};"complete"==b.readyState?ta():$(c,"load",ta)})(this,this.document);
