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