var App=App||{context:{},js:[],init:function(e){this.context=e,this.pageview=0;var t=new Date;window.addEventListener("load",(function(){var e=new Date-t;App.trackTiming(App.context.action||window.location.pathname,App.context.host,e)})),window.addEventListener("DOMContentLoaded",function(){this.executeAction()}.bind(this))},executeAction:function(){function e(){var e=App.getActionHandler(App.context.action);App.initApplication((function(){App.executeJS(e)}))}if(!Element.prototype.matches){var t=Element.prototype;t.matches||(t.matches=t.matchesSelector||function(e){var t=document.querySelectorAll(e),n=this;return Array.prototype.some.call(t,(function(e){return e===n}))})}require(["z","browser"],(function(t,n){n.IsIe()&&n.Version()<=11?require(["classlist","placeholders","dataset"],e):e()}))},getActionHandler:function(e){return e=e.replace(/_/g," "),e=e.replace(/^(.)|\s(.)/g,(function(e){return e.toUpperCase()}))+"Action",e.replace(/ /g,"")}};App.initApplication=function(e){require(["Dialog","globalEventsSystem","chatPoll","modal","cookie"],(function(t,n,o,i,a){o.start();var r=new URL(location.href).searchParams;if(null!==r.get("hash")){var c=JSON.stringify(Object.fromEntries(r));a.setCookie("modal-hash",c)}var p=a.getCookie("modal-hash");if(""!==p){var l=JSON.parse(p);i.load("mtdscollectemail",l)}Z.ajax.ajaxError=function(e,t,n,o,i){if(!(i.url.indexOf(App.context.chatUrl)>=0)){var a;if(i&&i.headers&&i.headers["async-page"])a=document.querySelector("#broken-ajax-notification"),a&&(a.style.display="block");else{if(a=document.querySelector("#ajax-error")){var r=document.body.className.indexOf("main-tile-expand")!==-1?90:45;a.style.top=r+"px",a.className+=" show"}var c=document.querySelector("#ajax-error .close-error");c&&(c.onclick=function(){a.style.top="-200px"})}App.track("Ajax","ajaxError",App.context.host,i.url)}},Z.queryString().introreg&&require(["introreg","css!introreg_css.css"]),"vk"===App.context.apiMode&&require(["vkExtend"],(function(e){e.init()})),e&&e(),App.executeJsCallback(App.context.jsCallback)})),top!==self&&App.isStandalone()&&location.href.indexOf("/sign")<0&&location.href.indexOf("/landing/blog")<0&&location.href.indexOf("fb.")<0&&location.href.indexOf("vk.")<0&&(top.location=location),-1!==window.location.search.indexOf("mm_force_login")?App.track("Login","Success","MM",1):-1!==window.location.search.indexOf("fb_force_login")?App.track("Login","Success","FB",1):-1!==window.location.search.indexOf("vk_force_login")&&App.track("Login","Success","VK",1)},App.afterSwitchLocation=function(){},App.beforeSwitchLocation=function(){App.currentAction&&Z.isFunction(App.currentAction.beforePageUnload)&&App.currentAction.beforePageUnload(),require(["globalEventsSystem"],(function(e){e.clearAllSubscriptions()}))},App.executeJS=function(e,t){var n=this,o=t||function(){};return e?e?(App.pageview++,App.context.actionName=e,void require([e],(function(e){if(!e)return setTimeout(n.afterSwitchLocation.bind(n),1),void o();App.currentAction=e,e.execute&&(e.resData=n.resData,e.execute(),setTimeout(n.afterSwitchLocation.bind(n),1)),require(["adFramesHandler"],(function(e){App.startLoadBanners&&App.track("Banners","Render",location.pathname,1),App.startLoadBanners=!0,e.load(App.context.adFrames),App.stickBanner(),App.startLoadBanners=!1})),require(["naClick"],(function(e){e.bindClickAll()}));var t=parseInt(App.context.userId%100/10,10);[].includes(t)?require(["naRefresh"],(function(e){e.reloadAll()})):App.pageview>1&&require(["naRefresh"],(function(e){e.reload(document.querySelector(".na_desktop_inter"))})),o()}))):(setTimeout(this.afterSwitchLocation.bind(this),1),void o()):o()},App.executeJsCallback=function(e){if(e){var t=[];e.split(";").forEach((function(e){if(e){t.push((function(){var t,n;if(t=e.indexOf("."),!(t<=0)){if(n=e.substring(0,t),"App"===n)return window.eval(e);if("Dialog"===n&&e.indexOf("/profile/invitemail")>=0)return App.invitEmail();var o=[n];e.indexOf("PremiumIndexAction")>=0&&o.push("PremiumIndexAction"),require(o,(function(t){window[n]=t,window.eval(e)}))}}));for(var n=0;n=t?(o.style.position="fixed",o.style.top="90px",o.style.left="auto"):(o.style.position="relative",o.style.top="0")}var t,n=document.querySelector(".nad2-slot-left"),o=document.querySelector(".nad2-slot-left > div");n&&o&&(t=n.getBoundingClientRect().top+window.scrollY-90,require(["globalEventsSystem"],(function(t){t.unsubscribe(e),t.subscribe("scroll",e),e()})))},App.insertPixel=function(){var e=document.createElement("iframe");e.src="/track",e.height="1",e.width="1",document.body.appendChild(e)},App.initSupportForm=function(){setTimeout((function(){Z("#feedback").css({right:"-280px"})}),5e3)},App.isStandalone=function(){return App.context.isStandalone},App.isFacebook=function(){return App.context.isFacebook},App.isFacebookApplication=function(){return App.context.isFacebookApplication},App.isForeignHost=function(){return App.context.isForeignHost},App.promotePremium=function(e){e||(e={}),document.location="/help/upgrade?b="+document.location.href+"&"+Z.param(e)},App.trackPageView=function(e){"function"==typeof ga?(ga("send","pageview","/"),ga("secondTracker.send","pageview","/")):("undefined"==typeof _gaq&&(window._gaq=[]),_gaq.push(["_trackPageview",e?e:document.location.toString()]))},App.track=function(e,t,n,o,i){if("undefined"!=typeof t&&(t=t.toString()),"undefined"!=typeof n&&(n=n.toString()),"function"==typeof ga){var a={hitType:"event",eventCategory:e,eventAction:t};n&&(a.eventLabel=n,a.eventValue=o),ga("send",a)}else{"undefined"==typeof _gaq&&(_gaq=[]);var a=["_trackEvent",e,t];n&&(a.push(n),a.push(o)),_gaq.push(a),"undefined"!=typeof i&&_gaq.push(i)}return!0},App.track_accumulative_rt=function(e,t){App.track_rt(e,t,{accumulative:1})},App.track_rt=function(e,t,n){t=t||1,n=n||{};var o=Z.extend({title:e,v:t},n);Z.get("/trackrt",o)}; //# sourceMappingURL=_app-380a191d84.min.js.map