yastatic.net Open in urlscan Pro
2a02:6b8:20::215  Public Scan

URL: https://yastatic.net/s3/home-static/_/e/j/RAN1d9AKGhU1V0An5hLUG6kI4.js
Submission: On January 24 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

window.Ya&&Ya.Rum&&Ya.Rum.time&&Ya.Rum.time("2095"),function(){var e,t,n,i={150:function(e){e.exports=function(e){if(!e)return"";var t,n,i="";for(t in e)e.hasOwnProperty(t)&&(n=e[t],/^_temp/.test(t)&&"string"==typeof n?i+=" "+n:(n||0===n)&&(!0===n?i+=" "+t.toLowerCase():(n=n.toString(),/"/.test(n)&&(n=n.replace(/"/g,"&quot;")),i+=" "+t.toLowerCase()+'="'+n+'"')));return i}},9735:function(e){function t(e){return"boolean"!=typeof e&&null!=e?Array.isArray(e)?e.join(""):e:""}e.exports=function(e){return e.map(t).join("")},e.exports.oneElem=t},9582:function(){MBEM.decl("ad-mark",{__constructor:function(){this.__base.apply(this,arguments),this.bindTo(this.elem(home.cls.part("b-unit-wrapper")),"click",(function(e){return e.stopPropagation()}))}})},9089:function(){MBEM.decl("alice-pro",{__constructor:function(){this._tosearch=this.elem("switcher-button","search","yes"),this._toalice=this.elem("switcher-button","alice","yes"),this.bindTo(this._tosearch,"click",this.toggleSwitch.bind(this,!1)),this.bindTo(this._toalice,"click",this.toggleSwitch.bind(this,!0)),this._messenger=document.querySelector(".alice-pro__action-messenger"),this._search=document.querySelector(".alice-pro__action-search"),this._input=document.querySelector(".alice-pro__input"),this.bindTo(this._messenger||[],"click",this.onMessengerClick.bind(this)),this.bindTo(this._search||[],"click",this.onArrowClick.bind(this)),this.bindTo(this._input||[],"input",this.onInput.bind(this)),this.bindTo(this._input||[],"keydown",this.onKeydown.bind(this))},onArrowClick:function(){this.openAlice(),this.clear()},onMessengerClick:function(){this.openAlice(),this.clear()},openAlice:function(){window.dispatchEvent(new Event("alice-open")),window.scrollTo(0,0);var e=document.querySelector(".alice-fab"),t=e&&MBEM.getBlock(e,"alice-fab");null==t||t.forceRender(void 0,{type:"skill",id:"cc4d8e93-9f42-48a8-939a-1bed3e1ee463",text:this._val||""})},clear:function(){this._val="",this._input&&(this._input.value=""),this.update()},onInput:function(){this._input&&(this._val=this._input.value,this.update())},onKeydown:function(e){"Enter"!==e.key||e.ctrlKey||e.shiftKey||e.metaKey||e.altKey||(e.preventDefault(),this.openAlice(),this.clear())},update:function(){this._search&&this._messenger&&(this._val?(this._search.removeAttribute("disabled"),this._messenger.style.display="none"):(this._search.setAttribute("disabled",""),this._messenger.style.display=""))},toggleSwitch:function(e){this._tosearch[0].ariaPressed=String(!e),this._toalice[0].ariaPressed=String(e),this._tosearch[0].classList.toggle("alice-pro__switcher-button_pressed_yes",!e),this._toalice[0].classList.toggle("alice-pro__switcher-button_pressed_yes",e),document.body.classList.toggle("body_alice-pro_yes",e),document.body.classList.toggle("body_alice-pro_no",!e)}})},3171:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var i=n(1714),o=n(8086),r=n(7117),s=n(2e3);function a(e,t){if(e){var n=null,a=function(){return n||(n=t()),n},c=null,l=function(){return c||(c=Promise.resolve(t().content).catch((function(e){throw(0,o.H)({block:"dropdown3-binder"},e),e})))},u=null,d=function(){return u||(u=l().then((function(t){return function(e,t,n){e.classList.add("dropdown3");var o=MBEM.construct((0,i.M)(s.w,{mods:t.popupMods,mix:t.popupMix||""}));o.appendChild(n),t.scope?t.scope.appendChild(o):e.appendChild(o),MBEM.initAll(o,"i-mini-bem");var a=MBEM.getInitedBlock(o,"simple-popup");return a.on("show",(function e(){a.un("show",e),(0,r.Dn)(a.domElem)})),a.on("show",(function(){e.setAttribute("aria-expanded","true")})).on("hide",(function(){e.setAttribute("aria-expanded","false")})),t.popupCallback&&t.popupCallback(a),a}(e,a(),t)})),u)};Promise.resolve().then((function(){e.addEventListener("mouseover",(function t(){e.removeEventListener("mouseover",t),l()})),e.addEventListener("click",(function(t){if(!(t.target&&t.target instanceof Element&&t.target.closest(".simple-popup"))){var n=Date.now();d().then((function(t){if(t.isShown())t.hide();else{var n=a(),i=n.popupParams||{direction:"bottom-right",xOffset:8,yOffset:0,zIndexGroupLevel:0};t.show({owner:n.anchor||e,direction:i.direction||"bottom-right",xOffset:i.xOffset,yOffset:i.yOffset,zIndexGroupLevel:i.zIndexGroupLevel})}})).then((function(){var e=a().statName;e&&(0,r.DF)("tech",e+".popup.timing",{customParams:{time:Date.now()-n}})})),t.preventDefault()}}))}))}}},9626:function(){home.cls={full:function(e){return e},part:function(e){return e}}},6124:function(){"undefined"!=typeof home&&home.loadManager&&home.loadManager.trigger("js")},8589:function(){window.home=window.home||{}},6211:function(){MBEM.getInitedBlock=function(e,t){var n=MBEM.getBlock(e,t);if(!n){var i=MBEM.getNodeParams(e);if(!(i=i&&i[t]))return;n=MBEM.createBlock({node:e,block:t,params:i})}return n}},4386:function(){MBEM.initAll=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i-bem";MBEM.cls.contains(e,t)&&MBEM.initNode(e),MBEM.arrayFrom(e.querySelectorAll(".".concat(t))).forEach((function(e){MBEM.initNode(e)}))}},1230:function(){!function(){"use strict";var e;MBEM.construct=function(t){var n;if((e=e||document.createElement("div")).innerHTML=t,e.childNodes.length>1)for(n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.firstChild);else n=e.firstChild,e.removeChild(n);return n}}()},2649:function(){MBEM.ready=function(e){var t=!1,n=function(){t||(t=!0,e())};"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?setTimeout(n,0):(document.addEventListener("DOMContentLoaded",n,!1),document.addEventListener("load",n,!1))}},7922:function(){var e;e=function(e){return"onfocusin"in e},MBEM.decl("i-mini-visibilitychange",{__constructor:function(){this._hiddenProp="hidden",this._changeDocumentHidden=this._changeDocumentHidden.bind(this),this._normalize=this._normalize.bind(this),this._hiddenProp in document?document.addEventListener("visibilitychange",this._changeDocumentHidden):(this._hiddenProp="mozHidden")in document?document.addEventListener("mozvisibilitychange",this._normalize):(this._hiddenProp="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",this._normalize):(this._hiddenProp="msHidden")in document?document.addEventListener("msvisibilitychange",this._normalize):e(document)?document.onfocusin=document.onfocusout=this._normalize:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=this._normalize,MBEM.channel("sys").on("unmount",this._unmount.bind(this))},_changeDocumentHidden:function(){this._change(document.hidden)},_normalize:function(e){var t,n=e.type,i={focus:!1,focusin:!1,pageshow:!1,blur:!0,focusout:!0,pagehide:!0};t=function(e){return e in i}(n)?i[n]:document[this._hiddenProp],document.hidden=t,this._change(t)},_change:function(e){MBEM.channel("sys").trigger("visibilitychange",{hidden:e}),MBEM.channel("sys").trigger(e?"hidden":"visible")},_unmount:function(){this._hiddenProp in document?document.removeEventListener("visibilitychange",this._changeDocumentHidden):(this._hiddenProp="mozHidden")in document?document.removeEventListener("mozvisibilitychange",this._normalize):(this._hiddenProp="webkitHidden")in document?document.removeEventListener("webkitvisibilitychange",this._normalize):(this._hiddenProp="msHidden")in document?document.removeEventListener("msvisibilitychange",this._normalize):e(document)?document.onfocusin=document.onfocusout=function(){}:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=null}},{waitForVisible:function(e){document.hidden?MBEM.channel("sys").on("visible",(function t(){MBEM.channel("sys").un("visible",t),e()})):e()},unmount:function(){MBEM.channel("sys").trigger("unmount")}}),MBEM.createBlock({block:"i-mini-visibilitychange"})},2665:function(){window.ya=window.ya||{},ya.history=window.history&&history.pushState?{navigate:function(e){(e=e||{}).url&&(e.title||(e.title=""),e.data||(e.data=""),e.replace?history.replaceState(e.data,e.title,e.url):history.pushState(e.data,e.title,e.url))},onchange:function(e){window.addEventListener("popstate",(function(t){e.call(this,t.originalEvent)}))}}:null},3181:function(){!function(){if(!Object.assign){var e=function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n};try{Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:e})}catch(t){Object.assign=e}}}()},1804:function(){window.MordaRT=function(){this.listRE={}},MordaRT.prototype.siteInDomainList=function(e,t){for(var n,i=0,o=e.length;i<o;i++)if(n=e[i],this.listRE[n]||(this.listRE[n]=new RegExp("^"+n.replace(/\./g,"\\.").replace(/\*/g,"[^.]+")+"$")),t.match(this.listRE[n]))return!0;return!1},MordaRT.prototype.getHostname=function(e){0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e="//"+e);var t=document.createElement("a");return t.href=e,t.hostname},MordaRT.prototype.getEntries=function(e,t){if(!window.performance||!window.performance.getEntries)return{resources:{},resourcesCount:0};try{var n,i,o=window.performance.getEntries("resources"),r={},s=0;if(o&&o.length)for(var a=0,c=o.length;a<c;a++)if(n=o[a].initiatorType||"unknown",-1!==(i=this.getHostname(o[a].name)).indexOf(".")&&!this.siteInDomainList(e,i)){r[n]||(r[n]={});var l=t?this.quote(o[a].name):i;r[n][l]?r[n][l]++:r[n][l]=1,s++}return{resources:r,resourcesCount:s}}catch(u){return{resources:{},resourcesCount:0}}},MordaRT.prototype.quote=function(e){return e.replace(/"|%22/g,"&quot;")}},5524:function(){MBEM.decl("new-year-promo",{__constructor:function(){this._isScrollActive=!1,this.bindTo("content","click",this.__self.moveToFeed.bind(this.__self))},_checkParentOverflow:function(e){var t=document.querySelector(".body__wrapper"),n=e instanceof HTMLElement?e:null;if(e&&t)for(;n;){var i=getComputedStyle(n),o=i.overflowX,r=i.overflowY,s=n,a=s.scrollWidth,c=s.scrollHeight,l=s.offsetHeight,u=s.offsetWidth;if(n===t||n===document.body)return;if(("scroll"===o||"auto"===o)&&a>u||("scroll"===r||"auto"===r||!r)&&c>l)return!0;n=n.parentElement}}},{moveToFeed:function(){var e=document.querySelector(".body__wrapper"),t=document.querySelector(".new-year-feed"),n=document.documentElement.classList.contains("document_new-year-scroll_yes"),i=t&&MBEM.getBlock(t,"new-year-feed"),o=document.documentElement.classList.contains("document_disable-scroll_yes"),r=document.body.classList.contains("body_dialog_shown"),s=document.documentElement.classList.contains("document_new-year-feed-base_loaded"),a=document.documentElement.classList.contains("is-locked"),c=document.querySelector(".alice-container_alice-show"),l=document.querySelector(".simple-popup_shown");if(e&&t&&!n&&i&&!o&&!r&&s&&!a&&!c&&!l){try{var u,d;null===(u=window.AliceForWeb)||void 0===u||null===(d=u.lib)||void 0===d||d.hide()}catch(p){}var h=document.documentElement.scrollTop;document.documentElement.classList.add("document_new-year-feed_yes","document_new-year-scroll_yes"),document.documentElement.classList.remove("document_overflow-scroll_yes"),null==i||i.setMod("active","yes"),e.scrollTop=t.offsetHeight+h;var m=t.offsetHeight-window.innerHeight;this.smoothScroll(e.scrollTop,m,750).then((function(){document.documentElement.classList.add("document_main-content-hidden_yes"),document.documentElement.classList.add("document_overflow-scroll_yes"),setTimeout((function(){document.documentElement.classList.remove("document_new-year-scroll_yes");var e=document.scrollingElement;e&&(e.scrollTop=m)}),500)}))}},moveFromFeed:function(){var e,t,n=document.documentElement.classList.contains("document_new-year-scroll_yes"),i=document.querySelector(".body__wrapper"),o=document.querySelector(".new-year-feed"),r=document.querySelector(".scrollable-header__content"),s=document.querySelector(".scrollable-header__closed-point"),a=document.querySelector(".headline")||document.querySelector(".theader")||document.querySelector(".scrollable-header")||document.querySelector(".services-header"),c=o&&MBEM.getBlock(o,"new-year-feed");if(i&&o&&a&&!n&&c){var l=document.documentElement.scrollTop;document.documentElement.classList.add("document_new-year-scroll_yes"),document.documentElement.classList.remove("document_main-content-hidden_yes"),i.scrollTop=l,null===(e=MBEM.blocks["banner-media"])||void 0===e||null===(t=e.resizeIframe)||void 0===t||t.call(e),null==c||c.setMod("active","no");var u=0;r&&s&&(u=(r.clientHeight||0)-(s.clientHeight||0));var d=o.offsetHeight+u;this.smoothScroll(l,d,750).then((function(){document.documentElement.classList.remove("document_new-year-feed_yes"),document.documentElement.classList.add("document_overflow-scroll_yes"),i.scrollTop=u,setTimeout((function(){document.documentElement.classList.remove("document_new-year-scroll_yes");var e=document.scrollingElement;e&&(e.scrollTop=u)}),500)}))}},smoothScroll:function(e,t,n){return new Promise((function(i){var o=document.querySelector(".body__wrapper"),r=performance.now(),s=t-e;requestAnimationFrame((function a(c){var l=c-r,u=1-Math.pow(1-Math.min(l/n,1),3),d=e+s*Math.max(0,u);o&&(o.scrollTop=d),l<n?requestAnimationFrame(a):(o&&(o.scrollTop=t),i())}))}))}})},9904:function(){!function(){var e=0,t=!1;function n(){window.removeEventListener("focus",n),document.documentElement.classList.contains("pointerfocus")&&(t=!0,setTimeout((function(){t=!1})))}function i(){window.addEventListener("focus",n)}window.addEventListener("blur",i);var o=function(e){return Boolean(e&&"detail"in e)};function r(){document.documentElement.classList.toggle("pointerfocus",t),document.documentElement.classList.toggle("utilityfocus",!t)}function s(){clearTimeout(e),t=!1}function a(n){"click"===n.type&&o(n)&&0===n.detail||(t=!0,clearTimeout(e),e=window.setTimeout((function(){t=!1}),600))}document.documentElement.classList.add("pointerfocus"),document.documentElement.addEventListener("focus",r,{capture:!0}),document.documentElement.addEventListener("keydown",s),["mousedown","mouseup","click","pointerdown"].forEach((function(e){document.documentElement.addEventListener(e,a)})),window.addEventListener("spas-unmount-main",(function(){window.removeEventListener("blur",i),window.removeEventListener("focus",n),document.documentElement.removeEventListener("focus",r,{capture:!0}),document.documentElement.removeEventListener("keydown",s),["mousedown","mouseup","click"].forEach((function(e){document.documentElement.removeEventListener(e,a)}))}))}()},3049:function(){MBEM.decl({block:"scrollbar",modName:"scroll-direction",modVal:"column"},{_scrollSizeRatioProp:function(){return"height"},_scrollRatioProp:function(){return"top"},_getContentSize:function(){return this._scrollable.scrollHeight},_getParentSize:function(){return this._scrollable.offsetHeight},_getScroll:function(){return this._scrollable.scrollTop},_getScreenValue:function(e){return e.screenY},_scrollTopOrLeft:function(e){this._scrollable.scrollTop=e}})},6637:function(){MBEM.decl({block:"scrollbar",modName:"scroll-direction",modVal:"row"},{_scrollSizeRatioProp:function(){return"width"},_scrollRatioProp:function(){return"left"},_getContentSize:function(){return this._scrollable.scrollWidth},_getParentSize:function(){return this._scrollable.offsetWidth},_getScroll:function(){return this._scrollable.scrollLeft},_getScreenValue:function(e){return e.screenX},_scrollTopOrLeft:function(e){this._scrollable.scrollLeft=e}})},7475:function(){MBEM.decl("simple-popup",{__constructor:function(){if(this.bindTo("close","click",this.hide),this._windowResize=this._reposition,this.hasMod("overlay","yes")){var e,t;this._overlay=document.createElement("div"),this._overlay.className="simple-popup__overlay";var n=this.getMod("theme");n&&(this._overlay.className+=" simple-popup__overlay_theme_".concat(n)),null===(e=this.domElem)||void 0===e||null===(t=e.parentNode)||void 0===t||t.insertBefore(this._overlay,this.domElem)}},show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._prevOptions=t,this._owner=t.owner||null,this._overlay&&(this._overlay.style.zIndex=String(1e3*(t.zIndexGroupLevel||1)+1)),this.domElem.style.zIndex=String(1e3*(t.zIndexGroupLevel||1)+2),this._reposition(),t.direction&&this.setMod("direction",t.direction),this._showTime=Date.now(),this.bindTo(window,"resize",this._windowResize),this._timeout=window.setTimeout((function(){e._timeout=0,e.delMod("hiding"),e.setMod("shown",!0),e._overlay&&e.setMod(e._overlay,"shown",!0),e.trigger("show"),e.hasMod("autoclosable","yes")&&e.bindTo(document.body,"click",e._docClickHandler),e.hasMod("hide-on-scroll","yes")&&e.bindTo(window,"scroll",e._windowScrollHandler)}),50),this.hasMod("delay-close","yes")&&(this._closeDelaytimeout=window.setTimeout((function(){e.delMod("delay-close")}),1500))},_cleanup:function(){this._timeout&&(clearTimeout(this._timeout),this._timeout=0),this._closeDelaytimeout&&(clearTimeout(this._closeDelaytimeout),this._closeDelaytimeout=0),this.unbindFrom(document.body,"click",this._docClickHandler),this.unbindFrom(window,"resize",this._windowResize),this.unbindFrom(window,"scroll",this._windowScrollHandler)},hide:function(){this.hasMod("shown")&&(this.delMod("shown"),this.setMod("hiding",!0),this._overlay&&this.delMod(this._overlay,"shown"),this.trigger("hide"),this._cleanup())},isShown:function(){return this.hasMod("shown")},toggle:function(){this.isShown()?this.hide():this.show(this._prevOptions)},unmount:function(){var e,t;(this._cleanup(),this._overlay)&&(null===(t=this._overlay.parentNode)||void 0===t||t.removeChild(this._overlay));null===(e=this.domElem.parentNode)||void 0===e||e.removeChild(this.domElem),this.domElem=null},_docClickHandler:function(e){var t;!(this._showTime&&Date.now()-this._showTime>100&&e.target&&e.target instanceof Node)||this.domElem.contains(e.target)||null!==(t=this._owner)&&void 0!==t&&t.contains(e.target)||this.hide()},_windowScrollHandler:function(){this.hide()},_reposition:function(){var e,t=null===(e=this._owner)||void 0===e?void 0:e.getBoundingClientRect(),n=this.domElem.getBoundingClientRect(),i=this._prevOptions;t&&("bottom-right"===i.direction?(this.domElem.style.top="".concat(window.scrollY+t.bottom+(i.yOffset||0),"px"),this.domElem.style.left="".concat(window.scrollX+t.right-n.width+(i.xOffset||0),"px")):"top-left"===i.direction&&(this.domElem.style.top="".concat(window.scrollY+t.top-n.height+(i.yOffset||0),"px"),this.domElem.style.left="".concat(window.scrollX+t.left+(i.xOffset||0),"px")))}})},2e3:function(e,t,n){"use strict";n.d(t,{w:function(){return d}});var i=n(150),o=n.n(i),r=n(9735),s=n.n(r),a=(n(2e3),n(7843));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){var n;return"<div "+o()(Object.assign({class:(0,a.jY)("simple-popup",{mods:e.mods,mix:"i-mini-bem"+(e.mix?" "+e.mix:"")}),"data-bem":(0,a.Ms)(l(l({},e.js||{}),{},{"simple-popup":{}}))},e.attrs))+">"+(s().oneElem("<div class='simple-popup__content'>"+s().oneElem(e.content)+"</div>")+s().oneElem("yes"===(null===(n=e.mods)||void 0===n?void 0:n["has-close"])?"<button "+o()({class:"simple-popup__close","aria-label":"Close"})+"></button>":""))+"</div>"}},7220:function(){var e;e=function(){},window.addEventListener("spas-unmount-main",(function(){var t;!function(){var e,t,n,i,o,r,s,a,c,l,u,d,h=window.Ya;h&&(null===(e=(t=h.Rum).sendTrafficData)||void 0===e||e.call(t),null===(n=(i=h.Rum).finalizeLayoutShiftScore)||void 0===n||n.call(i),null===(o=(r=h.Rum).finalizeLargestContentfulPaint)||void 0===o||o.call(r),null===(s=(a=h.Rum).finalizeINP)||void 0===s||s.call(a),h.Rum._periodicTasks=[],h.Rum._markListeners={},h.triggerDelegatedCounter&&window.removeEventListener("mousedown",h.triggerDelegatedCounter),h.triggerPageScrollCounter&&window.removeEventListener("scroll",h.triggerPageScrollCounter),null===(c=h.StaticPrefetcher)||void 0===c||c._resetPrefetcher(),null===(l=h.asyncQueue)||void 0===l||l.clear(),null===(u=h.unlistenSkinChange)||void 0===u||u.call(h),((null===(d=h.Search)||void 0===d?void 0:d.SPASDestructors)||[]).forEach((function(e){return e()})))}(),function(){var e=window.MBEM;if(e){for(var t in e.blocks){var n,i,o;e.blocks.hasOwnProperty(t)&&(null===(n=e.blocks[t])||void 0===n||null===(i=(o=n).unmount)||void 0===i||i.call(o))}e.arrayFrom(document.querySelectorAll(".i-mini-bem")).forEach((function(t){var n=e.getNodeParams(t);if(n)for(var i in n){var o,r,s;n.hasOwnProperty(i)&&(null===(o=e.getBlock(t,i))||void 0===o||null===(r=(s=o).unmount)||void 0===r||r.call(s))}})),e.unmount(),delete window.MBEM.blocks,delete window.MBEM}}(),t={getSetting:e},window.Ya={Rum:t}}))},4852:function(e,t,n){window.Ya&&Ya.Rum&&(n(5122),n(4232),n(7524)),window.Ya&&Ya.Rum&&Ya.Rum.enabled&&(n(9506),Ya.Rum.debug&&Ya.Rum.debug())},8962:function(){var e;(e=window.Ya&&Ya.Rum)&&e.enabled&&(e.getLCPAdditionalParams=function(e){var t={},n=e.element;if(n){t["-className"]=encodeURIComponent(n.className),t["-tagName"]=n.tagName.toLowerCase();var i=n.getBoundingClientRect();t["-width"]=i.width,t["-height"]=i.height}return e.size&&(t["-size"]=e.size),t})},2574:function(e,t,n){"use strict";var i=window&&window.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};var o=n(6071);t.am=o.appendQueryString,o.stringifyUrlParams;var r,s=n(5593),a="application/json; charset=utf-8",c={Accept:a},l=function(){};function u(e,t,n,o){void 0===t&&(t={});var r=i({},"json"===t.format?c:{},t.headers),s=t.body,l="";return Object.keys(r).some((function(e){return"content-type"===e.toLowerCase()}))?l=String(s||""):(r["content-type"]=a,"string"!=typeof s&&(l=JSON.stringify(s))),d(e,i({},t,{method:o,headers:r}),n,l)}function d(e,t,n,i){var a=n.successCallback,c=void 0===a?l:a,u=n.failureCallback,d=void 0===u?l:u,h=t.headers,m=void 0===h?{}:h,p=t.queryParams,f=void 0===p?{}:p,_=t.timeout,g=void 0===_?3e4:_,v=t.credentials,b=void 0===v?"include":v,y=t.method,w=void 0===y?"GET":y,M=function(e,n){var i=e.response;if("json"===t.format)try{i=JSON.parse(i)}catch(o){return void d(r.JSON_PARSE_ERROR,e)}n?d(n,e,i):c(i,e)},E=new XMLHttpRequest;return E.open(w,o.appendQueryString(e,f)),E.withCredentials=s.shouldSendCredentials(e,b),E.timeout=g,Object.keys(m).forEach((function(e){return E.setRequestHeader(e,m[e])})),E.onload=function(){E.status>=200&&E.status<300?M(E):M(E,r.ERROR_STATUS_CODE)},E.onerror=function(){d(r.REQUEST_FAILED,E)},E.ontimeout=function(){d(r.TIMEOUT,E)},E.send(i),E}!function(e){e.TIMEOUT="TIMEOUT",e.REQUEST_FAILED="REQUEST_FAILED",e.JSON_PARSE_ERROR="JSON_PARSE_ERROR",e.ERROR_STATUS_CODE="ERROR_STATUS_CODE"}(r=t.iM||(t.iM={}))},5593:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9147);t.shouldSendCredentials=function(e,t){return!(!t||"omit"===t)&&("include"===t||i.getOrigin(e)===i.getOrigin(window.location))}},6071:function(e,t){"use strict";function n(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(String(e[t]))})).join("&")}Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyUrlParams=n,t.appendQueryString=function(e,t){var i=n(t);return 0===i.length?e:e.indexOf("?")>-1?e+"&"+i:e+"?"+i}},9147:function(e,t){"use strict";function n(e,t){if("function"!=typeof URL){var n=document.createElement("a");return n.href=e,{hostname:n.hostname,port:n.port,protocol:n.protocol,origin:n.origin}}try{return new URL(e,t)}catch(i){}}Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrl=n,t.getOrigin=function(e){var t="string"==typeof e?n(e):e;if(!t)return"";if(t.origin)return t.origin;var i=t.port?":"+t.port:"";return t.protocol+"//"+t.hostname+i},t.getHostname=function(e,t){var i=n(e,t);return i?i.hostname:""}},9506:function(){window.BEM&&BEM.channel("i-bem").onFirst("start-init",(function(){Ya.Rum.getSetting("sendBeforeBemInited")&&Ya.Rum.sendTimeMark("2418")})).onFirst("init",(function(){Ya.Rum.sendTimeMark("2295")}))},5122:function(){!function(e,t){if(!e)throw new Error("Rum: interface is not included");if(!e.enabled)return e.getSetting=function(){return""},e.getVarsList=function(){return[]},void(e.getResourceTimings=e.pushConnectionTypeTo=e.pushTimingTo=e.normalize=e.sendCounter=e.sendDelta=e.sendTimeMark=e.sendResTiming=e.sendTTI=e.makeSubPage=e.sendHeroElement=e.onReady=e.onQuietWindow=function(){});e.getVarsList=function(){var t=e._vars;return Object.keys(t).map((function(e){return e+"="+encodeURIComponent(t[e]).replace(/\*/g,"%2A")}))},e.setVars=function(t){Object.keys(t).forEach((function(n){e._vars[n]=t[n]})),x(),O()};var n,i,o="690.1033",r="690.2096.207",s="690.2096.2877",a="690.2096.2892",c="690.2096.2044",l="690.2096.361",u="690.2096.4004",d=3,h=3e3,m={connectEnd:2116,connectStart:2114,decodedBodySize:2886,domComplete:2124,domContentLoadedEventEnd:2131,domContentLoadedEventStart:2123,domInteractive:2770,domLoading:2769,domainLookupEnd:2113,domainLookupStart:2112,duration:2136,encodedBodySize:2887,entryType:2888,fetchStart:2111,initiatorType:2889,loadEventEnd:2126,loadEventStart:2125,nextHopProtocol:2890,redirectCount:1385,redirectEnd:2110,redirectStart:2109,requestStart:2117,responseEnd:2120,responseStart:2119,secureConnectionStart:2115,startTime:2322,transferSize:2323,type:76,unloadEventEnd:2128,unloadEventStart:2127,workerStart:2137},p={visible:1,hidden:2,prerender:3},f={bluetooth:2064,cellular:2065,ethernet:2066,none:1229,wifi:2067,wimax:2068,other:861,unknown:836,0:836,1:2066,2:2067,3:2070,4:2071,5:2768},_={"first-paint":2793,"first-contentful-paint":2794},g=Object.keys(_).length,v=e.getTime,b=window.PerformanceObserver,y=window.performance||{},w=y.timing||{},M=y.navigation||{},E=navigator.connection,k={},T={},S=e._deltaMarks,C=document.createElement("link"),B=document.createElement("a"),I="function"==typeof y.getEntriesByType,P=w.navigationStart;function x(){n=e.getVarsList(),e.getSetting("sendClientUa")&&n.push("1042="+encodeURIComponent(navigator.userAgent))}function O(){i=n.concat(["143.2129="+P])}function R(e){function t(){removeEventListener("DOMContentLoaded",t),removeEventListener("load",t),e()}"loading"===document.readyState?(addEventListener("DOMContentLoaded",t),addEventListener("load",t)):e()}function L(){e.getSetting("disableOnLoadTasks")||(removeEventListener("load",L),function(){var t=e.getSetting("periodicStatsIntervalMs");t||null===t||(t=15e3);t&&(N=setInterval(z,t));addEventListener("beforeunload",z)}(),function(){if(!b)return;K(y.getEntriesByType("navigation")),K(y.getEntriesByType("resource"));try{new b((function(e){K(e.getEntries())})).observe({entryTypes:["resource","navigation"]})}catch(t){}e._periodicTasks.push(X)}(),function(){if(!b)return;try{new b((function(e,t){var n=e.getEntries()[0];if(n){var i=n.processingStart,o={duration:n.duration,js:n.processingEnd-i,name:n.name};n.target&&(o.target=J(n.target)),Y("first-input",i-n.startTime,o),t.disconnect()}})).observe({type:"first-input",buffered:!0})}catch(e){}}(),function(){if(!I)return;var e=y.getEntriesByType("navigation")[0];if(e){var t=[];fe(t,e),de(t);var i=y.getEntriesByName("yndxNavigationSource")[0];i&&t.push("2091.186="+i.value),ge(a,n.concat(t))}}(),function(){if(!b)return;var t=e.getSetting("clsWindowGap")?e.getSetting("clsWindowGap"):1/0,n=e.getSetting("clsWindowSize")?e.getSetting("clsWindowSize"):1/0,i=new b((function(e){var i=e.getEntries();null==ee&&(ee=0);for(var o=0;o<i.length;o++){var r=i[o];r.hadRecentInput||(Z&&r.startTime-$[$.length-1].startTime<t&&r.startTime-$[0].startTime<n?(Z+=r.value,$.push(r)):(ne(),Z=r.value,$=[r]))}ne()}));try{i.observe({type:"layout-shift",buffered:!0})}catch(o){}addEventListener("visibilitychange",(function e(){if("hidden"===document.visibilityState){removeEventListener("visibilitychange",e);try{"function"==typeof i.takeRecords&&i.takeRecords(),i.disconnect()}catch(o){}ie()}})),addEventListener("beforeunload",ie)}(),function(){if(!b||!e.getSetting("forcePaintTimeSending")&&e.isVisibilityChanged())return;var t=new b((function(e){for(var t=e.getEntries(),n=0;n<t.length;n++){var i=t[n];oe=i.renderTime||i.loadTime,re=i}se||(U("largest-loading-elem-paint",oe),se=!0)}));try{t.observe({type:"largest-contentful-paint",buffered:!0})}catch(n){}addEventListener("visibilitychange",(function e(){if("hidden"===document.visibilityState){removeEventListener("visibilitychange",e);try{"function"==typeof t.takeRecords&&t.takeRecords(),t.disconnect()}catch(n){}ae()}})),addEventListener("beforeunload",ae)}())}function A(){var t=w.domContentLoadedEventStart,i=w.domContentLoadedEventEnd;if(0!==t||0!==i){var r=0===w.responseStart?P:w.responseStart,s=0===w.domainLookupStart?P:w.domainLookupStart,a=n.concat(["2129="+P,"1036="+(s-P),"1037="+(w.domainLookupEnd-w.domainLookupStart),"1038="+(w.connectEnd-w.connectStart),w.secureConnectionStart&&"1383="+(w.connectEnd-w.secureConnectionStart),"1039="+(w.responseStart-w.connectEnd),"1040="+(w.responseEnd-r),"1040.906="+(w.responseEnd-s),"1310.2084="+(w.domLoading-r),"1310.2085="+(w.domInteractive-r),"1310.1309="+(i-t),"1310.1007="+(t-r),navigator.deviceMemory&&"3140="+navigator.deviceMemory,navigator.hardwareConcurrency&&"3141="+navigator.hardwareConcurrency]);Object.keys(m).forEach((function(e){e in w&&w[e]&&a.push(m[e]+"="+_e(w[e],P))})),e.vsStart?(a.push("1484="+(p[e.vsStart]||2771)),e.vsChanged&&a.push("1484.719=1")):a.push("1484="+p.visible),M&&(M.redirectCount&&a.push("1384.1385="+M.redirectCount),1!==M.type&&2!==M.type||a.push("770.76="+M.type)),de(a),ge(o,a)}else setTimeout(A,50)}x(),O(),e.ajaxStart=0,e.ajaxComplete=0,R((function(){if(!P)return;setTimeout((function(){e.sendTimeMark=U,e.sendResTiming=V,e.timeEnd=H;for(var t=e._defRes;t.length;){var n=t.shift();V(n[0],n[1])}for(var i=e._defTimes;i.length;){var o=i.shift();U(o[0],o[1],!1,o[2])}Object.keys(S).forEach((function(e){Y(e)})),A(),j(),e.getSetting("sendAutoElementTiming")&&ce(),le(),"complete"===document.readyState?L():addEventListener("load",L)}),0)})),e._getCommonVars=function(){return n};var N,D={},F=0;function j(){if(I&&(e.getSetting("forcePaintTimeSending")||!e.isVisibilityChanged())){for(var t=y.getEntriesByType("paint"),n=0;n<t.length;n++){var i=t[n],o=_[i.name];o&&!D[i.name]&&(D[i.name]=!0,F++,U("1926."+o,i.startTime))}if(F<g)try{new b((function(e,t){j(),t&&t.disconnect()})).observe({entryTypes:["paint"]})}catch(r){}}}function U(n,i,o,s){i===t&&(i=v()),o!==t&&!0!==o||e.mark(n,i);var a=pe(n);if(a.push("207="+_e(i)),q(a,s)){ge(r,a),k[n]=k[n]||[],k[n].push(i);var c=e._markListeners[n];c&&c.length&&c.forEach((function(e){e(i)}))}}function q(e,n){if(n){if(n.isCanceled&&n.isCanceled())return!1;var i=e.reduce((function(e,t,n){"string"==typeof t&&(e[t.split("=")[0]]=n);return e}),{});Object.keys(n).forEach((function(o){if("function"!=typeof n[o]){var r=i[o],s=o+"="+n[o];r===t?e.push(s):e[r]=s}}))}return!0}function H(e,t){var n=S[e];n&&0!==n.length&&(n.push(v(),t),Y(e))}function Y(n,i,o,r){var a,c,l,u=S[n];if(void 0!==i?a=(c=r&&r.originalEndTime?r.originalEndTime:e.getTime())-i:u&&(a=u[0],c=u[1],l=u[2]),a!==t&&c!==t){var d=pe(n);d.push("207.2154="+_e(a),"207.1428="+_e(c),"2877="+_e(c-a)),q(d,o)&&q(d,l)&&(ge(s,d),delete S[n])}}function V(t,n){he(n,(function(i){if(i){var o=pe(t);e.getSetting("sendUrlInResTiming")&&o.push("13="+encodeURIComponent(n)),fe(o,i[i.length-1]),ge(c,o)}}))}function z(){var t=!1;e._periodicTasks.forEach((function(e){e()&&(t=!0)})),t||clearInterval(N)}e.getTimeMarks=function(){return k},e._periodicTasks=[];var W=0;function K(e){if(e&&e.length)for(var t=T,n=0;n<e.length;n++){var i=G(e[n]);if(i){var o=i.domain+"-"+i.extension,r=t[o]=t[o]||{count:0,size:0};r.count++,r.size+=i.size}}}function G(e){var t=e.transferSize;if(null!=t){B.href=e.name;var n=B.pathname;if(0!==n.indexOf("/clck")){var i=n.lastIndexOf("."),o="";return-1!==i&&n.lastIndexOf("/")<i&&n.length-i<=5&&(o=n.slice(i+1)),{size:t,domain:B.hostname,extension:o}}}}function X(){var t=e.getSetting("maxTrafficCounters")||250;if(W>=t)return!1;for(var i=Object.keys(T),o="",r=0;r<i.length;r++){var s=i[r],a=T[s];o+=encodeURIComponent(s)+"!"+a.count+"!"+a.size+";"}if(o.length){W++;var c=n.concat(["d="+o,"t="+_e(v())]);ge(l,c)}return T={},W<t}function J(e){if(!e)return"";var n=(e.tagName||"").toLowerCase(),i=e.className&&e.className.baseVal!==t?e.className.baseVal:e.className;return n+(i=i?(" "+i).replace(/\s+/g,"."):"")}var Q,$,Z,ee=(Q="layout-shift",Boolean(b&&b.supportedEntryTypes&&-1!==b.supportedEntryTypes.indexOf(Q))?0:null),te=null;function ne(){Z>ee&&(ee=Z,te=$)}function ie(){if(null!=ee){var i=["s="+Math.round(1e6*ee)/1e6];if(e.getSetting("logClsTarget")){var o=function(e){var t=null;if(!e)return null;var n=null;return(t=e.reduce((function(e,t){return e&&e.value>t.value?e:t})))&&t.sources&&t.sources.length&&(n=t.sources.find((function(e){return e.node&&1===e.node.nodeType}))||t.sources[0]),n&&J(n.node)}(te);i.push("target="+o)}ge(u,n.concat(i)),ee=null,Z=t,$=t}}var oe=null,re=null,se=!1;function ae(){if(null!=oe){var t=e.getLCPAdditionalParams(re);U("largest-contentful-paint",oe,!1,t),oe=null,re=null}}var ce=b?function(){if(e.getSetting("forcePaintTimeSending")||!e.isVisibilityChanged())try{new b((function(e){for(var t=e.getEntries(),n=0;n<t.length;n++){var i=t[n];U("element-timing."+i.identifier,i.startTime)}})).observe({type:"element",buffered:!0})}catch(t){}}:function(){};function le(t,n,i){if(e._tti){var o=v();ue((function(r){var s={2796.2797:me(e._tti.events||[],n),689.2322:_e(o)};i&&Object.keys(i).forEach((function(e){s[e]=i[e]})),U(t||"2795",r,!0,s),e._tti.fired=!0}),n)}}function ue(t,n){e._tti&&(n||(n=v()),function i(){var o,r=n,s=v(),a=e._tti.events||[],c=a.length;0!==c&&(o=a[c-1],r=Math.max(r,Math.floor(o.startTime+o.duration))),s-r>=h?t(r):setTimeout(i,1e3)}())}function de(e){E&&e.push("2437="+(f[E.type]||2771),E.downlinkMax!==t&&"2439="+E.downlinkMax,E.effectiveType&&"2870="+E.effectiveType,E.rtt!==t&&"rtt="+E.rtt,E.downlink!==t&&"dwl="+E.downlink)}function he(e,t){if(!I)return t(null);C.href=e;var n=C.href,i=0,o=100;setTimeout((function e(){var r=y.getEntriesByName(n);if(r.length)return t(r);i++<d?(setTimeout(e,o),o+=o):t(null)}),0)}function me(e,t){return t=t||0,(e=e||[]).filter((function(e){return e.startTime-t>=-50})).map((function(e){var t=e.name?e.name.split("-").map((function(e){return e[0]})).join(""):"u",n=Math.floor(e.startTime);return t+"-"+n+"-"+Math.floor(n+e.duration)})).join(".")}function pe(t){return i.concat(["1701="+t,e.ajaxStart&&"1201.2154="+_e(e.ajaxStart),e.ajaxComplete&&"1201.2052="+_e(e.ajaxComplete)])}function fe(e,t){Object.keys(m).forEach((function(n){if(n in t){var i=t[n];(i||0===i)&&e.push(m[n]+"="+_e(i))}}))}function _e(e,t){return"string"==typeof e?encodeURIComponent(e):Math.round(1e3*(e-(t||0)))/1e3}function ge(t,n){var i=encodeURIComponent(window.YaStaticRegion||"unknown");n.push("-cdn="+i);var o=n.filter(Boolean).join(",");e.send(null,t,o)}e.sendTTI=le,e.sendHeroElement=function(e){U("2876",e)},e._subpages={},e.makeSubPage=function(t,n){var i=e._subpages[t];e._subpages[t]=void 0===i?i=0:++i;var o=!1;return{689.2322:_e(void 0!==n?n:v()),2924:t,2925:i,isCanceled:function(){return o},cancel:function(){o=!0}}},e._getLongtasksStringValue=me,e.getResourceTimings=he,e.pushConnectionTypeTo=de,e.pushTimingTo=fe,e.normalize=_e,e.sendCounter=ge,e.sendDelta=Y,e.sendTrafficData=X,e.finalizeLayoutShiftScore=ie,e.finalizeLargestContentfulPaint=ae,e.onReady=R,e.onQuietWindow=ue,e.getSelector=J}(Ya.Rum)},7524:function(){!function(){function e(){removeEventListener("load",e);var t=Ya.Rum;if(t.sendTimeMark("1724"),t.getSetting("sendAutoResTiming"))for(var n=document.querySelectorAll("script[data-rCid], div[data-rCid]"),i=0,o=n.length;i<o;i++){var r=n[i],s=r.src;if(!s){var a=getComputedStyle(r).backgroundImage;if(a){var c=a.match(/^url\(["']?(.*?)["']?\)$/);c&&(s=c[1])}}s&&t.sendResTiming(r.getAttribute("data-rCid"),s)}}Ya.Rum.enabled&&!Ya.Rum._onloadCounterInited&&(Ya.Rum._onloadCounterInited=!0,"complete"===document.readyState?e():addEventListener("load",e))}()},4232:function(){!function(e){var t=0;var n=[];function i(e){for(var t=0,n=0;n<e.length;++n)t+=e[n]*e[n];return Math.sqrt(t/e.length)}var o,r,s,a=[];e.enabled&&(e.getSetting("longTaskMetric")&&e._tti&&e._periodicTasks.push((function(){if(!e._tti.fired)return!0;var n=e.getSetting("maxLongTaskCounters")||10;if(++t>n)return!1;if(e._tti.eventsAfterTTI.length){var i=e._getCommonVars().slice();i.push("2796.2797="+e._getLongtasksStringValue(e._tti.eventsAfterTTI)),i.push("689.2322="+e.normalize(e.getTime())),e.sendCounter("690.2096.2796",i),e._tti.eventsAfterTTI=[]}return!0})),e.getSetting("scrollMetric")&&(s=!1,addEventListener("scroll",(function(){var t=e.getTime();s?n.push(t-o):s=!0,o=t,clearTimeout(r),r=setTimeout((function(){s=!1}),500)})),e._periodicTasks.push((function(){if(n.length){var t=e._getCommonVars().concat(["d="+i(n)]);e.sendCounter("690.2096.768",t),n=[]}return!0}))),e.getSetting("scrollLatencyMetric")&&function(){try{if(!window.PerformanceScrollUpdateLatency)return!1;new PerformanceObserver((function(e){e.getEntries().forEach((function(e){a.push(e.duration)}))})).observe({entryTypes:["scrollUpdateLatency"]})}catch(e){return!1}return!0}()&&e._periodicTasks.push((function(){if(a.length){var t=e._getCommonVars().concat(["d="+i(a)]);e.sendCounter("690.2096.768.2373",t),a=[]}return!0})))}(Ya.Rum)},767:function(){
/*
 * Copyright 2015 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
"inert"in HTMLElement.prototype||(Object.defineProperty(HTMLElement.prototype,"inert",{enumerable:!0,get:function(){return this.hasAttribute("inert")},set:function(e){e?this.setAttribute("inert",""):this.removeAttribute("inert")}}),window.addEventListener("load",(function(){function e(e){for(;e&&e!==document.documentElement;){if(e.hasAttribute("inert"))return e;e=e.parentElement}return null}!function(e){var t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),document.body.appendChild(t)}("/*[inert]*/*[inert]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}");var t=function(e){return null};function n(e){var t=e.path;return t&&t[0]||e.target}window.ShadowRoot&&(t=function(e){for(;e&&e!==document.documentElement;){if(e instanceof window.ShadowRoot)return e;e=e.parentNode}return null});var i=0;document.addEventListener("keydown",(function(e){i=9===e.keyCode?e.shiftKey?-1:1:0})),document.addEventListener("mousedown",(function(e){i=0}));var o=null;function r(e){e.path[e.path.length-1]!==window&&(s(n(e)),e.preventDefault(),e.stopPropagation())}function s(t){var n=e(t);if(n){if(document.hasFocus()&&0!==i){var r=function(){return(o||document).activeElement},s=r();if(function(e){var t=null;try{t=new KeyboardEvent("keydown",{keyCode:9,which:9,key:"Tab",code:"Tab",keyIdentifier:"U+0009",shiftKey:!!e,bubbles:!0})}catch(n){try{(t=document.createEvent("KeyboardEvent")).initKeyboardEvent("keydown",!0,!0,window,"Tab",0,e?"Shift":"",!1,"en")}catch(n){}}if(t){try{Object.defineProperty(t,"keyCode",{value:9})}catch(n){}document.dispatchEvent(t)}}(i<0),s!=r())return;var a={acceptNode:function(e){return!e||!e.focus||e.tabIndex<0?NodeFilter.FILTER_SKIP:n.contains(e)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}},c=document.createTreeWalker(document.body,NodeFilter.SHOW_ELEMENT,a);c.currentNode=n;for(var l,u=(-1===Math.sign(i)?c.previousNode:c.nextNode).bind(c);l=u();)if(l.focus(),r()!==s)return}t.blur()}}document.body.addEventListener("focus",(function(e){var i=n(e);!function(e){if(e!=o){if(o){if(!(o instanceof window.ShadowRoot))throw new Error("not shadow root: "+o);o.removeEventListener("focusin",r,!0)}e&&e.addEventListener("focusin",r,!0),o=e}}(i==e.target?null:t(i)),s(i)}),!0),document.addEventListener("click",(function(t){e(n(t))&&(t.preventDefault(),t.stopPropagation())}),!0)})))},7809:function(){
/**
 * Copyright 2016 Google Inc. All Rights Reserved.
 *
 * Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.
 *
 *  https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
 *
 */
!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[];i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},i.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},i.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},i.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(window,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},i.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,r(window,"resize",this._checkForIntersections,!0),r(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},i.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(i){var o=i.element,r=s(o),a=this._rootContainsTarget(o),c=i.entry,l=e&&a&&this._computeTargetAndRootIntersection(o,t),u=i.entry=new n({time:window.performance&&performance.now&&performance.now(),target:o,boundingClientRect:r,rootBounds:t,intersectionRect:l});c?e&&a?this._hasCrossedThreshold(c,u)&&this._queuedEntries.push(u):c&&c.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},i.prototype._computeTargetAndRootIntersection=function(t,n){if("none"!=window.getComputedStyle(t).display){for(var i,o,r,a,l,u,d,h,m=s(t),p=c(t),f=!1;!f;){var _=null,g=1==p.nodeType?window.getComputedStyle(p):{};if("none"==g.display)return;if(p==this.root||p==e?(f=!0,_=n):p!=e.body&&p!=e.documentElement&&"visible"!=g.overflow&&(_=s(p)),_&&(i=_,o=m,r=void 0,a=void 0,l=void 0,u=void 0,d=void 0,h=void 0,r=Math.max(i.top,o.top),a=Math.min(i.bottom,o.bottom),l=Math.max(i.left,o.left),u=Math.min(i.right,o.right),h=a-r,!(m=(d=u-l)>=0&&h>=0&&{top:r,bottom:a,left:l,right:u,width:d,height:h})))break;p=c(p)}return m}},i.prototype._getRootRect=function(){var t;if(this.root)t=s(this.root);else{var n=e.documentElement,i=e.body;t={top:0,left:0,right:n.clientWidth||i.clientWidth,width:n.clientWidth||i.clientWidth,bottom:n.clientHeight||i.clientHeight,height:n.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},i.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},i.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,i=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==i)for(var o=0;o<this.thresholds.length;o++){var r=this.thresholds[o];if(r==n||r==i||r<n!=r<i)return!0}},i.prototype._rootIsInDom=function(){return!this.root||a(e,this.root)},i.prototype._rootContainsTarget=function(t){return a(this.root||e,t)},i.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},i.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=i,window.IntersectionObserverEntry=n}function n(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,i=this.intersectionRect,o=i.width*i.height;this.intersectionRatio=n?Number((o/n).toFixed(4)):this.isIntersecting?1:0}function i(e,t){var n,i,o,r=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),i=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout((function(){n(),o=null}),i))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" ")}function o(e,t,n,i){"function"==typeof e.addEventListener?e.addEventListener(t,n,i||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function r(e,t,n,i){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,i||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function s(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(e,t){for(var n=t;n;){if(n==e)return!0;n=c(n)}return!1}function c(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}}()},7843:function(e,t,n){"use strict";n.d(t,{Ms:function(){return o},jY:function(){return s}});var i=n(9511);function o(e){return(0,i.k6)(JSON.stringify(e))}function r(e,t){var n,i=[];for(n in t)t.hasOwnProperty(n)&&(t[n]||0===t[n])&&i.push(e+"_"+n+"_"+String(t[n]));return i.join(" ")}function s(e,t){var n=t.mods,i=e,o=n?r(e,n):"";return t.mix&&("object"==typeof t.mix?(Array.isArray(t.mix)||(t.mix=[t.mix]),i+=" "+t.mix.map((function(t){if("string"==typeof t)return t;var n=t.block||e,i=t.mods;return t.elem&&(n+="__"+t.elem,i=t.elemMods),i&&(n+=" "+r(n,i)),n})).join(" ")):i+=" "+t.mix),o&&(i+=" "+o),i}},9511:function(e,t,n){"use strict";function i(e){var t=String(e);return t.indexOf("&")>-1&&(t=t.replace(/&/g,"&amp;")),t.indexOf("<")>-1&&(t=t.replace(/</g,"&lt;")),t.indexOf(">")>-1&&(t=t.replace(/>/g,"&gt;")),t.indexOf('"')>-1&&(t=t.replace(/"/g,"&quot;")),t}n.d(t,{k6:function(){return i}})},3146:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var i=n(8086),o={};function r(e){for(var t=e.split("."),n=o,r=0;r<t.length;++r){if(!n||!n[t[r]])return(0,i.H)({message:"undefined translation "+e,block:"l10n"}),"";n=n[t[r]]}return n}},8086:function(e,t,n){"use strict";n.d(t,{H:function(){return a}});var i=n(4934);var o=null;function r(){return Boolean(window.Ya&&window.Ya.Rum&&window.Ya.Rum.logError)}function s(e,t){var n={},r=t||{};return e.message&&(n.message=e.message),e.block&&(n.block=e.block),e.method&&(n.method=e.method),n.level=e.level||"error",(e.sourceType||r.sourceType)&&(n.type=e.sourceType||r.sourceType),e.source&&(n.source=e.source),e.sourceMethod&&(n.sourceMethod=e.sourceMethod),e.coordinates_gp&&(n.coordinates_gp=e.coordinates_gp),(e.meta||r.meta)&&(n.additional=(0,i.Z)(e.meta||{},r.meta||{})),(e.url||r.url)&&(n.additional=n.additional||{},n.additional.url=e.url||r.url),(e.page||r.page)&&(n.page=e.page||r.page),o&&(n=o(n)),n}console;var a=function(e,t){if(t)if("object"==typeof t){if(t.logged)return;t.logged=!0}else t=new Error(t);r()&&Ya.Rum.logError(s(e,t),t)}},7117:function(e,t,n){"use strict";n.d(t,{ek:function(){return T},yj:function(){return A},Dn:function(){return L},DF:function(){return x}});var i,o,r=n(44),s=n(5992),a=!1,c=[];function l(){document[i]&&u()}function u(){c.forEach((function(e){e.fn.call(e.ctx,!0),e.awaitsCall=!1})),c=[],window.removeEventListener("beforeunload",u,!1),window.removeEventListener("unload",u,!1),window.removeEventListener(o,l,!1)}function d(e,t,n){var r;!a&&"addEventListener"in window&&(a=!0,window.addEventListener("beforeunload",u,!1),window.addEventListener("unload",u,!1),window.addEventListener("spas-unmount-main",u,!1),void 0!==document.hidden?(r="hidden",o="visibilitychange"):void 0!==document.webkitHidden&&(r="webkitHidden",o="webkitvisibilitychange"),r&&o&&(i=r,window.addEventListener(o,l,!1)));var d={fn:e,ctx:n,awaitsCall:!1},h=(0,s.D)((function(){d.awaitsCall&&(d.awaitsCall=!1,c=c.filter((function(e){return e!==d})),e.call(n,!1))}),t,!1,n);return function(){d.awaitsCall||(d.awaitsCall=!0,c.push(d)),h()}}var h=n(8086);function m(e){if(!("getAttribute"in e)&&"length"in e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t}return[e]}var p,f=JSON.parse('{"i8":"2024-01-23-467"}'),_=(0,r.Yu)("statlog.config",{}),g=_.clckDemonHost+"counter";"undefined"!=typeof document&&"querySelectorAll"in document||(_.enabled=!1);var v={},b=/([^.(]+)(?:\(([^)]*)\))?\.?/g,y=/^([^=]+)=(.+)$/,w=!1,M={show:!0},E="data-statlog",k=String(Date.now())+Math.random().toString(36).substring(3);function T(){var e=(0,r.Yu)("redir-stats.data")||"",t="",n="";window.Ya&&Ya.Rum&&Ya.Rum.getTime&&(t+="/timefs="+Math.floor(Ya.Rum.getTime()));var i=(0,r.Yu)("timing.vars");return i&&(i[1964]?n="/mexp=0":i[1965]&&(n="/mexp=1")),e+t+n+"/iid="+k}function S(e,t,n){var i;if("XDomainRequest"in window)i=new XDomainRequest;else{if(!("XMLHttpRequest"in window))return;i=new XMLHttpRequest}i.open("post",n||g,!0),i.withCredentials=!0;try{i.setRequestHeader("Accept","text/plain, */*; q=0.01"),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8")}catch(o){}t&&("onreadystatechange"in i?i.onreadystatechange=function(){4===i.readyState&&t()}:i.onload=i.onerror=t),i.send(e)}function C(e){return"/dtype=clck/table=morda"+(_.tld?"/tld="+_.tld:"")+"/statver="+f.i8+(_.ip?"/ip="+_.ip:"")+"/antiadb=".concat((0,r.Yu)("adb.data.adb")||0)+T()+"/session_id="+_.showId+"/events="+encodeURIComponent(JSON.stringify(e.map((function(e){return{event:e.type,url:e.url,"parent-path":_.statRoot,blocks:e.array}})))).replace(/\*/g,"%2A")+"/*"}function B(e){if(p){var t=C(p);!function(e){if(_.useBeacon&&"sendBeacon"in navigator&&"function"==typeof navigator.sendBeacon)return navigator.sendBeacon(g,e)}(t)?S(t,e):e&&e(),p=null}}F();var I;function P(e,t){var n=t,i=[];e.replace(b,(function(e,t,n){return i.push({key:t,params:n?n.split(";"):[]}),""}));for(var o=function(){var t,o=i[r].params,s=i[r].key;if(n.some((function(e){if(e.ctag===s)return t=e,!0})),t||(t={ctag:s},n.push(t)),o.length)for(var a=0;a<o.length;++a){var c=o[a].match(y);if(c)try{t[c[1]]=decodeURIComponent(c[2])}catch(l){(0,h.H)({block:"home__stat",message:"Cannot decode counter",method:"convertPathToData",meta:{counter:e,decodingUri:c[2]}})}}r+1<i.length&&(n=t.children=t.children||[])},r=0;r<i.length;++r)o();return t}var x=function(e,t,n){var i,o,r=!1;if(n&&"clean"===n.mode&&function(e){e&&p&&p.length&&0===(p=p.filter((function(t){return t.type!==e}))).length&&(p=null)}(e),n&&n.customParams&&(t+=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+"="+encodeURIComponent(e[n]));return t.length?"("+t.join(";")+")":""}(n.customParams)),_.enabled&&e&&t){if(p||(p=[]),"show"===e){if(t in v)return;v[t]=!0}e in M&&(o=function(e){if(!(e in M)||!p)throw new Error(e+" is not mergeable type");for(var t=0;t<p.length;++t)if(p[t].type===e)return p[t]}(e)),P(t,(o=o||(p[p.length]={type:e,url:n&&n.url,array:[]})).array),n&&n.callback?(B(i=function(){r||(r=!0,n.callback())}),void 0!==n.callbackTimeout&&setTimeout(i,n.callbackTimeout)):(I||(I=d((function(){w=!1,B()}),25)),w||(w=!0,I()))}else n&&n.callback&&setTimeout(n.callback,0)},O=function(e,t){if(!_.enabled||!t)return!0;var n,i,o=e.href;if(_.useBeacon&&"sendBeacon"in navigator&&"function"==typeof navigator.sendBeacon&&(i=C([{type:"click",url:o,array:P(t,[])}]),navigator.sendBeacon(g,i)))return!0;if("_blank"===e.target)return S(i=C([{type:"click",url:o,array:P(t,[])}])),!0;if(!e.getAttribute("data-statlog-timeout")&&-1===o.indexOf("/lid="+_.statRoot)){if(n=e.getAttribute("data-statlog-url"))e.href=n;else{var s=function(e){var t=[],n="";return{counter:e.replace(/\(([^)]+)\)/g,(function(e,n){return t.push(n.replace(/;/g,",")),""})),vars:n=n.length?"/vars="+t.join(","):""}}(t);e.href=_.redirHost+"redir/dtype=clck/table=morda"+(_.tld?"/tld="+_.tld:"")+"/statver="+f.i8+(_.ip?"/ip="+_.ip:"")+"/antiadb=".concat((0,r.Yu)("adb.data.adb")||0)+T()+"/lid="+_.statRoot+"."+s.counter+"/sid="+_.showId+s.vars+"/rnd="+((new Date).getTime()+Math.round(100*Math.random()))+"/*data="+encodeURIComponent("url="+encodeURIComponent(o.match(/^http/)?o:location.protocol+"//"+location.host+(o.match("^/")?o:"/"+o)))}e.setAttribute("data-statlog-orig-href",o),e.setAttribute("data-statlog-timeout",String(setTimeout((function(){e.href=o,e.removeAttribute("data-statlog-timeout"),e.removeAttribute("data-statlog-orig-href")}),500)))}return!0};function R(e,t){var n=[],i=[];return m(e).forEach((function(e){n=n.concat(m(e.querySelectorAll("["+E+"], [data-stat-select]"))),(e.getAttribute(E)||e.getAttribute("data-stat-select"))&&n.push(e)})),n.forEach((function(e){var n=e.getAttribute(E)||e.getAttribute("data-stat-select"),o=e.getAttribute("data-statlog-showed")||n&&n in v,r=Boolean(e.getAttribute("data-statlog-precise"));n&&!o&&(!r||t&&t.precise)&&(t&&!1===t.visibilityCheck||function(e){return e&&(0!==e.offsetWidth||0!==e.offsetHeight)}(e))&&i.push(t&&t.convertCounters&&t.convertCounters(n)||n)})),i}function L(e,t){_.enabled&&R(e,t).forEach((function(e){x("show",e)}))}function A(){return _.enabled&&_.statRoot||""}function N(e){var t,n=e.target||e.srcElement;if((e.which||e.button)<2){for(;n&&1===n.nodeType&&!(t=n.getAttribute(E));)n=n.parentNode;if(t&&n)"0"!==n.getAttribute("data-statlog-redir")&&n.href?n.href&&"click"===e.type&&!e.defaultPrevented&&!1!==e.returnValue&&(O(n,t)||("preventDefault"in e?e.preventDefault():e.returnValue=!1)):"mousedown"===e.type&&x("click",t)}}function D(e,t){"addEventListener"in document?(document.addEventListener(e,t,!1),window.addEventListener("spas-unmount-main",(function(){document.removeEventListener(e,t,!1)}))):document.attachEvent("on"+e,t)}function F(){_.enabled&&(D("mousedown",N),D("click",N))}},5992:function(e,t,n){"use strict";function i(e,t,n,i){var o;return 3===arguments.length&&"boolean"!=typeof n&&(i=n,n=!1),function(){var r=arguments;i=i||this,n&&!o&&e.apply(i,r),clearTimeout(o),o=setTimeout((function(){n||e.apply(i,r),o=null}),t)}}n.d(t,{D:function(){return i}})},4934:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var i=Object.prototype.toString;function o(e,t){if(!t)return e;for(var n in t)if("__proto__"!==n&&t.hasOwnProperty(n)){var r=t[n];Array.isArray(r)?(e[n]=Array.isArray(e[n])?e[n]:[],o(e[n],r)):"[object Date]"===i.call(r)||"object"!=typeof r||null===r?e[n]=r:(e[n]="[object Object]"===i.call(e[n])?e[n]:{},o(e[n],r))}return e}},44:function(e,t,n){"use strict";function i(e,t,n){if("undefined"==typeof home||!e)return n;var i,o,r,s=t.split("."),a=s.length;if(a>1){for(i=e||{},o=0;o<a;o++)if(void 0===(i=i[s[o]]))return void 0===i?n:i;return void 0===i?n:i}return void 0===(r=e[t])?n:r}function o(e,t){return i("undefined"!=typeof home&&home.export||void 0,e,t)}n.d(t,{Yu:function(){return o}}),"undefined"!=typeof home&&(home.dataCallbacks=home.dataCallbacks||[])},1714:function(e,t,n){"use strict";n.d(t,{M:function(){return w}});var i=n(44),o=n(3146),r=n(7117);function s(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(o=i.key,r=void 0,"symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?r:String(r)),i)}var o,r}function a(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&void 0!==e[n]&&t.push(n+"="+encodeURIComponent(e[n]));return t.length?"("+t.join(";")+")":""}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,n=[{key:"getAttr",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e?(n.customParams&&(e+=a(n.customParams)),(e=String(e)).indexOf('"')>-1&&(e=e.replace(/"/g,"&quot;")),' data-statlog="'+e+'"'+(!1!==n.isRedirect?"":' data-statlog-redir="0"')+(n.precise?' data-statlog-precise="1"':"")):""}},{key:"logShow",value:function(e,t){return e?(t&&(e+=a(t)),(0,r.DF)("show",e),e):""}},{key:"getClientCounter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;return(e=n?(e||"")+a(n):e)?' data-statlog="'+e+'"'+(t?' data-statlog-redir="0"':""):""}},{key:"getAdaptiveCounter",value:function(e,t){return e?' data-statlog="'+e+'"'+(t?' data-statlog-redir="0"':"")+' data-statlog-autoshow="1"':""}}],n&&s(t.prototype,n),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),l=n(4934);function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(o=i.key,r=void 0,"symbol"==typeof(r=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?r:String(r)),i)}var o,r}for(var d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"add",value:function(e,t,n){home.export[n]||(home.export[n]={}),home.export[n][e]?(0,l.Z)(home.export[n][e],t):home.export[n][e]=t}},{key:"has",value:function(e,t){return Boolean(home.getData&&home.getData(t+"."+e))}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),h=n(8086),m={stub:!0},p=function(){var e=_[f];m[e]=function(t){if(!0===(0,i.Yu)("csp.report")){var n=new Error("req.csp."+e+" was called on clientside");(0,h.H)({block:"csp",meta:{url:t}},n)}}},f=0,_=["allowDefault","allowStyle","allowPlugin","allowObject","allowMedia","allowImg","allowFont","allowConnect","allowScript","allowChild","allowForm","allowFrameAncestors"];f<_.length;f++)p();var g={l10n:o.U,stat:new c,settingsJs:new d,csp:m,cls:{full:function(e){return e},part:function(e){return e},contains:function(e){return!1}},isClient:1},v={},b="__execViewUniq",y=1;function w(e,t,n){for(var o in n=n||{},g)n.hasOwnProperty(o)||(n[o]=g[o]);var r="object"==typeof window&&(0,i.Yu)("common.req")||{};for(var s in r)r.hasOwnProperty(s)&&!n.hasOwnProperty(s)&&(n[s]=r[s]);return function e(t,i){var o;if("function"==typeof t)if(t.isCached){t[b]||(t[b]=y++);var r=t[b];r in v?o=v[r]:(o=t(n,e),v[r]=o)}else o=t(i,n,e);return void 0===o&&(o=""),o}(e,t)}},4119:function(){window.Ya&&Ya.Rum&&Ya.Rum.time&&Ya.Rum.time("2095"),function(){var e={3542:function(){!function(){var e="XDomainRequest"in window?XDomainRequest:XMLHttpRequest,t={};function n(e){var n=0;return t[e]&&(n=Date.now()-t[e]),t[e]=null,n}MBEM.ajax=function(i,o){o=o||{};var r=new e,s=MBEM.debugEnabled;return function(e){t[e]=Date.now()}(i),r.open("get",i,!0),r.withCredentials=!0,r.onreadystatechange=function(){if(4===r.readyState)if(o.alwaysCallback&&o.alwaysCallback(r.status),200===r.status)try{o.successCallback&&o.successCallback.call(o.ctx,JSON.parse(r.responseText),{url:i,duration:n(i)})}catch(e){MBEM.consoleError(s?e:"Incorrect suggestions JSON")}else o.errorCallback&&o.errorCallback(r.status,r.statusText,r.responseText)},o.timeout&&(r.timeout=o.timeout),r.send(),function(){r.abort()}}}()},669:function(){!function(){var e="__uniqMBEM"+MBEM.id(5),t=MBEM.blocks={};MBEM.prototype=Object.create(MBEM.Observable.prototype),MBEM.prototype.getDefaultParams=function(){return{}};var n=MBEM._propListeners="__uniqMBEMListeners"+MBEM.id(5);MBEM.prototype.bindTo=function(e,t,i){return"function"==typeof t&&(i=t,t=e,e=this.domElem),"string"==typeof e?e=this.elem(e):Array.isArray(e)||(e=[e]),t.split(" ").forEach((function(t){e.forEach((function(e){var o=i.bind(this);o.origHandler=i,e[n]||(e[n]={}),e[n][t]||(e[n][t]=[]),e[n][t].push(o),e.addEventListener(t,o)}),this)}),this),this},MBEM.prototype.elem=function(e,t,n){var i=[],o=e.split(" ").map((function(e){var o=this.__self.className(e,t,n);return MBEM.cls.contains(this.domElem,o)&&i.push(this.domElem),"."+o}),this).join(",");return i.concat(MBEM.arrayFrom(this.domElem.querySelectorAll(o)))};var i=function(){};MBEM.override=function(e,t){return"function"==typeof t&&t.toString().indexOf("__base")>-1?(e=e||i,function(){var n=this.__base;this.__base=e;var i=t.apply(this,arguments);return this.__base=n,i}):t},MBEM.staticProto={},MBEM.staticProto.className=function(e,t,n){var i=this._name;return e&&(i+="__"+e),void 0!==t&&!1!==n&&(i+="_"+t+(!0!==n&&void 0!==n?"_"+n:"")),i},MBEM.decl=function(e,n,i){n=n||{};var o,r,s,a,c,l=!1;for(var u in"object"==typeof e&&e.baseBlock?(l=!0,c=e.baseBlock,e=e.block):c=e,c in t?(r=t[c].prototype,o=s=t[c]):(l=!0,r=MBEM.prototype,s=MBEM.staticProto),l&&(r=Object.create(r),(o=function(e){this.__internalConstructor(e),this.__constructor(e),this.__afterConstructor(e)}).prototype=r,o.prototype.constructor=o,o.prototype.__self=o,o._name=e,t[e]=o),n)n.hasOwnProperty(u)&&(r[u]=MBEM.override(r[u],n[u]));for(a in s)i&&i.hasOwnProperty(a)||o[a]||(o[a]=s[a]);if(i)for(a in i)i.hasOwnProperty(a)&&(o[a]=MBEM.override(s[a],i[a]));return o},MBEM.getBlock=function(t,n){return t[e]&&t[e][n]},MBEM.consoleError=function(){if(window.console&&window.console.error)try{window.console.error.apply(window.console,arguments)}catch(e){}},MBEM.prototype.__internalConstructor=function(t){t=t||{},this.domElem=t.node,this.params=MBEM.extend(this.getDefaultParams(),t.params||{}),t.node&&((t.node[e]||(t.node[e]={}))[this.__self._name]=this)},MBEM.prototype.__constructor=function(){},MBEM.prototype.__afterConstructor=function(){},MBEM.initBlockFromNode=function(e,t,n){var i;return(i=MBEM.getBlock(e,t))?i:(n||(n=MBEM.getNodeParams(e)[t]),MBEM._createBlockFromNode({node:e,block:t,params:n}))},MBEM.createBlock=function(e){if(t[e.block])return new t[e.block](e);MBEM.consoleError("Block is not declared",e.block)},MBEM._createBlockFromNode=MBEM.createBlock,MBEM.getNodeParams=function(e){var t;try{t=JSON.parse(e.getAttribute("data-bem"))||{}}catch(n){return void MBEM.consoleError("Incorrect params",e)}return t}}()},7199:function(){MBEM.initBlock=function(e,t){var n,i=t.params;return(n=MBEM.getBlock(t.node,e))?n:(i||(i=MBEM.getNodeParams(t.node)[e]),MBEM.createBlock({node:t.node,params:i,mods:t.mods,block:e}))}},513:function(){MBEM.initNode=function(e){var t=MBEM.getNodeParams(e);if(t)for(var n in t)t.hasOwnProperty(n)&&MBEM.initBlockFromNode(e,n,t[n])}},539:function(){!function(){MBEM.staticProto._processLive=function(e){if(e=e||!1,"live"in this&&void 0===this._liveInitable!==e){var t=!1!==this.live(),n=this._name,i=this.live;this.live=function(){return this._name===n?t:i.apply(this,arguments)},this._liveInitable=t}};var e=MBEM.decl;MBEM.decl=function(t,n,i){if(i&&void 0!==i.live&&"boolean"==typeof i.live){var o=i.live;i.live=function(){return o}}var r=!(("object"==typeof t&&t.block?t.block:t)in MBEM.blocks),s=e(t,n,i);return r?s._liveInitable=void 0:void 0!==s._liveInitable&&i.live&&s._processLive(!0),s};var t=MBEM._createBlockFromNode;MBEM._createBlockFromNode=function(e){var n=MBEM.blocks[e.block];if(n)return void 0===n._liveInitable&&("function"==typeof n.live?n._processLive():n._liveInitable=!1),!n._liveInitable||e.params&&!1===e.params.live?t(e):void 0;MBEM.consoleError("Block is not declared",e.block)};var n=MBEM._liveDocHandlers={},i=MBEM._liveDocHandler=function(e){n[e.type].forEach((function(t){for(var n=e.target;n&&n!==document.documentElement;){if(MBEM.cls.contains(n,t.className)){var i=MBEM.closest(n,t.blockName);if(i){var o=MBEM.getNodeParams(i);if(!(o=o&&o[t.blockName]))return;var r=MBEM.getBlock(i,t.blockName);r||(r=MBEM.createBlock({node:i,block:t.blockName,params:o})),t.callback&&t.callback.call(r,e);break}}n=n.parentNode}}))},o=function(e,t,o,r,s){r.split(" ").forEach((function(e){n[e]||(n[e]=[],document.addEventListener(e,i,!1)),n[e].push({blockName:this._name,callback:s,className:this.className(t,o&&o.modName,o&&o.modVal)})}),e)};MBEM.staticProto.liveBindTo=function(e,t,n){return t&&"function"!=typeof t||(n=t,t=e,e=void 0),"string"==typeof e&&(e={elem:e}),e?e.elem.split(" ").forEach((function(i){o(this,i,e,t,n)}),this):o(this,void 0,void 0,t,n),this}}()},4364:function(){MBEM.prototype.__internalConstructor=MBEM.override(MBEM.prototype.__internalConstructor,(function(e){if(this.__base.apply(this,arguments),e&&e.mods&&e.node){for(var t in this.__modsClassName="",e.mods)if(e.mods.hasOwnProperty(t)&&e.mods[t]){var n=this.__self.className("",t,e.mods[t]);this.__modsClassName+=n+" ",MBEM.cls.add(e.node,n)}this.__modsClassName=this.__modsClassName.trim()}})),MBEM.prototype.getModsClassName=function(){return this.__modsClassName}},8945:function(){var e,t;e=MBEM.blocks,t=MBEM.decl,MBEM.decl=function(n,i,o){if(i=i||{},"object"==typeof n&&n.modName){var r;for(var s in r=n.block in e?e[n.block].prototype:MBEM.prototype,i)i.hasOwnProperty(s)&&"function"==typeof i[s]&&function(){var e=n,t=r[s],o=i[s];i[s]=function(){return this._simpleCheckMod(e.modName,e.modVal)?o.apply(this,arguments):t&&this.__base?t.apply(this,arguments):void 0}}();n=n.block}return t(n,i,o)},MBEM.prototype.__internalConstructor=MBEM.override(MBEM.prototype.__internalConstructor,(function(e){this._modCache=e&&e.mods||this._extractInitMods(e),this.__base.apply(this,arguments)})),MBEM.prototype._extractInitMods=function(e){var t={};if(!e||!e.node)return t;for(var n,i,o=MBEM.cls.list(e.node.getAttribute("class")||""),r=this.__self._name+"_",s=0;s<o.length;++s)0===o[s].indexOf(r)&&((i=(n=o[s].substring(r.length)).indexOf("_"))>-1?t[n.substring(0,i)]=n.substring(i+1):t[n]=!0);return t},MBEM.prototype._simpleCheckMod=function(e,t){return void 0===t?Boolean(this._modCache[e]):this._modCache[e]===t}},547:function(){var e,t;e={},t=MBEM.decl,MBEM.decl=function(n,i,o){if("object"==typeof n&&n.modUniqueKey){var r=e[n.block];if(r||(r=e[n.block]={}),r[n.modUniqueKey])return;r[n.modUniqueKey]=1}return t(n,i,o)}},2586:function(){var e;e=MBEM.decl,MBEM.decl=function(t,n,i){return"onSetMod"in(n=n||{})&&function(e,t){var n,i,o;if("function"==typeof e)t[MBEM._buildModFnName("","*","*")]=e;else for(n in e)if(e.hasOwnProperty(n)){if("function"==typeof(o=e[n])){t[MBEM._buildModFnName("",n,"*")]=o;continue}for(i in o)o.hasOwnProperty(i)&&(t[MBEM._buildModFnName("",n,i)]=o[i])}}(n.onSetMod,n),e(t,n,i)},MBEM.prototype.__afterConstructor=MBEM.override(MBEM.prototype.__afterConstructor,(function(){this.__base.apply(this,arguments),this.setMod("js","inited")})),MBEM.prototype._extractElemName=function(e){if(!e)return"";var t=(e.getAttribute("class")||"").match(new RegExp("(?:\\s|^)"+this.__self._name+"__([a-zA-Z0-9-]+)(?:\\s|$)"));return t&&t[1]?t[1]:""},MBEM.prototype.getMod=function(e,t){t||(t=e,e=this.domElem);var n=!e;return e=e||this.domElem,Array.isArray(e)&&(e=e[0]),n?t in this._modCache?this._modCache[t]:this._modCache[t]=this._extractModVal(e,t):this._extractModVal(e,t)},MBEM.prototype._extractModVal=function(e,t){if(!e)return"";for(var n,i=MBEM.cls.list(e.getAttribute("class")||""),o=this._extractElemName(e),r=this.__self.className(o,t),s="",a=0;a<i.length;++a)if(0===i[a].indexOf(r))return"_"===(n=i[a].substring(r.length)).charAt(0)?s=n.substr(1):""===n&&(s=!0),s;return""},MBEM.prototype.hasMod=function(e,t,n){var i=arguments.length,o=!1;1===i?(n="",t=e,e=void 0,o=!0):2===i&&("string"==typeof e?(n=t,t=e,e=void 0):(n="",o=!0));var r=this.getMod(e,t)===n;return o?!r:r},MBEM._buildModFnName=function(e,t,n){return(e?"__elem_"+e:"")+"__mod"+(t?"_"+t:"")+(n?"_"+n:"")},MBEM.prototype.setMod=function(e,t,n){void 0===n&&("string"==typeof e?(n=void 0===t||t,t=e,e=void 0):n=!0),e||(e=this.domElem),Array.isArray(e)&&(e=e[0]);var i=this.getMod(e,t);if(i===n)return this;var o=this._extractElemName(e),r=t+(o?"_"+o:"");if(this._processingMods||(this._processingMods={}),this._processingMods[r])return this;this._processingMods[r]=!0;var s=!0,a=[t,n,i];if(e===this.domElem&&[["*","*"],[t,"*"],[t,n]].forEach((function(e){var t=this[MBEM._buildModFnName(o,e[0],e[1])];t&&(s=!1!==t.apply(this,a)&&s)}),this),s&&(this._modCache[t]=n,this.domElem)){var c=MBEM.cls.list(e.getAttribute("class")||""),l=this.__self.className(o,t);c.forEach((function(t){0===t.indexOf(l)&&MBEM.cls.remove(e,t)})),""!==n&&MBEM.cls.add(e,this.__self.className(o,t,n))}return delete this._processingMods[r],this},MBEM.prototype.delMod=function(e,t){return t||(t=e,e=void 0),this.setMod(e,t,"")},MBEM.prototype.toggleMod=function(e,t,n,i,o){"string"==typeof e&&(o=i,i=n,n=t,t=e,e=void 0),void 0===i?i="":"boolean"==typeof i&&(o=i,i="");var r=this.getMod(e,t);return r!==n&&r!==i||this.setMod(e,t,"boolean"==typeof o?o?n:i:this.hasMod(e,t,n)?i:n),this}},5881:function(){var e;e=MBEM._propListeners,MBEM.prototype.unbindFrom=function(t,n,i){var o=arguments.length;return 1===o?(n=t,t=this.domElem):2===o&&"function"==typeof n?(i=n,n=t,t=this.domElem):"string"==typeof t&&(t=this.elem(t)),Array.isArray(t)||(t=[t]),n.split(" ").forEach((function(n){t.forEach((function(t){t[e]&&t[e][n]&&(t[e][n]=t[e][n].filter((function(e){return!(!i||e.origHandler===i)||(t.removeEventListener(n,e,!1),!1)})))}))})),this}},5911:function(){MBEM.unmount=function(){var e=MBEM._liveDocHandler;if(e&&MBEM._liveDocHandlers)for(var t in MBEM._liveDocHandlers)MBEM._liveDocHandlers.hasOwnProperty(t)&&document.removeEventListener(t,e,!1);delete MBEM._liveDocHandlers,delete MBEM._liveDocHandler}},685:function(){var e;e={},MBEM.channel=function(t){if(void 0!==t&&e[t])return e[t];var n=new MBEM.Observable;return void 0!==t&&(e[t]=n),n}},5454:function(){window.MBEM=window.MBEM||{}},2696:function(){!function(){var e=function(e){this.type=e,this.propagationStopped=!1};e.prototype.stopPropagation=function(){this.propagationStopped=!0};var t=function(){};t.prototype.on=function(e,t,n){if("object"==typeof e){for(var i in e)e.hasOwnProperty(i)&&this.on(i,e[i],t);return this}var o=this._handlerStorage||(this._handlerStorage={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},t.prototype.un=function(e,t){if("object"==typeof e){for(var n in e)e.hasOwnProperty(n)&&this.un(n,e[n]);return this}for(var i=this._handlerStorage||(this._handlerStorage={}),o=i[e]||(i[e]=[]),r=0;r<o.length;++r)if(o[r].fn===t)return o.splice(r,1),this;return this},t.prototype.trigger=function(t,n){for(var i,o=new e(t),r=this._handlerStorage||(this._handlerStorage={}),s=(r[t]||(r[t]=[])).slice(),a=0;a<s.length;++a){var c=s[a];if(!1===(i=c.fn.call(c.ctx||this,o,n))&&o.stopPropagation(),o.propagationStopped)break}return i},MBEM.Observable=t}()},4376:function(){MBEM.arrayFrom=function(e){return Array.prototype.slice.call(e)}},6116:function(){MBEM.closest=function(e,t){for(;e&&e!==document;){if(MBEM.cls.contains(e,t))return e;e=e.parentNode}}},8495:function(){var e;e=/\s+/,MBEM.cls={list:function(t){return t.split(e).filter(Boolean)},contains:function(e,t){return MBEM.cls.list(e.getAttribute("class")||"").indexOf(t)>-1},add:function(e,t){var n=MBEM.cls.list(e.getAttribute("class")||"");return-1===n.indexOf(t)&&n.push(t),e.setAttribute("class",n.join(" ")),this},remove:function(e,t){var n=MBEM.cls.list(e.getAttribute("class")||""),i=n.indexOf(t);return i>-1&&n.splice(i,1),e.setAttribute("class",n.join(" ")),this},toggle:function(e,t,n){return void 0===n&&(n=!MBEM.cls.contains(e,t)),MBEM.cls[n?"add":"remove"](e,t)}}},8937:function(){MBEM.debounce=function(e,t){var n;return function(){var i=this,o=arguments;clearTimeout(n),n=setTimeout((function(){n=null,e.apply(i,o)}),t)}}},273:function(){MBEM.encodeUriComponent=function(e){try{return encodeURIComponent(e)}catch(t){e=e.replace(/[\ud800-\udbff](?![\udc00-\udfff])/g,"").replace(/([^\ud800-\udbff]|^)[\udc00-\udfff]/g,(function(e){return e.slice(0,-1)}));try{return encodeURIComponent(e)}catch(n){throw new URIError("Невозможно зашифровать строку: "+e)}}}},7020:function(){MBEM.encode=function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}},9002:function(){MBEM.eventProxy=function(e,t){return function(){return t[e].apply(t,arguments)}}},6384:function(){MBEM.extend=function(e){for(var t=Array.prototype.slice.call(arguments,1),n=0;n<t.length;n++){var i=t[n];for(var o in i)if(i.hasOwnProperty(o)){var r=i[o];r instanceof Element||r instanceof Array||r instanceof Date||"object"!=typeof r||null===r?e[o]=r:(e[o]=e[o]||{},MBEM.extend(e[o],r))}}return e}},9544:function(){MBEM.hl=function(e,t){var n=t.reduce((function(t,n){var i=n[0],o=n[1];return i!==t.lastIndex&&(t.text+=MBEM.encode(e.slice(t.lastIndex,i))),t.text+="<b>"+MBEM.encode(e.slice(i,o))+"</b>",t.lastIndex=o,t}),{text:"",lastIndex:0});return n.text+MBEM.encode(e.slice(n.lastIndex))}},3308:function(){MBEM.id=function(e){return e=e||8,Math.random().toString().slice(2,Math.min(e)+2)}},2707:function(){MBEM.insertAfter=function(e,t){"function"==typeof t.insertAdjacentElement?t.insertAdjacentElement("afterend",e):t.parentNode.insertBefore(e,t.nextSibling)}},418:function(){MBEM.offset=function(e){if(!e)return{top:0,left:0};var t=e.getBoundingClientRect(),n=document.documentElement.getBoundingClientRect();return{top:t.top-n.top,left:t.left-n.left}}},5136:function(){MBEM.resolveUrl=function(e,t){return"//"===e.substr(0,2)||"http://"===e.substr(0,7)||"https://"===e.substr(0,8)?e:"/"===e.substr(0,1)?document.location.origin+e:(t?"https":"http")+"://"+e}},211:function(){MBEM.reverseHl=function(e,t,n,i){var o=t.length||!n,r=o&&i&&t.length;return o&&(t=function(e,t){for(var n=[],i=0;i<=t.length;i++){var o=t[i-1]?t[i-1][1]:0,r=t[i]?t[i][0]:e.length;r>o&&n.push([o,r])}return n}(e,t)),r&&(t=function(e,t){for(var n=[],i=Array.apply(null,{length:e.length}).map((function(){return!1})),o=0;o<t.length;o++)for(var r=t[o][0];r<t[o][1];r++)i[r]=!0;for(var s=0,a=0;a<=e.length;a++)if(!e[a]||" "===e[a]){for(var c=s,l=!1,u=!1,d=null;s<a;){if(i[s])l=!0,null===d&&(d=s);else if(l){u=!0;break}s++}u?n.push([c,a]):null!==d&&n.push([d,a]),s=a+1}return n}(e,t)),MBEM.hl(e,t)}},5369:function(){var e;MBEM.sendBeacon=(e="sendBeacon"in navigator&&"function"==typeof navigator.sendBeacon&&-1===(navigator.userAgent||"").indexOf("UCBrowser"),function(t,n){return e&&navigator.sendBeacon(t,n)})},6237:function(){MBEM.throttle=function(e,t,n){var i,o,r,s=null,a=0;n||(n={});var c=function(){a=!1===n.leading?0:(new Date).getTime(),s=null,r=e.apply(i,o),s||(i=o=null)};return function(){var l=(new Date).getTime();a||!1!==n.leading||(a=l);var u=t-(l-a);return i=this,o=arguments,u<=0||u>t?(s&&(clearTimeout(s),s=null),a=l,r=e.apply(i,o),s||(i=o=null)):s||!1===n.trailing||(s=setTimeout(c,u)),r}}},4175:function(){MBEM.transitionendEvent=function(){var e=document.createElement("el"),t={transition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(var n in t)if(void 0!==e.style[n])return t[n]}},8248:function(){MBEM.appendUrlParams=function(e,t){return e+(e.indexOf("?")>-1?"&":"?")+Object.keys(t).map((function(e){return e+"="+MBEM.encodeUriComponent(t[e])})).join("&")}},2323:function(){Function.prototype.bind||(Function.prototype.bind=function(e){var t=this,n=MBEM.arrayFrom(arguments).slice(1);return function(){var i=MBEM.arrayFrom(arguments);return t.apply(e,n.concat(i))}})},7344:function(){Date.now||(Date.now=function(){return(new Date).getTime()})},233:function(){MBEM.decl("mini-suggest",{__constructor:function(){this.__base.apply(this,arguments),this._suggestId=MBEM.id(),this._suggestListId="suggest-list-"+this._suggestId,this._input.setAttribute("role","combobox")},_createPopup:function(){if(!this.__base.apply(this,arguments))return!1;this._popupContent.id=this._suggestListId;var e=this._input.getAttribute("aria-controls");return this._input.setAttribute("aria-controls",(e?e+" ":"")+this._suggestListId),this._popup},_buildItem:function(e,t){var n=this.__base.apply(this,arguments);return n.linkAttrs&&this.params.a11y&&this.params.a11y.nav&&(n.content.a11yDescription='<span class="mini-suggest__a11y_description">'+MBEM.encode(this.params.a11y.nav)+"</span>"),n.attrs.id="suggest-item-"+this._suggestId+"-"+t,n},_buildItemContent:function(e,t){return(t.content.a11yDescription||"")+this.__base.apply(this,arguments)}})},9770:function(){MBEM.decl({block:"mini-suggest",modName:"arrows",modVal:"yes"},{__constructor:function(){this.__base.apply(this,arguments),this.params.counter&&this.on("item-arrow",this._handleArrowClick,this)},_handleArrowClick:function(e,t){this.__base.apply(this,arguments),this._changePathState("mouse")&&(this._path.index=t.itemIndex+1),this._addAction(this._counterActions.arrow,{index:t.itemIndex+1,log:this._getItemLog(t.dataItem,["arrow"])}),++this._ratio.actionsCount}})},8430:function(){MBEM.decl({block:"mini-suggest",modName:"clickless-counter",modVal:"yes"},{_bindHandlers:function(){function e(){this._addAction("page_"+document.visibilityState,{log:[this._val]})}function t(){this._sendClicklessCounters()}this.__base.apply(this,arguments),this.params.counter&&(this.bindTo(window,"visibilitychange",e),this.bindTo(window,"pagehide",t),this._listenersToUnmount.push((function(){this.unbindFrom(window,"visibilitychange",e),this.unbindFrom(window,"pagehide",t)})))},_getClicklessCounterParamsList:function(){return[this.params.counter.clicklessParams,{text:this._val,suggest_reqid:this._reqID,total_input_time:this._getTotalInputTime()},this._getPath({state:"no_click",submit:"none"}),this._getTpah()]},_sendClicklessCounters:function(){this._firstOpenTime&&this._sendCounters(!0,this._getClicklessCounterParamsList())}})},2346:function(){MBEM.decl({block:"mini-suggest",modName:"direct-disclaimer",modVal:"yes"},{__constructor:function(){this.__base.apply(this,arguments),this.params.counter&&this.on("disclaimer-toggled",this._handleDisclaimerAction.bind(this))},_handleDisclaimerAction:function(e,t){this._addAction(t.isOpen?this._counterActions.adInfoOpen:this._counterActions.adInfoClosed,{index:t.itemIndex,log:this._getItemLog(t.dataItem,["info"])})}})},2647:function(){MBEM.decl({block:"mini-suggest",modName:"direct",modVal:"yes"},{__constructor:function(){this.__base.apply(this,arguments),this.params.counter&&this.on("adb",this._handleAdb,this)},_handleAdb:function(e,t){++this._adb.adr,t&&t.hidden&&(++this._adb.adh,this._adbe()&&++this._adb.adhb)},_clearCounters:function(){this.__base.apply(this,arguments),this._adb={adr:0,adh:0,adhb:0}},_getParamsList:function(){var e=this.__base.apply(this,arguments);return e.push(this._adb),e},_adbe:function(){return this.params.direct.adb||this.params.direct.checkAdb&&this.params.direct.checkAdb()}})},4793:function(){MBEM.decl({block:"mini-suggest",modName:"new-format",modVal:"yes"},{__constructor:function(){this.__base.apply(this,arguments),this._counterActions={adInfoClosed:"closed",adInfoOpen:"open",arrow:"insert",word:"insert",search:"search",nav:"nav",submit:"submit"}},_getItemLogAction:function(e){return this.__self.itemTypeIsNavigable(e.type)?this._counterActions.nav:this._counterActions.search},_getItemLog:function(e,t){var n=e[5]&&e[5].log;return n?n.map((function(e){return e||"none"})).concat(t||[]):this.__base.apply(this,arguments)},_getSubItemLog:function(e,t,n){return t&&t.log?t.log:"source"===e?["url"]:e?[e+("number"==typeof n?n+1:"")]:[]},_addAction:function(e){if(e===this._counterActions.submit){var t=this._tpah[this._tpah.length-1];if(t&&t.name===this._counterActions.search)return}return this.__base.apply(this,arguments)},_getItemType:function(e){return e[5]&&e[5].log?e[5].log.join("."):this.__base.apply(this,arguments)}})},9724:function(){MBEM.decl({block:"mini-suggest",modName:"re-request",modVal:"yes"},{__constructor:function(){this.__base.apply(this,arguments),this._prevDataItems=[],this.params.counter&&this.on("re-request",this._handleReRequest,this).on("re-response",this._handleReResponse,this).on("re-popup-update",this._handleRePopupUpdate,this)},_handleReResponse:function(e,t){this._prevDataItems=this._dataItems,++this._reResponses.drsp,t.items.length||++this._reResponses.dersp,!t.relevant&&t.items.length&&++this._reResponses.dlrsp},_handleReRequest:function(){++this._reResponses.drqs},_handleRePopupUpdate:function(){++this._reResponses.drndr,this._countNewItemsTypesFromReRequest()},_countNewItemsTypesFromReRequest:function(){for(var e={},t=Math.max(this._prevDataItems.length,this._dataItems.length),n=0;n<t;n++){var i=this._prevDataItems[n]&&this._getItemType(this._prevDataItems[n]),o=this._getItemType(this._dataItems[n]);i&&(e[i]=(e[i]||0)-1),o&&(e[o]=(e[o]||0)+1)}for(var r in e)e[r]>0&&this._incTypeCount(r,e[r])},_clearCounters:function(){this.__base.apply(this,arguments),this._reResponses={drqs:0,drsp:0,dlrsp:0,dersp:0,drndr:0}},_getParamsList:function(){var e=this.__base.apply(this,arguments);return e.push(this._reResponses),e}})},3369:function(){MBEM.decl("mini-suggest",{_buildItem:function(e){var t=this.__base.apply(this,arguments),n="object"==typeof e[5]&&null!==e[5]?e[5].counter:e[5];return n&&(t.attrs["data-suggest-counter"]=(this.params.clickHost||"")+MBEM.encode(n)),t},_handleItemClick:function(e,t){if(this.__self.itemTypeIsNavigable(t.type)){var n=t.node.getAttribute("data-suggest-counter");n&&((new Image).src=n,this._addMetrikaCookie(this._getItemHref(t.node),t.val))}this.__base.apply(this,arguments)},_getItemHref:function(e){return"A"!==e.tagName&&(e=e.querySelector(".mini-suggest__item-link")),e.href},_addMetrikaCookie:function(e,t){var n=this._reqID,i=[t,e,this.params.navSource,n].map(MBEM.encodeUriComponent).join(":"),o=Date.now();document.cookie="sc_"+o+"="+i+";path=/watch;domain=."+(location.hostname.match(/yandex\..+$/)||[])[0]+";expires="+new Date(o+6e5).toUTCString()+";secure"+(this.params.sameSiteSupport?";SameSite=None":"")}})},6231:function(){MBEM.decl("mini-suggest",{__constructor:function(){this._counterActions={adInfoClosed:"ad_info_closed",adInfoOpen:"ad_info_open",arrow:"arrow",word:"word",submit:"submit"},this.params.counter&&this.on("submit",this._handleSubmit,this).on("request",this._handleRequest,this).on("response",this._handleResponse,this).on("start-input",this._handleStartInput,this).on("input-change",this._handleInputChange,this).on("popup-show",this._handlePopupShow,this).on("popup-update",this._handlePopupUpdate,this).on("item-click",this._handleItemClick,this).on("item-tpah",this._handleItemTpah,this).on("button-click",this._handleButtonClick,this).on("input-enter",this._handleInputEnter,this).on("open",this._handleSuggestOpen,this),this.__base.apply(this,arguments),this.params.counter&&this._clearCounters()},_handleInputEnter:function(){this._path.submit="keyboard"},_handleSubmit:function(){this._addAction("submit"),this._sendCounters()},_handleRequest:function(){++this._responses.rqs},_handleResponse:function(e,t){var n=Date.now();++this._responses.rsp,t.items.length||++this._responses.ersp,!t.relevant&&t.items.length&&++this._responses.lrsp,void 0!==t.duration&&(this._params.times+=(this._params.times?".":"")+t.duration),this._cachedUrls[t.url]&&n-this._cachedUrls[t.url]<6e4&&++this._responses.cchd,t.url&&(this._cachedUrls[t.url]=n),t.items.length&&(this._lastRenderTime=n),this._meta=t.data[2]||{}},_handlePopupUpdate:function(e,t){++this._responses.rndr,this._lastRenderTime&&(this._params.render_times+=(this._params.render_times?".":"")+(Date.now()-this._lastRenderTime),this._lastRenderTime=null),this._countItemTypes(t.items)},_handlePopupShow:function(){this._changePathState("not_used")},_handleItemClick:function(e,t){t.personal&&(this._path.personal="nah_used");var n=t.subItemName&&this._getSubItemLog(t.subItemName,t.subItem,t.subItemIndex,t.dataItem);this._addAction(this._getItemLogAction(t),{index:t.itemIndex+1,log:this._getItemLog(t.dataItem,n)}),this._changePathState(t.byKeyboard?"keyboard":"mouse")&&(this._path.index=t.itemIndex+1),this._path.submit=t.byKeyboard?"keyboard":"click_by_mouse",++this._ratio.actionsCount,this.__self.itemTypeIsNavigable(t.type)&&(this._navigableText=t.val,this._sendCounters())},_handleItemTpah:function(e,t){this._changePathState("tpah"),this._path.index=0,this._addAction(this._counterActions.word,{index:t.itemIndex+1,log:this._getItemLog(t.dataItem)}),++this._ratio.actionsCount,++this._responses.clks},_handleButtonClick:function(){++this._ratio.actionsCount,this._changePathState("suggest"),this._path.submit="button_by_mouse"},_handleInputChange:function(e,t){var n=Date.now();if(this._changePathState("edit"),this._path.index=0,"user"!==t.type&&"clear"!==t.type&&"tpah"!==t.type||(this._firstChangeTime=this._firstChangeTime||n,this._lastChangeTime=n),++this._ratio.actionsCount,"user"===t.type){var i=this._input.value.length-this._prevVal.length;i>0?this._addAction("add",{diffLength:i}):this._addAction("del",{diffLength:i})}else"clear"===t.type&&this._addAction("clear");"nah_used"===this._path.personal&&(this._path.personal="nah_not_used"),this._prevVal=this._input.value},_handleStartInput:function(){this._startInputTime=this._startInputTime||Date.now()},_handleSuggestOpen:function(){this._firstOpenTime=this._firstOpenTime||Date.now()},_changePathState:function(e){switch(e){case"not_used":if("not_shown"!==this._path.state)return!1;break;case"mouse":case"keyboard":case"tpah":if("edit"===this._path.state)return!1;break;case"edit":if("not_shown"===this._path.state||"not_used"===this._path.state)return!1;break;case"suggest":if("keyboard"!==this._path.state)return!1}return this._path.state=e,!0},_addAction:function(e,t){var n=Date.now(),i=t||{};!this._isReqIDAttached&&this._reqID&&this._attachReqID(),this._firstActionTime=this._firstActionTime||n,i.time=n-this._firstActionTime,i.name=e,this._tpah.push(i)},reset:function(){this.__base.apply(this,arguments),this.params.counter&&this._clearCounters()},_sendCounters:function(e,t){var n=t||this._getParamsList(this.params.counter.params),i=this._getCounterUrl(n);e||this._clearCounters(),this._sendStatUrl(i)},_sendStatUrl:function(e){e+=(e.indexOf("?")>-1?"&":"?")+"_="+Date.now(),MBEM.sendBeacon(e," ")||MBEM.ajax(e)},_clearCounters:function(){this._params={times:"",render_times:""},this._path={service:this.params.counter.service,state:"not_shown",index:0,personal:"nah_not_shown",submit:"button_by_mouse"},this._ratio={len:0,queryLen:0,actionsCount:0},this._firstOpenTime=null,this._firstChangeTime=null,this._lastChangeTime=null,this._startInputTime=null,this._reqID=this.__self._generateReqID(this.params.counter.yandexuid),this._isReqIDAttached=!1,this._tpah=[],this._firstActionTime=0,this._prevVal=this._input.value,this._startValLength=this._input.value.length,this._responses={rqs:0,rsp:0,rndr:0,ersp:0,lrsp:0,clks:0,cchd:0},this._typeCounts={},this._cachedUrls={},this._lastRenderTime=0,this._meta={},this._navigableText=null},_attachReqID:function(){this._appendHiddenInput("suggest_reqid",this._reqID),this._isReqIDAttached=!0},_getCounterUrl:function(e){return this.params.counter.url+"/"+e.concat({"*data":"url="+document.location.origin}).reduce(function(e,t){return e.concat(this._getParams(t))}.bind(this),[]).concat(["/"]).join("/").replace(/(\/+)/g,"/")},_getParamsList:function(e){return[{text:this._navigableText||this._input.value,pos:this._getCaretPosition(),type_counts:JSON.stringify(this._typeCounts)},e,this._getPath(),this._params,this._getRatio(),this._getChangeTimes(),this._getSession(),this._responses,{suggest_reqid:this._reqID},this._getTpah(),this._getMeta(),this._getExtraCounterParams()]},_getPath:function(e){return{path:[(e=e||{}).service||this._path.service,e.state||this._path.state,"p"+(e.index||this._path.index),e.personal||this._path.personal,e.submit||this._path.submit].join(".")}},_getRatio:function(){var e=this._startValLength+this._tpah.reduce((function(e,t){return"add"===t.name||"del"===t.name?e+(t.diffLength||0):e}),0);return{ratio:[e>=0?e:this._input.value.length,this._input.value.length,this._ratio.actionsCount].join(".")}},_getTotalInputTime:function(e){return(e=e||Date.now())-(this._startInputTime||e)},_getChangeTimes:function(){var e=Date.now();return{since_first_change:e-(this._firstChangeTime||e),since_last_change:e-(this._lastChangeTime||e),total_input_time:this._getTotalInputTime(e)}},_getSession:function(){return{session:Date.now()+MBEM.id(4)}},_getTpah:function(){return{tpah_log:"["+this._tpah.map((function(e){var t=[e.name,"p"+(e.index||0),e.time];return void 0!==e.diffLength&&t.push(e.diffLength),e.log&&t.push.apply(t,e.log.map(MBEM.encodeUriComponent)),"["+t.join(",")+"]"})).join(",")+"]"}},_getParams:function(e){return Object.keys(e).reduce((function(t,n){return""===e[n]||t.push(n+"="+MBEM.encodeUriComponent(e[n]).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%2C/g,",").replace(/\*/g,"%2A")),t}),[])},_getMainUrlParams:function(){var e=this.__base.apply(this,arguments);return this._reqID&&(e.suggest_reqid=this._reqID),e},_countItemTypes:function(e){e.forEach((function(e){var t=this._getItemType(e);t&&this._incTypeCount(t)}),this)},_getItemType:function(e){var t,n;return Array.isArray(e)&&(e[5]&&e[5].personal?t="pers":(t=e[0],n=e[5]&&e[5].type)),n&&(t+="_"+n),t},_getItemLogAction:function(e){return e.node.getAttribute("data-log-type")||("nav"===e.type?"nav":e.personal?"history":"phrase")},_getItemLog:function(e,t){return t||(e&&this.__self.itemTypeHasExtendedLog(e[0])?[e[5]&&e[5].type||"none"]:[])},_getSubItemLog:function(e,t,n,i){return[e]},_incTypeCount:function(e,t){this._typeCounts[e]=(this._typeCounts[e]||0)+(t||1),e.indexOf("pers")>-1&&"nah_not_shown"===this._path.personal&&(this._path.personal="nah_not_used")},_getMeta:function(){var e={};for(var t in this.__self.metaProps)e[this.__self.metaProps[t]]=this._meta[t]||"";return e},_getExtraCounterParams:function(){return this.params.counter.getExtraUrlParams?this.params.counter.getExtraUrlParams():{}}},{itemTypeHasExtendedLog:function(e){return["nav","fact"].indexOf(e)>-1},_generateReqID:function(e){return(e=e||MBEM.id(9)+MBEM.id(9))+Date.now().toString().slice(-7)+MBEM.id(7)},metaProps:{exprt:"exprt",r:"region",log:"log"}})},1130:function(){var e,t,n,i;e="data-clps-id",t="mini-suggest__collapsible-activator",n="mini-suggest__collapsible",i="mini-suggest__collapsible_open",MBEM.decl("mini-suggest",{_createCollapsible:function(i){var o=MBEM.id(),r={};return r[e]=o,{html:'<div class="'+n+'" '+e+'="'+o+'">'+i+"</div>",activator:{className:t,attrs:r}}},_onPopupClick:function(o){var r=MBEM.closest(o.target,t);if(r){var s="."+n+"["+e+'="'+r.getAttribute(e)+'"]',a=this._popup.querySelector(s);if(a){var c=MBEM.cls.contains(a,i),l=c?MBEM.cls.remove:MBEM.cls.add,u=a.scrollHeight||0;l(a,i),a.style.height=c?"":u+"px",this._onCollapsibleToggled({collapsible:a,activator:r,isOpen:!c,height:c?0:u})}o.preventDefault()}else this.__base.apply(this,arguments)},_onCollapsibleToggled:function(){}})},7842:function(){MBEM.decl({block:"mini-suggest",modName:"direct-disclaimer",modVal:"yes"},{_buildDirectWarning:function(e,t,n){if(e&&(e.warn||e.disclaimer)){var i,o=e.warnlen?" mini-suggest__item-warning_type_"+MBEM.encode(e.warnlen):"",r=e.warn?"":" mini-suggest__item-warning-wrap_top-indent_no";return e.disclaimer&&(i=this._createCollapsible('<div class="mini-suggest__item-warning mini-suggest__item-warning_disclaimer'+o+'">'+MBEM.encode(e.disclaimer)+"</div>"),t.content.button="disclaimer-button "+i.activator.className,t.content.buttonAttrs=MBEM.extend({title:this.params.direct.disclaimerTitle||""},i.activator.attrs)),'<div class="mini-suggest__item-warning-wrap mini-suggest__item-warning-wrap_text-align_left'+r+'">'+(e.warn?'<div class="mini-suggest__item-warning'+o+'">'+(e.warn?MBEM.encode(e.warn.replace(/&quot;/g,'"')):"")+(n&&e.age?" &middot; "+MBEM.encode(e.age):"")+"</div>":"")+(i?i.html:"")+"</div>"}return""},_onCollapsibleToggled:function(e){if(this.__base.apply(this,arguments),MBEM.cls.contains(e.activator,"mini-suggest__disclaimer-button")){MBEM.cls.toggle(e.activator,"mini-suggest__disclaimer-button_active");var t=MBEM.closest(e.activator,"mini-suggest__item");this.trigger("disclaimer-toggled",{isOpen:e.isOpen,itemIndex:Number(t.dataset.index),dataItem:this._dataItems[t.dataset.index]})}}})},5636:function(){MBEM.decl({block:"mini-suggest",modName:"direct",modVal:"yes"},{_buildItem:function(e){var t=this.__base.apply(this,arguments),n=e[5];return n&&"ad"===n.type&&(t.className=t.className.replace(" mini-suggest__item_subtype_ad","")),t},_buildItemContent:function(e,t){return this.__base.apply(this,arguments)+(t.content.warn||"")},_buildDirectWarning:function(e,t,n){return e&&e.warn?'<div class="mini-suggest__item-warning-wrap"><div class="mini-suggest__item-warning'+(e.warnlen?" mini-suggest__item-warning_type_"+MBEM.encode(e.warnlen):"")+'">'+MBEM.encode(e.warn.replace(/&quot;/g,'"'))+(n&&e.age?" &middot; "+MBEM.encode(e.age):"")+"</div></div>":""}})},2270:function(){MBEM.decl({block:"mini-suggest",modName:"entity-suggest",modVal:"yes"},{_getItemText:function(e){return"fact"===e[0]&&e[5]&&"entity"===e[5].type?e[2]:this.__base.apply(this,arguments)}})},2343:function(){MBEM.decl({block:"mini-suggest",modName:"favicon",modVal:"yes"},{_buildFavicon:function(e){return'<div class="mini-suggest__favicon" style="background-image: url('+e+')"></div>'},_buildFaviconUrl:function(e,t){return MBEM.encode(this.params.faviconUrl+MBEM.resolveUrl(e,!0))+"?size="+(t||32)+"&stub=1"}})},6193:function(){MBEM.decl("mini-suggest",{_buildItem:function(e){var t=this.__base.apply(this,arguments),n=e[0],i=e[5];if(i){var o=i.descr,r=i.mark,s=i.icon,a=i.type;r&&(t.content.mark=this._buildItemMark(r,t)),o&&(t.content.descr=this._buildItemDescr(o)),a&&(t.className+=" mini-suggest__item_subtype_"+a),s&&(t.content.icon='<span class="mini-suggest__item-icon mini-suggest__item-icon_size_'+MBEM.encode(s.size||"s")+'" style="background-image:url('+MBEM.encode(s.url)+');"></span>'),this._shouldWrapItemContent(e)&&(t.content.wrapper=['<div class="mini-suggest__item-content">',"</div>"]),i.img&&(i.img.url||i.img.icon)&&(t.content.thumb=this._buildThumb(i)),"nav"===n&&i.monochrome&&(t.className+=" mini-suggest__item_monochrome")}return t},_buildItemContent:function(e,t){return t.content.button&&(t.className+=" mini-suggest__item_with-button"),(t.content.thumb||"")+(t.content.wrapper&&t.content.wrapper[0]||"")+this._buildItemContentMain(e,t)+(t.content.wrapper&&t.content.wrapper[1]||"")},_buildThumb:function(e,t){t=t||{};var n=this._buildThumbClass(e),i=e.img.url?"background-image:url("+MBEM.encode(e.img.url)+");":"",o="",r="",s="",a="";e.img.badge&&!e.img.round&&(a+='<div class="mini-suggest__item-thumb-badge"',e.img.badgeColor&&(a+=' style="background-color:'+MBEM.encode(e.img.badgeColor)+';color:#333;"'),a+=">"+MBEM.encode(e.img.badge)+"</div>"),r+=e.img.color?"background-color:"+MBEM.encode(e.img.color)+";":"";var c=t.backgroundSize&&MBEM.encode(t.backgroundSize);return t.borderRadius?(s+=i,s+="border-radius:"+t.borderRadius+";",c&&(s+="width:"+c+";height:"+c+";")):(r+=i,c&&(r+="background-size:"+c+";")),'<div class="mini-suggest__item-thumb'+n+'"'+(o+=r?' style="'+r+'"':"")+">"+(t.borderRadius?'<div class="mini-suggest__item-thumb-img" style="'+s+'">':"")+a+(t.borderRadius?"</div>":"")+"</div>"},_buildThumbClass:function(e){var t=" mini-suggest__item-thumb_orientation_"+(e.img.aspect&&!e.img.round?MBEM.encode(e.img.aspect):"square");if(t+=" mini-suggest__item-thumb_size_"+(e.img.size?MBEM.encode(e.img.size):"m"),t+=e.img.shade?" mini-suggest__item-thumb_shade":"",t+=e.img.contain?" mini-suggest__item-thumb_contain":"",t+=e.img.cover?" mini-suggest__item-thumb_cover":"",t+=e.img.round?" mini-suggest__item-thumb_round":"",t+=e.img.icon?" mini-suggest__item-thumb_icon_"+e.img.icon:"",t+=e.img.placeholder?" mini-suggest__item-thumb_placeholder_"+e.img.placeholder:"",t+=e.img["icon-type"]?" mini-suggest__item-thumb_icon-type_"+e.img["icon-type"]:"",e.mods)for(var n in e.mods)e.mods.hasOwnProperty(n)&&(t+=" "+this.__self.className("item-thumb",n,e.mods[n]));return t},_buildItemDescr:function(e){return(e=Array.isArray(e)?e:[e]).map((function(e){return e?'<span class="mini-suggest__item-descr">'+MBEM.encode(e)+"</span>":""})).join("")},_buildItemMark:function(e,t){var n="mini-suggest__item_mark_yes";return e=Array.isArray(e)?e:[e],-1===t.className.indexOf(n)&&(t.className+=" "+n),e.map((function(e){return e?'<span class="mini-suggest__item-mark mini-suggest__item-mark_type_'+MBEM.encode(e)+'"></span>':""})).join("")},_buildItemContentAdds:function(e,t){return(t.content.mark||"")+(t.content.descr||"")},_shouldWrapItemContent:function(e){return"nav"===e[0]||"fact"===e[0]}})},8978:function(){MBEM.decl("mini-suggest",{_buildItem:function(e){var t=this.__base.apply(this,arguments),n=e[0],i=e[1],o=e[3],r=e[4],s=e[5];return"tpah"===n&&s&&s.tpah&&(i=i.slice(s.tpah[0],s.tpah[2])),t.content.title=MBEM.encode(i),t.content.info=o&&MBEM.encode(o),t.attrs.role="option",t.attrs["data-text"]=MBEM.encode(this._getItemText(e)),r&&(t.linkAttrs={href:MBEM.resolveUrl(r),target:MBEM.encode(e[5]&&e[5].target||"_blank"),rel:"noopener",class:"mini-suggest__item-link"}),s&&s.next&&(t.className+=" mini-suggest__item_next_"+s.next),t},_getItemText:function(e){var t=e[0],n=e[1],i=e[3],o=e[5];return o&&(o.searchQuery||o.suggestion)||"nav"===t&&this._val||("fact"!==t||o&&o.inline?n:i)},_buildItemContentTitle:function(e,t){return t.content.title||""},_buildItemContentInfo:function(e,t){return t.content.info||""},_buildItemContentButton:function(e,t){return t.content.button?'<span class="mini-suggest__'+t.content.button+' mini-suggest__item-button"'+this.__self.toHtmlAttrsString(t.content.buttonAttrs||"")+"></span>":""},_buildItemContentAdds:function(){return""},_shouldWrapItemTitle:function(e){return"nav"===e[0]||"fact"===e[0]}})},7251:function(){MBEM.decl({block:"mini-suggest",modName:"arrows",modVal:"yes"},{_onArrowClick:function(e){var t=MBEM.closest(e,"mini-suggest__item");if(t){var n=t.getAttribute("data-text");this._changeText(n+" ","arrow",!0,(function(){this.trigger("item-arrow",this._getItemEventProps(t,null,n))}))}},_onPopupClick:function(e){var t=e.target;MBEM.cls.contains(t,"mini-suggest__arrow")?this._onArrowClick(t):this.__base.apply(this,arguments)},_addArrow:function(e,t){var n=this._getItemText(e);return"string"==typeof n&&n.trim()!==this._val.trim()&&(t.className+=" mini-suggest__item_arrow_yes",t.content.button="arrow"),t}})},2623:function(){MBEM.decl({block:"mini-suggest",modName:"autofocus",modVal:"yes"},{__constructor:function(){this._hasUserActivasion=!1,this.__base.apply(this,arguments),this._val&&(this._hasUserActivasion=!0)},_openSuggest:function(){this._hasUserActivasion&&this.__base.apply(this,arguments)},_onInput:function(){this.__base.apply(this,arguments),this._hasUserActivasion||(this._hasUserActivasion=!0,this._openSuggest())},_bindHandlers:function(){this.__base.apply(this,arguments),this.bindTo(this._input,"click",MBEM.eventProxy("_onInputClick",this))},_onInputClick:function(){this._hasUserActivasion||(this._hasUserActivasion=!0,this._onInputFocus())},_startInput:function(){this._hasUserActivasion&&this.__base.apply(this,arguments)}})},2884:function(){MBEM.decl({block:"mini-suggest",modName:"delete-on-hover",modVal:"yes"},{_buildPopupClassList:function(){return this.__base.apply(this,arguments)+" "+this.__self.className("popup","delete-on-hover","yes")}})},5285:function(){MBEM.decl({block:"mini-suggest",modName:"direct-special-warn",modVal:"yes"},{_buildDirectWarning:function(e,t){var n=Number(e.warnlen),i=[1,2].indexOf(n)>-1;if(e&&i){var o=e.warn;e.warn="";var r=this.__base.apply(this,arguments),s="mini-suggest__special-warn_type_"+n;return this._shouldAdjustSpecialWarn=!0,'<div class="mini-suggest__special-warn '+s+'" data-warn-type="'+e.warnlen+'" aria-label="'+MBEM.encode(o)+'"></div>'+r}return this.__base.apply(this,arguments)},_renderItems:function(){if(this.__base.apply(this,arguments),this._shouldAdjustSpecialWarn){for(var e=this._popup.querySelectorAll(".mini-suggest__special-warn"),t=0;t<e.length;t++)this._adjustSpecialWarnSize(e[t],this._getSpecialWarnParams(Number(e[t].dataset.warnType)));this._shouldAdjustSpecialWarn=!1}},_getSpecialWarnParams:function(e){},_adjustSpecialWarnSize:function(e,t){}})},785:function(){MBEM.decl({block:"mini-suggest",modName:"direct",modVal:"yes"},{__constructor:function(){this._adVisibilityChekers={},this._prevVisibilityCounterUrls={},this.__base.apply(this,arguments)},_renderItems:function(){this.__base.apply(this,arguments),this._isShown&&this._checkVisibilityAdvItems()},_syncItems:function(){this.__base.apply(this,arguments),this._adPositions=this._dataItems.reduce(function(e,t,n){if(t[5]&&this._isDirect(t[5])){if(this._adIsHidden(this._items[n]))return this.trigger("adb",{hidden:!0}),this._items[n].setAttribute("data-hidden",1),e;this.trigger("adb"),e.push(n)}return e}.bind(this),[])},_hidePopup:function(){if(this._isShown){for(var e in this._adVisibilityChekers)this._adVisibilityChekers.hasOwnProperty(e)&&clearTimeout(this._adVisibilityChekers[e]);this._adVisibilityChekers={}}this.__base.apply(this,arguments)},_showPopup:function(){this.__base.apply(this,arguments),this._dataItems&&this._checkVisibilityAdvItems()},_isDirect:function(e){return"ad"===e.type},_checkVisibilityAdvItems:function(){var e=this.params.direct,t={};if(this._adPositions.forEach(function(n){var i=this._dataItems[n],o=i&&i[5]&&i[5].linkht;if(o)if(e.counter_delay){if(this._prevVisibilityCounterUrls[o])return;t[o]=this._adVisibilityChekers[o]||setTimeout(function(){this._sendVisibilityCounter(o)}.bind(this),e.counter_delay)}else this._sendVisibilityCounter(o)}.bind(this)),e.counter_delay){for(var n in this._adVisibilityChekers)this._adVisibilityChekers.hasOwnProperty(n)&&!t[n]&&(clearTimeout(this._adVisibilityChekers[n]),this._adVisibilityChekers[n]=null);this._adVisibilityChekers=t}},_elemIsHidden:function(e){var t=window.getComputedStyle(e,null);return"none"===t.display||"visible"!==t.visibility||"1"!==t.opacity||-1===["static","relative"].indexOf(t.position)},_adIsHidden:function(e){var t=e.firstChild;return this._elemIsHidden(e)||this._elemIsHidden(t)},_onItemClick:function(e,t){var n=t.dataItem&&t.dataItem[5]&&t.dataItem[5].linkht;n&&this._sendVisibilityCounter(n),this.__base.apply(this,arguments)},_sendVisibilityCounter:function(e){this._prevVisibilityCounterUrls[e]||(this._prevVisibilityCounterUrls[e]=!0,(new Image).src=e)},_isItemSelectableByKeyboard:function(e){return this.__base.apply(this,arguments)&&!e.getAttribute("data-hidden")}})},877:function(){MBEM.decl({block:"mini-suggest",modName:"history-tune",modVal:"yes"},{_processResponse:function(){var e=this.__base.apply(this,arguments),t=e.some((function(e){return e[5]&&e[5].personal}));if(!this._val&&t&&this.params.historyTuneHref&&this.params.historyTuneText){var n=e[e.length-1];n&&(n[5].next="history-tune"),e.push(["history-tune",this.params.historyTuneText,null,null,this.params.historyTuneHref,{target:"_top"}])}return e},_buildItem:function(e){var t=this.__base.apply(this,arguments);return"history-tune"===e[0]&&(t.attrs["data-text"]="",t.attrs["data-log-type"]="history-tune",t.className+=" mini-suggest__item_extralink"),t}},{itemTypeIsSupported:function(e){return"history-tune"===e||this.__base(e)},itemTypeIsNavigable:function(e){return"history-tune"===e||this.__base(e)}})},4315:function(){MBEM.decl({block:"mini-suggest",modName:"overlay"},{_initOverlay:function(){this._overlay||(this._overlay=this._createOverlay(),this._prepareOverlayParent().appendChild(this._overlay),this.bindTo(this._overlay,"click",(function(){this._opened&&this._closeSuggest()})))},_createOverlay:function(){var e=document.createElement("div");return e.className="mini-suggest__overlay",e},_prepareOverlayParent:function(){}})},3258:function(){MBEM.decl({block:"mini-suggest",modName:"personal",modVal:"yes"},{__constructor:function(){this.__base.apply(this,arguments),this._historyState=0,this._transitionendEvent=MBEM.transitionendEvent(),this._afterTransition=this._afterTransition.bind(this)},_onDeleteClick:function(e,t){MBEM.cls.add(t,"mini-suggest__item_hidden_yes"),t.addEventListener(this._transitionendEvent,this._afterTransition),setTimeout(function(){this._afterDelete(t)}.bind(this),350),MBEM.ajax(this.params.deleteUrl+MBEM.encodeUriComponent(t.getAttribute("data-text"))),this._historyState+=1},_afterDelete:function(e){var t=e.parentNode;t&&(t.removeChild(e),this._removeItem(e),this._items.length||this._shouldShowEmptyPopup()||this._renderItemsEmpty())},_afterTransition:function(e){this._afterDelete(e.target)},_onPopupClick:function(e){var t=e.target;if(MBEM.cls.contains(t,"mini-suggest__delete")){var n=MBEM.closest(t,"mini-suggest__item_personal_yes");if(n)return void this._onDeleteClick(t,n)}this.__base.apply(this,arguments)},_getMainUrlParams:function(){var e=this.__base.apply(this,arguments);return e.hs=this._historyState,e},_buildItem:function(e){var t=this.__base.apply(this,arguments);return"fulltext"===e[0]&&e[5]&&e[5].personal&&(t=this._personalExtend(t)),t},_personalExtend:function(e){return e.className+=" mini-suggest__item_personal_yes",e.attrs["data-personal"]=1,e.content.button="delete",e},_getItemEventProps:function(e){var t=this.__base.apply(this,arguments);return t.personal=Boolean(e.getAttribute("data-personal")),t}})},1279:function(){MBEM.decl({block:"mini-suggest",modName:"prevent-empty",modVal:"yes"},{_onEnter:function(){this._val?this.__base.apply(this,arguments):this._opened&&this._closeSuggest()},_onSubmitClick:function(e){this._val?this.__base.apply(this,arguments):(e.preventDefault(),this._opened&&this._closeSuggest())}})},5269:function(){MBEM.decl({block:"mini-suggest",modName:"re-request",modVal:"yes"},{_onResponse:function(e,t,n){if(this.__base.apply(this,arguments),this._allowReRequest(e,t)){var i=this.params.reRequestTimeout;if(n.duration<i){var o=i-n.duration;clearTimeout(this._reRequestTimeout),this._reRequestTimeout=setTimeout(function(){this._reRequest(o)}.bind(this),o)}else n.duration<10*i&&this._reRequest()}},_request:function(){clearTimeout(this._reRequestTimeout),this.__base.apply(this,arguments)},_reRequest:function(e){MBEM.ajax(this._prepareReRequestUrl(this._val),{successCallback:this._onReResponse.bind(this,this._val,e),ctx:this}),this.trigger("re-request")},_prepareReRequestUrl:function(e){return MBEM.appendUrlParams(this.params.reRequestUrl,this._getMainUrlParams(e))},_onReResponse:function(e,t,n,i){var o=this._processResponse(n),r=e===this._prevRequestText,s=this.params.reRequestMaxLatency;this.trigger("re-response",{data:n,items:o,relevant:r}),r&&o.length&&(!s||(t||0)+i.duration<s)&&(this._renderItems(o,!0),this.trigger("re-popup-update"))},_allowReRequest:function(e){return this._val&&this._val===e}})},3988:function(){MBEM.decl({block:"mini-suggest",modName:"render-debounce"},{__constructor:function(){this.debounce=null,this.__base.apply(this,arguments)},_renderItems:function(){this.debounce||(this.debounce=MBEM.debounce(this.__base,this.params.renderDebounce||0)),this._spaceCreated?this.__base.apply(this,arguments):this.debounce.apply(this,arguments)}})},9256:function(){MBEM.decl({block:"mini-suggest",modName:"request-debounce"},{__constructor:function(){this.debounce=MBEM.debounce(this._onUpdateSuggest,this.params.requestDebounce||0),this.__base.apply(this,arguments)},_update:function(e){(e||this._prevRequestText!==this._val)&&(this._prevRequestText=this._val,this._spaceCreated?this._onUpdateSuggest():this.debounce.apply(this,arguments))},_onUpdateSuggest:function(){!this.params.skipEmptyRequest||this._val?this._request(this._val,this._onResponse):this._renderItems([])}})},2706:function(){MBEM.decl({block:"mini-suggest",modName:"request"},{_prepareRequestUrl:function(e,t){var n=MBEM.appendUrlParams(this.params.url,this._getMainUrlParams(e));return t&&(n=MBEM.appendUrlParams(n,t)),n}})},6357:function(){MBEM.decl({block:"mini-suggest",modName:"request",modVal:"xhr"},{__constructor:function(){return this._persistentConnections=[],this.__base.apply(this,arguments)},_request:function(e,t,n){for(var i=this,o=MBEM.id();this._persistentConnections.length>=this.params.persistentConnectionsLimit;){var r=this._persistentConnections.shift();if(!r)break;r.abort()}this._persistentConnections.push({id:o,abort:MBEM.ajax(this._prepareRequestUrl(e),{successCallback:t.bind(this,e),errorCallback:n,alwaysCallback:function(){i._persistentConnections=i._persistentConnections.filter((function(e){return e.id!==o}))},ctx:this,timeout:this.params.xhrTimeout})}),this.trigger("request",{text:e})},getDefaultParams:function(){var e=this.__base.apply(this,arguments);return e.persistentConnectionsLimit=1/0,e}})},8477:function(){MBEM.decl({block:"mini-suggest",modName:"search",modVal:"yes"},{_setElements:function(){this.__base.apply(this,arguments),this._form=this.domElem,this._input=this.elem("input")[0],this._button=this.elem("button")[0],this._clear=this.elem("input-clear")[0]},_bindHandlers:function(){this.__base.apply(this,arguments),this._clear&&this._handleClick(this._clear,MBEM.eventProxy("_onClearClick",this)),this._button&&this._handleClick(this._button,MBEM.eventProxy("_onSubmitClick",this)),this.bindTo(this._form,"submit",MBEM.eventProxy("_onFormSubmit",this))},_doSubmit:function(){this._simpleCheckMod("submit-exp","yes")&&this._dispatchInternalSubmitEvent(),this._stopInput(),this._dispatchNativeSubmitEvent()},_dispatchInternalSubmitEvent:function(){this.trigger("submit")},_dispatchNativeSubmitEvent:function(){var e=document.createEvent("Event");e.initEvent("submit",!0,!0),!1!==this._form.dispatchEvent(e)?setTimeout(function(){this._form.submit()}.bind(this),0):this._startInput()},_onFormSubmit:function(){this._simpleCheckMod("submit-exp","yes")||this._dispatchInternalSubmitEvent(),this._blurAfterFormSubmit()},_blurAfterFormSubmit:function(){this._closeSuggest()},_onSubmitClick:function(e){e.preventDefault(),this.trigger("button-click"),setTimeout(this._doSubmit.bind(this),0)},_onClearClick:function(){document.activeElement!==this._input&&this._renderItems([]),this._changeText("","clear")},_onItemClick:function(e,t){if(this.__base.apply(this,arguments),this.__self.itemTypeIsSearchable(t.type,t.subtype)){if(t.queryParams)for(var n in t.queryParams)this._appendHiddenInput(n,t.queryParams[n]);setTimeout(function(){this._doSubmit()}.bind(this),0)}},_getItemEventProps:function(e){var t=this.__base.apply(this,arguments),n=this._dataItems[e.getAttribute("data-index")][5];return n&&(t.queryParams=n.queryParams),t},_openSuggest:function(){MBEM.cls.add(document.body,"body_search_yes"),this.__base.apply(this,arguments)},_closeSuggest:function(){MBEM.cls.remove(document.body,"body_search_yes"),this.__base.apply(this,arguments)},reset:function(){this.__base.apply(this,arguments),this._clearHiddenInputs()},_appendHiddenInput:function(e,t){var n=this._form[e];n||((n=document.createElement("input")).type="hidden",n.name=e,n.setAttribute("data-suggest","1"),this._form.appendChild(n)),n.value=t},_clearHiddenInputs:function(){for(var e=this._form.querySelectorAll("input[type=hidden][data-suggest]"),t=0;t<e.length;t++)e[t].remove()}})},6774:function(){MBEM.decl({block:"mini-suggest",modName:"separate-popup",modVal:"yes",modUniqueKey:"common-separate-popup"},{_bindHandlers:function(){this.__base.apply(this,arguments);var e=this._repositionPopup.bind(this);this.bindTo(window,"orientationchange resize",e),this._listenersToUnmount.push((function(){this.unbindFrom(window,"orientationchange resize",e)}))},_createPopup:function(){if(this._popup)return!1;var e=this.__base.apply(this,arguments),t=this.params.popupMods,n=this.params.popupMix;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];if(!o)continue;MBEM.cls.add(this._popup,"mini-suggest__popup_"+i+(!0===o?"":"_"+o))}if(n)for(var r=0;r<n.length;r++)MBEM.cls.add(this._popup,n[r]);return e},_appendPopup:function(e){(this.params.getPopupContainer&&this.params.getPopupContainer()||document.body).appendChild(e)},_repositionPopup:function(){this.__base.apply(this,arguments),this._popup&&(this._popup.style.top=MBEM.offset(this._input).top+this._input.offsetHeight+this.params.popupOffset+"px")},_showPopup:function(){this.__base.apply(this,arguments),this._repositionPopup()},getDefaultParams:function(){var e=this.__base.apply(this,arguments);return e.popupOffset=0,e}})},3763:function(){MBEM.decl("mini-suggest",{__constructor:function(){this.__base.apply(this,arguments),this._modCache["theme-color"]&&this.setThemeColor(this._modCache["theme-color"])},setThemeColor:function(e){this._updateRootThemeColorClassname(e),this._overlay&&this._updateOverlayThemeColorClassname(e),this._popup&&this._updatePopupThemeColorClassname(e),this._themeColor=e},_updateRootThemeColorClassname:function(e){this._themeColor&&MBEM.cls.remove(this.domElem,this.__self.className("","theme-color",this._themeColor)),e&&MBEM.cls.add(this.domElem,this.__self.className("","theme-color",e))},_updateOverlayThemeColorClassname:function(e){this._themeColor&&MBEM.cls.remove(this._overlay,this.__self.className("overlay","theme-color",this._themeColor)),e&&MBEM.cls.add(this._overlay,this.__self.className("overlay","theme-color",e))},_updatePopupThemeColorClassname:function(e){this._themeColor&&MBEM.cls.remove(this._popup,this.__self.className("popup","theme-color",this._themeColor)),e&&MBEM.cls.add(this._popup,this.__self.className("popup","theme-color",e))},_createOverlay:function(){var e=this.__base.apply(this,arguments);return e&&this._themeColor&&MBEM.cls.add(e,this.__self.className("overlay","theme-color",this._themeColor)),e},_createPopup:function(){var e=this.__base.apply(this,arguments);return e&&this._themeColor&&MBEM.cls.add(e,this.__self.className("popup","theme-color",this._themeColor)),e}})},8244:function(){MBEM.decl({block:"mini-suggest",modName:"type-icon",modVal:"yes"},{_processResponse:function(){var e=this.__base.apply(this,arguments);return e.forEach(this._enrichItem,this),e},_enrichItem:function(e){var t=e[0],n=e[5]||{};this.__self.itemTypeIsEnrichable(e)&&(n.img={"icon-type":"search",size:this._getItemTypeIconSize(e),icon:n.personal?"personal":t},e[5]=n)},_getItemTypeIconSize:function(){}},{itemTypeIsEnrichable:function(e){return"fulltext"===e[0]}})},1035:function(){MBEM.decl("mini-suggest",{__constructor:function(){this.__base.apply(this,arguments),this._prevRequestText=null,this._focused=!1,this._empty=!0,this._opened=!1,this._isShown=!1,this._spaceCreated=!1,this._listenersToUnmount=[],this._setElements(),this._syncVal(),this._bindHandlers(),setTimeout(function(){document.activeElement===this._input&&this._onInputFocus()}.bind(this),0)},_setElements:function(){this._input=this.domElem},_bindHandlers:function(){var e=MBEM.eventProxy("_onInputFocus",this),t=MBEM.eventProxy("_onInputBlur",this),n=MBEM.eventProxy("_onInput",this),i=MBEM.eventProxy("_onPageShow",this);if(this.bindTo(this._input,"focus",e).bindTo(this._input,"blur deactivate",t).bindTo(this._input,"input",n),this.on("item-click",MBEM.eventProxy("_onItemClick",this)),9===document.documentMode){var o=function(){document.activeElement===this._input&&this._onInput()};this.bindTo(document,"selectionchange",o),this._listenersToUnmount.push((function(){this.unbindFrom(document,"selectionchange",o)}))}this.bindTo(window,"pageshow",i),this._listenersToUnmount.push((function(){this.unbindFrom(this._input,"focus",e).unbindFrom(this._input,"blur deactivate",t).unbindFrom(this._input,"input",n),this.unbindFrom(window,"pageshow",i)}))},_onInputFocus:function(){this._focused=!0,this._opened||this._openSuggest()},_openSuggest:function(){this._fixScrollTop(),this._update(),this._checkAndShowPopup(),this._opened=!0,this._startInput(),this.trigger("open")},_startInput:function(){this._inputStarted||(this._inputStarted=!0,this.trigger("start-input"))},_stopInput:function(){this._inputStarted=!1},_onBeforeInputChange:function(e){this._spaceCreated="tpah"===e.type||"arrow"===e.type},_onInputBlur:function(){this._focused=!1,this._opened&&!this.params.preventCloseOnBlur&&this._closeSuggest()},_closeSuggest:function(e){this._opened=!1,this._focused&&!e&&this._blur(),this._checkAndHidePopup(),this.trigger("close")},_onInput:function(e){this._input.value!==this._val&&(this._spaceCreated=!1,this._syncVal(),this._focused&&!this._opened&&e?this._openSuggest():this._update(),this.trigger("input-change",{type:"user"}))},_checkAndShowPopup:function(){this._shouldShowPopup()&&this._showPopup()},_shouldShowPopup:function(){return!this._isShown&&(!this._empty||this._shouldShowEmptyPopup())},_showPopup:function(){this._createPopup(),MBEM.cls.add(this.domElem,"mini-suggest_open"),MBEM.cls.add(this._popup,"mini-suggest__popup_visible"),this.trigger("popup-show",{empty:this._empty}),this._isShown=!0},_checkAndHidePopup:function(){this._isShown&&this._hidePopup()},_clearInstance:function(){this._inputStarted=!1,this._prevRequestText=null,this._renderItems([])},resetUserInput:function(e){void 0!==e&&this._setInputVal(e),this._syncVal(),this._opened&&this._closeSuggest()},reset:function(e){this.resetUserInput(e),this._clearInstance()},softReset:function(e){this.resetUserInput(e),this._prevRequestText!==this._val&&this._items&&this._items.length&&this._renderItems([])},_hidePopup:function(){MBEM.cls.remove(this.domElem,"mini-suggest_open"),MBEM.cls.remove(this._popup,"mini-suggest__popup_visible"),this.trigger("popup-hide"),this._isShown=!1},_update:function(e){(e||this._prevRequestText!==this._val)&&(this._prevRequestText=this._val,!this.params.skipEmptyRequest||this._val?this._request(this._val,this._onResponse):this._renderItems([]))},_onResponse:function(e,t,n){var i=this._processResponse(t),o=e===this._prevRequestText;this.trigger("response",{data:t,items:i,url:n.url,duration:n.duration,relevant:o,text:e}),o&&this._renderItems(i)},_processResponse:function(e){return this.params.responseAdapter?this.params.responseAdapter(e):e},_renderItems:function(e,t){this._createPopup(),e.length||this._shouldShowEmptyPopup()?this._renderItemsFilled(e,t):this._renderItemsEmpty(t),this._syncItems(e)},_shouldShowEmptyPopup:function(){return!1},_renderItemsFilled:function(e,t){this._popupContent.innerHTML=this._getItemsHTML(e),t||this.trigger("popup-update",{items:e}),this._empty=!1,this._opened&&this._checkAndShowPopup()},_renderItemsEmpty:function(e){this._popupContent.innerHTML="",e||this.trigger("popup-clear"),this._empty=!0,this._checkAndHidePopup()},_getItemsHTML:function(e){return e.reduce(this._renderItem.bind(this),"")},_renderItem:function(e,t,n){if(this.params.itemRenderer)return e+this.params.itemRenderer(t,n);var i=t[0];if(!this.__self.itemTypeIsSupported(i))return e;var o=this._buildItem(t,n),r=this._buildItemContent(t,o);return o.linkAttrs&&(r=this._wrapItemLink(r,o.linkAttrs)),e+o.prefix+(r?"<"+o.tag+' class="'+o.className+'"'+this.__self.toHtmlAttrsString(o.attrs)+">"+r+"</"+o.tag+">":"")+o.suffix},_buildItem:function(e,t){return{tag:this.params.ignoreSemanticList?"div":"li",className:"mini-suggest__item mini-suggest__item_type_"+e[0],attrs:{"data-index":t,"data-type":e[0]},content:{},prefix:"",suffix:""}},_wrapItemLink:function(e,t){return"<a"+this.__self.toHtmlAttrsString(t)+">"+e+"</a>"},_createPopup:function(){if(this._popup)return!1;var e=this._popup=document.createElement("div");e.className=this._buildPopupClassList();var t=this._popupContent=document.createElement(this.params.ignoreSemanticList?"div":"ul");return t.className="mini-suggest__popup-content",t.setAttribute("role","listbox"),e.appendChild(t),this._appendPopup(e),this._popup},_buildPopupClassList:function(){return"mini-suggest__popup mini-suggest__popup_svg_"+(this.__self.hasSvg()?"yes":"no")},_appendPopup:function(e){MBEM.insertAfter(e,this._input)},_onPopupClick:function(e){var t=MBEM.closest(e.target,"mini-suggest__item");if(t){var n=t.getAttribute("data-text"),i=t.getAttribute("data-type");"tpah"===i?this._handleTpahClick(e,t,n,!0):this.__self.itemTypeIsSearchable(i)?this._changeText(n,"suggest-item",!1,(function(){this._handleCommonItemClick(e,t,i,n)})):this.__self.itemTypeIsNavigable(i)&&this._handleLinkItemClick(e,t,i,n)}},_handleTpahClick:function(e,t,n,i){i=void 0===i||i,this._changeText(n+" ","tpah",i,(function(){var e=0|t.getAttribute("data-index"),i=this._dataItems[e];this.trigger("item-tpah",{itemIndex:e,val:n,dataItem:i})}))},_onItemClick:function(){this.params.resetOnSelect&&(this._renderItems([]),this._prevRequestText=null)},_syncVal:function(){var e=this._val;this._setVal(this._input.value),e!==this._input.value&&this.trigger("input-value-changed")},_syncItems:function(e){this._dataItems=e,this._items=MBEM.arrayFrom(this._popupContent.querySelectorAll(".mini-suggest__item"))},_removeItem:function(e){this._items.splice(this._items.indexOf(e),1)},_setVal:function(e){this._val=e,MBEM.cls.toggle(this.domElem,this.__self.className("","has-value","yes"),Boolean(this._val))},_setInputVal:function(e){this._input.value=e},_changeText:function(e,t,n,i){(n=void 0===n||n)&&this._onBeforeInputChange({type:t}),this._setInputVal(e),this._syncVal(),this._focusInputOnChangeText(n),this._moveCaret(),n&&(this._update(),this.trigger("input-change",{type:t})),i&&i.call(this)},_focusInputOnChangeText:function(){document.activeElement!==this._input&&this._input.focus()},_getMainUrlParams:function(e){var t={svg:this.__self.hasSvg()?1:0,part:e,pos:this._getCaretPosition()};return this._spaceCreated&&(t.space_created=1),this.params.getExtraUrlParams&&(t=MBEM.extend(t,this.params.getExtraUrlParams(e))),t},_getCaretPosition:function(){var e,t=this._val.length;return document.selection?((e=document.selection.createRange()).moveStart("character",-t),e.text.length):"number"==typeof this._input.selectionStart?this._input.selectionStart:t},_moveCaretToEnd:function(){var e=this._val.length;try{if(void 0!==this._input.createTextRange){var t=this._input.createTextRange();t.collapse(!1),t.select()}else"number"==typeof this._input.selectionStart&&(this._input.scrollLeft=999999,this._input.setSelectionRange(e,e))}catch(n){}},_moveCaretToStart:function(){try{this._input.scrollLeft=0,this._input.setSelectionRange(0,0)}catch(e){}},_moveCaret:function(){this._moveCaretToEnd()},_getItemEventProps:function(e,t,n,i){var o=0|e.getAttribute("data-index"),r=this._dataItems&&this._dataItems[o];return{node:e,type:t,subtype:r&&r[5]&&r[5].type,byKeyboard:Boolean(i),itemIndex:o,val:n||this._val,dataItem:r}},_blur:function(){this._input.blur();try{document.activeElement&&document.activeElement.blur()}catch(e){MBEM.consoleError("No active element")}},_handleClick:function(){},_fixScrollTop:function(){window.pageYOffset<1&&(document.body.scrollTop=0)},_handleCommonItemClick:function(e,t,n,i,o){this.trigger("item-click",this._getItemEventProps(t,n,i,"keyboard"===o,{event:e}))},_handleLinkItemClick:function(e,t,n,i,o){this._touchClick(e)||this._handleCommonItemClick(e,t,n,i,o),this._stopInput()},_touchClick:function(e,t){return!("touchend"!==e.type||!e.defaultPrevented||((t||e.target).click(),0))},_onPageShow:function(e){e.persisted&&this._onBFCache()},_onBFCache:function(){this.reset()},unmount:function(){var e=this;this._listenersToUnmount.forEach((function(t){t.call(e)}))}},{hasSvg:function(){return 1},toHtmlAttrsString:function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=" "+n+'="'+String(e[n]).replace(/"/g,"&quot;")+'"');return t},itemTypeIsSupported:function(e){return["fulltext","tpah","nav","fact"].indexOf(e)>-1},itemTypeIsNavigable:function(e){return"nav"===e},itemTypeIsSearchable:function(e){return["fulltext","fact"].indexOf(e)>-1}})},4764:function(){MBEM.decl("mini-suggest",{_selectItem:function(e){this.__base.apply(this,arguments),this._input.setAttribute("aria-activedescendant",e.id),e.setAttribute("aria-selected",!0)},_unselectAll:function(){if(this.__base.apply(this,arguments),this._popup){var e=this._input.getAttribute("aria-activedescendant");if(e){this._input.setAttribute("aria-activedescendant","");var t=document.getElementById(e);t&&t.setAttribute("aria-selected",!1)}}}})},849:function(){MBEM.decl({block:"mini-suggest",modName:"re-request",modVal:"yes"},{_handleReResponse:function(e,t){this.__base.apply(this,arguments),t.relevant&&t.items.length&&(this._meta=t.data[2]||{})}})},8946:function(){MBEM.decl("mini-suggest",{__constructor:function(){this.__base.apply(this,arguments),this._enableCounterSrc=this.params.counter&&this.params.counter.src},_handleItemClick:function(e,t){this.__base.apply(this,arguments),!this._enableCounterSrc||"fulltext"!==t.type&&"fact"!==t.type||this._attachSrc()},_handleButtonClick:function(){this.__base.apply(this,arguments),this._enableCounterSrc&&this._attachSrc()},_attachSrc:function(){if(this._path.index>0&&this._meta[this.__self.metaProps.log]){var e=this._meta[this.__self.metaProps.log].match(/(sgtype:){0}([A-Z][a-z]*)/g),t=e&&e[this._path.index-1];t&&this._appendHiddenInput("src","suggest_"+t)}}})},5752:function(){MBEM.decl("mini-suggest",{__constructor:function(){this.__base.apply(this,arguments),this.params.counter&&this.on("item-select",this._handleItemSelect,this)},_handleItemSelect:function(e,t){t.personal?this._path.personal="nah_used":"nah_used"===this._path.personal&&(this._path.personal="nah_not_used"),this._changePathState("keyboard")&&(this._path.index=t.itemIndex+1),++this._ratio.actionsCount},_handleItemClick:function(){this._responses.clks++,this.__base.apply(this,arguments)}})},5607:function(){MBEM.decl("mini-suggest",{getItemIterator:function(){var e,t,n,i=this;function o(){e=i._items||[],t=i._selectedItem,n={index:t,item:e[t]}}function r(e,t){var n=e.length+1;t<0&&(t+=n*Math.ceil(Math.abs(t)/n));var i=t%n;return e[i]?{index:i,item:e[i]}:{index:-1,item:void 0}}function s(n){var o="top"===n,s=e.length,a=0,c=void 0;do{a++,c=r(e,t+(o?-1:1)*a)}while(a<s&&-1!==c.index&&(!c.item||!i._isItemSelectableByKeyboard(c.item)));return c}function a(e){return-1===e.index||i._isItemSelectableByKeyboard(e.item)?e:n}return{getNextFromTop:function(){return o(),a(s("top"))},getNextFromBottom:function(){return o(),a(s("bottom"))},getNextFromRight:function(){return o(),n},getNextFromLeft:function(){return o(),n}}}})},1457:function(){MBEM.decl("mini-suggest",{__constructor:function(){this.__base.apply(this,arguments),this._selectedItem=-1,this._keyboardSelectedItem=-1,this._keyboardStartValue=this._val,this._keyboardItemIterator=null},_bindHandlers:function(){this.__base.apply(this,arguments),this.bindTo(this._input,"keydown",MBEM.eventProxy("_onKeydown",this)).bindTo(this._input,"keypress",MBEM.eventProxy("_onKeypress",this)).bindTo(this._input,"click",MBEM.eventProxy("_onInputFocus",this)),this.on("input-change",MBEM.eventProxy("_onInputChange",this))},_onInputChange:function(e,t){this._keyboardSelectedItem=-1,"select"!==t.type&&"unselect"!==t.type&&(this._keyboardStartValue=this._val)},_openSuggest:function(){this.__base.apply(this,arguments),this._keyboardSelectedItem=-1,this._keyboardStartValue=this._val},_isItemSelectableByKeyboard:function(e){return e.parentNode&&0!==e.childNodes.length},getItemIterator:function(){return MBEM.debugEnabled&&MBEM.consoleError("Error on desktop.blocks/.../mini-suggest__keyboard :\n need to override getItemIterator"),{getNextFromTop:function(){},getNextFromBottom:function(){},getNextFromRight:function(){},getNextFromLeft:function(){}}},_syncItems:function(){this.__base.apply(this,arguments),Array.isArray(this._items)?this._keyboardItemIterator=this.getItemIterator():MBEM.debugEnabled&&MBEM.consoleError("Error on desktop.blocks/.../mini-suggest__keyboard :\n _items not array \n items type: "+typeof this._items)},isAllowedMoveCursor:function(e){var t=this.__self.keyboardCodes;return-1!==[t.arrowLeft,t.arrowRight].indexOf(e.which)},_onKeydown:function(e){var t=this.__self.keyboardCodes,n=[t.arrowUp,t.arrowDown,t.arrowLeft,t.arrowRight];if(this._popupContent&&this._isShown&&!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)&&-1!==n.indexOf(e.which)&&this._keyboardItemIterator){this.isAllowedMoveCursor(e)||e.preventDefault();var i=void 0;switch(e.which){case t.arrowUp:i=this._keyboardItemIterator.getNextFromTop();break;case t.arrowDown:i=this._keyboardItemIterator.getNextFromBottom();break;case t.arrowLeft:i=this._keyboardItemIterator.getNextFromLeft();break;case t.arrowRight:i=this._keyboardItemIterator.getNextFromRight()}var o=i&&i.index<0;i&&this._selectedItem!==i.index&&(o?this._unselectAll(!0):this._selectItem(i.item,i.index,!0))}e.which===t.esc&&this._opened&&this._closeSuggest(!0)},_onKeypress:function(e){var t=this.__self.keyboardCodes;if(e.which===t.enter){var n=this._keyboardSelectedItem>-1&&this._items[this._keyboardSelectedItem];if(e.preventDefault(),n){var i=n.getAttribute("data-type"),o=n.getAttribute("data-text");"tpah"===i?(this._handleTpahClick(e,n,o,!1),this._onEnter()):this._handleCommonItemClick(e,n,i,null,"keyboard")}else this._onEnter()}},_onEnter:function(){this.trigger("input-enter"),this._doSubmit()},_selectItem:function(e,t,n){if(this.__base.apply(this,arguments),this._selectedItem=void 0===t?this._items.indexOf(e):t,n){var i=e.getAttribute("data-type"),o=e.getAttribute("data-text");this._keyboardSelectedItem=this._selectedItem,this._changeText(o,"select",!1),this.trigger("item-select",this._getItemEventProps(e,i,o,!0),!0)}else this._keyboardSelectedItem=-1},_renderItems:function(){this.__base.apply(this,arguments),this._unselectAll()},_unselectAll:function(e){this.__base.apply(this,arguments),this._selectedItem=-1,this._keyboardSelectedItem=-1,e&&this._changeText(this._keyboardStartValue,"unselect",!1)},_onItemClick:function(e,t){this.__base.apply(this,arguments),this.__self.itemTypeIsNavigable(t.type)&&t.byKeyboard&&this._openLinkByKeyboard(t)},_openLinkByKeyboard:function(e){var t=e.node.querySelector(".mini-suggest__item-link"),n=t.getAttribute("target"),i=t.getAttribute("href");if("_self"===n)setTimeout((function(){window.location=i}),0);else{var o=window.open("",n);o.opener=null,o.location=i}}},{keyboardCodes:{enter:13,esc:27,arrowUp:38,arrowDown:40,arrowLeft:37,arrowRight:39}})},4633:function(){MBEM.decl("mini-suggest",{_createPopup:function(){var e=this.__base.apply(this,arguments);return e&&(this._handleClick(this._popup,MBEM.eventProxy("_onPopupClick",this)),this.bindTo(this._popup,"mouseover",MBEM.eventProxy("_onMouseover",this)).bindTo(this._popup,"mouseout",MBEM.eventProxy("_onMouseout",this))),e},_isItemHoverable:function(e){return!0},_onMouseover:function(e){var t=MBEM.closest(e.target,"mini-suggest__item");t&&this._isItemHoverable(t)&&this._selectItem(t)},_onMouseout:function(e){MBEM.closest(e.target,"mini-suggest__item")&&this._unselectAll()},_handleClick:function(e,t){return this.bindTo(e,"mousedown",(function(e){e.preventDefault()})).bindTo(e,"click",(function(e){!e.button&&t&&t.call(this,e)})),this}})},2455:function(){MBEM.decl({block:"mini-suggest",modName:"redesigned-navs",modVal:"yes"},{_buildItemContentTitle:function(e,t){return t.content.title},_buildItemContentSubtitleWarning:function(e,t){return t.content.age||this.__base.apply(this,arguments)}})},8818:function(){MBEM.decl({block:"mini-suggest",modName:"direct",modVal:"yes"},{_buildItem:function(e){var t=this.__base.apply(this,arguments),n=e[5];if(n&&this._isDirect(n)){var i=t.content;i.descr=this._buildDirectLabel(n,t),n&&!n.warn&&n.age&&(i.age='<div class="mini-suggest__item-warning mini-suggest__item-warning_type_age">'+MBEM.encode(n.age)+"</div>"),i.warn=n.ad?"":this._buildDirectWarning(n,t,!0)}return t},_buildItemContentTitle:function(e,t){return this.__base.apply(this,arguments)+(t.content.age||"")},_buildDirectLabel:function(){return'<span class="mini-suggest__item-label">'+MBEM.encode(this.params.direct.label)+"</span>"}})},7784:function(){MBEM.decl({block:"mini-suggest",modName:"entity-suggest",modVal:"yes"},{_needFavicon:function(e){return this.__base.apply(this,arguments)&&"entity"!==e[5].type},_shouldAddContentInfoArrow:function(e){return this.__base.apply(this,arguments)&&"entity"!==e[5].type}})},1331:function(){MBEM.decl({block:"mini-suggest",modName:"favicon",modVal:"yes"},{_buildItem:function(e){var t=this.__base.apply(this,arguments);return this._needFavicon(e)&&(t.content.thumb=""),t},_buildItemContentInfo:function(e){var t=this.__base.apply(this,arguments);if(this._needFavicon(e)&&this._shouldAddFaviconToContentInfo(e)){var n=e[5]&&e[5].img&&e[5].img.url||this._buildFaviconUrl(e[3]);t=this._buildFavicon(n)+t}return t},_needFavicon:function(e){return"nav"===e[0]&&"market"!==e[5].type&&"video"!==e[5].type},_shouldAddFaviconToContentInfo:function(){return!0}})},3544:function(){MBEM.decl({block:"mini-suggest",modName:"grouping",modVal:"yes"},{_buildItem:function(e){var t=this.__base.apply(this,arguments),n=e[5],i=this._groups[n.groupIndex]||{};return n.groupStart&&(t.prefix+=this._buildGroupStart(i)+this._buildGroupHeader(i)),n.groupEnd&&(t.suffix+=this._buildGroupEnd(i)),t},_buildPopupClassList:function(){return this.__base.apply(this,arguments)+" "+this.__self.className("popup","grouping","yes")},_builGroupClassName:function(e){var t="mini-suggest__group";return e.type&&(t+=" mini-suggest__group_type_"+e.type),e.separated&&(t+=" mini-suggest__group_layout_separated"),t},_buildGroupStart:function(e){return'<div class="'+this._builGroupClassName(e)+'" role="presentation">'},_buildGroupHeader:function(e){return e.title?'<div class="mini-suggest__group-title">'+MBEM.encode(e.title)+"</div>":""},_buildGroupEnd:function(){return"</div>"}})},8907:function(){MBEM.decl({block:"mini-suggest",modName:"inversed-highlight",modVal:"yes"},{_highlight:function(e,t){return MBEM.reverseHl(e,t,!this._prevRequestText,Boolean(this.params.expandHighlightByWord))}})},5654:function(){MBEM.decl("mini-suggest",{_shouldAddContentInfoArrow:function(e){return this.__base.apply(this,arguments)||e[5]&&"mt"===e[5].type}})},6115:function(){MBEM.decl({block:"mini-suggest",modName:"redesigned-navs",modVal:"yes"},{_buildItem:function(e){var t=this.__base.apply(this,arguments);if(this._shouldNavBeRedesigned(e)){var n=e[5]&&e[5].img&&e[5].img.url,i=this.params.faviconSourceSize||this._getRedesignedNavFaviconSourceSize(),o=this.params.faviconRenderSize||this._getRedesignedNavFaviconRenderSize();n&&-1!==n.indexOf(this.params.faviconUrl)&&(n=n.replace("size=32","size="+i));var r=n||this._buildFaviconUrl(e[3],i);this.params.faviconAdditionalUrlParams&&(r=MBEM.appendUrlParams(r,this.params.faviconAdditionalUrlParams)),t.content.thumb=this._buildThumb({mods:{favicon:"yes"},img:{url:r,size:"s",orientation:"square",shade:!0}},{backgroundSize:o,borderRadius:this.params.faviconBorderRadius})}return t},_buildPopupClassList:function(){var e=this.__base.apply(this,arguments);return this.params.hideThumbBackground&&(e+=" "+this.__self.className("popup","thumb-background","no")),e},_shouldAddFaviconToContentInfo:function(){return!1},_shouldNavBeRedesigned:function(e){return this._needFavicon(e)},_getRedesignedNavFaviconSourceSize:function(){return"32"},_getRedesignedNavFaviconRenderSize:function(){return"16px"}})},5504:function(){MBEM.decl("mini-suggest",{_buildItemContentMain:function(e,t){var n=this._buildItemContentTitle(e,t),i=this._buildItemContentInfo(e,t)+this._buildItemContentAdds(e,t)+this._buildItemContentButton(e,t)+this._buildItemContentSubtitleWarning(e,t);return this._shouldWrapItemTitle(e)&&(n&&(n='<span class="mini-suggest__item-title">'+n+"</span>"),i&&e[5]&&!e[5].inline&&(i='<div class="mini-suggest__item-subtitle">'+i+"</div>")),n+i},_buildItemContentInfo:function(e,t){var n=this.__base.apply(this,arguments),i="";return this._shouldAddContentInfoArrow(e)&&(i+='<span class="mini-suggest__item-info-arrow"></span>'),i+=t.content.icon||"",n&&(i+='<span class="mini-suggest__item-info">'+n+"</span>"),i},_shouldAddContentInfoArrow:function(e){return e[5]&&e[5].inline&&"fact"===e[0]&&!e[5].icon},_buildItemContentSubtitleWarning:function(){return""}})},1385:function(){MBEM.decl("mini-suggest",{_buildItem:function(e){var t=this.__base.apply(this,arguments);return e[5]&&e[5].hl&&(t.content.title=this._highlight(e[1],e[5].hl)),e[5]&&e[5].inline&&(t.className+=" mini-suggest__item_inline"),t},_highlight:function(e,t){return MBEM.hl(e,t)}})},780:function(){MBEM.decl({block:"mini-suggest",modName:"arrows",modVal:"yes"},{_buildItem:function(e){var t=this.__base.apply(this,arguments);return this._shouldAddItemArrow(e)&&(t=this._addArrow(e,t)),t},_shouldAddItemArrow:function(e){return("fulltext"===e[0]||"fact"===e[0])&&e[5]&&!e[5].personal&&"phone"!==e[5].type}})},3939:function(){var e;e=[{width:112,height:16,ratio:.08,name:"medical"},{width:105,height:41,ratio:.1,name:"dietary"}],MBEM.decl({block:"mini-suggest",modName:"direct-special-warn",modVal:"yes"},{_getSpecialWarnParams:function(t){return e[t-1]},_adjustSpecialWarnSize:function(e,t){var n=MBEM.closest(e,"mini-suggest__item");if(n){var i=n.querySelector(".mini-suggest__item-content"),o=n.getBoundingClientRect(),r=i.getBoundingClientRect(),s=o.height,a=o.width,c=r.height,l=t.width/t.height,u=s*a,d=Math.sqrt(t.ratio*u/l),h=d*l;d>c&&(d=c,h=u*t.ratio/d),i.style.paddingRight=Math.ceil(h)+12+"px",e.style.height=Math.ceil(d)+"px";var m=n.offsetWidth-a;if(m>1){var p=h-m,f=d*h;h=(f-d*p)/(d-s*f/u)+p,i.style.paddingRight=Math.ceil(h)+12+"px"}e.style.width=Math.ceil(h)+"px",e.style.top=r.top-o.top+(c-d)/2+"px",e.style.right=o.right-r.right+"px"}}})},8045:function(){MBEM.decl({block:"mini-suggest",modName:"entity-suggest",modVal:"yes"},{_shouldProcessRawItem:function(e){return this.__base.apply(this,arguments)&&!(e[5]&&"entity"===e[5].type)},_shouldAddItemArrow:function(e){return this.__base.apply(this,arguments)&&!(e[5]&&"entity"===e[5].type)}})},3698:function(){MBEM.decl({block:"mini-suggest",modName:"grouping",modVal:"yes"},{__constructor:function(){this.params.ignoreSemanticList=!0,this._groups=[],this.__base.apply(this,arguments)},_processResponse:function(){var e=this.__base.apply(this,arguments);this._groups=[];for(var t=0;t<e.length;t++){var n=e[t];if("group"===n[0]){var i=this._processGroup(n);i&&(e.splice.apply(e,[t,1].concat(i)),t+=i.length-1)}else{var o=e[t-1],r=e[t+1],s=!o||o[5].groupEnd,a=!r||"group"===r[0];this._processGroupItem(n,-1,s,a)}}return e},_processGroup:function(e){if(e[6].length)return e[5].title=e[1],this._groups.push(e[5]),e[6].forEach(function(e,t,n){this._processGroupItem(e,this._groups.length-1,0===t,t===n.length-1)}.bind(this)),e[6]},_processGroupItem:function(e,t,n,i){return e[5]=e[5]||{},e[5].groupIndex=t,n&&(e[5].groupStart=!0),i&&(e[5].groupEnd=!0),e}})},2584:function(){MBEM.decl({block:"mini-suggest",modName:"overlay"},{__constructor:function(){var e=this.__base.apply(this,arguments);return this._initOverlay(),e},_openSuggest:function(){this.__base.apply(this,arguments),this._initOverlay(),MBEM.cls.add(this._overlay,"mini-suggest__overlay_visible")},_closeSuggest:function(){this.__base.apply(this,arguments),this._overlay&&MBEM.cls.remove(this._overlay,"mini-suggest__overlay_visible")},_prepareOverlayParent:function(){return this.domElem}})},518:function(){MBEM.decl({block:"mini-suggest",modName:"personal",modVal:"yes"},{_buildItem:function(e){var t=this.__base.apply(this,arguments);return"fact"===e[0]&&e[5]&&e[5].personal&&(t=this._personalExtend(t)),t},_removeItem:function(){this.__base.apply(this,arguments),this._selectedItem=this._items.indexOf(this._popupContent.querySelector(".mini-suggest__item_selected_yes"))}})},9046:function(){MBEM.decl({block:"mini-suggest",modName:"re-request",modVal:"yes"},{_allowReRequest:function(e,t){return this.__base.apply(this,arguments)&&t[2]&&t[2].maybe_ads}})},2897:function(){MBEM.decl({block:"mini-suggest",modName:"large-thumbs",modVal:"yes"},{_buildPopupClassList:function(){return this.__base.apply(this,arguments)+" "+this.__self.className("popup","large-thumbs","yes")}})},8063:function(){MBEM.decl({block:"mini-suggest",modName:"redesigned-navs",modVal:"yes"},{_buildPopupClassList:function(){return this.__base.apply(this,arguments)+" "+this.__self.className("popup","redesigned-navs","yes")}})},3188:function(){MBEM.decl({block:"mini-suggest",modName:"search",modVal:"yes"},{_processResponse:function(e){var t=this,n=this.__self.hasSvg()?"svg":"png";return e[1].map((function(e){if(!t._shouldProcessRawItem(e))return e;if("string"==typeof e)return["fulltext",e,e,null,null,{}];if("string"==typeof e[0]&&e[0].length){if("weather"===e[0]||"traffic"===e[0]){var i=e[5]||e[4];return["fact",e[1],e[1],e[2],null,{type:e[0],inline:!0,icon:{size:"l",url:"//yastatic.net/suggest-flag-icons/icon."+e[0]+"."+e[3].replace("-","minus-").replace("+","plus-").replace(/_/g,"-")+"."+n},hl:i&&i.hl,log:i&&i.log,personal:i&&Boolean(i.pers)}]}return"fact"===e[0]||"mt"===e[0]?["fact",e[1],e[1],e[2],null,{type:"fact"!==e[0]?e[0]:"",inline:!0,icon:e[3]&&e[3].icon,hl:e[3]&&e[3].hl,personal:e[3]&&Boolean(e[3].pers),log:e[3]&&e[3].log}]:"icon"===e[0]?["fact",e[1],e[1],e[2]&&e[2].fact||null,null,{inline:!0,hl:e[2]&&e[2].hl,icon:{url:e[2].icon.filter((function(e){return e[0]===n}))[0][1]},personal:e[2]&&Boolean(e[2].pers),log:e[2]&&e[2].log}]:e}return["fulltext",e[1],e[1],null,null,{hl:e[2]&&e[2].hl,personal:e[2]&&Boolean(e[2].pers)}]}))},_shouldProcessRawItem:function(e){return!("fact"===e[0]&&e[5]&&"phone"===e[5].type)}})},3042:function(){MBEM.decl({block:"mini-suggest",modName:"separate-popup",modVal:"yes"},{_repositionPopup:function(){this.__base.apply(this,arguments),this._popup&&(this._popup.style.width=this._input.offsetWidth+"px",this._popup.style.left=MBEM.offset(this._input).left+"px")}})},9629:function(){MBEM.decl({block:"mini-suggest",modName:"theme",modVal:"tile"},{_buildPopupClassList:function(){return this.__base()+" mini-suggest__popup_theme_tile"}})},4062:function(){MBEM.decl({block:"mini-suggest",modName:"type-icon",modVal:"yes"},{_getItemTypeIconSize:function(){return"s"}},{itemTypeIsEnrichable:function(e){var t=e[0],n=e[5]||{};return this.__base.apply(this,arguments)||!n.img&&"fact"===t}})},7253:function(){MBEM.decl("mini-suggest",{_update:function(){this._unselectAll(),this.__base.apply(this,arguments)},_selectItem:function(e){this._unselectAll(),MBEM.cls.add(e,"mini-suggest__item_selected_yes")},_unselectAll:function(){if(this._popup){var e=this._popupContent.querySelectorAll(".mini-suggest__item_selected_yes");MBEM.arrayFrom(e).forEach((function(e){MBEM.cls.remove(e,"mini-suggest__item_selected_yes")}))}}})},810:function(){MBEM.decl({block:"mini-suggest",modName:"direct",modVal:"yes"},{_canCheckAdVisibility:function(){return this.__base.apply(this,arguments)&&this._hasUserActivasion}})},2336:function(){MBEM.decl({block:"mini-suggest",modName:"search",modVal:"yes"},{__constructor:function(){this._freezeFocus=0,this.__base.apply(this,arguments)},_onClearClick:function(){this._freezeFocus=Date.now()+500,this.__base.apply(this,arguments)},_onInputBlur:function(){Date.now()<this._freezeFocus?this._input.focus():this.__base.apply(this,arguments)},_blur:function(){this._freezeFocus=0,this.__base.apply(this,arguments)}})},6832:function(){MBEM.decl("mini-suggest",{},{hasSvg:function(){return-1!==document.documentElement.className.indexOf("svg_yes")}})},4664:function(){MBEM.decl({block:"mini-suggest",modName:"redesigned-navs",modVal:"yes"},{_getRedesignedNavFaviconRenderSize:function(){return".888em"}})},5244:function(){MBEM.decl({block:"mini-suggest",modName:"theme",modVal:"tile"},{_repositionPopup:function(){if(this._popup){var e=MBEM.offset(this.domElem);this._popup.style.width=this.domElem.offsetWidth+"px",this._popup.style.left=e.left+"px",this._popup.style.top=e.top+this.domElem.offsetHeight+this.params.popupOffset+"px"}}})},6635:function(){MBEM.decl({block:"mini-suggest",modName:"type-icon",modVal:"yes"},{_buildPopupClassList:function(){return this.__base.apply(this,arguments)+" "+this.__self.className("popup","type-icon","yes")}})},6552:function(){MBEM.decl("mini-suggest",{_handleClick:function(e){return this.__base.apply(this,arguments).bindTo(e,"mousedown",(function(){this._freezeFocus=Date.now()+1e3})),this}})},5543:function(){MBEM.decl({block:"mini-suggest",modName:"hide-on-scroll",modVal:"yes"},{_bindHandlers:function(){this.__base.apply(this,arguments),MBEM.channel("i-scroll-event").on("scroll",this._onScroll,this)},_onScroll:function(e,t){this._focused&&(null!==this._latestScrollTop&&t>this._latestScrollTop&&MBEM.offset(this.domElem).top+this.domElem.offsetHeight+(this._popup&&this._popup.offsetHeight||0)+100<window.pageYOffset?this._blur():this._latestScrollTop=t)}})},9907:function(){function e(e,n){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){c=!0,s=e},f:function(){try{a||null==i.return||i.return()}finally{if(c)throw s}}}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var n=function(t,n){var i,o=e(t);try{for(o.s();!(i=o.n()).done;){var r=i.value;if(n>=r.height)return r.url}}catch(s){o.e(s)}finally{o.f()}return t[t.length-1].url};MBEM.decl("mini-suggest",{__constructor:function(){this.__base.apply(this,arguments),this.params.urlsByViewportHeight&&this.params.urlsByViewportHeight.length&&(this._updateRequestUrlParam(),this._throttledUpdateRequestUrlParam=MBEM.throttle(MBEM.eventProxy("_updateRequestUrlParam",this),200),this.bindTo(window,"resize",this._throttledUpdateRequestUrlParam))},_updateRequestUrlParam:function(){var e=window.innerHeight;this.params.urlsByViewportHeight&&this.params.urlsByViewportHeight.length&&(this.params.url=n(this.params.urlsByViewportHeight,e)),this.params.reRequestUrl&&this.params.reRequestUrlsByViewportHeight&&this.params.reRequestUrlsByViewportHeight.length&&(this.params.reRequestUrl=n(this.params.reRequestUrlsByViewportHeight,e))},unmount:function(){this.__base.apply(this,arguments),this._throttledUpdateRequestUrlParam&&this.unbindFrom(window,"resize",this._throttledUpdateRequestUrlParam)}})},5166:function(){!function(){"use strict";var e,t,n="requestAnimationFrame"in window,i=MBEM.channel("i-mini-scroll-to"),o={easeInOutSine:function(e){return.5-Math.cos(e*Math.PI)/2},easeOutQuad:function(e){return 1-(1-e)*(1-e)}},r=function(){e=null,n?cancelAnimationFrame(t):clearInterval(t)},s=function o(){if(e){var s=Math.max(0,Math.min(1,(Date.now()-e.startTime)/e.duration)),a=e.start+(e.end-e.start)*e.easing(s);window.scrollTo(window.pageXOffset,a),s>=1?(r(),setTimeout((function(){i.trigger("stop")}),100)):n&&(t=requestAnimationFrame(o))}else r()};MBEM.decl("i-mini-scroll-to",{},{scrollY:function(a,c,l){r(),i.trigger("start"),c?function(i,r,a){e={start:window.pageYOffset,end:i,duration:r,startTime:Date.now(),easing:o[a]||o.easeInOutSine},t=n?requestAnimationFrame(s):setInterval(s,13)}(a,c,l):(window.scrollTo(window.pageXOffset,a),setTimeout((function(){i.trigger("stop")}),100))}})}()},4499:function(){MBEM.decl("mini-suggest",{_handleSubmit:function(){this.__base.apply(this,arguments),this._log("click","search_go.enter")},_handleItemClick:function(e,t){this.__base.apply(this,arguments),this._log("click","search_go.suggest."+t.type)}})},6568:function(){function e(e){return e.some((function(e){var t;return null===(t=e[5])||void 0===t?void 0:t.personal}))}MBEM.decl("mini-suggest",{__constructor:function(){this.__base.apply(this,arguments),this.on("popup-show",this._mordaPopupShown),this.on("popup-update",this._mordaPopupUpdate),this.on("item-click",this._mordaHandleItemClick)},_mordaPopupShown:function(){this._dataItems&&e(this._dataItems)&&this.params.logPath("show","suggest_history")},_mordaPopupUpdate:function(t,n){this._isShown&&e(n.items)&&this.params.logPath("show","suggest_history")},_mordaHandleItemClick:function(e,t){t.personal&&this.params.logPath("click","suggest_history",{callback:function(){}})}})},3450:function(){MBEM.decl("mini-suggest",{__constructor:function(){this.__base.apply(this,arguments),window.Ya&&Ya.Rum&&Ya.Rum.sendTimeMark&&Ya.Rum.sendTimeMark("695.1309"),this.params.requestOnEmptyInput&&setTimeout(function(){this._val||this._update()}.bind(this)),this._changeTheme=this._changeTheme.bind(this),document.addEventListener("skin-changed",this._changeTheme),this._changeTheme(),this.on("submit",(function(){this._formSubmitted=!0}))},_getNavSource:function(){return"/"},_onInputFocus:function(){var e=this._focused;this.__base.apply(this,arguments),e||this._log("click","search_input.focus"),this._formSubmitted=!1,"undefined"!=typeof BEM&&BEM.channel("mini-suggest").trigger("focus")},_onInputBlur:function(){this.__base.apply(this,arguments),this._focused||this._formSubmitted||this._log("click","search_input.blur"),"undefined"!=typeof BEM&&BEM.channel("mini-suggest").trigger("blur")},_changeTheme:function(){this._isDarkTheme=MBEM.cls.contains(document.documentElement,"document_dark_yes")&&!MBEM.cls.contains(this.domElem,"force_light"),this.setThemeColor(this._isDarkTheme?"dark":"")},_onResponse:function(e){this.__base.apply(this,arguments),e===this._prevRequestText&&MBEM.cls.toggle(this._popup,"mini-suggest__popup_has-value_yes",Boolean(e))},_log:function(e,t){this.params.logPath(e,t)},_showPopup:function(){this.__base.apply(this,arguments),this._log("show","suggest")},unmount:function(){this.__base.apply(this,arguments),document.removeEventListener("skin-changed",this._changeTheme)}})},7751:function(){MBEM.decl("mini-suggest",{_getParams:function(e){return Object.keys(e).reduce((function(t,n){return""===e[n]||t.push(n+"="+("vars"===n?e[n]:encodeURIComponent(e[n])).replace(/%5B/g,"[").replace(/%5D/g,"]").replace(/%2C/g,",")),t}),[])},_getParamsList:function(){var e,t,n=this.__base.apply(this,arguments),i=this.params.getCustomPageParams(),o={};if(window.Ya&&Ya.Rum&&Ya.Rum.sendTimeMark&&Ya.Rum.sendTimeMark("153.1896"),i){for(var r=0,s=(i=i.replace(/^\//,"").split("/")).length;r<s;r++)e=(t=i[r]).indexOf("="),o[t.substr(0,e)]=t.substr(e+1,t.length);var a=this.params.getRoot(),c=home.getData?home.getData("timing.reqid"):"";return a&&(o.lid=a+".searchgo"),c&&(o.sid=c),n.concat(o)}return n}})},6788:function(){MBEM.decl({block:"mini-suggest",modName:"overlay"},{_initOverlay:function(){var e=this;this._overlay||(this._overlay=this._createOverlay(),this._prepareOverlayParent().appendChild(this._overlay),this.bindTo(this._overlay,"click",(function(){e._opened&&(document.body.classList.remove("body_services-suggest-force_yes"),e._closeSuggest())})))}})},5393:function(){MBEM.decl({block:"mini-suggest",modName:"overlay",modVal:"yaru"},{_appendPopup:function(e){var t=this.elem("popup-container")[0];if(!t)return this.__base.apply(this,arguments);t.appendChild(e)}})},9783:function(){MBEM.decl({block:"mini-suggest",modName:"redesign-type"},{_buildPopupClassList:function(){return this.__base.apply(this,arguments)+" "+this.__self.className("popup","redesign-type",this._modCache["redesign-type"])}})},2445:function(){MBEM.decl({block:"mini-suggest",modName:"redesign-type",modVal:"block"},{_processResponse:function(e){for(var t=0,n=0;n<e[1].length&&"nav"===e[1][n][0];n++)t=n+1;return t>0&&(e[1]=[["group","",null,null,null,{separated:!0},e[1].slice(0,t)]].concat(e[1].slice(t))),this.__base(e)}})},7710:function(){MBEM.decl({block:"mini-suggest",modName:"search",modVal:"yes"},{_closeSuggest:function(){this.__base.apply(this,arguments),document.body.classList.contains("body_services-suggest-force_yes")&&this._openSuggest()}})},8802:function(){MBEM.decl("mini-suggest",{__constructor:function(){var e=this;this.__base.apply(this,arguments),this.on("popup-show",(function(){MBEM.channel("mini-suggest").trigger("show")})),this.on("popup-hide",(function(){MBEM.channel("mini-suggest").trigger("hide")})),this.on("input-change",(function(){MBEM.channel("mini-suggest").trigger("input-change",e._val)})),this.on("start-input",(function(){MBEM.channel("mini-suggest").trigger("start-input")}))},_bindHandlers:function(){this.__base.apply(this,arguments)},_openSuggest:function(){this._wasUserActivationLogged||(this._log("click","search_input.user_triggered"),this._wasUserActivationLogged=!0),this.__base.apply(this,arguments),MBEM.channel("mini-suggest").trigger("focus")},openSuggest:function(){this._hasUserActivasion=!0,this._input.focus()},_createPopup:function(){var e,t,n,i,o=this.__base.apply(this,arguments);return null!==(e=this.domElem)&&void 0!==e&&null!==(t=e.classList)&&void 0!==t&&t.contains("force_light")&&(null===(n=this._popup)||void 0===n||null===(i=n.classList)||void 0===i||i.add("force_light")),o},_onInputBlur:function(){this.__base.apply(this,arguments),MBEM.channel("mini-suggest").trigger("blur")},focus:function(){var e;null===(e=this._input)||void 0===e||e.focus()}})}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,n),r.exports}!function(){"use strict";n(5454),n(2696),n(4376),n(8495),n(6384),n(3308),n(669),n(2323),n(513),n(539),n(5881),n(8945),n(2586),n(4364),n(7199),n(547),n(5911),n(418),n(8937),n(273),n(8248),n(6237),n(6116),n(7344),n(685),n(1035),n(6832),n(3450),n(7253),n(6552),n(8802),n(2707),n(7020),n(5136),n(9002),n(4175),n(4315),n(2584),n(6788),n(3763),n(1457),n(5607),n(4633),n(6231),n(4499),n(5752),n(3542),n(5369),n(7751);var e=function(e){return Boolean(e&&(e instanceof HTMLElement||e instanceof SVGElement))};MBEM.decl("mini-suggest",{_bindHandlers:function(){var t=this;this.__base.apply(this,arguments),this._handleClick(this.elem("action"),(function(n){for(var i=n.target;e(i)&&i!==document.body&&!("string"==typeof i.className&&i.className.indexOf("mini-suggest__action")>-1);)i=i.parentNode;if(e(i)){var o=i.getAttribute("data-action");o&&t.trigger("action",{type:o})}}))}}),n(233),n(4764),n(3369),n(8946),n(2647),n(9724),n(849),n(9770),n(8430),n(2346),n(4793),n(8978),n(1385),n(9544),n(6193),n(5504),n(2343),n(1331),n(6115),n(4664),n(5654),n(211),n(8907),n(5636),n(8818),n(1130),n(7842),n(6568),n(1279),n(5269),n(9046),n(5543),n(5166),n(3988),n(9256),n(6774),n(3042),n(2706),n(6357),n(3258),n(518),n(8477),n(2336),n(3188),n(7710),n(785),n(810),n(7251),n(780),n(9629),n(5244),n(877),n(5393),n(2623),n(8045),n(2270),n(7784),n(8244),n(4062),n(6635),n(2455),n(8063),n(2897),n(9907),n(3544),n(3698),n(9783),n(2445),n(2884);var t=Object.prototype.toString;function i(e,n){if(!n)return e;for(var o in n)if("__proto__"!==o&&n.hasOwnProperty(o)){var r=n[o];Array.isArray(r)?(e[o]=Array.isArray(e[o])?e[o]:[],i(e[o],r)):"[object Date]"===t.call(r)||"object"!=typeof r||null===r?e[o]=r:(e[o]="[object Object]"===t.call(e[o])?e[o]:{},i(e[o],r))}return e}console;var o=function(e,t){if(t)if("object"==typeof t){if(t.logged)return;t.logged=!0}else t=new Error(t);Boolean(window.Ya&&window.Ya.Rum&&window.Ya.Rum.logError)&&Ya.Rum.logError(function(e,t){var n={},o=t||{};return e.message&&(n.message=e.message),e.block&&(n.block=e.block),e.method&&(n.method=e.method),n.level=e.level||"error",(e.sourceType||o.sourceType)&&(n.type=e.sourceType||o.sourceType),e.source&&(n.source=e.source),e.sourceMethod&&(n.sourceMethod=e.sourceMethod),e.coordinates_gp&&(n.coordinates_gp=e.coordinates_gp),(e.meta||o.meta)&&(n.additional=i(e.meta||{},o.meta||{})),(e.url||o.url)&&(n.additional=n.additional||{},n.additional.url=e.url||o.url),(e.page||o.page)&&(n.page=e.page||o.page),n}(e,t),t)},r=/^(?:(.*?):)?\/\/([^/?#\s]+)(\/?.*)$/,s=/^(\/?[^?#\s]*)(?:\?([^#]+))?(?:#(.*))?$/;function a(e,t){return e.split("&").reduce((function(e,n){if(!n)return{};var i,s,a=n.match(/([^=]*)=(.*)/);if(a)try{i=decodeURIComponent(a[1]),s=decodeURIComponent(a[2])}catch(r){return o({message:"parseSearch: "+r.message+"; token: "+n,block:"url"}),e}else{try{i=decodeURIComponent(n)}catch(r){return o({message:"parseSearch: "+r.message+"; token: "+n,block:"url"}),e}s=""}if(i in e&&t){var c=e[i];"string"==typeof c&&(e[i]=[c]),e[i].push(s)}else e[i]=s;return e}),{})}MBEM.decl({block:"mini-suggest",modName:"spas",modVal:"yes"},{_onFormSubmit:function(e){var t,n,i,o;if(e&&this.domElem instanceof HTMLFormElement){for(var c=function(e){var t,n,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=e.match(r);c?i=c[3].match(s):(c=[],i=e.match(s));var l={scheme:(null===(t=c)||void 0===t?void 0:t[1])||"",host:(null===(n=c)||void 0===n?void 0:n[2])||"",path:i&&i[1]||"",search:i&&i[2]||"",hash:i&&i[3]||"",query:{}};return l.query=a(l.search,o.multi),l}(this.domElem.action||""),l=c.path,u={},d=0;d<this.domElem.length;d++){var h=this.domElem[d];h instanceof HTMLInputElement&&"INPUT"===h.tagName&&h.name&&h.value&&(u[h.name]=h.value)}var m,p,f=(p="",!(m={path:l,query:u}).scheme||!m.host&&m.path||(p+=m.scheme+"://"),m.host&&(m.scheme||(p+="//"),p+=m.host),p&&(m.path&&0!==m.path.indexOf("/")||!m.path)&&"/"!==p.charAt(p.length-1)&&(p+="/"),p+=m.path||"",m.query&&(p+=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(null!=i)for(var o=Array.isArray(i)?i:[i],r=0;r<o.length;++r)t.push(encodeURIComponent(n)+(""!==o[r]?"="+encodeURIComponent(String(o[r])):""))}return t.length?"?"+t.join("&"):""}(m.query)),m.hash&&(p+="#"+m.hash),p);if(!((null===(t=window.Ya.SearchSPARouter)||void 0===t||null===(n=t.go)||void 0===n?void 0:n.call(t,f))instanceof Promise))return this._log("tech","spas.submit.fail"),void this.__base.apply(this,arguments);e.preventDefault(),null===(i=this._sendCounters)||void 0===i||i.call(this),null===(o=this._abortPrevXhr)||void 0===o||o.call(this),this._log("click","search_go.enter"),this._log("tech","spas.submit.success")}else this.__base.apply(this,arguments)}}),n(5285),n(3939)}()}(),window.Ya&&Ya.Rum&&Ya.Rum.timeEnd&&Ya.Rum.timeEnd("2095")},235:function(){MBEM.decl("alert",{__constructor:function(){var e=this.params.click_url;e&&this.bindTo("content","click",(function(){"sendBeacon"in Navigator&&"function"==typeof Navigator.sendBeacon?Navigator.sendBeacon(e):(new Image).src=e}))}})},1958:function(){MBEM.decl("dist-overlay",{_onShow:function(){this.__base.apply(this,arguments),MBEM.cls.add(document.documentElement,"document_disable-scroll_yes")},_onHide:function(){this.__base.apply(this,arguments),MBEM.cls.remove(document.documentElement,"document_disable-scroll_yes")},_onLinkClick:function(){this.__base.apply(this,arguments),MBEM.cls.remove(document.documentElement,"document_disable-scroll_yes")}})},7271:function(){MBEM.decl("i-mini-message-locker",{},{blockOrder:["dist-overlay","dist-favourites","survey"]})},4170:function(){MBEM.decl("market-feed",{_setMdaCookie:function(){}})},2778:function(e,t,n){MBEM.decl("new-year-feed",{_getFeedBundle:function(){return n.e("new-year-feed").then(n.bind(n,891))}})},7227:function(){window.BEM&&window.Ya&&Ya.Rum&&Ya.Rum.enabled&&BEM.channel("i-bem").on("start-init",(function(){Ya.Rum.time("bem-inited")})).on("init",(function(){Ya.Rum.timeEnd("bem-inited")}))},8055:function(){MBEM.decl("up-button",{__constructor:function(){this.bindTo(this.domElem,"click",(function(){window.scrollTo({top:0,behavior:"smooth"})})),this.bindTo(window,"scroll",this._onWindowScroll)},_onWindowScroll:function(){var e=window.scrollY>window.innerHeight;MBEM.cls.toggle(this.domElem,"up-button_visible",e),MBEM.cls.toggle(document.documentElement,"document_feed-up_shown",e)},unmount:function(){this.unbindFrom(window,"scroll",this._onWindowScroll)}})}},o={};function r(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,r),n.exports}r.m=i,r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(t,n){return r.f[n](e,t),t}),[]))},r.u=function(e){return{keyboard:"3f","new-year-feed":"9f"}[e]+"/"+{keyboard:"3f13b2b6c853399df848","new-year-feed":"9ff94f1b2355acca1c7d"}[e]+".js"},r.miniCssF=function(e){return"bender-lite.en"===e?"../_bender-lite.css":{keyboard:"96","new-year-feed":"61"}[e]+"/"+{keyboard:"96dc030bff233f11f6b7","new-year-feed":"6156e89da2a5f4e19fb5"}[e]+".css"},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},r.l=function(t,n,i,o){if(e[t])e[t].push(n);else{var s,a;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var u=c[l];if(u.getAttribute("src")==t){s=u;break}}s||(a=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,r.nc&&s.setAttribute("nonce",r.nc),s.src=t,0!==s.src.indexOf(window.location.origin+"/")&&(s.crossOrigin="anonymous")),e[t]=[n];var d=function(n,i){s.onerror=s.onload=null,clearTimeout(h);var o=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((function(e){return e(i)})),n)return n(i)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)}},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="https://yastatic.net/s3/home-static/_/",t=function(e){return new Promise((function(t,n){var i=r.miniCssF(e),o=r.p+i;if(function(e,t){for(var n=document.getElementsByTagName("link"),i=0;i<n.length;i++){var o=(s=n[i]).getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(o===e||o===t))return s}var r=document.getElementsByTagName("style");for(i=0;i<r.length;i++){var s;if((o=(s=r[i]).getAttribute("data-href"))===e||o===t)return s}}(i,o))return t();!function(e,t,n,i){var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=function(r){if(o.onerror=o.onload=null,"load"===r.type)n();else{var s=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=a,o.parentNode.removeChild(o),i(c)}},o.href=t,0!==o.href.indexOf(window.location.origin+"/")&&(o.crossOrigin="anonymous"),document.head.appendChild(o)}(e,o,t,n)}))},n={"bender-lite.en":0},r.f.miniCss=function(e,i){n[e]?i.push(n[e]):0!==n[e]&&{keyboard:1,"new-year-feed":1}[e]&&i.push(n[e]=t(e).then((function(){n[e]=0}),(function(t){throw delete n[e],t})))},function(){var e={"bender-lite.en":0};r.f.j=function(t,n){var i=r.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var o=new Promise((function(n,o){i=e[t]=[n,o]}));n.push(i[2]=o);var s=r.p+r.u(t),a=new Error;r.l(s,(function(n){if(r.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+s+")",a.name="ChunkLoadError",a.type=o,a.request=s,i[1](a)}}),"chunk-"+t,t)}};var t=function(t,n){var i,o,s=n[0],a=n[1],c=n[2],l=0;if(s.some((function(t){return 0!==e[t]}))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(c)c(r)}for(t&&t(n);l<s.length;l++)o=s[l],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunk=self.webpackChunk||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),function(){"use strict";r(4119);var e=r(8086),t=r(7117);MBEM.decl("mini-suggest",{__constructor:function(){this.params.logPath=t.DF,this.params.logDOMShow=t.Dn,this.params.logError=e.H,this.params.getCustomPageParams=t.ek,this.params.getRoot=t.yj,this.__base.apply(this,arguments)}});r(2649);var n=r(44);!function(){var t=(0,n.Yu)("adb.data");if(t){var i,o,r=t.domain,s=t.sameSiteSupport,a=t.adb,c=t.onRenderTimeout,l=t.timeout,u=t.useShouldRender&&(0,n.Yu)("adb.shouldRender"),d=[],h=!1,m=1,p=function e(){if(!h)if(h=2===m,m++,f(),_(),home._cbsc&&d.push("styles"),d.length)h=!0,g(!0),i=!0;else if(h){i=!1,g(!1)}else l*=2,setTimeout(e,l)};MBEM.ready((function(){return setTimeout(p,l)}));var f=function(){var e;document.body.insertAdjacentHTML("beforeend",'<div class="b-spec-adv" aria-hidden="true"></div>');var t=document.querySelector(".b-spec-adv"),n=!(null!=t&&t.clientWidth);return null==t||null===(e=t.parentNode)||void 0===e||e.removeChild(t),n&&d.push("easylist"),n},_=function(){var e,n=t.adg;if(!n.str||!n.check)return!1;var i='<div class="some-class" aria-hidden="true" style="position:absolute;left:-10px;top:0;width:1px;height:1px;overflow:hidden;">'+n.str+"</div>";document.body.insertAdjacentHTML("beforeend",i);var o=!(null!==(e=document.querySelector(".some-class "+n.check))&&void 0!==e&&e.offsetWidth);return o&&d.push("adguard"),o},g=function(e){var n,i,o=Boolean(e||a&&!t.selfClean);(n=window).Ya||(n.Ya={}),(i=window.Ya).Context||(i.Context={}),window.Ya.Context.foua=o,(e||t.selfClean)&&v(e)},v=function(e){var n,i=new Date,o="",c=i.getTime(),l=24*14*60*60*1e3;e?(MBEM.channel("adb").trigger("detect"),i.setTime(c+l),n=a?"Adb cookie extended":"Adb cookie set"):(i.setTime(c-l),n="Adb cookie remove");var u="; expires="+i.toUTCString();s&&(o="; sameSite=None"),document.cookie=(t.cookie||"computer")+"=1"+u+";domain=."+r+o+"; secure=true; path=/",b(d,n)},b=function(t,n){(0,e.H)({level:"info",block:"adb",message:n,meta:{global:t.join(", ")},sourceType:"logic"})},y=function(){d.push("isBannerBlocked"),(0,e.H)({level:"info",block:"adb",message:"Adb blocked",meta:{shouldRender:String(u)},sourceType:"logic"}),h&&!i&&(i=!0,g(!0))};u&&(o=window.setTimeout(y,t.shouldRenderTimeout));MBEM.channel("adb").on("rendered",(function(e,t){setTimeout((function(){var e=t.elem;t.id===u&&clearTimeout(o),!document.documentElement.classList.contains("document_new-year-feed_yes")&&(0===e.offsetHeight&&0===e.offsetWidth)&&y()}),c)}))}}();r(2665);!function(){function e(){home.originalUrl=window.location.href;var e=(0,n.Yu)("i-change-url.data");if(e){var t,i=e.url;try{t=history.state}catch(o){}i&&ya.history&&ya.history.navigate({data:t||null,url:i,replace:!0})}}var t=+new Date;+new Date-t>5e3?e():setTimeout(e,100)}();var i,o=!1,s=[];function a(e){o?setTimeout(e,0):(s.push(e),i||(i=setTimeout((function e(){if(document.body&&home.export){o=!0;for(var t=0;t<s.length;++t)setTimeout(s[t],0)}else setTimeout(e,100)}),100)))}!function(){var e=null,t=!1,i=!1,o=document.createElement("div"),r=function(e){return o.innerHTML=e,o.firstChild};function s(n,o){if(o&&o.id){e||(e=r('<iframe style="display:none" aria-hidden="true" src="'+n+'" name="ga"></iframe>'));var s=function(){e.contentWindow.postMessage&&e.contentWindow.postMessage({id:o.id,type:"params",params:o.params,labels:o.labels,remarketingOnly:o.remarketingOnly},"*")};i?s():e.onload=function(){i=!0,s()},t||(document.body.appendChild(e),t=!0)}}var c,l=null,u=!1;function d(e){return(0,n.Yu)("ga-counter."+e)}window.home=window.home||{},window.home.gaCounter={track:function(e){var t,n=d("morda");n&&n.customLabels&&n.customLabels[e]&&(t={id:n.id,params:null,labels:n.customLabels[e],remarketingOnly:n.remarketingOnly},s(n.iframeSrc,t))},trackEther:function(){var e=d("ether");e&&e.customLabels&&e.customLabels.ether&&(c=setTimeout((function(){var t={id:e.id,params:null,labels:e.customLabels.ether,remarketingOnly:e.remarketingOnly};s(e.iframeSrc,t)}),e.timeout))},stopTrackEther:function(){clearTimeout(c)},trackCancel:function(){this.track("cancel")},trackCancelPopup:function(){this.track("cancelPopup")}},a((function(){var e=d("morda");function t(){if(e.iframeSrcEx)n=e.iframeSrcEx+function(){for(var e=[],t=0,n=arguments.length;t<n;t++)arguments[t]&&e.push(arguments[t]);return e.length?"?"+e.join("&"):""}(e.csc?"csc="+e.csc:"",e.refg?"refg=1":"",e.swb?"swb=1":""),l||(l=r('<iframe style="display:none" src="'+n+'" name="ga-ex"></iframe>')),u||(document.body.appendChild(l),u=!0);else if(e.iframeSrc){var t={id:e.id,params:e.params,labels:e.labels,remarketingOnly:e.remarketingOnly};s(e.iframeSrc,t)}var n}e&&function(){if(e.swb)return!0;var t;try{t=localStorage.getItem("gaCounterShowTime")}catch(n){}return!t||Number(t)<e.ignoreLSBefore||+new Date-Number(t)>e.showTimeout}()&&setTimeout((function(){t(),function(){try{localStorage.setItem("gaCounterShowTime",+new Date)}catch(e){}}()}),e.timeout)}))}();r(8589);var c=r(5992);function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var d=/^(?:(.*?):)?\/\/([^/?#\s]+)(\/?.*)$/,h=/^(\/?[^?#\s]*)(?:\?([^#]+))?(?:#(.*))?$/;function m(t,n){return t.split("&").reduce((function(t,i){if(!i)return{};var o,r,s=i.match(/([^=]*)=(.*)/);if(s)try{o=decodeURIComponent(s[1]),r=decodeURIComponent(s[2])}catch(c){return(0,e.H)({message:"parseSearch: "+c.message+"; token: "+i,block:"url"}),t}else{try{o=decodeURIComponent(i)}catch(c){return(0,e.H)({message:"parseSearch: "+c.message+"; token: "+i,block:"url"}),t}r=""}if(o in t&&n){var a=t[o];"string"==typeof a&&(t[o]=[a]),t[o].push(r)}else t[o]=r;return t}),{})}function p(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(null!=i)for(var o=Array.isArray(i)?i:[i],r=0;r<o.length;++r)t.push(encodeURIComponent(n)+(""!==o[r]?"="+encodeURIComponent(String(o[r])):""))}return t.length?"?"+t.join("&"):""}function f(e){var t,n,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(d);r?i=r[3].match(h):(r=[],i=e.match(h));var s={scheme:(null===(t=r)||void 0===t?void 0:t[1])||"",host:(null===(n=r)||void 0===n?void 0:n[2])||"",path:i&&i[1]||"",search:i&&i[2]||"",hash:i&&i[3]||"",query:{}};return s.query=m(s.search,o.multi),s}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.replace(h,(function(e,i,o,r){var s=o?m(o,n):{};for(var a in t)if(t.hasOwnProperty(a)){var c=s[a],u=t[a];s[a]=n&&c?[].concat(l(Array.isArray(c)?c:[c]),l(Array.isArray(u)?u:[u])):u}return i+p(s)+(r?"#"+r:"")}))}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){var o,r,s=f(e),a=new(s.host&&s.host!==location.host&&"XDomainRequest"in window?XDomainRequest:XMLHttpRequest);(!1===t.useCache&&(e=_(e,{rnd:Date.now()})),t.body)&&("urlencoded"===t.processBody?(o=Object.keys(t.body).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t.body[e])})).join("&").replace(/%20/g,"+"),r="application/x-www-form-urlencoded; charset=UTF-8"):(o=JSON.stringify(t.body),r="application/json"),t.requestHeaders=t.requestHeaders||{},t.requestHeaders["Content-Type"]=r);if("any"!==t.responseType&&(t.requestHeaders=t.requestHeaders||{},t.requestHeaders.Accept="application/json, text/javascript, */*; q=0.01"),a.open(t.method||"GET",e,!0),"include"===t.credentials&&(a.withCredentials=!0),t.requestHeaders)for(var c in t.requestHeaders)if(t.requestHeaders.hasOwnProperty(c))try{a.setRequestHeader(c,t.requestHeaders[c])}catch(l){}a.onreadystatechange=function(){var e;if(4===a.readyState)if(a.status>=200&&a.status<400)if("any"===t.responseType)n(a.responseText);else try{n(JSON.parse(a.responseText))}catch(o){!function(){var e;(e=new Error("Incorrect JSON")).sourceType="backend",e.meta={parsererror:1,responseTextSubstr:String(a.responseText).substring(0,128)};try{var t=a.getResponseHeader("X-Yandex-Req-Id");t&&(e.meta.requestId=t)}catch(n){}i(e)}()}else(e=new Error("Cannot load ajax request")).sourceType="network",e.meta={status:a.status},i(e)},a.send(o),t.timeout&&setTimeout((function(){var e=new Error("Timeout");e.sourceType="network",e.meta={timeout:1},i(e),a.abort()}),t.timeout)})).catch((function(t){var n=e.match(/\/\/([^?&]+)($|\?|&)/);throw t.name="blockerror",t.url=n&&n[1]||e,t}))}MBEM.decl("i-mini-yabs-sender",{},{_init:function(){var e,t;this._pixelBase=(0,n.Yu)("yabs.pixelBase"),this._data=(0,n.Yu)("yabs.proto"),(this._pixelBase||null!==(e=this._data)&&void 0!==e&&null!==(t=e.yabs)&&void 0!==t&&t.pixel_base)&&(this._linksNext="",this._inited=!0,this._sendPixelDebounced=(0,c.D)(this._sendPixel.bind(this),1e3))},sendAdditionalPixelBases:function(){var e=this;this._checkAndInit();var t=(0,n.Yu)("yabs.additionalPixelBases");null==t||t.forEach((function(t){e._sendBk(t,"_sendExtraPixelBases")}))},sendProtoPixels:function(){var e=this;this._checkAndInit(),this._data&&Object.keys(this._data).forEach((function(t){var n,i=null===(n=e._data)||void 0===n?void 0:n[t],o=null==i?void 0:i.displayed,r=(null==i?void 0:i.pixel_base)||"";o&&r&&(o.forEach((function(e){r+=e.link_next})),e._sendBk(r,"sendProtoPixels",t))}))},_sendBk:function(t,n,i){return Promise.race([fetch(t),new Promise((function(e,t){setTimeout((function(){t(new Error("send to bk failed: timeout 15000ms"))}),15e3)}))]).catch((function(o){(0,e.H)({block:"i-mini-yabs-sender",sourceType:"network",meta:{request:i,method:n,url:t}},o)}))},_sendPixel:function(t){var n=this;if(!this._sending){var i=this._linksNext;this._linksNext="",this._sending=!0,g(t+i,{credentials:"include",responseType:"any",timeout:15e3}).then((function(){n._onRequestEnd(t)})).catch((function(o){n._onRequestEnd(t),n._linksNext+=i,(0,e.H)({block:"i-mini-yabs-sender"},o)}))}},_onRequestEnd:function(e){this._sending=!1,this._linksNext&&this._sendPixelDebounced(e)},_getPixelBase:function(t){var n,i,o=this._pixelBase||(null===(n=this._data)||void 0===n||null===(i=n[t])||void 0===i?void 0:i.pixel_base);if(o)return o;(0,e.H)({block:"i-yabs-sender",message:"pixelBase is not defined"})},_checkAndInit:function(){this._inited||this._init()},sendClose:function(e,t,n){if(e){this._checkAndInit();return n?(null==t||t.preventDefault(),Promise.race([this._sendBk(e,"sendClose"),new Promise((function(e){setTimeout(e,300)}))]).finally((function(){n&&(location.href=n)}))):this._sendBk(e,"sendClose")}},sendShow:function(e,t){this._checkAndInit();var n=this._getPixelBase(e);t&&n&&(this._linksNext+=t,this._sendPixelDebounced(n))}}),MBEM.ready((function(){MBEM.blocks["i-mini-yabs-sender"].sendAdditionalPixelBases(),MBEM.blocks["i-mini-yabs-sender"].sendProtoPixels()})),MBEM.decl("i-displayed-flags-sender",{},{_init:function(){var e=(0,n.Yu)("displayed-flags.url");e&&((new Image).src=e)}}),MBEM.ready((function(){MBEM.blocks["i-displayed-flags-sender"]._init()}));var v=(0,n.Yu)("metrika.dcl");if(v){window.metrikaCounterInstances={};var b=document.createElement("script");for(var y in b.onload=function(){try{v.instances.forEach((function(e,t){var n=window["yaCounter"+e.id]=new window.Ya.Metrika(e);0===t&&(window.defaultMetrikaCounter=n),window.metrikaCounterInstances[e.id]=n}))}catch(e){}},b.src=v.src,v.attrs)v.attrs.hasOwnProperty(y)&&b.setAttribute(y,v.attrs[y]);setTimeout((function(){document.getElementsByTagName("head")[0].appendChild(b)}),0)}!function(t){var n=setTimeout;function i(){}function o(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(o){return void a(t.promise,o)}s(t.promise,i)}else(1===e._state?s:a)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void u(n.bind(t),e)}e._state=1,e._value=t,c(e)}catch(i){a(e,i)}}function a(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function u(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,a(t,e))}))}catch(i){if(n)return;n=!0,a(t,i)}}o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new l(e,t,n)),n},o.all=function(e){var t=Array.prototype.slice.call(e);return new o((function(e,n){if(0===t.length)return e([]);var i=t.length;function o(r,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,(function(e){o(r,e)}),n)}t[r]=s,0==--i&&e(t)}catch(c){n(c)}}for(var r=0;r<t.length;r++)o(r,t[r])}))},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var i=0,o=e.length;i<o;i++)e[i].then(t,n)}))},o._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){n(e,0)},o._unhandledRejectionFn=function(t){(0,e.H)({block:"i-polyfill__promise",message:"Possible Unhandled Promise Rejection"},t)},t.Promise||(t.Promise=o)}(window),a((function(){var e=(0,n.Yu)("szm.data");if(e){setTimeout((function(){var t,i=window.devicePixelRatio||1,o=screen.width,r=screen.height,s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=(0,n.Yu)("szm.data.szm",null),l=(0,n.Yu)("szm.data.swap")||!1;i=String(i).replace(".","_"),l&&o<r&&(t=o,o=r,r=t),c&&function(e,t){for(var n in t)if(t.hasOwnProperty(n)&&(!e[n]||Math.abs(parseFloat(e[n])-parseFloat(t[n]))>.01))return!1;return!0}(c,{dpr:i,screenX:o,screenY:r,viewportX:s,viewportY:a})||((new Image).src=e.url+(i+":")+o+"x"+r+":"+s+"x"+a)}),e.timeout)}}));var w,M,E,k=!1,T="ya_ls_test";try{(E=window.localStorage).setItem(T,"1"),"1"!==E.getItem(T)?k=!0:E.removeItem(T)}catch(nn){k=!0}var S=function(t){var n="localStorage is disabled. "+(t||"");(0,e.H)({block:"localStorage",message:n,level:"warn"})},C=function(e){try{return e()}catch(nn){S(nn)}};if(k){var B=function(e){return S(),null};w=S,M=B,S,S,B,function(){return 0}}else w=function(e,t){C((function(){E.setItem(e,t)}))},M=function(e){return C((function(){return E.getItem(e)}))||null},function(e){C((function(){E.removeItem(e)}))},function(){C((function(){E.clear()}))},function(e){return C((function(){return E.key(e)}))||null},function(){return C((function(){return E.length}))||0};var I,P={1:"geolocation.autodetection.error.denied",2:"geolocation.autodetection.error.unavailable",3:"geolocation.autodetection.error.timeout"},x=!0,O=null;function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,t){var n;if(O)return O;return O=n=function(e,t){var n;n=t&&t instanceof Promise?t:Promise.resolve(t);return n.catch((function(e){})).then((function(){}),(function(){}))}(0,t()),n.then((function(){O=null}),(function(){O=null})),n}(0,(function(){return function(e){var n=Date.now();return new Promise((function(i,o){try{navigator.geolocation&&navigator.geolocation.getCurrentPosition&&((0,t.DF)("tech","geolocation.autodetection.request"),navigator.geolocation.getCurrentPosition((function(e){var r,s,a;(s=e,a=Date.now()-n,w("gpallowed","1"),L(Object.assign((r=s.coords,{lon:r.longitude,lat:r.latitude,precision:r.accuracy}),{persistent:1,timing:a}))).then((function(e){(0,t.DF)("tech","geolocation.autodetection.success"),i()}),(function(e){o(e)}))}),(function(e){e.type="locate",function(e,n){1===e.code?w("gpforbidden","1"):w("gpallowed","1");return(0,t.DF)("tech",P[String(e.code)]),L({status:e.code,timing:n})}(e,Date.now()-n).then((function(){o(e)}),(function(){o(e)}))}),{timeout:1e3*(e.timeout?e.timeout:15),maximumAge:x?3e5:0,enableHighAccuracy:!1}),x=!1)}catch(nn){o(nn)}}))}(e)}))}function L(e){e.sk=(0,n.Yu)("geo.sk"),e.device=0,e.laas=(0,n.Yu)("geo.laas")||0;var t=(0,n.Yu)("geo.gpsaveUrl");return t?g(t=_(t,e)):Promise.reject(new Error("Missing url"))}"permissions"in navigator&&!(0,n.Yu)("geo.gpauto")&&setTimeout((function(){navigator.permissions.query({name:"geolocation"}).then((function(e){"granted"===(e.state||e.status)&&R({background:!0})}),(function(){}))}),5e3),I="Promise"in window&&!Promise._unhandledRejectionFn,MBEM.ready((function(){var e=(0,n.Yu)("tech-counters");if(e){(0,t.DF)("tech","tech.localStorage."+Number(!home.disabledLS));var i=!1;try{i=window.matchMedia("(prefers-color-scheme: dark)").matches}catch(f){}(0,t.DF)("tech","tech.dark."+Number(i)),(0,t.DF)("tech","tech.promise."+Number(I));var o="IntersectionObserver"in window&&!IntersectionObserver.prototype.THROTTLE_TIMEOUT;(0,t.DF)("tech","tech.io."+Number(o));var r="Proxy"in window;(0,t.DF)("tech","tech.es6."+Number(r));var s=Boolean((new Image).loading);(0,t.DF)("tech","tech.loading."+Number(s));try{if(matchMedia("(any-pointer: coarse)").matches&&!e.isTablet&&!e.isTouch){var a,c=navigator.userAgent||"",l=c.indexOf("Mac OS")>-1,u=c.indexOf("iPhone OS")>-1,d=matchMedia("(any-hover: hover)").matches,h=Math.min(screen.width,screen.height);a=d?"touchscreen":l||u?h<700?"iphone":"ipad":h<600?"androidphone":"androidpad",(0,t.DF)("tech","tech.touch."+a)}}catch(f){}var m=Date.now();MBEM.channel("i-scroll-event").on("scroll",(function e(){MBEM.channel("i-scroll-event").un("scroll",e),(0,t.DF)("tech","tech.scroll",{customParams:{timems:Date.now()-m}})}));var p=function(e){!0===e.persisted&&(0,t.DF)("tech","tech.bfcache")};window.addEventListener("pageshow",p),window.addEventListener("spas-unmount-main",(function(){window.removeEventListener("pageshow",p)}))}}));var A;r(1804);function N(e){var t=!1,n=function(){t||(t=!0,e())};"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?setTimeout(n,0):(document.addEventListener("DOMContentLoaded",n,!1),document.addEventListener("load",n,!1))}N((function(){var e=(0,n.Yu)("consistency.data"),t=new MordaRT;if(e){var i=["*.*.yandex.*","*.yandex.*","yandex.*","yastatic.net","yastat.net","mc.admetrica.*","www.microsoft.com"],o=setTimeout((function(){r()}),e.timeout);window.addEventListener("spas-unmount-main",(function(){clearTimeout(o)}))}function r(){var o,r,c=null;"antiadb"===e.type?c=null:"img"===e.type?c=function(){var t=document.querySelectorAll("#banner > #bc > noscript").length,n=document.querySelector("#banner > #bc").childNodes.length,i="",o="";if(e.custom.gif){var r=document.querySelector("#banner > img");i=r&&r.src}else{var s=document.querySelector("#banner > a"),a=document.querySelector("#banner > a > img");o=s&&s.href,i=a&&a.src}return i!==e.custom.img||!e.custom.gif&&o!==e.custom.href||1!==t||1!==n?e.custom.img?{horizontal:{img:1}}:{horizontal:{none:1}}:null}():"hdpi_img"===e.type?c=null:"iframe"===e.type?c=function(){var e=document.querySelector(".banner-iframe"),t=e&&e.getAttribute("src"),n=document.querySelectorAll("#banner #bc noscript").length,i=document.querySelectorAll("#banner").length,o=document.querySelector("#banner #bc").childNodes.length,r=document.querySelectorAll(".banner__expand_innerclick").length;return s(t)&&1===n&&(1===i||r&&(2===i||3===i))&&1===o?null:{horizontal:{iframe:1}}}():"html"!==e.type&&(o=document.querySelector(".b-line_adv"),r=document.querySelector(".main"),c=o&&0===o.childNodes.length||r&&3===r.childNodes.length?null:{horizontal:{none:1}});var l=function(){for(var e=document.querySelectorAll("img"),t=[],n=!1,i={},o=0;o<e.length;++o){for(var r=e[o],a=r.parentNode;a&&a!==document.body&&"A"!==a.tagName;)a=a.parentNode;r.src&&a&&"A"===a.tagName&&t.push({src:r.src,link:a.href})}if(t.length)for(var c=0,l=t.length;c<l;c++)s(t[c].link)||s(t[c].src)||(n=!0,i[t[c].link]={},i[t[c].link][t[c].src]=1);return n?{image:1,links:i,ignore:1}:null}(),u=document.documentElement.style.cssText?{html:1}:null;l&&c?Object.assign(c,l):l&&(c=l),u&&c?Object.assign(c,u):u&&(c=u),function(){var e,t,o=(0,n.Yu)("banner.counters.shows",[]),r=(0,n.Yu)("banner.bnCounts",[]).concat(o);if(r&&r.length)for(var s=0,a=r.length;s<a;s++)(e=document.createElement("a")).href=r[s],t=e.host,i.push(t)}(),function(n){n&&!n.ignore?a("1"):"1"===e.csc&&a("2");n&&n.ignore&&delete n.ignore;var o=null,r=t.getEntries(i),s=t.getEntries(i,!0);n&&((o=o||{})["consistency-"+e.content]=n);r.resourcesCount&&((o=o||{})["resources-consistency-"+e.content]=r.resources);s.resourcesCount&&r.resources.script&&((o=o||{})["resources-src-consistency-"+e.content]=s.resources.script);o&&window.defaultMetrikaCounter&&window.defaultMetrikaCounter.params(o)}(c)}function s(e){if(!e||"#"===e||0===e.trim().indexOf("javascript"))return!0;var n=t.getHostname(e);return t.siteInDomainList(i,n)}function a(t){var n=document.createElement("iframe");n.className="consistency__frame",n.setAttribute("aria-hidden","true"),document.body.appendChild(n),n.setAttribute("name","consistency"+(Math.random()+"").substr(3,7)),n.setAttribute("src",e.url+"&csc="+t)}})),N((function(){var e=(0,n.Yu)("yandcache.data");e&&window.setTimeout((function(){var t=document.createElement("script");t.src=e.url,document.getElementsByTagName("head")[0].appendChild(t)}),e.timeout)})),a((function(){var t=(0,n.Yu)("referers.data");if(t){var i=location.hash?location.hash.replace(/^#/,""):"",o=i&&i.match(/^[1-578]$/);o&&t.referer&&(0,e.H)({block:"referers-check",sourceType:"clckerror",message:"clck error",url:t.referer,meta:{hash:o}})}})),setTimeout((function(){window.performance&&performance.navigation&&1===performance.navigation.type&&(0,t.DF)("tech","refresh")}),0),MBEM.channel("sys").on("visibilitychange",(function(e,n){n.hidden?A=Date.now():A&&((0,t.DF)("tech","return",{customParams:{timems:Date.now()-A}}),A=null)}));r(7922);(0,n.Yu)("i-sw-reporter.on")&&"serviceWorker"in navigator&&setTimeout((function(){window.defaultMetrikaCounter&&Promise.resolve().then((function(){return navigator.serviceWorker.getRegistrations()})).then((function(e){var t=null;e.forEach((function(e){var n=f(e.scope).path;n=n.replace(/(^\/|\/$)/g,"").replace(/\//g,"_"),["active","installing","waiting"].forEach((function(i){e[i]&&((t=t||{})["sw-report"]=t["sw-report"]||{},t["sw-report"][n]=t["sw-report"][n]||{},t["sw-report"][n][i]=e[i].scriptURL||1)}))})),t&&window.defaultMetrikaCounter.params(t)})).catch((function(){}))}),5e3);var D=r(3171),F=r(1714);function j(){return"<div class='usermenu-portal__spin spin2 spin2_view_default spin2_tone_default spin2_size_l spin2_progress_yes'></div>"}function U(){return"<div class='usermenu-portal__wrapper'></div>"}function q(){return"<iframe class='usermenu-portal__iframe' frameborder='0'></iframe>"}MBEM.decl("usermenu-portal",{__constructor:function(){var e=this,n=this._getData();if(n){this._hasRum=window.Ya&&Ya.Rum&&Ya.Rum.enabled;var i=n.url,o=home.skinValue;"night"===o&&(o="dark"),this._setThemeUrl=n.setThemeUrl,this._sameSiteSupport=n.sameSiteSupport,this._is_yaru=n.is_yaru,this._iframeUrl=_(i,{theme:o,colorScheme:home.skinIsDark?"dark":"light"});var r=MBEM.construct((0,F.M)(q));r.setAttribute("src",this._iframeUrl);var s=MBEM.construct((0,F.M)(U)),a=MBEM.construct((0,F.M)(j));s.appendChild(a),s.appendChild(r),(0,D.G)(this.domElem,(function(){return{content:s,scope:document.body,anchor:e.domElem,popupMods:{autoclosable:"yes",theme:"bordered"},popupMix:"usermenu-portal__popup usermenu-portal__popup_loaded_no",popupParams:{direction:"bottom-right",zIndexGroupLevel:9,mix:"usermenu-portal__popup",xOffset:15,yOffset:-60},popupCallback:function(n){e._hasRum&&Ya.Rum.time("user_id_loaded"),e._popup=n,e._handleMessages(),n.on("show",(function(){e._removeBadge(),(0,t.DF)("show","usermenu_portal.popup.open"),e._iframe&&e._setFocusIntoIframe(e._iframe)}))}}}))}},_removeBadge:function(){var e=this.domElem.querySelector(".avatar__badge");e&&e.parentNode&&e.parentNode.removeChild(e)},_getData:function(){return(0,n.Yu)("usermenu-portal.data")},_handleMessages:function(){var t=this;window.addEventListener("message",(function(n){var i=null,o=n.source,r=t._iframe||document.querySelector(".usermenu-portal__iframe");if((null==r?void 0:r.contentWindow)===o){try{i=n.data?JSON.parse(n.data):null}catch(c){(0,e.H)({block:"usermenu-portal",message:"unknown data in postMessage",meta:{message:JSON.stringify(n.data).slice(0,128)}})}var s;if(i)if("onDataLoad"===i.methodCall&&null!==(s=i.params[0])&&void 0!==s&&s.height)t._messageOnDataLoad(i.params[0].height,r);else if("closeUserID"===i.methodCall)t._messageCloseUserID();else if("updateTheme"===i.methodCall){var a;t._updateTheme(null===(a=i.params[0])||void 0===a?void 0:a.theme)}}})),document.addEventListener("skin-changed",(function(){t._changeThemeIntoIframe(t._iframe,home.skinValue)}))},_updateTheme:function(e){"dark"===e&&(e="night"),(0,t.DF)("click","usermenu_portal.update_theme.".concat(e)),location.href=_(this._setThemeUrl,{skin:e})},_messageOnDataLoad:function(e,n){var i=this._popup.domElem;if(!this._iframe){this._iframe=n,this.delMod(i,"loaded");var o,r=i.querySelector(".usermenu-portal__spin");if(r)null===(o=r.parentNode)||void 0===o||o.removeChild(r);this._setFocusIntoIframe(n),(0,t.DF)("click","usermenu_portal.popup.realshow"),this._hasRum&&Ya.Rum.timeEnd("user_id_loaded")}i.style.height="".concat(Math.ceil(e+2),"px")},_messageCloseUserID:function(){this._popup.hide(),(0,t.DF)("click","usermenu_portal.popup.close"),document.activeElement&&this._iframe===document.activeElement&&this.domElem.focus()},_setFocusIntoIframe:function(e){return null!=e&&e.contentWindow&&e.contentWindow.postMessage(JSON.stringify({methodCall:"focusFirst",params:[{fromKeyboard:document.documentElement.classList.contains("utilityfocus")}]}),"*"),!1},_changeThemeIntoIframe:function(e,t){"night"===t&&(t="dark"),null!=e&&e.contentWindow&&e.contentWindow.postMessage(JSON.stringify({methodCall:"updateTheme",params:[{theme:t,colorScheme:home.skinIsDark?"dark":"light"}]}),"*")},_switchDesign:function(){var e=this._sameSiteSupport?"; sameSite=None":"",n="; expires=".concat(new Date(Date.now()+31536e6).toUTCString());(0,t.DF)("click","footer.switch_design"),document.cookie="old_yaru=1"+n+"; domain=.ya.ru"+e+"; secure=true; path=/"}});var H;r(7475),r(4386),r(1230),r(9904),r(6124),r(4852),r(7227),r(8962);(H=(0,n.Yu)("timing.ssoDelta"))&&((0,t.DF)("tech","tech.sso",{customParams:{delta:H}}),window.Ya&&Ya.Rum&&Ya.Rum.sendDelta&&Ya.Rum.sendDelta("sso",H));var Y;r(7220);function V(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function z(){return Y||(Y=function(e,t){var n=indexedDB.open(e);n.onupgradeneeded=function(){return n.result.createObjectStore(t)};var i=V(n);return function(e,n){return i.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}("keyval-store","keyval")),Y}function W(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:z())("readwrite",(function(n){return n.put(t,e),V(n.transaction)}))}if((0,n.Yu)("i-domain-redirect-sw.enable")){var K=[],G=(0,n.Yu)("i-domain-redirect-sw.configUrl");G&&K.push(W("home-redirect-domain.config-url",G));var X=(0,n.Yu)("i-domain-redirect-sw.redirectHost");X&&K.push(W("home-redirect-domain.redirect-host",X)),Promise.all(K).then((function(){!function(){try{navigator.serviceWorker.register("/portal/service-worker/white/_domain-redirect.js",{scope:"/",updateViaCache:"all"}).then((function(){(0,t.DF)("tech","domain_redirect_serviceworker.ready")})).catch((function(){(0,t.DF)("tech","domain_redirect_serviceworker.register_error")}))}catch(e){(0,t.DF)("tech","domain_redirect_serviceworker.fail")}}()}))}else(0,n.Yu)("i-domain-redirect-sw.cleanup")&&navigator.serviceWorker.getRegistration("/").then((function(e){e&&(e.unregister(),(0,t.DF)("tech","domain_redirect_serviceworker.unregister"))}));var J=[3,5,10,15,30,60],Q=Math.max.apply(Math,J);!function(){if((0,n.Yu)("view-time-reporter.enabled")){var e,i=0,o=function(e){return e>=Q};if(!(window.Ya&&Ya.Rum&&Ya.Rum.getTime&&(i=Math.floor(Ya.Rum.getTime()/1e3),o(i)))){var r=function(){i++,-1!==J.indexOf(i)&&(0,t.DF)("tech","view_time.".concat(i)),o(i)&&clearInterval(e)},s=function(){o(i)||(e=window.setInterval(r,1e3))};MBEM.blocks["i-mini-visibilitychange"].waitForVisible((function(){s(),MBEM.channel("sys").on("visibilitychange",(function(t,n){n.hidden?e&&clearInterval(e):s()}))}))}}}(),MBEM.decl("alerts",{__constructor:function(){var e=this.domElem.querySelector(".alert__close");e&&this.bindTo(e,"click",this._onAlertClose.bind(this))},_onAlertClose:function(e){var n,i=MBEM.closest(e.target,"alert"),o=null==i?void 0:i.dataset.closeUrl;if(i)return(0,t.DF)("click","alert.close"),o&&((new Image).src=o),null===(n=i.parentNode)||void 0===n||n.removeChild(i),!1}});r(235);var Z=r(9735),ee=r.n(Z),te=r(2e3),ne=r(150),ie=r.n(ne),oe=r(7843);function re(e){return"<div "+ie()({class:"".concat((0,oe.jY)("scrollbar",e)," i-mini-bem"),"data-bem":(0,oe.Ms)({scrollbar:e.js||{}})})+">"+ee().oneElem("<div class='scrollbar__scrollable'>"+ee().oneElem("<div class='scrollbar__inner'>"+ee().oneElem(e.content)+"</div>")+"</div>")+"<div class='scrollbar__track'><div class='scrollbar__thumb'></div></div></div>"}function se(e,t,n){var i=e.title,o=e.html;return n(te.w,{mix:(0,oe.jY)("simple-popup",{mods:{theme:"disaster"}}),mods:{autoclosable:"yes",overlay:"yes","has-close":"yes"},content:ee().oneElem(n(re,{mods:{"scroll-direction":"column"},content:"<div class='simple-popup__inner'>"+(ee().oneElem(i&&"<p class='simple-popup__title'>"+ee().oneElem(i)+"</p>")+ee().oneElem("<div class='simple-popup__html'>"+ee().oneElem(o)+"</div>"))+"</div>"}))})}function ae(e,t,n,i){var o,r,s,a,c=i;"object"==typeof t?(r=t.property,a=t.type):a=t;var l=function(t){t.target!==e||r&&r!==t.propertyName||c&&(c(),u())};function u(){clearTimeout(s),c=null,o.forEach((function(t){e.removeEventListener(t,l,!1)}))}(o="animation"===a?["webkitAnimationEnd","animationend"]:["webkitTransitionEnd","transitionend"]).forEach((function(t){e.addEventListener(t,l,!1)})),n>0&&(s=setTimeout((function(){c&&(c(),u())}),n+50))}function ce(e,t){var n,i,o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=null,a=0,c=function(){a=!1===r.leading?0:(new Date).getTime(),s=null,o=e.apply(n,i),s||(n=i=null)};return function(){var l=(new Date).getTime();a||!1!==r.leading||(a=l);var u=t-(l-a);return n=this,i=arguments,u<=0||u>t?(s&&(clearTimeout(s),s=null),a=l,o=e.apply(n,i),s||(n=i=null)):s||!1===r.trailing||(s=setTimeout(c,u)),o}}MBEM.decl("alert-disaster",{__constructor:function(){this.params.popup&&(this.bindTo("click",this._onShowEvent),this.bindTo(this.domElem,"keydown",this._onShowEvent),this.params.popup.autoShow&&this._showPopup())},_onShowEvent:function(e){e.preventDefault(),"click"!==e.type&&(13!==e.which&&32!==e.which||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)||this._showPopup()},_showPopup:function(){if(this._popup)this._popup.show();else if(this.params.popup){var e=MBEM.construct((0,F.M)(se,this.params.popup.data));document.body.appendChild(e),this._popup=MBEM.getInitedBlock(e,"simple-popup"),this._popup.show(),(0,t.Dn)(e)}}}),MBEM.decl({block:"simple-popup",modName:"theme",modVal:"disaster"},{__constructor:function(){this.__base.apply(this,arguments),this._close=this.elem("close")[0];var e=this.elem("content")[0];e&&(e.style.height=e.clientHeight+"px"),MBEM.initAll(this.domElem,"i-mini-bem")},show:function(){var e=this;this.__base.apply(this,arguments),ae(this.domElem,"transition",2e3,(function(){var t;null===(t=e._close)||void 0===t||t.focus()}))}}),MBEM.decl("scrollbar",{onSetMod:{js:{inited:function(){this._scrollable=this.elem("scrollable")[0],this._inner=this.elem("inner")[0],this._thumb=this.elem("thumb")[0],this.onScroll=this.onScroll.bind(this),this._onDragStart=this._onDragStart.bind(this),this._onDrag=this._onDrag.bind(this),this._onDragEnd=this._onDragEnd.bind(this),this._throttledOnResize=ce(this._onResize.bind(this),100),this._scrollable.addEventListener("scroll",this.onScroll),this._thumb.addEventListener("pointerdown",this._onDragStart),this.__base.apply(this),this.onScroll(),void 0===window.IntersectionObserver||"THROTTLE_TIMEOUT"in IntersectionObserver.prototype?this._checker=setInterval(this.onScroll,1e3):(this._observer=new IntersectionObserver(this.onScroll,{root:this._scrollable,rootMargin:"0px 50px 0px 0px",threshold:[1]}),this._observer.observe(this._inner)),window.addEventListener("resize",this._throttledOnResize)}},"":function(){this._observer?this._observer.unobserve(this._scrollable):clearInterval(this._checker),this._onDragEnd(),this._scrollable.removeEventListener("scroll",this.onScroll),this._thumb.removeEventListener("pointerdown",this._onDragStart),window.removeEventListener("resize",this.onScroll)}},onScroll:function(){var e=this,t=this._getContentSize(),n=this._getParentSize(),i=this._getScroll(),o=void 0!==n&&n<t,r=o?n/t:0,s=0;r===this._scrollSizeRatio&&this._scroll===i||(this._scroll=i,this._scrollSizeRatio=r,o&&(r=Math.max(r,.1),s=100*(1-r)/(t-n)),void 0!==i&&requestAnimationFrame((function(){e._thumb.style[e._scrollSizeRatioProp()]=(100*r).toFixed(2)+"%",e._thumb.style[e._scrollRatioProp()]=(s*i).toFixed(2)+"%"})))},_onDragStart:function(e){this.onScroll(),this._startScrollValue=this._getScroll(),this._startValue=this._getScreenValue(e),MBEM.cls.add(document.body,"scrollbar__body-styles"),this.setMod(this._thumb,"active","yes"),window.addEventListener("pointermove",this._onDrag,{passive:!0}),window.addEventListener("pointerup",this._onDragEnd)},_onDrag:function(e){if(void 0!==this._startScrollValue){var t=this._getScreenValue(e)-this._startValue;this._scrollTopOrLeft(this._startScrollValue+t/this._scrollSizeRatio)}},_onDragEnd:function(){window.removeEventListener("pointermove",this._onDrag),window.removeEventListener("pointerup",this._onDragEnd),this.delMod(this._thumb,"active"),MBEM.cls.remove(document.body,"scrollbar__body-styles")},_onResize:function(){var e=this.domElem.getBoundingClientRect(),t=e.x,n=e.y,i=document.elementFromPoint(t,n);(null==i?void 0:i.closest(".scrollbar"))&&this.onScroll()},unmount:function(){window.removeEventListener("resize",this._throttledOnResize),window.removeEventListener("pointermove",this._onDrag),window.removeEventListener("pointerup",this._onDragEnd)}});r(3049);var le=function(e){var t,n=!1;return function(){if(!n){n=!0;for(var i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];t=e.apply(this,o)}return t}};function ue(e,t,n,i){var o=document.createElement("script");if("string"==typeof i)o.nonce=i;else if(i&&"object"==typeof i)for(var r in i)if(i.hasOwnProperty(r)){var s=r,a=i[s];a&&(o[s]=a)}o.charset="utf-8",t&&(o.onload=t),n&&(o.onerror=function(){n(new Error("Failed to load script "+e))}),o.src=e,o.crossOrigin="anonymous",document.getElementsByTagName("head")[0].appendChild(o)}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function me(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}MBEM.decl("alice-fab",{__constructor:function(){var t=this;this.__base.apply(this,arguments);var n=!1;this._bindEventsOnce=le(this._bindEvents.bind(this)),this._loadAliceModuleOnce=le(this._loadAliceModule.bind(this));var i=le((function(){t._loadAliceModuleOnce().then((function(){n&&t._onFabClick(t.module),t.bindTo("click",(function(){return t._onFabClick(t.module)})),t._bindEventsOnce(t.module.outputBus)})).catch((function(t){(0,e.H)({block:"alice-fab",url:t.request},t)}))})),o=setTimeout(i,5e3);this.bindTo("click",le((function(){t._createRumPage(),n=!0,clearTimeout(o),i()}))),this._onFabShow()},_onFabClick:function(e){var t=e.changeTheme;return document.addEventListener("skin-changed",(function(){t(home.skinIsDark?"dark":"light")})),this.setMod("shown","no"),this.params.aliceStanaloneFrontend&&window.defaultMetrikaCounter&&window.defaultMetrikaCounter.reachGoal("launch_alice2"),!0},_afterOpenAndCreate:function(){var e=document.querySelector(".body__wrapper");if(e&&(e.setAttribute("inert",""),e.ariaHidden="true"),"bubble"===this.params.promoType){var t=this.params.clickUrl;t&&((new Image).src=t)}},forceRender:function(t,n){var i=this;this._loadAliceModuleOnce().then((function(){i._onFabClick(i.module,t,void 0,n),i._bindEventsOnce(i.module.outputBus)})).catch((function(t){window.dispatchEvent(new CustomEvent("alice-close")),(0,e.H)({block:"alice-fab",url:t.request},t)}))},_onFabShow:function(){this.__base.apply(this,arguments),this._showPromo()},_onPromoCloseClick:function(){this._closePromo({saveClose:!0,logClose:!0});var e=this.params.closeUrl;e&&((new Image).src=e);var t=document.querySelector(".alice-fab__promo");t&&t.classList.remove("alice-fab__promo_shown")},_showPromo:function(){var e=this,n=document.querySelector(".alice-fab__promo");if(n&&(!this.params.promoShowKey||!M(this.params.promoShowKey))){(0,t.Dn)(n),this._onShowPromo(),n.classList.add("alice-fab__promo_shown");var i=document.querySelector(".alice-fab__promo-close");i&&(i.addEventListener("click",(function(){e._onPromoCloseClick()})),i.addEventListener("keypress",(function(t){"key"in t&&"Enter"===t.key&&e._onPromoCloseClick()})));var o=document.querySelector(".alice-fab__promo-shortcut-img");o&&(o.addEventListener("click",(function(){e._onClickPromo()})),o.addEventListener("keypress",(function(t){"key"in t&&"Enter"===t.key&&e._onClickPromo()})))}},_onClickPromo:function(){(0,t.DF)("click","alice_promo.".concat(this.params.promoId,".open")),this.params.promoUrl?window.open(this.params.promoUrl):this.forceRender(!0);var e=this.params.clickUrl;e&&((new Image).src=e)},_onShowPromo:function(){var e=this.params.viewUrl;e&&((new Image).src=e)},_closePromo:function(e){var n;this.params.promoShowKey&&(null!=e&&e.saveClose&&w(this.params.promoShowKey,"1"),null!=e&&e.logClose&&(0,t.DF)("click","alice_promo.".concat(this.params.promoId,".close"))),null===(n=document.querySelector(".alice-fab__promo"))||void 0===n||n.classList.add("alice-fab__promo_hidden")},_createRumPage:function(){var e,t,n;null!==(e=Ya)&&void 0!==e&&e.Rum&&!this._rumPage&&(this._rumPage=null===(t=(n=Ya.Rum).makeSubPage)||void 0===t?void 0:t.call(n,"ru.morda.alice_popup"))},_bindEvents:function(n){var i=this;n.on("popupHidden",(function(){i.setMod("shown","yes"),window.dispatchEvent(new CustomEvent("alice-close")),i._container&&i._container.classList.remove("alice-container_alice-show");var e=document.querySelector(".body__wrapper");e&&(e.removeAttribute("inert"),e.ariaHidden="false")})),n.on("firstPaint",le((function(){i._rumPage&&(Ya.Rum.sendTimeMark("2793",Ya.Rum.getTime(),!1,i._rumPage),Ya.Rum.sendTTI(void 0,Ya.Rum.getTime(),i._rumPage))}))),n.on("errorThrown",(function(t,n){(0,e.H)({block:"alice-fab",message:t.message,level:n||"error"},t)})),n.on("aliceMainFullyShown",(function(){Ya.Rum.sendTimeMark("alice_main_fully_shown",Ya.Rum.getTime(),!1,i._rumPage)})),n.on("voiceRecordingStarted",(function(){Ya.Rum.sendTimeMark("voice_recording_started",Ya.Rum.getTime(),!1,i._rumPage)})),n.on("stat",(function(e){var n=e.path,o=e.eventType,r=e.customParams;(0,t.DF)(o,i.params.statRoot+"."+n,r&&{customParams:r})}))}});var pe="/alisa_davay_pridumaem";MBEM.decl("alice-fab",{__constructor:function(){this.__base.apply(this),this._container=document.querySelector(".alice-container"),this.params.fromAlicePromo&&this.forceRender(),this.params.abFlags.includes("alice_redirect_to_fullscreen")&&this._addRouter()},_loadAliceModule:function(){var t=this;return new Promise((function(e,n){ue("".concat(t.params.aliceLibPath).concat(t.params.aliceStanaloneFrontend?"/standalone-lib-desktop/index-standalone-lib-desktop.js":"/desktop/index-desktop.js"),e,(function(e){return n(e)}))})).then((function(){var e;if(null===(e=window.AliceForWeb)||void 0===e||!e.lib)throw Error("no AliceForWeb in window");t.module=window.AliceForWeb.lib})).catch((function(t){throw(0,e.H)({block:"alice-fab",sourceType:"network"},t),t}))},_addRouter:function(){var e=this;window.addEventListener("popstate",(function(){if(document.location.pathname===pe)e.forceRender(!0);else if(document.location.pathname!==pe){var t;null===(t=e.module)||void 0===t||t.hide()}}))},_onFabClick:function(e,t,n,i){if(this._container)return this.__base.apply(this,arguments),this._closePromo(),e.openOrCreate(he(he({},this.params),{},{theme:home.skinIsDark?"dark":"light",container:this._container,appId:this.params.aliceStanaloneFrontend?"ru.yandex.webstandalone.desktop":"ru.yandex.webdesktop",yaGptOpenPhrase:n,shouldOpenYaGpt:t,elementFocusOnClose:this.domElem,deeplink:i})),this._afterOpenAndCreate(),this._container.classList.add("alice-container_alice-show"),!0}});r(767);home.logBanner=function(){var e=(0,n.Yu)("banner.logs")||[],t=!1,i=Date.now(),o=window.performance&&window.performance.now,r=function(e){console.log(e.time+"s",e.action,e.params)},s=o?function(){return Math.round(performance.now()/100)/10}:function(){return Math.round((Date.now()-i)/100)/10};home.logBanner={showLogs:function(){t=!0;for(var n=0;n<e.length;n++)r(e[n])},hideLogs:function(){t=!1},log:function(n){n&&(n.time=s(),e.push(n),t&&r(n))},setLogFunc:function(e){r=e}}},(0,n.Yu)("banner.logsEnable")&&home.logBanner();r(9626),r(7809);var fe={create:function(e,t){var n=IntersectionObserver;this._eventsInited||(this._eventsInited=!0,"THROTTLE_TIMEOUT"in n.prototype&&(this._initEvents(),n.prototype.THROTTLE_TIMEOUT=200,n.prototype.USE_MUTATION_OBSERVER=!1));var i=new n(e,t);return this._instances.push(i),i},_instances:[],_THROTTLE_TIMEOUT:200,_initEvents:function(){this._throttledCallback=ce(this._fire.bind(this),this._THROTTLE_TIMEOUT,{leading:!1}),this._listenEvents()},_listenEvents:function(){},_fire:function(){this._instances.forEach((function(e){e._checkForIntersections()}))}},_e=fe,ge={setCounter:function(n){var i,o=this;if((n.elem||!1===n.useIntersection)&&(n.urls||n.callback||n.justRedirStat)){var r,s={elem:n.elem,callback:n.callback,urls:n.urls,blockId:n.blockId,needStat:n.needStat,useIntersection:void 0===n.useIntersection||n.useIntersection,showedTime:"number"!=typeof n.showedTime?2e3:n.showedTime,threshold:"number"!=typeof n.threshold?.5:n.threshold,removeSendTimer:function(){},setSendTimer:function(){},justRedirStat:n.justRedirStat,refreshCaller:n.refreshCaller};if(s.needStat)(0,t.DF)("show",this._getStatPath(s.blockId,"client")),null===(r=s.elem)||void 0===r||r.addEventListener("click",(function(){(0,t.DF)("click",o._getStatPath(s.blockId,"click"))}));return s.useIntersection&&(s.observer=_e.create((function(e){var t=e[e.length-1];s.inViewPort=t.intersectionRatio>s.threshold,s.inViewPort?o._setSendTimer(s):o._removeSendTimer(s)}),{threshold:s.threshold})),this._bindEvents(s),this._forceCounter.bind(this,s)}(0,e.H)({block:"showedCounter",message:"Cannot set counters",meta:{blockId:n.blockId,urls:null===(i=n.urls)||void 0===i?void 0:i.join()},sourceType:"logic"})},_forceCounter:function(e){this._removeSendTimer(e),this._onShowed(e)},_bindEvents:function(e){this.catchFromFrame(),e.removeSendTimer=this._removeSendTimer.bind(this,e),e.setSendTimer=this._setSendTimer.bind(this,e),e.observer&&e.elem?e.observer.observe(e.elem):MBEM.blocks["i-mini-visibilitychange"].waitForVisible(e.setSendTimer.bind(e)),MBEM.channel("sys").on({hidden:e.removeSendTimer,visible:e.setSendTimer}),this._logFunc({action:"Счётчики установлены",params:{watchDelay:e.showedTime,type:e.blockId,url:e.urls}})},_unBindEvents:function(e){e.observer&&e.elem&&e.observer.unobserve(e.elem),MBEM.channel("sys").un("hidden",e.removeSendTimer),MBEM.channel("sys").un("visible",e.setSendTimer)},_setSendTimer:function(e){!e.inViewPort&&e.observer||document.hidden||(this._removeSendTimer(e),e.sendTimer=setTimeout(this._onShowed.bind(this,e),e.showedTime))},_removeSendTimer:function(e){e.sendTimer&&(clearTimeout(e.sendTimer),e.sendTimer=null)},_onShowed:function(e){this._sendStat(e),e.urls&&e.urls.length&&(e.urls.forEach((function(e){(new Image).src=e})),this._logFunc({action:"Счётчики отправлены",params:{watchDelay:e.showedTime,type:e.blockId,url:e.urls}})),e.callback&&e.callback(),e.refreshCaller&&MBEM.channel("showedCounter").trigger("readyForRefresh"),this._unBindEvents(e)},_sendStat:function(e){(e.observer||e.justRedirStat)&&e.needStat&&(0,t.DF)("show",this._getStatPath(e.blockId,"realshow"))},_logFunc:function(e){var t,n,i;null===(t=home)||void 0===t||null===(n=t.logBanner)||void 0===n||null===(i=n.log)||void 0===i||i.call(n,e)},catchFromFrame:function(){var e=this;this.frameListener||(window.addEventListener("message",(function(t){var n,i=null===(n=t.data)||void 0===n?void 0:n.isc;i&&e._logFunc(i)})),this.frameListener=!0)},frameListener:!1,_getStatPath:function(e,t){return"banner.".concat(t,".").concat(e)}};function ve(t,i,o,r){if(i&&t){var s=t.scripts,a=t.nonce,c=(0,n.Yu)("adb.data.adb");s&&s.forEach((function(t){var n,o=t.id,s=t.conf,l=t.actualVersion,u=t.actualVersion;(function(e,t,n){return new Promise((function(i,o){var r,s,a,c,l=window,u=null===(r=l.Ya)||void 0===r||null===(s=r.measurers)||void 0===s?void 0:s[e];l.Ya||(l.Ya={}),u?i(null===(a=l.Ya)||void 0===a||null===(c=a.measurers)||void 0===c?void 0:c[e]):ue(["//yastatic.net/pcode-static/measurers/",t,"/media/",e,".js"].join(""),(function(){var t,n;i(null===(t=l.Ya)||void 0===t||null===(n=t.measurers)||void 0===n?void 0:n[e])}),(function(){o(new Error("Cannot load measurer: ".concat(e,". Version: ").concat(t)))}),n)}))})(o,l,a).catch((function(t){(0,e.H)({block:"measurers",sourceType:"network",level:c?"warn":"error"},t)})).then((function(e){"function"==typeof e&&(n=null==r?void 0:r[o],e(i,s,{actualVersion:u,nonce:a,onMeasurerLoad:n}))}))}))}}MBEM.decl(home.cls.full("banner-media"),{__constructor:function(){this.__base.apply(this,arguments),this._settings=(0,n.Yu)("banner-media.settings"),this._counters=(0,n.Yu)("banner.counters")},_sendMeasurers:function(){if(this._counters){var e=this._counters,t=e.scriptMeasurers,n=e.mrcImpressions;t&&ve(t,this.domElem,home.cls.full("rtb")),n&&ge.setCounter({elem:this.domElem,blockId:"banner.mrcImpressions",showedTime:1e3,urls:n})}},_sendCounts:function(){var e,t=this;if(this._counters){var i=(0,n.Yu)("banner.name"),o=function(){t.unbindFrom(t.domElem,"click",s),t.unbindFrom(t.domElem,"mouseover",s)},r=ge.setCounter({elem:this.domElem,blockId:i||"",urls:this._counters.shows,needStat:!0,callback:o}),s=function(){null==r||r(),o()};null!==(e=this._settings)&&void 0!==e&&e.isMedia||(this.bindTo("click",s),this.bindTo("mouseover",s))}},_triggerAdbChannel:function(){var e=(0,n.Yu)("banner.name"),t=this.elem(home.cls.part("image"))[0]||this.elem(home.cls.part("iframe"))[0];MBEM.channel("adb").trigger("rendered",{id:e,elem:t})},_sendCountsAndMeasurers:function(){this._triggerAdbChannel(),this._sendMeasurers(),this._sendCounts()}},{});var be={};function ye(e){return e.isCached=!0,e}var we=ye((function(e,t){return(0,n.Yu)("common.new-tab-links")}));function Me(e,t,n){var i="a",o=e.attrs||{},r=e.mods||{},s=e.mix||"",a="";return o.class=(0,oe.jY)("home-link2",{mix:s,mods:r}),e.href?o.href=e.href:i=e.tag||"span",e.title&&(o.title=e.title),e.role&&(o.role=e.role),e.tabindex&&(o.tabindex=e.tabindex),e.target&&(o.target=e.target),!o.target&&o.href&&n(we,t)&&(o.target="_blank"),"_blank"===o.target&&void 0===o.rel&&(o.rel="noopener"),a="<"+i,a+=function(e){if(!e)return"";var t,n="";for(t in e)if(e.hasOwnProperty(t)){var i=e[t];if(i||0===i)if(i===be)n+=" "+t;else{var o=String(i);o.indexOf('"')>-1&&(o=o.replace(/"/g,"&quot;")),n+=" "+t+'="'+o+'"'}}return n}(o),e.stat&&(a+=e.stat),e.js&&(a+=' data-bem="'+(0,oe.Ms)(e.js)+'"'),a+=">",e.inlineIcon&&(a+=e.inlineIcon),e.content&&(a+=e.content),a+="</"+i+">"}var Ee=ye((function(){return"i-mini-bem"}));function ke(e,t,n){return"<span "+ie()({class:"running-line ".concat(e.mix||""," ").concat(n(Ee)),"data-bem":(0,oe.Ms)({"running-line":{}})})+">"+ee().oneElem("<span "+ie()({class:"running-line__text ".concat(e.textMix||"")})+">"+ee().oneElem(e.content)+"</span>")+"</span>"}function Te(e,t,n){var i="https://yandex.ru/legal/recommendations/#index__direct",o={color:"inherit"};return e.isTouch||(o.hover="secondary"),"<div "+ie()({class:t.cls.full("direct-close-block__ad-info")})+">"+ee().oneElem(n(ke,{content:ee().oneElem([e.info,"".concat("Rules of recommendation",":"),n(Me,{content:i,href:i,target:"_blank",mods:o})].join(" "))}))+"</div>"}function Se(e,t,n){return"<div class='ad-mark__info'><div class='ad-mark__info-close-icon'></div>"+ee().oneElem("<span class='ad-mark__info-title'>"+ee().oneElem("Advertisement")+"</span>")+ee().oneElem(n(ke,{mix:"ad-mark__info-description",content:ee().oneElem(e.info)}))+"</div>"}var Ce='<svg class="ad-mark__baloon-tail" xmlns="http://www.w3.org/2000/svg" width="24" height="8" fill="none"><path d="M0 8c6 0 9-8 12-8s6 8 12 8H0z"/></svg>';function Be(e,t){var n=e.isTouch,i=t.cls.full("ad-mark__b-unit-wrapper")+(n?t.cls.full(" ad-mark__b-unit-wrapper_touch"):"");return"<div "+ie()({class:i})+">"+(ee().oneElem("<button "+ie()({class:t.cls.full("ad-mark__b-unit"),"aria-label":"Powered by Yandex technologies"})+"></button>")+ee().oneElem(!n&&Ce))+"</div>"}function Ie(e,t){if(!e.isTouch){return"<div "+ie()({class:t.cls.full("ad-mark__baloon")})+">"+ee().oneElem("Powered by Yandex technologies")+"</div>"}}function Pe(e,t,n){var i=e.isTouch,o=e.isSocial,r=e.isBUnit,s=e.mods,a=e.statName,c=e.info,l="big"===s.size&&!o&&r,u={};a&&(u.statName=a);var d=l&&ee().oneElem(n(Be,{isTouch:i}))+ee().oneElem(n(Ie,{isTouch:i}));return"<div "+ie()({class:(0,oe.jY)("ad-mark",{mods:s,mix:"i-mini-bem"}),"data-bem":(0,oe.Ms)({"ad-mark":u})})+">"+(ee().oneElem("<span class='ad-mark__mark'>"+ee().oneElem(o?"Social ad":"Ads")+"</span>")+ee().oneElem("small"===s.size?n(Se,{info:c||""}):"")+ee().oneElem(d))+"</div>"}var xe='<svg class="adtune" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><circle class="adtune__big-circle" cx="24" cy="24" r="24"/><circle class="adtune__small-circle" cx="12" cy="24" r="3"/><circle class="adtune__small-circle" cx="24" cy="24" r="3"/><circle class="adtune__small-circle" cx="36" cy="24" r="3"/></svg>';function Oe(e,t,n){var i=e.mod,o={idle:t.cls.part("idle"),action:t.cls.part("action"),close:t.cls.part("close")},r=t.cls.full("direct-close-block__close-button ")+t.cls.part("direct-close-block__close-button_")+o[i];return"<button "+ie()({class:r})+">"+ee().oneElem(e.adInfo?n(Pe,{mods:{size:"big",position:"top-left"}}):ee().oneElem("<div "+ie()({class:t.cls.full("direct-close-block__close-icon")})+">"+ee().oneElem("idle"===i?xe:"")+"</div>")+ee().oneElem("<span class='a11y-hidden'>"+ee().oneElem(e.ariaLabel)+"</span>"))+"</button>"}function Re(e,t){var n=e.isComplain,i=n?"Ad reported":"Ad closed",o=n?"Thank you! Our moderator will investigate soon":"We use your responses to pick the ads that are appropriate for you";return"<div "+ie()({class:t.cls.full("direct-close-block__confirm-popup")})+">"+ee().oneElem("<div "+ie()({class:t.cls.full("direct-close-block__confirm-popup-content-wrapper")})+">"+ee().oneElem("<div "+ie()({class:t.cls.full("direct-close-block__confirm-popup-content"),"aria-live":"polite"})+">"+(ee().oneElem("<div "+ie()({class:t.cls.full("direct-close-block__confirm-header")})+">"+ee().oneElem(i)+"</div>")+ee().oneElem("<div "+ie()({class:t.cls.full("direct-close-block__confirm-text")})+">"+ee().oneElem(o)+"</div>"))+"</div>")+"</div>")+"</div>"}function Le(e,t,n){var i,o=e.type,r=e.disclaimer,s=e.adInfo,a=e.isTouch,c="action"===o?[t.cls.full("direct-close-block__close-popup"),t.cls.full("direct-close-block__close-popup_action")].join(" "):t.cls.full("direct-close-block__close-popup");i="close"===o?"Tell us why":e.isSocial?"Social ad":"Ads";var l=r&&n(ke,{content:r,mix:t.cls.full("direct-close-block__close-popup-disclaimer"),textMix:t.cls.full("direct-close-block__close-popup-disclaimer-text")});return"<div "+ie()({class:c})+">"+(ee().oneElem(n(Oe,{ariaLabel:e.buttonAriaLabel,mod:o}))+ee().oneElem("<div "+ie()({class:t.cls.full("direct-close-block__close-popup-content-wrapper")})+">"+ee().oneElem("<div "+ie()({class:t.cls.full("direct-close-block__close-popup-content")})+">"+(ee().oneElem("<span "+ie()({class:t.cls.full("direct-close-block__close-popup-capture")})+">"+(ee().oneElem(i)+ee().oneElem(l))+"</span>")+ee().oneElem(s?n(Te,{info:s,isTouch:a}):n(Ae,{buttonsParams:e.buttons,useScrollbar:e.useScrollbar,isCloseState:"close"===e.type})))+"</div>")+"</div>"))+"</div>"}function Ae(e,t,n){var i=e.useScrollbar,o=e.buttonsParams.map((function(i){return n(Me,{content:i.text,href:i.url,tag:"button",target:"_blank",mix:[t.cls.full("direct-close-block__close-reason"),e.isCloseState?t.cls.full("direct-close-block__close-reason_close"):"",i.mix].join(" "),attrs:{"data-id":i.options}})})).join(" "),r=t.cls.full("direct-close-block__close-reasons")+(i?"":t.cls.full(" direct-close-block__buttons-shadow")),s="<div "+ie()({class:r})+">"+ee().oneElem(o)+"</div>";return i?n(re,{mix:t.cls.full("direct-close-block__scrollbar")+t.cls.full(" direct-close-block__buttons-shadow"),mods:{"scroll-direction":"row"},content:s}):s}function Ne(e,t){return"<iframe "+ie()(Object.assign({class:t.cls.full("banner-media__iframe"),frameborder:"no",scrolling:"no",tabindex:"-1",marginwidth:0,marginheight:0,sandbox:"allow-same-origin allow-popups allow-popups-to-escape-sandbox allow-scripts allow-forms"},e))+"></iframe>"}MBEM.decl(home.cls.full("banner-media"),{__constructor:function(){var e;this.__base.apply(this,arguments),"image"===(null===(e=this._settings)||void 0===e?void 0:e.type)?this._sendCountsAndMeasurers():this._loadIframe()},_loadIframe:function(){var e,t=this,n=this.elem(home.cls.part("iframe-wrapper"))[0];if(null!==(e=this._settings)&&void 0!==e&&e.src&&this._settings.width&&this._settings.height){var i=(0,F.M)(Ne,{src:this._settings.src,width:this._settings.width,height:this._settings.height});n.insertAdjacentHTML("afterbegin",i),this._iframe=this.elem("iframe")[0],this._iframe.onload=function(){return t._sendCountsAndMeasurers()},this._bindResizeIframe()}},_bindResizeIframe:function(){this._iframe&&(this._throttledResizeIframe=ce(this._resizeIframe.bind(this),50),window.addEventListener("resize",this._throttledResizeIframe),this._resizeIframe())},_resizeIframe:function(){var e,t;if(this._iframe&&null!==(e=this._settings)&&void 0!==e&&e.width){var n=null===(t=this._iframe.parentElement)||void 0===t?void 0:t.getBoundingClientRect().width;if(n){var i=n/(this._settings.width-4);this._iframe.style.transform="scale(".concat(i,")"),this._iframe.style.borderRadius="calc(.8rem / ".concat(i,")")}}},unmount:function(){window.removeEventListener("resize",this._throttledResizeIframe)}},{resizeIframe:function(){var e,t,i,o=document.querySelector(home.cls.full(".banner-media__iframe")),r=null===(e=(0,n.Yu)("banner-media"))||void 0===e||null===(t=e.settings)||void 0===t?void 0:t.width;if(o&&r){var s=null===(i=o.parentElement)||void 0===i?void 0:i.getBoundingClientRect().width;if(s){var a=s/(r-4);o.style.transform="scale(".concat(a,")"),o.style.borderRadius="calc(.8rem / ".concat(a,")")}}}});r(9582),r(3146);MBEM.decl(home.cls.full("direct-close-block"),{__constructor:function(){var e;this.__base.apply(this,arguments),this._id=null!==(e=this.params)&&void 0!==e&&e.id?".".concat(this.params.id):"";var t=(0,n.Yu)("direct-close-block".concat(this._id,".data"));t&&(this._data=t,this._noClosingState=t.isSocial,this._miniClassName=(0,F.M)(Ee),this.bindTo(home.cls.part("close-button_idle"),"click",this._onCloseClick.bind(this)),this.bindTo("click",(function(e){e.stopPropagation()})))},_onCloseClick:function(e){e.preventDefault();var t=this.getMod(home.cls.part("state"));t===home.cls.part("idle")?this._setState("action"):t===home.cls.part("action")?this._setState("idle"):t===home.cls.part("closing")&&this._setState("confirmed")},_setState:function(e){if("idle"===e)this.setMod(home.cls.part("state"),home.cls.part("idle")),this._onClose(),this.elem(home.cls.part("close-button_idle"))[0].focus();else if("action"===e){this.setMod(home.cls.part("state"),home.cls.part("action")),this._onOpen();var t=this._data.adInfo;if(!this._actionPopupCreated)return this._createActionBlock(),this._sendStat(),void(t||this.elem(home.cls.part("close-reason"))[0].focus());if(t)return;this._copyButton&&this._copyButtonText&&(this._copyButton.textContent=this._copyButtonText),this._updateScrollbar(),this.elem(home.cls.part("close-reason"))[0].focus()}else"closing"===e?(this.setMod(home.cls.part("state"),home.cls.part("closing")),this._createCloseBlock(),this.elem(home.cls.part("close-popup_action"))[0].remove(),this.elem(home.cls.part("close-reason"))[0].focus()):"confirmed"===e&&(this.setMod(home.cls.part("state"),home.cls.part("confirmed")),this._createConfirmBlock(),this.elem(home.cls.part("close-popup"))[0].remove())},_onOpen:function(){MBEM.channel("direct-close-block").trigger("visible"),this._sendActionReasonId({reasonId:"1"})},_onClose:function(){MBEM.channel("direct-close-block").trigger("hidden"),this._sendActionReasonId({reasonId:"2"})},_onCloseReasonCLick:function(){this._setState(home.cls.part("confirmed"))},_onComplainClick:function(){this._complain=!0,this._setState("closing")},_onHideClick:function(){this._setState("closing")},_onCopyCLick:function(){var e,t,n=this,i=this._data.url||"",o=function(){if(!n._textContainer){var e=document.createElement("input");e.value=i,e.style.position="absolute",e.style.left="-9999px",e.className=home.cls.full("direct-close-block__copy-text"),n.domElem.insertAdjacentElement("beforeend",e),n._textContainer=n.elem(home.cls.part("copy-text"))[0]}n._textContainer.select();try{document.execCommand("copy")}catch(t){}};"function"==typeof(null===(e=navigator)||void 0===e||null===(t=e.clipboard)||void 0===t?void 0:t.writeText)?navigator.clipboard.writeText(i).catch((function(e){return o()})):o(),this._copyButton&&(this._copyButton.textContent="Copied"),this._updateScrollbar()},_getActionReasonId:function(e){var t,n=e.currentTarget;if(!(n instanceof HTMLElement))return{};var i=null===(t=n.dataset.id)||void 0===t?void 0:t.split("-");return i?{reasonId:i[0],actionId:i[1]}:{}},_onCloseReasonClickSendId:function(e){var t=this._getActionReasonId(e);this._sendActionReasonId(t)},_sendStat:function(){var e=this._data.sendStat,n=this._data.statName;e&&(0,t.DF)("click","direct-close-block.".concat(n||"unmarked",".close"))},_createConfirmBlock:function(){this.domElem.insertAdjacentHTML("beforeend",(0,F.M)(Re,{isComplain:this._complain}))},_createCloseBlock:function(){var e;(e=this._complain?this._data.hideReasonsComplain:this._data.hideReasonsClose)&&(this.domElem.insertAdjacentHTML("beforeend",(0,F.M)(Le,{isTouch:this._data.isTouch,buttons:e,type:"close",buttonAriaLabel:this._data.a11yKeyset.closing,useScrollbar:this._data.useScrollbar})),this._closePopupCreated=!0,MBEM.initAll(this.domElem,this._miniClassName),this.bindTo(home.cls.part("close-button_close"),"click",this._onCloseClick.bind(this)),this.bindTo(home.cls.part("close-reason_close"),"click",this._onCloseReasonCLick.bind(this)),this.bindTo(home.cls.part("close-reason_close"),"click",this._onCloseReasonClickSendId.bind(this)))},_createActionBlock:function(){var e,t=this._data.hideReasons,i="".concat(this._data.clientInfoString," ").concat((0,n.Yu)("direct-close-block.disclaimer","")).trimStart();this.domElem.insertAdjacentHTML("beforeend",(0,F.M)(Le,{isTouch:this._data.isTouch,buttons:t,type:"action",buttonAriaLabel:this._data.a11yKeyset.action||"",disclaimer:i,useScrollbar:this._data.useScrollbar,adInfo:this._data.adInfo,isSocial:this._data.isSocial})),this._copyButton=this.domElem.querySelector(home.cls.full(".direct-close-block__close-reason_copy")),this._copyButtonText=null===(e=this._copyButton)||void 0===e?void 0:e.textContent,this._actionPopupCreated=!0,MBEM.initAll(this.domElem,this._miniClassName),MBEM.initAll(this.domElem,this._miniClassName),this.bindTo(home.cls.part("close-button_action"),"click",this._onCloseClick.bind(this)),this.bindTo(home.cls.part("close-reason_complain"),"click",this._onComplainClick.bind(this)),this.bindTo(home.cls.part("close-reason_hide"),"click",this._onHideClick.bind(this)),this.bindTo(home.cls.part("close-reason_copy"),"click",this._onCopyCLick.bind(this)),this.bindTo(home.cls.part("close-reason_close"),"click",this._onCloseReasonCLick.bind(this)),this.bindTo(home.cls.part("close-reason"),"click",this._onCloseReasonClickSendId.bind(this))},_sendActionReasonId:function(e){var t=this._data.abuseUrl;if(t){var n,i,o=f(t),r=e.actionId,s=e.reasonId;s&&(o.query["reason-id"]=s),r&&(o.query["action-id"]=r),(s||r)&&((new Image).src=(i="",!(n=o).scheme||!n.host&&n.path||(i+=n.scheme+"://"),n.host&&(n.scheme||(i+="//"),i+=n.host),i&&(n.path&&0!==n.path.indexOf("/")||!n.path)&&"/"!==i.charAt(i.length-1)&&(i+="/"),i+=n.path||"",n.query&&(i+=p(n.query)),n.hash&&(i+="#"+n.hash),i))}},_updateScrollbar:function(){if(this._data.useScrollbar){var e=MBEM.getBlock(this.domElem,"scrollbar");e&&e.onScroll()}}},{});r(6637);MBEM.decl("running-line",{__constructor:function(){this.__base.apply(this,arguments),this._text=this.elem("text")[0],this.updateAnimation(),this._throttledUpdateAnimation=ce(this.updateAnimation.bind(this),100),window.addEventListener("resize",this._throttledUpdateAnimation)},updateAnimation:function(){var e=this;this.domElem.classList.add("running-line_running");var t=this.domElem.getBoundingClientRect().width,n=this._text.getBoundingClientRect().width;if(!n||!t||n<t)return this.domElem.style.removeProperty("--running-line-animation-end-pos"),this._text.style.animation="none",void this.domElem.classList.remove("running-line_running");var i=n-t,o=i/30;this.domElem.style.setProperty("--running-line-animation-end-pos","-".concat(i,"px")),this._text.style.animation="none",setTimeout((function(){e._text.style.animation="warning ".concat(o,"s linear infinite alternate")}),0)},unmount:function(){window.removeEventListener("resize",this._throttledUpdateAnimation)}}),MBEM.decl(home.cls.full("banner-dist"),{__constructor:function(){this.__base.apply(this,arguments),this._data=(0,n.Yu)("banner-dist.data"),this._triggerAdbChannel(),this._sendCounts()},_sendCounts:function(){},_triggerAdbChannel:function(){var e;MBEM.channel("adb").trigger("rendered",{id:null===(e=this._data)||void 0===e?void 0:e.name,elem:this.elem(home.cls.part("content"))[0]})}},{}),MBEM.decl(home.cls.full("banner-dist"),{_sendCounts:function(){if(this._data){var e=this._data.bnCounts,t=this._data.name;e&&ge.setCounter({elem:this.domElem,blockId:t||"banner-dist_lost",urls:e,needStat:!0})}}},{}),MBEM.decl(home.cls.full("banner"),{__constructor:function(){this._data=(0,n.Yu)("banner"),this._sendInstantShows()},_sendInstantShows:function(){var e,t,n=null===(e=this._data)||void 0===e||null===(t=e.counters)||void 0===t?void 0:t.instantShows;this._data&&null!=n&&n.length&&ge.setCounter({elem:this.domElem,blockId:"".concat(this._data.name,".instantShows"),threshold:0,showedTime:0,urls:n})}},{}),MBEM.decl("i-mini-message-locker",{},{blockOrder:["geolocation-setup"],acquireLock:function(e,t){var n=this;return new Promise((function(i,o){var r;if(n._initOrder(),e in n._blockOrderMap)if(n._locked)if(n._locked===e)i();else{var s=new Error("Lock already acquired. Cannot show ".concat(e));s.type="i-mini-message-locker:locked-already",o(s)}else if(r=n._blockOrderMap[e],!n._showPretender||n._showPretender.index>r)n._showPretender?n._showPretender.promises.forEach((function(e){var t=new Error("More important block is shown");t.type="i-mini-message-locker:low-priority",e.reject(t)})):MBEM.ready((function(){setTimeout((function(){if(n._showPretender){var e=n._showPretender.promises;n._locked=n._showPretender.name,n._closeFunc=t||null,n._showPretender=null,e.forEach((function(e){e.resolve()})),MBEM.channel("i-message-locker").trigger("lock",n._locked)}}),0)})),n._showPretender={name:e,promises:[{resolve:i,reject:o}],index:r};else if(n._showPretender&&n._showPretender.name===e)n._showPretender.promises.push({resolve:i,reject:o});else{var a=new Error("More important block is shown");a.type="i-mini-message-locker:low-priority",o(a)}else o(new Error("Unknown block priority in message-locker "+e))}))},releaseLock:function(e){this._locked&&this._locked===e&&(this._locked="",this._closeFunc=null,MBEM.channel("i-message-locker").trigger("unlock",e))},forceClose:function(){this._closeFunc&&this._closeFunc()},_blockOrderMap:void 0,_showPretender:void 0,_locked:"",_initOrder:function(){if(!this._blockOrderMap){this._blockOrderMap={};for(var e=0;e<this.blockOrder.length;++e)this._blockOrderMap[this.blockOrder[e]]=e}}});r(7271);MBEM.decl("dist-favourites",{__constructor:function(){var e=this;this.__base.apply(this),this._onCloseWithoutFocus=this._onClose.bind(this,!1),MBEM.blocks["i-mini-message-locker"].acquireLock("dist-favourites",this._onClose.bind(this)).then((function(){e.domElem.classList.add("dist-favourites_visible_yes"),e._sendStat("show"),e.bindTo(e.elem("close"),"click",e._onClose.bind(e,!0)),MBEM.channel("mini-suggest").on("focus",e._onCloseWithoutFocus),MBEM.channel("services-suggest").on("interaction",e._onCloseWithoutFocus),setTimeout((function(){return window.history.replaceState(null,"","?clid=2817230")}),150)})).catch((function(t){var n;return null===(n=e.domElem.parentNode)||void 0===n?void 0:n.removeChild(e.domElem)}))},_onClose:function(e){var t;if(MBEM.blocks["i-mini-message-locker"].releaseLock("dist-favourites"),MBEM.channel("mini-suggest").un("focus",this._onCloseWithoutFocus),MBEM.channel("services-suggest").un("interaction",this._onCloseWithoutFocus),this._sendStat("close"),e){var n=Array.from(document.querySelectorAll("a[href], input:not(:disabled), textarea, button, [tabindex]"));n[n.indexOf(this.elem("close")[0])+1].focus()}null===(t=this.domElem.parentNode)||void 0===t||t.removeChild(this.domElem)},_sendStat:function(e){var n=this.params.links[e];n&&("show"===e?MBEM.blocks["i-mini-yabs-sender"].sendShow("yabs",n):MBEM.blocks["i-mini-yabs-sender"].sendClose(n));var i="".concat(this.params.statName,".").concat(e),o="show"===e?"show":"click";(0,t.DF)(o,i)}});r(6211);function De(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.replace(/%s/g,(function(){return n.shift()||""}))}var Fe=(0,n.Yu)("i-bannerid.csl"),je=null;function Ue(e){return e.useIcon?"<span class='dist-overlay__link-icon'></span>"+ee().oneElem("<span>"+ee().oneElem(e.text)+"</span>"):e.text}function qe(e){var t="#"===e.charAt(0)?e.slice(1):e,n=(6===t.length?[t.slice(0,2),t.slice(2,4),t.slice(4,6)]:[t.slice(0,1)+t.slice(0,1),t.slice(1,2)+t.slice(1,2),t.slice(2,3)+t.slice(2,3)]).map((function(e){return parseInt(e,16)}));return{r:n[0],g:n[1],b:n[2]}}function He(e){var t,n,i=e.r/255,o=e.g/255,r=e.b/255,s=Math.max(i,o,r),a=Math.min(i,o,r),c=(s+a)/2;if(s===a)t=n=0;else{var l=s-a;switch(n=c>.5?l/(2-s-a):l/(s+a),s){case i:t=(o-r)/l+(o<r?6:0);break;case o:t=(r-i)/l+2;break;case r:t=(i-o)/l+4}t/=6}return{h:t,s:n,l:c}}function Ye(e){var t,n,i,o=e.h,r=e.s,s=e.l;if(0===r)t=n=i=s;else{var a=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},c=s<.5?s*(1+r):s+r-s*r,l=2*s-c;t=a(l,c,o+1/3),n=a(l,c,o),i=a(l,c,o-1/3)}return{r:Math.round(255*t),g:Math.round(255*n),b:Math.round(255*i)}}function Ve(e){return 1===e.length&&(e="0"+e),e}function ze(e,t){return function(e,t,n){var i=He(e);return i[t]+="l"===t&&n>0?(1-i.l)*n/100:i[t]*(n/100),Ye(i)}(e,"l",t)}function We(){return 1===this.opacity?"#"+Ve(this.rgb.r.toString(16))+Ve(this.rgb.g.toString(16))+Ve(this.rgb.b.toString(16)):"rgba("+String(this.rgb.r)+","+String(this.rgb.g)+","+String(this.rgb.b)+","+String(Number(this.opacity.toFixed(2)))+")"}var Ke=ye((function(e){return e.CSP&&e.CSP.nonce?' nonce="'+e.CSP.nonce+'"':""}));function Ge(e,t,n){return"<style "+ie()(Object.assign({_temp:n(Ke)},e.attrs))+">"+ee().oneElem(e.content)+"</style>"}var Xe=.48;function Je(e){return Boolean(e&&(t=e,{rgb:qe(t),get hsl(){return He(this.rgb)},opacity:1,toString:We,lighter:function(e){return this.rgb=ze(this.rgb,e),this},setOpacity:function(e){return this.opacity=e,this},setHsl:function(e){return this.rgb=Ye(e),this}}).hsl.l>=Xe);var t}function Qe(e){var t=Je(e)?.9:.8;return e.replace(/([\da-fA-F]{2})/g,(function(e){return function(e){return e.length<2?"0"+e:e}(Math.floor(parseInt(e,16)*t).toString(16))}))}function $e(e){if(e.color&&!Je(e.color))return"dark"}function Ze(e,t,n){var i=n($e,e),o=e.button_color&&!Je(e.button_color)?"dark":"light",r=n(Ge,{content:(e.color?"html:not(.document_dark_yes) .dist-overlay__content {\n            background-color: ".concat(e.color,";\n        }"):"")+(e.button_color?"html:not(.document_dark_yes) .dist-overlay__link {\n            background-color: ".concat(e.button_color,";\n        }\n        html:not(.document_dark_yes) .dist-overlay__link:hover {\n            background-color: ").concat(Qe(e.button_color),";\n        }"):"")}),s=e.age_restriction;return ee().oneElem(r)+ee().oneElem("<div "+ie()({class:(0,oe.jY)("dist-overlay__content",{mods:{theme:i,"button-theme":o}})})+">"+(ee().oneElem("<img "+ie()({class:"dist-overlay__icon",src:e.icon,"aria-hidden":"true",alt:""})+">")+ee().oneElem("<div id='distOverlayTitle' class='dist-overlay__title'>"+ee().oneElem(e.title)+"</div>")+ee().oneElem("<div id='distOverlayDesc' class='dist-overlay__description'>"+ee().oneElem(e.description)+"</div>")+ee().oneElem(s&&"<div id='distOverlayAgeLimit' class='dist-overlay__age-restriction'>"+(ee().oneElem("<span class='a11y-hidden'>"+ee().oneElem("Age restriction")+"</span>")+ee().oneElem(s))+"</div>")+ee().oneElem("<div class='dist-overlay__link-wrapper'>"+ee().oneElem(n(Me,{href:e.button_url,mix:"dist-overlay__link",mods:{color:"inherit"},stat:t.stat.getAttr("dist_overlay.link"),content:n(Ue,{text:e.button_text,useIcon:"icon"===e.design_type})}))+"</div>"))+"</div>")}MBEM.decl("dist-overlay",{__constructor:function(){var t=this,i=(0,n.Yu)("dist-overlay.data");i?MBEM.blocks["i-mini-message-locker"].acquireLock("dist-overlay",this._hide.bind(this)).then((function(){var e=(0,F.M)($e,i),n=MBEM.construct((0,F.M)(te.w,{mix:"dist-overlay__popup"+(e?" dist-overlay__popup_theme_dark":""),content:(0,F.M)(Ze,i),mods:{theme:"modal",autoclosable:"yes",overlay:"yes","has-close":"yes","delay-close":"close"===i.design_type?"yes":void 0},attrs:{role:"dialog","aria-modal":"true","aria-describedby":"distOverlayTitle distOverlayDesc distOverlayAgeLimit"}}));document.body.appendChild(n);var o=t._modal=MBEM.getInitedBlock(n,"simple-popup");t._bindEvents();o.on("show",(function e(){setTimeout((function(){var e;null===(e=n.querySelector(".dist-overlay__link"))||void 0===e||e.focus(),MBEM.cls.remove(document.documentElement,"utilityfocus"),MBEM.cls.add(document.documentElement,"pointerfocus")}),50),o.un("show",e)})),t._modal.show({})})):(0,e.H)({block:"dist-overlay",message:"Missing dist-overlay server data"})},_bindEvents:function(){var e,t,n,i=null===(e=this._modal)||void 0===e?void 0:e.domElem.querySelector(".dist-overlay__link");i&&(this.bindTo(i,"click",this._onLinkClick),this.bindTo(i,"keydown",this._onLinkKeydown)),null===(t=this._modal)||void 0===t||t.on("show",this._onShow,this),null===(n=this._modal)||void 0===n||n.on("hide",this._onHide,this)},_hide:function(){this._modal&&this._modal.delMod("visible")},_onShow:function(){var e,n=null===(e=this.params)||void 0===e?void 0:e.linknext;(0,t.DF)("show","dist_overlay.realshow"),n&&this._sendShow(n)},_sendShow:function(e){var t,n;null!==(t=MBEM)&&void 0!==t&&t.blocks["i-mini-yabs-sender"]?MBEM.blocks["i-mini-yabs-sender"].sendShow("yabs",e):null!==(n=BEM)&&void 0!==n&&n.blocks["i-yabs-sender"]&&BEM.blocks["i-yabs-sender"].sendShow("yabs",e)},_onHide:function(){var e,n=null===(e=this.params)||void 0===e?void 0:e.closeUrl;(0,t.DF)("click","dist_overlay.cancel"),n&&((new Image).src=n)},_onLinkClick:function(e){var t,n;e.preventDefault(),null===(t=this._modal)||void 0===t||t.un("hide",this._onHide),this._download(),null===(n=this._modal)||void 0===n||n.unmount()},_onLinkKeydown:function(e){32!==e.which||e.ctrlKey||e.shiftKey||e.metaKey||e.altKey||this._onLinkClick(e)},_download:function(){var e,n,i;(0,t.DF)("click","dist_overlay.ok");var o,r,s=null===(e=this.params)||void 0===e||null===(n=e.install)||void 0===n?void 0:n.url,a=null===(i=this.params)||void 0===i?void 0:i.bannerid;s&&(o=s,(r=window.open("","_blank"))&&(r.opener=null,r.location=o),a&&function(e){if(!Fe)throw new Error("i-bannerid: Cookie set link wasn't passed");if(!e)throw new Error("i-bannerid: Bannerid wasn't passed");var t=De(Fe,e);je||((je=document.createElement("iframe")).name="i-bannerid",je.style.display="none",document.body.appendChild(je)),je.src!==t&&(je.src=t)}(a))}});var et;r(1958);function tt(t){(et||(et=new Promise((function(e,t){ue("//yastatic.net/q/ya-paranja/client.js?build=morda",e,t)})).catch((function(t){et=void 0,(0,e.H)({block:"paas",sourceType:"network",method:"_load",message:"Error loading source for paas"},t)})))).then((function(){var e;null!==(e=window.Ya)&&void 0!==e&&e.Paranja&&(window.Ya.Paranja.init({from:"morda",product:t,mod:"iframe"}),window.Ya.Paranja.show())}))}function nt(e){var t=document.createElement("iframe");t.style.display="none",t.setAttribute("aria-hidden","true"),t.setAttribute("name","install"),t.setAttribute("src",e.url),document.body.appendChild(t),function(e){var t;null!==(t=e.counters)&&void 0!==t&&t.click&&((new Image).src=e.counters.click)}(e)}function it(e){tt(e.paas),nt(e)}MBEM.decl({block:"dist-overlay",modName:"install",modVal:"download"},{_download:function(){var e;(0,t.DF)("show","dist_overlay.ok");var n=null===(e=this.params)||void 0===e?void 0:e.install;null!=n&&n.paas&&n.url&&it(n)}});r(3181);MBEM.decl("dist-stripe",{__constructor:function(){this.bindTo("close","click",this._onClose),this.bindTo("content-wrapper","click",this._onYesClick),this._sendStat("show")},_onClose:function(){var e,t;this._sendStat("close");var n=this.elem("close")[0],i=Array.from(document.querySelectorAll("a[href], input:not(:disabled), textarea, button, [tabindex]"));i[i.indexOf(n)+1].focus(),null===(e=document.documentElement)||void 0===e||e.classList.remove("document_dist-stripe_yes"),null===(t=this.domElem.parentNode)||void 0===t||t.removeChild(this.domElem)},_onYesClick:function(){this.params.paas&&tt(this.params.paas),this._sendStat("yes")},_sendStat:function(e){var n=this.params.links[e];n&&("show"===e?MBEM.blocks["i-mini-yabs-sender"].sendShow("yabs",n):MBEM.blocks["i-mini-yabs-sender"].sendClose(n));var i="".concat(this.params.statName,".").concat(e),o="show"===e?"show":"click";(0,t.DF)(o,i)}});var ot="undefined"!=typeof window&&window,rt=function(e,t,n,i){var o,r=ot.document,s=r.createElement("link");if(t)o=t;else{var a=(r.body||r.getElementsByTagName("head")[0]).childNodes;o=a[a.length-1]}var c=r.styleSheets;s.rel="stylesheet",s.href=e,s.media=i?n||"all":"only x",function e(t){if(r.body)return t();setTimeout((function(){e(t)}))}((function(){o.parentNode.insertBefore(s,t?o:o.nextSibling)}));var l=function e(t){for(var n=s.href,i=c.length;i--;)if(c[i].href===n)return t();setTimeout((function(){e(t)}))};function u(){s.addEventListener&&s.removeEventListener("load",u),i||(s.media=n||"all")}return s.addEventListener&&s.addEventListener("load",u),s.onloadcssdefined=l,l(u),s};function st(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=rt(e,t.before,t.media,t.noFlash);t.callback&&
/*! onloadCSS: adds onload support for asynchronous stylesheets loaded with loadCSS. [c]2016 @zachleat, Filament Group, Inc. Licensed MIT */
function(e,t){var n;function i(){!n&&t&&(n=!0,t.call(e))}e.addEventListener&&e.addEventListener("load",i),e.attachEvent&&e.attachEvent("onload",i),"isApplicationInstalled"in navigator&&"onloadcssdefined"in e&&e.onloadcssdefined(i)}(n,t.callback)}function at(e){var t,n=[];return e.jsModule?n.push(home.importModule(e.js).then((function(e){if("default"in e&&e.default instanceof Promise)return e.default}))):n.push(function(e,t){return new Promise((function(n,i){ue(e,n,i,t)}))}(e.js)),e.css&&n.push((t=e.css,new Promise((function(e){st(t,{callback:e})})))),Promise.all(n)}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function lt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function dt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}MBEM.decl("games-feed",{__constructor:function(){var i=this,o=(0,n.Yu)("games-feed.fetcherUrl");if(o){var r=window.Ya&&Ya.Rum&&Ya.Rum.enabled;r&&Ya.Rum.time("feed_games_loaded");var s=function(){at(i.params.resources).then((function(){if(window.GamesFeed){var n=i.params,s=n.isMultiFeedEnabled,a=n.locale,c=n.logStatLimit,l=n.platform,u=n.domain,d=window.GamesFeed.renderFeed({renderTo:document.getElementById("games-feed"),locale:a,skeletonCount:1,hideTitle:s,gamesHeaderUrl:"https://yandex.".concat(u,"/games/?utm_source=mainpage_").concat(u),gamesFeedMix:"games-feed__feed",fetcherUrl:o,gamePlatform:l,logStatLimit:c,logStat:function(e,n,i){(0,t.DF)(e,"games_feed.".concat(n),i)},logError:function(t,n){(0,e.H)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({block:"games-feed"},t),n)},theme:home.skinIsDark?"dark":"light"}),h=d.setTheme;document.addEventListener("skin-changed",(function(){h(home.skinIsDark?"dark":"light")})),r&&Ya.Rum.timeEnd("feed_games_loaded"),MBEM.channel("feeds").trigger("load",{id:"games"})}else(0,e.H)({block:"games-feed",message:"No GamesFeed in window"})})).catch((function(t){throw(0,e.H)({block:"games-feed",sourceType:"network",url:t.request},t),t}))};if("React"in window)s();else{var a,c=document.querySelector("script[data-id=react-with-dom]");if(!c)return(0,e.H)({block:"games-feed",message:"No React script"}),void(null===(a=this.domElem.parentElement)||void 0===a||a.removeChild(this.domElem));c.addEventListener("load",(function(){s()})),c.addEventListener("error",(function(){var t;(0,e.H)({block:"games-feed",sourceType:"network",message:"Error loading React script"}),null===(t=i.domElem.parentElement)||void 0===t||t.removeChild(i.domElem)}))}}else(0,e.H)({block:"games-feed",message:"No fetcherUrl"})}}),MBEM.decl("goods",{__constructor:function(){this.bindTo("button-expand","click",this._onMoreClick);var e=this.params.onboardingShowUrl;e&&this._sendFlagmanStat(e)},_onMoreClick:function(){var e,n,i;this.domElem.setAttribute("aria-expanded","true"),this.setMod(this.domElem,"expand","yes"),(0,t.DF)("click","goods.more"),null===(e=this.elem("list_more"))||void 0===e||null===(n=e[0])||void 0===n||null===(i=n.querySelector(".goods__item"))||void 0===i||i.focus()},_sendFlagmanStat:function(t){"sendBeacon"in navigator&&"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(t)||fetch(t).catch((function(n){(0,e.H)({level:"warn",block:"goods",method:"_sendFlagmanStat",message:"Can't send flagman stat",url:t},n)}))}},{}),MBEM.decl("message-promo",{__constructor:function(){var n=this;this.__base.apply(this,arguments),(0,t.Dn)(this.domElem);var i=this.elem("img")[0],o=this.elem("video-wrapper")[0],r=this.elem("video")[0];if(this.bindTo("play-button","click",(function(){o.classList.add("message-promo__video-wrapper_played"),r&&(r.play().then((function(){return o.classList.remove("message-promo__video-wrapper_preview")})).catch((function(t){(0,e.H)({block:"message-promo",message:"video play error"},t),o.classList.remove("message-promo__video-wrapper_played")})),w("messagePromoPaused",""))})),this.bindTo("pause-button","click",(function(){o.classList.remove("message-promo__video-wrapper_played"),r&&(r.pause(),w("messagePromoPaused",n.params.videoUrl))})),this.bindTo("close-button","click",this._closePromo.bind(this)),this.bindTo("message-link","click",this._closePromo.bind(this)),this.bindTo("img-link","click",this._closePromo.bind(this)),this.bindTo("video-link","click",this._closePromo.bind(this)),i||r){var s=this.params.showUrl;s&&((new Image).src=s)}if(r){if(M("messagePromoPaused")===this.params.videoUrl)return o.classList.remove("message-promo__video-wrapper_played"),void o.classList.add("message-promo__video-wrapper_loaded");r.addEventListener("loadeddata",(function(){o.classList.add("message-promo__video-wrapper_loaded")}));var a=function(){r.play().then((function(){return o.classList.remove("message-promo__video-wrapper_preview")})).catch((function(t){(0,e.H)({block:"message-promo",message:"video play error"},t),o.classList.remove("message-promo__video-wrapper_played"),o.classList.add("message-promo__video-wrapper_loaded")}))},c=this.params.playingTimeout;if(void 0!==c)return void setTimeout(a,c);a()}},_closePromo:function(){var e,t=this.params.closeUrl;t&&(null===(e=this.domElem.parentNode)||void 0===e||e.removeChild(this.domElem),MBEM.blocks["i-mini-yabs-sender"].sendClose(t))}}),MBEM.decl("lang-switcher",{__constructor:function(){this.bindTo("button","click",this._onClick)},_onClick:function(e){var t=e.currentTarget;if(t instanceof HTMLElement){var n=t.dataset.value||"ru";location.href=_(this.params.setLangUrl,{intl:n})}}}),MBEM.decl("widgets",{__constructor:function(){this._state="init",this._autoMinimizedQuery=window.matchMedia("(max-width: 1366px)"),this._autoHiddenQuery=window.matchMedia("(max-width: 1050px)"),this._logElements=this._logElements.bind(this),this._logElements(),this._autoMinimizedQuery.addEventListener("change",this._logElements),this._autoHiddenQuery.addEventListener("change",this._logElements),this.bindTo("toggle-button","click",this._onToggle)},_onToggle:function(){this.toggleMod("minimized","yes");var e=this.params,t=e.collapse_url,n=e.expand_url,i=this.hasMod("minimized")?t:n;(new Image).src=i,this._logElements()},_logElements:function(){this._updateState()&&((0,t.DF)("tech","widgets.state.".concat(this._getState())),(0,t.Dn)(this.domElem))},_updateState:function(){var e=this._state;return this._state=this._getState(),this._state!==e},_getState:function(){return this._autoHiddenQuery.matches?"hidden":this.hasMod("minimized")||this._autoMinimizedQuery.matches?"minimized":"maximized"},unmount:function(){this._autoMinimizedQuery.removeEventListener("change",this._logElements),this._autoHiddenQuery.removeEventListener("change",this._logElements)}}),MBEM.decl("market-feed",{__constructor:function(){var n=this;this._bodyWrapper=document.querySelector(".body__wrapper");var i,o=window.Ya&&Ya.Rum&&Ya.Rum.enabled;o&&(Ya.Rum.time("feed_market_loaded"),i=Ya.Rum.makeSubPage("ru.morda.market_feed"));var r=function(){at(n.params.resources).then((function(){if(window.MarketFeed){var r=n.params,s=r.fetcherUrl,a=r.proxyHandlerUrl,c=r.viewerQueryParams,l=r.logStatLimit,u=r.feedTitle,d=r.feedOnboardingTitle,h=r.feedOnboardingSubtitle,m=r.onboardingShowUrl,f=r.geo,_=r.marketBaseUrl,v=r.customViewerUrl,b=r.disableViewer,y=r.showGreenPrice,w=r.titleUrl,M=r.titleIconUrl,E=y||m,k=window.MarketFeed.renderFeed({title:E&&d?d:u,titleIconUrl:M,titleUrl:w,subtitle:E&&h?h:"",renderTo:document.getElementById("market-feed"),updateCartCount:function(){return function(e,t,n,i){var o={blocks:t.join(",")};n&&t.forEach((function(e){var t=n[e];if(t){var i=Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])}));o["".concat(e,"_params")]=i.join(":")}}));var r=e+p(o);return g(r,{credentials:"include"}).then((function(e){var t,n;return window.Ya&&Ya.Rum&&(null===(t=(n=Ya.Rum).sendResTiming)||void 0===t||t.call(n,i||"proxy",r)),e}))}(a,["Market_cart"],{},"market_feed.proxy").then((function(t){var n=t.Market_cart;return"error"in n?((0,e.H)({block:"market-feed",method:"updateCartCount",message:n.error}),0):n.items_number||0})).catch((function(t){return(0,e.H)({block:"market-feed",method:"updateCartCount",sourceType:"network",url:t.request},t),0}))},skeletonCount:8,marketFeedMix:"market-feed__feed",regionId:f,fetcherUrl:s,marketBaseUrl:_,viewerQueryParams:c||"",logStatLimit:l,logStat:function(e,n,i){(0,t.DF)(e,"market_feed.".concat(n),i)},logError:function(t,n){(0,e.H)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ut(Object(n),!0).forEach((function(t){dt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ut(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({block:"market-feed"},t),n)},overlayZIndex:20,cartButtonZIndex:8,customViewerUrl:v,theme:home.skinIsDark?"dark":"light",onViewerShow:n._onViewerShow.bind(n),onViewerHide:n._onViewerHide.bind(n),onFirstCardVisibility:m?function(){n._sendFlagmanStat(m)}:void 0,disableViewer:b,showGreenPrice:y,sendTimeMark:function(e){o&&i&&Ya.Rum.sendTimeMark(e,Ya.Rum.getTime(),!1,i)}}),T=k.setTheme;document.addEventListener("skin-changed",(function(){T(home.skinIsDark?"dark":"light")})),o&&Ya.Rum.timeEnd("feed_market_loaded"),MBEM.channel("feeds").trigger("load",{id:"market"})}else(0,e.H)({block:"market-feed",message:"No MarketFeed in window"})})).catch((function(t){throw(0,e.H)({block:"market-feed",sourceType:"network",url:t.request},t),t}))};if("React"in window)r();else{var s,a=document.querySelector("script[data-id=react-with-dom]");if(!a)return(0,e.H)({block:"market-feed",message:"No React script"}),void(null===(s=this.domElem.parentElement)||void 0===s||s.removeChild(this.domElem));a.addEventListener("load",(function(){r()})),a.addEventListener("error",(function(){var t;(0,e.H)({block:"market-feed",sourceType:"network",message:"Error loading React script"}),null===(t=n.domElem.parentElement)||void 0===t||t.removeChild(n.domElem)}))}},_sendFlagmanStat:function(t){"sendBeacon"in navigator&&"function"==typeof navigator.sendBeacon&&navigator.sendBeacon(t)||fetch(t).catch((function(n){(0,e.H)({level:"warn",block:"market-feed",method:"_sendFlagmanStat",message:"Can't send flagman stat",url:t},n)}))},_onViewerShow:function(){this._activeElement=document.activeElement,this._bodyWrapper&&(this._bodyWrapper.setAttribute("inert",""),this._bodyWrapper.ariaHidden="true"),document.documentElement.classList.add("document_market-viewer_open")},_onViewerHide:function(){var e;this._activeElement&&this._activeElement instanceof HTMLElement&&(null===(e=this._activeElement)||void 0===e||e.focus());this._bodyWrapper&&(this._bodyWrapper.removeAttribute("inert"),this._bodyWrapper.ariaHidden="false"),document.documentElement.classList.remove("document_market-viewer_open")}});r(4170);function ht(){var e={};return window.name.split("&").forEach((function(t){if(t.toString()){var n=t.split("=");e[n[0]]=n[1]}})),e}function mt(e){return ht()[e]}function pt(e,t){var n=ht(),i=[];for(var o in n[e]=t,n)n.hasOwnProperty(o)&&i.push(o+"="+n[o]);window.name=i.join("&")}MBEM.decl("news-promo",{__constructor:function(){var e=this;document.body.classList.add("body_news-promo_yes"),this.params.showUrl&&((new Image).src=this.params.showUrl),this.bindTo("close","click",(function(){(0,t.DF)("click","news_promo.close"),e.params.closeUrl&&((new Image).src=e.params.closeUrl),e.setMod("animation","fade"),ae(e.domElem,"transition",300,(function(){e.setMod("visible","no")}))}))}});var ft=null,_t=function(e){var n=ft;if(n){var i=Date.now();vt().then((function(o){o.toggle({lang:mt("keyboard_lang")||n.lang||"ru",for:n.for,onShow:function(){pt("keyboard_state","open"),MBEM.cls.add(document.documentElement,"document_keyboard")},onHide:function(){pt("keyboard_state","close"),MBEM.cls.remove(document.documentElement,"document_keyboard")},onLang:function(e){pt("keyboard_lang",e)}},e),(0,t.DF)("tech","keyboard.popup.timing",{customParams:{time:Date.now()-i}})}))}};function gt(e){ft=e,"open"!==mt("keyboard_state")&&"#kb"!==window.location.hash||_t()}function vt(){return r.e("keyboard").then(r.bind(r,1062)).catch((function(t){throw(0,e.H)({block:"keyboard-loader",url:t.request},t),t}))}function bt(e){if(!e)return"";var t="";for(var n in e)if(e.hasOwnProperty(n)){if(!e[n]&&0!==e[n])continue;t&&(t+=";"),t+=n+":"+String(e[n])}return t}MBEM.decl("search3",{__constructor:function(){var e=MBEM.getInitedBlock(this.domElem,"mini-suggest");e&&e.on("action",(function(n,i){if("voice"===i.type){(0,t.DF)("click","alice_popup.voice_search");var o=document.querySelector(".alice-fab"),r=o&&MBEM.getBlock(o,"alice-fab");null==r||r.forceRender()}else"keyboard"===i.type&&(_t(),e.focus())}));var i=document.querySelector(".search3__input");i&&gt({lang:(0,n.Yu)("search3.keyboardLang")||"ru",for:i}),this.params.openKeyboard&&_t(!0),this._showTooltip()},_showTooltip:le((function(){var e=this;if(this.params.tooltip){(new Image).src=this.params.tooltip,(0,t.DF)("show","services_suggest.tooltip.1"),this._onboardingTooltip=MBEM.blocks["simple-tooltip"].show(this.elem("input-wrapper")[0],{mods:{animation:"none",theme:"normal",autoclosable:"yes"},direction:"top-center",yOffset:-20,content:"Your services are now here"}).on("click",(function(){var e=document.querySelector(".search3__input");null==e||e.click(),null==e||e.focus()}));var n=function t(){e._onboardingTooltip&&e._onboardingTooltip.hide(),setTimeout((function(){MBEM.channel("mini-suggest").un("focus",t),MBEM.channel("services-suggest").un("interaction",t)}),0)};MBEM.channel("mini-suggest").on("focus",n),MBEM.channel("services-suggest").on("interaction",n)}}))},{live:function(){return this.liveBindTo("keyboard","mouseover",(function(){vt().catch((function(){}))})),!1}});function yt(e){return e.pins.concat(e.services.filter((function(t){return-1===e.pins.findIndex((function(e){return e.id===t.id}))}))).slice(0,9)}function wt(e,t,n){var i=e.item,o=e.attrs||{},r=e.mods||{};return o["data-id"]=i.id,r.search=i.search?"yes":void 0,"<li class='services-suggest__list-item'>"+ee().oneElem(n(Me,{href:i.url,attrs:o,stat:e.stat,mix:(0,oe.jY)("services-suggest__item",{mods:r}),mods:{color:"black",hover:"secondary"},content:ee().oneElem(n(Mt,{item:i,staticHost:e.staticHost,isUnifiedServicesIcons:e.isUnifiedServicesIcons}))+ee().oneElem("<div class='services-suggest__item-title'>"+ee().oneElem(i.title)+"</div>")}))+"</li>"}function Mt(e,t,n){return"<div "+ie()({class:"services-suggest__icon",style:bt({"background-image":"url(".concat(n(Et,{icon:e.item.icon_id,staticHost:e.staticHost,isUnifiedServicesIcons:e.isUnifiedServicesIcons}),")")})})+"></div>"}function Et(e){return e.isUnifiedServicesIcons?"".concat(e.staticHost,"/s3/home/services/all/all_lite/").concat(e.icon,".svg"):"".concat(e.staticHost,"/s3/home/services/pinned/").concat(e.icon,".2.png")}function kt(e){return"<div "+ie()({class:(0,oe.jY)("simple-tooltip",{mods:e.mods,mix:"i-mini-bem"}),"data-bem":(0,oe.Ms)({"simple-tooltip":{}})})+"><div class='simple-tooltip__tail'></div>"+ee().oneElem("<div class='simple-tooltip__content'>"+ee().oneElem(e.content)+"</div>")+"</div>"}MBEM.decl("services-suggest",{__constructor:function(){var e=this;this._afterVisibilitychange=!1,this._onVisibilityChange=this._onVisibilityChange.bind(this),this._urls={},this._bindSearchScenario(),this._searchUrls=(0,n.Yu)("services-suggest.searchUrls")||{},this.hasMod("pinned")&&(0,t.Dn)(this.domElem),this._hasFocus=!1,this._hasMouse=!1,this._hasMorePopup=!1;var i=function(t){if(t.target===e.domElem||"mouseenter"!==t.type&&"mouseleave"!==t.type){var n;if("mouseenter"===t.type?e._hasMouse=!0:"mouseleave"===t.type?e._hasMouse=!1:"focus"===t.type?e._hasFocus=!0:"blur"===t.type&&(e._hasFocus=!1),!e._afterVisibilitychange)if(e._updateVisibility(),"blur"===t.type)null!==(n=e._onboardingTooltip)&&void 0!==n&&n.domElem&&e._onboardingTooltip.delMod("shown");MBEM.channel("services-suggest").trigger("interaction"),e._showTooltip()}};["mouseenter","mouseleave","focus","blur"].forEach((function(t){e.domElem.addEventListener(t,i,{capture:!0})})),this.bindTo("pin","click",this._onTogglePin),MBEM.channel("services-more-popup").on("toggle",(function(t,n){var i=n.toggle;e.elem("item-more")[0].setAttribute("aria-expanded",i?"true":"false"),MBEM.cls.toggle(document.documentElement,"document_disable-scroll_yes",i),e._hasMorePopup=i,e._updateVisibility()})),MBEM.channel("services-more-popup").on("pins-change",(function(t,n){return e._updatePins(n)})),MBEM.channel("mini-suggest").on("focus",(function(){(0,t.Dn)(e.domElem),e._showTooltip(),e._forceHidden=!1})),MBEM.channel("mini-suggest").on("blur",(function(){var t;null!==(t=e._onboardingTooltip)&&void 0!==t&&t.domElem&&e._onboardingTooltip.hide()})),document.addEventListener("visibilitychange",this._onVisibilityChange)},_updateVisibility:function(){var e=(this._hasFocus||this._hasMouse)&&!this._forceHidden||this._hasMorePopup;MBEM.cls.toggle(document.body,"body_services-suggest-force_yes",e)},_onVisibilityChange:function(){var e=this;this._afterVisibilitychange=!0,MBEM.cls.remove(document.body,"body_services-suggest-force_yes"),setTimeout((function(){e._afterVisibilitychange=!1}),100)},_showTooltip:le((function(){var e=this;this.params.tooltip&&((new Image).src=this.params.tooltip,(0,t.DF)("show","services_suggest.tooltip.2"),this._onboardingTooltip=MBEM.blocks["simple-tooltip"].show(this.elem("item-more")[0],{mods:{theme:"normal",autoclosable:"yes"},direction:"right-top",xOffset:-10,yOffset:-25,content:"Configure your services list"}).on("click",(function(){e._togglePopup()})))})),_updatePins:function(e){var t=this,n=this.params.services||[],i=(0,F.M)(yt,{services:n,pins:e});Array.from(document.querySelectorAll(".services-suggest__item")).forEach((function(e,n){var o,r=e.getAttribute("data-id"),s=i[n];r&&s&&s.id!==r&&(null===(o=e.parentElement)||void 0===o||o.replaceWith(MBEM.construct((0,F.M)(wt,{item:i[n],staticHost:t.params.staticHost,attrs:{"data-statlog":"services_suggest.item.".concat(s.id,".").concat(n)},isUnifiedServicesIcons:t.params.isUnifiedServicesIcons}))))}))},_bindSearchScenario:function(){var e=this;MBEM.channel("mini-suggest").on("input-change",(0,c.D)((function(t,n){e._updateUrls(n)}),300))},_updateUrls:function(e){for(var t=encodeURIComponent(e),n=document.querySelectorAll(".services-suggest__item_search_yes"),i=0;i<n.length;++i){var o=n[i],r=o.getAttribute("data-id"),s=r&&this._searchUrls[r];r&&!this._urls[r]&&(this._urls[r]=o.getAttribute("href")||""),s&&o.setAttribute("href",De((t?s:this._urls[r]).replace(/%25/g,"%"),t))}},_togglePopup:function(){var e;null!==(e=this._onboardingTooltip)&&void 0!==e&&e.domElem&&this._onboardingTooltip.hide();var t=document.querySelector(".services-more-popup");t&&(MBEM.initBlockFromNode(t,"services-more-popup").toggle(),setTimeout((function(){MBEM.cls.add(document.body,"body_services-suggest-force_yes")}),0))},_onTogglePin:function(){var e=this.hasMod("pinned","yes"),i=e?"urlToUnpin":"urlToPin",o=(0,n.Yu)("services-suggest.".concat(i));if(o&&((new Image).src=o),MBEM.cls.toggle(document.documentElement,"document_services-suggest-pinned_yes",!e),MBEM.cls.remove(document.body,"body_services-suggest-force_yes"),(0,t.DF)("click","services_suggest.".concat(e?"unpin":"pin")),this.toggleMod("pinned","yes"),e){try{document.activeElement instanceof HTMLElement&&document.activeElement.blur()}catch(r){}this._forceHidden=!0,this._updateVisibility()}},unmount:function(){document.removeEventListener("visibilitychange",this._onVisibilityChange)}},{live:function(){return this.liveBindTo("item-more","click",(function(e){this._togglePopup(),e.preventDefault()})),!1}}),MBEM.decl("services-more-popup",{__constructor:function(){var e=this;this.bindTo("search","input",(function(t){e._onChangeMoreSearch(t)})),this.bindTo("hidden-close-button","click",(function(t){return e.toggle()})),this.bindTo("keydown",this._onKeydown),this._morePopupClickEvents=this._morePopupClickEvents.bind(this),this._scrollbar=MBEM.getBlock(this.elem("scrollbar")[0],"scrollbar"),this._lastFocused=null;var t,n=(t=this.domElem,Array.from(t.querySelectorAll('a[href], *[tabindex], button, input:not([type="hidden"]), textarea, select, menuitem')).filter((function(e){var t=e.getAttribute("tabindex");return!(null!==t&&parseInt(t,10)<0)})));this._firstFocusable=n[0],this._lastFocusable=n[n.length-1],this._firstFocusable&&this.bindTo(this._firstFocusable,"keydown",this._onFirstFocusableKeyDown),this._lastFocusable&&this._lastFocusable!==this._firstFocusable&&this.bindTo(this._lastFocusable,"keydown",this._onLastFocusableKeyDown)},toggle:function(e){if((e=void 0===e?!this._isMorePopupOpened:e)!==this._isMorePopupOpened){e?this._beforeOpenMorePopup():this._beforeCloseMorePopup(),this.toggleMod("visible","yes",e);var t=document.querySelector(".services-more-popup__overlay");return t&&this.toggleMod(t,"visible","yes",e),e&&this._scrollbar&&this._scrollbar.onScroll(),MBEM.channel("services-more-popup").trigger("toggle",{toggle:e}),e?this._focusOnOpen():this._lastFocused&&this._lastFocused instanceof HTMLElement&&this._lastFocused.focus(),!1}},_activeMoreSearch:function(){this._searchContainer||(this._searchContainer=this.elem("search-container")[0]),this.setMod(this._searchContainer,"active","yes"),this.elem("search")[0].focus()},_onChangeMoreSearch:function(e){var t,n=null===(t=e.target)||void 0===t?void 0:t.value.toLowerCase(),i=new RegExp(String.fromCharCode(173),"g"),o=this.elem("more-button"),r=this.elem("tabs"),s=this.elem("tabs-title");if(o.forEach((function(e){e.style.display=""})),r[0]&&(r[0].style.display="none"),s[0]&&(s[0].style.display="none"),""!==n){this._moreItems=this.elem("item"),this._moreItems.forEach((function(e){var t,o;((null===(t=e.querySelector(".services-more-popup__item-title"))||void 0===t||null===(o=t.textContent)||void 0===o?void 0:o.toLowerCase().replace(i,""))||"").indexOf(n)>-1?(e.style.display="",MBEM.cls.add(e,"services-more-popup__item_search-show")):(e.style.display="none",MBEM.cls.remove(e,"services-more-popup__item_search-show"))})),Array.from(document.querySelectorAll(".services-more-popup__section")).forEach((function(e){0===Array.from(e.querySelectorAll(".services-more-popup__item")).filter((function(e){return MBEM.cls.contains(e,"services-more-popup__item_search-show")})).length?e.querySelectorAll(".services-more-popup__search-message").length||(e.style.display="none"):e.style.display=""}));var a=this.elem("search-message")[0];if(Array.from(document.querySelectorAll(".services-more-popup__section")).some((function(e){return"none"!==e.style.display})))null==a||a.remove();else if(!a){var c=document.createElement("div");c.className="services-more-popup__search-message",c.textContent="Ничего не найдено",this.elem("search-container")[0].appendChild(c)}}else{var l;o.forEach((function(e){e.style.display=""})),r[0]&&(r[0].style.display=""),s[0]&&(s[0].style.display=""),this._moreItems.forEach((function(e){MBEM.cls.contains(e,"services-more-popup__item_hidden_yes")?e.style.display="none":e.style.display="",MBEM.cls.remove(e,"services-more-popup__item_search-show")}));var u=document.querySelector(".services-more-popup__search-message");null==u||null===(l=u.parentNode)||void 0===l||l.removeChild(u);var d=document.querySelector(".services-more-popup__section");d&&(d.style.display="")}},_morePopupClickEvents:function(e){if(e.target&&e.target instanceof Element){var t=MBEM.closest(e.target,"services-more-popup"),n=MBEM.closest(e.target,"tooltip"),i=MBEM.closest(e.target,"services-more-popup__tab_inactive"),o=MBEM.closest(e.target,"services-more-popup__magnifier"),r=MBEM.closest(e.target,"services-more-popup__more-button");t||n?i?(e.preventDefault(),this._onTabClick(e)):o?this._activeMoreSearch():r&&this._showHiddenItems(e):(e.preventDefault(),this.toggle(!1))}},_showHiddenItems:function(e){if(e.target&&e.target instanceof HTMLElement){var n,i=MBEM.closest(e.target,"services-more-popup__section");(0,t.DF)("click","services-more-popup.more.".concat(null==i?void 0:i.getAttribute("data-section"))),i&&Array.from(i.querySelectorAll(".services-more-popup__item_hidden_yes")).forEach((function(e,t){MBEM.cls.remove(e,"services-more-popup__item_hidden_yes"),e.style.display="",0===t&&e.focus()}));var o=MBEM.closest(e.target,"services-more-popup__more-button");null==o||null===(n=o.parentNode)||void 0===n||n.removeChild(o)}},_beforeOpenMorePopup:function(){var e=this;(0,t.Dn)(this.domElem,{visibilityCheck:!1}),document.addEventListener("pointerdown",this._morePopupClickEvents),this.bindTo(this.elem("more-button"),"keydown",(function(t){13===t.which&&e._showHiddenItems(t)})),this.bindTo(this.elem("magnifier"),"keydown",(function(t){13===t.which&&e._activeMoreSearch()})),this.bindTo(this.elem("tab","inactive"),"keydown",(function(t){13===t.which&&e._activeMoreSearch()})),this._isMorePopupOpened=!0,this._lastFocused=document.activeElement},_focusOnOpen:function(){this.elem("hidden-heading")[0].focus()},_beforeCloseMorePopup:function(){(0,t.DF)("click","services-more-popup.close"),document.removeEventListener("pointerdown",this._morePopupClickEvents),this._isMorePopupOpened=!1},_onTabClick:function(e){var n=e.target,i=n.getAttribute("data-section"),o=document.querySelector(".services-more-popup__section-".concat(i)),r=null==o?void 0:o.querySelector(".services-more-popup__section-title"),s=MBEM.closest(n,"scrollbar__scrollable"),a=o&&MBEM.offset(o),c=s&&MBEM.offset(s);(0,t.DF)("click","services-more-popup.tab.".concat(n.getAttribute("data-section"))),a&&s&&(s.scrollTop=a.top-((null==c?void 0:c.top)||0)-20),null==r||r.focus(),document.documentElement.classList.add("pointerfocus"),document.documentElement.classList.remove("utilityfocus")},_onKeydown:function(e){27===e.which&&this.toggle(!1)},_onFirstFocusableKeyDown:function(e){e.ctrlKey||e.altKey||e.metaKey||e.shiftKey&&9===e.which&&(e.preventDefault(),this._lastFocusable&&this._lastFocusable instanceof HTMLElement&&this._lastFocusable.focus())},_onLastFocusableKeyDown:function(e){e.ctrlKey||e.altKey||e.metaKey||e.shiftKey||9===e.which&&(e.preventDefault(),this._firstFocusable&&this._firstFocusable instanceof HTMLElement&&this._firstFocusable.focus())}}),MBEM.decl({block:"services-more-popup",modName:"pinnable",modVal:"yes"},{__constructor:function(){var e=this;this.__base.apply(this,arguments);var t=(0,n.Yu)("services-more-popup.data")||{},i=t.pins,o=t.all,r=t.business;this._pins=i||[],this._all=o||{},this._business=r||{},this.bindTo("item-pinner","click",this._onPinnerClick),this.bindTo("item-pinner","keyup",(function(t){"Enter"===t.key&&e._onPinnerClick(t)}))},_onPinnerClick:function(e){var n=this;if(e.target instanceof HTMLElement){var i=e.target.dataset.id;if(i){var o=-1!==this._pins.indexOf(i);o?this._unpin(i):this._pin(i),e.target.classList.toggle("services-more-popup__item-pinner_pinned_yes",!o),this._updateYussCookie(),MBEM.channel("services-more-popup").trigger("pins-change",this._pins.map((function(e){return n._all[e]||n._business[e]})))}else(0,t.DF)("click","services_more_popup.add.unknown")}},_pin:function(e){this._pins.push(e),(0,t.DF)("click","services-more-popup.pinned.add.".concat(e))},_unpin:function(e){this._pins=this._pins.filter((function(t){return t!==e})),(0,t.DF)("click","services-more-popup.pinned.remove.".concat(e))},_updateYussCookie:function(){var e=this.params.sameSiteSupport?"; sameSite=None":"",t="expires=".concat(new Date(Date.now()+31536e6).toUTCString());document.cookie="yuss=".concat(encodeURIComponent(this._pins.join(",")),"; ").concat(t,"; domain=").concat(this.params.domain).concat(e,"; secure=true; path=/")},toggle:function(){this.__base.apply(this,arguments),this._showTooltip()},_showTooltip:le((function(){var e=this;if(this.params.tooltip){(new Image).src=this.params.tooltip,(0,t.DF)("show","services_suggest.tooltip.3");var n=document.querySelector(".services-more-popup__item_tooltip_yes"),i=null==n?void 0:n.querySelector(".services-more-popup__item-pinner");n&&i&&(this._onboardingTooltip=MBEM.blocks["simple-tooltip"].show(i,{mods:{theme:"normal",autoclosable:"yes"},direction:"left-top",xOffset:-10,yOffset:-35,content:"Pin the service"}).on("hide",(function(){e._onboardingTooltip=null,MBEM.cls.remove(n,"services-more-popup__item_tooltip_yes")})),i.addEventListener("click",(function(){e._onboardingTooltip&&e._onboardingTooltip.hide()})),i.addEventListener("keyup",(function(t){"Enter"===t.key&&e._onboardingTooltip&&e._onboardingTooltip.hide()})))}}))}),MBEM.decl("simple-tooltip",{__constructor:function(){var e=this;this.bindTo("click",(function(){e.trigger("click")})),this._windowResize=this._reposition},show:function(e,t){var n=this;this._owner=e,this._prevOptions=t,this.domElem.style.zIndex=String(function(e){for(var t=e,n=0;t&&t!==document.body;){if(t instanceof HTMLElement){var i=window.getComputedStyle(t);i.zIndex&&!Number.isNaN(Number(i.zIndex))&&(n=Number(i.zIndex))}t=t.parentNode}return n}(e)+1),this._reposition(),this.setMod("direction",t.direction),this.bindTo(window,"resize",this._windowResize),this._timeout=window.setTimeout((function(){n._timeout=0,n.setMod("shown","yes"),n.hasMod("autoclosable","yes")&&n.bindTo(document.body,"click",n._docClickHandler)}),50)},hide:function(){var e=this;this.hasMod("shown")&&(this._timeout&&(clearTimeout(this._timeout),this._timeout=0),this.delMod("shown"),this.trigger("hide"),this.unbindFrom(document.body,"click",this._docClickHandler),this.unbindFrom(window,"resize",this._windowResize),setTimeout((function(){var t;null===(t=e.domElem.parentNode)||void 0===t||t.removeChild(e.domElem)}),150))},_docClickHandler:function(e){e.target&&e.target instanceof Node&&!this.domElem.contains(e.target)&&this.hide()},_reposition:function(){var e=this._owner,t=this._prevOptions;if(e&&t){var n=e.getBoundingClientRect(),i=this.domElem.getBoundingClientRect();"right-top"===t.direction?(this.domElem.style.top="".concat(window.scrollY+n.top+(t.yOffset||0),"px"),this.domElem.style.left="".concat(window.scrollX+n.right+(t.xOffset||0),"px")):"left-top"===t.direction?(this.domElem.style.top="".concat(window.scrollY+n.top+(t.yOffset||0),"px"),this.domElem.style.left="".concat(window.scrollX+n.left-i.width+(t.xOffset||0),"px")):"top-center"===t.direction?(this.domElem.style.top="".concat(window.scrollY+n.top-i.height+(t.yOffset||0),"px"),this.domElem.style.left="".concat((window.scrollX+n.left+n.right)/2-i.width/2+(t.xOffset||0),"px")):"left"===t.direction&&(this.domElem.style.top="".concat(window.scrollY+n.top+n.height/2-i.height/2+(t.yOffset||0),"px"),this.domElem.style.left="".concat(window.scrollX+n.left-i.width+(t.xOffset||0),"px"))}}},{show:function(e,t){var n=MBEM.construct((0,F.M)(kt,t));document.body.appendChild(n);var i=MBEM.getInitedBlock(n,"simple-tooltip");return i.show(e,t),i}}),MBEM.decl("link-bro",{__constructor:function(){MBEM.blocks["i-mini-yabs-sender"].sendShow("yabs",this.params.linknext),this.bindTo("link","click",this._onClick)},_onClick:function(e){this.params.paas&&this.params.url&&(it({paas:this.params.paas,url:this.params.url,counters:{}}),(0,t.DF)("click","link_bro.paas"),e.preventDefault())}});var Tt=function(){function e(e){this.offset=0,this.littleEndian=!1,this.view=new DataView(e)}return e.prototype.skip=function(e){this.offset+=e},e.prototype.nextUint16=function(){var e=this.view.getUint16(this.offset,this.littleEndian);return this.skip(2),e},e.prototype.nextUint32=function(){var e=this.view.getUint32(this.offset,this.littleEndian);return this.skip(4),e},e.prototype.setLittleEndian=function(e){this.littleEndian=e},e.prototype.isFinished=function(){return this.offset>=this.view.byteLength},e}(),St=1,Ct=3,Bt=6,It=8,Pt=9,xt=function(e){return 65280==(65280&e)},Ot=function(e){return"from-image"===window.getComputedStyle(document.body).imageOrientation?Promise.resolve(St):function(e){return new Promise((function(t,n){var i=new FileReader;i.onload=function(){return t(i.result)},i.onerror=n,i.readAsArrayBuffer(e)}))}(e).then((function(e){var t,n,i=new Tt(e);if(65496!==i.nextUint16())return Pt;for(;!i.isFinished()&&(t=i.nextUint16(),xt(t)&&65498!==t&&65497!==t);)if(65505===t){i.skip(2),i.skip(6),i.setLittleEndian(18761===i.nextUint16()),i.skip(2),i.skip(i.nextUint32()-8),n=i.nextUint16();for(var o=0;o<n;o++){if(274===i.nextUint16())return i.skip(6),i.nextUint16();i.skip(10)}}else i.setLittleEndian(!1),i.skip(i.nextUint16()-2);return Pt}))},Rt=function(e,t,n){void 0!==n&&(e[t]=n)},Lt=function(e){var t=window.URL||window.webkitURL,n=t.createObjectURL(e);return function(e,t){var n=void 0===t?{}:t,i=n.crossOrigin,o=n.referrerPolicy;return new Promise((function(t,n){var r=new Image;Rt(r,"crossOrigin",i),Rt(r,"referrerPolicy",o),Rt(r,"onload",(function(){return t(r)})),Rt(r,"onerror",(function(){return n(new Error("Image loading failed"))})),Rt(r,"src",e)}))}(n).then((function(e){return t.revokeObjectURL(n),e})).catch((function(e){return t.revokeObjectURL(n),Promise.reject(e)}))},At=function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n},Nt=function(e,t){var n,i,o,r,s,a,c,l=function(e,t){return t===It||t===Bt?{width:e.height,height:e.width}:{width:e.width,height:e.height}}(e,t),u=(i=5e6,o=4096,r=(n=l).width/n.height,s=0,a=0,c={width:0,height:0},n.width*n.height>i?n.width>n.height?(s=Math.sqrt(i*r),c={width:Math.floor(s),height:Math.floor(i/s)}):(a=Math.sqrt(i/r),c={width:Math.floor(i/a),height:Math.floor(a)}):c=n,c.width>o&&(c.width=o,c.height=Math.round(c.width/r)),c.height>o&&(c.height=o,c.width=Math.round(r*c.height)),c),d=At(u.width,u.height),h=d.getContext("2d");if(!h)throw new Error("Cannot get a canvas context");return t===It?(h.setTransform(0,-1,1,0,0,u.height),h.drawImage(e,0,0,u.height,u.width)):t===Bt?(h.setTransform(0,1,-1,0,u.width,0),h.drawImage(e,0,0,u.height,u.width)):t===Ct?(h.setTransform(-1,0,0,-1,u.width,u.height),h.drawImage(e,0,0,u.width,u.height)):(h.setTransform(1,0,0,1,0,0),h.drawImage(e,0,0,u.width,u.height)),d},Dt=function(e,t,n){return e.width>t&&e.height>n},Ft=function(e,t,n,i,o){return void 0===i&&(i=e.type),void 0===o&&(o=1),function(e){return Promise.all([Lt(e),Ot(e)]).then((function(e){var t=e[0],n=e[1];return Nt(t,n)}))}(e).then((function(e){return function(e,t,n){var i=e.width/e.height;if(n<t?n=Math.round(t/i):t=Math.round(n*i),!Dt(e,t,n))return Promise.resolve(e);var o=Math.ceil(Math.log(e.width/t)/Math.LN2),r=t*Math.pow(2,o-1),s=n*Math.pow(2,o-1);return new Promise((function i(a,c){var l=At(r,s),u=l.getContext("2d");return u?(u.drawImage(e,0,0,r,s),e.width=1,e.height=1,e=l,o-=1,r=Math.round(r/2),s=Math.round(s/2),o<=0||!Dt(e,t,n)?a(e):void requestAnimationFrame((function(){return i(a,c)}))):c(new Error("Cannot get a canvas context"))}))}(e,t,n)})).then((function(e){return function(e,t,n){return void 0===n&&(n=1),new Promise((function(i,o){try{e.toBlob((function(e){return e?i(e):o(new Error("Resulting Blob is empty"))}),t,n)}catch(r){o(r)}}))}(e,i,o)}))},jt=r(2574),Ut=window&&window.__assign||function(){return Ut=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ut.apply(this,arguments)},qt=function(e,t,n){return fetch(function(e,t){return void 0===e&&(e=window.location.origin),void 0===t&&(t={}),(0,jt.am)(e+"/images-apphost/image-download",Ut(Ut({},t),{images_avatars_size:"preview",images_avatars_namespace:"images-cbir"}))}(n,{cbird:t}),{method:"POST",body:e}).then((function(e){return function(e){if(e.status<200||e.status>=300)throw new Error("Image upload failed, status code "+e.status);return e.json()}(e)}))},Ht=function(e){var t=e.platform,n=e.origin,i=void 0===n?window.location.origin:n,o=e.page,r=e.originalImageUrl,s=e.cbirId,a=e.errorType,c={rpt:"imageview"};return o&&(c.cbir_page=o),r&&(c.url=r),s&&(c.cbir_id=s),a&&(c.cbir_error=a),(0,jt.am)(""+i+function(e){switch(e){case"touch-phone":return"/images/touch/search";case"touch-pad":return"/images/pad/search";case"desktop":return"/images/search"}}(t),c)},Yt=function(e,t){var n=t.errorType,i=t.withRedirect,o=void 0!==i&&i,r=t.platform,s=void 0===r?"desktop":r,a=t.origin,c=t.page,l={type:"error",errorType:n,originalError:e,redirectUrl:Ht({platform:s,origin:a,page:c,errorType:n})};return o&&window.location.assign(l.redirectUrl),l},Vt=window&&window.__assign||function(){return Vt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vt.apply(this,arguments)},zt=function(e,t){var n=t.cbird,i=t.downscaleWidth,o=t.downscaleHeight,r=t.downscaleQuality,s=void 0===r?1:r,a=t.withRedirect,c=t.platform,l=t.origin,u=t.page,d=function(e){return qt(e,n,l).then((function(t){var n=function(e,t){var n=t.withRedirect,i=void 0!==n&&n,o=t.platform,r=void 0===o?"desktop":o,s=t.origin,a=t.page;if(function(e){return"type"in e&&"captcha"===e.type}(e)){var c={type:"captcha",redirectUrl:e.captcha["captcha-page"]};return i&&window.location.assign(c.redirectUrl),c}var l=e.url.replace(/\/preview$/,"/orig"),u=function(e){return e.image_shard+"/"+e.image_id}(e),d={type:"success",cbirId:u,originalImageUrl:l,redirectUrl:Ht({originalImageUrl:l,cbirId:u,platform:r,origin:s,page:a})};return i&&window.location.assign(d.redirectUrl),d}(t,{withRedirect:a,platform:c,origin:l,page:u});return"success"===n.type?Vt(Vt({},n),{downscaledFile:e}):n})).catch((function(e){return Yt(e,{errorType:"request",withRedirect:a,platform:c,origin:l,page:u})}))};return Ft(e,i,o,"image/jpeg",s).then((function(e){return d(e)})).catch((function(e){return Yt(e,{errorType:"format",withRedirect:a,platform:c,origin:l,page:u})}))};MBEM.decl("image-search",{_doRedirect:function(e){window.location.href=e},_onClick:function(n){var i=this,o=n.target;null!=o&&o.files&&(this.setMod("progress",!0),zt(o.files[0],{cbird:this.params.cbird||117,downscaleWidth:1e3,downscaleHeight:1e3,downscaleQuality:.7,origin:this.params.origin,page:this.params.page}).then((function(n){if(i.delMod("progress"),"success"===(null==n?void 0:n.type))(0,t.DF)("tech","image-search.success"),i._doRedirect(n.redirectUrl);else{if("error"!==(null==n?void 0:n.type))throw new Error("incorrect response from lib");(0,e.H)({block:"image-search",message:"Image search - error fallback redirect"}),i._doRedirect(n.redirectUrl)}})).catch((function(t){i.delMod("progress"),(0,e.H)({block:"image-search",message:"Image search error"},t)})))}},{live:function(){return this.liveBindTo("picker","change",(function(e){this._onClick(e)})),!0}}),MBEM.decl("keyboard-loader",{__constructor:function(){var e=(this.domElem.className.match(/keyboard-loader_lang_(\w+)/)||["",""])[1],t=document.querySelector(this.INPUT_SELECTOR);t&&(gt({lang:e,for:t}),this.bindTo("click",(function(){_t()})))},INPUT_SELECTOR:".search2 .mini-suggest__input"}),function(){var e=MBEM.channel("i-scroll-event"),t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,n)}catch(nn){}var i=ce((function(){e.trigger("scroll",window.pageYOffset)}),100),o=!!t&&{passive:!0},r=document.querySelector(".body__wrapper");MBEM.cls.contains(document.documentElement,"document_touch_scroll_snap")&&function(e,t){try{if(window.CSS&&CSS.supports)return CSS.supports(e,t);if(window.supportsCSS)return window.supportsCSS(e,t)}catch(n){}}("scroll-snap-type","y mandatory")&&r&&r.addEventListener("scroll",i,o),window.addEventListener("scroll",i,o),window.addEventListener("resize",i,o),window.addEventListener("orientationchange",i,o),window.addEventListener("spas-unmount-main",(function(){window.removeEventListener("scroll",i,o),window.removeEventListener("resize",i,o),window.removeEventListener("orientationchange",i,o)}))}();var Wt=r(9511);function Kt(e,t,n){var i=e.text,o=e.url,r=e.id,s="survey_static.".concat(r);return"<div "+ie()({class:"survey__content",role:"complementary","aria-label":"Survey"})+">"+(ee().oneElem("<h1 class='a11y-hidden'>"+ee().oneElem("Survey")+"</h1>")+ee().oneElem("<p class='survey__text'>"+ee().oneElem(i)+"</p>")+ee().oneElem(n(Me,{mix:"survey__link",href:o,attrs:{target:"_blank"},stat:t.stat.getAttr("".concat(s,".link"),null,{logShow:!1}),content:ee().oneElem((0,Wt.k6)("Take survey"))}))+ee().oneElem("<button "+ie()({class:"survey__close-button",type:"button","aria-label":"Close",_temp:t.stat.getAttr("".concat(s,".close-button"),null,{logShow:!1})})+"><span class='survey__close-button-icon'></span></button>"))+"</div>"}MBEM.decl("survey",{__constructor:function(){var e,t;(this._statName="survey_static.".concat(this.params.id),this._wasShownKey="survey_static_shown",this._shownSurveys=JSON.parse(null!==(e=M(this._wasShownKey))&&void 0!==e?e:"[]"),-1!==this._shownSurveys.indexOf(this.params.id)||k)?null===(t=this.domElem.parentNode)||void 0===t||t.removeChild(this.domElem):this._acquireLock(this._show.bind(this))},_acquireLock:function(t){MBEM.blocks["i-mini-message-locker"].acquireLock("survey").then(t).catch((function(t){"i-mini-message-locker:low-priority"!==t.type&&(0,e.H)({block:"survey",message:t.message,level:"warn"})}))},_releaseLock:function(){MBEM.blocks["i-mini-message-locker"].releaseLock("survey")},_show:function(){var e=this;this.domElem.innerHTML=(0,F.M)(Kt,{text:this.params.text,url:this.params.url,id:this.params.id}),(0,t.Dn)(this.elem("link")),this.bindTo("link","click",(function(){return e._close(!0)})),this.bindTo("close-button","click",(function(){return e._close(!0)})),this.params.shouldCloseOnOutsideClick&&this.bindTo(document,"click",this._handleOutsideClick),MBEM.channel("page").on("interaction",(function(){return e._close()}),this)},_handleOutsideClick:function(e){e.target&&!MBEM.closest(e.target,"survey")&&this._close()},_close:function(){var e,n=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(this._shownSurveys.push(this.params.id),w(this._wasShownKey,JSON.stringify(this._shownSurveys))),null===(e=this.domElem.parentNode)||void 0===e||e.removeChild(this.domElem),this._releaseLock(),this.unbindFrom(document,"click",this._handleOutsideClick),MBEM.channel("page").un("interaction",(function(){return n._close()})),(0,t.DF)("click","".concat(this._statName,".close"))}}),MBEM.decl("trends",{__constructor:function(){this._removeExceedTrendLines(),this._throttledResizeTrends=ce(this._removeExceedTrendLines.bind(this),100),window.addEventListener("resize",this._throttledResizeTrends)},_removeExceedTrendLines:function(){var e=this.domElem.getBoundingClientRect(),n=this.elem("item");null==n||n.forEach((function(n){MBEM.cls.remove(n,"trends__item_hidden"),n.getBoundingClientRect().top>e.top+e.height?MBEM.cls.add(n,"trends__item_hidden"):(0,t.Dn)(n)}))},unmount:function(){window.removeEventListener("resize",this._throttledResizeTrends)}});var Gt=function(e){return"multifeed__feed-item-".concat(e)};function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Jt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}MBEM.decl("multifeed",{__constructor:function(){this.bindTo("tab","click",this._onTabClick),MBEM.channel("feeds").on("load",(function(e,t){var n=document.getElementById(Gt(t.id));n&&MBEM.cls.add(n,"multifeed__feed-item_loaded")})),this.elem("tab").forEach((function(e){e.removeAttribute("disabled")}))},_onTabClick:function(e){var n=this,i=e.target;if(i&&i instanceof HTMLElement){var o=i.getAttribute("data-feed-id"),r=i.getAttribute("data-feed-index");if(o){"true"!==i.ariaSelected&&window.scrollTo({top:window.scrollY+i.getBoundingClientRect().top-20,behavior:"smooth"});var s=document.getElementById(Gt(o));if((0,t.DF)("click","multifeed.tabs.".concat(r,".").concat(o)),s){this.elem("tab").forEach((function(e){e.setAttribute("aria-selected",e===i?"true":"false")})),this.elem("feed-item").forEach((function(e){e===s?n.setMod(s,"active",!0):n.delMod(e,"active")}));var a=s.querySelector(".multifeed__feed");a&&MBEM.initNode(a)}}}}}),MBEM.decl("yy-feed",{__constructor:function(){var n=this,i=this.params.fetcherUrl;if(i){var o=window.Ya&&Ya.Rum&&Ya.Rum.enabled;o&&Ya.Rum.time("feed_yy_loaded"),at(this.params.resources).catch((function(e){throw e.sourceType="network",e.url=e.request,e})).then((function(){if(window.YYFeed){var r=n.params,s=r.locale,a=r.promoHref,c=r.isLogged,l=r.loginHref,u=r.enableLikes,d=r.masonry,h=r.enableViewLogging,m=window.YYFeed.renderFeed({locale:s,platform:"desktop",invertFirstHeader:!0,promoHref:a,isLogged:c,loginHref:l,fetcherUrl:i,renderTo:n.domElem,enableLikes:u,enableViewLogging:h,promo:{subtitle:n.params.promoSubtitle},masonry:d,infoOnHover:d,logStat:function(e,n,i){(0,t.DF)(e,"yy_feed."+n,i)},logError:function(t,n){(0,e.H)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){Jt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({block:"yy-feed"},t),n)},onEmpty:function(){var t,i;(0,e.H)({block:"yy-feed",message:"Empty feed"}),m.destroy(),null===(t=n.domElem)||void 0===t||null===(i=t.parentNode)||void 0===i||i.removeChild(n.domElem)},overlayZIndex:1e3,theme:home.skinIsDark?"dark":"light"});document.addEventListener("skin-changed",(function(){m.setTheme(home.skinIsDark?"dark":"light")})),MBEM.channel("feeds").trigger("load",{id:"masterpiecer"}),o&&Ya.Rum.timeEnd("feed_yy_loaded")}else(0,e.H)({block:"yy-feed",message:"No YYFeed in window"})})).catch((function(t){(0,e.H)({block:"yy-feed"},t)}))}else(0,e.H)({block:"yy-feed",message:"No fetcherUrl",meta:{fetcherUrl:i}})}});r(8055);function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function $t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}MBEM.decl("content-feed",{__constructor:function(){var n=this,i=window.Ya&&Ya.Rum&&Ya.Rum.enabled;i&&Ya.Rum.time("feed_content_loaded");var o=this.params,r=o.title,s=o.fetcherUrl,a=o.showUrlTemplate,c=o.clickUrlTemplate,l=o.likeUrlTemplate,u=o.unlikeUrlTemplate,d=o.dislikeUrlTemplate,h=o.undislikeUrlTemplate,m=o.logStatLimit,p=o.showPostDate,f=function(){at(n.params.resources).then((function(){if(window.ContentFeed){var n=window.ContentFeed.renderFeed({title:r,renderTo:document.getElementById("content-feed"),fetcherUrl:s,urlTemplates:{showUrlTemplate:a,clickUrlTemplate:c,likeUrlTemplate:l,unlikeUrlTemplate:u,dislikeUrlTemplate:d,undislikeUrlTemplate:h},theme:home.skinIsDark?"dark":"light",showPostDate:p,logStatLimit:m,logStat:function(e,n,i){(0,t.DF)(e,"content_feed.".concat(n),i)},logError:function(t,n){(0,e.H)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){$t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({block:"content-feed"},t),n)}}),o=n.setTheme;document.addEventListener("skin-changed",(function(){o(home.skinIsDark?"dark":"light")})),MBEM.channel("feeds").trigger("load",{id:"content"}),i&&Ya.Rum.timeEnd("feed_content_loaded")}else(0,e.H)({block:"content-feed",message:"No ContentFeed in window"})})).catch((function(t){throw(0,e.H)({block:"content-feed",sourceType:"network",url:t.request},t),t}))};if("React"in window)f();else{var _,g=document.querySelector("script[data-id=react-with-dom]");if(!g)return(0,e.H)({block:"content-feed",message:"No React script"}),void(null===(_=this.domElem.parentElement)||void 0===_||_.removeChild(this.domElem));g.addEventListener("load",(function(){f()})),g.addEventListener("error",(function(){var t;(0,e.H)({block:"content-feed",sourceType:"network",message:"Error loading React script"}),null===(t=n.domElem.parentElement)||void 0===t||t.removeChild(n.domElem)}))}}});r(5524);function Zt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function en(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}MBEM.decl("new-year-promo",{__constructor:function(){this.__base.apply(this,arguments),this.params.overscrollEnabled&&(this._throttledOnWheel=ce(this._onWheel.bind(this),100),window.addEventListener("wheel",this._throttledOnWheel,{passive:!0}))},_onWheel:function(e){var t=document.documentElement.classList.contains("document_new-year-scroll_yes"),n=document.documentElement.classList.contains("document_new-year-feed_yes"),i=document.body.classList.contains("body_dialog_shown"),o=document.querySelector(".body__wrapper"),r=document.documentElement.classList.contains("document_disable-scroll_yes"),s=document.documentElement.classList.contains("document_market-viewer_open"),a=document.body.classList.contains("body_search_yes"),c=document.querySelector(".new-year-feed"),l=e.deltaY,u=e.deltaX,d=e.target;i||r||s||a||!c||!o||t||Math.abs(u)>.5*Math.abs(l)||e.ctrlKey||(l<0&&0===window.scrollY&&!n&&!this._checkParentOverflow(d)?this.__self.moveToFeed.bind(this.__self)():l>0&&l+document.documentElement.scrollTop+window.innerHeight>o.scrollHeight&&n&&this.__self.moveFromFeed.bind(this.__self)())},unmount:function(){window.removeEventListener("wheel",this._throttledOnWheel)}},{}),MBEM.decl("new-year-feed",{__constructor:function(){var n=this;this._contentLoaded={mainImg:!1,connectImg:!1,data:!1};var i=window.Ya&&Ya.Rum&&Ya.Rum.enabled;i&&Ya.Rum.time("new_year_feed_loaded");var o=new Image,r=new Image;o.onload=this._checkAndCallbackLoad.bind(this,"mainImg"),r.onload=this._checkAndCallbackLoad.bind(this,"connectImg"),o.src=this.params.imgMainUrl,r.src=this.params.imgConnectUrl,this._checkAndCallbackLoadData=function(){n._checkAndCallbackLoad("data"),window.removeEventListener("new-year-feed:dataLoaded",n._checkAndCallbackLoadData)},window.addEventListener("new-year-feed:dataLoaded",this._checkAndCallbackLoadData);var s=function(){n._getFeedBundle().then((function(){if(window.NewYearFeed){var o=n.params,r=o.fetcherUrl,s=o.totalToys,a=o.mainCard,c=o.locale,l=o.imgMainUrl,u=o.imgConnectUrl,d=o.shedevrumUrl,h=o.logStatLimit,m=o.disableStoreLinks,p=o.isLogged,f=o.unlikeTemplate,_=o.likeTemplate,g=o.loginUrl,v=o.enableLikes,b=o.promoUrl,y=o.promoCloseUrl,w=o.promoVideoSrc,M=o.promoPreview;window.NewYearFeed.renderFeed({locale:c,renderTo:document.getElementById("new-year-feed"),newYearFeedMix:"new-year-feed__feed",totalToys:s,mainCard:a,skeletonCount:8,logStatLimit:h,fetcherUrl:r,currentScrollTop:document.body.scrollTop,imgMainUrl:l,imgConnectUrl:u,shedevrumUrl:d,disableStoreLinks:m,logStat:function(e,n,i){(0,t.DF)(e,"new_year_feed.".concat(n),i)},logError:function(t,n){(0,e.H)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zt(Object(n),!0).forEach((function(t){en(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({block:"new-year-feed"},t),n)},onBackClick:function(){return MBEM.blocks["new-year-promo"].moveFromFeed()},onDataLoaded:function(){return n._checkAndCallbackLoadData()},isLogged:p,unlikeTemplate:f,likeTemplate:_,loginUrl:g,enableLikes:v,promoUrl:b,promoCloseUrl:y,promoVideoSrc:w,promoPreview:M}),i&&Ya.Rum.timeEnd("new_year_feed_loaded")}else(0,e.H)({block:"new-year-feed",message:"No NewYearFeed in window"})})).catch((function(t){throw(0,e.H)({block:"new-year-feed",sourceType:"network",url:t.request},t),t}))};if("React"in window)s();else{var a,c=document.querySelector("script[data-id=react-with-dom]");if(!c)return(0,e.H)({block:"new-year-feed",message:"No React script"}),void(null===(a=this.domElem.parentElement)||void 0===a||a.removeChild(this.domElem));c.addEventListener("load",(function(){s()})),c.addEventListener("error",(function(){var t;(0,e.H)({block:"new-year-feed",sourceType:"network",message:"Error loading React script"}),null===(t=n.domElem.parentElement)||void 0===t||t.removeChild(n.domElem)}))}},_checkAndCallbackLoad:function(e){this._contentLoaded[e]=!0;var t,n=this._contentLoaded,i=!0;for(t in n)n.hasOwnProperty(t)&&(i=i&&n[t]);i&&setTimeout(this._onLoaded.bind(this),500)},_onLoaded:function(){document.documentElement.classList.add("document_new-year-feed-base_loaded"),"string"==typeof this.params.needToFeed&&MBEM.blocks["new-year-promo"].moveToFeed()}});var tn;r(2778),r(9089);tn=function(){var e=(0,n.Yu)("delayed-reporter"),i=function(e){void 0!==e.timeout?setTimeout((function(){o(e)}),1e3*e.timeout):o(e)},o=function(e){e.url?(new Image).src=e.url:e.stat&&e.stat.type&&e.stat.name&&(0,t.DF)(e.stat.type,e.stat.name)},r=function(e){e&&(e="string"==typeof e?{url:e}:e,document.visibilityState&&"visible"!==document.visibilityState?document.addEventListener("visibilitychange",(function t(){"visible"===document.visibilityState&&(document.removeEventListener("visibilitychange",t),i(e))})):i(e))};if(e)for(var s in e)if(e.hasOwnProperty(s)){var a=e[s];Array.isArray(a)||(a=[a]),a.forEach(r)}},window.$?$(tn):"addEventListener"in document&&(document.addEventListener("DOMContentLoaded",tn,!1),window.addEventListener("spas-unmount-main",(function(){document.removeEventListener("DOMContentLoaded",tn,!1)}))),setTimeout((function(){"permissions"in navigator&&navigator.permissions.query({name:"geolocation"}).then((function(e){var n=e.state||e.status;(0,t.DF)("tech","tech.geo.".concat(n))}),(function(){(0,t.DF)("tech","tech.geo.error")}))}),2e3),MBEM.consoleError=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var o=n.map(String).join(", ");(0,e.H)({message:o,block:"i-mini-bem-log"})},(0,n.Yu)("init.asyncInitExp")||MBEM.ready((function(){var e=document.documentElement;e&&(MBEM.channel("i-mini-bem").trigger("start-init"),MBEM.initAll(e,"i-mini-bem"),MBEM.channel("i-mini-bem").trigger("init"))}))}()}(),window.Ya&&Ya.Rum&&Ya.Rum.timeEnd&&Ya.Rum.timeEnd("2095");