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