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