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