(function(g,h,C){function w(a,b,c){return function(){try{return a.apply(this,arguments)}catch(d){c||Ja(d,b)}}}function Ja(a,b){var c;if(.01>Math.random())try{var d=a&&a.message||"";(c=-1<d.indexOf("network error occurred")||-1<d.indexOf("send beacon")&&-1<d.indexOf("Content Security Policy"))||(new na).log("jserrs",ea,a.message,b,E.href,"","string"===typeof a.stack&&a.stack.replace(/\n/g,"\\n"))}catch(e){}}function wb(a,b,c,d,e){function n(a){var b=(new Date).getTime();a&&b<a&&(gb+=a-b+20);f.setTimeout(function(){n(b)},
20,"timeCorrector")}function l(){var a=(new Date).getTime()+gb;a<Va&&(a=Va+10);return Va=a}function r(){return Math.round((l()-ya)/50)}function H(a,b){b=Math.max(0,Math.min(b,65535));f.mergeArrays(a,[b>>8,b&255])}function q(a,b){f.mergeArrays(a,[b&255])}function t(a,b){for(b=Math.max(0,b|0);127<b;)f.mergeArrays(a,[b&127|128]),b>>=7;f.mergeArrays(a,[b])}function m(a,b){255<b.length&&(b=b.substr(0,255));f.mergeArrays(a,[b.length]);for(var c=0;c<b.length;c++)H(a,b.charCodeAt(c))}function Wa(a,b){t(a,
b.length);for(var c=0;c<b.length;c++)t(a,b.charCodeAt(c))}function M(a,b,c,d,l,e){for(var r;c&&(r=p.getElementSize(c))&&(!r[0]||!r[1]);)c=p.getElementParent(c);if(!c)return null;r=c[I];if(!r||0>r)return null;var f={mousemove:2,click:32,dblclick:33,mousedown:4,mouseup:30,touch:12}[b];if(!f)return null;var n=p.getElementXY(c);c=[];q(c,f);t(c,a);t(c,r);t(c,Math.max(0,d[0]-n[0]));t(c,Math.max(0,d[1]-n[1]));/^mouse(up|down)|click$/.test(b)&&(a=l||e,q(c,2>a?1:a==(l?2:4)?4:2));return c}function Xa(a,b,c,
d){b=b[I];if(!b||0>b)return null;var l=[];q(l,31);t(l,a);t(l,b);t(l,c[0]);t(l,c[1]);q(l,0);q(l,0);q(l,d);return l}function u(a,b){var c=[];q(c,3);t(c,a);t(c,b[0]);t(c,b[1]);return c}function v(a,b,c){var d=[];c=c[I];if(!c||0>c)return null;q(d,16);t(d,a);t(d,b[0]);t(d,b[1]);t(d,c);return d}function zb(a,b,c){var d=[];q(d,28);t(d,a);t(d,b[0]);t(d,b[1]);t(d,c[0]);t(d,c[1]);return d}function ka(a,b,c,d,l){var e=[];q(e,38);t(e,a);H(e,b);q(e,c);a=d[I];if(!a||0>a)a=0;t(e,a);q(e,l?1:0);return e}function z(a,
b){var c;if(0==b.length)var d=c="";else 100>=b.length?(c=b,d=""):200>=b.length?(c=b.substr(0,100),d=b.substr(100)):(c=b.substr(0,97),d=b.substr(b.length-97));var l=[];q(l,29);t(l,a);Wa(l,c);Wa(l,d);return l}function Ab(a){var b=[];q(b,27);t(b,a);return b}function C(a){var b=[];q(b,14);t(b,a);return b}function E(a){var b=[];q(b,15);t(b,a);return b}function G(a,b){var c=[];q(c,17);t(c,a);t(c,b[I]);return c}function D(a,b){var c=[];q(c,18);t(c,a);t(c,b[I]);return c}function R(a,b,c,d){var l=[];q(l,39);
t(l,a);t(l,b[I]);m(l,String(c));q(l,d?1:0);return l}function U(a){var b=a[I];if(!b||0>b||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||ca(a.form))return null;var c=p.getFormNumber(a.form);if(0>c)return null;var d="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 d)return null;for(var l=-1,e=a.form.elements,
r=e.length,f=0,n=0;f<r;f++)if(e[f].name==a.name){if(e[f]==a){l=n;break}n++}if(0>l)return null;e=[];q(e,7);t(e,b);t(e,c);t(e,d);Wa(e,a.name||"");t(e,l);return e}function V(a,b){var c=p.getFormNumber(b);if(0>c)return null;for(var d=b.elements,l=d.length,e=[],r=0;r<l;r++)if(!p.isEmptyField(d[r])){var n=d[r][I];n&&0<n&&f.mergeArrays(e,[n])}d=[];q(d,11);t(d,a);t(d,c);t(d,e.length);for(c=0;c<e.length;c++)t(d,e[c]);return d}function y(){var a=[];q(a,13);return a}function N(a,b,c){a=a.apply(g,b);va.append(a,
c)}function O(a){if(a[I])a:{var b=r(),c=a[I];if(0<c){var d=[];a=p.getElementRegion(a);var l=aa[c],e=a[0]+"x"+a[1],f=a[2]+"x"+a[3];e!=l.pos&&(l.pos=e,q(d,9),t(d,b),t(d,c),t(d,a[0]),t(d,a[1]));f!=l.size&&(l.size=f,q(d,10),t(d,b),t(d,c),t(d,a[2]),t(d,a[3]));if(d.length){a=d;break a}}a=null}else{(c=p.getElementParent(a))&&O(c);a[I]=Za;aa[Za]={};Za++;if(a.nodeName)if(c=+a[I],!isFinite(c)||0>=c)b=null;else{d=64;l=0;var n=p.getElementParent(a);e=n&&n[I]?n[I]:0;0>e&&(e=0);f=a.nodeName.toUpperCase();var g=
Bb[f];g||(d|=2);var Ua=p.getElementNeighborPosition(a);Ua||(d|=4);var A=p.getElementRegion(a);(n=n?p.getElementRegion(n):null)&&A[0]==n[0]&&A[1]==n[1]&&A[2]==n[2]&&A[3]==n[3]&&(d|=8);aa[c].pos=A[0]+"x"+A[1];aa[c].size=A[2]+"x"+A[3];a.id&&"string"==typeof a.id&&(d|=32);(n=p.calcTextChecksum(a))&&(d|=16);var K=p.calcAttribChecksum(a);K&&(l|=2);b:{var h=p.getElementChildren(p.getElementParent(a),a.tagName);for(var k=0;k<h.length;k++)if((!h[k].id||"string"!=typeof h[k].id)&&p.calcAttribChecksum(h[k])==
K&&p.calcTextChecksum(h[k])==n){h=!0;break b}h=!1}h&&(d|=1,b=p.calcChildrenChecksum(a));h=[];q(h,1);t(h,c);q(h,d);t(h,e);g?q(h,g):m(h,f);Ua&&t(h,Ua);d&8||(t(h,A[0]),t(h,A[1]),t(h,A[2]),t(h,A[3]));d&32&&m(h,a.id);n&&H(h,n);d&1&&H(h,b);q(h,l);K&&H(h,K);b=h}else a[I]=-1,b=null;va.append(b,void 0);a=U(a)}va.append(a,void 0)}function T(a,b){var c=a&&p.classNameExists(a,"(ym-disable-keys|-metrika-nokeys)");b&&a&&(c=c||!!p.getElementsByClassName("(ym-disable-keys|-metrika-nokeys)",a).length);return c}function ca(a){return a&&
p.classNameExists(a,"(ym-disable-submit|-metrika-noform)")}function X(a){var b=J.getTarget(a);if(b&&"SCROLLBAR"!=b.nodeName){if(/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b.tagName))if(b[I])O(b);else{var c=b.form;if(c){c=c.elements;for(var d=c.length,l=0;l<d;l++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(c[l].tagName)&&!c[l][I]&&O(c[l])}else O(b)}else O(b);N(M,[r(),a.type,b,J.getPos(a),a.which,a.button])}}function oa(a){X(a);ja()}function pa(a){var b=l(),c=b-hb;if(!(10>c)){var d=J.getPos(a),e=la[0]-d[0],r=
la[1]-d[1];e=e*e+r*r;0>=e||16>e&&100>c||20>c&&256>e||(hb=b,la=d,X(a))}}function W(){var a=p.getDocumentScroll(),b=l();10>b-ib||10>Math.abs(a[0]-$a[0])&&10>Math.abs(a[1]-$a[1])||(ib=b,$a=a,N(u,[r(),a]))}function qa(a){if(a=J.getTarget(a)){var b=Math.random(),c=[a.scrollLeft,a.scrollTop];if(a.localId){if(b=ab[a.localId],!b||10>Math.abs(c[0]-b[0])&&10>Math.abs(c[1]-b[1]))return}else{for(;ab[b];)b=Math.random();a.localId=b}ab[a.localId]=c;a!==h&&(O(a),N(v,[r(),c,a]))}}function ra(){N(zb,[r(),p.getViewportSize(),
p.getDocumentSize()])}function Z(){N(y,[],!0)}function Q(a){return(a.shiftKey?2:0)|(a.ctrlKey?4:0)|(a.altKey?1:0)|(a.metaKey?8:0)|(a.ctrlKey||a.altKey?16:0)}function ta(a){return"INPUT"==a.tagName?"password"==a.type||a.name&&La.test(a.name)||a.id&&La.test(a.id):!1}function wa(a){if(!a)return{ignore:!0,forceRecord:!1,isPrivate:!1,privateFlag:!1,recordData:!0};var b="password"===a.type||La.test(a.name)||La.test(a.id),c=f.reduce(function(b,c){return b||Da.generalRegex.test(a[c])},!1,["className","id",
"name"])||Da.placeholderRegex.test(a.placeholder),d=Da.forceRecordRegex.test(a.className);return{forceRecord:d,ignore:b,isPrivate:c,privateFlag:!d&&(c||b),recordData:d||!(c&&e.get("isEU")||b)}}function sa(a,b,c){a=J.getTarget(a);var d=wa(a);d.ignore||!d.forceRecord&&(d.isPrivate&&e.get("isEU")||T(a))||(O(a),N(ka,[r(),b,c,a,d.privateFlag]))}function Y(a){var b=a.keyCode,c=Q(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}[b]||112<=b&&123>=b||96<=b&&105>=b||c&16)19==b&&4==(c&-17)&&(b=144),sa(a,b,c|16),da=!1,f.setTimeout(function(){da=!0},1,"wvl.keyDown"),!(67==b&&c&4)||c&1||c&2||ba()}function fa(a){da&&!ma&&0!==a.which&&(sa(a,a.charCode||a.keyCode,Q(a)),ma=!0,f.setTimeout(function(){ma=!1},1,"vwl.keyPress"))}function ja(){if(g.getSelection){try{var a=g.getSelection()}catch(yb){return}var b=a.toString();var c=a.anchorNode}else h.selection&&h.selection.createRange&&(a=h.selection.createRange(),
b=a.text,c=a.parentElement());if("string"==typeof b){try{for(;c&&1!=c.nodeType;)c=c.parentNode}catch(yb){return}if(c){a=wa(c).privateFlag||T(c,!0);c=c.getElementsByTagName("*");for(var d=0;d<c.length&&!a;)a=wa(c[d]).privateFlag||T(c[d],!0),d++;b!=na&&(na=b,b=a?f.map(function(){return Da.obfuscatedSymbol},b.split("")).join(""):b,N(z,[r(),b]))}}}function ba(){ea||(ea=!0,na&&N(Ab,[r()]),f.setTimeout(function(){ea=!1},1,"wvl.copy"))}function xa(){Ea||(Ea=!0,N(C,[r()]))}function A(){Ea&&(Ea=!1,N(E,[r()]))}
function K(a){(!Ea||a&&!a.fromElement)&&xa()}function L(a){a&&!a.toElement&&A()}function F(a){if((a=J.getTarget(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)){if(a[I])O(a);else{var b=a.form;if(b){b=b.elements;for(var c=b.length,d=0;d<c;d++)/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(b[d].tagName)&&!b[d][I]&&O(b[d])}else O(a)}N(G,[r(),a])}}function P(a){(a=J.getTarget(a))&&/^INPUT|SELECT|TEXTAREA|BUTTON$/.test(a.tagName)&&(O(a),N(D,[r(),a]))}function ha(a){if((a=J.getTarget(a))&&!ta(a)&&!T(a)&&/^INPUT|SELECT|TEXTAREA$/.test(a.tagName)){var b=
wa(a),c=/^(checkbox|radio)$/.test(a.type)?a.checked:a.value;c=b.recordData?c:f.map(function(){return Da.obfuscatedSymbol},c.split("")).join("");O(a);N(R,[r(),a,c,b.privateFlag])}}function ia(a){if((a=J.getTarget(a))&&!ca(a)&&"FORM"==a.nodeName){for(var b=a.elements,c=0;c<b.length;c++)p.isEmptyField(b[c])||O(b[c]);N(V,[r(),a],!0)}}function bb(a){W();if(a.touches&&a.touches.length){var b=J.getTarget(a);if(b&&b!=h){O(b);for(var c=0;c<a.touches.length;c++)N(M,[r(),"touch",b,[a.touches[c].pageX,a.touches[c].pageY],
0,0])}}}function Ma(a){var b=J.getTarget(a);if(b){var c;"wheel"==a.type?c=0<a.deltaY?1:0>a.deltaY?2:0:"mousewheel"==a.type&&(c=0<a.wheelDelta?2:0>a.wheelDelta?1:0);c&&(O(b),N(Xa,[r(),b,J.getPos(a),c]))}}function jb(a){(a=J.getTarget(a))&&"BODY"==a.tagName&&va.append([],!0)}var va=new Na({protocol:a,globalConfig:e,counterId:b,counterType:c,meta:{url:B().href,hitId:d,timezone:Fa,timestamp:Ga}}),kb=p.getBody(),Bb={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},Da=function(){var a="first(-|\\.|_|\\s){0,2}name last(-|\\.|_|\\s){0,2}name zip postal phone address passport (bank|credit)(-|\\.|_|\\s){0,2}card card(-|\\.|_|\\s){0,2}number card(-|\\.|_|\\s){0,2}holder cvv card(-|\\.|_|\\s){0,2}exp card(-|\\.|_|\\s){0,2}name card.*month card.*year card.*month card.*year password email birth(-|\\.|_|\\s){0,2}(day|date) second(-|\\.|_|\\s){0,2}name third(-|\\.|_|\\s){0,2}name patronymic middle(-|\\.|_|\\s){0,2}name birth(-|\\.|_|\\s){0,2}place house street city flat state".split(" ");
return{generalRegex:new RegExp("("+a.join("|")+")","i"),placeholderRegex:new RegExp("("+a.concat("\u0438\u043c\u044f;\u0444\u0430\u043c\u0438\u043b\u0438\u044f;\u043e\u0442\u0447\u0435\u0441\u0442\u0432\u043e;\u0438\u043d\u0434\u0435\u043a\u0441;\u0442\u0435\u043b\u0435\u0444\u043e\u043d;\u0430\u0434\u0440\u0435\u0441;\u043f\u0430\u0441\u043f\u043e\u0440\u0442;\u041d\u043e\u043c\u0435\u0440(-|\\.|_|\\s){0,2}\u043a\u0430\u0440\u0442\u044b;\u0434\u0430\u0442\u0430(-|\\.|_|\\s){0,2} \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f;\u0434\u043e\u043c;\u0443\u043b\u0438\u0446\u0430;\u043a\u0432\u0430\u0440\u0442\u0438\u0440\u0430;\u0433\u043e\u0440\u043e\u0434;\u043e\u0431\u043b\u0430\u0441\u0442\u044c".split(";")).join("|")+
")","i"),forceRecordRegex:/ym-record-keys/i,obfuscatedSymbol:String.fromCharCode(8226),obfuscatedKeyCode:88}}(),gb=0,Va=0;n(0);var Za=1,hb=0,la=[0,0],ib=0,$a=[0,0],ab={},La=/^(password|passwd|pswd)$/,da=!0,ma=!1,na="",ea=!1,Ea=!0,ya=l(),I="metrikaId_"+Math.random(),aa={},S=":submit"+Math.random();if(!f.isMetrikaPlayer()){k.on(h,"mousemove",pa);k.on(h,"click,dblclick,mousedown",X);k.on(h,"mouseup",oa);k.on(g,"scroll",W);if("onmousewheel"in h)k.on(h,"mousewheel",Ma);else k.on(h,"wheel",Ma);k.on(g,"beforeunload",
Z);if(!Cb)k.on(g,"unload",Z);k.on(g,"resize",ra);k.on(h,"keydown",Y);k.on(h,"keypress",fa);k.on(h,"copy",ba);k.on(h,"touchmove,touchstart",bb);if(kb)k.on(h,"mouseleave",jb);h.attachEvent&&!g.opera?(k.on(h,"focusin",K),k.on(h,"focusout",L)):(k.on(g,"focus",xa),k.on(g,"blur",A),k.on(h,"blur",A));h.addEventListener?(k.on(h,"scroll",qa),k.on(h,"focus",F),k.on(h,"blur",P),k.on(h,"change",ha),k.on(h,"submit",ia)):h.attachEvent&&(k.on(h,"focusin",F),k.on(h,"focusout",P),function(){for(var a=h.getElementsByTagName("form"),
b=0;b<a.length;b++){for(var c=a[b].getElementsByTagName("*"),d=0;d<c.length;d++)if(/^INPUT|SELECT|TEXTAREA$/.test(c[d].tagName))k.on(c[d],"change",ha);k.on(a[b],"submit",ia)}}());(function(){var a=h.getElementsByTagName("form");if(a.length)for(var b=0;b<a.length;b++){var c=a[b].submit;if("function"===typeof c||"object"===typeof c&&/^\s*function submit\(\)/.test(String(c)))a[b][S]=c,a[b].submit=function(){ia({target:this});return this[S]()}}})();"0:0"!==p.getDocumentScroll().join(":")&&W();ra()}return{start:function(){va.activate()},
stop:function(){va.clear();k.un(h,"mousemove",pa);k.un(h,"click",X);k.un(h,"dblclick",X);k.un(h,"mousedown",X);k.un(h,"mouseup",oa);k.un(h,"mousewheel",Ma);k.un(h,"wheel",Ma);k.un(g,"scroll",W);k.un(g,"beforeunload",Z);k.un(g,"unload",Z);k.un(g,"resize",ra);k.un(h,"keydown",Y);k.un(h,"keypress",fa);k.un(h,"copy",ba);k.un(h,"touchmove",bb);k.un(h,"touchstart",bb);kb&&k.un(h,"mouseleave",jb);k.un(h,"focusin",K);k.un(h,"focusout",L);k.un(g,"focus",xa);k.un(g,"blur",A);k.un(h,"blur",A);h.removeEventListener?
(k.un(h,"scroll",qa),k.un(h,"focus",F),k.un(h,"blur",P),k.un(h,"change",ha),k.un(h,"submit",ia)):h.detachEvent&&(k.un(h,"focusin",F),k.un(h,"focusout",P),function(){for(var a=h.getElementsByTagName("form"),b=0;b<a.length;b++){for(var c=a[b].getElementsByTagName("*"),d=0;d<c.length;d++)/^INPUT|SELECT|TEXTAREA$/.test(c[d].tagName)&&k.un(c[d],"change",ha);k.un(a[b],"submit",ia)}}());(function(){for(var a=h.getElementsByTagName("form"),b=0;b<a.length;b++)a[b][S]&&(a[b].submit=a[b][S])})()},uploadPages:function(a,
b){function c(){k.un(h,"DOMContentLoaded",c);k.un(g,"load",c);for(var l=a.split(/\n/),e=B().href,r=/regexp:/,f=0;f<l.length;f++){var n=l[f];if(n)if(r.test(n)){n=Ha(n.replace(r,""));try{var t=new RegExp(n)}catch(Yb){}if(t&&t.test(e)){d.uploadPage(b);break}}else if(-1!==e.indexOf(n)){d.uploadPage(b);break}}}var d=this;"complete"===h.readyState?c():(k.on(h,"DOMContentLoaded",c),k.on(g,"load",c))},uploadPage:w(function(l){if("function"===typeof g.toStaticHTML&&-1<g.toStaticHTML.toString().indexOf("NoScript"))return!1;
var e=h.documentElement;if(e&&19E4<(""+e.innerHTML).length)return!1;var r=g.XMLHttpRequest?new g.XMLHttpRequest:new ActiveXObject("Msxml2.XMLHTTP"),f=p.getDocumentCharset(),n="text/html"+(f?";charset\x3d"+f:""),t=new Db({protocol:a,counterId:b,counterType:c});if("html"===l)return l=new RegExp("\x3cscript [^\x3e]*?//"+x.host.replace(/\./g,"\\\\.")+"/watch/.*?\x3c/script\x3e","gi"),t.sendContent(p.getDocumentHTML().replace(l,""),n,d,Fa,Ga),!0;r&&(r.open("get",B().href,!0),r.onreadystatechange=w(function(){if(4===
r.readyState){var a=r.getResponseHeader("content-type")||"";f&&-1===a.indexOf("charset\x3d")&&(a=n);t.sendContent(r.responseText,a,d,Fa,Ga)}},"updatePage.1"),r.overrideMimeType&&f&&r.overrideMimeType(n),r.send(null));return!0},"uploadPage")}}function B(){for(var a={},b="hash host hostname href pathname port protocol search".split(" "),c=b.length,d=c,e,f;d--;)a[b[d]]="";try{for(e=g.location,d=c;d--;)f=b[d],a[f]=""+e[f]}catch(l){E&&(a=E)}return a}function Ha(a){return a?(""+a).replace(/^\s+/,"").replace(/\s+$/,
""):""}function Y(){return 0==B().hostname.search(/^(.*.)?((yandex(-team)?).(com?.)?[a-z]+|(auto|kinopoisk|beru).ru|ya.(ru|cc)|yadi.sk|yastatic.net|.*.yandex)$/)}function ua(a){return-1!==(""+g.navigator.userAgent).toLowerCase().search(a)}function lb(a){return Ha(a&&a.innerHTML&&a.innerHTML.replace(/<\/?[^>]+>/gi,""))}function mb(a,b){var c;if(!a||!b)return!1;var d=[];for(c=0;c<b.length;c++)d.push(b[c].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(new RegExp("\\.("+d.join("|")+")$","i")).test(a)}function Eb(a){a=a.target||a.srcElement;var b;if(!a)return!1;3==a.nodeType&&(a=a.parentNode);for(b=a&&a.nodeName&&a.nodeName.toString().toLowerCase();a&&a.parentNode&&a.parentNode.nodeName&&("a"!=b&&"area"!=b||!a.href);)b=(a=a.parentNode)&&a.nodeName&&a.nodeName.toString().toLowerCase();
return a.href?a:!1}function Fb(a,b){return(a?a.replace(/^www\./,""):"").toLowerCase()==(b?b.replace(/^www\./,""):"").toLowerCase()}function Gb(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 nb(){var a=g.performance||g.webkitPerformance,b=a&&a.timing,c,d=[];if(b&&(c=b.navigationStart))for(d=[b.domainLookupEnd-b.domainLookupStart,b.connectEnd-b.connectStart,b.responseStart-b.requestStart,b.responseEnd-
b.responseStart,b.fetchStart-c,b.redirectEnd-b.redirectStart,b.redirectCount||a.navigation&&a.navigation.redirectCount],d.push(b.domInteractive&&b.domLoading?b.domInteractive-b.domLoading:null),d.push(b.domContentLoadedEventStart&&b.domContentLoadedEventEnd?b.domContentLoadedEventEnd-b.domContentLoadedEventStart:null),d.push(b.domComplete?b.domComplete-c:null),d.push(b.loadEventStart?b.loadEventStart-c:null),d.push(b.loadEventStart&&b.loadEventEnd?b.loadEventEnd-b.loadEventStart:null),d.push(b.domContentLoadedEventStart?
b.domContentLoadedEventStart-c:null),a=0;a<d.length;a++)b=d[a],null!==b&&(0>b||36E5<b)&&(d[a]=null);return d}function Hb(a){var b=[],c=a._lastPerformanceTiming,d=nb(),e;if(c){var f=0;for(e=c.length;f<e;f++)null===d[f]?b.push(d[f]):b.push(c[f]===d[f]?"":d[f])}else b=d;a._lastPerformanceTiming=d;return b.join(",")}function Ib(a){return"first-contentful-paint"===a.name}function Jb(){var a=g.performance&&g.performance.getEntriesByType,b=a?f.filter(Ib,g.performance.getEntriesByType("paint")):[];if(b.length)return b=
b[0],Math.round(b.startTime);if(a)return 0;if("object"==typeof g.chrome&&g.chrome.loadTimes){if(b=g.chrome.loadTimes(),b.requestTime&&b.firstPaintTime&&g.performance&&g.performance.timing)return Math.round(1E3*b.firstPaintTime-g.performance.timing.navigationStart)}else if(g.performance&&g.performance.timing&&(b=g.performance.timing,b.navigationStart&&b.msFirstPaint))return b.msFirstPaint-b.navigationStart;return null}var ya=!1;try{var za=function(a){function b(d){if(c[d])return c[d].f;var e=c[d]=
{H:d,L:!1,f:{}};a[d].call(e.f,e,e.f,b);e.L=!0;return e.f}var c={};b.Z=a;b.W=c;b.H=function(a){return a};b.B=function(a,c){b.C(a)||Object.defineProperty(a,"a",{configurable:!1,enumerable:!0,get:c})};b.X=function(a){var c=a&&a.a?function(){return a["default"]}:function(){return a};b.B(c,c);return c};b.C=function(a){return Object.prototype.hasOwnProperty.call(a,"a")};b.Y="";return b(b.$=5)}([function(a,b){b.a=!0;a=function(){function a(){this.m=g.ApplePaySession}a.prototype.g=function(){var a=!1;try{a=
g.self!==g.top}catch(n){}if(!this.m||"https:"!==E.protocol||a)return"";a="";for(var b=1;10>=b;b++)a+=this.m.supportsVersion(b)?b:"0";return a+this.m.canMakePayments()};return a}();b.u=a},function(a,b){var c=this&&this.V||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,
new d)}}();b.a=!0;a=function(){function a(a){this.D=a;this.h=!0;this.canvas=h.createElement("canvas");this.I()||(this.h=!1)}a.prototype.I=function(){this.c=this.canvas.getContext(this.D);return!(!this.canvas.getContext||!this.c)};a.prototype.g=function(){return this.h?this.o():this.id};return a}();var d=function(a){function b(){var b=a.call(this,"webgl")||this;b.h&&!b.J()&&(b.h=!1);return b}c(b,a);b.prototype.J=function(){var a=this.canvas.getContext&&(this.canvas.getContext("webgl")||this.canvas.getContext("experimental-webgl"));
return!!g.WebGLRenderingContext&&!!a};b.prototype.j=function(a){var b=this.c;b.clearColor(0,0,0,1);b.enable(b.DEPTH_TEST);b.depthFunc(b.LEQUAL);b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT);return"["+a[0]+", "+a[1]+"]"};b.prototype.M=function(a){var b,c=a.getExtension("EXT_texture_filter_anisotropic")||a.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||a.getExtension("MOZ_EXT_texture_filter_anisotropic");return c?(b=a.getParameter(c.MAX_TEXTURE_MAX_ANISOTROPY_EXT),0===b&&(b=2),b):null};b.prototype.o=
function(){var a=this.c,b=[],c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c);a.bufferData(a.ARRAY_BUFFER,new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]),a.STATIC_DRAW);c.K=3;c.O=3;var d=a.createProgram(),e=a.createShader(a.VERTEX_SHADER);a.shaderSource(e,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate\x3dattrVertex+uniformOffset;gl_Position\x3dvec4(attrVertex,0,1);}");a.compileShader(e);var f=a.createShader(a.FRAGMENT_SHADER);
a.shaderSource(f,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor\x3dvec4(varyinTexCoordinate,0,1);}");a.compileShader(f);a.attachShader(d,e);a.attachShader(d,f);a.linkProgram(d);a.useProgram(d);d.R=a.getAttribLocation(d,"attrVertex");d.P=a.getUniformLocation(d,"uniformOffset");a.enableVertexAttribArray(d.aa);a.vertexAttribPointer(d.R,c.K,a.FLOAT,!1,0,0);a.uniform2f(d.P,1,1);a.drawArrays(a.TRIANGLE_STRIP,0,c.O);null!=a.canvas&&b.push(a.canvas.toDataURL());b.push("extensions:"+
a.getSupportedExtensions().join(";"));b.push("webgl aliased line width range:"+this.j(a.getParameter(a.ALIASED_LINE_WIDTH_RANGE)));b.push("webgl aliased point size range:"+this.j(a.getParameter(a.ALIASED_POINT_SIZE_RANGE)));b.push("webgl alpha bits:"+a.getParameter(a.ALPHA_BITS));b.push("webgl antialiasing:"+(a.getContextAttributes().antialias?"yes":"no"));b.push("webgl blue bits:"+a.getParameter(a.BLUE_BITS));b.push("webgl depth bits:"+a.getParameter(a.DEPTH_BITS));b.push("webgl green bits:"+a.getParameter(a.GREEN_BITS));
b.push("webgl max anisotropy:"+this.M(a));b.push("webgl max combined texture image units:"+a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS));b.push("webgl max cube map texture size:"+a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE));b.push("webgl max fragment uniform vectors:"+a.getParameter(a.MAX_FRAGMENT_UNIFORM_VECTORS));b.push("webgl max render buffer size:"+a.getParameter(a.MAX_RENDERBUFFER_SIZE));b.push("webgl max texture image units:"+a.getParameter(a.MAX_TEXTURE_IMAGE_UNITS));b.push("webgl max texture size:"+
a.getParameter(a.MAX_TEXTURE_SIZE));b.push("webgl max varying vectors:"+a.getParameter(a.MAX_VARYING_VECTORS));b.push("webgl max vertex attribs:"+a.getParameter(a.MAX_VERTEX_ATTRIBS));b.push("webgl max vertex texture image units:"+a.getParameter(a.MAX_VERTEX_TEXTURE_IMAGE_UNITS));b.push("webgl max vertex uniform vectors:"+a.getParameter(a.MAX_VERTEX_UNIFORM_VECTORS));b.push("webgl max viewport dims:"+this.j(a.getParameter(a.MAX_VIEWPORT_DIMS)));b.push("webgl red bits:"+a.getParameter(a.RED_BITS));
b.push("webgl renderer:"+a.getParameter(a.RENDERER));b.push("webgl shading language version:"+a.getParameter(a.SHADING_LANGUAGE_VERSION));b.push("webgl stencil bits:"+a.getParameter(a.STENCIL_BITS));b.push("webgl vendor:"+a.getParameter(a.VENDOR));b.push("webgl version:"+a.getParameter(a.VERSION));try{var n=a.getExtension("WEBGL_debug_renderer_info");n&&(b.push("webgl unmasked vendor:"+a.getParameter(n.UNMASKED_VENDOR_WEBGL)),b.push("webgl unmasked renderer:"+a.getParameter(n.UNMASKED_RENDERER_WEBGL)))}catch(M){}if(!a.getShaderPrecisionFormat)return b.join("~");
b.push("webgl vertex shader high float precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_FLOAT).precision);b.push("webgl vertex shader high float precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_FLOAT).rangeMin);b.push("webgl vertex shader high float precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_FLOAT).rangeMax);b.push("webgl vertex shader medium float precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_FLOAT).precision);b.push("webgl vertex shader medium float precision rangeMin:"+
a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_FLOAT).rangeMin);b.push("webgl vertex shader medium float precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_FLOAT).rangeMax);b.push("webgl vertex shader low float precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_FLOAT).precision);b.push("webgl vertex shader low float precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_FLOAT).rangeMin);b.push("webgl vertex shader low float precision rangeMax:"+
a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_FLOAT).rangeMax);b.push("webgl fragment shader high float precision:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT).precision);b.push("webgl fragment shader high float precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT).rangeMin);b.push("webgl fragment shader high float precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT).rangeMax);b.push("webgl fragment shader medium float precision:"+
a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_FLOAT).precision);b.push("webgl fragment shader medium float precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_FLOAT).rangeMin);b.push("webgl fragment shader medium float precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_FLOAT).rangeMax);b.push("webgl fragment shader low float precision:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_FLOAT).precision);b.push("webgl fragment shader low float precision rangeMin:"+
a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_FLOAT).rangeMin);b.push("webgl fragment shader low float precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_FLOAT).rangeMax);b.push("webgl vertex shader high int precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_INT).precision);b.push("webgl vertex shader high int precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.HIGH_INT).rangeMin);b.push("webgl vertex shader high int precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,
a.HIGH_INT).rangeMax);b.push("webgl vertex shader medium int precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_INT).precision);b.push("webgl vertex shader medium int precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_INT).rangeMin);b.push("webgl vertex shader medium int precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.MEDIUM_INT).rangeMax);b.push("webgl vertex shader low int precision:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_INT).precision);
b.push("webgl vertex shader low int precision rangeMin:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_INT).rangeMin);b.push("webgl vertex shader low int precision rangeMax:"+a.getShaderPrecisionFormat(a.VERTEX_SHADER,a.LOW_INT).rangeMax);b.push("webgl fragment shader high int precision:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_INT).precision);b.push("webgl fragment shader high int precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_INT).rangeMin);b.push("webgl fragment shader high int precision rangeMax:"+
a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_INT).rangeMax);b.push("webgl fragment shader medium int precision:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_INT).precision);b.push("webgl fragment shader medium int precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_INT).rangeMin);b.push("webgl fragment shader medium int precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.MEDIUM_INT).rangeMax);b.push("webgl fragment shader low int precision:"+
a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_INT).precision);b.push("webgl fragment shader low int precision rangeMin:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_INT).rangeMin);b.push("webgl fragment shader low int precision rangeMax:"+a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.LOW_INT).rangeMax);return b.join("~")};return b}(a);b.A=d;a=function(a){function b(){return a.call(this,"2d")||this}c(b,a);b.prototype.o=function(){var a=this.canvas,b=this.c,c=[];a.width=2E3;a.height=200;
a.style.display="inline";b.rect(0,0,10,10);b.rect(2,2,6,6);c.push("canvas winding:"+(!1===b.isPointInPath(5,5,"evenodd")?"yes":"no"));b.textBaseline="alphabetic";b.fillStyle="#f60";b.fillRect(125,1,62,20);b.fillStyle="#069";b.font="11pt Arial";b.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",2,15);b.fillStyle="rgba(102, 204, 0, 0.2)";b.font="18pt Arial";b.fillText("Cwm fjordbank glyphs vext quiz, \ud83d\ude03",4,45);b.globalCompositeOperation="multiply";b.fillStyle="rgb(255,0,255)";b.beginPath();
b.arc(50,50,50,0,2*Math.PI,!0);b.closePath();b.fill();b.fillStyle="rgb(0,255,255)";b.beginPath();b.arc(100,50,50,0,2*Math.PI,!0);b.closePath();b.fill();b.fillStyle="rgb(255,255,0)";b.beginPath();b.arc(75,100,50,0,2*Math.PI,!0);b.closePath();b.fill();b.fillStyle="rgb(255,0,255)";b.arc(75,75,75,0,2*Math.PI,!0);b.arc(75,75,25,0,2*Math.PI,!0);b.fill("evenodd");c.push("canvas fp:"+a.toDataURL());return c.join("~")};return b}(a);b.S=a},function(a,b){b.a=!0;a=function(){function a(){this.b=g.navigator}a.prototype.g=
function(){return this.b.i?this.b.i:this.b.N?this.b.N:this.b.i?this.b.i:"unknown"};return a}();b.v=a},function(a,b){function c(a,b){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c=[0,0,0,0];c[3]+=a[3]*b[3];c[2]+=c[3]>>>16;c[3]&=65535;c[2]+=a[2]*b[3];c[1]+=c[2]>>>16;c[2]&=65535;c[2]+=a[3]*b[2];c[1]+=c[2]>>>16;c[2]&=65535;c[1]+=a[1]*b[3];c[0]+=c[1]>>>16;c[1]&=65535;c[1]+=a[2]*b[2];c[0]+=c[1]>>>16;c[1]&=65535;c[1]+=a[3]*b[1];c[0]+=c[1]>>>16;c[1]&=65535;
c[0]+=a[0]*b[3]+a[1]*b[2]+a[2]*b[1]+a[3]*b[0];c[0]&=65535;return[c[0]<<16|c[1],c[2]<<16|c[3]]}function d(a,b){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];b=[b[0]>>>16,b[0]&65535,b[1]>>>16,b[1]&65535];var c=[0,0,0,0];c[3]+=a[3]+b[3];c[2]+=c[3]>>>16;c[3]&=65535;c[2]+=a[2]+b[2];c[1]+=c[2]>>>16;c[2]&=65535;c[1]+=a[1]+b[1];c[0]+=c[1]>>>16;c[1]&=65535;c[0]+=a[0]+b[0];c[0]&=65535;return[c[0]<<16|c[1],c[2]<<16|c[3]]}function e(a,b){b%=64;if(32===b)return[a[1],a[0]];if(32>b)return[a[0]<<b|a[1]>>>32-b,a[1]<<
b|a[0]>>>32-b];b-=32;return[a[1]<<b|a[0]>>>32-b,a[0]<<b|a[1]>>>32-b]}function f(a,b){b%=64;return 0===b?a:32>b?[a[0]<<b|a[1]>>>32-b,a[1]<<b]:[a[1]<<b-32,0]}function l(a,b){return[a[0]^b[0],a[1]^b[1]]}function r(a){a=l(a,[0,a[0]>>>1]);a=c(a,[4283543511,3981806797]);a=l(a,[0,a[0]>>>1]);a=c(a,[3301882366,444984403]);return l(a,[0,a[0]>>>1])}b.a=!0;b.hash=function(a,b){a=a||"";b=b||0;var n=a.length%16,g=a.length-n,h=[0,b];b=[0,b];for(var k,q,H=[2277735313,289559509],p=[1291169091,658871167],m=0;m<g;m+=
16)k=[a.charCodeAt(m+4)&255|(a.charCodeAt(m+5)&255)<<8|(a.charCodeAt(m+6)&255)<<16|(a.charCodeAt(m+7)&255)<<24,a.charCodeAt(m)&255|(a.charCodeAt(m+1)&255)<<8|(a.charCodeAt(m+2)&255)<<16|(a.charCodeAt(m+3)&255)<<24],q=[a.charCodeAt(m+12)&255|(a.charCodeAt(m+13)&255)<<8|(a.charCodeAt(m+14)&255)<<16|(a.charCodeAt(m+15)&255)<<24,a.charCodeAt(m+8)&255|(a.charCodeAt(m+9)&255)<<8|(a.charCodeAt(m+10)&255)<<16|(a.charCodeAt(m+11)&255)<<24],k=c(k,H),k=e(k,31),k=c(k,p),h=l(h,k),h=e(h,27),h=d(h,b),h=d(c(h,[0,
5]),[0,1390208809]),q=c(q,p),q=e(q,33),q=c(q,H),b=l(b,q),b=e(b,31),b=d(b,h),b=d(c(b,[0,5]),[0,944331445]);k=[0,0];q=[0,0];switch(n){case 15:q=l(q,f([0,a.charCodeAt(m+14)],48));case 14:q=l(q,f([0,a.charCodeAt(m+13)],40));case 13:q=l(q,f([0,a.charCodeAt(m+12)],32));case 12:q=l(q,f([0,a.charCodeAt(m+11)],24));case 11:q=l(q,f([0,a.charCodeAt(m+10)],16));case 10:q=l(q,f([0,a.charCodeAt(m+9)],8));case 9:q=l(q,[0,a.charCodeAt(m+8)]),q=c(q,p),q=e(q,33),q=c(q,H),b=l(b,q);case 8:k=l(k,f([0,a.charCodeAt(m+7)],
56));case 7:k=l(k,f([0,a.charCodeAt(m+6)],48));case 6:k=l(k,f([0,a.charCodeAt(m+5)],40));case 5:k=l(k,f([0,a.charCodeAt(m+4)],32));case 4:k=l(k,f([0,a.charCodeAt(m+3)],24));case 3:k=l(k,f([0,a.charCodeAt(m+2)],16));case 2:k=l(k,f([0,a.charCodeAt(m+1)],8));case 1:k=l(k,[0,a.charCodeAt(m)]),k=c(k,H),k=e(k,31),k=c(k,p),h=l(h,k)}h=l(h,[0,a.length]);b=l(b,[0,a.length]);h=d(h,b);b=d(b,h);h=r(h);b=r(b);h=d(h,b);b=d(b,h);return("00000000"+(h[0]>>>0).toString(16)).slice(-8)+("00000000"+(h[1]>>>0).toString(16)).slice(-8)+
("00000000"+(b[0]>>>0).toString(16)).slice(-8)+("00000000"+(b[1]>>>0).toString(16)).slice(-8)}},function(a,b,c){b.a=!0;var d=c(6);a=function(){function a(){}a.prototype.g=function(){return d.s(navigator.plugins).sort(function(a,b){return a.name>b.name?1:2}).map(function(a){return[a.name,a.description,d.s(a).map(function(a){return[a.description,a.suffixes,a.type].join()}).join()].join()}).join()};return a}();b.w=a},function(a,b,c){var d=this&&this.U||Object.assign||function(a){for(var b,c=1,d=arguments.length;c<
d;c++){b=arguments[c];for(var e in b)Object.prototype.hasOwnProperty.call(b,e)&&(a[e]=b[e])}return a};b.a=!0;var e=c(1),f=c(4),l=c(0),r=c(2),g=c(3);a=function(){function a(a){var b=this;this.l=a;this.G={webGL:e.A,dnt:r.v,plugins:f.w,applePay:l.u};this.l=d({webGL:!1,dnt:!1,plugins:!1,applePay:!1},a);this.F=Object.keys(this.l).filter(function(a){return b.l[a]}).map(function(a){return new b.G[a]})}a.prototype.toString=function(a){void 0===a&&(a=!0);var b=this.F.map(function(a){var b="";try{b=a.g()}catch(Xa){}return b});
return a?[g.hash(b.join(""),210)]:b.map(function(a){return g.hash(a,210)})};return a}();b.T=a;b["default"]=a},function(a,b){b.a=!0;b.s=function(a){return Array.prototype.slice.call(a)}}]);za=za["default"]}catch(a){ya={error:a,scope:"fip"}}var x={protocol:"https:",baseUrl:"mc.yandex.",yandexWhiteListTld:"ru ua by kz az kg lv md tj tm uz ee fr co.il com.ge com.am com.tr".split(" ")};x.host=x.baseUrl+"ru";x.cross="L21ldHJpa2EvenpsYy5odG1s";var f={mixin:function(a){var b,c;for(b=1;b<arguments.length;b++)if(arguments[b]){for(c in arguments[b])arguments[b].hasOwnProperty(c)&&
(a[c]=arguments[b][c]);arguments[b].hasOwnProperty("toString")&&(a.toString=arguments[b].toString)}return a}},D=function(a){a=a||{};f.mixin(this,a);this._initComponent()};D.prototype._initComponent=function(){};D.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;f.mixin(a.constructor.prototype,a);a.constructor.prototype.constructor=
a.constructor;a.constructor.superclass=b.prototype;a.constructor.inherit=D.inherit;return a.constructor};f.forEachKey=function(a,b,c){for(var d in a)a.hasOwnProperty(d)&&b.call(c,d,a[d],a)};f.isEqual=function(a,b){var c=!0;f.forEachKey(a,function(a,e){b.hasOwnProperty(a)&&b[a]===e||(c=!1)});if(!c)return c;f.forEachKey(b,function(b,e){a.hasOwnProperty(b)&&a[b]===e||(c=!1)});return c};f.getNativeFunction=function(a,b){var c;b=b||g;return(c=b.constructor&&b.constructor.prototype&&b.constructor.prototype[a]||
b[a])&&"apply"in c?function(){return c.apply(b,arguments)}:function(){}};f.setTimeout=function(a,b,c){return f.getNativeFunction("setTimeout")(w(a,c||"setTimeout"),b)};var k=D.inherit({_initComponent:function(){k.superclass._initComponent.apply(this,arguments);this._listeners=[]},on:function(a,b,c,d,e){e=k._getOpts(e);b=b.split(",");var f=b.length,l=this._listeners,r;for(r=0;r<f;r++){var h=b[r];var q=w(function(a){c.call(d||this,a||g.event)},"on"+h+e.name);l[l.length]=[a,h,c,d,e,q];a.addEventListener?
a.addEventListener(h,q,k._prepOpts(e)):a.attachEvent&&a.attachEvent("on"+h,q)}},un:function(a,b,c,d,e){e=k._getOpts(e);var n=this._listeners,l=n.length,r;for(r=0;r<l;r++){var g=n[r];if(g[0]==a&&g[1]==b&&g[2]==c&&g[3]==d&&f.isEqual(g[4],e)){n.splice(r,1);this._removeListener(a,b,g[5],e);break}}},unAll:function(){var a=this._listeners,b=a.length,c;for(c=0;c<b;c++){var d=a[c];this._removeListener(d[0],d[1],d[5],d[4])}a.length=0},_removeListener:function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,
c,k._prepOpts(d)):a.detachEvent&&a.detachEvent("on"+b,c)}});k.supportsPassive=function(){if(k._supportsPassive!==C)return k._supportsPassive;k._supportsPassive=!1;try{var a=Object.defineProperty({},"passive",{get:function(){k._supportsPassive=!0}});g.addEventListener("test",null,a)}catch(b){}return k._supportsPassive};k._getOpts=function(a){return f.mixin({capture:!0,passive:!0},a||{})};k._prepOpts=function(a){return k.supportsPassive()?a:!!a.capture};k.on=function(){k._instance||(k._instance=new k);
k._instance.on.apply(k._instance,arguments)};k.un=function(){k._instance&&k._instance.un.apply(k._instance,arguments)};var v={UNLOAD_MS:0,isPerfomance:g.performance&&g.performance.timing&&g.performance.timing.navigationStart&&g.performance.now,getMs:function(){return 0<this.UNLOAD_MS?this.UNLOAD_MS:this.isPerfomance?Math.round(g.performance.timing.navigationStart+g.performance.now()):+new Date}};k.on(g,"beforeunload,unload",function(){0===v.UNLOAD_MS&&(v.UNLOAD_MS=v.getMs())});f.pad=function(a){return(10>
a?"0":"")+a};v.getTimestamp=function(){var a=new Date;a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()];var b="",c;for(c=0;c<a.length;c++)b+=f.pad(a[c]);return b};v.getTimezone=function(){return-(new Date).getTimezoneOffset()};v.getMinutes=function(){return Math.floor(this.getMs()/1E3/60)};v.getSeconds=function(){return Math.round(this.getMs()/1E3)};f.isArray=function(a){return"function"==typeof Array.isArray?Array.isArray(a):"[object Array]"==Object.prototype.toString.call(a)};
f.mergeArrays=function(a){var b,c,d=arguments.length;for(b=1;b<d;b++){var e=arguments[b];if(f.isArray(e)||e&&"[object Arguments]"===e.toString())for(c=0;c<e.length;c++)a[a.length]=e[c]}return a};f.defer=function(a,b,c,d,e){return f.setTimeout(function(){a.apply(c,d||[])},b,e)};f.throttle=function(a,b,c,d){var e,n,l;return function(){n=arguments;l=this;e||function(){e=null;n&&(a.apply(c||l,n),n=null,e=f.setTimeout(arguments.callee,b,d))}()}};var Oa=D.inherit({storage:null,storageKey:"dataBuffer",maxBufferSize:255,
flushTimeout:1E4,startBufferTime:0,active:!0,meta:null,onFlush:function(){},onFlushCtx:null,bufferExpireTime:864E5,_initComponent:function(){var a;Oa.superclass._initComponent.apply(this,arguments);this._data=[];this._packetNumber=0;this._flushTID=null;this._saveToStorageThrottled=f.throttle(this._saveToStorage,300,this,"DataBuffer._saveToStorage");this.storage&&(a=this.storage.get(this.storageKey))&&a.data&&a.meta&&a.time&&a.time+this.bufferExpireTime>+v.getMs()&&this.onFlush.call(this.onFlushCtx||
this,this.dataFromStorage(a.data),a.meta,a.pnum);this.clear()},getFlushSize:function(){return this._data.length},mergeData:function(a,b){f.mergeArrays(a,b)},append:function(a,b){this.mergeData(this._data,a);this._saveToStorageThrottled();this.active&&((b||this.getFlushSize()>=this.maxBufferSize||this.getFlushSize()===this.maxChunkSize)&&this._flush(b),this._flushTID||(this._flushTID=f.defer(this._flush,this.flushTimeout,this,[b],"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(a){if(!this.getFlushSize())return this.clear(),!1;this.onFlush.call(this.onFlushCtx||this,this._data,this.meta,this._packetNumber,a);this._packetNumber++;this.clear()},dataFromStorage:function(a){return a},dataToStorage:function(a){return a},_saveToStorage:function(){this.storage&&this._data.length&&this.storage.set(this.storageKey,{data:this.dataToStorage(this._data),
meta:this.meta,pnum:this._packetNumber,time:v.getMs()})}}),u={storage:{},init:function(){var a=this;w(function(){g.Ya=g.Ya||{};g.Ya._metrika=g.Ya._metrika||{};a.storage=g.Ya._metrika},"",!0)();return this},setSafe:function(a,b){var c=this;w(function(){c.storage[a]===C&&(c.storage[a]=b)},"",!0)();return this},set:function(a,b){w(function(){g.Ya._metrika[a]=b},"",!0)();return this},get:function(a,b){return w(function(){var c=g.Ya._metrika[a];return c===C?b:c},"",!0)()}};f.async=function(a,b,c){if(g.postMessage){var d=
"__ym__promise"+Math.random()+"_"+v.getMs();var e=function(c){c.data===d&&(c.stopPropagation&&c.stopPropagation(),a.call(b),k.un(g,"message",e,null,{passive:!1}))};k.on(g,"message",e,null,{passive:!1,name:".async."+(c||"")});g.postMessage(d,"*")}else f.setTimeout(function(){a.call(b)},0)};var Aa=D.inherit({transports:[],globalConfig:u,postParams:[],isDisabled:function(){return this.globalConfig.get("oo")},send:function(a,b,c,d){var e=[a],n=this,l=c||function(){};n.isDisabled()?l.call(d):function q(a){if(a<
this.transports.length)try{var c=new this.transports[a]({postParams:this.postParams,queryStringParams:this.queryStringParams});b["browser-info"]=c.logInfo(b["browser-info"]);(function M(g){g>=e.length?c.blockNext()||q.call(this,a+1):c.request(e[g],b,function(a,b,c){a?l.call(d,b,c):f.async(function(){M.call(n,g+1)})},this)}).call(this,0)}catch(xb){Ja(xb,"send by "+(c&&c.id)),q.call(this,a+1)}}.call(this,0)}}),Z={};f.keys=function(a){var b,c=[];for(b in a)a.hasOwnProperty(b)&&c.push(b);return c};f.map=
function(a,b){var c,d=[];for(c=0;c<b.length;c++)d.push(a(b[c],c));return d};Z.stringify=function(a,b){var c=[],d=b||{},e={},n=f.keys(a).length,l,g;if(d.lastOrdering!==C)for(g=1;g<=b.lastOrdering.length;g++)e[b.lastOrdering[g-1]]=n+g;if(d.firstOrdering!==C)for(g=0;g<b.firstOrdering.length;g++)e[b.firstOrdering[g]]=g;for(l in a)if(a.hasOwnProperty(l))if(d=a[l],f.isArray(d))for(g=0;g<d.length;g++)c.push({key:l,value:encodeURIComponent(l)+"\x3d"+encodeURIComponent(String(d[g]))});else c.push({key:l,value:encodeURIComponent(l)+
"\x3d"+encodeURIComponent(String(d))});c.sort(function(a,b){var c=e[a.key],d=e[b.key];"undefined"===typeof c&&(c=n);"undefined"===typeof d&&(d=n);return c-d});return f.map(function(a){return a.value},c).join("\x26")};f.inArray=function(a,b){var c;for(c=0;c<a.length;c++)if(a[c]==b)return!0;return!1};var ja=D.inherit({postParams:[],index:0,blockNext:function(){return!1},logInfo:function(a){var b;if(a)return a=(b=a.match(/^ti:\d:/))?a.replace(b[0],""):a,"ti:"+this.index+":"+a},_buildUrl:function(a,b){var c=
Z.stringify(b,this.queryStringParams);return a+(-1<a.indexOf("?")?"\x26":c?"?":"")+c},_splitParams:function(a){var b={},c={};f.forEachKey(a,function(a,e){f.inArray(this.postParams,a)?c[a]=e:b[a]=e},this);return{get:b,post:c}},_parseResp:function(a){return a}}),aa=ja.inherit({id:"XHR",index:7,method:"POST",withCredentials:!0,request:function(a,b,c,d){var e=this,f;if(/[^a-z0-9.:-]/.test(E.host)&&g.opera&&"function"===typeof g.opera.version){var l=g.opera.version();if("string"===typeof l&&"12"===l.split(".")[0])return c.call(d,
!1)}if(g.XMLHttpRequest){var r=new XMLHttpRequest;if("withCredentials"in r){b=this._splitParams(b);a=this._buildUrl(a,b.get);try{r.open(this.method,a,!0)}catch(H){return c.call(d,!1)}r.withCredentials=this.withCredentials;this._setHeaders(r);r.send(this._preparePostParams(b));r.onreadystatechange=function(){if(4===r.readyState){try{f=e._parseResp(r.responseText)}catch(H){return c.call(d,!1)}c.apply(d,[200===r.status].concat(f))}};return}}c.call(d,!1)},setMethod:function(a){this.method=a},_preparePostParams:function(a){return Z.stringify(a.post)},
_setHeaders:function(a){a.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}}),m={};m.isAndroidWebView=w(function(){var a=navigator.userAgent||"";return a.match(/Android.*Version\/[0-9][0-9.]*\sChrome\/[0-9][0-9.]/)||a.match(/Android.*Version\/[0-9][0-9.]*\s(?:Mobile\s)?Safari\/[0-9][0-9.]*\sChrome\/[0-9][0-9.]*/)||a.match(/; wv\).*Chrome\/[0-9][0-9.]*\sMobile/)},"isAndroidWebView");var Kb=ja.inherit({id:"beacon",index:1,request:function(a,b,c,d){"function"===typeof navigator.sendBeacon&&
!m.isAndroidWebView()&&navigator.onLine?(b=this._splitParams(b),b.get["force-urlencoded"]=1,c.call(d,navigator.sendBeacon(this._buildUrl(a,b.get),Z.stringify(b.post)))):c.call(d,!1)}});f.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 ba=ja.inherit({id:"form",index:2,enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){ba.superclass._initComponent.apply(this,arguments);"_htmlfile"in
ba.prototype||(ba.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:h)},request:function(a,b,c,d){var e=this._doc;if(!e)return c.call(d,!1);b=this._splitParams(b);var n="ifr"+f.random();var l=e.createElement("div");l.style.position="absolute";l.style.left="-99999px";l.style.top="-99999px";var g=['\x3ciframe name\x3d"',n,'"\x3e\x3c/iframe\x3e','\x3cform action\x3d"',this._buildUrl(a,b.get),'" method\x3d"post" target\x3d"',n,'" enctype\x3d"',this.enctype,
'"\x3e'];f.forEachKey(b.post,function(a){f.mergeArrays(g,['\x3cinput type\x3d"hidden" autocomplete\x3d"off" autocorrect\x3d"off"',' autocapitalize\x3d"off" spellcheck\x3d"false" name\x3d"',a,'"/\x3e'])});f.mergeArrays(g,["\x3c/form\x3e"]);l.innerHTML=g.join("");e.body.appendChild(l);var h=l.getElementsByTagName("form")[0];f.forEachKey(b.post,function(a,b){h[a].value=b});h.submit();f.setTimeout(function(){e.body.removeChild(l)},1E4,"TransportForm.request.2");return c.call(d,!0,"tf.request")},_createHtmlfile:function(){try{if(g.ActiveXObject){var a=
new ActiveXObject("htmlfile");a.open();a.write("\x3chtml\x3e\x3cbody\x3e\x3c/body\x3e\x3c/html\x3e");a.close();return a}}catch(b){}return null}}),Lb=ba.inherit({id:"htmlfile",index:3,htmlfileOnly:!0}),S=ja.inherit({id:"img",index:4,request:function(a,b,c,d){a=this._buildUrl(a,b);var e=!1;b=h.createElement("img");c=c||function(){};b.onload=w(function(){e||(c.call(d,!0),e=!0)},"TransportImage.request");b.onerror=w(function(){e||(c.call(d,!1),e=!0)},"TransportImage.request");b.src=a;this.timeout&&f.setTimeout(function(){e||
(c.call(d,!1),e=!0)},this.timeout,"ti.request")}}),T={stringify:function(a){try{var b=JSON.stringify(a)}catch(c){}return f.inArray(["{}",C],b)?"null":b}};f.toJSON=function(a){var b;if(a===C)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,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"';case Array:var c=[];var d=0;for(b=a.length;d<b;d++)c[c.length]=
f.toJSON(a[d]);return"["+c.join(",")+"]";case Object:c=[];for(d in a)a.hasOwnProperty(d)&&a[d]!==C&&(c[c.length]=f.toJSON(d)+":"+f.toJSON(a[d]));return"{"+c.join(",")+"}";default:return T.stringify(a)}};var U=D.inherit({counterId:"",_initComponent:function(){U.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&&f.isArray(b)&&!b.length?this.remove(a):this._ls.setItem(this._getLsKey(a),f.toJSON(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()*v.getMs()),this.set("lsid",a));return a},clearStorageId:function(){this.remove("lsid")},_getLsKey:function(a){return"_ym"+
this.counterId+"_"+a}});f.getTld=function(){if(!this._tld){var a=E.hostname.split(".");this._tld=a[a.length-1]}return this._tld};var R={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/\x3d",tailSafe:"*-_"},p={removeNode:function(a){var b=a&&a.parentNode;b&&b.removeChild(a)}};m.isSafariWebView=w(function(){var a=navigator.userAgent||"";return navigator.vendor&&-1<navigator.vendor.indexOf("Apple")&&(!a.match(/Safari/)&&a.match(/Mobile/)||a.match(/CFNetwork\/[0-9][0-9.]*.*Darwin\/[0-9][0-9.]*/)||
-1!==a.indexOf("FB_IAB")||-1!==a.indexOf("FBAV")||-1!==a.indexOf("OKApp")||-1!==a.indexOf("GSA/"))},"isSafariWebView");m.isSafari=function(){try{return navigator.vendor&&-1<navigator.vendor.indexOf("Apple")&&navigator.userAgent&&!navigator.userAgent.match("CriOS")}catch(a){}return!1};m.getMacOSVersion=w(function(){var a=navigator.userAgent.match(/Mac OS X ([0-9]+)_([0-9]+)_([0-9]+)/);return a?[+a[1],+a[2],+a[2]]:[0,0,0]},"",!0);m.getPlatform=w(function(){return""+navigator.platform},"",!0);m.isIOS=
w(function(){var a=m.getPlatform()||"";return"iPhone"===a||"iPad"===a},"",!0);var cb={_storage:new U,key:"zzlc",getZZ:function(){return this._storage.get(this.key)?this._storage.get(this.key):cb.zz},initZZ:function(){var a=this;var b=m.getMacOSVersion();(m.isIOS()||10<=b[0]&&13<=b[2])&&m.isSafari()&&!this.getZZ()&&!m.isSafariWebView()&&(b=f.getNativeFunction("createElement",h)("iframe"),b.style.display="none",b.style.width="1px",b.style.height="1px",b.style.visibility="hidden",b.src=x.protocol+"//"+
x.host+R.decode(x.cross),g.document.documentElement.appendChild(b),k.on(g,"message",this.onMessage,this,{passive:!1}),this.frame=b,this.timeout=f.setTimeout(function(){k.un(g,"message",a.onMessage,a,{passive:!1});p.removeNode(a.frame);a.zz="na"},3E3,"cd.initZZ"))},onMessage:function(a){a.data&&a.data.substr&&"__ym__zz"===a.data.substr(0,8)&&(this.zz=a.data.substr(8),p.removeNode(this.frame),this._storage.set(this.key,this.zz),k.un(g,"message",this.onMessage,this,{passive:!1}),clearTimeout(this.timeout))}},
G=D.inherit({counterId:"",onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){var a;G.superclass._initComponent.apply(this,arguments);this._domain=null;if(!this.onlyCurrentDomain){var b=g.location.host.split(".");for(a=2;;)if(a<=b.length){if(this._domain="."+b.slice(-a).join("."),a++,this.isEnabled())break}else{this._domain=null;break}}},create:function(a,b,c){a=[this._prepareName(a)+"\x3d"+encodeURIComponent(b)];c&&(b=new Date,b.setTime(b.getTime()+6E4*c),a.push("expires\x3d"+b.toGMTString()));
this._domain&&a.push("domain\x3d"+this._domain);a.push("path\x3d/");try{h.cookie=a.join(";")}catch(d){}},read:function(a){try{var b=h.cookie}catch(c){}return b&&b.match(new RegExp("(?:^|;\\s*)"+this._prepareName(a)+"\x3d([^;]*)"))?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:"")}});G.get=function(a){return(new G({onlyCurrentDomain:!0})).read(a)};G.set=function(a,b,c){return(new G({onlyCurrentDomain:!0})).create(a,b,c)};G.isEnabled=function(){return(new G({onlyCurrentDomain:!0})).isEnabled()};var z=Aa.inherit({protocol:"",host:x.host,queryStringParams:{firstOrdering:["wmode","callback","cnt-class"],lastOrdering:["browser-info"]},resource:"",counterId:"",counterType:0,retry:!1,transports:[Kb,aa,S,Lb],_initComponent:function(){z.superclass._initComponent.apply(this,
arguments);this.retry&&(this._storage=new U)},send:function(a,b,c,d){var e=this.globalConfig.get(ca.globalKey),f=this;e&&3!==this.counterId?e(function(){var e=f._registerRequest(a,b);f._sendSavedRequest(e,a,b,c,d)},a):(e=f._registerRequest(a,b),f._sendSavedRequest(e,a,b,c,d))},_sendSavedRequest:function(a,b,c,d,e){var n=this.globalConfig.get("firstReqStatus"),l=b.forceNoRedirect;if("process"==n)this.globalConfig.set("firstReqCallbacks",f.mergeArrays(this.globalConfig.get("firstReqCallbacks")||[],
[[this,arguments]]));else{n||this.globalConfig.set("firstReqStatus","process");this.counterType&&(b["cnt-class"]=this.counterType);c.st=v.getSeconds();c.u=z._userID;c.fip=z.getFP();c.fip||delete c.fip;c.zz=cb.getZZ();c.zz||delete c.zz;n=[this.protocol,"//",this.host,"/",this.resource,"/",this.counterId,l?"/1":""].join("");delete b.forceNoRedirect;var g=[];c&&(f.forEachKey(c,function(a,b){"t"!=a&&f.mergeArrays(g,[a,b])}),c.t&&f.mergeArrays(g,["t",c.t]));g.length&&(b["browser-info"]=g.join(":"));return z.superclass.send.call(this,
n,b,function(){var b;this.globalConfig.set("firstReqStatus","complete");this._unregisterRequest(a);var c=this.globalConfig.get("firstReqCallbacks");this.globalConfig.set("firstReqCallbacks",null);if(c)for(b=0;b<c.length;b++)c[b][0]._sendSavedRequest.apply(c[b][0],c[b][1]);d&&d.apply(e,arguments)},this)}},_isRetryEnabled:function(){return this.retry&&this._storage&&this._storage.isEnabled()},_registerRequest:function(a,b){var c;if(this._isRetryEnabled()){b.rqnl=b.rqnl||0;b.rqnl++;var d=this._storage.get("retryReqs")||
{};for(c=1;d[c];)c++;d[c]={protocol:this.protocol,host:this.host,resource:this.resource,counterId:this.counterId,counterType:this.counterType,postParams:this.postParams,params:a,browserInfo:b,ghid:this.globalConfig.get("_globalMetrikaHitId"),time:v.getMs()};this._storage.set("retryReqs",d);return c}},_unregisterRequest:function(a){if(a&&this._isRetryEnabled()){var b=this._storage.get("retryReqs")||{};b[a]&&(delete b[a],this._storage.set("retryReqs",b))}},_getVersion:w(function(){return ea},"",!0)});
z._storage=new U;z._fipKey="fip";z.fpFactors=["webGL","plugins","applePay","dnt"];z.initFingerPrint=function(){var a=[];if(m.isSafari()&&(navigator.userAgent.match(/Mac OS X[^_.]10[_.](13|12)/)||navigator.userAgent.match(/iPhone; CPU iPhone OS (11|10|12)/))){var b=z._storage;b.get(this._fipKey)?a=b.get(this._fipKey):(a=new za(f.reduce(function(a,b){a[b]=1;return a},{},z.fpFactors)),a=a.toString(!1).join("-"),b.set(this._fipKey,a));this._fingerPrint=a}};z.getFP=function(){return this._storage.get(this._fipKey)?
this._storage.get(this._fipKey):z._fingerPrint};z.initCookie=function(){var a=new G,b=a.read("uid"),c=a.read("d"),d=v.getSeconds();if(!b)b=d+""+f.random(),a.create("uid",b,525600),a.create("d",d,525600);else if(!c||15768E3<d-parseInt(c))a.create("uid",b,525600),a.create("d",d,525600);z._userID=b};z.retransmit=function(a){var b=z._storage,c=b.get("retryReqs")||{},d;b.remove("retryReqs");f.forEachKey(c,function(b,c){var e=v.getMs();a.get("firstReqStatus")||a.set("firstReqStatus","complete");c.ghid&&
c.ghid!=a.get("_globalMetrikaHitId")&&c.time&&c.time+864E5>e&&500<e-c.time&&2>=c.browserInfo.rqnl&&(d=new z({protocol:c.protocol,host:c.host,resource:c.resource,counterId:c.counterId,counterType:c.counterType,postParams:c.postParams||[],retry:!0}),d.send(c.params,c.browserInfo))})};f.fletcher=function(a){for(var b=a.length,c=0,d=255,e=255,f,l,g;b;){f=21<b?21:b;b-=f;do l="string"==typeof a?a.charCodeAt(c):a[c],c++,255<l&&(g=l>>8,l&=255,l^=g),d+=l,e+=d;while(--f);d=(d&255)+(d>>8);e=(e&255)+(e>>8)}a=
(d&255)+(d>>8)<<8|(e&255)+(e>>8);return 65535==a?0:a};R.encode=function(a,b){var c=(R.abc+(b?R.tailSafe:R.tail)).split(""),d=a.length,e=[],g=d-d%3,l;for(l=0;l<g;l+=3){var r=(a[l]<<16)+(a[l+1]<<8)+a[l+2];f.mergeArrays(e,[c[r>>18&63],c[r>>12&63],c[r>>6&63],c[r&63]])}switch(d-g){case 1:r=a[g]<<4;f.mergeArrays(e,[c[r>>6&63],c[r&63],c[64],c[64]]);break;case 2:r=(a[g]<<10)+(a[g+1]<<2),f.mergeArrays(e,[c[r>>12&63],c[r>>6&63],c[r&63],c[64]])}return e.join("")};f.arrayEvery=function(a,b,c){var d;for(d=0;d<
a.length;d++)if(!b.call(c,a[d],d,a))return!1;return!0};f.is4Bytes=function(a){return!f.arrayEvery((encodeURIComponent(a).match(/(%[A-F,\d]{2})+/g)||[]).join("").split("%"),function(a){return 240>parseInt(a,16)})};f.trim=function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};f.isFunction=function(a){return"function"===typeof a};f.isNumber=function(a){return isFinite(a)&&!isNaN(a)&&"[object Number]"==Object.prototype.toString.call(a)};f.isString=function(a){return"[object String]"==
Object.prototype.toString.call(a)};f.arrayIndexOf=function(a,b){var c;for(c=0;c<a.length;c++)if(a[c]===b)return c;return-1};f.warning=function(){g.console&&"function"===typeof g.console.warn&&console.warn.apply(console,arguments)};f.isObject=function(a){try{return a&&null!==a&&"[object Object]"==Object.prototype.toString.call(a)}catch(b){return!1}};f._playerRegexp=/^.+\.mtproxy\.yandex\.net$/;f.isMetrikaPlayer=function(){return"MetrikaPlayer"==g.name||this._playerRegexp.test(g.location.hostname)};
p.getDocumentCharset=function(){return(""+(h.characterSet||h.charset||"")).toLowerCase()};p.getBody=function(){for(var a=h.getElementsByTagName("body");0<a.length;)return a[0]};p.getRootElement=function(){var a=h.documentElement,b=p.getBody();return"CSS1Compat"==h.compatMode?a:b||a};p.getViewportSize=function(){var a=p.getRootElement();return[a.clientWidth||g.innerWidth,a.clientHeight||g.innerHeight]};p.getDocumentTitle=function(){var a=h.title;"string"!=typeof a&&(a=(a=h.getElementsByTagName("title"))&&
a.length?a[0].innerHTML:"");return a};m._silverlightVersion="";m.getSilverlightVersion=function(){if(!m._silverlightVersion)if(g.ActiveXObject)try{var a=new ActiveXObject("AgControl.AgControl");var b=function(a,b,d,f){for(;c(a,b);)b[d]+=f;b[d]-=f};var c=function(a,b){return a.isVersionSupported(b[0]+"."+b[1]+"."+b[2]+"."+b[3])};var d=[1,0,0,0];b(a,d,0,1);b(a,d,1,1);b(a,d,2,1E4);b(a,d,2,1E3);b(a,d,2,100);b(a,d,2,10);b(a,d,2,1);b(a,d,3,1);m._silverlightVersion=d.join(".")}catch(e){}else if(b=g.navigator,
b=b.plugins&&b.plugins["Silverlight Plug-In"])m._silverlightVersion=b.description;return m._silverlightVersion||""};m._flashVersion=0;m.getFlashVersion=function(){if(!m._flashVersion){var a=g.navigator;if("undefined"!=typeof a.plugins&&"object"==typeof a.plugins["Shockwave Flash"]){var b=a.plugins["Shockwave Flash"];var c=b.version;if((b=b.description)||c)if(a=a.mimeTypes,"undefined"==typeof a||!a["application/x-shockwave-flash"]||a["application/x-shockwave-flash"].enabledPlugin)c?m._flashVersion=
c:b&&(m._flashVersion=b.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,"."))}else if("undefined"!=typeof g.ActiveXObject)try{if(c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),b=c.GetVariable("$version"))m._flashVersion=b.split(" ")[1].replace(/,/g,".").replace(/[^.\d]/g,"")}catch(d){}}return m._flashVersion};m.getLanguage=function(){var a=(g.navigator?navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage:"").toLowerCase();return f.isString(a)?
a:""};m.getJavaEnabled=function(){try{return navigator.javaEnabled()}catch(a){return!1}};f.fnv32a=function(a){var b=2166136261,c;var d=0;for(c=a.length;d<c;++d)b^=a.charCodeAt(d),b+=(b<<1)+(b<<4)+(b<<7)+(b<<8)+(b<<24);return b>>>0};m.getFingerPrint=function(){var a=[],b;if(navigator.plugins&&navigator.plugins.length)for(b=0;b<navigator.plugins.length;b++){var c=navigator.plugins[b];f.mergeArrays(a,[c.name,c.version,c.description,c.filename])}if(navigator.mimeTypes&&navigator.mimeTypes.length)for(b=
0;b<navigator.mimeTypes.length;b++)c=navigator.mimeTypes[b],f.mergeArrays(a,[c.type,c.description,c.suffixes]);return f.fnv32a(a.join(";"))+"01"};m.getNotificationPermission=function(){try{var a=Notification.permission}catch(b){}switch(a){case "denied":return 1;case "granted":return 2}};m.isIframe=function(){try{return g.top!=g.self}catch(a){return!1}};m._nMap={other:"0",none:"1",unknown:"2",wifi:"3",ethernet:"4",bluetooth:"5",cellular:"6",wimax:"7",mixed:"8"};m.netType=function(){var a=(navigator.connection||
{type:""}).type;return m._nMap[a]||a};m.getNavigationStart=function(){var a=g.performance||g.webkitPerformance;return a&&a.timing&&a.timing.navigationStart};m.isSameOriginTopFrame=function(){try{return g.top.contentWindow||!0}catch(a){return!1}};m.isDesktop=function(a){var b=a.get("bt",{});a.get("bt")===C&&(b.p=navigator.getBattery?navigator.getBattery():null,a.set("bt",b),b.p&&b.p.then&&b.p.then(function(a){b.v=a.charging&&0===a.chargingTime}));return b.v};k.ready=function(a){var b=h.readyState;
if("interactive"===b||"complete"===b)f.setTimeout(a,0,"evt::ready");else{var c=function(){k.un(h,"DOMContentLoaded",c);k.un(g,"load",c);a()};k.on(h,"DOMContentLoaded",c);k.on(g,"load",c)}};var ob={url:x.protocol+"//"+x.host+"/metrika/",_value:null,init:function(a){var b=this._getLs().read("isad");this.globalConfig=a||u;b?this._set(b):this._getReqStatus()||this._send()},getVal:function(){return this._value},_set:function(a){this._value="1"==a||"2"==a?a:null},_send:function(){var a=this;this._setReqStatus("process");
k.ready(function(){var b=h.createElement("img");b.onload=function(){a._saveReq(!1);p.removeNode(this)};b.onerror=function(){a._saveReq(!0);p.removeNode(this)};b.src=a.url+String.fromCharCode(97,100,118,101,114,116,46,103,105,102);m.isSafari()&&(b.style.position="absolute",b.style.visibility="hidden",b.style.width="0px",b.style.height="0px",p.getRootElement().appendChild(b))})},_saveReq:function(a){this._value=a=a?"1":"2";this._setReqStatus("complete");this._getLs().create("isad",a,1200)},_setReqStatus:function(a){try{this.globalConfig.set("adStatus",
a)}catch(b){}},_getReqStatus:function(){try{return this.globalConfig.get("adStatus")}catch(a){return"complete"}},_getLs:function(){this._ls||(this._ls=new G);return this._ls}},Pa={encode:function(a){var b=[],c;var d=0;for(c=a.length;d<c;d++){var e=a.charCodeAt(d);128>e?b.push(e):(127<e&&2048>e?b.push(e>>6|192):(b.push(e>>12|224),b.push(e>>6&63|128)),b.push(e&63|128))}return b},decode:function(a){for(var b="",c=0,d,e,f;c<a.length;)d=a.charCodeAt(c),128>d?(b+=String.fromCharCode(d),c++):191<d&&224>
d?(e=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|e&63),c+=2):(e=a.charCodeAt(c+1),f=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(e&63)<<6|f&63),c+=3);return b}};R.decode=function(a,b){for(var c=R.abc+(b?R.tailSafe:R.tail),d=0,e="",f,g,h,k,q;a.length%4;)a+="\x3d";do{f=c.indexOf(a.charAt(d++));g=c.indexOf(a.charAt(d++));k=c.indexOf(a.charAt(d++));q=c.indexOf(a.charAt(d++));if(0>f||0>g||0>k||0>q)return null;h=f<<18|g<<12|k<<6|q;f=h>>16&255;g=h>>8&255;h&=255;e=64==k?e+String.fromCharCode(f):
64==q?e+String.fromCharCode(f,g):e+String.fromCharCode(f,g,h)}while(d<a.length);return e};f.reduce=function(a,b,c){var d=0;b==C&&(b=c[0],d++);for(;d<c.length;)b=a(b,c[d]),d++;return b};f.filter=function(a,b){var c,d=[];for(c=0;c<b.length;c++)a(b[c])&&d.push(b[c]);return d};T.parse=function(a){try{return JSON.parse(a)}catch(b){return null}};var la=z.inherit({hitId:0,trackHash:!1,trimParams:!1,webvisor:!1,counter:null,counterNum:0,resource:"watch",retry:!0,paramsQueue:{paramsQueue:[],length:function(){return this.paramsQueue.length},
push:function(a){this.paramsQueue.push(a)},_reduce:function(a){return function(b,c){f.arrayEvery(f.keys(c),function(d){if(b.hasOwnProperty(d))return 1;-1==f.arrayIndexOf(a,d)&&(b[d]=c[d],delete c[d]);return 1});return b}},_filter:function(a){return f.keys(a).length},mixin:function(a){var b={};this.paramsQueue.length&&(b=f.reduce(this._reduce(f.keys(a)),{},this.paramsQueue),this.paramsQueue=f.filter(this._filter,this.paramsQueue));return f.mixin({},a,b)}},postParams:["site-info"],countersNoTitle:"22836271 1143050 29626870 9928105 26128362 29850769".split(" "),
fake:!1,sendTitle:!0,_initComponent:function(){la.superclass._initComponent.apply(this,arguments);this._trackHash=this.trackHash;"0"===""+this.counterType&&(this.sendTitle=-1===f.arrayIndexOf(this.countersNoTitle,""+this.counterId))},setTrackHash:function(a){this._trackHash=a},sendHit:function(a){this._hitExt({url:a.url,title:a.title,referrer:a.referrer,vParams:a.vParams,modes:f.mixin(a.modes||{},{ar:!0,saveRef:!0,pv:!0}),callback:a.callback,ctx:a.ctx},"hit")},sendExperiments:function(a){this._hitExt({url:B().href,
title:"",referrer:"",modes:{ex:!0,ar:!0},experiments:a.experiments,callback:a.callback,ctx:a.ctx},"exp")},sendPrerenderHit:function(a){this._hitExt({url:a.url,title:a.title,referrer:a.referrer,modes:{ar:!0,pq:!0}},"hit")},sendAjaxHit:function(a){this._hitExt({url:a.url,title:a.title,referrer:a.referrer,modes:a.modes},"hit")},sendParams:function(a,b,c){this._hitExt({url:B().href,title:"",referrer:"",forceNoRedirect:!0,vParams:a,modes:{ar:!0,pa:!0,onlyData:!0},callback:b,ctx:c},"pa")},sendGoal:function(a,
b){if(/[/&=?#]/.test(a))f.warning("Incorrect goal");else if(a){var c=B();this._hitExt({url:"goal://"+c.hostname+"/"+encodeURIComponent(a),title:p.getDocumentTitle(),referrer:c.href,forceNoRedirect:!0,vParams:b.vParams,modes:{ar:!0},callback:b.callback,ctx:b.ctx},"go")}else f.warning("Empty goal")},sendClickLink:function(a){this._hitExt({url:a.url,title:a.title,referrer:B().href,modes:a.modes})},sendExtLink:function(a){this._hitExt({url:a.url,title:a.title||"",referrer:B().href,vParams:a.vParams,modes:{ar:!0,
ln:!0,ut:db},callback:a.callback,ctx:a.ctx},"cl")},sendFileUpload:function(a){this._hitExt({url:a.url,title:a.title||"",referrer:B().href,vParams:a.vParams,modes:{ar:!0,ln:!0,dl:!0},callback:a.callback,ctx:a.ctx},"fu")},sendNotBounce:function(a,b){this._hitExt({url:B().href,title:"",referrer:"",modes:{cl:a,ar:!0,nb:!0,onlyData:!0},callback:b.callback,ctx:b.ctx},"nb")},sendDevice:function(a){this._hitExt({browserInfo:{di:a.data,dip:a.port},callback:a.callback,ctx:a.ctx},"de")},_hitExt:function(a,b){function c(a,
b){b&&(m[a]=b)}var d,e,g,l={};if(!f.isMetrikaPlayer()){var h=a.modes||{};var k=a.browserInfo||{};var q="undefined"!==typeof a.referrer?a.referrer:Qa.lastReferrer;var t=a.url||"";var m={};a.nohit&&c("nohit",1);h.ar&&!h.onlyData&&(q=null===q||""===q?"":this._prepareHitUrl(q),t=this._prepareHitUrl(a.url));c("forceNoRedirect",a.forceNoRedirect);c("page-ref",f.trim(q,Ba));c("page-url",f.trim(t,Ba));f.is4Bytes(a.title)&&c("charset","utf-8");-1!=B().hostname.search(/(?:^|\.)(?:ya|yandex)\.(?:\w+|com?\.\w+)$/)?
c("ut",db):"undefined"!=typeof h.ut&&c("ut",f.trim(h.ut,Mb));c("exp",a.experiments);(e=a.vParams)&&e.__ym&&(f.isNumber(e.__ym.turbo_page)&&(l.tp=e.__ym.turbo_page),f.isNumber(e.__ym.turbo_page_id)&&(l.tpid=e.__ym.turbo_page_id));(!e||f.isObject(e)&&!e.__ym&&!e.__ymu)&&this.paramsQueue.length()&&f.inArray(["go","hit","pa"],b)&&(e=this.paramsQueue.mixin(e));e&&(t=f.toJSON(e),this.trimParams&&t.length>Nb?g=!0:c("site-info",t));h.saveRef&&(Qa.lastReferrer=q);l=function(a,b){var c={};f.forEachKey(b,function(a,
b){-1===f.arrayIndexOf(["",C,null],b)&&(c[a]=b)});return f.mixin({},a,c)}(l,{gdpr:ca.getState(this.globalConfig),eu:this.globalConfig.get("isEU"),v:this._getVersion()});this.fake||(d=this._getTechInfo(a.title,h,this.counterId,a.ts,a.tz,this._trackHash,this.hitId,this.webvisor,this.counter,a.nohit));f.mixin(k,d,l);this.send(m,k,function(){g&&this.counter.params(e);a.userParams&&this.counter.userParams(a.userParams);f.isFunction(a.callback)&&a.callback.apply(a.ctx,arguments)},this)}},_prepareHitUrl:function(a){var b=
B(),c=b.host;b=b.href;if(!f.isString(a))return b;if(-1!=a.search(/^[a-z][\w.+-]+:\/\//i))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},_getTechInfo:function(a,b,c,d,e,h,l,r,k,q){function n(a,b,c){var d=""+b;a&&b&&(c||-1===d.indexOf(":"))&&(u[a]=d)}function H(a){b[a]&&n(a,
"1")}var u={};b=b||{};d=d||v.getTimestamp();e=e||v.getTimezone();n("j",m.getJavaEnabled()?"1":"");var M=m.isDesktop(this.globalConfig);M!==C&&n("dp",M?"1":"0");n("nt",m.netType());n("ns",m.getNavigationStart());da&&n("s",da.width+"x"+da.height+"x"+(da.colorDepth||da.pixelDepth));g.devicePixelRatio&&n("sk",g.devicePixelRatio);m.isIframe()&&(n("ifr","1"),n("sti",m.isSameOriginTopFrame()?"1":"0"));g.ia_document&&g.ia_document.shareURL&&g.ia_document.referrer&&n("iia","1");n("adb",ob.getVal());n("f",
m.getFlashVersion());n("l",m.getSilverlightVersion());n("fpr",m.getFingerPrint());n("cn",this.counterNum);b.pa||(M=p.getViewportSize(),n("w",M[0]+"x"+M[1]));n("z",e);n("i",d);n("et",v.getSeconds());n("en",p.getDocumentCharset());n("c",navigator.cookieEnabled?"1":"");n("la",m.getLanguage());n("ntf",m.getNotificationPermission());f.random(100)||n("np",R.encode(Pa.encode(f.trim(m.getPlatform(),100))));h&&n("wh","1");e="ar ln dl cpf ad nb pa pq pv ex".split(" ");for(d=0;d<e.length;d++)H(e[d]);e="va vt sn sa he fu".split(" ");
b.nb&&e.push("cl");for(d=0;d<e.length;d++)h=e[d],n(h,b[h]);e=new U({counterId:c});e.isEnabled()&&(c=e.getStorageId(),d=e.get("reqNum"),q||(d?d++:d=1),e.set("reqNum",d),e.get("reqNum")==d?(n("ls",c),n("rqn",d)):(e.remove("reqNum"),e.clearStorageId(),1<d&&(n("ls",c),n("rqn",0))));n("rn",f.random());n("hid",l);n("ds",Hb(k));k._firstPaint||(k._firstPaint=Jb(),n("fp",k._firstPaint));if(r){g.name||(g.name=Math.round(65535*Math.random()));if(l=+g.name)0>l&&(l*=-1),l%=65535;n("wn",l||f.fletcher(g.name));
try{g.history&&n("hl",String(g.history.length))}catch(Xa){}}l="";this.sendTitle&&(l=this._getTitle(a));n("t",l,!0);return u},_getTitle:function(a){a="undefined"==typeof a?(a=p.getDocumentTitle())?f.trim(a,Ia):"":f.trim(a,Ia);return a}});f.array2Props=function(a){var b=a.length,c={},d=c,e;for(e=0;e<b-1;e++){var f=a[e];d[f]={};e<b-2&&(d=d[f])}d[f]=a[b-1];return c};var na=D.inherit({sampling:1,counterId:26302566,_initComponent:function(){na.superclass._initComponent.apply(this,arguments);this._sender=
new la({protocol:"https:",counterId:this.counterId,retry:!1,counter:{}})},log:function(){this.logParams(f.array2Props(arguments))},logParams:function(a){Math.random()<this.sampling&&this._sender.sendHit({url:E.href,title:"",referrer:"",vParams:a})}}),Ob=z.inherit({resource:"webvisor",retry:!0,postParams:["wv-data"],sendPacket:function(a,b,c,d,e,n,l,h){if(!a||!a.length)return!1;var r=R.encode(a,!0);if(0==r.indexOf("AAAAAAAAADw")&&g.Error){var k=Error();"string"==typeof k.stack&&(new na({sampling:.1})).log("bad visor packet 5",
1)}a={rn:f.random(),"page-url":b,wmode:0,"wv-type":0,"wv-hit":c,"wv-part":d+1,"wv-check":f.fletcher(a),"wv-data":r};e={v:this._getVersion(),z:e,i:n};return this.send(a,e,l,h)}}),Na=Oa.inherit({protocol:"",counterId:"",counterType:"",meta:null,maxBufferSize:7500,flushTimeout:3E4,storageKey:"visorbuff",active:!1,_initComponent:function(){this.storage=new U({counterId:this.counterId});this._sender=new Ob({globalConfig:this.globalConfig,protocol:this.protocol,counterId:this.counterId,counterType:this.counterType});
Na.superclass._initComponent.apply(this,arguments)},onFlush:function(a,b,c){this._sender.sendPacket(a,b.url,b.hitId,c,b.timezone,b.timestamp)}}),Db=z.inherit({resource:"webvisor",transports:[aa,ba],postParams:["wv-data"],sendContent:function(a,b,c,d,e,f,g){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":R.encode(Pa.encode(a))};return 245E3<a["wv-data"].length?!1:this.send(a,{z:d,i:e,pct:b||""},f,g)}});p.getDocumentHTML=function(){var a=
"";var b=h.documentElement;var c=b.outerHTML,d,e;if(c)b=c;else{c=b.attributes;var f="";for(d=0;d<c.length;d++)(e=c[d])&&(f+=" "+e.name+'\x3d"'+(e.value||"")+'"');b="\x3chtml"+f+"\x3e"+b.innerHTML+"\x3c/html\x3e"}if(c=h.doctype)a=c.publicId?' PUBLIC "'+c.publicId+'"':"",f=c.systemId?' "'+c.systemId+'"':"",a="\x3c!DOCTYPE "+c.name+a+f+"\x3e\n";return a+b};p.getDocumentScroll=function(){var a=p.getBody();return[g.pageXOffset||h.documentElement&&h.documentElement.scrollLeft||a&&a.scrollLeft||0,g.pageYOffset||
h.documentElement&&h.documentElement.scrollTop||a&&a.scrollTop||0]};p.getElementParent=function(a){if(!a||a==h.documentElement)return null;if(a==p.getBody())return h.documentElement;var b=null;try{b=a.parentNode}catch(c){}return b};p.getElementChildren=function(a,b){var c=[],d,e,g;if(a&&(d=a.childNodes)){var l=0;for(g=d.length;l<g;l++){var h=d[l];(e="INPUT"==h.nodeName&&h.type&&"hidden"==h.type.toLocaleLowerCase())||b&&h.nodeName!=b||f.mergeArrays(c,[h])}}return c};p.getElementNeighborPosition=function(a){var b=
p.getElementParent(a),c;if(b){var d=0;b=b.childNodes;var e=a&&a.nodeName;for(c=0;c<b.length;c++){var f=b[c]&&b[c].nodeName;if(e==f){if(a==b[c])return d;d++}}}return 0};p.getElementXY=function(a){var b;if(!a||!a.ownerDocument||"PARAM"==a.tagName||a==p.getBody()||a==h.documentElement)return[0,0];if(a.getBoundingClientRect){a=a.getBoundingClientRect();var c=p.getDocumentScroll();return[Math.round(a.left+c[0]),Math.round(a.top+c[1])]}for(b=c=0;a;)c+=a.offsetLeft,b+=a.offsetTop,a=a.offsetParent;return[c,
b]};p.getDocumentSize=function(){var a=p.getRootElement(),b=p.getViewportSize();return[Math.max(a.scrollWidth,b[0]),Math.max(a.scrollHeight,b[1])]};p.getElementSize=function(a){var b;return a==p.getBody()||a==h.documentElement?p.getDocumentSize():(b=a.getBoundingClientRect&&a.getBoundingClientRect())?[b.width,b.height]:[a.offsetWidth,a.offsetHeight]};p.getElementRegion=function(a){var b=p.getElementXY(a);a=p.getElementSize(a);return[b[0],b[1],a[0],a[1]]};p.calcChildrenChecksum=function(a){var b=w(function(){return a.innerHTML},
"",!0)()||"";return f.fletcher(b.replace(/(<[^>]*>|[\u0000-\u0020])/g,""))};p.getFormNumber=function(a){var b=h.getElementsByTagName("form"),c;var d=0;for(c=b.length;d<c;d++)if(b[d]==a)return d;return-1};p.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};p.calcTextChecksum=function(a){var b="";a=a.childNodes;var c;
var d=0;for(c=a.length;d<c;d++)a[d]&&3==a[d].nodeType&&(b+=a[d].nodeValue);return f.fletcher(b.replace(/[\u0000-\u0020]+/g,""))};p.calcAttribChecksum=function(a){var b="",c="width height align title alt name".split(" "),d;"IMG"==a.tagName&&(b+=a.src.toLowerCase());"A"==a.tagName&&(b+=a.href.toLowerCase());b+=String(a.className||"").toLowerCase();for(d=0;d<c.length;d++)a.getAttribute&&(b+=String(a.getAttribute(c[d])||"").toLowerCase());return f.fletcher(b.replace(/[\u0000-\u0020]+/g,""))};p.classNameExists=
function(a,b){try{return(new RegExp("(?:^|\\s)"+b+"(?:\\s|$)")).test(a.className)}catch(c){return!1}};p.getElementsByClassName=function(a,b){var c;b=b||h;var d=b.getElementsByTagName("*");var e=[];for(c=0;c<d.length;c++)p.classNameExists(d[c],a)&&e.push(d[c]);return e};f.arrayFilter=function(a,b,c){var d=[],e;for(e=0;e<a.length;e++)b.call(c,a[e],e,a)&&d.push(a[e]);return d};f.arrDiff=function(a,b){return f.arrayFilter(a,function(a){return-1===f.arrayIndexOf(b,a)})};f.encodeURIComponent=function(a,
b){a=String(a);b&&a.length>b&&(a=a.substr(0,b));return(g.encodeURIComponent||g.escape)(a).replace(/\+/g,"%2B")};f.bind=function(a,b){var c=[].slice.call(arguments,2);return function(){return a.apply(b||this,c.concat([].slice.call(arguments,0)))}};f.clearTimeout=function(a){return f.getNativeFunction("clearTimeout")(a)};f._urlParser=null;f.parseUrl=function(a){if(!this._urlParser)try{this._urlParser=h.createElement("a")}catch(b){}return this._urlParser?(this._urlParser.href=a,{protocol:this._urlParser.protocol,
host:this._urlParser.host,port:this._urlParser.port,hostname:this._urlParser.hostname,hash:this._urlParser.hash,search:this._urlParser.search,query:this._urlParser.search.replace(/^\?/,""),pathname:this._urlParser.pathname||"/",path:(this._urlParser.pathname||"/")+this._urlParser.search,href:this._urlParser.href}):{}};f.safeDecodeURIComponent=function(a){try{return decodeURIComponent(a)}catch(b){return""}};f.isDev=function(){return!1};var Cb=!ua(/webkit/)&&ua(/gecko/),pb=D.inherit({hid:0,tz:0,ts:0,
counterId:0,counterType:0,url:"",protocol:"",enabled:!1,_initComponent:function(){if(this.isEnabled()){var a=this._getStorage();var b=a.read("visorc");"b"!==b&&"w"!==b&&(b="");if(!a.isEnabled()||ua("opera mini"))b="b";this._vc=b;"b"!==b&&(this._recorder=new wb(this.protocol,this.counterId,this.counterType,this.hid,this.globalConfig));pb.superclass._initComponent.apply(this,arguments)}},start:function(a){if(this.isEnabled()&&this._recorder){a=a||{};var b=+a.recp;if(!isFinite(b)||0>b||1<b)var c="w";
c||(c=this.hid%1E4/1E4<b?"w":"b");this._getStorage().create("visorc",c,30);"w"===c?(this._recorder.start(),b=a.arch_type,(a=a.urls)&&b&&"none"!==b&&this._recorder.uploadPages(a,b)):this._recorder.stop()}},stop:function(){this._recorder&&this._recorder.stop()},isEnabled:function(){var a=!this.globalConfig.get("oo");return this.enabled&&a},getVc:function(){return this._vc},_getStorage:function(){this._storage||(this._storage=new G({counterId:this.counterId}));return this._storage}});p.loadScript=function(a,
b){b=b||g;var c=f.mixin({type:"text/javascript",charset:"utf-8",async:!0},a),d=b.document,e=f.getNativeFunction("createElement",d),h=e("script");if(h){h.type=c.type;h.charset=c.charset;h.src=c.src;c.async&&(h.async=!0);try{var l=d.getElementsByTagName("head")[0];if(!l){var k=d.getElementsByTagName("html")[0];l=e("head");k&&k.appendChild(l)}l.insertBefore(h,l.firstChild);return h}catch(H){}}};Aa=ja.inherit({id:"script",index:6,request:function(a,b,c,d){var e=!1,n=f.getNativeFunction("createElement",
h)("script");this.timeout&&f.setTimeout(function(){e||(e=!0,p.removeNode(n),c.call(d,!1))},this.timeout,"ts.request");if(!n)return e=!0,c.call(d,!1),!1;var l="_ymjsp"+f.random();g[l]=w(function(){if(!e){try{delete g[l]}catch(H){g[l]=C}c.apply(d,f.mergeArrays([!0],arguments));e=!0;p.removeNode(n)}},"transport.script");n.type="text/javascript";n.src=this._buildUrl(a,f.mixin({wmode:5,callback:l},b));n.async="async";var k=h.getElementsByTagName("head")[0];k||(k=h.createElement("head"),h.documentElement.appendChild(k));
f.async(function(){k.insertBefore(n,k.firstChild)});n.onerror=function(){e=!0;c.call(d,!1);g[l]=C};return!0}});var Ra=aa.inherit({id:"XHRhit",index:10,_buildUrl:function(a,b){b.wmode=7;return Ra.superclass._buildUrl.apply(this,[a,b])},_parseResp:function(a){var b=T.parse(a);if(!b)throw"";return f.map(function(a){return b[a]},f.keys(b))}}),eb=la.inherit({transports:[Ra,Aa],trimParams:!0,_initComponent:function(){eb.superclass._initComponent.apply(this,arguments);this._ilStorage=new U({counterId:this.counterId})},
postParams:[],checkYandexHost:function(a){if(a){a:{if(a=f.parseUrl(a).host.match(/(?:^|\.)(?:ya|yandex)\.(?:\w+|com?\.\w+)$/))if(a=a[0].split("yandex").reverse()[0].substring(1),-1!=f.arrayIndexOf(x.yandexWhiteListTld,a))break a;a=!1}a&&(this.host=x.baseUrl+a)}},sendHit:function(a){var b={},c=this._ilStorage.get("il");a.visitColor&&(b.vc=a.visitColor);a.hasPrerender&&(b.pr=1);c&&(this._ilStorage.remove("il"),b.ilt=R.encode(Pa.encode(f.trim(c,qb))));this.checkYandexHost(a.referrer);this._hitExt({url:a.url,
forceNoRedirect:a.forceNoRedirect,nohit:a.nohit,title:a.title,referrer:a.referrer,vParams:a.vParams,userParams:a.userParams,experiments:a.experiments,modes:a.modes,browserInfo:b,ts:a.ts,tz:a.tz,callback:a.callback,ctx:a.ctx},"hit")}}),Sa=D.inherit({cid:3,cnt:0,KEY_NAME:"wasSynced",_initComponent:function(){this._storage=new U;this._cookie=new G},hit:function(a,b){var c=this,d=b===C?!0:!1,e=d?this._storage.get(this.KEY_NAME):!1,g=[],l=this.globalConfig.get("fakeHit");if(l)return l(function(b){a(b)});
!e&&d&&(e=this._cookie.read(this.KEY_NAME))&&(e=T.parse(e));e&&e.time+864E5>v.getMs()?(c.globalConfig.set("isEU",e.params.eu),a(e)):(this.globalConfig.set("fakeHit",function(a){g.push(a)}),this._getSender().sendHit({forceNoRedirect:this.forceNoRedirect,callback:function(b,d){var l=b||{};e={time:v.getMs(),params:l,bkParams:d};c.globalConfig.set("isEU",l.eu);c._storage.set(c.KEY_NAME,e);c._cookie.create(c.KEY_NAME,T.stringify(e),1728);a(e);c.globalConfig.set("fakeHit",function(a){a(e)});f.arrayEvery(g,
function(a){a(e);return 1})}}))},_getSender:function(){this._sender||(this._sender=new eb({protocol:"https:",counterType:this.cnt,counterId:this.cid,sendTitle:!1,globalConfig:this.globalConfig,fake:!0}));return this._sender}}),rb=D.inherit({baseUrl:x.baseUrl,globalConfig:u,baseTld:"ru",partners:{"mc.beru.ru":{regex:/^([^/]+\.)?beru\.ru$/,tld:"ru"},"mc.kinopoisk.ru":{regex:/^([^/]+\.)?kinopoisk\.ru$/,tld:"ru"}},_initComponent:function(){var a=this;rb.superclass._initComponent.apply(this,arguments);
this.syncTlds=f.reduce(function(a,c){return c(a)},x.yandexWhiteListTld,[f.bind(f.filter,null,function(b){return b!==a.baseTld}),f.bind(f.reduce,null,function(a,c){a[c]=[c];return a},{})]);f.forEachKey(this.partners,function(a,c){c.regex.test(g.location.hostname)&&(this.syncTlds[c.tld]||(this.syncTlds[c.tld]=[]),this.syncTlds[c.tld].push(a),this._replaceBase[a]=!0)},this)},_replaceBase:{},langToDomain:{ka:"ge",ro:"md",tg:"tj",tk:"tm",et:"ee",hy:"com.am",he:"co.li",ky:"kg",uk:"ua",be:"by",tr:"com.tr",
kk:"kz"},sync:function(a){var b=this,c=this._need(),d=-1!=B().hostname.search(/(?:^|\.)(?:ya|yandex|beru|kinopoisk)\.(?:\w+|com?\.\w+)$/);!this._is()&&c?(this._setStatus(!0),d?this._getCn().hit(function(){b._sync(c,a)}):a()):a();d&&this._addMda()},_addMda:function(){var a=new G({skipPrefix:!0}),b=new G,c=a.read("mda");"0"!==c&&"1"!==c&&a.create("mda","0",1036800);b.read("mda")&&b.erase("mda")},_is:function(){try{return!!this.globalConfig.get("startSync")}catch(a){return!1}},_setStatus:function(a){try{this.globalConfig.set("startSync",
a)}catch(b){}},_need:function(){var a=this._getDomainByLang(),b=this._getTld(),c=[],d;(d=this.syncTlds[b])&&c.push.apply(c,d);d=this.syncTlds[a];a!==b&&d&&c.push.apply(c,d);var e=this._getLs().get("synced")||{};c=f.arrayFilter(c,function(a){return(e[a]||1)+1440<v.getMinutes()});return c.length&&c||!1},_sync:function(a,b){var c,d=0,e=x.protocol+"//",f=a.length,g=this;if(0<f){b=b||function(){};var h=function(){d++;f===d&&b()};var k=g._getLs();var q=new S({});for(c=0;c<f;c++)(function(a){q.request(e+
(g._replaceBase[a]?a:g.baseUrl+a)+"/sync_cookie_image_check",{},function(b){h();var c=v.getMinutes();b||(c-=1435);b=k.get("synced")||{};b[a]=c;k.set("synced",b)})})(a[c])}else b()},_getCn:function(){this._cn||(this._cn=new Sa({fake:!0,globalConfig:this.globalConfig}));return this._cn},_getLs:function(){this._ls||(this._ls=new U);return this._ls},_getTld:function(){var a=f.getTld();return{am:"com.am",tr:"com.tr",ge:"com.ge",il:"co.il","\u0440\u0444":"ru","xn--p1ai":"ru","\u0443\u043a\u0440":"ua","xn--j1amh":"ua",
"\u0431\u0435\u043b":"by","xn--90ais":"by"}[a]||a},_getDomainByLang:function(){if(!g.navigator)return"ru";try{var a=navigator.languages?navigator.languages[0]:m.getLanguage()}catch(b){}a=(a||"").toLowerCase().split("-")[0];return this.langToDomain[a]||"ru"}}),Pb=aa.inherit({id:"RawBodyXHR",index:9,postParams:["body"],_setHeaders:function(){},_preparePostParams:function(a){return a.post.body||""}});m.isAndroid=w(function(){var a=navigator.userAgent.toLowerCase(),b=m.getPlatform()||"";return-1<a.indexOf("android")&&
-1<a.indexOf("mobile")&&b.match(/^android|linux armv/i)},"",!0);var ma={_url:x.protocol+"//"+x.host+"/user_storage_set?",_params:{},init:function(a){this._params=a||{}},save:function(a,b){this._getReq().request(this._url+Z.stringify({key:a,value:f.toJSON(b)}));this._getLs().set(a,b)},get:function(a){return{remote:this._params[a],local:this._getLs().get(a)}},getNum:function(a){a=this.get(a);return Math.max(+a.remote||0,+a.local||0)},_getLs:function(){this._ls||(this._ls=new U);return this._ls},_getReq:function(){this._req||
(this._req=new S);return this._req}},Qb={sync:w(function(a,b,c,d){var e={t:'UV|L7,!"T[rwe\x26D_\x3eZIb\\aW#98Y.PC6k'};this.globalConfig=d||u;if(this._enabled(a,b,c)){this._setStatus(!0);var f=new Pb({method:"GET",withCredentials:!1});var g=this._getHosts();var h=g.length;(function t(a){var b=g[a];a<h?f.request(b[0]+":"+b[1]+"/p",e,function(c,d){c?this._save(c,d,b[1]):t.call(this,a+1)},this):this._save(!1)}).call(this,0)}},"ds"),_getHosts:function(){var a=[],b=E.protocol,c=m.isIOS();(m.isAndroid()||
c&&"http:"===b)&&a.push(["http://127.0.0.1","30102"],["http://127.0.0.1","29009"]);c&&"https:"===b&&a.push(["https://yandexmetrica.com","30103"],["https://yandexmetrica.com","29010"]);return a},_save:function(a,b,c){var d=v.getMinutes();a?(new la({protocol:"https:",counterType:0,counterId:42822899,sendTitle:!1,fake:!0})).sendDevice({data:f.trim(b),port:c}):d-=45;ma.save("ds",d)},_is:function(){try{return!!this.globalConfig.get("dSync")}catch(a){return!1}},_enabled:function(a,b,c){if(!(60<v.getMinutes()-
ma.getNum("ds"))||this._is()||f.isDev(this.globalConfig))return!1;a=0===b&&0<=f.arrayIndexOf([39370095,1282253,29302335,43653484,41734944,31048081,16443139,27737346,41870499,33911514,30744873,5564395,2580487],a);a=Y()||!c&&.1>=Math.random()&&a;c=m.isIOS()&&a;return m.isAndroid()&&a||c},_setStatus:function(a){try{this.globalConfig.set("dSync",a)}catch(b){}}},J={getPos:function(a){var b=p.getRootElement(),c=p.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){var b=null;try{if(b=a.target||a.srcElement)!b.ownerDocument&&b.documentElement?b=b.documentElement:b.ownerDocument!==h&&(b=null)}catch(c){}return b},getMouseButton:function(a){return a.which||a.button==C?a.which:a.button&1?1:a.button&2?3:a.button&4?2:0},prevent:function(a){a=a||g.event;a.preventDefault?a.preventDefault():a.returnValue=!1}};J.dispatchCustomEvent=w(function(a,b){var c;b=b||h;if(c=f.getNativeFunction("createEvent",h)("Event"))c.initEvent(a,
!1,!1),f.getNativeFunction("dispatchEvent",b)(c)},"evt.dispatch");var Qa={lastReferrer:null},ta=D.inherit({counter:null,prefsEcommerce:null,status:{NEW:C,PENDING:1,OK:2,FAIL:3},dataLayerName:"dataLayer",_initComponent:function(){var a="customArr";ta.superclass._initComponent.apply(this,arguments);this.frameConnector&&this.frameConnector.addHandler("params",function(a,c){this.counter&&this.counter.params&&this.counter.params(c.data)},this);this._overridePush(this.globalConfig.get("dataLayer"));if(this.prefsEcommerce||
this.prefsUseDataLayer)this._overridePush(this.prefsEcommerce)||(f.isString(this.prefsEcommerce)&&(this.dataLayerName=this.prefsEcommerce),a=this.dataLayerName,this._tryTimeout=f.bind(this._tryTimeout,this),this._tryTimeout()),this.counter._ecommerce=a},_overridePush:function(a){if(a&&"function"==typeof a.push){var b=this;b._send(a);var c=a.push;a.push=function(){var a=c.apply(this,arguments);b._send([].slice.call(arguments,0));return a};return!0}return!1},_tryTimeout:function(){this._overridePush(g[this.dataLayerName])||
f.setTimeout(this._tryTimeout,1E3,"dlObserver")},_callHandlers:function(a){f.arrayEvery(ta.handlers,function(b){b&&b.type&&f.arrayEvery(b.type.split(","),function(c){c.replace(" ","")===a.type&&b.callback&&b.callback(a);return 1});return 1})},allowedEvents:"currencyCode add delete remove purchase checkout detail".split(" "),_convert:function(a,b){var c=f.keys(b),d=!1,e={transaction_id:"id",value:"revenue"};if(b.items){var g={};g[a]={products:b.items};1<c.length&&(g[a].actionField=f.reduce(function(a,
c){e[c]?a[e[c]]=b[c]:"currency"===c?d=b[c]:"items"!==c&&b[c]&&(a[c]=b[c]);return a},{},c));d&&(g.currencyCode=d);return g}},_checkGtag:function(a){var b={view_item:"detail",add_to_cart:"add",remove_from_cart:"remove",begin_checkout:"checkout",purchase:"purchase"},c=[];a&&"event"===a[0]&&b[a[1]]&&(a=this._convert(b[a[1]],a[2]))&&c.push(a);return c},_send:function(a){var b=[],c=this.allowedEvents,d,e;var h=0;for(e=a.length;h<e;h++){if((d=a[h])&&d.ymetrikaEvent){var l=d.ymetrikaEvent;this._callHandlers(l);
"params"===l.type&&l.data&&(l.sended||(l.sended=[]),l.counter?this.counter&&this.counter.params&&this.counterId==l.counter&&(this.counter.params(l.data),l.sended.push(this.counterId)):f.forEachKey(this.globalConfig.get("counters"),function(a,b){var c=a.split(":")[0];!f.inArray(l.sended,c)&&b&&b.params&&(b.params(l.data),l.sended.push(c))},this),l.status==this.status.NEW&&l.parent&&this.frameConnector&&this.frameConnector.checkFrame(g.parent)&&g.parent!==g&&(this.frameConnector.sendToParents({type:"params",
data:l.data},function(){l.status=this.status.OK},this),l.status=this.status.PENDING))}if(d&&d.ecommerce){var k={};var m=!1;f.forEachKey(d.ecommerce,function(a,b){0<=f.arrayIndexOf(c,a)&&(m=!0,k[a]=b)});m&&b.push(k)}b=b.concat(this._checkGtag(d))}b.length&&this.counter.params({__ym:{ecommerce:b}})}});ta.handlers=[];var Rb={asyncChunk:400,maxDuration:20,restTime:100,asyncBuffer:[],timeout:null,addAsyncItem:function(a,b,c,d,e){var g=this;this.asyncBuffer.push({fn:a,ctx:b,args:d||[],loggerName:e||""});
c?g.flushAsync(!0):(clearTimeout(this.timeout),this.timeout=f.setTimeout(function(){g.flushAsync();g.timeout=null},this.restTime))},chain:function(a,b,c,d){var e=this;a.push=function(a){throw'Try to push in Executor when it started "'+a+'"';};(function q(b,c,f){e.addAsyncItem(function(b,c,d){c=a[b++](c);b<=a.length-1&&q(b,c,d)},null,f,[b,c],d+"."+b)})(0,b,c)},callByTimeout:function(a,b){var c=+new Date,d=0,e=(b||0)+1,g=this;f.arrayEvery(this.asyncBuffer,function(b,h){if(b.isExecuted)return!0;w(function(){b.fn.apply(b.ctx,
b.args)},"AsyncExecutor."+b.loggerName)();d=+new Date-c;b.isExecuted=!0;this.asyncBuffer.splice(h,1);return a||0==this.asyncBuffer.length?!0:h>=this.asyncChunk||d>=this.maxDuration?(f.setTimeout(function(){g.callByTimeout(a,e)},this.restTime),!1):!0},this)},flushAsync:function(a){this.asyncBuffer.length&&this.callByTimeout(a)}},sb="GDPR-ok GDPR-cross GDPR-cancel GDPR-skip GDPR-frame-skip GDPR-frame-ya GDPR-frame-noya GDPR-open-start GDPR-eu-skip GDPR-open-fail GDPR-open-success GDPR-cookie-success GDPR-cookie-fail GDPR-skip-login GDPR-skip-domain GDPR-skip-na GDPR-skip-eu-na GDPR-skip-wv".split(" "),
ca=D.inherit({globalKey:"f1",MAX_SIZE:1E6,isYAN:!1,trigger:function(a){this.globalConfig.get("dataLayer").push({ymetrikaEvent:{type:a}})},initCounter:function(){},enabled:Y()&&-1<g.location.href.indexOf("yagdprcheck\x3d1"),_initComponent:function(){this._cookie=ca.cookie;this._sender=new Sa({fake:!0,globalConfig:this.globalConfig,forceNoRedirect:!0})},realise:function(a,b){this.initCounter.apply(g,a);this.globalConfig.set(this.globalKey,function(a){a()});b.length&&Rb.chain(b.concat([function(){b=
[]}]))},showPopup:function(a,b,c,d,e){var f=this;a=p.loadScript({src:"https://yastatic.net/q/global-notifications/cc/_lego-cc"+a+"."+b+".js"});f.trigger("GDPR-open-start");a.onerror=function(a){w(function(){throw a;},"gdpr-popup")();f.trigger("GDPR-open-fail");f.realise(c,d);f.frameConnector.sendToChildren({type:"GDPR-ok"})};a.onload=function(){f.trigger("GDPR-open-success");ta.handlers=ta.handlers.concat([{type:"GDPR-ok, GDPR-cross",callback:function(a){a.once||(e.create("gdpr","0",525600),f.realise(c,
d),f.frameConnector.sendToChildren({type:"GDPR-ok"}),a.once=!0)}},{type:"GDPR-cancel",callback:function(){e.create("gdpr","1");f.logCancel();f.frameConnector.sendToChildren({type:"GDPR-cancel"})}}])}},askGDPR:function(a,b,c,d,e,g){if(f.inArray([null,""],a))this.showPopup(b,c,d,e,g);else if("0"===a)this.trigger("GDPR-cookie-success"),this.realise(d,e);else if("1"===a)return this.trigger("GDPR-cookie-fail"),this.logCancel(),!1},logCancel:function(){this._sender.hit(function(){},!1)},handle:function(){var a=
this._sender,b=[],c=(m.getLanguage()||"").toLowerCase().split("-")[0],d="ontouchstart"in g?"-touch":"",e=this._cookie,h=e.read("gdpr"),l=e.read("yaGdprCheck"),k=this,p=this.globalConfig.get(this.globalKey),q=arguments;b.size=0;if(p)return p(function(){k.realise(q,b)});f.inArray("ru en kk be ky tr tt uk".split(" "),c)||(c="en");if(!this.enabled&&("0"===h||m.isSafariWebView()||m.isAndroidWebView()||!Y()||e.read("yandex_login")||this.disable))return e.read("yandex_login")?this.trigger("GDPR-skip-login"):
Y()?"0"===h?this.trigger("GDPR-skip"):m.isSafariWebView()||m.isAndroidWebView()?this.trigger("GDPR-skip-wv"):this.trigger("GDPR-skip-na"):this.trigger("GDPR-skip-domain"),this.realise(q,b);this.globalConfig.set(this.globalKey,function(a,c){var d=0;try{d=JSON.stringify(c).length||0}catch(M){}b.size+d<k.MAX_SIZE?(b.push(a),b.size+=d):f.warning("GDPR buffer is exceeded")});a.hit(function(a){if(a.params.eu||l||k.enabled)if(k.frameConnector&&k.frameConnector.addHandler("isYandex",function(){return{type:"isYandex",
isYandex:Y()}}),k.frameConnector.isIframe){k.frameConnector.sendToParents({type:"isYandex"},function(a,c){var d=!1;clearTimeout(g);c[0].isYandex?(k.trigger("GDPR-frame-ya"),k.frameConnector.addHandler("GDPR-ok",function(){d||(e.create("gdpr","0",525600),k.realise(c,b),d=!0)}),k.frameConnector.addHandler("GDPR-cancel",function(){e.create("gdpr","1")})):(k.trigger("GDPR-frame-noya"),k.realise(c,b))});var g=f.setTimeout(function(){k.trigger("GDPR-frame-skip");k.realise(q,b)},2E3)}else k.askGDPR(h,d,
c,q,b,e);else return a.params.eu?k.trigger("GDPR-skip-eu-na"):k.trigger("GDPR-eu-skip"),k.realise(q,b)})}});ca.globalKey="f1";ca.cookie=new G({skipPrefix:!0});ca.getState=function(a){var b=ca.cookie.read("gdpr");a=f.reduce(function(a,b){b.ymetrikaEvent&&f.inArray(sb,b.ymetrikaEvent.type)&&a.push(f.arrayIndexOf(sb,b.ymetrikaEvent.type));return a},[],a.get("dataLayer"));return a.length?(a=a.join(","),b&&(a+="-"+(f.inArray(["0","1"],b)?b:"2")),a):""};var Sb={init:function(a,b){var c=h.createElement("img");
a&&a.account&&a.tmsec&&b&&(c.src="https://www.tns-counter.ru/V13a****"+a.account+"/ru/UTF-8/tmsec\x3d"+a.tmsec+"/"+b)}};m.isIE=function(){return h&&!h.addEventListener||!1};m.isChromePdf=function(){var a,b=navigator.plugins;if(b&&b.length)for(a=0;a<b.length;a++)if(/Chrome PDF Viewer/.test(b[a].name))return!0;return!1};var V={};V._cookie=new G({onlyCurrentDomain:!0});V._check=w(function(){return-1<g.location.href.indexOf("_ym_debug\x3d1")||g._ym_debug||"1"===V._cookie.read("debug")});V.enabled=V._check();
V.log=w(function(){(-1<E.href.indexOf("_ym_debug\x3d1")||g._ym_debug)&&this._cookie.create("debug","1");g.console&&console.log&&this._check()&&(V.enabled=!0,console.log.apply(console,arguments))},"DebugConsole.log");var Tb=z.inherit({resource:"clmap",retry:!0,transports:[S],sendClick:function(a,b,c,d){this.send({"page-url":a,"pointer-click":b},{},c,d)}}),Ub=D.inherit({filter:null,ignoreTags:[],quota:0,isTrackHash:!1,protocol:"",counterId:0,counterType:0,startTime:0,MAX_LEN_PATH:128,TIMEOUT_CLICK:50,
TIMEOUT_SAME_CLICKS:1E3,DELTA_SAME_CLICKS:2,tags:"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 svg circle clippath ellipse defs foreignobject g glyph glyphref image line lineargradient marker mask path pattern polygon polyline radialgradient rect set text textpath title".split(" "),
_initComponent:function(){var a,b;this._lastClick=null;this.hasQuota=!!this.quota;this._quota=this.quota;this._ignoreTags=[];if(this.ignoreTags)for(a=0;a<this.ignoreTags.length;a++)this.ignoreTags[a]&&f.mergeArrays(this._ignoreTags,[String(this.ignoreTags[a]).toUpperCase()]);this._cacheTags={};a=59;var c=String.fromCharCode;for(b=0;b<this.tags.length;b++)this._cacheTags[this.tags[b]]=c(a),c(a),a++;this._sender=new Tb({globalConfig:this.globalConfig,protocol:this.protocol,counterId:this.counterId,
counterType:this.counterType});this._start=!1;this.start()},destroy:function(){this.stop()},start:function(){if(!this._start)k.on(h,"click",this._handler,this);this._start=!0},stop:function(){this._start&&k.un(h,"click",this._handler,this);this._start=!1},setTrackHash:function(a){this.isTrackHash=a},_isIgnore:function(a){return p.classNameExists(a,"(ym-disable-clickmap|ym-clickmap-ignore)")},_handler:function(a){a={el:J.getTarget(a),pos:J.getPos(a),button:J.getMouseButton(a),time:+new Date};if(this._isTrackingClick(a)){var b=
p.getElementSize(a.el);var c=p.getElementXY(a.el);b=["rn",f.random(),"x",Math.floor(65535*(a.pos[0]-c[0])/(b[0]||1)),"y",Math.floor(65535*(a.pos[1]-c[1])/(b[1]||1)),"t",Math.floor((a.time-this.startTime)/100),"p",this._getElPath(a.el)];c=B().href;this.isTrackHash?f.mergeArrays(b,["wh","1"]):c=c.split("#")[0];this._sender.sendClick(f.trim(c,Ba),b.join(":"));this._lastClick=a}},_isTrackingClick:function(a){var b;if(g.ymDisabledClickmap||f.isMetrikaPlayer()||!a.el)return!1;var c=a.el.tagName;if((2==
a.button||3==a.button)&&"A"!=c||this.filter&&!this.filter(a.el,c))return!1;for(b=0;b<this._ignoreTags.length;b++)if(this._ignoreTags[b]==c)return!1;for(c=a.el;c;){if(this._isIgnore(c))return!1;c=c.parentNode}if(this._lastClick){if(a.time-this._lastClick.time<this.TIMEOUT_CLICK)return!1;c=Math.abs(this._lastClick.pos[0]-a.pos[0]);b=Math.abs(this._lastClick.pos[1]-a.pos[1]);var d=a.time-this._lastClick.time;if(this._lastClick.el==a.el&&c<this.DELTA_SAME_CLICKS&&b<this.DELTA_SAME_CLICKS&&d<this.TIMEOUT_SAME_CLICKS)return!1}if(this.hasQuota){if(!this._quota)return!1;
this._quota--}return!0},_getElPath:function(a){for(var b="";a&&a.parentNode&&"BODY"!=a.tagName&&"HTML"!=a.tagName;)b+=this._cacheTags[a.tagName]||"*",b+=p.getElementNeighborPosition(a)||"",a=a.parentNode;return f.trim(b,this.MAX_LEN_PATH)}}),tb=D.inherit({injectHash:{Wjw75ghm7fa7JW8p:"https://yastatic.net/metrika-static-watch/assessor-init.js",Z4RhWJNDJanzkGJa:"https://yastatic.net/metrika-static-watch/assessor-compare.js"},ASSESSOR_COOKIE:"assessor",REMOTE_CONTROL:"i",getInjectHash:function(){var a=
{};f.forEachKey(this.injectHash,function(b){a[ea+(""+f.fnv32a(b))]=this.injectHash[b]},this);return a},checkAssessor:function(){var a=[],b=this.getInjectHash();f.forEachKey(b,function(c){if((new RegExp(c)).test(g.location.hash)||G.get(this.ASSESSOR_COOKIE+c))G.set(this.ASSESSOR_COOKIE+c),a.push(b[c])},this);return a},_initComponent:function(){var a=this.checkAssessor();this.globalConfig.get(this.REMOTE_CONTROL)||(this.globalConfig.set(this.REMOTE_CONTROL,!0),tb.superclass._initComponent.apply(this,
arguments),this._executedMsgs={},k.on(g,"message",this._onMessage,this),a.length&&(this.globalConfig.set("oo",!0),this.globalConfig.get("stopRecoder",function(){})(),f.arrayEvery(a,function(a){p.loadScript({src:a},g);return 1})))},_buildRemoteIframe:function(a){var b=f.getNativeFunction("createElement",h)("div"),c=p.getBody()||h.documentElement;if(c){b.innerHTML='\x3ciframe name\x3d"RemoteIframe" allowtransparency\x3d"true" style\x3d"position: absolute; left: -999px; top: -999px; width: 1px; height: 1px;"\x3e\x3c/iframe\x3e';
var d=b.firstChild;d.onload=function(){p.loadScript({src:a},d.contentWindow)};g._ym__remoteIframeEl=d;b.createShadowRoot||b.webkitCreateShadowRoot?(c.appendChild(b),b.removeChild(d),(c=b.createShadowRoot?b.createShadowRoot():b.webkitCreateShadowRoot())&&c.appendChild(d),g._ym__remoteIframeContainer=b):(c.appendChild(d),g._ym__remoteIframeContainer=d)}},_isAllowedLang:function(a){return-1!==f.arrayIndexOf(["ru","uk","en","tr"],a)},_isAllowedOrigin:function(a){return/^http:\/\/([\w\-.]+\.)?webvisor\.com\/?$/.test(a)},
_isAllowedStatic:function(a){return/^(([\w\-.]+\.)?dev\.webvisor\.com|yastatic\.net)$/.test(a)},_onMessage:function(a){try{var b=a.origin}catch(c){}b&&this._isAllowedOrigin(b)&&(b=T.parse(a.data))&&"appendremote"===b.action&&this._isAllowedStatic(f.parseUrl(b.domain).host)&&this._isAllowedLang(b.lang)&&!this._executedMsgs[b.id]&&(this._executedMsgs[b.id]=!0,g._ym__postMessageEvent=a,g._ym__inpageMode=b.inpageMode,g._ym__initMessage=b.initMessage,this._buildRemoteIframe(b.domain+"/cdn/inpage-remote/"+
(b.newScriptAddr?"_inpage-remote_":"inpage-remote.")+b.lang+".js"))}}),Vb={match:function(){this.enabled()&&k.ready(function(){var a=f.getNativeFunction("createElement",h)("iframe");a.onload=function(){ma.save("cm",v.getMinutes());p.removeNode(a)};a.style.display="none";a.src=x.protocol+"//"+x.host+"/metrika/watch_match.html";h.documentElement.appendChild(a)})},enabled:function(){return 1440<v.getMinutes()-ma.getNum("cm")&&"tr"===f.getTld()}};w(function(){(function(a){function b(d){if(c[d])return c[d].exports;
var e=c[d]={i:d,l:!1,exports:{}};a[d].call(e.exports,e,e.exports,b);e.l=!0;return e.exports}var c={};b.m=a;b.c=c;b.d=function(a,c,f){b.o(a,c)||Object.defineProperty(a,c,{configurable:!1,enumerable:!0,get:f})};b.n=function(a){var c=a&&a.__esModule?function(){return a["default"]}:function(){return a};b.d(c,"a",c);return c};b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};b.p="";return b(b.s=3)})({0:function(a,b,c){b.__esModule=!0;b.listToArray=function(a){return a?[].slice.call(a):
[]}},1:function(a,b,c){b.__esModule=!0;var d=[".googlesyndication.com/","/googleads"];b.isGoogleSrc=function(a){return!(!a||!d.filter(function(b){return 0<a.indexOf(b)}).length)}},3:function(a,b,c){b.__esModule=!0;a={detectAd:c(4).detectAd};g.Ya?g.Ya.AdDetector?a=g.Ya.AdDetector:g.Ya.AdDetector=a:g.Ya={AdDetector:a};b.AdDetector=a},34:function(a,b,c){b.__esModule=!0;b.getParentElementsCount=function(a){for(var b=0;;)if(a=a.parentElement)b++;else return b}},4:function(a,b,c){b.__esModule=!0;var d=
c(5),e=c(9),f=c(34),l=c(6),k=h.body,m=h.documentElement;b.detectAd=function(){var a=g.pageYOffset||m.scrollTop||k.scrollTop,b=g.pageXOffset||m.scrollLeft||k.scrollLeft,c=m.clientTop||k.clientTop||0,h=m.clientLeft||k.clientLeft||0,n=m.scrollWidth||m.offsetWidth||g.innerWidth,r=m.scrollHeight||m.offsetHeight||g.innerHeight,p=l.getFrienlyWindowsTree(g),u=[];l.windowsTreeEach(p,function(a){var b=a.window,c=a.parent,f=0<d.getParentFriendlyIFrames(b.document.documentElement).length,g=e.getAdsInWindow(b,
{isInIFrame:f});f=g.adElements;g=g.iframeProviders;if(c){var h=b.frameElement,l=u.filter(function(a){return a.windowsTree===c})[0].adElements;g.forEach(function(a){l.push({provider:a,element:h})})}u.push({windowsTree:a,adElements:f})});u.forEach(function(a){a.adElements=a.adElements.sort(function(a,b){return f.getParentElementsCount(a.element)-f.getParentElementsCount(b.element)})});var H=[],ka=[];u.forEach(function(a){var b=a.windowsTree,c=b.parent;a=a.adElements;b=d.getParentFriendlyIFrames(b.window.document.documentElement);
var e=b[b.length-1];a.forEach(function(a){var b=a.element;ka.push({provider:a.provider,element:c?e:b})})});ka.forEach(function(d){var e=d.element;var f=e.getBoundingClientRect();var g=f.top+a-c;f=f.left+b-h;var l=e.clientWidth;e=e.clientHeight;var k=f+l,m=g+e,q=0>f?0:f<n?f:n,p=0>g?0:g<r?g:r;100<=((k>n?n:k>q?k:q)-q)*((m>r?r:m>p?m:p)-p)&&H.push({top:g,left:f,width:l,height:e,provider:d.provider})});return{page:{width:n,height:r},window:{top:a,left:b,width:g.innerWidth,height:g.innerHeight},ads:H}}},
5:function(a,b,c){b.__esModule=!0;b.getParentFriendlyIFrames=function(a){for(var b=[];;)try{if(a=a.ownerDocument.defaultView.frameElement)b.push(a);else return b}catch(n){return b}}},6:function(a,b,c){function d(a){return h.listToArray(a.document.getElementsByTagName("iframe")).filter(function(a){if(g.isSafari)return!1;try{return a.contentWindow.document}catch(t){return!1}}).map(function(a){return a.contentWindow})}function e(a,b){var c={window:a,children:[],parent:b};c.children=d(a).map(function(a){return e(a,
c)});return c}function f(a,b){b(a);a.children.forEach(function(a){return f(a,b)})}b.__esModule=!0;var g=c(7),h=c(0);b.getFrienlyWindowsTree=e;b.windowsTreeEach=f},7:function(a,b,c){b.__esModule=!0;a=c(8);b.isSafari=a.isSafari()},8:function(a,b,c){b.__esModule=!0;b.isSafari=function(){var a=navigator.userAgent.toLowerCase();return-1!==a.indexOf("safari")&&-1===a.indexOf("chrome")&&-1===a.indexOf("android")}},9:function(a,b,c){b.__esModule=!0;var d=c(0),e=c(1);b.getAdsInWindow=function(a,b){function c(a,
b){b.forEach(function(b){m.push({provider:a,element:b})})}var f=b.isInIFrame,g=a.document.body,h=d.listToArray(g.querySelectorAll("img")),l=d.listToArray(g.querySelectorAll("iframe")),k=d.listToArray(g.querySelectorAll("script")),n=d.listToArray(g.querySelectorAll("div")),m=[],p=[],u=d.listToArray(g.querySelectorAll("yatag")),v=d.listToArray(g.querySelectorAll("yatag yatag"));c("yandex",u.filter(function(a){return-1===v.indexOf(a)}));c("adriver",l.filter(function(a){return(a=a.src)&&-1<a.indexOf(".adriver.ru/")}));
c("adfox",l.filter(function(a){return(a=a.id)&&-1<a.toLowerCase().indexOf("adfox")}));c("adfox",h.filter(function(a){return(a=a.src)&&-1<a.indexOf("/banners.adfox.ru/")}));c("adfox",n.filter(function(a){return-1<a.id.indexOf("AdFox_banner_")}));f&&h.filter(function(a){return(a=a.src)&&-1<a.indexOf(".adfox.ru/")}).length&&p.push("adfox");l.filter(function(a){return e.isGoogleSrc(a.src)}).forEach(function(a){m.push({provider:"google",element:a})});f&&k.filter(function(a){return e.isGoogleSrc(a.src)}).length&&
p.push("google");c("awaps",l.filter(function(a){return(a=a.src)&&-1<a.indexOf("awaps.yandex.net/")}));c("criteo",l.filter(function(a){var b=a.src;a=a.id;return b&&(-1<b.indexOf(".criteo.com/")||a&&-1<a.indexOf("cto_iframe_"))?!0:!1}));return{adElements:m,iframeProviders:p}}}})},"",!0)();var Wb={init:function(a,b){if(Math.random()<(b||.005)&&!u.get("adDetect")){u.set("adDetect",!0);var c=function(b){var c=g.Ya.AdDetector.detectAd();var d=c.window;var e=c.page;a.sendParams({__ym:{ads:{w:{t:d.top,l:d.left,
w:d.width,h:d.height},p:{w:e.width,h:e.height},a:f.map(function(a){return{t:a.top,l:a.left,w:a.width,h:a.height,p:a.provider}},c.ads),full:b?1:0}}})};var d=w(function(){k.un(g,"load",d);c(!0)},"",!0);k.on(g,"load",d);f.setTimeout(c,1E4,"AdDetector",!0)}}},ub=D.inherit({message:g.postMessage,spliter:":",nameSpace:"__yminfo",pending:{},childs:{},isIframe:!1,parents:{},dataToSend:{parents:[],childs:[]},checkFrame:function(a){try{var b=a&&a.postMessage}catch(c){return!1}return b},checkChildrenData:function(a,
b){f.arrayEvery(this.dataToSend.childs,function(c){-1==f.arrayIndexOf(c.tryTo,b.counterId)&&(c.tryTo.push(b.counterId),f.mixin(c.data,{toCounter:b.counterId}),this.sendToIframe(a,c.data,function(){c.sendedTo.push(b.counterId);c.callback&&c.callback(b,arguments)}));return!0},this)},checkParentData:function(a,b){f.arrayEvery(this.dataToSend.parents,function(c){-1==f.arrayIndexOf(c.tryTo,b.counterId)&&(c.tryTo.push(b.counterId),f.mixin(c.data,{toCounter:b.counterId}),this.sendToIframe(a,c.data,function(){c.sendedTo.push(b.counterId);
c.callback&&c.callback(b,arguments)}));return!0},this)},getHandlers:function(){return{initToChild:[{fn:function(a,b){a.source===g.top&&this.trigger("parentConnect",a,b)}}],initToParent:[{fn:function(a,b){this.childs[b.counterId]={info:b,window:a.source};this.checkChildrenData(a.source,b)}}],parentConnect:[{fn:function(a,b){this.parents[b.counterId]={info:b,window:a.source};this.checkParentData(a.source,b)}}]}},genMessage:function(a,b){var c={date:v.getMs(),key:Math.random(),dir:0};b&&(c={date:b[0],
key:b[1],dir:b[2]});f.mixin(a,{counterId:this.counterId,hid:this.hid});var d={data:a};d[this.nameSpace]=[this.nameSpace,c.date,c.key,c.dir].join(this.spliter);return{meta:c,string:T.stringify(d)}},sendToIframe:function(a,b,c,d){b=this.genMessage(b);var e=this,g=[b.meta.date,b.meta.key].join(this.spliter);this.checkFrame(a)&&(a.postMessage(b.string,"*"),this.pending[g]=f.bind(c,d||this),f.setTimeout(function(){delete e.pending[g]},5E3,this,"fc.toSendToIframe"))},sendToChildren:function(a,b,c){var d=
this,e=this.dataToSend.childs.push({sendedTo:[],tryTo:[],callback:b?f.bind(b,c||this):!1,data:a})-1;f.forEachKey(this.childs,function(a){this.dataToSend.childs[e].tryTo.push(a);return 1},this);f.keys(this.childs).length&&f.forEachKey(this.childs,function(b){this.sendToIframe(d.childs[b].window,f.mixin(a,{toCounter:b}),function(a){this.dataToSend.childs[e].sendedTo.push(b);this.dataToSend.childs[e].callback&&this.dataToSend.childs[e].callback(a)},this)},this)},sendToParents:function(a,b,c){var d=this.dataToSend.parents.push({sendedTo:[],
tryTo:[],callback:b?f.bind(b,c||this):!1,data:a})-1;f.forEachKey(this.parents,function(a){this.dataToSend.parents[d].tryTo.push(a);return 1},this);f.keys(this.parents).length&&this.sendToIframe(g.parent,a,function(a){f.forEachKey(this.parents,function(b){this.dataToSend.parents[d].sendedTo.push(b);this.dataToSend.parents[d].callback&&this.dataToSend.parents[d].callback(a)},this)},this)},addHandler:function(a,b,c){this.handlers[a]||(this.handlers[a]=[]);this.handlers[a].push({fn:b,ctx:c})},_initComponent:function(){var a=
g.document.getElementsByTagName("iframe"),b=0;ub.superclass._initComponent.apply(this,arguments);this.handlers=f.mixin({},this.getHandlers());this.isIframe=m.isIframe();if(this.message){for(b=0;b<a.length;b++){var c=a[b];(function(a,b){a.sendToIframe(b.contentWindow,{type:"initToChild"},function(c){a.childs[c.counterId]={info:c,window:b.contentWindow}})})(this,c)}this.isIframe&&this.sendToIframe(g.parent,{type:"initToParent"},function(a){this.trigger("parentConnect",{source:g.parent},a)});k.on(g,
"message",this.onMessage,this,{passive:!1,name:"FrameConnector"})}},trigger:function(a,b,c){var d=this;return f.map(function(a){a=a.fn.call(a.ctx||d,b,c)||{};return f.mixin(a,{counterId:d.counterId,hid:d.hid})},this.handlers[a])},DIR_INDEX:2,onMessage:function(a){var b,c=[];try{var d=a.data;d=T.parse(a.data);var e=d[this.nameSpace]}catch(l){return}if(e&&e.substring&&e.substring(0,this.nameSpace.length)==this.nameSpace){for(b=0;3>=b;b++){var g=f.arrayIndexOf(e,this.spliter);-1!==g?c.push(e.substring(0,
g)):c.push(e);e=e.substring(g+1)}b=c.splice(1,3);if((d=d.data)&&d.type&&this.handlers[d.type]&&"0"===b[this.DIR_INDEX]){if(!d.toCounter||d.toCounter===this.counterId){try{a.source}catch(l){return}d.counterId&&this.checkFrame(a.source)&&(g=this.trigger(d.type,a,d),a.source.postMessage(this.genMessage(g,[b[0],b[1],d.counterId]).string,"*"))}}else b[this.DIR_INDEX]==this.counterId&&f.isArray(d)&&f.arrayEvery(d,function(a){return a.counterId&&a.hid})&&(a=this.pending[[b[0],b[1]].join(this.spliter)])&&
a.apply(this,d)}}}),E=B(),Fa=v.getTimezone(),Ga=v.getTimestamp(),da=g.screen,Mb=64,Ba=m.isIE()?512:2048,Nb=m.isIE()?512:2048,Ia=m.isIE()?100:400,qb=100,db="noindex",vb=/\.(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)|psd|rar|rss|rtf|sea|sfv|sit|sha1|svg|tar|tif?f|torrent|ts|txt|vob|wave?|wma|wmv|wmf|webm|ppt(x|m|b)?|xls(x|m|b)?|pdf|phps|png|xpi|g?zip)$/i,
Xb=+new Date,fb,Ta,ea=function(){return"1212"}();u.init().setSafe("counters",{}).setSafe("hitParam",{}).setSafe("counterNum",0).setSafe("dataLayer",[]).setSafe("hitId",f.random(1,1073741824)).setSafe("_globalMetrikaHitId",f.random()).setSafe("v",ea);g.Ya.Metrika=function(a,b,c,d){var e=this;return w(function(){function n(a){var b=h.referrer||"",c,d;if((new RegExp("^https?://"+E.host+"/")).test(b))return!1;var e=a.patterns;for(c=0;c<e.length;c++){var g=new RegExp(e[c],"i");if(b.match(g))if(g=a.params||
[],g.length){var k=f.safeDecodeURIComponent((RegExp.$1||"").replace(/\+/g,"%20"));for(d=0;d<g.length;d++)if(k==f.safeDecodeURIComponent(g[d]))return!0}else return!0}return!1}function l(a,b){var c=!1,d;if(a&&"string"!=typeof a&&a.length)for(d=0;d<a.length;d++){var f=a[d].selector;var e=a[d].text;var g=f.charAt(0);f=f.slice(1);if("#"==g){if(g=h.getElementById(f))c=!0,b&&pa.unshift([g,g.innerHTML]),g.innerHTML=e}else if("."==g)for(g=p.getElementsByClassName(f),f=0;f<g.length;f++){c=!0;var k=g[f],l=e;
b&&pa.unshift([k,k.innerHTML]);k.innerHTML=l}}return c}function r(){var a;for(a=0;a<pa.length;a++)pa[a][0].innerHTML=pa[a][1]}function H(a,b){var c,d="";a=a&&a.replace(/^\?/,"");b=b&&b.replace(/^#/,"")||"";if(a){var e=a.split("\x26");for(c=0;c<e.length;c++){var g=e[c].split("\x3d");"_openstat"===g[0]&&(d=g[1])}}var h=b.split("?");for(c=0;c<h.length;c++){var k=h[c].split("\x26");for(e=0;e<k.length;e++)g=k[e].split("\x3d"),"_openstat"===g[0]&&(d=g[1])}d&&(d=-1<d.indexOf(";")?f.safeDecodeURIComponent(d):
Pa.decode(R.decode(d.replace(/[-*_]/g,function(a){return{"*":"+","-":"/",_:"\x3d"}[a]||a}))));return d&&(c=d.split(";"),4==c.length)?{service:c[0],campaign:c[1],ad:c[2],source:c[3]}:null}function q(a,b){var c=a!==E.href,d=h.referrer.replace(/\/$/,""),f=(b||"").replace(/\/$/,"");d=d!==f;f=0;d&&c?f=3:d?f=1:c&&(f=2);return f}function t(a,b){return w(function(){if(!e.isDestructing())return a.apply(this,arguments)},b||"")}function D(A){var K=!1;Na||(z.initCookie(),ob.init(u));z.retransmit(u);O&&Sb.init(O,
qa);Oa.init(Ba);if(u.get("hitParam")[W]){if(1!=c||u.get("counters")[W])return!1;K=!0}u.get("counters")[W]=e;u.get("hitParam")[W]=1;f.async(function(){z.initFingerPrint()});e._webvisor=y&&y.webvisor||!1;e._directCampaign=y&&y.directCampaign;y&&y.trackHash&&Y(!0);if(!K){Ca=new pb({protocol:"https:",globalConfig:u,counterId:a,counterType:c,hid:qa,tz:Fa,ts:Ga,url:E.href,enabled:e._webvisor});e.replacePhones();K=new rb({globalConfig:u});var t=function(K){var t=new eb({protocol:"https:",counterType:c,counterId:a,
trackHash:fa,hitId:qa,webvisor:e._webvisor,counter:e,globalConfig:u,counterNum:Ha}),L={ut:ua,he:y?~~y.httpError:0,ad:1==c&&g.Ya&&g.Ya.Direct,pv:!0,cpf:m.isChromePdf(),fu:q(X,oa),saveRef:!0};fb=+new Date;t.sendHit({url:X,referrer:oa,title:p.getDocumentTitle(),vParams:b,userParams:N,nohit:d,experiments:Ja,modes:L,visitColor:Ca.getVc(),hasPrerender:A,ts:Ga,tz:Fa,callback:function(d,A){var m;d=d||{};(m="0"!==d.pcs)||cb.initZZ();d.eu!==C&&u.set("isEU",d.eu);ma.init(A);Vb.match();Qb.sync(a,c,m,u);V.log("PageView. Counter ",
a,". URL: ",E.href,". Referrer: "+h.referrer,". Params: ",b);Ta||(Ta=+new Date);d.webvisor&&(d.webvisor.isEU=u.get("isEU"));if(!e.isDestructing()){Ca.start(d.webvisor);var p=d.mp2;m=new G({counterId:a});m.erase("mp2_substs");if(p){b:{var q=p.conditions;var t;if(q&&q.length)for(t=0;t<q.length;t++){var L=q[t];if("ref"==L.type)L=n(L);else if("adv"==L.type){var F;var P=L;var ha=g.Ya._metrika.counter._directCampaign;var v=P.ServiceNamePattern;var w=P.RefererPattern;L=ha?P.direct_orders:P.direct_camp;var y=
h.referrer,z=Z.parse(E.search),ia=H(E.search,E.hash),B={};var x=["source","medium","campaign","term","content"];for(F=0;F<x.length;F++)z["utm_"+x[F]]&&(B[x[F]]=z["utm_"+x[F]]);var D=ha?"direct.yandex.ru":ia&&ia.service||B.source;F=!1;if(!F&&v&&v.length)for(x=0;x<v.length;x++)if((new RegExp(v[x],"i")).test(D)){F=!0;break}if(!F&&!P.yandex_direct&&w&&w.length)for(v=0;v<w.length;v++)if((new RegExp(w[v],"i")).test(y)){F=!0;break}!F&&P.google_adwords&&z.gclid&&(F=!0);if(F&&L&&L.length&&(F=!1,ha=ha||ia&&
ia.campaign||B&&B.campaign))for(P=0;P<L.length;P++)if(L[P]==ha){F=!0;break}L=F}else L=!1;if(L){q[t].track_id&&m.create("mp2_track",q[t].track_id,43200);break b}}}q=m.read("mp2_track");p=p.substs&&p.substs[q];q&&p?(m.create("mp2_substs",f.toJSON(p)),m=l(p),e.params("__ym",m?"mp_trackid":"mp_trackid_bad",q)):r()}else r();k.on(g,"load",e.replacePhones,e)}e._inited=!0;K&&K()}})};K.sync(t)}M(!1);k.on(h,"click",aa);y&&(y.enableAll?(M(!0),S(!0),ka()):(y.clickmap&&S(y.clickmap),y.trackLinks&&M(y.trackLinks),
y.accurateTrackBounce&&ka(y.accurateTrackBounce)),y.triggerEvent&&f.async(function(){J.dispatchCustomEvent("yacounter"+a+"inited")}))}function x(){var a=new ca({frameConnector:ra,globalConfig:u,initCounter:D,disable:y?y.yaDisableGDPR:!1});a.handle.apply(a,arguments)}function M(a){var b={};switch(typeof a){case "string":b.on=!0;break;case "object":b.on=!0;break;case "boolean":b.on=a;break;default:return}e._trackLinks=b}function aa(a){e._trackLinks&&e._trackLinks.on&&ba(a)}function ba(a){var b=Eb(a),
c;if(b){a=!1;var d=(c=""+b.href)?c.split(/\?/)[0]:"";var e=function(a){var d=lb(b);Q.sendClickLink({url:c,title:c===d?"":d,modes:a})};if(vb.test(d)||vb.test(c)||mb(c,sa)||mb(d,sa))a=!0;var g=p.classNameExists(b,"ym-disable-tracklink");d=p.classNameExists(b,"ym-external-link");g||(g={ln:!0,dl:a},d?e(g):(d=b.hostname||f.parseUrl(b.href).hostname||"",Fb(B().hostname,d)?a?(g.ln=!1,e(g)):(a=lb(b))&&a!=c&&wa.set("il",f.trim(a,qb)):c&&-1!=c.search(/^ *(data|javascript):/i)||(g.ut=db,e(g))))}}function S(b){"undefined"===
typeof b&&(b=!0);!0===b&&(b={});e._clickmap&&e._clickmap.destroy();b&&(e._clickmap=new Ub({globalConfig:u,filter:b.filter,ignoreTags:b.ignoreTags,quota:b.quota,isTrackHash:b.isTrackHash,protocol:"https:",counterId:a,counterType:c,startTime:Xb}))}function da(a,b){function c(){if(!t){q&&f.clearTimeout(q);var c=p?A:A+ +new Date-K;c=b-c;0>c&&(c=0);q=f.setTimeout(function(){t=!0;e(!1);a()},c,"trackUserTime")}}function d(){n||(l=!0,p=!1,n=!0,c())}function e(a){var b;for(b=0;b<r.length;b+=3)if(a)k.on(r[b],
r[b+1],r[b+2],{name:"tabTrack"});else k.un(r[b],r[b+1],r[b+2])}var l=!1,n=!1,p=!0,A=0,K=+new Date,q=null,t=!1;if(m.isIE())f.setTimeout(a,b,"trackUserTime");else{var r=[g,"blur",function(){p=l=n=!0;A+=+new Date-K;K=+new Date;c()},g,"focus",function(){l||n||(A=0);K=+new Date;l=n=!0;p=!1;c()},h,"click",d,h,"mousemove",d,h,"keydown",d,h,"scroll",d];e(!0);c()}}function ka(b){"number"!==typeof b&&(b=15E3);if(!e._isAccurateTrackBounce){e._isAccurateTrackBounce=!0;var c=new U({counterId:a});var d=c.get("lastHit");
c.set("lastHit",v.getMs());((c=c.get("lastHit"))&&(!d||d<c-18E5)||!Gb(h.referrer,B().href)||.1>Math.random())&&da(function(){e.notBounce()},b)}}function ea(a){var b=function(){var a=B().hash.split("#")[1];if("undefined"==typeof a)return!1;var b=a.indexOf("?");0<b&&(a=a.substring(0,b));return a};var c=b();(function P(){var d=b();d!==c&&(a(),c=d);Ia=f.setTimeout(P,200,"trackHash")})()}function Y(a){if(!1===a)fa&&("onhashchange"in g?k.un(g,"hashchange",ja):f.clearTimeout(Ia),fa=!1);else if(a=ja,!fa){if("onhashchange"in
g)k.on(g,"hashchange",a);else ea(a);fa=!0}Q.setTrackHash(fa);e._trackHash=fa}function ja(){var a={ut:ua,ad:1==c&&g.Ya&&g.Ya.Direct,wh:!0,saveRef:!0,pv:!0};za=Qa.lastReferrer=Aa;Q.sendAjaxHit({url:B().href,title:p.getDocumentTitle(),referrer:za,modes:a});Aa=B().href}function Ka(a,b,c){a=Ra.parseValidate(a,b);b=[];a&&(b.push(a),c=c||{},f.isFunction(c.callback)&&(b.push(c.callback),c.ctx&&b.push(c.ctx)));b.length&&e.params.apply(e,b)}var ua="",za="",Aa=Qa.lastReferrer=E.href,Ba=0,Ca;u.setSafe("counter",
e);ya&&w(function(){throw ya.error;},"include."+ya.scope)();if("object"===typeof a){var y=a;d=a.defer;ua=a.ut;c=a.type;b=a.params;var N=a.userParams;var O=a.tns;var Ja=y.experiments;var Na=y.nck;var X=a.url;var oa=a.referrer;a=a.id}if(!g["disableYaCounter"+a]){Z.parse=function(a,b){var c={},d;a=a&&a.replace(/^\?/,"")||"";if(a.length){var e=a.split("\x26");for(d=0;d<e.length;d++)if(e[d]){var g=e[d].split("\x3d");if(g[0]){var h=f.safeDecodeURIComponent(g[0]);g=f.safeDecodeURIComponent((g[1]||"").replace(/\+/g,
"%20"));b&&h in c?f.isArray(c[h])?c[h].push(g):c[h]=[c[h],g]:c[h]=g}}}return c};var pa=[];X=X?X:E.href;oa=oa?oa:h.referrer;a=a||0;/^\d+$/.test(a)||(a=0);c=c||0;var W=a+":"+c;if(u.get("counters")[W])return u.get("counters")[W];var qa=u.get("hitId");var ra=new ub({counterId:a,hid:qa});u.set("counterNum",u.get("counterNum")+1);var Ha=u.get("counterNum");var Q=new la({protocol:"https:",counterType:c,counterId:a,hitId:qa,counter:e,globalConfig:u,counterNum:Ha});var Oa={init:function(a){if(g.performance&&
"function"===typeof performance.getEntries&&(a===C&&(a=1),!(Math.random()>=a))){a={1882689622:1,2318205080:1,3115871109:1,3604875100:1,339366994:1,2890452365:1,849340123:1,173872646:1,2343947156:1,655012937:1,1996539654:1,2065498185:1,823651274:1,12282461:1,1555719328:1,1417229093:1,138396985:1};var b=performance.getEntries(),c={},d;for(d=0;d<b.length;d++){var e=b[d];var h=e.name.replace(/^https?:\/\//,"").split("?")[0];var k=f.fnv32a(h);a[k]&&!c[h]&&(c[h]={dns:Math.round(e.domainLookupEnd-e.domainLookupStart),
tcp:Math.round(e.connectEnd-e.connectStart),duration:Math.round(e.duration),response:Math.round(e.responseEnd-e.requestStart),pages:E.href})}f.keys(c).length&&(new na).logParams({timings8:c})}}};Ba=24226447==a?1:.002;e.replacePhones=t(function(){var b,c;try{(b=(new G({counterId:a})).read("mp2_substs"))&&(c=T.parse(b))&&l(c,!0)}catch(L){}return e},"counter.replacePhones");e.reachGoal=t(function(b,c,d,f){2<=arguments.length&&"function"===typeof c&&(f=d,d=c,c=C);V.log("Reach goal. Counter: "+a+". Goal id: "+
b+". Params: ",c);Q.sendGoal(b,{vParams:c,callback:d,ctx:f});return e},"counter.reachGoal");e.trackLinks=t(function(a){M(a);return e},"counter.trackLinks");var wa=new U({counterId:a});e.hit=t(function(b,c,d,g,h,k){b?(f.isObject(c)&&(d=c.referer,g=c.params,h=c.callback,k=c.ctx,c=c.title),V.log("PageView. Counter "+a,". URL: "+b,". Referrer: "+d,". Params: ",g),Q.sendHit({url:b,title:c,referrer:d,modes:{fu:q(b,d)},vParams:g,callback:h,ctx:k})):f.warning("Empty hit url");return e},"counter.hit");e.params=
t(function(b){var c=arguments.length,d=c,g=[].slice.call(arguments,0);if(b){if(1<arguments.length){if(f.isFunction(arguments[c-1])){var h=arguments[c-1];d=c-1}else if(f.isFunction(arguments[c-2])){h=arguments[c-2];var k=arguments[c-1];d=c-2}g=[].slice.call(g,0,d);1<g.length&&(g=[f.array2Props(g)])}c=-1!==f.arrayIndexOf(f.keys(g[0]),"__ymu");(d=-1!==f.arrayIndexOf(f.keys(g[0]),"__ym")&&g[0].__ym.user_id)?V.log('Set user id "'+g[0].__ym.user_id+'"'):V.log((c?"User p":"P")+"arams. Counter "+a+". Params: ",
g[0]);Q.sendParams(g[0],h,k)}else f.warning("Wrong params");return e},"counter.params");ra.addHandler("pluginInfo",function(){return y},this);ra.addHandler("parentConnect",function(a,b){Q.paramsQueue.push({__ym:{parentIframe:{counterId:b.counterId,hid:b.hid}}})},this);e.file=t(function(a,b){a?(b=b||{},Q.sendFileUpload({url:a,title:b.title,vParams:b.params,callback:b.callback,ctx:b.ctx})):f.warning("Empty file url");return e},"counter.file");e.extLink=t(function(a,b){a?(b=b||{},Q.sendExtLink({url:a,
title:b.title,vParams:b.params,callback:b.callback,ctx:b.ctx})):f.warning("Empty link");return e},"counter.extLink");e.notBounce=t(function(a){var b=0;a=a||{};fb&&Ta&&(b=Ta-fb);Q.sendNotBounce(b,{callback:a.callback,ctx:a.ctx});return e},"counter.notBounce");var sa=[];e.addFileExtension=t(function(a){if(!a)return f.warning("Empty extension"),e;"string"===typeof a?sa.push(a):sa=sa.concat(a);return e});e.clickmap=function(a){S(a);return e};e.accurateTrackBounce=t(function(a){ka(a);return e});var Ia=
null;var fa=!1;e.trackHash=t(function(a){Y(a);return e});var Ra={requiredEcommerceFields:["currency","goods"],parseValidate:function(a,b){var c=this.validate(a,b),d;if(!c.isValid)return console&&console.log(c.message),!1;c={};c[a]={};b.currency&&(c.currencyCode=b.currency);b.goods&&(c[a].products=b.goods);for(d in b)b.hasOwnProperty(d)&&-1===f.arrayIndexOf(this.requiredEcommerceFields,d)&&(c[a].actionField||(c[a].actionField={}),c[a].actionField[d]=b[d]);return{__ym:{ecommerce:[c]}}},validate:function(a,
b){var c=!1,d="";if(f.isObject(b))switch(a){case "detail":case "add":case "remove":f.isArray(b.goods)&&b.goods.length?(c=f.arrayEvery(b.goods,function(a){return f.isObject(a)&&(f.isString(a.id)||f.isNumber(a.id)||f.isString(a.name)||f.isString(a.name))}))||(d="All items in 'goods' should be objects and contain 'id' or 'name' field"):d="Ecommerce data should contain 'goods' non-empty array";break;case "purchase":f.isNumber(b.id)||f.isString(b.id)?c=!0:d="Purchase object should contain string or number 'id' field"}else d=
"Ecommerce data should be an object";return{isValid:c,message:d}}};e.ecommerceDetail=t(function(a,b){Ka("detail",a,b);return e},"ecommerce.detail");e.ecommerceAdd=t(function(a,b){Ka("add",a,b);return e},"ecommerce.add");e.ecommerceRemove=t(function(a,b){Ka("remove",a,b);return e},"ecommerce.remove");e.ecommercePurchase=t(function(a,b){Ka("purchase",a,b);return e},"ecommerce.purchase");e.userParams=t(function(a,b,c){f.isObject(a)?e.params({__ymu:a},b||function(){},c):f.warning("Wrong user params");
return e},"uparams");e.experiments=t(function(a,b,c){Q.sendExperiments({callback:b,ctx:c,experiments:a});return e},"exps");e.id=e.setUserID=t(function(a,b,c){f.isString(a)||f.isNumber(a)?e.params({__ym:{user_id:a}},b||function(){},c):f.warning("Incorrect user ID");return e},"id");var Sa=new G;e.getClientID=t(function(){return Sa.read("uid")},"guid");e.enableAll=function(){M(!0);S(!0);ka();return e};e.uploadPage=function(){};e.destruct=t(function(){e._isDestructing=!0;k.un(h,"click",aa);k.un(g,"load",
e.replacePhones,e);Y(!1);Ca&&Ca.stop();u.set("stopRecoder",C);u.set("counter",C);S(!1);try{delete g["yaCounter"+a],delete u.get("counters")[W],delete u.get("hitParam")[W]}catch(A){}});e.isDestructing=function(){return!!e._isDestructing};Wb.init(Q);e._performanceTiming=nb;if(a)if(new ta({counter:e,counterId:a,globalConfig:u,frameConnector:ra,prefsEcommerce:y&&y.ecommerce,prefsUseDataLayer:y&&y.useDataLayer}),"prerender"===h.webkitVisibilityState){Q.sendPrerenderHit({url:E.href,title:p.getDocumentTitle(),
referrer:h.referrer});var xa=function(){"prerender"!==h.webkitVisibilityState&&(k.un(h,"webkitvisibilitychange",xa),x(!0))};k.on(h,"webkitvisibilitychange",xa)}else x(!1)}},"init")()};new tb({globalConfig:u});g.Ya.Metrika.counters=function(){var a=[];f.forEachKey(u.get("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};u.setSafe("getCounters",function(){var a=[];f.forEachKey(u.get("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&&g.Ya.Metrika&&new g.Ya.Metrika(g.ya_cid,g.ya_params,g.ya_class);g.ya_cid&&!g.ya_hit&&(g.ya_hit=function(a,b){g.Ya._metrika.counter&&
g.Ya._metrika.counter.reachGoal(a,b)});(function(){function a(a){try{delete g[a]}catch(n){g[a]=C}}var b=g.yandex_metrika_callback,c=g.yandex_metrika_callbacks,d;"function"==typeof b&&b();if("object"==typeof c)for(b=0;b<c.length;b++)if(d=c[b])c[b]=null,d();a("yandex_metrika_callback");a("yandex_metrika_callbacks")})();g.Ya.Metrika.informer=function(a){var b=!!g.Ya.Metrika._informer;Ya.Metrika._informer=a;Ya.Metrika._informer.domain="informer.yandex.ru";b||p.loadScript({src:"https://informer.yandex.ru/metrika/informer.js"})};
k.on(h,"click",w(function(a){var b=J.getTarget(a);if(b&&"ym-advanced-informer"===b.className){var c=b.getAttribute("data-lang");var d=b.getAttribute("data-cid");g.Ya.Metrika.informer({i:b,id:+d,lang:c});J.prevent(a)}},"adv-inf"),null,{passive:!1})})(this,this.document);