(function(d,c,ka){function L(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"))&&sa(g,b)}}}function sa(a,b){if(0.01>Math.random()){var g=["cp: "+b,a.name+": "+a.message,"debug: "+Da,"code: "+Xa,"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(L(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 Ea(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 u=b[c];a[u]=""+f[u]}}catch(k){K&&(a=K)}return a}function vb(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function ta(a){return Math.floor(Math.random()*("number"==typeof a?a:1073741824))}function Nb(){var a=c.documentElement,b=c.doctype,g=a.attributes,z="",f="",d="",f=a.outerHTML;if(!f){for(f=0;f<g.length;f++){var k=g[f];k&&(z+=" "+k.name+'="'+(k.value||"")+'"')}f="<html"+z+">"+a.innerHTML+"</html>"}b&&(d="<!DOCTYPE "+b.name+(b.publicId?' PUBLIC "'+b.publicId+'"':"")+
(b.systemId?' "'+b.systemId+'"':"")+">\n");return d+f}function Za(a){for(var b=a.length,g=0,c=255,f=255;b;){var d=21<b?21:b,b=b-d;do{var k="string"==typeof a?a.charCodeAt(g):a[g];g++;if(255<k)var n=k>>8,k=k&255,k=k^n;c+=k;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 gb(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 Fa(a){return-1!==(""+d.navigator.userAgent).toLowerCase().search(a)}
function ua(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 Ga(a){return c.cookie.match(RegExp("(?:^|;\\s*)"+a+"=([^;]*)"))?decodeURIComponent(RegExp.$1):null}function hb(){ua("_metrika_enabled","1",60);var a=!!Ga("_metrika_enabled");ua("_metrika_enabled","",-1,void 0);return a}function Ha(){var a=c.documentElement;return"CSS1Compat"==c.compatMode?a:
c.body||a}function wb(){var a=Ha();a.__lookupGetter__&&a.__lookupGetter__("clientHeight");return[a.clientWidth,a.clientHeight]}function xb(){var a=Ha(),b=wb();return[Math.max(a.scrollWidth,b[0]),Math.max(a.scrollHeight,b[1])]}function yb(){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 zb(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 Ab(a,b){var g=[];if(a){var c=a.childNodes;if(c)for(var f=0,d=c.length;f<d;f++){var k=c[f];"INPUT"==k.nodeName&&k.type&&"hidden"==k.type.toLocaleLowerCase()||
b&&k.nodeName!=b||T(g,k)}}return g}function Ia(a){var b=zb(a);a=a==c.body||a==c.documentElement?xb():[a.offsetWidth,a.offsetHeight];return[b[0],b[1],a[0],a[1]]}function Bb(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 Za(b.replace(/[\u0000-\u0020]+/g,""))}function Cb(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 Za(b.replace(/[\u0000-\u0020]+/g,""))}function Db(a){for(var b=c.getElementsByTagName("form"),g=0,d=b.length;g<d;g++)if(b[g]==a)return g;return-1}function la(a,b){return RegExp("(?:^|\\s)"+b+"(?:\\s|$)").test(a.className)}function Eb(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 Fb(a,b){b=b||c;for(var g=b.getElementsByTagName("*"),d=[],f=0;f<g.length;f++)la(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 Ja(a,b,c,d){for(var f=0;f<U.length;f++)if(U[f]&&U[f][0]==c){var u=U[f][1];delete U[f];break}u&&(a.removeEventListener?a.removeEventListener(b,u,!!d):a.detachEvent&&a.detachEvent("on"+b,u))}function ma(a){try{delete d[a]}catch(b){d[a]=
ka}}function va(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 fa(){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 z=b.contentWindow.document}catch(f){}z&&(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(z){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){}},z.open(),z.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>'),z.close())},500)}}function ib(a,b,g,z,f,u){function k(a,e,b){var h=L(function(a){return b(a||d.event)},e);$[$.length]=[a,e,b,h];a.addEventListener?a.addEventListener(e,h,!0):a.attachEvent&&a.attachEvent("on"+e,h)}function n(a,e,b){for(var h=0;h<$.length;h++)if($[h]&&$[h][0]==a&&$[h][1]==e&&$[h][2]==b){var c=$[h][3];delete $[h];break}c&&(a.removeEventListener?a.removeEventListener(e,c,!0):a.detachEvent&&a.detachEvent("on"+
e,c))}function m(a){var e=Ha();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 I(a){return(a.shiftKey?Gb:0)|(a.ctrlKey?jb:0)|(a.altKey?Hb:0)|(a.metaKey?gb:0)|(a.ctrlKey||a.altKey?$a:0)}function M(a){var e=(new Date).getTime();a&&e<a&&(kb+=a-e+lb);P(function(){M(e)},lb,"timeCorrector")}function K(){var a=(new Date).getTime()+kb;a<mb&&(a=mb+lb/2);return mb=a}function D(){return Math.round((K()-ib)/
Ob)}function J(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++)J(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,h,c,s){for(;b&&(!b.offsetWidth||!b.offsetHeight);)b=W(b);if(!b)return null;var f=b[G];if(!f||0>f)return null;var p={mousemove:Pb,
click:sa,dblclick:Xa,mousedown:X,mouseup:Va,touch:C}[e];if(!p)return null;var g=zb(b);b=[];r(b,p);q(b,a);q(b,f);q(b,Math.max(0,h[0]-g[0]));q(b,Math.max(0,h[1]-g[1]));/^mouse(up|down)|click$/.test(e)&&(a=c||s,r(b,2>a?ua:a==(c?2:4)?va:ma));return b}function da(a,e,b,h){e=e[G];if(!e||0>e)return null;var c=[];r(c,Wa);q(c,a);q(c,e);q(c,b[0]);q(c,b[1]);r(c,0);r(c,0);r(c,h);return c}function ea(a,e){var b=[];r(b,E);q(b,a);q(b,e[0]);q(b,e[1]);return b}function ja(a,e,b){var h=[];b=b[G];if(!b||0>b)return null;
r(h,na);q(h,a);q(h,e[0]);q(h,e[1]);q(h,b);return h}function oa(a,e,b){var h=[];r(h,pa);q(h,a);q(h,e[0]);q(h,e[1]);q(h,b[0]);q(h,b[1]);return h}function Y(a,e,b,h){var c=[];r(c,x);q(c,a);J(c,e);r(c,b);a=h[G];if(!a||0>a)a=0;q(c,a);return c}function ka(a,e){var b,h;0==e.length?h=b="":100>=e.length?(b=e,h=""):200>=e.length?(b=e.substr(0,100),h=e.substr(100)):(b=e.substr(0,97),h=e.substr(e.length-97));var c=[];r(c,Ta);q(c,a);O(c,b);O(c,h);return c}function ca(a){var e=[];r(e,Sa);q(e,a);return e}function Z(a){var e=
[];r(e,Ba);q(e,a);return e}function qa(a){var e=[];r(e,Ca);q(e,a);return e}function ta(a,e){var b=[];r(b,Fa);q(b,a);q(b,e[G]);return b}function ya(a,e){var b=[];r(b,Ga);q(b,a);q(b,e[G]);return b}function Ka(a,e,b){var h=[];r(h,Ja);q(h,a);q(h,e[G]);S(h,String(b));return h}function za(a){var e=a[G];if(!e||0>e||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||la(a.form,"-metrika-noform"))return null;var b=Db(a.form);if(0>b)return null;var h;h="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 h)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,v);q(s,e);q(s,b);q(s,h);O(s,a.name||"");q(s,c);return s}function La(a,e){var b=Db(e);if(0>b)return null;for(var h=e.elements,c=h.length,s=[],f=0;f<c;f++)if(!Eb(h[f])){var p=
h[f][G];p&&0<p&&T(s,p)}h=[];r(h,Qb);q(h,a);q(h,b);q(h,s.length);for(b=0;b<s.length;b++)q(h,s[b]);return h}function aa(){var a=[];r(a,Rb);return a}function y(a,e,b){a=a.apply(d,e);Ma.append(a,b)}function H(a){if(a[G])a:{var e=D(),b=a[G];if(0<b){var h=[];a=Ia(a);var c=ab[b],s=a[0]+"x"+a[1],f=a[2]+"x"+a[3];s!=c.pos&&(c.pos=s,r(h,Na),q(h,e),q(h,b),q(h,a[0]),q(h,a[1]));f!=c.size&&(c.size=f,r(h,Sb),q(h,e),q(h,b),q(h,a[2]),q(h,a[3]));if(h.length){a=h;break a}}a=null}else{(b=W(a))&&H(b);a[G]=nb;ab[nb]={};
nb++;if(a.nodeName)if(b=+a[G],!isFinite(b)||0>=b)e=null;else{var h=Da,c=0,p=W(a),s=p&&p[G]?p[G]:0;0>s&&(s=0);var f=a.nodeName.toUpperCase(),g=hb[f];g||(h|=eb);var d;b:{d=Ab(W(a),a.nodeName);for(var l=0;l<d.length;l++)if(d[l]==a){d=l;break b}d=0}d||(h|=Aa);l=Ia(a);(p=p?Ia(p):null)&&l[0]==p[0]&&l[1]==p[1]&&l[2]==p[2]&&l[3]==p[3]&&(h|=Ua);ab[b].pos=l[0]+"x"+l[1];ab[b].size=l[2]+"x"+l[3];a.id&&"string"==typeof a.id&&(h|=Ib);(p=Bb(a))&&(h|=fb);var F=Cb(a);F&&(c|=Ea);var w;b:{w=Ab(W(a),a.tagName);for(var k=
0;k<w.length;k++)if((!w[k].id||"string"!=typeof w[k].id)&&Cb(w[k])==F&&Bb(w[k])==p){w=!0;break b}w=!1}w&&(h|=fa,e=Za((a.innerHTML||"").replace(/(<[^>]*>|[\u0000-\u0020])/g,"")));w=[];r(w,Tb);q(w,b);r(w,h);q(w,s);g?r(w,g):S(w,f);d&&q(w,d);h&Ua||(q(w,l[0]),q(w,l[1]),q(w,l[2]),q(w,l[3]));h&Ib&&S(w,a.id);p&&J(w,p);h&fa&&J(w,e);r(w,c);F&&J(w,F);e=w}else a[G]=-1,e=null;Ma.append(e,void 0);a=za(a)}Ma.append(a,void 0)}function V(a){var e=t(a),b,h,c=0;if(e&&"SCROLLBAR"!=e.nodeName){if(e&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(e.tagName))if(e[G])H(e);
else if(b=W(e,"form"))for(b=b.elements,h=b.length;c<h;c++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[c].tagName)&&!b[c][G]&&H(b[c]);else H(e);else H(e);y(U,[D(),a.type,e,m(a),a.which,a.button])}}function Oa(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)||
Fb("-metrika-nokeys",b).length)||e==ob||(ob=e,y(ka,[D(),e]))}}function B(a){var e=K(),b=e-Jb;if(!(b<Kb)){var h=m(a),c=pb[0]-h[0],s=pb[1]-h[1],c=c*c+s*s;0>=c||16>c&&100>b||20>b&&256>c||(Jb=e,pb=h,V(a))}}function ga(){N=yb();var a=K();a-Lb<Kb||10>Math.abs(N[0]-qb[0])&&10>Math.abs(N[1]-qb[1])||(Lb=a,qb=N,y(ea,[D(),N]))}function ra(a){a=t(a);var e=Math.random(),b=[a.scrollLeft,a.scrollTop];if(a.localId){if(e=rb[a.localId],!e||10>Math.abs(b[0]-e[0])&&10>Math.abs(b[1]-e[1]))return}else{for(;rb[e];)e=Math.random();
a.localId=e}rb[a.localId]=b;a!==c&&(H(a),y(ja,[D(),b,a]))}function Pa(){y(oa,[D(),wb(),xb()])}function wa(){y(aa,[],!0)}function ha(a,e,b){a=t(a);"INPUT"==a.tagName&&"password"==a.type||/(?:^|\s)-metrika-nokeys(?:\s|$)/.test(a.className)||(H(a),y(Y,[D(),e,b,a]))}function Q(a){var e=a.keyCode,b=I(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&$a)19==e&&(b&~$a)==
jb&&(e=144),ha(a,e,b|$a),sb=!1,P(function(){sb=!0},1),67==e&&b&jb&&!(b&Hb||b&Gb)&&ba()}function ia(a){sb&&!tb&&0!==a.which&&(ha(a,a.charCode||a.keyCode,I(a)),tb=!0,P(function(){tb=!1},1))}function ba(){ub||(ub=!0,ob&&y(ca,[D()]),P(function(){ub=!1},1))}function xa(){Qa||(Qa=!0,y(Z,[D()]))}function R(){Qa&&(Qa=!1,y(qa,[D()]))}function e(a){(!Qa||a&&!a.fromElement)&&xa()}function h(a){a&&!a.toElement&&R()}function s(a){a=t(a);var e,b,h=0;if(a&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[G])H(a);
else if(e=W(a,"form"))for(e=e.elements,b=e.length;h<b;h++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(e[h].tagName)&&!e[h][G]&&H(e[h]);else H(a);y(ta,[D(),a])}}function p(a){(a=t(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(H(a),y(ya,[D(),a]))}function w(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;H(a);y(Ka,[D(),a,e])}}function F(a){a=
t(a);if(!la(a,"-metrika-noform")&&"FORM"==a.nodeName){for(var e=a.elements,b=0;b<e.length;b++)Eb(e[b])||H(e[b]);y(La,[D(),a],!0)}}function l(a){ga();if(a.touches&&a.touches.length){var e=t(a);if(e){H(e);for(var b=0;b<a.touches.length;b++)y(U,[D(),"touch",e,[a.touches[b].pageX,a.touches[b].pageY],0,0])}}}function bb(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&&(H(e),y(da,[D(),e,m(a),b]))}}var Ma=new Mb({protocol:a,
counterId:b,counterType:g,meta:{url:A().href,hitId:f,timezone:cb,timestamp:Ra}}),lb=20,Ob=50,Kb=10,Tb=1,Pb=2,E=3,na=16,X=4,x=5,v=7,Na=9,Sb=10,Qb=11,C=12,Rb=13,Ba=14,Ca=15,Fa=17,Ga=18,Ja=19,Sa=27,pa=28,Ta=29,Va=30,Wa=31,sa=32,Xa=33,ua=1,ma=2,va=4,fa=1,eb=2,Aa=4,Ua=8,fb=16,Ib=32,Da=64,Ea=2,Hb=1,Gb=2,jb=4,gb=8,$a=16,hb={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},$=[],kb=0;M(0);var mb=0,nb=1,Jb=0,pb=[0,0],Lb=0,qb=[0,0],rb={},sb=!0,tb=!1,ob="",ub=!1,Qa=!0,ib=K(),G="metrikaId_"+Math.random(),ab={},db=":submit"+Math.random();"MetrikaPlayer"!=d.name&&(k(c,"mousemove",B),k(c,"click",V),k(c,"dblclick",V),k(c,"mousedown",V),k(c,"mouseup",Oa),k(d,"scroll",ga),"onmousewheel"in c?k(c,"mousewheel",bb):k(c,"wheel",bb),k(d,"beforeunload",wa),Ub||k(d,"unload",wa),k(d,"resize",Pa),k(c,"keydown",Q),k(c,"keypress",ia),k(c,
"copy",ba),k(c,"touchmove",l),k(c,"touchstart",l),c.attachEvent&&!d.opera?(k(c,"focusin",e),k(c,"focusout",h)):(k(d,"focus",xa),k(d,"blur",R),k(c,"blur",R)),c.addEventListener?(c.addEventListener("scroll",ra,!0),c.addEventListener("focus",s,!0),c.addEventListener("blur",p,!0),c.addEventListener("change",w,!0),c.addEventListener("submit",F,!0)):c.attachEvent&&(k(c,"focusin",s),k(c,"focusout",p),function(){for(var a=c.getElementsByTagName("form"),e=0;e<a.length;e++){for(var b=a[e].getElementsByTagName("*"),
h=0;h<b.length;h++)/^INPUT|SELECT|TEXTAREA$/.test(b[h].tagName)&&k(b[h],"change",w);k(a[e],"submit",F)}}()),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][db]=b,a[e].submit=function(){F({target:this});return this[db]()}}}(),"0:0"!=N.join(":")&&ga(),Pa(),u.uploadPage=function(e){if("function"==typeof d.toStaticHTML&&-1<d.toStaticHTML.toString().indexOf("NoScript"))return!1;
var h=c.documentElement;if(h&&19E4<(""+h.innerHTML).length)return!1;var s=d.XMLHttpRequest?new d.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),p=(""+(c.characterSet||c.charset||"")).toLowerCase(),h="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,""),h,f,cb,Ra),!0;s&&(s.open("get",A().href,!0),s.onreadystatechange=function(){4==s.readyState&&
l.sendContent(s.responseText,s.getResponseHeader("content-type"),f,cb,Ra)},s.overrideMimeType&&p&&s.overrideMimeType(h),s.send(null));return!0});return{start:function(){Ma.activate()},stop:function(){Ma.clear();n(c,"mousemove",B);n(c,"click",V);n(c,"dblclick",V);n(c,"mousedown",V);n(c,"mouseup",Oa);n(c,"mousewheel",bb);n(c,"wheel",bb);n(d,"scroll",ga);n(d,"beforeunload",wa);n(d,"unload",wa);n(d,"resize",Pa);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",h);n(d,"focus",xa);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",w,!0),c.removeEventListener("submit",F,!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("*"),h=0;h<b.length;h++)/^INPUT|SELECT|TEXTAREA$/.test(b[h].tagName)&&
n(b[h],"change",w);n(a[e],"submit",F)}}());(function(){for(var a=c.getElementsByTagName("form"),e=0;e<a.length;e++)a[e][db]&&(a[e].submit=a[e][db])})()},uploadPages:function(a,e){function b(){n(c,"DOMContentLoaded",b);n(d,"load",b);for(var h=a.split(/\n/),s=A().href,p=/regexp:/,f=0;f<h.length;f++){var g=h[f];if(g)if(p.test(g)){g=vb(g.replace(p,""));try{var l=RegExp(g)}catch(w){}if(l&&l.test(s)){u.uploadPage(e);break}}else if(-1!==s.indexOf(g)){u.uploadPage(e);break}}}"complete"==c.readyState?b():
(k(c,"DOMContentLoaded",b),k(d,"load",b))}}}var Wb=!1,Da="",Ub=!Fa(/webkit/)&&Fa(/gecko/),N=yb(),U=[],Sa=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._buffer={};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}}),ya=O.inherit({counterId:"",onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){ya.superclass._initComponent.apply(this,arguments);this._domain=null;if(!this.onlyCurrentDomain)for(var a=K.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(g){}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:"")}});ya.isEnabled=function(){return(new ya({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 I=O.inherit({transports:[],postParams:[],send:function(a,b,c,d){c=c||
function(){};var f={},u={};m.forEachKey(b,function(a,b){m.inArray(this.postParams,a)?u[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,u,function(a,f){a?c.call(d,f):n.call(this,b+1)},this)}catch(t){sa(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 za=O.inherit({_buildUrl:function(a,b){return a+(-1<a.indexOf("?")?"&":"?")+pa.stringify(b)}}),J=za.inherit({id:"XHR",request:function(a,b,c,z,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(K.host))return z.call(f,
!1)}if(d.XMLHttpRequest){var k=new XMLHttpRequest;if("withCredentials"in k){a=this._buildUrl(a,b);k.open("POST",a,!0);k.withCredentials=!0;k.setRequestHeader("Content-Type","application/x-www-form-urlencoded");k.send(pa.stringify(c));(function(){4==k.readyState?z.call(f,200==k.status):P(arguments.callee,50,"TransportXHR.request")})();return}}z.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=za.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 u=this._doc;if(!u)return d.call(f,!1);var k="ifr"+m.random(),
n=u.createElement("div");n.style.position="absolute";n.style.left="-99999px";n.style.top="-99999px";var t=['<iframe name="',k,'"></iframe>','<form action="',this._buildUrl(a,b),'" method="post" target="',k,'" enctype="',this.enctype,'">'];m.forEachKey(c,function(a){m.mergeArrays(t,['<textarea name="',a,'"></textarea>'])});m.mergeArrays(t,["</form>"]);n.innerHTML=t.join("");u.body.appendChild(n);var A=n.getElementsByTagName("form")[0];m.forEachKey(c,function(a,b){A[a].value=b});A.submit();P(function(){u.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}),eb=za.inherit({id:"img",request:function(a,b,c,d,f){a=this._buildUrl(a,m.mixin({},b,c));b=new Image;b.onload=L(function(){d.call(f,!0)},"TransportImage.request");b.onerror=L(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=I.inherit({protocol:"",host:"mc.yandex.ru",resource:"",counterId:"",counterType:0,retry:!1,transports:[J,Y,eb],_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")||{},u=0;f[u];)u++;f[u]={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(""),k=[];b&&(m.forEachKey(b,function(a,b){"t"!=a&&m.mergeArrays(k,[a,b])}),b.t&&m.mergeArrays(k,["t",b.t]));k.length&&(a["browser-info"]=k.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[u]&&(delete a[u],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,k,n=0;n<m;n+=3)k=(a[n]<<16)+(a[n+1]<<8)+a[n+2],T(f,c[k>>18&63],c[k>>12&63],c[k>>6&63],c[k&63]);switch(d-m){case 1:k=a[m]<<4;T(f,
c[k>>6&63],c[k&63],c[64],c[64]);break;case 2:k=(a[m]<<10)+(a[m+1]<<2),T(f,c[k>>12&63],c[k>>6&63],c[k&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:[J,ca],postParams:["wv-data"],sendContent:function(a,b,c,d,f,m,k){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,k)}});m.throttle=function(a,b,c,d){var f,m,k;return function(){m=arguments;k=this;f||function(){f=null;m&&(a.apply(c||k,m),m=null,f=P(arguments.callee,b,d))}()}};var Aa=O.inherit({storage:null,storageKey:"dataBuffer",maxBufferSize:255,flushTimeout:1E4,active:!0,meta:null,onFlush:function(){},onFlushCtx:null,bufferExpireTime:864E5,_initComponent:function(){Aa.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 k="string"==typeof a?a.charCodeAt(c):a[c];c++;if(255<k)var n=k>>8,k=k&255,k=k^n;d+=k;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,k,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},k,n)}}),Mb=Aa.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}};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 K=A(),cb,Ra,M=d.navigator,qa=d.screen,da="https:"==K.protocol?
"https:":"http:",Xa=518,ra=5.8>=t.getJScriptVersion(),Ta=ra?512:2048,Zb=ra?512:2048,Ua=ra?100:400,Va="noindex",Ba=50,fb=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",
Wa,Ca;d.Ya.Metrika=function(a,b,g,z){var f=this;return L(function(){function u(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]=u(a[d]);return"["+c.join(",")+"]";case Object:c="{";d=0;for(f in a)if(a.hasOwnProperty(f)){var F=a[f];F!==ka&&
(c+=(d?",":"")+'"'+b(f)+'":'+u(F),d++)}return c+"}";default:return"null"}}function k(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 I(a,b){return(a?a.replace(/^www\./,""):"")==(b?b.replace(/^www\./,""):"")?!0:!1}function J(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,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?F[a]=e:F[F.length]=[a,e].join(":"))}function w(a){p(a,b[a]?"1":"")}b=b||{};var F=s?{}:[],l=-1*(new Date).getTimezoneOffset(),g=D();Ra||(Ra=g,cb=l);p("j",t.getJavaEnabled()?"1":"");qa&&p("s",qa.width+
"x"+qa.height+"x"+(qa.colorDepth||qa.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",Xa);p("c",M.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++)w(g[l]);g=["va","vt","sn","sa","he"];b.nb&&g.push("cl");for(l=0;l<g.length;l++){var k=g[l];p(k,b[k])}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",ta());p("hid",La);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||Za(d.name));try{d.history&&
p("hl",String(d.history.length))}catch(n){}}e="undefined"==typeof e?(e=N())?m.trim(e,Ua):"":m.trim(e,Ua);p("t",e);return s?F:F.join(":")}function N(){var a=c.title;"string"!=typeof a&&(a=(a=c.getElementsByTagName("title"))&&a.length?a[0].innerHTML:"");return a}function D(){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,w=b.length;d<w;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?://"+K.host+"/").test(b))return!1;for(var d=a.patterns,f=0;f<d.length;f++)if(b.match(RegExp(d[f],"i"))){var w=a.params||[];if(w.length)for(var g=oa((RegExp.$1||"").replace(/\+/g,"%20")),l=0;l<w.length;l++){if(g==oa(w[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 g=a[f].selector,F=a[f].text,l=g.charAt(0),g=g.slice(1);if("#"==l){if(l=c.getElementById(g))d=
!0,b&&ha.unshift([l,l.innerHTML]),l.innerHTML=F}else if("."==l)for(l=Fb(g),g=0;g<l.length;g++){var d=!0,k=l[g],m=F;b&&ha.unshift([k,k.innerHTML]);k.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):sa(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 sa(a){for(;a.length%4;)a+="=";var b,c,d,f,g,l=0,k="";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;k=64==f?k+String.fromCharCode(b):64==g?k+String.fromCharCode(b,c):k+String.fromCharCode(b,c,d)}while(l<a.length);a=k;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 ua(){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=!z&&(B&&B.webvisor||Wb);f._directCampaign=B&&B.directCampaign;B&&B.trackHash&&f.trackHash(!0);if(!z&&!e){f.replacePhones();var h=new ya({counterId:a}),s=h.read("visorc")||Ga(ac);"b"!=s&&"w"!=s&&(s="");if(!hb()||Fa("opera mini"))s="b";Wa=+new Date;var e=new Pa({protocol:da,
counterType:g,counterId:a}),p={ut:y,he:B?~~B.httpError:0,ad:1==g&&d.Ya&&d.Ya.Direct?!0:!1,saveRef:!0};e.sendHit(K.href,N(),c.referrer,b,p,s,function(a){Ca||(Ca=+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=La%1E4/1E4<e?"w":"b");h.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;h.erase("mp2_substs");if(b){b:if((e=b.conditions)&&e.length)for(var g=0;g<e.length;g++){var p;if("ref"==e[g].type)p=
ca(e[g]);else if(p="adv"==e[g].type){var k=e[g],m=Ya._metrika.counter._directCampaign,n=k.ServiceNamePattern,q=k.RefererPattern;p=m?k.direct_orders:k.direct_camp;var t=c.referrer,E=K.search,E=E&&E.replace(/^\?/,""),na={};if(E)for(var E=E.split("&"),X=0;X<E.length;X++){var x=E[X].split("=");na[oa(x[0])]=oa(x[1])}for(var E=pa(K.search,K.hash),X={},x=["source","medium","campaign","term","content"],v=0;v<x.length;v++)na["utm_"+x[v]]&&(X[x[v]]=na["utm_"+x[v]]);v=m?"direct.yandex.ru":E&&E.service||X.source;
x=!1;if(!x&&n&&n.length)for(var Na=0;Na<n.length;Na++)if(RegExp(n[Na],"i").test(v)){x=!0;break}if(!x&&q&&q.length)for(n=0;n<q.length;n++)if(RegExp(q[n],"i").test(t)){x=!0;break}!x&&k.google_adwords&&na.gclid&&(x=!0);!x&&k.yandex_direct&&na.yclid&&(x=!0);if(x&&p&&p.length&&(x=!1,k=m||E&&E.campaign||X&&X.campaign))for(m=0;m<p.length;m++)if(p[m]==k){x=!0;break}p=x}if(p){e[g].track_id&&h.create("mp2_track",e[g].track_id,43200);break b}}e=h.read("mp2_track");b=b.substs&&b.substs[e];e&&b?(h.create("mp2_substs",
u(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();B&&(B.enableAll?f.enableAll():(B.clickmap&&f.clickmap(B.clickmap),B.trackLinks&&f.trackLinks(B.trackLinks),B.accurateTrackBounce&&f.accurateTrackBounce(B.accurateTrackBounce),B.ad&&ad()));f._webvisor&&(ia=new ib(da,a,g,B,La,f))}function ma(a){var b={delay:Ba};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;b.delay="number"!=typeof a.delay?Ba:a.delay;break;
case "boolean":b.on=a;break;default:return}f._trackLinks=b}function va(){ma(!1);ea(c,"click",function(a){f._trackLinks.on&&Aa(a)},!0)}function Aa(a){var b=n(a);if(b){var c=!1,d=""+b.href,g=d?d.split(/\?/)[0]:"",m=function(a){var c=vb(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(fb.test(g)||fb.test(d)||k(d,ba)||k(g,ba))c=!0;var q=la(b,"ym-disable-tracklink"),g=la(b,"ym-external-link");q||(q={ln:!0,
dl:c},g?(q.delay=l(),m(q)):I(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 Da(a,b){function f(){if(!z){A&&clearTimeout(A);var c=b,d;d=t?u:u+ +new Date-r;c-=d;0>c&&(c=0);A=P(function(){z=!0;l(!1);a()},c,"trackUserTime")}}function g(){t=q=n=!0;u+=+new Date-r;r=+new Date;f()}function k(){q||n||(u=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<E.length;b+=3)a?ea(E[b],
E[b+1],E[b+2]):Ja(E[b],E[b+1],E[b+2])}var q=!1,n=!1,t=!0,u=0,r=+new Date,A=null,z=!1;if(ra)P(a,b,"trackUserTime");else{var E=[d,"blur",g,d,"focus",k,c,"click",m,c,"mousemove",m,c,"keydown",m,c,"scroll",m];l(!0);f()}}function Ea(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 w(){var d=b();d!==c&&(a(),c=d);xa=P(w,200,"trackHash")})()}function Ka(a){Oa=lastReferrer=V;a={ut:y,ad:1==g&&d.Ya&&d.Ya.Direct?
!0:!1,wh:!0,saveRef:!0};Q.sendAjaxHit(A().href,N(),Oa,a);V=A().href}function Ha(b){function h(){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,h=c.documentElement,f=a.left+(d.pageXOffset||h.scrollLeft||e.scrollLeft)-(h.clientLeft||e.clientLeft||0);return{top:Math.round(a.top+(d.pageYOffset||h.scrollTop||e.scrollTop)-(h.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 k(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,u="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,z=String.fromCharCode,B={},y=0;y<u.length;y++)B[u[y]]=z(r),z(r),r++;this.handler=function(b){var e,u=c.getElementsByTagName("body")[0];if(!d.ymDisabledClickmap&&!la(u,"ym-clickmap-ignore")){if(l._prefs.hasQuota){if(!l._prefs.quota)return;l._prefs.quota--}var x=b.target||b.srcElement;3==x.nodeType&&(x=x.parentNode);u=p(x.nodeName);e=k(b);var v;b.which||b.button===ka||(b.which=b.button&1?1:b.button&2?3:b.button&4?2:0);v=b.which;if(v=2!=v&&3!=v||"A"==u)if(v=x.offsetHeight,v=!(0===x.offsetWidth&&
0===v||x.style&&"none"===x.style.display)){b:{for(v=x;v.parentNode;){if(la(v,"ym-clickmap-ignore")){v=!0;break b}v=v.parentNode}v=!1}if(v=!v){b:{v=l._prefs.ignoreTags;for(var r=0;r<v.length;r++)if(p(v[r])==p(u)){v=!0;break b}v=!1}v=!v&&l._prefs.filter(x,u)}}if(v){u=+new Date;x={dom:x,x:e.x,y:e.y,time:u};if((e=50<u-n)&&!(e=!l._prefs.ignoreSameClicks)){if(e=t){v=Math.abs(e.x-x.x);var r=Math.abs(e.y-x.y),z=x.time-e.time;e=e.dom==x.dom&&2>v&&2>r&&1E3>z?!0:!1}else e=!1;e=!e}if(e&&"MetrikaPlayer"!=d.name){if(e=
b.target||b.srcElement){3==e.nodeType&&(e=e.parentNode);for(v=p(e.nodeName);e.parentNode&&e.parentNode.nodeName&&("A"!=v&&"AREA"!=v||!e.href);)e=e.parentNode,v=p(e.nodeName);e=e.href?e:!1}else e=!1;e&&O(b,e)&&I(A().hostname,e.hostname);v=k(b);e=v.x;v=v.y;var r=b.target||b.srcElement,y=l._prefs,z=f(r),C="";b=A().href;switch(y.mode){case "fixed":C="0";q(r)&&(C+="u");break;case "centered":C="1";z=Math.floor(h()/2);e=e>z?e-z+32768:e;q(r)&&(C+="u");break;default:C=p(r.nodeName);C="BODY"==C||"HTML"==C?
h():r.offsetWidth;y=p(r.nodeName);"BODY"==y||"HTML"==y?(y=c.documentElement,y=Math.max(y.scrollHeight,c.body.scrollHeight,y.clientHeight)):y=r.offsetHeight;C||(C=1);y||(y=1);e=Math.floor(65535*(e-z.left)/C);v=Math.floor(65535*(v-z.top)/y);for(z="";r.parentNode&&"BODY"!=p(r.nodeName)&&"HTML"!=p(r.nodeName);){z+=B[r.nodeName]||"*";b:{for(var C=r.parentNode,D=y=0;D<C.childNodes.length;D++)if(r.nodeName==C.childNodes[D].nodeName){if(r==C.childNodes[D]){C=y;break b}y++}C=0}z+=C||"";r=r.parentNode}C=m.trim(z,
128)}e=["rn",ta(),"x",e,"y",v,"t",Math.floor(Math.floor(+new Date-$b)/100),"p",C];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,Ta);e=e.join(":");(new wa({protocol:H,counterId:a,counterType:g})).sendClick(b,e)}n=u;t=x}}};this.setPrefs=function(a){function b(a,e){return!0}this._prefs="undefined"==typeof a||!1===a||!0===a?{filter:b,ignoreTags:[],mode:"",delay:Ba,quota:0,hasQuota:!1,ignoreSameClicks:!0}:{filter:a.filter||
b,ignoreTags:a.ignoreTags||[],mode:a.mode||"",delay:"undefined"==typeof a.delay?Ba: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||ea(c,"click",this.handler,!0);this._start=!0};this.stop=
function(){this._start&&Ja(c,"click",this.handler,!0);this._start=!1};this.start(b)}var La=Math.round(1073741824*Math.random()),aa,y="",H=da,V=Sa=K.href,Oa="",B;Ya._metrika.counter||(Ya._metrika.counter=f);"object"==typeof a&&(B=a,z=a.defer,y=a.ut,g=a.type,b=a.params,H=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=M.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&&(M.language||M.browserLanguage)||"").toLowerCase()};t.getJavaEnabled=function(){try{return M.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(M.plugins&&M.plugins.length)for(var b=
0;b<M.plugins.length;b++){var c=M.plugins[b];m.mergeArrays(a,[c.name,c.version,c.description,c.filename])}if(M.mimeTypes&&M.mimeTypes.length)for(b=0;b<M.mimeTypes.length;b++)c=M.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,k,l,q){function n(a,b){b&&(r[a]=b)}g=g||{};k=k||{};if("MetrikaPlayer"!=d.name){c="undefined"!=typeof c?c:Sa;var r={};g.ar&&!g.onlyData&&(c=this._prepareHitUrl(c),a=this._prepareHitUrl(a));g.reqNum=!0;n("page-ref",m.trim(c,Ta));n("page-url",m.trim(a,Ta));
-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=u(f),this.trimParams&&a.length>Zb)var t=!0;else n("site-info",a);g.saveRef&&(Sa=c);m.mixin(k,T(b,g,!0));this.send(r,k,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}}),Ia=za.inherit({id:"script",request:function(a,b,f,g,k){var n="_ymjsp"+m.random(),l=c.createElement("script");d[n]=L(function(a){try{delete d[n]}catch(b){d[n]=ka}g.call(k,!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}}),Pa=ga.inherit({transports:[Ia],retry:!1,trimParams:!0,sendHit:function(a,b,c,d,f,g,k,m){this._hitExt(a,b,c,d,f,g?{vc:g}:null,k,m)}}),wa=S.inherit({resource:"clmap",retry:!0,transports:[eb],sendClick:function(a,b,c,d){this.send({"page-url":a,"pointer-click":b},{},c,d)}}),ha=[];S.retransmit();var Q=new ga({protocol:H,counterType:g,counterId:a}),
ia;f.replacePhones=L(function(){try{var b=Ga("_ym_mp2_substs_"+a);if(b){var c=(new Function("return "+b))();c&&Z(c,!0)}}catch(d){}},"counter.replacePhones");f.reachGoal=L(function(a,b){Q.sendGoal(a,b);return!0},"counter.reachGoal");f.trackLinks=L(ma,"counter.trackLinks");f.hit=L(function(a,b,c,d,f){a&&Q.sendHit(a,b,c,d,f)},"counter.hit");f.params=L(function(a){if(a){var b=arguments.length;if(1<b){for(var c={},d=c,f=0;f<b-1;f++){var g=""+arguments[f];d[g]={};f<b-2&&(d=d[g])}d[g]=arguments[b-1];a=c}Q.sendParams(a)}},
"counter.params");f.file=L(function(a,b,c,d){a&&Q.sendFileUpload(a,b,c,d)},"counter.file");f.extLink=L(function(a,b,c,d){a&&Q.sendExtLink(a,b,c,d)},"counter.extLink");f.notBounce=L(function(){var a=0;Wa&&Ca&&(a=Ca-Wa);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 Ha(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)||!J(c.referrer,A().href)||0.1>Math.random())&&Da(function(){f.notBounce()},b)}};var xa=null,R=!1;f.trackHash=function(a){!1===a?R&&("onhashchange"in d?Ja(d,"hashchange",Ka):clearInterval(xa),R=!1):R||("onhashchange"in d?ea(d,"hashchange",Ka):Ea(Ka),R=!0);f._trackHash=R};f.video=L(function(a,b,c,d){var f=["end","play","pause","seek"];if(a&&c){a:{for(var g=0,k=f.length;g<k;g+=1)if(a===
f[g]){f=g;break a}f=-1}-1!==f&&Q.sendVideoAction(a,b,c,d)}},"counter.video");f.social=L(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=gb;f.uploadPage=function(){};f._performanceTiming=q;a&&ua()},"init")()};d.Ya.Metrika.counters=function(){var a=[];Ea(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)});I=d.yandex_metrika_callback;J=d.yandex_metrika_callbacks;"function"==typeof I&&I();if("object"==typeof J)for(I=0;I<J.length;I++)if(Y=J[I])J[I]=null,Y();ma("yandex_metrika_callback");ma("yandex_metrika_callbacks");
J=["link","click","scroll","res"];for(I=0;I<J.length;I++)if(Y=J[I]+"map",-1!=K.href.search("ym_playback="+Y)){va(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||va(da+"//mc.yandex.ru/metrika/informer.js")};(function(){var a=t.getJScriptVersion();if(!a||5.8<a)"complete"==c.readyState?fa():ea(d,"load",fa)})();(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="+ta();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;ta(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);
