(function(d,b,ga){function M(e){for(var b=1,d=e.length;b<arguments.length;b++)e[d++]=arguments[b];return e.length}function y(){for(var e={},b="hash host hostname href pathname port protocol search".split(" "),p=b.length,m=p;m--;)e[b[m]]="";try{for(var q=d.location,m=p;m--;){var r=b[m];e[r]=""+q[r]}}catch(C){N&&(e=N)}return e}function Jb(e){return e?(""+e).replace(/^\s+/,"").replace(/\s+$/,""):""}function Ra(){return-1!=y().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)}function Da(){return"MetrikaPlayer"==
d.name}function lb(){var e=b.documentElement,d=b.doctype,p=e.attributes,m="",q="",r="",q=e.outerHTML;if(!q){for(q=0;q<p.length;q++){var C=p[q];C&&(m+=" "+C.name+'="'+(C.value||"")+'"')}q="<html"+m+">"+e.innerHTML+"</html>"}d&&(r="<!DOCTYPE "+d.name+(d.publicId?' PUBLIC "'+d.publicId+'"':"")+(d.systemId?' "'+d.systemId+'"':"")+">\n");return r+q}function mb(e){var b=[],d;for(d in e)e.hasOwnProperty(d)&&(b[b.length]=d+"="+encodeURIComponent(e[d]));return b.join("&")}function Ea(e){for(var b=e.length,
d=0,m=255,q=255;b;){var r=21<b?21:b,b=b-r;do{var C="string"==typeof e?e.charCodeAt(d):e[d];d++;if(255<C)var D=C>>8,C=C&255,C=C^D;m+=C;q+=m}while(--r);m=(m&255)+(m>>8);q=(q&255)+(q>>8)}e=(m&255)+(m>>8)<<8|(q&255)+(q>>8);return 65535==e?0:e}function U(e,d,p,m){e=e+"="+encodeURIComponent(d);p&&(d=new Date,d.setTime(d.getTime()+6E4*p),e+=";expires="+d.toGMTString());m&&(e+=";domain="+m);b.cookie=e}function sa(e){return b.cookie.match(RegExp("(?:^|;\\s*)"+e+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null}
function nb(){U("_metrika_enabled","1",60);var e=!!sa("_metrika_enabled");U("_metrika_enabled","",-1,void 0);return e}function Fa(){var e=b.documentElement;return"CSS1Compat"==b.compatMode?e:b.body||e}function Sa(){var e=Fa();return[e.clientWidth,e.clientHeight]}function Ga(){var e=Fa(),b=Sa();return[Math.max(e.scrollWidth,b[0]),Math.max(e.scrollHeight,b[1])]}function Ta(){return[d.pageXOffset||b.documentElement&&b.documentElement.scrollLeft||b.body&&b.body.scrollLeft||0,d.pageYOffset||b.documentElement&&
b.documentElement.scrollTop||b.body&&b.body.scrollTop||0]}function Ua(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+Q[0]),Math.round(e.top+Q[1])];for(var d=0,p=0;e;)d+=e.offsetLeft,p+=e.offsetTop,e=e.offsetParent;return[d,p]}function T(e,d){return e==b.documentElement?null:d?e.tagName.toLowerCase()===d?e:T(e.parentNode,d):e==b.body?b.documentElement:e.parentNode}function Va(b,
d){var p=[];if(b)for(var m=b.childNodes,q=0,r=m.length;q<r;q++){var C=m[q];"INPUT"==C.nodeName&&C.type&&"hidden"==C.type.toLocaleLowerCase()||d&&C.nodeName!=d||M(p,C)}return p}function Ha(e){var d=Ua(e);e=e==b.body||e==b.documentElement?Ga():[e.offsetWidth,e.offsetHeight];return[d[0],d[1],e[0],e[1]]}function Ia(b){var d="";b=b.childNodes;for(var p=0,m=b.length;p<m;p++)3==b[p].nodeType&&(d+=b[p].nodeValue);return Ea(d.replace(/[\u0000-\u0020]+/g,""))}function Wa(b){var d="",p="className width height align title alt name".split(" ");
"IMG"==b.tagName&&(d+=b.src.toLowerCase());"A"==b.tagName&&(d+=b.href.toLowerCase());for(var m=0;m<p.length;m++)b.getAttribute&&(d+=String(b.getAttribute(p[m])||"").toLowerCase());return Ea(d.replace(/[\u0000-\u0020]+/g,""))}function Xa(d){for(var ra=b.getElementsByTagName("form"),p=0,m=ra.length;p<m;p++)if(ra[p]==d)return p;return-1}function ob(b,d){return RegExp("(?:^|\\s)"+d+"(?:\\s|$)").test(b.className)}function Za(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 V(b,d,p,m){R[R.length]=[p,p];b.addEventListener?b.addEventListener(d,p,!!m):b.attachEvent&&b.attachEvent("on"+d,p)}function Ja(b,d,p,m){for(var q=0;q<R.length;q++)if(R[q]&&R[q][0]==p){var r=R[q][1];delete R[q];break}r&&(b.removeEventListener?b.removeEventListener(d,r,!!m):b.detachEvent&&b.detachEvent("on"+d,r))}function ta(b){try{delete d[b]}catch(y){d[b]=ga}}
function $(d){var y=b.createElement("script");y.type="text/javascript";y.async=!0;y.src=d;try{var p=b.getElementsByTagName("html")[0];b.getElementsByTagName("head")[0]||p.appendChild(b.createElement("head"));var m=b.getElementsByTagName("head")[0];m.insertBefore(y,m.firstChild)}catch(q){}}function ua(){if(top!=d&&parent==top&&d.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 y=e.firstChild;setTimeout(function(){var d=b.body||b.documentElement;d.insertBefore(y,d.firstChild);try{var e=y.contentWindow.document}catch(q){}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,ra,p,m,q,r){function C(a){return function(){try{return a.apply(this,arguments)}catch(x){var b=a&&a.name||"";(new Image).src="//an.yandex.ru/jserr/"+e+"?"+mb({"cnt-class":100+ra,errmsg:x.name+": "+x.message+", line: "+(x.number||x.lineNumber)+", func: "+b})}}}function D(a,x,b){var c=C(function(a){return b(a||d.event)});aa[aa.length]=[a,x,b,c];a.addEventListener?a.addEventListener(x,c,!0):a.attachEvent&&a.attachEvent("on"+x,c)}function E(a,x,b){for(var c=0;c<aa.length;c++)if(aa[c]&&
aa[c][0]==a&&aa[c][1]==x&&aa[c][2]==b){var f=aa[c][3];delete aa[c];break}f&&(a.removeEventListener?a.removeEventListener(x,f,!0):a.detachEvent&&a.detachEvent("on"+x,f))}function N(a){var x=Fa();return[a.pageX||a.clientX+Q[0]-(x.clientLeft||0)||0,a.pageY||a.clientY+Q[1]-(x.clientTop||0)||0]}function B(a){return a.target||a.srcElement}function R(a){return(a.shiftKey?Kb:0)|(a.ctrlKey?qb:0)|(a.altKey?Lb:0)|(a.metaKey?Ib:0)|(a.ctrlKey||a.altKey?$a:0)}function S(a){var x=(new Date).getTime();a&&x<a&&(rb+=
a-x+g);d.setTimeout(C(function(){S(x)}),g)}function O(){var a=(new Date).getTime()+rb;a<sb&&(a=sb+g/2);return sb=a}function K(){return Math.round((O()-Tb)/F)}function ba(a,x){x=Math.max(0,Math.min(x,65535));M(a,x>>8,x&255)}function u(a,x){M(a,x&255)}function n(a,x){for(x=Math.max(0,x|0);127<x;)M(a,x&127|128),x>>=7;M(a,x)}function U(a,x){255<x.length&&(x=x.substr(0,255));M(a,x.length);for(var b=0;b<x.length;b++)ba(a,x.charCodeAt(b))}function V(a,b){n(a,b.length);for(var c=0;c<b.length;c++)n(a,b.charCodeAt(c))}
function ja(a){if(!a.nodeName)return a[J]=-1,null;var b=+a[J];if(!isFinite(b)||0>=b)return null;var c=Gb,f=0,h=T(a),d=h&&h[J]?h[J]:0;0>d&&(d=0);var g=a.nodeName.toUpperCase(),v=Ub[g];v||(c|=nb);var e;a:{e=Va(T(a),a.nodeName);for(var s=0;s<e.length;s++)if(e[s]==a){e=s;break a}e=0}e||(c|=pb);s=Ha(a);(h=h?Ha(h):null)&&(s[0]==h[0]&&s[1]==h[1]&&s[2]==h[2]&&s[3]==h[3])&&(c|=Mb);ab[b].pos=s[0]+"x"+s[1];ab[b].size=s[2]+"x"+s[3];a.id&&"string"==typeof a.id&&(c|=Nb);(h=Ia(a))&&(c|=Fb);var F=Wa(a);F&&(f|=Hb);
var l;a:{l=Va(T(a),a.tagName);for(var w=0;w<l.length;w++)if((!l[w].id||"string"!=typeof l[w].id)&&Wa(l[w])==F&&Ia(l[w])==h){l=!0;break a}l=!1}if(l)var c=c|Pa,k=Ea((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,""));l=[];u(l,Vb);n(l,b);u(l,c);n(l,d);v?u(l,v):U(l,g);e&&n(l,e);c&Mb||(n(l,s[0]),n(l,s[1]),n(l,s[2]),n(l,s[3]));c&Nb&&U(l,a.id);h&&ba(l,h);c&Pa&&ba(l,k);u(l,f);F&&ba(l,F);return l}function ga(a,b,c,h,f,d){for(;c&&(!c.offsetWidth||!c.offsetHeight);)c=T(c);if(!c)return null;var g=c[J];
if(!g||0>g)return null;var e={mousemove:Wb,click:ua,dblclick:hb,mousedown:z,mouseup:$,touch:l}[b];if(!e)return null;var v=Ua(c);c=[];u(c,e);n(c,a);n(c,g);n(c,Math.max(0,h[0]-v[0]));n(c,Math.max(0,h[1]-v[1]));/^mouse(up|down)|click$/.test(b)&&(a=f||d,u(c,2>a?ib:a==(f?2:4)?kb:jb));return c}function oa(a,c){var b=[];u(b,Xb);n(b,a);n(b,c[0]);n(b,c[1]);return b}function pa(a,c,b){var h=[];b=b[J];if(!b||0>b)return null;u(h,H);n(h,a);n(h,c[0]);n(h,c[1]);n(h,b);return h}function qa(a,c,b){var h=[];u(h,Ra);
n(h,a);n(h,c[0]);n(h,c[1]);n(h,b[0]);n(h,b[1]);return h}function Z(a,c,b,h){var f=[];u(f,ca);n(f,a);ba(f,c);u(f,b);a=h[J];if(!a||0>a)a=0;n(f,a);return f}function sa(a,c){var b,h;0==c.length?h=b="":100>=c.length?(b=c,h=""):200>=c.length?(b=c.substr(0,100),h=c.substr(100)):(b=c.substr(0,97),h=c.substr(c.length-97));var f=[];u(f,ta);n(f,a);V(f,b);V(f,h);return f}function za(a){var c=[];u(c,Yb);n(c,a);return c}function Aa(a){var c=[];u(c,Zb);n(c,a);return c}function Ba(a){var c=[];u(c,$b);n(c,a);return c}
function Ca(a,c){var b=[];u(b,ac);n(b,a);n(b,c[J]);return b}function Da(a,c){var b=[];u(b,bc);n(b,a);n(b,c[J]);return b}function Ja(a,c,b){var h=[];u(h,I);n(h,a);n(h,c[J]);U(h,String(b));return h}function bb(a,c){var b=c[J];if(0<b){var h=[],f=Ha(c),d=ab[b],g=f[0]+"x"+f[1],e=f[2]+"x"+f[3];g!=d.pos&&(d.pos=g,u(h,s),n(h,a),n(h,b),n(h,f[0]),n(h,f[1]));e!=d.size&&(d.size=e,u(h,va),n(h,a),n(h,b),n(h,f[2]),n(h,f[3]));if(h.length)return h}return null}function Qa(a){var c=a[J];if(!c||(0>c||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName))||
!a.form||ob(a.form,"-metrika-noform"))return null;var b=Xa(a.form);if(0>b)return null;var h;h="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 h)return null;for(var f=-1,d=a.form.elements,g=d.length,e=0,v=0;e<g;e++)if(d[e].name==a.name){if(d[e]==a){f=v;break}v++}if(0>f)return null;d=[];u(d,tb);n(d,c);n(d,b);n(d,h);V(d,a.name||"");n(d,f);return d}function ub(a,c){var b=Xa(c);if(0>b)return null;for(var h=c.elements,
f=h.length,d=[],g=0;g<f;g++)if(!Za(h[g])){var e=h[g][J];e&&0<e&&M(d,e)}h=[];u(h,W);n(h,a);n(h,b);n(h,d.length);for(b=0;b<d.length;b++)n(h,d[b]);return h}function vb(){var a=[];u(a,t);return a}function cb(a){clearTimeout(Ob);for(var b=(new Date).getTime()+c;db.length&&(a||+(new Date).getTime()<b);){var g=db.shift();if(g=g[0].apply(d,g[1])){var e=g;6500<wa.length+e.length&&h();for(var g=wa,s=0,l=g.length;s<e.length;s++)g[l++]=e[s];eb||(eb=d.setTimeout(C(h),v))}}!0===a&&h(!0);db.length&&(Ob=d.setTimeout(C(cb),
f))}function G(a,c,b){M(db,[a,c]);cb(b)}function L(a){if(a[J])G(bb,[K(),a]);else{var c=T(a);c&&L(c);a[J]=wb;ab[wb]={};wb++;G(ja,[a]);G(Qa,[a])}}function k(a){var c=B(a),b,h,f=0;if(c&&"SCROLLBAR"!=c.nodeName){if(c&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c.tagName))if(c[J])L(c);else if(b=T(c,"form"))for(b=b.elements,h=b.length;f<h;f++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[f].tagName)&&!b[f][J]&&L(b[f]);else L(c);else L(c);G(ga,[K(),a.type,c,N(a),a.which,a.button])}}function xa(a){k(a);var c,h;d.getSelection?
(a=d.getSelection(),c=a.toString(),h=a.anchorNode):b.selection&&b.selection.createRange&&(a=b.selection.createRange(),c=a.text,h=a.parentElement());for(;h&&1!=h.nodeType;)h=h.parentNode;h&&"INPUT"==h.tagName&&"password"==h.type||(h&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(h.className)||c==xb)||(xb=c,G(sa,[K(),c]))}function Ka(a){var c=O(),b=c-Pb;if(!(b<w)){var h=N(a),f=yb[0]-h[0],d=yb[1]-h[1],f=f*f+d*d;0>=f||(16>f&&100>b||20>b&&256>f)||(Pb=c,yb=h,k(a))}}function ya(){Q=Ta();var a=O();a-Qb<w||10>Math.abs(Q[0]-
zb[0])&&10>Math.abs(Q[1]-zb[1])||(Qb=a,zb=Q,G(oa,[K(),Q]))}function X(a){a=B(a);var c=Math.random(),h=[a.scrollLeft,a.scrollTop];if(a.localId){if(c=Ab[a.localId],!c||10>Math.abs(h[0]-c[0])&&10>Math.abs(h[1]-c[1]))return}else{for(;Ab[c];)c=Math.random();a.localId=c}Ab[a.localId]=h;a!==b&&(L(a),G(pa,[K(),h,a]))}function ka(){G(qa,[K(),Sa(),Ga()])}function ha(a){G(vb,[],!0);h(!0);if("beforeunload"==a.type)for(a=+new Date+50;+new Date<a;);}function ia(a,c,b){a=B(a);"INPUT"==a.tagName&&"password"==a.type||
/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(L(a),G(Z,[K(),c,b,a]))}function La(a){var c=a.keyCode,b=R(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}[c]||(112<=c&&123>=c||96<=c&&105>=c)||b&$a)19==c&&(b&~$a)==qb&&(c=144),ia(a,c,b|$a),Bb=!1,d.setTimeout(C(function(){Bb=!0}),1),67==c&&(b&qb&&!(b&Lb||b&Kb))&&A()}function Ma(a){Bb&&(!Cb&&0!==a.which)&&(ia(a,a.charCode||a.keyCode,R(a)),Cb=!0,
d.setTimeout(C(function(){Cb=!1}),1))}function A(){Db||(Db=!0,xb&&G(za,[K()]),d.setTimeout(C(function(){Db=!1}),1))}function la(){Na||(Na=!0,G(Aa,[K()]))}function da(){Na&&(Na=!1,G(Ba,[K()]))}function ma(a){(!Na||a&&!a.fromElement)&&la()}function Oa(a){a&&!a.toElement&&da()}function ea(a){a=B(a);var c,b,h=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[J])L(a);else if(c=T(a,"form"))for(c=c.elements,b=c.length;h<b;h++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c[h].tagName)&&!c[h][J]&&L(c[h]);
else L(a);G(Ca,[K(),a])}}function Y(a){(a=B(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(L(a),G(Da,[K(),a]))}function na(a){a=B(a);if(!("INPUT"==a.tagName&&"password"==a.type||a&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||!a||!/^INPUT|SELECT|TEXTAREA$/.test(a.tagName))){var c=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;L(a);G(Ja,[K(),a,c])}}function P(a){a=B(a);if(!ob(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var c=a.elements,b=0;b<c.length;b++)Za(c[b])||L(c[b]);G(ub,
[K(),a],!0)}}function a(a){ya();if(a.touches&&a.touches.length){var c=B(a);if(c){L(c);for(var b=0;b<a.touches.length;b++)G(ga,[K(),"touch",c,[a.touches[b].pageX,a.touches[b].pageY],0,0])}}}function h(a){clearTimeout(eb);eb=0;if(wa.length){a={rn:Math.round(1E5*Math.random()),"wv-type":0,"cnt-class":ra,"page-url":y().href,wmode:0,"wv-hit":m,"wv-part":cc++,"wv-check":Ea(wa),"browser-info":["z",Eb,"i",fb].join(":")};for(var c=wa,b=c.length,h=[],f=b-b%3,d,g=0;g<f;g+=3)d=(c[g]<<16)+(c[g+1]<<8)+c[g+2],M(h,
fa[d>>18&63],fa[d>>12&63],fa[d>>6&63],fa[d&63]);switch(b-f){case 1:d=c[f]<<4;M(h,fa[d>>6&63],fa[d&63],"__");break;case 2:d=(c[f]<<10)+(c[f+1]<<2),M(h,fa[d>>12&63],fa[d>>6&63],fa[d&63],"_")}c={"wv-data":h.join("")};q.send("visor","webvisor",a,c);wa.length=0}}var c=100,f=200,v=15E3,g=20,F=50,w=10,Vb=1,Wb=2,Xb=3,H=16,z=4,ca=5,tb=7,s=9,va=10,W=11,l=12,t=13,Zb=14,$b=15,ac=17,bc=18,I=19,Yb=27,Ra=28,ta=29,$=30,ua=32,hb=33,ib=1,jb=2,kb=4,Pa=1,nb=2,pb=4,Mb=8,Fb=16,Nb=32,Gb=64,Hb=2,Lb=1,Kb=2,qb=4,Ib=8,$a=16,
Ub={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},aa=[],rb=0;S(0);var sb=0,db=[],Ob,wb=1,Pb=0,yb=[0,0],Qb=0,zb=[0,0],Ab={},Bb=!0,Cb=!1,xb="",Db=!1,Na=!0,fa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789*-".split(""),wa=[],eb,cc=1,Tb=O(),J="metrikaId_"+Math.random(),ab={},gb=":submit"+Math.random();
if("MetrikaPlayer"!=d.name){D(b,"mousemove",Ka);D(b,"click",k);D(b,"dblclick",k);D(b,"mousedown",k);D(b,"mouseup",xa);D(d,"scroll",ya);D(d,"beforeunload",ha);Rb||D(d,"unload",ha);D(d,"resize",ka);D(b,"keydown",La);D(b,"keypress",Ma);D(b,"copy",A);D(b,"touchmove",a);D(b,"touchstart",a);b.attachEvent&&!d.opera?(D(b,"focusin",ma),D(b,"focusout",Oa)):(D(d,"focus",la),D(d,"blur",da),D(b,"blur",da));b.addEventListener?(b.addEventListener("scroll",X,!0),b.addEventListener("focus",ea,!0),b.addEventListener("blur",
Y,!0),b.addEventListener("change",na,!0),b.addEventListener("submit",P,!0)):b.attachEvent&&(D(b,"focusin",ea),D(b,"focusout",Y),function(){for(var a=b.getElementsByTagName("form"),c=0;c<a.length;c++){for(var h=a[c].getElementsByTagName("*"),f=0;f<h.length;f++)/^INPUT|SELECT|TEXTAREA$/.test(h[f].tagName)&&D(h[f],"change",na);D(a[c],"submit",P)}}());(function(){var a=b.getElementsByTagName("form");if(a.length)for(var c=0;c<a.length;c++)a[c][gb]=a[c].submit,a[c].submit=function(){P({target:this});return this[gb]()}})();
"0:0"!=Q.join(":")&&ya();ka();var Sb=function(a,c){if(a){var h={"wv-type":1,"cnt-class":ra,"page-url":y().href,"wv-hit":m,"browser-info":["z",Eb,"i",fb,"pct",c||""].join(":")};b.all&&(a=a.replace(/\r\n/g,"\n"));var f;f=a;f=f.replace(/\r\n/g,"\n");for(var d=[],g=String.fromCharCode,e=0,v=f.length;e<v;e++){var s=f.charCodeAt(e);128>s?d.push(g(s)):(127<s&&2048>s?d.push(g(s>>6|192)):(d.push(g(s>>12|224)),d.push(g(s>>6&63|128))),d.push(g(s&63|128)))}f=d.join("");for(var d=[],l,F,w,s=0,k=f.length;s<k;)l=
f.charCodeAt(s++),g=f.charCodeAt(s++),e=f.charCodeAt(s++),v=l>>2,l=(l&3)<<4|g>>4,F=(g&15)<<2|e>>6,w=e&63,isNaN(g)?F=w=64:isNaN(e)&&(w=64),d.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(v)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(l)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(F)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(w));f={"wv-data":d.join("")};q.sendMultipart("webvisor",
h,f,3)}};r.uploadPage=function(a){if("function"==typeof d.toStaticHTML&&-1<d.toStaticHTML.toString().indexOf("NoScript"))return!1;var c=b.documentElement;if(c&&19E4<(""+c.innerHTML).length)return!1;var h=d.XMLHttpRequest?new d.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),f=(""+(b.characterSet||b.charset||"")).toLowerCase(),c="text/html"+(f?";charset="+f:"");if("html"==a)return a=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>","gi"),Sb(lb().replace(a,""),c),!0;h&&(h.open("get",
y().href,!0),h.onreadystatechange=function(){4==h.readyState&&Sb(h.responseText,h.getResponseHeader("content-type"))},h.overrideMimeType&&f&&h.overrideMimeType(c),h.send(null));return!0}}return{stop:function(){E(b,"mousemove",Ka);E(b,"click",k);E(b,"dblclick",k);E(b,"mousedown",k);E(b,"mouseup",xa);E(d,"scroll",ya);E(d,"beforeunload",ha);E(d,"unload",ha);E(d,"resize",ka);E(b,"keydown",La);E(b,"keypress",Ma);E(b,"copy",A);E(b,"touchmove",a);E(b,"touchstart",a);E(b,"focusin",ma);E(b,"focusout",Oa);
E(d,"focus",la);E(d,"blur",da);E(b,"blur",da);b.removeEventListener?(b.removeEventListener("scroll",X,!0),b.removeEventListener("focus",ea,!0),b.removeEventListener("blur",Y,!0),b.removeEventListener("change",na,!0),b.removeEventListener("submit",P,!0)):b.detachEvent&&(E(b,"focusin",ea),E(b,"focusout",Y),function(){for(var a=b.getElementsByTagName("form"),c=0;c<a.length;c++){for(var h=a[c].getElementsByTagName("*"),f=0;f<h.length;f++)/^INPUT|SELECT|TEXTAREA$/.test(h[f].tagName)&&E(h[f],"change",na);
E(a[c],"submit",P)}}());(function(){for(var a=b.getElementsByTagName("form"),c=0;c<a.length;c++)a[c][gb]&&(a[c].submit=a[c][gb])})()},uploadPages:function(a,c){function h(){E(b,"DOMContentLoaded",h);E(d,"load",h);for(var f=a.split(/\n/),g=y().href,e=/regexp:/,s=0;s<f.length;s++){var v=f[s];if(v)if(e.test(v)){if(v=Jb(v.replace(e,"")),RegExp(v).test(g)){r.uploadPage(c);break}}else if(-1!==g.indexOf(v)){r.uploadPage(c);break}}}"complete"==b.readyState?h():(D(b,"DOMContentLoaded",h),D(d,"load",h))}}}
var Fb=!1,Rb=-1===(""+d.navigator.userAgent).toLowerCase().search(/webkit/)&&-1!==(""+d.navigator.userAgent).toLowerCase().search(/gecko/),Q=Ta(),R=[];d.Ya=d.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};var Gb=!1,N=y(),Eb,fb,ja=d.navigator,oa=d.screen,za="https:"==N.protocol?"https:":"http:",Hb="$Rev: 1825 $".match(/(\d+)/)[1],pa="object"==typeof b.all,hb=64,qa=pa?512:2048,ib=pa?512:2048,jb=pa?100:400,Aa="noindex",Ba=
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"),Ib=+new Date,Pa="_ym_visorc",Qa,Ca;d.Ya.Metrika=function(e,B,p,m){function q(a,b){b=b||256;if(!a)return"";a.length>b&&(a=a.substr(0,b));
return(d.encodeURIComponent||d.escape)(a).replace(/\+/g,"%2B")}function r(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===ga)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=[],f=0,d=a.length;f<d;f++)c[c.length]=r(a[f]);return"["+c.join(",")+"]";case Object:c="{";f=0;for(d in a)if(a.hasOwnProperty(d)){var g=a[d];g!==ga&&(c+=
(f?",":"")+'"'+b(d)+'":'+r(g),f++)}return c+"}";default:return"null"}}function C(a){return Math.floor(Math.random()*("number"==typeof a?a:1E6))}function D(a){for(var b=+new Date,c=1;0<c;c++)if(0==c%1E3){var f=+new Date;if(b>f)break;if(f-b>a)break}}function E(a,b){if(!a||!b)return!1;for(var c=[],f=0;f<b.length;f++)c.push(b[f].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 Q(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 R(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}
function S(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 c=b.target,f=!1;if(!b.hostname)return!1;c&&"_self"!=c&&"_top"!=c&&"_parent"!=c||(f=!0);(c=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&d.Event&&(c=a.modifiers&d.Event.CONTROL_MASK||a.modifiers&d.Event.SHIFT_MASK||a.modifiers&d.Event.ALT_MASK);return f&&!c}function O(a,b,c,f,d){function g(a,c){e[e.length]=a;e[e.length]=
c}d=d||{};c="undefined"!=typeof c?c:ia;var e=[];d.ar&&!d.onlyData&&(c=u(c),a=u(a));g("page-ref",q(c,qa));g("page-url",q(a,qa));g("browser-info",Z(b,d));Ra()?g("ut",Aa):"undefined"!=typeof d.ut&&g("ut",q(""+d.ut,hb));f&&g("site-info",q(r(f),ib));d.saveRef&&(ia=c);a=ba(Ka,e);Da()||((new Image).src=a,n(a),d.isDelay&&D(d.delay));return a}function K(a,h,c,f,v,g,F){function w(a,c){k[k.length]=a;k[k.length]=c}v=v||{};c="undefined"!=typeof c?c:ia;var k=[];v.ar&&!v.onlyData&&(c=u(c),a=u(a));if(!Da()){var p=
"_ymjsp"+("--"==e?"":C()),m=b.createElement("script");d[p]=function(a){try{delete d[p]}catch(c){d[p]=ga}F(a);m.parentNode&&m.parentNode.removeChild(m)};w("wmode",5);w("callback",p);w("page-ref",q(c,qa));w("page-url",q(a,qa));a=Z(h,v);g&&(a=["vc",g,a].join(":"));w("browser-info",a);Ra()?w("ut",Aa):"undefined"!=typeof v.ut&&w("ut",q(""+v.ut,hb));f&&w("site-info",q(r(f),ib));v.saveRef&&(ia=c);f=ba(Ka,k);m.type="text/javascript";m.src=f;v=b.getElementsByTagName("head")[0];v.insertBefore(m,v.firstChild);
n(f)}}function ba(a,b){for(var c=["rn",C(),"cnt-class",p].concat(b),f=[],d=0;d<c.length;d+=2){var g=c[d+1];g&&(f[f.length]=c[d]+"="+g)}return ha+a+e+"?"+f.join("&")}function u(a){var b=y(),c=b.host,b=b.href;if(!a)return b;if(-1!=a.search(/^\w+:\/\//))return a;var f=a.charAt(0);if("?"==f)return f=b.search(/\?/),-1==f?b+a:b.substr(0,f)+a;if("#"==f)return f=b.search(/#/),-1==f?b+a:b.substr(0,f)+a;if("/"==f){if(f=b.search(c),-1!=f)return b.substr(0,f+c.length)+a}else return c=b.split("/"),c[c.length-
1]=a,c.join("/");return a}function n(a){"function"==typeof d.ymLog&&d.ymLog(a)}function Z(a,h){function c(a,c){a&&c&&(e[e.length]=[a,c].join(":"))}function f(a){c(a,h[a]?"1":"")}h=h||{};var e=[],g=-1*(new Date).getTimezoneOffset(),F=Fa();fb||(fb=F,Eb=g);c("j",ja.javaEnabled()?"1":"");oa&&c("s",oa.width+"x"+oa.height+"x"+(oa.colorDepth||oa.pixelDepth));null===la&&(la=ta());c("f",la);null===da&&(da=ua());c("l",da||"");h.pa||c("w",Ha()+"x"+Sa());c("z",g);c("i",F);c("en",(""+(b.characterSet||b.charset||
"")).toLowerCase());c("v",Hb);c("c",ja.cookieEnabled?"1":"");pa&&b.documentMode&&(null===ma&&(ma=Function("return /*@cc_on @_jscript_version @*/;")()),ma&&c("jv",ma));c("la",(ja&&(ja.language||ja.browserLanguage)||"").toLowerCase());c("ex","prerender"==b.webkitVisibilityState?"pre1":"");P&&c("wh","1");F="ar ln dl ad nb pa".split(" ");for(g=0;g<F.length;g++)f(F[g]);F=["va","vt","sn","sa","he"];h.nb&&F.push("cl");for(g=0;g<F.length;g++){var w=F[g];c(w,h[w])}c("hid",xa);c("ds",Ta());k._firstPaint||(k._firstPaint=
Ua(),c("fp",k._firstPaint));if(k._webvisor){d.name||(d.name=Math.round(65535*Math.random()));if(g=+d.name)0>g&&(g*=-1),g%=65535;c("wn",g||Ea(d.name));try{d.history&&c("hl",String(d.history.length))}catch(n){}}g="undefined"==typeof a?(g=$())?q(g,jb):"":q(a,jb);c("t",g);return e.join(":")}function ta(){var a=null,b=null,c,f=d.navigator;if("undefined"!=typeof f.plugins&&"object"==typeof f.plugins["Shockwave Flash"])a=f.plugins["Shockwave Flash"].description,!a||"undefined"!=typeof f.mimeTypes&&f.mimeTypes["application/x-shockwave-flash"]&&
!f.mimeTypes["application/x-shockwave-flash"].enabledPlugin||(b=a.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,"."));else if("undefined"!=typeof d.ActiveXObject)try{(c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))&&(a=c.GetVariable("$version"))&&(b=a.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}catch(e){}return b}function $(){var a=b.title;"string"!=typeof a&&(a=(a=b.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function ua(){var a=null;if(d.ActiveXObject)try{var b=
new ActiveXObject("AgControl.AgControl"),c=function(a,c,b,f){for(;a.isVersionSupported(c[0]+"."+c[1]+"."+c[2]+"."+c[3]);)c[b]+=f;c[b]-=f},f=[1,0,0,0];c(b,f,0,1);c(b,f,1,1);c(b,f,2,1E4);c(b,f,2,1E3);c(b,f,2,100);c(b,f,2,10);c(b,f,2,1);c(b,f,3,1);a=f.join(".")}catch(e){}else if(b=ja.plugins["Silverlight Plug-In"])a=b.description;return a}function Fa(){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 Ha(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientWidth:b.body&&(a=b.body.clientWidth);return a}function Sa(){var a=-1;b.documentElement&&"CSS1Compat"==b.compatMode?a=b.documentElement.clientHeight:b.body&&(a=b.body.clientHeight);return a}function Ga(){var a=d.performance||d.webkitPerformance,b=[];if(a=a&&a.timing){var c=a.navigationStart;c&&(b=[a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,
a.responseEnd-a.responseStart,a.fetchStart-c,a.redirectEnd-a.redirectStart,a.redirectCount],b.push(a.domInteractive&&a.domLoading?a.domInteractive-a.domLoading:null),b.push(a.domContentLoadedEventStart&&a.domContentLoadedEventEnd?a.domContentLoadedEventEnd-a.domContentLoadedEventStart:null),b.push(a.domComplete?a.domComplete-c:null),b.push(a.loadEventStart?a.loadEventStart-c:null),b.push(a.loadEventStart&&a.loadEventEnd?a.loadEventEnd-a.loadEventStart:null))}return b}function Ta(){var a=[],b=k._lastPerformanceTiming,
c=Ga();if(b)for(var f=0,d=b.length;f<d;f++)null===c[f]?a.push(c[f]):a.push(b[f]===c[f]?"":c[f]);else a=c;k._lastPerformanceTiming=c;return a.join(",")}function Ua(){var a;if("object"==typeof d.chrome&&d.chrome.loadTimes){if(a=d.chrome.loadTimes(),a.requestTime&&a.firstPaintTime)return~~(1E3*(a.firstPaintTime-a.requestTime))}else if(d.performance&&d.performance.timing&&(a=d.performance.timing,a.navigationStart&&a.msFirstPaint))return a.msFirstPaint-a.navigationStart;return null}function Va(a){var d=
b.referrer||"";if(RegExp("^https?://"+N.host+"/").test(d))return!1;for(var c=a.patterns,f=0;f<c.length;f++)if(d.match(RegExp(c[f],"i"))){var e=a.params||[];if(e.length)for(var g=decodeURIComponent((RegExp.$1||"").replace(/\+/g,"%20")),F=0;F<e.length;F++){if(g==decodeURIComponent(e[F]))return!0}else return!0}return!1}function Ia(a){var d=!1;if(a&&"string"!=typeof a&&a.length)for(var c=0;c<a.length;c++){var f=a[c].selector,e=a[c].text,g=f.charAt(0),f=f.slice(1);if("#"==g){if(g=b.getElementById(f))d=
!0,g.innerHTML=e}else if("."==g){g=f;f=(f=void 0)||b;if(f.getElementsByClassName)g=f.getElementsByClassName(g);else{for(var f=f.getElementsByTagName("*"),F=[],k=0;k<f.length;k++)ob(f[k],g)&&F.push(f[k]);g=F}for(f=0;f<g.length;f++)d=!0,g[f].innerHTML=e}}return d}function Wa(a,b){a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"");var c="";if(a)for(var d=a.split("&"),e=0;e<d.length;e++){var g=d[e].split("=");"_openstat"==g[0]&&(c=g[1])}b&&0==b.indexOf("_openstat=")&&(c=b.slice(10));c&&(c=-1<c.indexOf(";")?
decodeURIComponent(c):Xa(c.replace(/[-*_]/g,function(a){return{"*":"+","-":"/",_:"="}[a]||a})));return c&&(c=c.split(";"),4==c.length)?{service:c[0],campaign:c[1],ad:c[2],source:c[3]}:null}function Xa(a){for(;a.length%4;)a+="=";var b,c,d,e,g,k=0,w="";do{b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(k++));c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(k++));e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(k++));
g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(k++));if(0>b||0>c||0>e||0>g)return null;d=b<<18|c<<12|e<<6|g;b=d>>16&255;c=d>>8&255;d&=255;w=64==e?w+String.fromCharCode(b):64==g?w+String.fromCharCode(b,c):w+String.fromCharCode(b,c,d)}while(k<a.length);a=w;e="";for(k=c1=c2=g=0;g<a.length;)k=a.charCodeAt(g),128>k?(e+=String.fromCharCode(k),g++):191<k&&224>k?(c2=a.charCodeAt(g+1),e+=String.fromCharCode((k&31)<<6|c2&63),g+=2):(c2=a.charCodeAt(g+1),c3=a.charCodeAt(g+
2),e+=String.fromCharCode((k&15)<<12|(c2&63)<<6|c3&63),g+=3);return e}function Za(){var a=!1;if(Ya._metrika.hitParam[X]){if(1!=p||Ya._metrika.counters[X])return!1;a=!0}Ya._metrika.counters[X]=k;Ya._metrika.hitParam[X]=1;k._webvisor=!m&&(A&&A.webvisor||Fb||Gb);k._directCampaign=A&&A.directCampaign;A&&A.trackHash&&k.trackHash(!0);if(!m&&!a){k.replacePhones();var h=sa(Pa);"b"!=h&&"w"!=h&&(h="");nb()||(h="b");Qa=+new Date;K(N.href,$(),b.referrer,B,{ut:ka,he:A?~~A.httpError:0,ad:1==p&&d.Ya&&d.Ya.Direct?
!0:!1,saveRef:!0},h,function(a){Ca||(Ca=+new Date);a=a||{};var f=a.webvisor||{},v=[];if(ea){var g=+f.recp;if(!isFinite(g)||0>g||1<g)h="w";h||(h=xa%1E4/1E4<g?"w":"b");U(Pa,h,30);"w"==h?(M(v,"visor"),g=f.arch_type,(f=f.urls)&&g&&ea.uploadPages(f,g)):ea.stop()}Oa.init(v);g=a.mp2;v=e;a=k;f="."+N.host.replace(/^www\./,"");U("_ym_mp2_substs_"+v,"",-1,f);if(g){var n="_ym_mp2_track_"+v;b:{var w=g.conditions;if(w&&w.length)for(var p=0;p<w.length;p++){var m;if("ref"==w[p].type)m=Va(w[p]);else if(m="adv"==w[p].type){var q=
w[p],H=Ya._metrika.counter._directCampaign,z=q.ServiceNamePattern,ca=q.RefererPattern;m=H?q.direct_orders:q.direct_camp;var tb=b.referrer,s=N.search,s=s&&s.replace(/^\?/,""),va={};if(s)for(var s=s.split("&"),W=0;W<s.length;W++){var l=s[W].split("=");va[decodeURIComponent(l[0])]=decodeURIComponent(l[1])}for(var s=Wa(N.search,N.hash),W={},l=["source","medium","campaign","term","content"],t=0;t<l.length;t++)va["utm_"+l[t]]&&(W[l[t]]=va["utm_"+l[t]]);t=H?"direct.yandex.ru":s&&s.service||W.source;l=!1;
if(!l&&z&&z.length)for(var y=0;y<z.length;y++)if(RegExp(z[y]).test(t)){l=!0;break}if(!l&&ca&&ca.length)for(z=0;z<ca.length;z++)if(RegExp(ca[z]).test(tb)){l=!0;break}!l&&(q.google_adwords&&va.gclid)&&(l=!0);if(l&&(m&&m.length)&&(l=!1,q=H||s&&s.campaign||W&&W.campaign))for(H=0;H<m.length;H++)if(m[H]==q){l=!0;break}m=l}if(m){w[p].track_id&&U(n,w[p].track_id,43200,f);break b}}}(n=sa(n))&&g.substs&&(g=g.substs[n])&&(U("_ym_mp2_substs_"+v,r(g),0,f),v=Ia(g),a.params("__ym",v?"mp_trackid":"mp_trackid_bad",
n))}V(d,"load",k.replacePhones);k._inited=!0})}lb();A&&(A.enableAll?k.enableAll():(A.clickmap&&k.clickmap(A.clickmap),A.trackLinks&&k.trackLinks(A.trackLinks),A.accurateTrackBounce&&k.accurateTrackBounce(A.accurateTrackBounce),A.ad&&ad()));k._webvisor&&(ea=new pb(e,p,A,xa,Oa,k))}function bb(a){var b={delay:Ba};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Ba:a.delay;break;case "boolean":b.on=a;break;default:return}k._trackLinks=b}function lb(){bb(!1);
V(b,"click",function(a){k._trackLinks.on&&ub(a)})}function ub(a){function b(a){var d=Jb(c.innerHTML?c.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");O(e,e==d?"":d,y().href,null,a)}var c=Q(a);if(c){var d=!1,e=""+c.href,g=e?e.split(/\?/)[0]:"";if(kb.test(g)||kb.test(e)||E(e,Y)||E(g,Y))d=!0;var n=c.className,g=n&&-1!=n.search(/ym-disable-tracklink/)?!0:!1,n=n&&-1!=n.search(/ym-external-link/)?!0:!1;g||(a={ln:!0,dl:d,isDelay:T(a,c),delay:k._trackLinks.delay},n?b(a):R(y().hostname,c.hostname)?d&&
(a.ln=!1,b(a)):e&&-1!=e.search(/^ *javascript:/i)||(a.ut=Aa,b(a)))}}function vb(a,e){function c(){if(!H){y&&clearTimeout(y);var b=e,c;c=m?p:p+ +new Date-q;b-=c;0>b&&(b=0);y=setTimeout(function(){H=!0;k(!1);a()},b)}}function f(){n||(g=!0,m=!1,n=!0,c())}function k(a){for(var b=0;b<z.length;b+=3)a?V(z[b],z[b+1],z[b+2]):Ja(z[b],z[b+1],z[b+2])}var g=!1,n=!1,m=!0,p=0,q=+new Date,y=null,H=!1,z=[d,"blur",function(){m=g=n=!0;p+=+new Date-q;q=+new Date;c()},d,"focus",function(){g||n||(p=0);q=+new Date;g=n=
!0;m=!1;c()},b,"click",f,b,"mousemove",f,b,"keydown",f,b,"scroll",f];k(!0);c()}function cb(a){function b(){var a=y().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 v(){var d=b();d!==c&&(a(),c=d);na=setTimeout(v,200)})()}function G(a){Ma=ia=La;O(y().href,$(),Ma,null,{ut:ka,ad:1==p&&d.Ya&&d.Ya.Direct?!0:!1,wh:!0,saveRef:!0});La=y().href}function L(a){function e(){var a=b.documentElement;return Math.max(a.scrollWidth,b.body.scrollWidth,
a.clientWidth)}function c(a){function c(a){a=a.getBoundingClientRect();var f=b.body,e=b.documentElement,h=a.left+(d.pageXOffset||e.scrollLeft||f.scrollLeft)-(e.clientLeft||f.clientLeft||0);return{top:Math.round(a.top+(d.pageYOffset||e.scrollTop||f.scrollTop)-(e.clientTop||f.clientTop||0)),left:Math.round(h)}}return a.getBoundingClientRect?c(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 f(a){return a.toString().toUpperCase()}
function k(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 p(a){for(var b=f(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 m=
this,C=0,E=null,u="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(" "),H=59,z=String.fromCharCode,ca={},r=0;r<u.length;r++)ca[u[r]]=z(H),z(H),H++;this.handler=
function(a){var H=b.getElementsByTagName("body")[0];if(!d.ymDisabledClickmap&&!k(H)){if(m._prefs.hasQuota){if(!m._prefs.quota)return;m._prefs.quota--}var z=a.target||a.srcElement;3==z.nodeType&&(z=z.parentNode);var H=f(z.nodeName),l=g(a),t;a.which||a.button===ga||(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);t=a.which;if(t=2!=t&&3!=t||"A"==H)if(t=z.offsetHeight,t=!(0===z.offsetWidth&&0===t||z.style&&"none"===z.style.display)){b:{for(t=z;t.parentNode;){if(k(t)){t=!0;break b}t=t.parentNode}t=!1}if(t=
!t){b:{t=m._prefs.ignoreTags;for(var u=0;u<t.length;u++)if(f(t[u])==f(H)){t=!0;break b}t=!1}t=!t&&m._prefs.filter(z,H)}}if(t){H=+new Date;z={dom:z,x:l.x,y:l.y,time:H};if((l=50<H-C)&&!(l=!m._prefs.ignoreSameClicks)){if(l=E){t=Math.abs(l.x-z.x);var u=Math.abs(l.y-z.y),r=z.time-l.time,l=l.dom==z.dom&&2>t&&2>u&&1E3>r?!0:!1}else l=!1;l=!l}if(l&&!Da()){t=g(a);l=t.x;t=t.y;var r=a.target||a.srcElement,A=m._prefs,B=c(r),I="",u=y().href;switch(A.mode){case "fixed":I="0";p(r)&&(I+="u");break;case "centered":I=
"1";B=Math.floor(e()/2);l=l>B?l-B+32768:l;p(r)&&(I+="u");break;default:I=f(r.nodeName);I="BODY"==I||"HTML"==I?e():r.offsetWidth;A=f(r.nodeName);"BODY"==A||"HTML"==A?(A=b.documentElement,A=Math.max(A.scrollHeight,b.body.scrollHeight,A.clientHeight)):A=r.offsetHeight;I||(I=1);A||(A=1);l=Math.floor(65535*(l-B.left)/I);t=Math.floor(65535*(t-B.top)/A);for(B="";r.parentNode&&"BODY"!=f(r.nodeName)&&"HTML"!=f(r.nodeName);){B+=ca[r.nodeName]||"*";b:{for(var I=r.parentNode,G=A=0;G<I.childNodes.length;G++)if(r.nodeName==
I.childNodes[G].nodeName){if(r==I.childNodes[G]){I=A;break b}A++}I=0}B+=I||"";r=r.parentNode}I=q(B,128)}P||(u=u?u.replace(/\#.*$/,""):u);"function"==typeof m._prefs.urlFilter&&(u=m._prefs.urlFilter(u));l=ba(ya,["page-url",q(u,qa),"pointer-click","x:"+l+":y:"+t+":t:"+Math.floor(Math.floor(+new Date-Ib)/100)+":p:"+I]);(new Image).src=l;n(l);if(l=a.target||a.srcElement){3==l.nodeType&&(l=l.parentNode);for(t=f(l.nodeName);l.parentNode&&l.parentNode.nodeName&&("A"!=t&&"AREA"!=t||!l.href);)l=l.parentNode,
t=f(l.nodeName);l=l.href?l:!1}else l=!1;l&&T(a,l)&&D(m._prefs.delay)}C=H;E=z}}};this.setPrefs=function(a){function b(a,c){return!0}this._prefs="undefined"==typeof a||!1===a||!0===a?{filter:b,ignoreTags:[],mode:"",delay:Ba,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?Ba: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||V(b,"click",this.handler,!0);this._start=!0};this.stop=function(){this._start&&Ja(b,"click",this.handler,!0);this._start=!1};this.start(a)}var k=this,xa=Math.round(1073741824*Math.random()),Ka="//mc.yandex.ru/watch/",ya="//mc.yandex.ru/clmap/",X,ka="",ha=za,ia=N.href,La=N.href,Ma="",A;Ya._metrika.counter||
(Ya._metrika.counter=k);"object"==typeof e&&(A=e,m=e.defer,ka=e.ut,p=e.type,B=e.params,ha=e.onlyHttps?"https:":za,e=e.id);e=e||0;p=p||0;X=e+":"+p;if(Ya._metrika.counters[X])return Ya._metrika.counters[X];var la=null,da=null,ma=null,Oa=new function(a,e,c){function f(a,b,c){if(n)k(n,g(a,b,0),c,"application/x-www-form-urlencoded");else{if("XMLHttpRequest"in d){var f=new XMLHttpRequest;if("withCredentials"in f){var e=c?"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(c):null);return}}for(e in c)c.hasOwnProperty(e)&&(b[e]=c[e]);(new Image).src=g(a,b,0)}}function k(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 h in c)c.hasOwnProperty(h)&&M(b,'<textarea name="',
h,'"></textarea>');M(b,"</form>");e.innerHTML=b.join("");a.body.appendChild(e);h=e.getElementsByTagName("form")[0];for(var g in c)c.hasOwnProperty(g)&&(h[g].value=c[g]);h.submit();setTimeout(function(){a.body.removeChild(e)},1E4)}function g(b,d,f){d["browser-info"]=["ct",f,d["browser-info"]].join(":");return a+"//"+e+"/"+b+"/"+c+"?"+mb(d)}function m(){if(d.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();a.write("<html><body></body></html>");a.close();return a}return null}try{var n=m()}catch(p){}var q=
"",r=[];return{send:function(a,b,c,d){a?q?-1<q.indexOf("|"+a+"|")&&f(b,c,d):M(r,arguments):f(b,c,d)},sendMultipart:function(a,c,d,f){k(n||b,g(a,c,f),d,"multipart/form-data")},init:function(a){q="|"+a.join("|")+"|";for(a=0;a<r.length;a++)-1<q.indexOf("|"+r[a][0]+"|")&&f(r[a][1],r[a][2],r[a][3]);r.length=0}}}(ha,"mc.yandex.ru",e),ea;k.replacePhones=function(){try{var a=sa("_ym_mp2_substs_"+e);if(a){var b=(new Function("return "+a))();b&&Ia(b)}}catch(c){}};k.reachGoal=function(a,d){var c=a?"goal://"+
y().hostname+"/"+a:y().href,f=$(),e=a?y().href:b.referrer;O(c,f,e,d,{ar:!0,isDelay:a?!0:!1,delay:100});return!0};k.trackLinks=bb;k.hit=function(a,b,c,d,e){a&&O(a,b,c,d,{ut:e,ar:!0,saveRef:!0})};k.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}O(y().href,"","",a,{ar:!0,pa:!0,onlyData:!0})}};k.file=function(a,b,c,d){a&&O(a,"",y().href,d,{ar:!0,ln:!0,dl:!0})};k.extLink=function(a,b,c,d){a&&
O(a,"",y().href,d,{ar:!0,ln:!0,ut:Aa})};k.notBounce=function(){var a=0;Qa&&Ca&&(a=Ca-Qa);O(y().href,"","",null,{cl:a,ar:!0,nb:!0,onlyData:!0})};var Y=[];k.addFileExtension=function(a){"string"==typeof a?Y.push(a):Y=Y.concat(a)};k.clickmap=function(a){k._clickmap?k._clickmap.updateStatus(a):k._clickmap=new L(a)};k.accurateTrackBounce=function(a){var d=function(){k.notBounce()};k._isAccurateTrackBounce||(k._isAccurateTrackBounce=!0,S(b.referrer,y().href)||("number"!=typeof a&&(a=15E3),pa?setTimeout(d,
a):vb(d,a)))};var na=null,P=!1;k.trackHash=function(a){!1===a?P&&("onhashchange"in d?Ja(d,"hashchange",G):clearInterval(na),P=!1):P||("onhashchange"in d?V(d,"hashchange",G):cb(G),P=!0);k._trackHash=P};k.video=function(a,b,c,d){var e=["end","play","pause","seek"];if(a&&c){a:{for(var g=0,k=e.length;g<k;g+=1)if(a===e[g]){e=g;break a}e=-1}-1!==e&&O(c,d||"","",null,{ar:!0,va:a,vt:~~b})}};k.social=function(a,b,c){a&&b&&O(c||y().href,"","",null,{ar:!0,sn:q(a,64),sa:q(b,64)})};k.enableAll=function(){k.trackLinks(!0);
k.clickmap(!0);k.accurateTrackBounce()};k.pause=D;k.uploadPage=function(){};k._performanceTiming=Ga;e&&Za()};d.ya_cid&&new Ya.Metrika(d.ya_cid,d.ya_params,d.ya_class);d.ya_cid&&!d.ya_hit&&(d.ya_hit=function(b,d){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(b,d)});var B=d.yandex_metrika_callback,S=d.yandex_metrika_callbacks;"function"==typeof B&&B();if("object"==typeof S)for(B=0;B<S.length;B++){var Z=S[B];Z&&(S[B]=null,Z())}ta("yandex_metrika_callback");ta("yandex_metrika_callbacks");S=["link",
"click","scroll","res"];for(B=0;B<S.length;B++)if(Z=S[B]+"map",-1!=N.href.search("ym_playback="+Z)){$(za+"//metrika.yandex.ru/js/"+Z+"/_loader.js");break}d.Ya.Metrika.informer=function(b){var d=!!Ya.Metrika._informer;Ya.Metrika._informer=b;d||$(za+"//mc.yandex.ru/metrika/informer.js")};"complete"==b.readyState?ua():V(d,"load",ua)})(this,this.document);
