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