(function(f,d,ka){function G(a,b){return function(){try{return a.apply(this,arguments)}catch(c){la(c,b)}}}function la(a,b){if(0.01>Math.random()){var c=["cp: "+b,a.name+": "+a.message,"debug: "+fa,"code: "+Ka,"stack: "+a.stack];(new Image).src="//an.yandex.ru/jserr/101500?"+va({"cnt-class":100,errmsg:c.join("; ").replace(/\r?\n/g,"\\n")})}}function ga(a){0.01>Math.random()&&(a=["ErrorLog: "+a,"code: "+Ka],(new Image).src="//an.yandex.ru/jserr/101500?"+va({"cnt-class":100,errmsg:a.join("; ").replace(/\r?\n/g,
"\\n")}))}function N(a,b,c){return f.setTimeout(G(a,c||"setTimeout"),b)}function M(a){for(var b=1,c=a.length;b<arguments.length;b++)a[c++]=arguments[b];return a.length}function ma(a){return"[object Array]"==Object.prototype.toString.call(a)}function hb(a,b,c){var z,g,d=0;for(z in a)if(a.hasOwnProperty(z)&&(g=c?b.call(c,a[z],z,a,d):b(a[z],z,a,d),d++,!1===g))break;return this}function D(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "),c=b.length,d=c;d--;)a[b[d]]="";
try{for(var g=f.location,d=c;d--;){var wa=b[d];a[wa]=""+g[wa]}}catch(h){L&&(a=L)}return a}function wb(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function H(){return+new Date}function xa(a){return Math.floor(Math.random()*("number"==typeof a?a:1073741824))}function Lb(){var a=d.documentElement,b=d.doctype,c=a.attributes,z="",g="",f="",g=a.outerHTML;if(!g){for(g=0;g<c.length;g++){var h=c[g];h&&(z+=" "+h.name+'="'+(h.value||"")+'"')}g="<html"+z+">"+a.innerHTML+"</html>"}b&&(f="<!DOCTYPE "+
b.name+(b.publicId?' PUBLIC "'+b.publicId+'"':"")+(b.systemId?' "'+b.systemId+'"':"")+">\n");return f+g}function va(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&(b[b.length]=c+"="+encodeURIComponent(a[c]).replace(/\+/g,"%2B"));return b.join("&")}function ab(a){for(var b=a.length,c=0,d=255,g=255;b;){var f=21<b?21:b,b=b-f;do{var h="string"==typeof a?a.charCodeAt(c):a[c];c++;if(255<h)var m=h>>8,h=h&255,h=h^m;d+=h;g+=d}while(--f);d=(d&255)+(d>>8);g=(g&255)+(g>>8)}a=(d&255)+(d>>8)<<8|(g&255)+(g>>8);return 65535==
a?0:a}function Mb(a){for(var b=H(),c=1;0<c;c++)if(0==c%1E3){var d=H();if(b>d)break;if(d-b>a)break}}function La(a){return-1!==(""+f.navigator.userAgent).toLowerCase().search(a)}function na(a,b,c,f){/[^a-z0-9.-]/.test(f)&&(f=null);a=a+"="+encodeURIComponent(b);c&&(b=new Date,b.setTime(b.getTime()+6E4*c),a+=";expires="+b.toGMTString());f&&(a+=";domain="+f);d.cookie=a+";path=/"}function Ma(a){return d.cookie.match(RegExp("(?:^|;\\s*)"+a+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null}function Nb(){na("_metrika_enabled",
"1",60);var a=!!Ma("_metrika_enabled");na("_metrika_enabled","",-1,void 0);return a}function ib(){var a=d.documentElement;return"CSS1Compat"==d.compatMode?a:d.body||a}function xb(){var a=ib(),b=a.__lookupGetter__&&a.__lookupGetter__("clientHeight");fa=b&&String(b);return[a.clientWidth,a.clientHeight]}function yb(){var a=ib(),b=xb();return[Math.max(a.scrollWidth,b[0]),Math.max(a.scrollHeight,b[1])]}function zb(){return[f.pageXOffset||d.documentElement&&d.documentElement.scrollLeft||d.body&&d.body.scrollLeft||
0,f.pageYOffset||d.documentElement&&d.documentElement.scrollTop||d.body&&d.body.scrollTop||0]}function Ab(a){if(!a.ownerDocument||"PARAM"==a.tagName||a==d.body||a==d.documentElement)return[0,0];if(a.getBoundingClientRect)return a=a.getBoundingClientRect(),[Math.round(a.left+O[0]),Math.round(a.top+O[1])];for(var b=0,c=0;a;)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return[b,c]}function X(a,b){return a==d.documentElement?null:b?a.tagName.toLowerCase()===b?a:X(a.parentNode,b):a==d.body?d.documentElement:
a.parentNode}function Bb(a,b){var c=[];if(a){var d=a.childNodes;if(d)for(var g=0,f=d.length;g<f;g++){var h=d[g];"INPUT"==h.nodeName&&h.type&&"hidden"==h.type.toLocaleLowerCase()||b&&h.nodeName!=b||M(c,h)}}return c}function jb(a){var b=Ab(a);a=a==d.body||a==d.documentElement?yb():[a.offsetWidth,a.offsetHeight];return[b[0],b[1],a[0],a[1]]}function Cb(a){var b="";a=a.childNodes;for(var c=0,d=a.length;c<d;c++)fa=String(a[c]),a[c]&&3==a[c].nodeType&&(b+=a[c].nodeValue);return ab(b.replace(/[\u0000-\u0020]+/g,
""))}function Db(a){var b="",c="width height align title alt name".split(" ");"IMG"==a.tagName&&(b+=a.src.toLowerCase());"A"==a.tagName&&(b+=a.href.toLowerCase());for(var b=b+String(a.className||"").toLowerCase(),d=0;d<c.length;d++)a.getAttribute&&(b+=String(a.getAttribute(c[d])||"").toLowerCase());return ab(b.replace(/[\u0000-\u0020]+/g,""))}function Eb(a){for(var b=d.getElementsByTagName("form"),c=0,f=b.length;c<f;c++)if(b[c]==a)return c;return-1}function oa(a,b){return RegExp("(?:^|\\s)"+b+"(?:\\s|$)").test(a.className)}
function Fb(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 Gb(a,b){b=b||d;for(var c=b.getElementsByTagName("*"),f=[],g=0;g<c.length;g++)oa(c[g],a)&&f.push(c[g]);return f}function P(a,b,c,d){V[V.length]=[c,c];a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}function Na(a,b,c,d){for(var g=0;g<
V.length;g++)if(V[g]&&V[g][0]==c){var f=V[g][1];delete V[g];break}f&&(a.removeEventListener?a.removeEventListener(b,f,!!d):a.detachEvent&&a.detachEvent("on"+b,f))}function ya(a){try{delete f[a]}catch(b){f[a]=ka}}function za(a){var b=d.createElement("script");b.type="text/javascript";b.async=!0;b.src=a;try{var c=d.getElementsByTagName("html")[0];d.getElementsByTagName("head")[0]||c.appendChild(d.createElement("head"));var f=d.getElementsByTagName("head")[0];f.insertBefore(b,f.firstChild)}catch(g){}}
function pa(){if(top!=f&&parent==top&&f.postMessage&&!Ya.Metrika_visorPlayerOn){Ya.Metrika_visorPlayerOn=!0;var a=d.createElement("div");a.innerHTML='<iframe name="RemoteIframe" allowtransparency="true" style="position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"></iframe>';var b=a.firstChild;N(function(){(d.body||d.documentElement).appendChild(b);try{var a=b.contentWindow.document}catch(z){}if(a){var g=Math.random();f[g]=function(a,b,c,d,g){try{c.postMessage&&(a.onmessage=function(c){c=
c||a.event;try{var f=JSON.parse(c.data)}catch(z){return}if(/(^|\.)yandex\.(ru|com|ua|kz|by|com\.tr)(:\d{4})?$/.test(c.origin)&&f&&"script"==f.name&&f.data){c=d.getElementsByTagName("head")[0];var m=d.createElement("base");m.href=f.data;c.appendChild(m);m=d.createElement("script");m.src=f.data;c.appendChild(m);-1<g.userAgent.indexOf("Firefox/3.6.")&&b.removeEventListener("message",a.onmessage,!1);a.onmessage=null}},-1<g.userAgent.indexOf("Firefox/3.6.")&&b.addEventListener("message",a.onmessage,!1),
c.postMessage('{"name":"ping"}',"*"))}catch(f){}};a.open();a.write('<!doctype html><html><head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7,IE=edge" /></head><body><script type="text/javascript">eval("(" + Function.prototype.toString.call(parent['+g+']) + ")")(window, parent, top, document, navigator);\x3c/script></body></html>');a.close()}},500)}}function Ob(a,b,c,z,g,wa){function h(a,e,b){var k=G(function(a){return b(a||f.event)},e);$[$.length]=[a,e,b,k];a.addEventListener?a.addEventListener(e,
k,!0):a.attachEvent&&a.attachEvent("on"+e,k)}function m(a,e,b){for(var k=0;k<$.length;k++)if($[k]&&$[k][0]==a&&$[k][1]==e&&$[k][2]==b){var c=$[k][3];delete $[k];break}c&&(a.removeEventListener?a.removeEventListener(e,c,!0):a.detachEvent&&a.detachEvent("on"+e,c))}function q(a){var e=ib();return[a.pageX||a.clientX+O[0]-(e.clientLeft||0)||0,a.pageY||a.clientY+O[1]-(e.clientTop||0)||0]}function p(a){return a.target||a.srcElement}function H(a){return(a.shiftKey?sa:0)|(a.ctrlKey?kb:0)|(a.altKey?pa:0)|(a.metaKey?
fb:0)|(a.ctrlKey||a.altKey?bb:0)}function K(a){var e=(new Date).getTime();a&&e<a&&(lb+=a-e+mb);N(function(){K(e)},mb,"timeCorrector")}function L(){var a=(new Date).getTime()+lb;a<nb&&(a=nb+mb/2);return nb=a}function w(){return Math.round((L()-hb)/Pb)}function B(a,e){e=Math.max(0,Math.min(e,65535));M(a,e>>8,e&255)}function s(a,e){M(a,e&255)}function n(a,e){for(e=Math.max(0,e|0);127<e;)M(a,e&127|128),e>>=7;M(a,e)}function P(a,e){255<e.length&&(e=e.substr(0,255));M(a,e.length);for(var b=0;b<e.length;b++)B(a,
e.charCodeAt(b))}function T(a,e){n(a,e.length);for(var b=0;b<e.length;b++)n(a,e.charCodeAt(b))}function S(a,e,b,k,c,t){for(;b&&(!b.offsetWidth||!b.offsetHeight);)b=X(b);if(!b)return null;var d=b[I];if(!d||0>d)return null;var g={mousemove:Qb,click:Ma,dblclick:Na,mousedown:Y,mouseup:ma,touch:Rb}[e];if(!g)return null;var r=Ab(b);b=[];s(b,g);n(b,a);n(b,d);n(b,Math.max(0,k[0]-r[0]));n(b,Math.max(0,k[1]-r[1]));/^mouse(up|down)|click$/.test(e)&&(a=c||t,s(b,2>a?Wa:a==(c?2:4)?Xa:ja));return b}function Z(a,
e,b,k){e=e[I];if(!e||0>e)return null;var c=[];s(c,La);n(c,a);n(c,e);n(c,b[0]);n(c,b[1]);s(c,0);s(c,0);s(c,k);return c}function V(a,e){var b=[];s(b,C);n(b,a);n(b,e[0]);n(b,e[1]);return b}function ba(a,e,b){var k=[];b=b[I];if(!b||0>b)return null;s(k,qa);n(k,a);n(k,e[0]);n(k,e[1]);n(k,b);return k}function ea(a,e,b){var k=[];s(k,Ka);n(k,a);n(k,e[0]);n(k,e[1]);n(k,b[0]);n(k,b[1]);return k}function ra(a,e,b,k){var c=[];s(c,u);n(c,a);B(c,e);s(c,b);a=k[I];if(!a||0>a)a=0;n(c,a);return c}function W(a,e){var b,
k;0==e.length?k=b="":100>=e.length?(b=e,k=""):200>=e.length?(b=e.substr(0,100),k=e.substr(100)):(b=e.substr(0,97),k=e.substr(e.length-97));var c=[];s(c,ga);n(c,a);T(c,b);T(c,k);return c}function ka(a){var e=[];s(e,fa);n(e,a);return e}function ca(a){var e=[];s(e,F);n(e,a);return e}function da(a){var e=[];s(e,Sb);n(e,a);return e}function ta(a,e){var b=[];s(b,Ga);n(b,a);n(b,e[I]);return b}function xa(a,e){var b=[];s(b,Ia);n(b,a);n(b,e[I]);return b}function Ea(a,e,b){var k=[];s(k,Ja);n(k,a);n(k,e[I]);
P(k,String(b));return k}function Oa(a){var e=a[I];if(!e||0>e||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||oa(a.form,"-metrika-noform"))return null;var b=Eb(a.form);if(0>b)return null;var k;k="INPUT"==a.nodeName?{text:0,color:0,date:0,datetime:0,"datetime-local":0,email:0,number:0,range:0,search:0,tel:0,time:0,url:0,month:0,week:0,password:2,radio:3,checkbox:4,file:6,image:7}[a.type]:{SELECT:1,TEXTAREA:5}[a.nodeName];if("number"!=typeof k)return null;for(var c=-1,t=a.form.elements,d=t.length,
g=0,r=0;g<d;g++)if(t[g].name==a.name){if(t[g]==a){c=r;break}r++}if(0>c)return null;t=[];s(t,x);n(t,e);n(t,b);n(t,k);T(t,a.name||"");n(t,c);return t}function Fa(a,e){var b=Eb(e);if(0>b)return null;for(var k=e.elements,c=k.length,t=[],d=0;d<c;d++)if(!Fb(k[d])){var g=k[d][I];g&&0<g&&M(t,g)}k=[];s(k,Tb);n(k,a);n(k,b);n(k,t.length);for(b=0;b<t.length;b++)n(k,t[b]);return k}function Pa(){var a=[];s(a,Ub);return a}function y(a,e,b){a=a.apply(f,e);Qa.append(a,b)}function A(a){if(a[I])a:{var e=w(),b=a[I];
if(0<b){var k=[];a=jb(a);var c=cb[b],t=a[0]+"x"+a[1],d=a[2]+"x"+a[3];t!=c.pos&&(c.pos=t,s(k,Vb),n(k,e),n(k,b),n(k,a[0]),n(k,a[1]));d!=c.size&&(c.size=d,s(k,Wb),n(k,e),n(k,b),n(k,a[2]),n(k,a[3]));if(k.length){a=k;break a}}a=null}else{(b=X(a))&&A(b);a[I]=ob;cb[ob]={};ob++;if(a.nodeName)if(b=+a[I],!isFinite(b)||0>=b)e=null;else{var k=ya,c=0,g=X(a),t=g&&g[I]?g[I]:0;0>t&&(t=0);var d=a.nodeName.toUpperCase(),r=gb[d];r||(k|=Za);var f;b:{f=Bb(X(a),a.nodeName);for(var l=0;l<f.length;l++)if(f[l]==a){f=l;break b}f=
0}f||(k|=ua);l=jb(a);(g=g?jb(g):null)&&l[0]==g[0]&&l[1]==g[1]&&l[2]==g[2]&&l[3]==g[3]&&(k|=la);cb[b].pos=l[0]+"x"+l[1];cb[b].size=l[2]+"x"+l[3];a.id&&"string"==typeof a.id&&(k|=na);(g=Cb(a))&&(k|=va);var h=Db(a);h&&(c|=za);var v;b:{v=Bb(X(a),a.tagName);for(var C=0;C<v.length;C++)if((!v[C].id||"string"!=typeof v[C].id)&&Db(v[C])==h&&Cb(v[C])==g){v=!0;break b}v=!1}v&&(k|=Ha,e=ab((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,"")));v=[];s(v,Xb);n(v,b);s(v,k);n(v,t);r?s(v,r):P(v,d);f&&n(v,f);
k&la||(n(v,l[0]),n(v,l[1]),n(v,l[2]),n(v,l[3]));k&na&&P(v,a.id);g&&B(v,g);k&Ha&&B(v,e);s(v,c);h&&B(v,h);e=v}else a[I]=-1,e=null;Qa.append(e,void 0);a=Oa(a)}Qa.append(a,void 0)}function U(a){var e=p(a),b,k,c=0;if(e&&"SCROLLBAR"!=e.nodeName){if(e&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(e.tagName))if(e[I])A(e);else if(b=X(e,"form"))for(b=b.elements,k=b.length;c<k;c++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[c].tagName)&&!b[c][I]&&A(b[c]);else A(e);else A(e);y(S,[w(),a.type,e,q(a),a.which,a.button])}}function Ra(a){U(a);
var e,b;f.getSelection?(a=f.getSelection(),e=a.toString(),b=a.anchorNode):d.selection&&d.selection.createRange&&(a=d.selection.createRange(),e=a.text,b=a.parentElement());if("string"==typeof e){for(;b&&1!=b.nodeType;)b=b.parentNode;b&&"INPUT"==b.tagName&&"password"==b.type||b&&(/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(b.className)||Gb("-metrika-nokeys",b).length)||e==pb||(pb=e,y(W,[w(),e]))}}function Sa(a){var e=L(),b=e-$a;if(!(b<Hb)){var k=q(a),c=qb[0]-k[0],t=qb[1]-k[1],c=c*c+t*t;0>=c||16>c&&100>b||
20>b&&256>c||($a=e,qb=k,U(a))}}function E(){O=zb();var a=L();a-Ib<Hb||10>Math.abs(O[0]-rb[0])&&10>Math.abs(O[1]-rb[1])||(Ib=a,rb=O,y(V,[w(),O]))}function Aa(a){a=p(a);var e=Math.random(),b=[a.scrollLeft,a.scrollTop];if(a.localId){if(e=sb[a.localId],!e||10>Math.abs(b[0]-e[0])&&10>Math.abs(b[1]-e[1]))return}else{for(;sb[e];)e=Math.random();a.localId=e}sb[a.localId]=b;a!==d&&(A(a),y(ba,[w(),b,a]))}function Ta(){y(ea,[w(),xb(),yb()])}function Ba(a){y(Pa,[],!0);try{if("beforeunload"==a.type)for(var e=
+new Date+50;+new Date<e;);}catch(b){}}function ha(a,e,b){a=p(a);"INPUT"==a.tagName&&"password"==a.type||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(A(a),y(ra,[w(),e,b,a]))}function Q(a){var e=a.keyCode,b=H(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}[e]||112<=e&&123>=e||96<=e&&105>=e||b&bb)19==e&&(b&~bb)==kb&&(e=144),ha(a,e,b|bb),tb=!1,N(function(){tb=!0},1),67==e&&b&kb&&!(b&pa||b&sa)&&
aa()}function ia(a){tb&&!ub&&0!==a.which&&(ha(a,a.charCode||a.keyCode,H(a)),ub=!0,N(function(){ub=!1},1))}function aa(){vb||(vb=!0,pb&&y(ka,[w()]),N(function(){vb=!1},1))}function Ca(){Ua||(Ua=!0,y(ca,[w()]))}function R(){Ua&&(Ua=!1,y(da,[w()]))}function e(a){(!Ua||a&&!a.fromElement)&&Ca()}function k(a){a&&!a.toElement&&R()}function t(a){a=p(a);var e,b,k=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[I])A(a);else if(e=X(a,"form"))for(e=e.elements,b=e.length;k<b;k++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(e[k].tagName)&&
!e[k][I]&&A(e[k]);else A(a);y(ta,[w(),a])}}function r(a){(a=p(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(A(a),y(xa,[w(),a]))}function Da(a){a=p(a);if(!("INPUT"==a.tagName&&"password"==a.type||a&&/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className))&&a&&/^INPUT|SELECT|TEXTAREA$/.test(a.tagName)){var e=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;A(a);y(Ea,[w(),a,e])}}function v(a){a=p(a);if(!oa(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var e=a.elements,b=0;b<e.length;b++)Fb(e[b])||
A(e[b]);y(Fa,[w(),a],!0)}}function l(a){E();if(a.touches&&a.touches.length){var e=p(a);if(e){A(e);for(var b=0;b<a.touches.length;b++)y(S,[w(),"touch",e,[a.touches[b].pageX,a.touches[b].pageY],0,0])}}}function J(a){var e=p(a);if(e){var b;"wheel"==a.type?b=0<a.deltaY?1:0>a.deltaY?2:0:"mousewheel"==a.type&&(b=0<a.wheelDelta?2:0>a.wheelDelta?1:0);b&&(A(e),y(Z,[w(),e,q(a),b]))}}var Qa=new Jb({protocol:a,counterId:b,counterType:c,meta:{url:D().href,hitId:g,timezone:db,timestamp:Va}}),mb=20,Pb=50,Hb=10,
Xb=1,Qb=2,C=3,qa=16,Y=4,u=5,x=7,Vb=9,Wb=10,Tb=11,Rb=12,Ub=13,F=14,Sb=15,Ga=17,Ia=18,Ja=19,fa=27,Ka=28,ga=29,ma=30,La=31,Ma=32,Na=33,Wa=1,ja=2,Xa=4,Ha=1,Za=2,ua=4,la=8,va=16,na=32,ya=64,za=2,pa=1,sa=2,kb=4,fb=8,bb=16,gb={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},$=[],lb=0;K(0);var nb=0,ob=1,$a=0,qb=[0,0],Ib=
0,rb=[0,0],sb={},tb=!0,ub=!1,pb="",vb=!1,Ua=!0,hb=L(),I="metrikaId_"+Math.random(),cb={},eb=":submit"+Math.random();"MetrikaPlayer"!=f.name&&(h(d,"mousemove",Sa),h(d,"click",U),h(d,"dblclick",U),h(d,"mousedown",U),h(d,"mouseup",Ra),h(f,"scroll",E),"onmousewheel"in d?h(d,"mousewheel",J):h(d,"wheel",J),h(f,"beforeunload",Ba),Kb||h(f,"unload",Ba),h(f,"resize",Ta),h(d,"keydown",Q),h(d,"keypress",ia),h(d,"copy",aa),h(d,"touchmove",l),h(d,"touchstart",l),d.attachEvent&&!f.opera?(h(d,"focusin",e),h(d,"focusout",
k)):(h(f,"focus",Ca),h(f,"blur",R),h(d,"blur",R)),d.addEventListener?(d.addEventListener("scroll",Aa,!0),d.addEventListener("focus",t,!0),d.addEventListener("blur",r,!0),d.addEventListener("change",Da,!0),d.addEventListener("submit",v,!0)):d.attachEvent&&(h(d,"focusin",t),h(d,"focusout",r),function(){for(var a=d.getElementsByTagName("form"),e=0;e<a.length;e++){for(var b=a[e].getElementsByTagName("*"),k=0;k<b.length;k++)/^INPUT|SELECT|TEXTAREA$/.test(b[k].tagName)&&h(b[k],"change",Da);h(a[e],"submit",
v)}}()),function(){var a=d.getElementsByTagName("form");if(a.length)for(var e=0;e<a.length;e++){var b=a[e].submit;if("function"==typeof b||"object"==typeof b&&/^\s*function submit\(\)/.test(String(b)))a[e][eb]=b,a[e].submit=function(){v({target:this});return this[eb]()}}}(),"0:0"!=O.join(":")&&E(),Ta(),wa.uploadPage=function(e){if("function"==typeof f.toStaticHTML&&-1<f.toStaticHTML.toString().indexOf("NoScript"))return!1;var k=d.documentElement;if(k&&19E4<(""+k.innerHTML).length)return!1;var t=f.XMLHttpRequest?
new f.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),r=(""+(d.characterSet||d.charset||"")).toLowerCase(),k="text/html"+(r?";charset="+r:""),l=new Yb({protocol:a,counterId:b,counterType:c});if("html"==e)return e=RegExp("<script [^>]*?//mc\\.yandex\\.ru/watch/.*?\x3c/script>","gi"),l.sendContent(Lb().replace(e,""),k,g,db,Va),!0;t&&(t.open("get",D().href,!0),t.onreadystatechange=function(){4==t.readyState&&l.sendContent(t.responseText,t.getResponseHeader("content-type"),g,db,Va)},t.overrideMimeType&&
r&&t.overrideMimeType(k),t.send(null));return!0});return{start:function(){Qa.activate()},stop:function(){Qa.clear();m(d,"mousemove",Sa);m(d,"click",U);m(d,"dblclick",U);m(d,"mousedown",U);m(d,"mouseup",Ra);m(d,"mousewheel",J);m(d,"wheel",J);m(f,"scroll",E);m(f,"beforeunload",Ba);m(f,"unload",Ba);m(f,"resize",Ta);m(d,"keydown",Q);m(d,"keypress",ia);m(d,"copy",aa);m(d,"touchmove",l);m(d,"touchstart",l);m(d,"focusin",e);m(d,"focusout",k);m(f,"focus",Ca);m(f,"blur",R);m(d,"blur",R);d.removeEventListener?
(d.removeEventListener("scroll",Aa,!0),d.removeEventListener("focus",t,!0),d.removeEventListener("blur",r,!0),d.removeEventListener("change",Da,!0),d.removeEventListener("submit",v,!0)):d.detachEvent&&(m(d,"focusin",t),m(d,"focusout",r),function(){for(var a=d.getElementsByTagName("form"),e=0;e<a.length;e++){for(var b=a[e].getElementsByTagName("*"),k=0;k<b.length;k++)/^INPUT|SELECT|TEXTAREA$/.test(b[k].tagName)&&m(b[k],"change",Da);m(a[e],"submit",v)}}());(function(){for(var a=d.getElementsByTagName("form"),
e=0;e<a.length;e++)a[e][eb]&&(a[e].submit=a[e][eb])})()},uploadPages:function(a,e){function b(){m(d,"DOMContentLoaded",b);m(f,"load",b);for(var k=a.split(/\n/),c=D().href,t=/regexp:/,g=0;g<k.length;g++){var r=k[g];if(r)if(t.test(r)){if(r=wb(r.replace(t,"")),RegExp(r).test(c)){wa.uploadPage(e);break}}else if(-1!==c.indexOf(r)){wa.uploadPage(e);break}}}"complete"==d.readyState?b():(h(d,"DOMContentLoaded",b),h(f,"load",b))}}}var Zb=!1,fa="",Kb=!La(/webkit/)&&La(/gecko/),O=zb(),V=[],Wa=null,q={mixin:function(a){for(var b=
1;b<arguments.length;b++)if(arguments[b]){for(var c in arguments[b])arguments[b].hasOwnProperty(c)&&(a[c]=arguments[b][c]);arguments[b].hasOwnProperty("toString")&&(a.toString=arguments[b].toString)}return a}},S=function(a){a=a||{};q.mixin(this,a);this._initComponent()};S.prototype._initComponent=function(){};S.inherit=function(a){a=a||{};var b="function"==typeof this?this:Object;a.hasOwnProperty("constructor")||(a.constructor=function(){b.apply(this,arguments)});var c=function(){};c.prototype=b.prototype;
a.constructor.prototype=new c;q.mixin(a.constructor.prototype,a);a.constructor.prototype.constructor=a.constructor;a.constructor.superclass=b.prototype;a.constructor.inherit=S.inherit;return a.constructor};var ba=S.inherit({counterId:"",_initComponent:function(){ba.superclass._initComponent.apply(this,arguments);this._buffer={};this._ls=null;try{this._ls=f.localStorage}catch(a){}},set:function(a,b){if(this.isEnabled())try{!b||b&&ma(b)&&!b.length?this.remove(a):this._ls.setItem(this._getLsKey(a),JSON.stringify(b))}catch(c){}},
get:function(a){if(this.isEnabled())try{return JSON.parse(this._ls.getItem(this._getLsKey(a)))}catch(b){}return null},remove:function(a){if(this.isEnabled())try{this._ls.removeItem(this._getLsKey(a))}catch(b){}},isEnabled:function(){return this._ls&&f.JSON&&"object"==typeof this._ls&&"object"==typeof f.JSON},_getLsKey:function(a){return"_ym"+this.counterId+"_"+a}}),Ea=S.inherit({counterId:"",onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){Ea.superclass._initComponent.apply(this,arguments);
this._domain=null;if(!this.onlyCurrentDomain)for(var a=L.host.split("."),b=2;;)if(b<=a.length){if(this._domain="."+a.slice(-b).join("."),b++,this.isEnabled())break}else{this._domain=null;break}},create:function(a,b,c){a=[this._prepareName(a)+"="+encodeURIComponent(b)];c&&(b=new Date,b.setTime(b.getTime()+6E4*c),a.push("expires="+b.toGMTString()));this._domain&&a.push("domain="+this._domain);a.push("path=/");try{d.cookie=a.join(";")}catch(f){}},read:function(a){try{var b=d.cookie}catch(c){}return b&&
b.match(RegExp("(?:^|;\\s*)"+this._prepareName(a)+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null},erase:function(a){this.create(a,"",-1)},isEnabled:function(){this.create("metrika_enabled","1",60);var a=!!this.read("metrika_enabled");this.erase("metrika_enabled");return a},_prepareName:function(a){return(this.skipPrefix?"":"_ym_")+a+(this.counterId?"_"+this.counterId:"")}});Ea.isEnabled=function(){return(new Ea({onlyCurrentDomain:!0})).isEnabled()};q.forEachKey=function(a,b,c){for(var d in a)a.hasOwnProperty(d)&&
b.call(c,d,a[d],a)};q.inArray=function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return!0;return!1};var K=S.inherit({transports:[],postParams:[],send:function(a,b,c,d){c=c||function(){};var g={},f={};q.forEachKey(b,function(a,b){q.inArray(this.postParams,a)?f[a]=b:g[a]=b},this);for(b=0;b<this.transports.length;b++){var h=new this.transports[b];try{var m=h.request(a,g,f,c,d)}catch(p){la(p,"send by "+h.id)}if(m)return!0}return!1}}),ja={};q.isArray=function(a){return"function"==typeof Array.isArray?
Array.isArray(a):"[object Array]"==Object.prototype.toString.call(a)};ja.stringify=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(q.isArray(d))for(var g=0;g<d.length;g++)b.push(encodeURIComponent(c)+"="+encodeURIComponent(String(d[g])));else b.push(encodeURIComponent(c)+"="+encodeURIComponent(String(d)))}return b.join("&")};var p={_jScriptVersion:0,getJScriptVersion:function(){p._jScriptVersion||(p._jScriptVersion=(new Function("return /*@cc_on @_jscript_version @*/;"))());
return p._jScriptVersion}},Fa=S.inherit({_buildUrl:function(a,b){var c=a+(-1<a.indexOf("?")?"&":"?")+ja.stringify(b);9>p.getJScriptVersion()&&2048<c.length&&ga("Long url.");return c}}),B=Fa.inherit({id:"XHR",request:function(a,b,c,d,g){if(f.opera&&"function"==typeof f.opera.version){var q=f.opera.version();if("string"==typeof q&&"12"==q.split(".")[0]&&/[^a-z0-9.:-]/.test(L.host))return!1}if(f.XMLHttpRequest){var h=new XMLHttpRequest;if("withCredentials"in h){var m=this._buildUrl(a,b);h.open("POST",
m,!0);h.withCredentials=!0;h.setRequestHeader("Content-Type","application/x-www-form-urlencoded");h.send(ja.stringify(c));(function(){4==h.readyState?200==h.status?d.call(g):ga("XHR status "+h.status+(h.status?"; "+m:"")):N(arguments.callee,50,"TransportXHR.request")})();return!0}}return!1}});q.random=function(a,b){2>arguments.length&&(a=0);1>arguments.length&&(b=1073741824);return Math.floor(Math.random()*(b-a))+a};var ca=Fa.inherit({id:"form",enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,
_initComponent:function(){ca.superclass._initComponent.apply(this,arguments);"_htmlfile"in ca.prototype||(ca.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:d)},request:function(a,b,c,d,g){var f=this._doc;if(!f)return!1;var h="ifr"+q.random(),m=f.createElement("div");m.style.position="absolute";m.style.left="-99999px";m.style.top="-99999px";var p=['<iframe name="',h,'"></iframe>','<form action="',this._buildUrl(a,b),'" method="post" target="',h,'" enctype="',
this.enctype,'">'];q.forEachKey(c,function(a){M(p,'<textarea name="',a,'"></textarea>')});M(p,"</form>");m.innerHTML=p.join("");f.body.appendChild(m);var D=m.getElementsByTagName("form")[0],H=m.getElementsByTagName("iframe")[0];q.forEachKey(c,function(a,b){D[a].value=b});H.onload=G(function(){H.onload=null;d.call(g)},"TransportForm.request.1");D.submit();N(function(){f.body.removeChild(m)},1E4,"TransportForm.request.2");return!0},_createHtmlfile:function(){try{if(f.ActiveXObject){var a=new ActiveXObject("htmlfile");
a.open();a.write("<html><body></body></html>");a.close();return a}}catch(b){}return null}}),W=ca.inherit({id:"htmlfile",htmlfileOnly:!0}),$b=Fa.inherit({id:"img",request:function(a,b,c,d,g){var f=this._buildUrl(a,q.mixin({},b,c));a=new Image;a.onload=G(function(){d.call(g)},"TransportImage.request");a.onerror=G(function(){ga("Img onerror; "+f)},"TransportImage.request");a.src=f;return!0}});q.mergeArrays=function(a){for(var b=1;b<arguments.length;b++)if(q.isArray(arguments[b]))for(var c=0;c<arguments[b].length;c++)a[a.length]=
arguments[b][c]};q.defer=function(a,b,c,d,g){return N(function(){a.apply(c,d||[])},b,g)};var Z=K.inherit({protocol:"",host:"mc.yandex.ru",resource:"",counterId:"",counterType:0,retry:!1,transports:[B,W,$b],_initComponent:function(){Z.superclass._initComponent.apply(this,arguments);this.retry&&(this._storage=new ba)},send:function(a,b,c,d){if(this.retry&&this._storage.isEnabled()){b.rqnl=b.rqnl||0;b.rqnl++;for(var g=this._storage.get("retryReqs")||{},f=0;g[f];)f++;g[f]={protocol:this.protocol,host:this.host,
resource:this.resource,counterId:this.counterId,postParams:this.postParams,params:a,browserInfo:b,ghid:Ya._globalMetrikaHitId,time:+new Date};this._storage.set("retryReqs",g)}b.st=Math.round((new Date).getTime()/1E3);var g=[this.protocol,"//",this.host,"/"+this.resource+"/"+this.counterId].join(""),h=[];b&&(q.forEachKey(b,function(a,b){"t"!=a&&q.mergeArrays(h,[a,b])}),b.t&&q.mergeArrays(h,["t",b.t]));h.length&&(a["browser-info"]=h.join(":"));this.counterType&&(a["cnt-class"]=this.counterType);if(this.retry&&
this._storage.isEnabled())var m=q.defer(function(){},1E4,this,[],"SenderBK.timeout");return Z.superclass.send.call(this,g,a,function(){if(this.retry&&this._storage.isEnabled()){clearTimeout(m);var a=this._storage.get("retryReqs")||{};a[f]&&(delete a[f],this._storage.set("retryReqs",a))}c&&c.apply(d,arguments)},this)}});Z.retransmit=function(){var a=new ba,b=a.get("retryReqs")||{};a.remove("retryReqs");q.forEachKey(b,function(a,b){b.ghid&&b.ghid!=Ya._globalMetrikaHitId&&b.time&&b.time+864E5>+new Date&&
!(2<b.browserInfo.rqnl)&&(new Z({protocol:b.protocol,host:b.host,resource:b.resource,counterId:b.counterId,postParams:b.postParams||[],retry:!0})).send(b.params,b.browserInfo)})};var da={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/=",tailSafe:"*-_",encode:function(a,b){for(var c=(da.abc+(b?da.tailSafe:da.tail)).split(""),d=a.length,g=[],f=d-d%3,h,m=0;m<f;m+=3)h=(a[m]<<16)+(a[m+1]<<8)+a[m+2],M(g,c[h>>18&63],c[h>>12&63],c[h>>6&63],c[h&63]);switch(d-f){case 1:h=a[f]<<
4;M(g,c[h>>6&63],c[h&63],c[64],c[64]);break;case 2:h=(a[f]<<10)+(a[f+1]<<2),M(g,c[h>>12&63],c[h>>6&63],c[h&63],c[64])}return g.join("")}},ac={encode:function(a){for(var b=[],c=0,d=a.length;c<d;c++){var g=a.charCodeAt(c);128>g?b.push(g):(127<g&&2048>g?b.push(g>>6|192):(b.push(g>>12|224),b.push(g>>6&63|128)),b.push(g&63|128))}return b}},Yb=Z.inherit({resource:"webvisor",transports:[B,ca],postParams:["wv-data"],sendContent:function(a,b,c,d,g,f,h){if(!a)return!1;-1<a.indexOf("\r")&&(a=a.replace(/\r\n/g,
"\n"));a={"wv-type":1,"page-url":D().href,"wv-hit":c,"wv-data":da.encode(ac.encode(a))};return this.send(a,{z:d,i:g,pct:b||""},f,h)}});q.throttle=function(a,b,c,d){var g,f,h;return function(){f=arguments;h=this;g||function(){g=null;f&&(a.apply(c||h,f),f=null,g=N(arguments.callee,b,d))}()}};var sa=S.inherit({storage:null,storageKey:"dataBuffer",maxBufferSize:255,flushTimeout:1E4,active:!0,meta:null,onFlush:function(){},onFlushCtx:null,bufferExpireTime:864E5,_initComponent:function(){sa.superclass._initComponent.apply(this,
arguments);this._data=[];this._packetNumber=0;this._flushTID=null;this._saveToStorageThrottled=q.throttle(this._saveToStorage,300,this,"DataBuffer._saveToStorage");if(this.storage){var a=this.storage.get(this.storageKey);a&&a.data&&a.meta&&a.time&&a.time+this.bufferExpireTime>+new Date&&this.onFlush.call(this.onFlushCtx||this,a.data,a.meta,a.pnum);this.clear()}},append:function(a,b){q.mergeArrays(this._data,a);this._saveToStorageThrottled();this.active&&((b||this._data.length>=this.maxBufferSize)&&
this._flush(),this._flushTID||(this._flushTID=q.defer(this._flush,this.flushTimeout,this,[],"DataBuffer._flush")))},activate:function(){this.active||(this.active=!0,this.append([]))},clear:function(){this._data.length=0;this._flushTID=null;this.storage&&this.storage.remove(this.storageKey)},_flush:function(){this.onFlush.call(this.onFlushCtx||this,this._data,this.meta,this._packetNumber);this._packetNumber++;this.clear()},_saveToStorage:function(){this.storage&&this._data.length&&this.storage.set(this.storageKey,
{data:this._data,meta:this.meta,pnum:this._packetNumber,time:+new Date})}});q.fletcher=function(a){for(var b=a.length,c=0,d=255,g=255;b;){var f=21<b?21:b,b=b-f;do{var h="string"==typeof a?a.charCodeAt(c):a[c];c++;if(255<h)var m=h>>8,h=h&255,h=h^m;d+=h;g+=d}while(--f);d=(d&255)+(d>>8);g=(g&255)+(g>>8)}a=(d&255)+(d>>8)<<8|(g&255)+(g>>8);return 65535==a?0:a};var bc=Z.inherit({resource:"webvisor",retry:!0,postParams:["wv-data"],sendPacket:function(a,b,c,d,g,f,h,m){if(!a||!a.length)return!1;a={rn:q.random(),
"page-url":b,wmode:0,"wv-type":0,"wv-hit":c,"wv-part":d+1,"wv-check":q.fletcher(a),"wv-data":da.encode(a,!0)};return this.send(a,{z:g,i:f},h,m)}}),Jb=sa.inherit({protocol:"",counterId:"",counterType:"",meta:null,maxBufferSize:7500,flushTimeout:3E4,storageKey:"visorbuff",active:!1,_initComponent:function(){this.storage=new ba({counterId:this.counterId});this._sender=new bc({protocol:this.protocol,counterId:this.counterId,counterType:this.counterType});Jb.superclass._initComponent.apply(this,arguments)},
onFlush:function(a,b,c){this._sender.sendPacket(a,b.url,b.hitId,c,b.timezone,b.timestamp)}});f.Ya=f.Ya||{};Ya._metrika=Ya._metrika||{};Ya._metrika.counters=Ya._metrika.counters||{};Ya._metrika.hitParam=Ya._metrika.hitParam||{};Ya._globalMetrikaHitId=q.random();var cc=!1,L=D(),db,Va,T=f.navigator,ta=f.screen,ea="https:"==L.protocol?"https:":"http:",Ka=502,Ga=5.8>=p.getJScriptVersion(),Xa=Ga?512:2048,dc=Ga?512:2048,fb=Ga?100:400,Ha="noindex",Ia=50,gb=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"),ec=H(),fc="_ym_visorc",Za,Ja,gc="//mc.yandex.ru/clmap/";f.Ya.Metrika=function(a,b,c,z){var g=this;return G(function(){function K(a,b){b=b||256;if(!a)return"";a.length>b&&(a=a.substr(0,b));return(f.encodeURIComponent||f.escape)(a).replace(/\+/g,"%2B")}function h(a){function b(a){return a?a.replace(/\\/g,"\\\\").replace(/"/g,'\\"'):""}if(a===ka)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]=h(a[d]);return"["+c.join(",")+"]";case Object:c="{";d=0;for(g in a)if(a.hasOwnProperty(g)){var f=a[g];f!==ka&&(c+=(d?",":"")+'"'+b(g)+'":'+h(f),d++)}return c+"}";default:return"null"}}function m(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 B(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 M(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}
function S(a,b){function c(a){a=a.split(":");a=a[1]||"";a=a.replace(/^\/*/,"").replace(/^www\./,"");return a.split("/")[0]}return a&&b?c(a)==c(b)?!0:!1:a||b?!1:!0}function O(a,b){var c=b.target,d=!1;if(!b.hostname)return!1;c&&"_self"!=c&&"_top"!=c&&"_parent"!=c||(d=!0);(c=a.shiftKey||a.ctrlKey||a.altKey)||a.modifiers&&f.Event&&(c=a.modifiers&f.Event.CONTROL_MASK||a.modifiers&f.Event.SHIFT_MASK||a.modifiers&f.Event.ALT_MASK);return d&&!c}function V(e,b,c){function r(a,e){a&&e&&(c?v[a]=e:v[v.length]=
[a,e].join(":"))}function h(a){r(a,b[a]?"1":"")}b=b||{};var v=c?{}:[],l=-1*(new Date).getTimezoneOffset(),J=X();Va||(Va=J,db=l);r("j",p.getJavaEnabled()?"1":"");ta&&r("s",ta.width+"x"+ta.height+"x"+(ta.colorDepth||ta.pixelDepth));f.devicePixelRatio&&r("sk",f.devicePixelRatio);r("f",p.getFlashVersion());r("l",p.getSilverlightVersion());r("fp",p.getFingerPrint());b.pa||r("w",s()+"x"+n());r("z",l);r("i",J);r("et",Math.round((new Date).getTime()/1E3));r("en",(""+(d.characterSet||d.charset||"")).toLowerCase());
r("v",Ka);r("c",T.cookieEnabled?"1":"");r("jv",p.getJScriptVersion());r("la",p.getLanguage());r("ex","prerender"==d.webkitVisibilityState?"pre1":"");R&&r("wh","1");J="ar ln dl ad nb pa".split(" ");for(l=0;l<J.length;l++)h(J[l]);J=["va","vt","sn","sa","he"];b.nb&&J.push("cl");for(l=0;l<J.length;l++){var m=J[l];r(m,b[m])}b.reqNum&&(l=new ba({counterId:a}),l.isEnabled()&&((J=l.get("reqNum"))?J++:J=1,l.set("reqNum",J),(J=l.get("reqNum"))&&r("rqn",J)));r("rn",xa());r("hid",Pa);r("ds",ca());g._firstPaint||
(g._firstPaint=da(),r("fp",g._firstPaint));if(g._webvisor){f.name||(f.name=Math.round(65535*Math.random()));if(l=+f.name)0>l&&(l*=-1),l%=65535;r("wn",l||ab(f.name));try{f.history&&r("hl",String(f.history.length))}catch(z){}}e="undefined"==typeof e?(e=w())?q.trim(e,fb):"":q.trim(e,fb);r("t",e);return c?v:v.join(":")}function w(){var a=d.title;"string"!=typeof a&&(a=(a=d.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function X(){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 s(){var a=-1;d.documentElement&&"CSS1Compat"==d.compatMode?a=d.documentElement.clientWidth:d.body&&(a=d.body.clientWidth);return a}function n(){var a=-1;d.documentElement&&"CSS1Compat"==d.compatMode?a=d.documentElement.clientHeight:d.body&&(a=d.body.clientHeight);return a}function W(){var a=f.performance||f.webkitPerformance,b=[];if(a=a&&a.timing){var c=a.navigationStart;if(c)for(b=
[a.domainLookupEnd-a.domainLookupStart,a.connectEnd-a.connectStart,a.responseStart-a.requestStart,a.responseEnd-a.responseStart,a.fetchStart-c,a.redirectEnd-a.redirectStart,a.redirectCount],b.push(a.domInteractive&&a.domLoading?a.domInteractive-a.domLoading:null),b.push(a.domContentLoadedEventStart&&a.domContentLoadedEventEnd?a.domContentLoadedEventEnd-a.domContentLoadedEventStart:null),b.push(a.domComplete?a.domComplete-c:null),b.push(a.loadEventStart?a.loadEventStart-c:null),b.push(a.loadEventStart&&
a.loadEventEnd?a.loadEventEnd-a.loadEventStart:null),b.push(a.domContentLoadedEventStart?a.domContentLoadedEventStart-c:null),a=0;a<b.length;a++)c=b[a],null!==c&&(0>c||36E5<c)&&(b[a]=null)}return b}function ca(){var a=[],b=g._lastPerformanceTiming,c=W();if(b)for(var d=0,f=b.length;d<f;d++)null===c[d]?a.push(c[d]):a.push(b[d]===c[d]?"":c[d]);else a=c;g._lastPerformanceTiming=c;return a.join(",")}function da(){var a;if("object"==typeof f.chrome&&f.chrome.loadTimes){if(a=f.chrome.loadTimes(),a.requestTime&&
a.firstPaintTime)return~~(1E3*(a.firstPaintTime-a.requestTime))}else if(f.performance&&f.performance.timing&&(a=f.performance.timing,a.navigationStart&&a.msFirstPaint))return a.msFirstPaint-a.navigationStart;return null}function la(a){var b=d.referrer||"";if(RegExp("^https?://"+L.host+"/").test(b))return!1;for(var c=a.patterns,g=0;g<c.length;g++)if(b.match(RegExp(c[g],"i"))){var f=a.params||[];if(f.length)for(var v=ra((RegExp.$1||"").replace(/\+/g,"%20")),l=0;l<f.length;l++){if(v==ra(f[l]))return!0}else return!0}return!1}
function fa(a,b){var c=!1;if(a&&"string"!=typeof a&&a.length)for(var g=0;g<a.length;g++){var f=a[g].selector,v=a[g].text,l=f.charAt(0),f=f.slice(1);if("#"==l){if(l=d.getElementById(f))c=!0,b&&ha.unshift([l,l.innerHTML]),l.innerHTML=v}else if("."==l)for(l=Gb(f),f=0;f<l.length;f++){var c=!0,h=l[f],m=v;b&&ha.unshift([h,h.innerHTML]);h.innerHTML=m}}return c}function ga(){for(var a=0;a<ha.length;a++)ha[a][0].innerHTML=ha[a][1]}function ma(a,b){a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"");var c="";
if(a)for(var d=a.split("&"),f=0;f<d.length;f++){var g=d[f].split("=");"_openstat"==g[0]&&(c=g[1])}b&&0==b.indexOf("_openstat=")&&(c=b.slice(10));c&&(c=-1<c.indexOf(";")?ra(c):na(c.replace(/[-*_]/g,function(a){return{"*":"+","-":"/",_:"="}[a]||a})));return c&&(c=c.split(";"),4==c.length)?{service:c[0],campaign:c[1],ad:c[2],source:c[3]}:null}function ra(a){try{return decodeURIComponent(a)}catch(b){return""}}function na(a){for(;a.length%4;)a+="=";var b,c,d,f,g,l=0,h="";do{b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));
c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(a.charAt(l++));if(0>b||0>c||0>f||0>g)return null;d=b<<18|c<<12|f<<6|g;b=d>>16&255;c=d>>8&255;d&=255;h=64==f?h+String.fromCharCode(b):64==g?h+String.fromCharCode(b,c):h+String.fromCharCode(b,c,d)}while(l<a.length);a=h;f="";for(l=c1=c2=g=0;g<
a.length;)l=a.charCodeAt(g),128>l?(f+=String.fromCharCode(l),g++):191<l&&224>l?(c2=a.charCodeAt(g+1),f+=String.fromCharCode((l&31)<<6|c2&63),g+=2):(c2=a.charCodeAt(g+1),c3=a.charCodeAt(g+2),f+=String.fromCharCode((l&15)<<12|(c2&63)<<6|c3&63),g+=3);return f}function pa(){var e=!1;if(Ya._metrika.hitParam[y]){if(1!=c||Ya._metrika.counters[y])return!1;e=!0}Ya._metrika.counters[y]=g;Ya._metrika.hitParam[y]=1;g._webvisor=!z&&(E&&E.webvisor||Zb||cc);g._directCampaign=E&&E.directCampaign;E&&E.trackHash&&
g.trackHash(!0);if(!z&&!e){g.replacePhones();var k=new Ea({counterId:a}),t=k.read("visorc")||Ma(fc);"b"!=t&&"w"!=t&&(t="");if(!Nb()||La("opera mini"))t="b";Za=H();var e=new Ba({protocol:ea,counterType:c,counterId:a}),r={ut:A,he:E?~~E.httpError:0,ad:1==c&&f.Ya&&f.Ya.Direct?!0:!1,saveRef:!0};e.sendHit(L.href,w(),d.referrer,b,r,t,function(a){Ja||(Ja=H());a=a||{};var b=a.webvisor||{};if(ia){var e=+b.recp;if(!isFinite(e)||0>e||1<e)t="w";t||(t=Pa%1E4/1E4<e?"w":"b");k.create("visorc",t,30);"w"==t?(ia.start(),
e=b.arch_type,(b=b.urls)&&e&&ia.uploadPages(b,e)):ia.stop()}b=a.mp2;a=g;k.erase("mp2_substs");if(b){b:if((e=b.conditions)&&e.length)for(var c=0;c<e.length;c++){var r;if("ref"==e[c].type)r=la(e[c]);else if(r="adv"==e[c].type){var m=e[c],n=Ya._metrika.counter._directCampaign,q=m.ServiceNamePattern,z=m.RefererPattern;r=n?m.direct_orders:m.direct_camp;var p=d.referrer,C=L.search,C=C&&C.replace(/^\?/,""),qa={};if(C)for(var C=C.split("&"),Y=0;Y<C.length;Y++){var u=C[Y].split("=");qa[ra(u[0])]=ra(u[1])}for(var C=
ma(L.search,L.hash),Y={},u=["source","medium","campaign","term","content"],x=0;x<u.length;x++)qa["utm_"+u[x]]&&(Y[u[x]]=qa["utm_"+u[x]]);x=n?"direct.yandex.ru":C&&C.service||Y.source;u=!1;if(!u&&q&&q.length)for(var s=0;s<q.length;s++)if(RegExp(q[s],"i").test(x)){u=!0;break}if(!u&&z&&z.length)for(q=0;q<z.length;q++)if(RegExp(z[q],"i").test(p)){u=!0;break}!u&&m.google_adwords&&qa.gclid&&(u=!0);!u&&m.yandex_direct&&qa.yclid&&(u=!0);if(u&&r&&r.length&&(u=!1,m=n||C&&C.campaign||Y&&Y.campaign))for(n=0;n<
r.length;n++)if(r[n]==m){u=!0;break}r=u}if(r){e[c].track_id&&k.create("mp2_track",e[c].track_id,43200);break b}}e=k.read("mp2_track");b=b.substs&&b.substs[e];e&&b?(k.create("mp2_substs",h(b)),b=fa(b),a.params("__ym",b?"mp_trackid":"mp_trackid_bad",e)):ga()}else ga();P(f,"load",g.replacePhones);g._inited=!0})}sa();E&&(E.enableAll?g.enableAll():(E.clickmap&&g.clickmap(E.clickmap),E.trackLinks&&g.trackLinks(E.trackLinks),E.accurateTrackBounce&&g.accurateTrackBounce(E.accurateTrackBounce),E.ad&&ad()));
g._webvisor&&(ia=new Ob(ea,a,c,E,Pa,g))}function ja(a){var b={delay:Ia};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Ia:a.delay;break;case "boolean":b.on=a;break;default:return}g._trackLinks=b}function sa(){ja(!1);P(d,"click",function(a){g._trackLinks.on&&ua(a)})}function ua(a){var b=B(a);if(b){var c=!1,d=""+b.href,f=d?d.split(/\?/)[0]:"",h=function(a){var e=wb(b.innerHTML?b.innerHTML.toString().replace(/<\/?[^>]+>/gi,""):"");Q.sendClickLink(d,
d==e?"":e,a)},l=function(){return O(a,b)?g._trackLinks.delay:0};if(gb.test(f)||gb.test(d)||m(d,aa)||m(f,aa))c=!0;var n=oa(b,"ym-disable-tracklink"),f=oa(b,"ym-external-link");n||(n={ln:!0,dl:c},f?(n.delay=l(),h(n)):M(D().hostname,b.hostname)?c&&(n.ln=!1,n.delay=l(),h(n)):d&&-1!=d.search(/^ *(data|javascript):/i)||(n.ut=Ha,n.delay=l(),h(n)))}}function va(a,b){function c(){if(!D){s&&clearTimeout(s);var d=b,f;f=q?z:z+H()-p;d-=f;0>d&&(d=0);s=N(function(){D=!0;l(!1);a()},d,"trackUserTime")}}function g(){q=
m=n=!0;z+=H()-p;p=H();c()}function h(){m||n||(z=0);p=H();m=n=!0;q=!1;c()}function v(){n||(m=!0,q=!1,n=!0,c())}function l(a){for(var b=0;b<C.length;b+=3)a?P(C[b],C[b+1],C[b+2]):Na(C[b],C[b+1],C[b+2])}var m=!1,n=!1,q=!0,z=0,p=H(),s=null,D=!1;if(Ga)N(a,b,"trackUserTime");else{var C=[f,"blur",g,f,"focus",h,d,"click",v,d,"mousemove",v,d,"keydown",v,d,"scroll",v];l(!0);c()}}function ya(a){function b(){var a=D().hash.split("#")[1];if("undefined"==typeof a)return!1;var e=a.indexOf("?");0<e&&(a=a.substring(0,
e));return a}var c=b();(function Da(){var d=b();d!==c&&(a(),c=d);Ca=N(Da,200,"trackHash")})()}function Oa(a){Sa=lastReferrer=Ra;a={ut:A,ad:1==c&&f.Ya&&f.Ya.Direct?!0:!1,wh:!0,saveRef:!0};Q.sendAjaxHit(D().href,w(),Sa,a);Ra=D().href}function za(b){function k(){var a=d.documentElement;return Math.max(a.scrollWidth,d.body.scrollWidth,a.clientWidth)}function g(a){function b(a){a=a.getBoundingClientRect();var e=d.body,c=d.documentElement,k=a.left+(f.pageXOffset||c.scrollLeft||e.scrollLeft)-(c.clientLeft||
e.clientLeft||0);return{top:Math.round(a.top+(f.pageYOffset||c.scrollTop||e.scrollTop)-(c.clientTop||e.clientTop||0)),left:Math.round(k)}}return a.getBoundingClientRect?b(a):function(a){for(var b=0,e=0;a;)b+=parseInt(a.offsetTop),e+=parseInt(a.offsetLeft),a=a.offsetParent;return{top:b,left:e}}(a)}function h(a){return a.toString().toUpperCase()}function m(a){if(null==a.pageX&&null!=a.clientX){var b=d.documentElement,e=d.body;a.pageX=a.clientX+(b&&b.scrollLeft||e&&e.scrollLeft||0)-(b.clientLeft||0);
a.pageY=a.clientY+(b&&b.scrollTop||e&&e.scrollTop||0)-(b.clientTop||0)}return{x:a.pageX,y:a.pageY}}function n(a){for(var b=h(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 l=this,q=0,z=null,p="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 MAIN".split(" "),
s=59,y=String.fromCharCode,E={},w=0;w<p.length;w++)E[p[w]]=y(s),y(s),s++;this.handler=function(b){var e=d.getElementsByTagName("body")[0];if(!f.ymDisabledClickmap&&!oa(e,"ym-clickmap-ignore")){if(l._prefs.hasQuota){if(!l._prefs.quota)return;l._prefs.quota--}var p=b.target||b.srcElement;3==p.nodeType&&(p=p.parentNode);var e=h(p.nodeName),u=m(b),x;b.which||b.button===ka||(b.which=b.button&1?1:b.button&2?3:b.button&4?2:0);x=b.which;if(x=2!=x&&3!=x||"A"==e)if(x=p.offsetHeight,x=!(0===p.offsetWidth&&0===
x||p.style&&"none"===p.style.display)){b:{for(x=p;x.parentNode;){if(oa(x,"ym-clickmap-ignore")){x=!0;break b}x=x.parentNode}x=!1}if(x=!x){b:{x=l._prefs.ignoreTags;for(var s=0;s<x.length;s++)if(h(x[s])==h(e)){x=!0;break b}x=!1}x=!x&&l._prefs.filter(p,e)}}if(x){e=H();p={dom:p,x:u.x,y:u.y,time:e};if((u=50<e-q)&&!(u=!l._prefs.ignoreSameClicks)){if(u=z){x=Math.abs(u.x-p.x);var s=Math.abs(u.y-p.y),y=p.time-u.time,u=u.dom==p.dom&&2>x&&2>s&&1E3>y?!0:!1}else u=!1;u=!u}if(u&&"MetrikaPlayer"!=f.name){if(u=b.target||
b.srcElement){3==u.nodeType&&(u=u.parentNode);for(x=h(u.nodeName);u.parentNode&&u.parentNode.nodeName&&("A"!=x&&"AREA"!=x||!u.href);)u=u.parentNode,x=h(u.nodeName);x=u.href?u:!1}else x=!1;u=!1;x&&O(b,x)&&!M(D().hostname,x.hostname)&&(u=!0);x=$a;var y=m(b),s=y.x,y=y.y,w=b.target||b.srcElement,A=l._prefs,B=g(w),F="";b=D().href;switch(A.mode){case "fixed":F="0";n(w)&&(F+="u");break;case "centered":F="1";B=Math.floor(k()/2);s=s>B?s-B+32768:s;n(w)&&(F+="u");break;default:F=h(w.nodeName);F="BODY"==F||"HTML"==
F?k():w.offsetWidth;A=h(w.nodeName);"BODY"==A||"HTML"==A?(A=d.documentElement,A=Math.max(A.scrollHeight,d.body.scrollHeight,A.clientHeight)):A=w.offsetHeight;F||(F=1);A||(A=1);s=Math.floor(65535*(s-B.left)/F);y=Math.floor(65535*(y-B.top)/A);for(B="";w.parentNode&&"BODY"!=h(w.nodeName)&&"HTML"!=h(w.nodeName);){B+=E[w.nodeName]||"*";b:{for(var F=w.parentNode,G=A=0;G<F.childNodes.length;G++)if(w.nodeName==F.childNodes[G].nodeName){if(w==F.childNodes[G]){F=A;break b}A++}F=0}B+=F||"";w=w.parentNode}F=
K(B,128)}y=["rn",xa(),"x",s,"y",y,"t",Math.floor(Math.floor(H()-ec)/100),"p",F];R?y=y.concat("wh","1"):b=b?b.replace(/\#.*$/,""):b;"function"==typeof l._prefs.urlFilter&&(b=l._prefs.urlFilter(b));s=gc;b=["page-url",K(b,Xa),"pointer-click",y.join(":")];b=["cnt-class",c].concat(b);y=[];for(w=0;w<b.length;w+=2)(B=b[w+1])&&(y[y.length]=b[w]+"="+B);b=U+s+a+"?"+y.join("&");x(b,u?l._prefs.delay:0)}q=e;z=p}}};this.setPrefs=function(a){function b(a,e){return!0}this._prefs="undefined"==typeof a||!1===a||!0===
a?{filter:b,ignoreTags:[],mode:"",delay:Ia,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?Ia: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||P(d,"click",this.handler,!0);this._start=!0};this.stop=function(){this._start&&Na(d,"click",this.handler,!0);this._start=!1};this.start(b)}var Pa=Math.round(1073741824*Math.random()),y,A="",U=ea,Ra=Wa=L.href,Sa="",E;Ya._metrika.counter||(Ya._metrika.counter=g);"object"==typeof a&&(E=a,z=a.defer,A=a.ut,c=a.type,b=a.params,U=a.onlyHttps?"https:":ea,a=a.id);a=a||0;/^\d+$/.test(a)||(a=0);c=c||0;y=a+":"+c;if(Ya._metrika.counters[y])return Ya._metrika.counters[y];
q.trim=function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};p._silverlightVersion="";p.getSilverlightVersion=function(){if(!p._silverlightVersion)if(f.ActiveXObject)try{var a=new ActiveXObject("AgControl.AgControl"),b=function(a,b,e,c){for(;a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3]);)b[e]+=c;b[e]-=c},c=[1,0,0,0];b(a,c,0,1);b(a,c,1,1);b(a,c,2,1E4);b(a,c,2,1E3);b(a,c,2,100);b(a,c,2,10);b(a,c,2,1);b(a,c,3,1);p._silverlightVersion=c.join(".")}catch(d){}else if(a=
T.plugins["Silverlight Plug-In"])p._silverlightVersion=a.description;return p._silverlightVersion||""};p._flashVersion=0;p.getFlashVersion=function(){if(!p._flashVersion){var a=f.navigator;if("undefined"!=typeof a.plugins&&"object"==typeof a.plugins["Shockwave Flash"]){var b=a.plugins["Shockwave Flash"].description;b&&(a=a.mimeTypes,"undefined"==typeof a||!a["application/x-shockwave-flash"]||a["application/x-shockwave-flash"].enabledPlugin)&&(p._flashVersion=b.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,
"."))}else if("undefined"!=typeof f.ActiveXObject)try{if(b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")){var c=b.GetVariable("$version");c&&(p._flashVersion=c.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,""))}}catch(d){}}return p._flashVersion};p.getLanguage=function(){return(f.navigator&&(T.language||T.browserLanguage)||"").toLowerCase()};p.getJavaEnabled=function(){try{return T.javaEnabled()}catch(a){return!1}};q.fnv32a=function(a){for(var b=2166136261,c=0,d=a.length;c<d;++c)b^=a.charCodeAt(c),
b+=(b<<1)+(b<<4)+(b<<7)+(b<<8)+(b<<24);return b>>>0};p.getFingerPrint=function(){for(var a=[],b=0;b<T.plugins.length;b++){var c=T.plugins[b];q.mergeArrays(a,[c.name,c.version,c.description,c.filename])}for(b=0;b<T.mimeTypes.length;b++)c=T.mimeTypes[b],q.mergeArrays(a,[c.type,c.description,c.suffixes]);return q.fnv32a(a.join(";"))+"01"};var Aa=Z.inherit({trimParams:!1,resource:"watch",retry:!0,postParams:["site-info"],sendHit:function(a,b,c,d,f){this._hitExt(a,b,c,d,{ut:f,ar:!0,saveRef:!0})},sendAjaxHit:function(a,
b,c,d){this._hitExt(a,b,c,null,d)},sendParams:function(a){this._hitExt(D().href,"","",a,{ar:!0,pa:!0,onlyData:!0})},sendGoal:function(a,b){if(!/[\/&=?#]/.test(a)){var c=a?"goal://"+D().hostname+"/"+encodeURIComponent(a):D().href,f=w(),g=a?D().href:d.referrer;this._hitExt(c,f,g,b,{ar:!0})}},sendClickLink:function(a,b,c){this._hitExt(a,b,D().href,null,c)},sendExtLink:function(a,b,c,d){this._hitExt(a,"",D().href,d,{ar:!0,ln:!0,ut:Ha})},sendFileUpload:function(a,b,c,d){this._hitExt(a,"",D().href,d,{ar:!0,
ln:!0,dl:!0})},sendNotBounce:function(a){this._hitExt(D().href,"","",null,{cl:a,ar:!0,nb:!0,onlyData:!0})},sendVideoAction:function(a,b,c,d){this._hitExt(c,d||"","",null,{ar:!0,va:a,vt:+b})},sendSocialClick:function(a,b,c){this._hitExt(c||D().href,"","",null,{ar:!0,sn:q.trim(a,64),sa:q.trim(b,64)})},_hitExt:function(a,b,c,d,g,m,l,n){function p(a,b){b&&(z[a]=b)}g=g||{};m=m||{};if("MetrikaPlayer"!=f.name){c="undefined"!=typeof c?c:Wa;var z={};g.ar&&!g.onlyData&&(c=this._prepareHitUrl(c),a=this._prepareHitUrl(a));
g.reqNum=!0;p("page-ref",q.trim(c,Xa));p("page-url",q.trim(a,Xa));-1!=D().hostname.search(/(?:^|\.)(?:ya|yandex|narod|narod2)\.(?:\w+|com\.\w+)$/)?p("ut",Ha):"undefined"!=typeof g.ut&&p("ut",q.trim(g.ut,64));if(d)if(a=h(d),this.trimParams&&a.length>dc)var s=!0;else p("site-info",a);g.saveRef&&(Wa=c);q.mixin(m,V(b,g,!0));this.send(z,m,function(){s&&(new Aa({protocol:this.protocol,counterType:this.counterType,counterId:this.counterId})).sendParams(d);l&&l.apply(n,arguments)},this)}},_prepareHitUrl:function(a){var b=
D(),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}}),Ta=Fa.inherit({id:"script",request:function(a,b,c,g,h){var m="_ymjsp"+q.random(),l=d.createElement("script");f[m]=G(function(a){try{delete f[m]}catch(b){f[m]=
ka}g.call(h,a);l.parentNode&&l.parentNode.removeChild(l)},"transport.script");l.type="text/javascript";l.src=this._buildUrl(a,q.mixin({wmode:5,callback:m},b,c));a=d.getElementsByTagName("head")[0];a.insertBefore(l,a.firstChild);return!0}}),Ba=Aa.inherit({transports:[Ta],retry:!1,trimParams:!0,sendHit:function(a,b,c,d,g,f,h,m){this._hitExt(a,b,c,d,g,f?{vc:f}:null,h,m)}}),ha=[];f.postMessage&&f.addEventListener&&P(f,"message",function(a){if(a.data)try{var b="string"==typeof a.data?JSON.parse(a.data):
a.data;"object"==typeof b&&"ym_counters"==b.name&&a.source.postMessage({name:"ym_counters",data:f.Ya.Metrika.counters()},"*")}catch(c){}},!1);Z.retransmit();var Q=new Aa({protocol:U,counterType:c,counterId:a}),ia;g.replacePhones=G(function(){try{var b=Ma("_ym_mp2_substs_"+a);if(b){var c=(new Function("return "+b))();c&&fa(c,!0)}}catch(d){}},"counter.replacePhones");g.reachGoal=G(function(a,b){Q.sendGoal(a,b);return!0},"counter.reachGoal");g.trackLinks=G(ja,"counter.trackLinks");g.hit=G(function(a,
b,c,d,g){a&&Q.sendHit(a,b,c,d,g)},"counter.hit");g.params=G(function(a){if(a){var b=arguments.length;if(1<b){for(var c={},d=c,g=0;g<b-1;g++){var f=""+arguments[g];d[f]={};g<b-2&&(d=d[f])}d[f]=arguments[b-1];a=c}Q.sendParams(a)}},"counter.params");g.file=G(function(a,b,c,d){a&&Q.sendFileUpload(a,b,c,d)},"counter.file");g.extLink=G(function(a,b,c,d){a&&Q.sendExtLink(a,b,c,d)},"counter.extLink");g.notBounce=G(function(){var a=0;Za&&Ja&&(a=Ja-Za);Q.sendNotBounce(a)},"counter.notBounce");var aa=[];g.addFileExtension=
function(a){"string"==typeof a?aa.push(a):aa=aa.concat(a)};g.clickmap=function(a){g._clickmap?g._clickmap.updateStatus(a):g._clickmap=new za(a)};g.accurateTrackBounce=function(b){"number"!=typeof b&&(b=15E3);if(!g._isAccurateTrackBounce){g._isAccurateTrackBounce=!0;var c=new ba({counterId:a}),f=c.get("lastHit");c.set("lastHit",+new Date);((c=c.get("lastHit"))&&(!f||f<c-18E5)||!S(d.referrer,D().href)||0.1>Math.random())&&va(function(){g.notBounce()},b)}};var Ca=null,R=!1;g.trackHash=function(a){!1===
a?R&&("onhashchange"in f?Na(f,"hashchange",Oa):clearInterval(Ca),R=!1):R||("onhashchange"in f?P(f,"hashchange",Oa):ya(Oa),R=!0);g._trackHash=R};g.video=G(function(a,b,c,d){var g=["end","play","pause","seek"];if(a&&c){a:{for(var f=0,h=g.length;f<h;f+=1)if(a===g[f]){g=f;break a}g=-1}-1!==g&&Q.sendVideoAction(a,b,c,d)}},"counter.video");g.social=G(function(a,b,c){a&&b&&Q.sendSocialClick(a,b,c)},"counter.social");g.enableAll=function(){g.trackLinks(!0);g.clickmap(!0);g.accurateTrackBounce()};g.pause=
Mb;g.uploadPage=function(){};g._performanceTiming=W;a&&pa()},"init")()};f.Ya.Metrika.counters=function(){var a=[];hb(f.Ya._metrika.counters,function(b,c){var d=c.split(":");a.push({id:+d[0],type:+d[1],accurateTrackBounce:b._isAccurateTrackBounce,clickmap:b._clickmap&&b._clickmap._start,oldCode:!!f.ya_cid,trackHash:!!b._trackHash,trackLinks:b._trackLinks&&b._trackLinks.on,webvisor:!!b._webvisor})});return a};var $a=function(a,b){var c=/(&|\?)browser-info=rqnl:(\d+):/;a=a.match(c)?a.replace(c,"$1browser-info=rqnl:"+
(+RegExp.$2+1)+":"):a.replace(/(&|\?)browser-info=/,"$1browser-info=rqnl:1:");c=new Image;ua.add(a,b);c.onload=function(){ua.deleteHit(a)};c.src=a;"function"==typeof f.ymLog&&f.ymLog(a)},ua=function(){var a=new ba;return{init:function(){this.send();this._events()},_events:function(){var a=this,c=function(){a._wasEnd||(a._wasEnd=!0,a._onEnd())};P(f,"beforeunload",c);Kb||P(f,"unload",c)},_onEnd:function(){var b=[],c=0;this._update(b);for(var d=0;d<b.length;d++)b[d].delay>c&&(c=b[d].delay);a.set("defer",
b)},get:function(){return a.get("defer")},add:function(b,c){var d=[{url:b,delay:c,time:H()}];this._update(d);a.set("defer",d)},deleteHit:function(b){var c=[];this._update(c,b);a.set("defer",c)},_update:function(a,c){var d=this.get(),g=H();if(d&&ma(d)&&d.length)for(var f=0;f<d.length;f++){var h=d[f];h.url&&h.url!=c&&h.time>g-4E3&&a.push(h)}return a},send:function(){var a=this.get(),c=H();if(a){if(ma(a)&&a.length)for(var d=0;d<a.length&&10>d;d++){var f=a[d];f&&f.url&&f.time>c-36E5&&this._isCorrectUrl(f.url)&&
$a(f.url)}this.clear()}},_isCorrectUrl:function(a){return 0===a.replace(/^https?:/,"").indexOf("//mc.yandex.ru/")},clear:function(){a.remove("defer")}}}();ua.init();f.ya_cid&&new Ya.Metrika(f.ya_cid,f.ya_params,f.ya_class);f.ya_cid&&!f.ya_hit&&(f.ya_hit=function(a,b){Ya._metrika.counter&&Ya._metrika.counter.reachGoal(a,b)});K=f.yandex_metrika_callback;B=f.yandex_metrika_callbacks;"function"==typeof K&&K();if("object"==typeof B)for(K=0;K<B.length;K++)if(W=B[K])B[K]=null,W();ya("yandex_metrika_callback");
ya("yandex_metrika_callbacks");B=["link","click","scroll","res"];for(K=0;K<B.length;K++)if(W=B[K]+"map",-1!=L.href.search("ym_playback="+W)){za(ea+"//metrika.yandex.ru/js/"+W+"/_loader.js");break}f.Ya.Metrika.informer=function(a){var b=!!Ya.Metrika._informer;Ya.Metrika._informer=a;b||za(ea+"//mc.yandex.ru/metrika/informer.js")};(function(){var a=p.getJScriptVersion();if(!a||5.8<a)"complete"==d.readyState?pa():P(f,"load",pa)})();(function(){var a=function(){var a=d.getElementsByTagName("body")[0],
b=d.createElement("iframe");b.src="http://awaps.yandex.ru/0/2153/0.htm?ad=165746&pl=93829&rnd="+xa();b.setAttribute("style","position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;visibility:hidden");a.appendChild(b);N(function(){a.removeChild(b)},1E4,"ad")},b=function(){f.removeEventListener("load",b,!1);a()},c=f.performance;xa(200)||Ya._metrika.isAd||(Ya._metrika.isAd=!0,"http:"==ea&&"object"==typeof c&&f.addEventListener&&(c.timing&&c.timing.loadEventStart?a():f.addEventListener("load",
b,!1)))})()})(this,this.document);
