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