var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
  let window = _____WB$wombat$assign$function_____("window");
  let self = _____WB$wombat$assign$function_____("self");
  let document = _____WB$wombat$assign$function_____("document");
  let location = _____WB$wombat$assign$function_____("location");
  //let top = _____WB$wombat$assign$function_____("top");
  let parent = _____WB$wombat$assign$function_____("parent");
  let frames = _____WB$wombat$assign$function_____("frames");
  let opener = _____WB$wombat$assign$function_____("opener");

(self.webpackChunkvk=self.webpackChunkvk||[]).push([[7320],{35818:function(e,t,n){"use strict";n.d(t,{onOpen:function(){return c},onClose:function(){return l}});var o=999999,r=0,i=0,a=null,s=null;function c(e){void 0===e&&(e="default"),a&&(clearTimeout(a),a=null),s&&(clearTimeout(s),s=null),r=0,0,0,i=0,window.addEventListener("scroll",u),setTimeout((function(){scrollTo(0,o)}),10),setTimeout((function(){scrollTo(0,o)}),100),setTimeout((function(){scrollTo(0,o)}),200),setTimeout((function(){scrollTo(0,o)}),300),setTimeout((function(){scrollTo(0,o)}),400),setTimeout((function(){scrollTo(0,o)}),500)}function l(){clearTimeout(a),clearTimeout(s),r=0,0,0,a=null,s=null,window.removeEventListener("scroll",u)}function u(){var e=pageYOffset;e!==r&&e!==o&&(r=e,i=Math.max(i,e),scrollTo(0,o)),clearTimeout(s),s=setTimeout((function(){s=null,window.removeEventListener("scroll",u),scrollTo(0,o),setTimeout((function(){return scrollTo(0,o)}),1e3)}),150)}},36768:function(e,t,n){"use strict";n.d(t,{onOpen:function(){return s},onClose:function(){return c}});var o=n(28708),r=null,i=0,a=0;function s(){if(r||(r={onceBlocked:!1}),r.onceBlocked&&(r.opened=!0),!r.onceBlocked&&!r.opened){r.onceBlocked=!0;var e=document.activeElement;return e.blur(),e.focus(),!1}return r.opened=!0,window.visualViewport&&(i=visualViewport.height,a=0,setTimeout(l),visualViewport.addEventListener("scroll",l),visualViewport.addEventListener("resize",l)),!0}function c(){return!(!r||r.onceBlocked&&!r.opened)&&(window.visualViewport&&(setTimeout(l),visualViewport.removeEventListener("scroll",l),visualViewport.removeEventListener("resize",l)),r=null,i=0,a=0,!0)}function l(){if(!(visualViewport.height>=i)){var e=i-visualViewport.height;a!==e&&(!o.isWKWebView&&e<o.IOS_NO_KEYBOARD_ALLOWED_OFFSET?scrollTo(0,0):scrollTo(0,e))}}},80492:function(e,t,n){"use strict";n.d(t,{onOpen:function(){return E},onClose:function(){return g}});var o,r,i,a,s,c,l,u,d,m=n(28708),f=0,_=0,v="",h=!1,p={},w=0;function E(e){if(v=e,h=!1,o=!1,i=0,a=0,c=0,l=0,p={},void 0,u="start",d=0,w=0,m.isIPhone)if("top"===v||"bottom"===v){O()<m.IPHONE_KEYBOARD_REJECT_OFFSET&&k(0);var t=document.body;s=t.offsetHeight,t.offsetWidth,window.addEventListener("scroll",T),"top"===v&&(0,m.isLandscapePhone)()||(b(),I())}else document.body.classList.add("ScrollViewsDisabled")}function g(){"top"===v||"bottom"===v?(r&&clearTimeout(r),window.removeEventListener("scroll",T)):document.body.classList.remove("ScrollViewsDisabled"),h=!1,v="",o=!1,s=0,0}function T(){if(b(),"top"!==v){if("bottom"===v){var e=pageYOffset,t=O();o&&(o=!1,e===c)||(m.isWKWebView?l<=5&&I():e>m.IPHONE_KEYBOARD_REJECT_OFFSET?e>t?(k(e),m.isWKWebView||I()):e<t?p[e]||e>y(t)?(p[e]=!0,I(s)):I():e!==y(t)&&I():t||(e<m.IOS_NO_KEYBOARD_ALLOWED_OFFSET?(i===e?a++:(i=e,a=1),a>=3&&(window.removeEventListener("scroll",T),k(i)),setTimeout((function(){I()}),300)):I()))}}else{if((0,m.isLandscapePhone)())return;if(m.isWKWebView)return void(0!==pageYOffset&&I(0));var n=innerHeight;if("start"===u&&(n<s?u="animate":I(1)),"animate"===u)if(d=s-n,w||(w=Math.max(1,Math.min(4,Math.floor(d/10)))),d<=0)u="stop";else{var r=m.isIPad?m.iosMajor<11?3:2:1;I(Math.min(d,w)*r)}"stop"===u&&I(1)}}function I(e){o=!0;var t,n=O();"bottom"===v?t=e||(!n||m.isWKWebView||m.isIPad?s:y(n)):"top"===v&&(t=isFinite(e)?e:1),l++,c=t,window.scrollTo(0,t)}function b(){r&&clearTimeout(r),h||(r=setTimeout((function(){h=!0,r=null,window.removeEventListener("scroll",T)}),500))}function y(e){return m.isIPad||m.isWKWebView||90===Math.abs(window.orientation)&&screen.width>=375||(m.isIPhoneX?e-=m.IPHONE_X_SAFARI_BOTTOM_BAR:e-=m.IPHONE_SAFARI_BOTTOM_BAR),e}function O(){return 90===Math.abs(window.orientation)?f:_}function k(e){90===Math.abs(window.orientation)?f=e:_=e}},56399:function(e,t,n){"use strict";n.d(t,{onOpen:function(){return h},onClose:function(){return p},onCloseCallback:function(){return w},offCloseCallback:function(){return E},onOpenCallback:function(){return g}});var o=n(35818),r=n(80492),i=n(36768),a=n(28708),s=!1,c=!1,l=!1,u=null,d=[],m=[],f=null,_=a.isScrollBasedViewport&&(a.isIPad||a.isWKWebView),v=a.isScrollBasedViewport&&a.iosMajor<=12;function h(e,t){void 0===e&&(e="default");var n=(void 0===t?{}:t).exitIfStarted,l=void 0!==n&&n;if(a.isIOS&&!(a.iosMajor<8)&&!(c&&l||s)){if(f=e,c=!0,u&&(clearTimeout(u),u=null),"bottom"===e){if(((0,a.isLandscapePhone)()||!_&&!v)&&!i.onOpen())return;!_&&v&&r.onOpen(e),_&&o.onOpen()}else!_&&v&&r.onOpen(e);m.length&&m.forEach((function(e){return e()})),s=!0,c=!1}}function p(e){var t=(void 0===e?{}:e).exitIfStarted,n=void 0!==t&&t;if(a.isIOS&&!(a.iosMajor<8)&&(!l||!n)){if(l=!0,"bottom"===f){if(((0,a.isLandscapePhone)()||!_&&!v)&&!i.onClose())return;if(!s)return;!_&&v&&r.onClose(),_&&o.onClose()}else!_&&v&&r.onClose();s=!1,l=!1,f=null,u&&clearTimeout(u),u=setTimeout((function(){scrollTo(0,0),d.length&&d.forEach((function(e){return e()}))}),10)}}function w(e){-1===d.indexOf(e)&&d.push(e)}function E(e){var t=d.indexOf(e);-1!==t&&d.splice(t,1)}function g(e){-1===m.indexOf(e)&&m.push(e)}},42516:function(e,t,n){"use strict";n.d(t,{init:function(){return w},preventDocumentScroll:function(){return E},restoreDocumentScroll:function(){return g},setScrollView:function(){return O},cleanScrollView:function(){return k},hideTopBanner:function(){return U}});var o,r,i,a,s,c,l,u=n(1730),d=n(56399),m=n(28708),f=!0,_=!1,v="closed",h=!1,p=[];function w(e){h&&T(),E(e)}function E(e){void 0===e&&(e={}),m.isIOS&&(!0!==e.stack&&h||(l={initialized:!1,scrollViews:[]},p.push(l),e.layoutElement&&e.layoutElement.nodeType?l.layoutElement=e.layoutElement:l.layoutElement=(0,u.$)(e.layoutElement||".layout")),!1===e.topBanner?l.topBanner=!1:l.topBanner=!0,h||(h=!0,addEvent(window,"focusin",P),addEvent(window,"focusout",V),addEvent(document,"touchmove",N,{capture:!0}),addEvent(document,"touchmove",L,{capture:!1}),addEvent(window,"resize",M),d.onCloseCallback(B),m.isWKWebView||(addEvent(window,"orientationchange",A),requestAnimationFrame((function(){(0,m.isLandscapePhone)()?A(null,!0):(M(),l&&!l.topBanner?requestAnimationFrame(U):i||requestAnimationFrame(H))})))))}function g(){h&&(h=!1,T(),1===p.length&&(l.layoutOffset=null,G(),document.body.style.height=""),l.layoutElement=null,p.pop(),(l=p.length?p[p.length-1]:null)&&G(),removeEvent(window,"focusin",P),removeEvent(window,"focusout",V),removeEvent(document,"touchmove",N,{capture:!0}),removeEvent(document,"touchmove",L,{capture:!1}),removeEvent(window,"resize",M),removeEvent(window,"orientationchange",A),removeEvent(window,"resize",R),removeEvent(window,"scroll",C),d.offCloseCallback(B))}function T(){l.scrollViews.forEach((function(e){return k(e)})),l.scrollViews=[]}function I(e){var t=e.currentTarget.__ScrollView;if("prevented"!==t.state){if(!("start"!==t.state||t.allowX&&t.allowY)){var n=Math.abs(t.startX-e.changedTouches[0].clientX),o=Math.abs(t.startY-e.changedTouches[0].clientY);if(!t.allowX&&n>o)return void(t.state="prevented");if(!t.allowY&&o>n)return void(t.state="prevented")}if("allowed"!==t.state&&(t.state="allowed"),f=!1,!t.overscrollX){var r=e.currentTarget.scrollLeft,i=t.startX-e.changedTouches[0].clientX;(r<=0&&i<=0||r>=t.maxX&&i>=0)&&(f=!0,t.standalone&&e.preventDefault())}if(!t.overscrollY){var a=e.currentTarget.scrollTop,s=t.startY-e.changedTouches[0].clientY;(a<=0&&s<=0||a>=t.maxY&&s>=0)&&(f=!0,t.standalone&&e.preventDefault())}}}function b(e){var t=e.currentTarget,n=t.__ScrollView;n.state="start",n.startX=e.changedTouches[0].clientX,n.startY=e.changedTouches[0].clientY,n.maxX=n.overscrollX?null:t.scrollWidth-t.clientWidth,n.maxY=n.overscrollY?null:t.scrollHeight-t.clientHeight}function y(e){e.currentTarget.__ScrollView.state=""}function O(e,t){if(void 0===t&&(t={}),m.isIOS&&(!1!==t.override||!e.__ScrollView)){if(!0!==t.standalone){if(!h)return;e.__ScrollView||l.scrollViews.push(e)}e.__ScrollView={allowX:!1!==t.allowX,allowY:!1!==t.allowY,overscrollX:!1!==t.overscrollX,overscrollY:!1!==t.overscrollY,standalone:!0===t.standalone},l&&(m.isWKWebView||(!1!==t.topBanner&&(e.__ScrollView.topBanner=t.topBanner||{hide:30,show:60}),addEvent(e,"scroll",S))),addEvent(e,"touchstart",b),addEvent(e,"touchmove",I),addEvent(e,"touchend",y)}}function k(e){e.__ScrollView=null,removeEvent(e,"touchstart",b),removeEvent(e,"touchmove",I),removeEvent(e,"touchend",y),removeEvent(e,"scroll",S)}function S(e){if("closed"!==v||(0,m.isLandscapePhone)())return _=!1,void(a&&clearTimeout(a));_=!0;var t=e.target.__ScrollView.topBanner;l&&l.topBanner&&t?W(e.target,t.show,t.hide):W(e.target,1/0,0),a&&clearTimeout(a),a=setTimeout((function(){_=!1,M()}),100)}function M(){if(!_)if(c)c=!1;else if(!(0,m.isLandscapePhone)()){window.pageYOffset;"closed"===v&&(m.isWKWebView||(o=document.documentElement.offsetHeight,r=innerHeight,i=o===r,"show"===s?(s=null,requestAnimationFrame(H)):"hide"===s&&(s=null,requestAnimationFrame(U))))}}function A(e,t){m.isIPad?l.topBanner||setTimeout((function(){U()}),400):90===Math.abs(window.orientation)?(addEvent(window,"resize",R),document.body.style.height="",l.layoutHeight=null,t?setTimeout((function(){window.scrollTo(0,-300),R()})):setTimeout((function(){window.scrollTo(0,-300)}),400)):(removeEvent(window,"resize",R),l.layoutOffset=null,G(),l.topBanner||setTimeout((function(){U()}),400))}function R(){if("closed"===v){var e=document.body.offsetHeight,t=e-innerHeight;l.layoutOffset=t,G(),window.scrollTo(0,e)}}function C(){pageYOffset&&(v="opened",removeEvent(window,"scroll",C))}function N(e){f=!0}function L(e){f&&e.preventDefault()}function D(e){var t=e&&e.target,n=0===e.eventPhase&&t.getAttribute("autofocus"),o=!1;return"textarea"!==t.tagName.toLowerCase()||n||(o=!0),"input"!==t.tagName.toLowerCase()||["checkbox","radio","image","submit"].includes(t.type)||n||(o=!0),"select"===t.tagName.toLowerCase()&&(o=!0),o}function P(e){if(D(e)){e&&e.target;v="opening",addEvent(window,"scroll",C),d.onOpen(undefined,{exitIfStarted:!0})}}function V(e){D(e)&&d.onClose({exitIfStarted:!0})}function B(){removeEvent(window,"scroll",C),v="closed",setTimeout((function(){(0,m.isLandscapePhone)()?R():M()}),100)}function W(e,t,n){var o=e.scrollTop;o<=-t&&(i||s)?(s="show",window.scrollTo(0,-10)):o>=n&&(!i||s)&&(s="hide",window.scrollTo(0,10))}function U(){window.scrollTo(0,300)}function H(){window.setImmediate?setImmediate((function(){window.scrollTo(0,-300)})):window.scrollTo(0,-300)}function G(){var e=l.layoutOffset;l.layoutElement.style.top=e?e+"px":""}},6103:function(e,t,n){"use strict";n.d(t,{resizePosters:function(){return o}});function o(e,t,n){var o=ge(t)||document,r="poster-resized",i="[data-poster-resized='false']";(e||n)&&(i="");var a=domQuery(".poster__text"+i,o),s=[],c=cur.posterConfig&&cur.posterConfig.constants;if(!c){if(!a.length)return;c=JSON.parse(domData(a[0].parentElement,"poster-constants"))}for(var l=0;l<a.length;l++){var u=a[l],d=domPN(u);s.push(domPN(d).clientWidth)}for(var m=0;m<a.length;m++){var f=a[m],_=domPN(f),v=s[m],h=c.font_size_ratio_range_1*v+"px",p=Math.round(c.line_height_ratio_range_1*v)+"px",w="0 "+Math.round(.05555555555555555*v)+"px";f.textContent.length>c.range_threshold&&(h=Math.round(c.font_size_ratio_range_2*v)+"px",p=Math.round(c.line_height_ratio_range_2*v)+"px"),setStyle(_,{height:.75*v+"px",width:v}),setStyle(f,{fontSize:h,lineHeight:p,padding:w}),domData(f,r,!0)}}},67078:function(e,t,n){"use strict";var o=n(6103),r=n(1358),i=n(86205),a=n(24945),s=n(9046),c=n(1374),l={onChange:se(),onChanged:se(),onReadyOrChanged:se(),onRestore:se(),fast_load:!1,need_hard_go:!1,getHash:function(e){if("#player"===e.hash)return e.path+e.hash;var t=qs2obj(e.params);return delete t.z,e.path+obj2qs(t)},getAlias:function(e){if(!e)return!1;var t=(e||"").split("?"),n=t[0],o=qs2obj(t[1]);return o.from&&delete o.offset,delete o.from,delete o.z,delete o.ref,Object.keys(o).forEach((function(e){0===e.indexOf("_")&&delete o[e]})),n+obj2qs(o)},set:function(e,t,n,i){void 0===n&&(n={});var c=window,u=c.zlayer,d=c.cur,m=c.nav,f=c.menu,_=c.audioplayer,v=$("body.fixed"),h=v?Math.abs(parseInt(getStyle(v,"top"),10)):scrollTop(),p=null;if(window.isNewMail){var w=e.split("?");toggleClass("vk__page_mail",window.bodyNode,(0,a.isNewMailPage)(w[0],w[1]))}u.opened()&&(h=u._st);var E=n.forceUpdate&&t.newHTML,g=!E&&m.hasUpdate(i,e,t),T=!!g||m.needUpdate(i,e,t),I=0;if(!n.force&&!g&&T||E?(I=scrollTop(),p=remove("m"),each(geByClass("_cntr",p),(function(){remove(this)})),each(geByClass("ScrollView",p),(function(){(0,r.unhealScroll)(this)})),remove(geByClass1("_cntrs",p))):each(geByClass("ScrollView",geByClass1("m")),(function(){(0,r.unhealScroll)(this)})),!n.after&&!l.fast_load){var b=l.getHash(m),y=i||t.options||{};i&&i.is_native_back&&(y.prev_tab=y.native_prev),l.save(b,{html:null,st:h,page:p,state:l.stash(),cur:window.cur,options:y},!0)}if(n.before||l.clear(),(n.before||!n.before&&!n.after)&&(window.lm_qsearch_counter?window.lm_qsearch_counter++:window.lm_qsearch_counter=1),n.before){var O=i&&i.target;l.fast_load=!0,O&&addClass("__al_target",O);var k=p.cloneNode(!0);O&&removeClass("__al_target",O);var S=geByClass1("__al_target",k);removeClass("__al_target",S),n.beforeAppend&&n.beforeAppend(k,S),after(k,"l"),scrollTop(I),d.toggleHeaderSearch&&d.toggleHeaderSearch(!1),n.afterAppend&&n.afterAppend(k),f&&f.clear_hover(),f&&f.closeSearch(),f&&f.enabled(!0)}else{i&&i.zProcess&&i.zProcess(0,!0)&&delete i.zProcess;var M=!1;if(i&&m.set(i),l.need_hard_go)return m.hard_go(m.cur,null,{replace:!0});if(!n.force&&!g&&T||E){var A;if(t.title&&(document.title=(0,s.winToUtf)(t.title)),E?((A=ce("div",{className:"layout__basis",id:"m"})).setAttribute("role","main"),val(A,t.newHTML)):(A=t.page)?M=!0:((A=ce("div",{className:"layout__basis",id:"m"})).setAttribute("role","main"),val(A,t.html)),f.opened()){var R=ce("div",{id:"m_helper",onclick:f.close});append(R,A)}after(A,"l")}l.fast_load=!1,thover.clear(),!g&&T&&(t.lm&&f.refresh(t.lm),t.bc&&window.bodyNode&&(window.bodyNode.className=t.bc),u.opened(),i&&i.zProcess?i.zProcess(0,!1)&&delete i.zProcess:u.close()),n.force||(M&&(window.qsearch.isCachedPage=!0),t.js&&evalJs(t.js),M&&(window.qsearch.isCachedPage=!1),t.state&&l.stash(t.state),t.cur&&extend(window.cur,t.cur),i&&(t.options=i),post.wallActionsHide(),l.save(e,t));var C=i?i.nav&&i.nav.hash:m.hash;(g||T)&&(g?Tabbar.showUpdateButton(g.currentCache.d.page):t.st||!C?(scrollTop(t.st),scrollTop(t.st,10)):C?scrollToHash(C):n.no_scroll&&!n.force?(scrollTop(h),scrollTop(h,10)):scrollToHash()),_&&_.initAudio(),AudioMessagePlayer&&AudioMessagePlayer.redrawWaves()}var N=window.Tabs;onBodyResize(N.actualizeShowMoreVisibility),N.actualizeShowMoreVisibility(),(0,o.resizePosters)(),l.onChange(!0,i&&i.nav&&i.nav.push),(n.al_transition||n.restored)&&l.onChanged(!0)},save:function(e,t,n){if(e){var o=window.nav,r=n?o.page_get(e,t.options.prev_tab):{};r&&o.page_set(e,extend(r,t),l.getAlias(e))}},restore:function(e){var t=window.nav,n=t.page_get(e);return n||(n=t.page_get(l.getAlias(e))),!!n&&(l.onRestore(!0),n)},stash:function(e){var t=window.cur;return window.cur&&t.stash&&t.stash(e)||!1},clear:function(){var e=window.cur,t=window.zlayer,n=window.menu,o=window.tooltip;onBodyScroll("__clear"),onBodyResize("__clear"),n&&n.initEvents(),t.isReady&&t.initEvents(),o&&o.clear(),window.cur&&e.destroy&&each(e.destroy,(function(){this()})),window.cur={destroy:[]}},hideHeader:function(e){var t=geByClass1("mhead",e);hide(t)},setMhead:function(e,t,n,o,r){void 0===r&&(r={});var a=geByClass1("mhead",e),s=geByClass1("mhb_logo",a),l=geByClass1("mh_header",e),u=!1,d=window.nav,m=document.body,f=geByClass1("SliderTabs",a),_=geByClass1("header__right",a),v=geByClass1("header__gear",a);f&&remove(f),_&&remove(_),v&&remove(v),removeClass("vk_header_tabs",m);var h="header__title hb_btn mh_header mhi_back";if(r.movable&&(h+=" header__title--movable header__title--initial-position"),n){!0===n?u=d.path+(d.params?"?"+d.params:""):n&&(u=n),t||(t=val(l)||"&nbsp;");var p=geByClass1("mhb_back",e),w="",E=hasClass("mh_nobr",p)?" mh_nobr":"",g=o?' onclick="'+o+'"':"";if("/"==u)w='<div class="hb_wrap mhb_back'+E+'"'+g+'><h1 class="hb_btn mh_header">'+t+"</h1></div>";else{var T=Wd.html((0,i.default)((0,c.getBackOutline28Icon)()));w='\n        <div class="header__center hb_wrap mhb_back '+E+'">\n          <a class="header__back al_back" href="'+escapeAttr(u)+'" accesskey="0" '+g+">"+T+'</a>\n          <h1 class="'+h+'">\n            <div class="header__text">\n                '+t+"\n            </div>\n          </h1>\n        </div>\n      "}if(a&&s){var I=geByClass1("mhb_notify",e);val(a,(window.al&&window.al.menu?'<a href="/" class="hb_wrap mhb_home" accesskey="*" onclick="return menu.toggle(event);"><div class="hb_btn mhi_home">&nbsp;</div></a>':'<a href="/" class="hb_wrap mhb_home mhb_vkhome" accesskey="*"><div class="hb_btn mhi_home mhi_vkhome">&nbsp;</div></a>')+'<div id="header_msgs" class="hb_wrap mhb_notify'+(!I||hasClass("mhb_no_notify",I)?" mhb_no_notify":"")+'">'+val(I)+"</div>"+w)}else p&&(p.outerHTML=w);var b=$(".header__center");b&&b.classList.toggle("is_unfold",$(".Unfold",b))}else t&&val(l,t)}};window.page=l,onDOMReady((function(){l.onReadyOrChanged(!0),l.onChanged((function(){l.onReadyOrChanged(!0)}))})),t.default=l},86205:function(e,t,n){"use strict";n.d(t,{SVGIcon:function(){return o.SVGIcon}});var o=n(58457);t.default=o.SVGIcon,window.SVGIcon=o.SVGIcon},1358:function(e,t,n){"use strict";n.d(t,{unhealScroll:function(){return d}});var o=n(9046),r=n(1730),i=n(42516);n(28708).isIOS&&window.MutationObserver&&document.addEventListener("DOMContentLoaded",c);var a=".ScrollView",s="_scrollViewHealed";function c(){(l(),document.body)&&new MutationObserver(l).observe(document.body,{childList:!0,subtree:!0})}function l(){var e,t;(null==(e=window.Speech)||null==(t=e.recorder)?void 0:t.isRecording)||(0,r.$$)(a).forEach(u)}function u(e){if(!e[s]){e[s]={};var t=getComputedStyle(e),n=parseInt(t.paddingTop,10),r=parseInt(t.paddingBottom,10);e.style.paddingTop=n+1+"px",e.style.paddingBottom=r+1+"px",m(e),(0,i.setScrollView)(e,{override:!1}),(0,o.hasClass)("messenger__body",e)||(0,o.addEvent)(e,"scroll",_),(0,o.addEvent)(e,"scroll",f)}}function d(e){e[s]&&(e[s]=null,e.style.paddingTop="",e.style.paddingBottom="",(0,i.cleanScrollView)(e),(0,o.removeEvent)(e,"scroll",_),(0,o.removeEvent)(e,"scroll",f))}function m(e){var t=e.scrollTop;t<0||(0===t?e.scrollTop+=1:t+e.offsetHeight===e.scrollHeight&&(e.scrollTop-=1))}function f(e){var t=e.target,n=t[s];n&&(n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){t[s]&&m(t)}),50))}function _(){onBodyScroll(!0)}},3369:function(e,t,n){"use strict";function o(e,t,n){var o;return function(){var r=this,i=arguments,a=function(){o=null,n||e.apply(r,i)},s=n&&!o;clearTimeout(o),o=setTimeout(a,t),s&&e.apply(this,i)}}n.d(t,{debounce:function(){return o}})},69747:function(e,t,n){"use strict";n.d(t,{MarketAnalytics:function(){return l}});var o=n(90968),r=n(39931),i=n(35645),a=n(67078),s=n(65207);function c(e,t,n){void 0===n&&(n=0),(0,o.trackMarketEvent)({event:e,ownerId:t.ownerId,itemId:t.itemId,albumId:n,instant:!0,platform:i.PLATFORM_MVK})}var l={trackArea:function(e){(0,o.trackMarketArea)(e,i.PLATFORM_MVK)},listenToMarketItemEvents:function(e,t){var n=(0,r.marketItemIdToObject)(t,"");if(n){var o=e.querySelector("#nc_form form");if(o){var i=o.querySelector("#nc_submit");null==i||i.addEventListener("click",(function(){var e=new FormData(o);String(e.get("message")).length&&c(s.ECommGoodsEvent.COMMENT,n)}))}var a=e.querySelector("a.pi_text_more");a&&a.addEventListener("click",(function(){c(s.ECommGoodsEvent.EXPAND_ITEM_DESCRIPTION,n)}));var l=e.querySelector("a.MarketItem__wiki");if(l){l.addEventListener("click",(function(){c(s.ECommGoodsEvent.OPEN_WIKI,n)}));var u=e.querySelector(".open_chat_with_owner");u&&u.addEventListener("click",(function(){c(s.ECommGoodsEvent.OPEN_CHAT_WITH_OWNER,n)}))}}},onMarketItemPhotoFullscreen:function(e){var t=(0,r.marketItemIdToObject)(e,"product");t&&c(s.ECommGoodsEvent.VIEW_ITEM_MEDIA,t)},onMarketItemClick:function(e){if(e instanceof HTMLAnchorElement){var t=e.getAttribute("href");if(t){var n=(0,r.marketItemIdToObject)(t,"product");n&&c(s.ECommGoodsEvent.TRANSITION_TO_ITEM,n,window.cur.aid?window.cur.aid:0)}}},onMarketAlbumClick:function(e){if(e instanceof HTMLAnchorElement){var t=e.getAttribute("href");if(t){var n=(0,r.albumLinkToObject)(t);n&&(0,o.trackMarketEvent)({event:s.ECommGoodsEvent.TRANSITION_TO_ALBUM,ownerId:n.ownerId,itemId:0,albumId:n.itemId,instant:!0,platform:i.PLATFORM_MVK})}}}},u=function(){switch(window.cur.module){case"market":l.trackArea(s.AnalyticsArea.MARKET);break;case"group":l.trackArea(s.AnalyticsArea.GROUP)}};window.onDOMReady((function(){u(),a.default.onChange(u)}))},35645:function(e,t,n){"use strict";n.d(t,{PLATFORM_MVK:function(){return o}});var o="mvk"},12459:function(e,t,n){"use strict";function o(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function r(){var e=document.documentElement;return{width:e.clientWidth,height:e.clientHeight}}function i(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return n&&o?{width:n,height:o}:{width:e.offsetWidth,height:e.offsetHeight}}n.d(t,{getElementOffset:function(){return o},getViewportSize:function(){return r},getElementSize:function(){return i}})},90968:function(e,t,n){"use strict";n.d(t,{trackMarketEvent:function(){return _},trackMarketArea:function(){return v}});var o=n(21795),r=n(30790),i=n(59326),a=n(35645),s=n(39931),c=n(65207),l=[],u=!1;function d(e,t){void 0===t&&(t=0);var n=m(t);return!!n&&e.includes(n.event)}function m(e){return void 0===e&&(e=0),l.length>e?l[l.length-(1+e)]:null}function f(e){u||(window.addEventListener("beforeunload",(function(){(0,i.observersStop)(),(0,o.flushMarketEvents)(e)})),u=!0)}function _(e){if(function(e){var t=m();if(t){if(e===c.ECommGoodsEvent.CLOSE_ITEM&&t.event===c.ECommGoodsEvent.CLOSE_ITEM)return!1;if(e===c.ECommGoodsEvent.TRANSITION_TO_ITEM){if(d([c.ECommGoodsEvent.TRANSITION_TO_ITEM_LEFT,c.ECommGoodsEvent.TRANSITION_TO_ITEM_RIGHT]))return!1;if(d([c.ECommGoodsEvent.SWITCH_ITEM_VARIANT_1,c.ECommGoodsEvent.SWITCH_ITEM_VARIANT_2]))return!1}}return!0}(e.event))if(e.event||e.table){e.table||(Object.values(c.ECommGoodsEvent).includes(e.event)?e.table=c.AnalyticsEventTable.GOODS:Object.values(c.ECommOrdersEvent).includes(e.event)?e.table=c.AnalyticsEventTable.ORDERS:(0,s.marketDebug)("error","table not specified")),e.screen=e.screen?e.screen:window.MarketAnalyticsManager&&window.MarketAnalyticsManager.getScreen(),e.platform=e.platform?e.platform:"web",e.itemType=e.itemType?e.itemType:"",f(e.platform);var t=String(e.event),n=e.table+":"+t;e.instant?(0,o.logMarketEventNow)(e.platform,n,e.ownerId,e.itemId,e.screen,e.albumId,e.time,e.duration,e.itemType):(0,o.logMarketEvent)(e.platform,n,e.ownerId,e.itemId,e.screen,e.albumId,e.time,e.duration,e.itemType),l.push(e),l.length>3&&l.shift()}else(0,s.marketDebug)("error","event and table not specified",e)}function v(e,t){var n;switch(void 0===t&&(t=""),f(t),(0,o.flushMarketEvents)(t),(0,i.observersStop)(),(0,s.marketDebug)("warn","analytics: start tracking area",e),e){case c.AnalyticsArea.MARKET:n=function(e){var t=0;void 0!==window.cur.aid&&(t=window.cur.aid),_({event:"market_item"===e.type?c.ECommGoodsEvent.VIEW_ITEM:c.ECommGoodsEvent.VIEW_ALBUM,ownerId:e.ownerId,itemId:"market_item"===e.type?e.itemId:0,albumId:"market_item"===e.type?t:e.itemId,duration:e.duration,time:e.viewStart,platform:e.platform})};var l=r.MarketAnalyticsObserver.create({observerId:"market_products",itemSelector:{types:"market_item"},isUnifyNodes:!0,isDynamicContent:!0,platform:t});l.itemReachedCallback=n;var u=r.MarketAnalyticsObserver.create({observerId:"market_albums",itemSelector:{types:"market_album"},isUnifyNodes:!0,isDynamicContent:!1,platform:t});u.itemReachedCallback=n,t!==a.PLATFORM_MVK&&(u.preCheckReachedCallback=function(e){var t,n=e.offsetTop,o=null===(t=e.parentNode)||void 0===t?void 0:t.parentNode;return o&&n<o.offsetHeight}),l.watch(),u.watch();break;case c.AnalyticsArea.GROUP:n=function(e){_({event:"market_item"===e.type?c.ECommGoodsEvent.VIEW_ITEM:c.ECommGoodsEvent.VIEW_ALBUM,ownerId:e.ownerId,itemId:"market_item"===e.type?e.itemId:0,albumId:"market_item"===e.type?0:e.itemId,duration:e.duration,time:e.viewStart,platform:e.platform})};var d=r.MarketAnalyticsObserver.create({observerId:"market_module",itemSelector:{types:"market_item"},isUnifyNodes:!0,platform:t});d.itemReachedCallback=n;var m=r.MarketAnalyticsObserver.create({observerId:"group_wall",itemSelector:{types:"market_item,market_album"},isUnifyNodes:!0,isDynamicContent:!0,platform:t});m.itemReachedCallback=n,d.watch(),m.watch();break;case c.AnalyticsArea.USER_PROFILE:var v=r.MarketAnalyticsObserver.create({observerId:"user_wall",itemSelector:{types:"market_item,market_album"},isUnifyNodes:!0,isDynamicContent:!0,platform:t});v.itemReachedCallback=function(e){_({event:"market_item"===e.type?c.ECommGoodsEvent.VIEW_ITEM:c.ECommGoodsEvent.VIEW_ALBUM,ownerId:e.ownerId,itemId:"market_item"===e.type?e.itemId:0,duration:e.duration,time:e.viewStart,albumId:"market_item"===e.type?0:e.itemId,platform:e.platform})},v.watch();break;case c.AnalyticsArea.BOOKMARKS:var h=r.MarketAnalyticsObserver.create({observerId:"bookmarks",itemSelector:{types:"market_item"},isUnifyNodes:!0,isDynamicContent:!0,platform:t});h.itemReachedCallback=function(e){_({table:c.AnalyticsEventTable.GOODS,event:c.ECommGoodsEvent.VIEW_ITEM,ownerId:e.ownerId,itemId:e.itemId,duration:e.duration,time:e.viewStart,albumId:0,platform:e.platform})},h.watch();break;case c.AnalyticsArea.FEED:var p=r.MarketAnalyticsObserver.create({observerId:"feed",itemSelector:{types:"market_item"},isUnifyNodes:!0,isDynamicContent:!0,container:".feed_wrap",platform:t});p.itemReachedCallback=function(e){_({event:"market_item"===e.type?c.ECommGoodsEvent.VIEW_ITEM:c.ECommGoodsEvent.VIEW_ALBUM,ownerId:e.ownerId,itemId:"market_item"===e.type?e.itemId:0,duration:e.duration,time:e.viewStart,albumId:"market_item"===e.type?0:e.itemId,platform:e.platform})},p.watch()}}},30790:function(e,t,n){"use strict";n.d(t,{MarketAnalyticsObserver:function(){return l}});var o=n(97316),r=n(39931),i=n(33614),a=n(51583),s=n(12459),c=n(35645),l=function(e){function t(n,o,r,a,s,c,l){void 0===r&&(r=""),void 0===a&&(a=!1),void 0===s&&(s=!1),void 0===c&&(c="");var u=e.call(this,n,o,r,a,c,l)||this;return u.observerId=n,u.itemSelector=o,u.container=r,u.isUnifyNodes=a,u.isDynamicNodes=s,u.gap=null,s&&u.addMutators([new i.NodeMutationObserver]),u.gap=t.getViewportGap(u.getPlatform()),u}return(0,o.__extends)(t,e),t.prototype.isReached=function(e){if(!(0,r.isElementVisible)(e))return!1;var t,n=this.gap,o=e.closest("[data-stat-viewport]");if(o){var i=o.getBoundingClientRect();n={top:i.top,left:i.left},t={width:i.left+i.width,height:i.top+i.height}}return(0,r.isElementInViewport)(e,45,n,t)},t.create=function(e){return new t(e.observerId,e.itemSelector,null==e?void 0:e.container,null==e?void 0:e.isUnifyNodes,null==e?void 0:e.isDynamicContent,null==e?void 0:e.platform,null==e?void 0:e.getExtraItemParams)},t.getViewportGap=function(e){void 0===e&&(e="");var t={left:0,top:0},n="";return n=e===c.PLATFORM_MVK?"#vk_head":"#page_header_wrap,#market_search_input",document.querySelectorAll(n).forEach((function(e){var n=(0,s.getElementSize)(e);t.top=t.top+n.height})),t},t}(a.NodeViewObserver)},65207:function(e,t,n){"use strict";var o,r,i,a;n.d(t,{AnalyticsArea:function(){return o},AnalyticsEventTable:function(){return r},ECommGoodsEvent:function(){return i},ECommOrdersEvent:function(){return a}}),function(e){e.MARKET="market",e.GROUP="group",e.USER_PROFILE="user_profile",e.BOOKMARKS="bookmarks",e.FEED="feed"}(o||(o={})),function(e){e.GOODS="ecomm_goods",e.ORDERS="ecomm_orders"}(r||(r={})),function(e){e.TRANSITION_TO_ITEM="transition_to_item",e.TRANSITION_TO_ALBUM="transition_to_album",e.SWITCH_ITEM_VARIANT_1="switch_item_variant_1",e.SWITCH_ITEM_VARIANT_2="switch_item_variant_2",e.TRANSITION_TO_ITEM_LEFT="transition_to_item_left",e.TRANSITION_TO_ITEM_RIGHT="transition_to_item_right",e.VIEW_ITEM="view_item",e.VIEW_ALBUM="view_album",e.CLOSE_ITEM="close_item",e.TRANSITION_TO_OWNER="transition_to_owner",e.VIEW_ITEM_MEDIA="view_item_media",e.ADD_ITEM_TO_CART="add_item_to_cart",e.EXPAND_ITEM_DESCRIPTION="expand_item_description",e.ADD_ITEM_TO_BOOKMARKS="add_item_to_bookmarks",e.REMOVE_ITEM_FROM_BOOKMARKS="remove_item_from_bookmarks",e.EXPAND_COMMENTS="expand_comments",e.COMMENT="comment",e.ADD_TO_CART_HS="add_to_cart_hs",e.OPEN_WIKI="open_wiki",e.SEND_MESSAGE_TO_OWNER="send_message_to_owner",e.OPEN_CHAT_WITH_OWNER="open_chat_with_owner",e.LIKE_ITEM="like_item",e.UNLIKE_ITEM="unlike_item",e.SHARE_ITEM="share_item",e.CTA_LINK="cta_link",e.CREATE_ITEM="create_item",e.CREATE_ALBUM="create_album",e.EDIT_ITEM="edit_item",e.EDIT_ALBUM="edit_album",e.DELETE_ITEM="delete_item",e.DELETE_ALBUM="delete_album",e.GROUP_ITEMS="group_items",e.ADD_PROPERTY="add_property",e.ADD_PROPERTY_VALUE="add_property_value",e.DELETE_PROPERTY="delete_property",e.DELETE_PROPERTY_VALUE="delete_property_value",e.TRANSITION_TO_EDIT_PROPERTIES="transition_to_edit_properties",e.TRANSITION_TO_EDIT_ALBUMS="transition_to_edit_albums",e.TRANSITION_TO_ADD_ALBUM="transition_to_add_album",e.TRANSITION_TO_ADD_ITEM="transition_to_add_item",e.TRANSITION_TO_EDIT_ITEM="transition_to_edit_item",e.TRANSITION_TO_DELETE_ALBUM="transition_to_delete_album",e.TRANSITION_TO_GROUP_ITEMS="transition_to_group_items",e.VIEW_FEEDBACK="view_feedback",e.OPEN_FEEDBACK_PHOTO="open_feedback_photo"}(i||(i={})),function(e){e.EVENT_MAKE_ORDER="make_order",e.CANCEL_ORDER="cancel_order",e.EXPAND_ORDER_INFO="expand_order_info",e.TRANSITION_TO_ORDERS="transition_to_orders",e.OPEN_MARKET_GROUP_ORDERS="open_market_group_orders",e.OPEN_MARKET_GROUP_ITEMS="open_market_group_items",e.OPEN_MARKET_GROUP_SETTINGS="open_market_group_settings",e.OPEN_MARKET_GROUP_DELIVERY="open_market_group_delivery",e.TRANSITION_TO_MARKET_SUPPORT="transition_to_market_support",e.OPEN_ORDER_INFO="open_order_info",e.ADD_TRACK_CODE="add_track_code",e.ADD_INTERNAL_COMMENT="add_internal_comment",e.CHANGE_ORDER_STATUS="change_order_status",e.OPEN_CHAT_WITH_CUSTOMER="open_chat_with_customer",e.SEND_MESSAGE_TO_CUSTOMER="send_message_to_customer",e.OPEN_ORDER_HISTORY="open_order_history",e.FILTER_ORDERS_BY_STATUS="filter_orders_by_status",e.EXPORT_ORDERS_DATA="export_orders_data"}(a||(a={}))},21795:function(e,t,n){"use strict";n.d(t,{logMarketEventNow:function(){return u},logMarketEvent:function(){return d},flushMarketEvents:function(){return m}});var o=n(97316),r=n(39931),i=n(35645),a=n(90302),s="market_event_count",c="market_event_item_";function l(e,t,n,i){var c=window.MarketAnalyticsManager&&window.MarketAnalyticsManager.getHash();if(c){var l=n.slice(0,10),u=0,d=a.vkLocalStorage.getItem(s);d&&(u=parseInt(d)),u>=20&&(m(e),u=0);var f=Date.now(),_="market_event_item_"+Math.floor(1e5*Math.random())+"_"+f+"_"+t;l.unshift(f),l.unshift(t),l.push(c),a.vkLocalStorage.setItem(_,JSON.stringify(l)),a.vkLocalStorage.setItem(s,String(++u)),i&&m(e),r.marketDebug.apply(void 0,(0,o.__spreadArray)(["debug","event",t],(0,o.__read)(n)))}else(0,r.marketDebug)("warn","events","Hash error")}function u(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];l(e,t,n,!0)}function d(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];l(e,t,n,!1)}function m(e){for(var t=[],n=0;n<a.vkLocalStorage.length();++n){var o=a.vkLocalStorage.key(n);o&&0===o.lastIndexOf(c)&&t.push(o)}if(!(t.length<=0)){a.vkLocalStorage.setItem(s,String(0));var l=[],u="";t.forEach((function(e){var t=a.vkLocalStorage.getItem(e);if(a.vkLocalStorage.removeItem(e),t)try{var n=JSON.parse(t);u?n.pop():u=n.pop(),l.push(Object.values(n))}catch(e){(0,r.marketDebug)("error","event error","Unable to assemble events pack",e)}})),!u||l.length<1||(!window.MarketAnalyticsManager||window.MarketAnalyticsManager.isEnabled()?window.ajax.post(e===i.PLATFORM_MVK?"market.php":"al_market.php",{act:"log_events",hash:u,events:l},{onDone:function(){(0,r.marketDebug)("warn","events sent",l.length+" events sent")}}):(0,r.marketDebug)("error","event error","analytics disabled"))}}},39931:function(e,t,n){"use strict";n.d(t,{marketDebug:function(){return c},marketItemIdToObject:function(){return l},albumLinkToObject:function(){return u},parseBookmarkedProductClass:function(){return d},isElementVisible:function(){return m},isElementInViewport:function(){return f}});var o=n(12459),r=n(86353),i=n(90302),a="extended_client_logging",s="market_extended_client_logging";function c(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];((0,r.partConfigEnabled)(a)||i.vkLocalStorage.getItem(s))&&("error"===e?console.error("[market "+t+"]: ",n):"warn"===e?console.warn("[market "+t+"]: ",n):"info"===e?console.info("[market "+t+"]: ",n):console.debug("[market "+t+"]: ",n))}function l(e,t){void 0===t&&(t="market");var n=new RegExp(t+"(-?[0-9]+)_([0-9]+)"),o=e.match(n);if(!o||o.length<3)return null;var r=o[1],i=o[2];return{id:r+"_"+i,ownerId:parseInt(r),itemId:parseInt(i)}}function u(e){var t=e.match(/market(\-?[0-9]+).+section=album_([0-9]+)/);if(!t||t.length<3)return null;var n=t[1],o=t[2];return{id:n+"_"+o,ownerId:parseInt(n),itemId:parseInt(o)}}function d(e){var t=e.match(/_([0-9]+)_(\-?[0-9]+)_4/);if(!t||t.length<3)return null;var n=t[1],o=t[2];return{id:o+"_"+n,ownerId:parseInt(o),itemId:parseInt(n)}}function m(e){var t;return"none"!==(null===(t=e.style)||void 0===t?void 0:t.display)}function f(e,t,n,r){void 0===t&&(t=50),void 0===n&&(n=null);var i=n?n.left:0,a=n?n.top:0,s=(0,o.getViewportSize)(),c=(0,o.getElementOffset)(e),l=(0,o.getElementSize)(e),u=l.width*t/100,d=l.height*t/100;if(r){if(r.width>s.width)return!1;if(r.height>s.height)return!1;s=r}return!(c.left+l.width<i+u)&&(!(c.left+u>s.width)&&(!(c.top+l.height<a+d)&&!(c.top+d>s.height)))}},33614:function(e,t,n){"use strict";n.d(t,{NodeMutationObserver:function(){return o}});var o=function(){function e(){}return e.prototype.connectMutator=function(t){if(this.mutationObserver)throw new Error("{Observer #"+t.getObserverId()+"} MutationObserver already connected to observer");var n=document.querySelector(t.getContainerQuery());n instanceof HTMLElement&&(this.mutationObserver=new MutationObserver((function(n){n.forEach((function(n){if(n.addedNodes)for(var o=0;o<n.addedNodes.length;o++){var r=n.addedNodes[o];if(r instanceof HTMLElement){var i=e.resolveNodes(r,t).filter((function(e){return!!e}));i&&(i.forEach((function(e){t.add(e)})),t.scan())}}}))})),this.mutationObserver.observe(n,{childList:!0,subtree:!0,attributes:!1,characterData:!1}))},e.prototype.disconnectMutator=function(e){e.isRunning()&&this.mutationObserver&&this.mutationObserver.disconnect()},e.resolveNodes=function(e,t){var n=[];if(t.getSelectorQuery(!1).split(",").forEach((function(t){if(e.matches(t))return n.push(e),!1})),n.length<1){var o=e.querySelectorAll(t.getSelectorQuery(!1));n=Array.from(o)}return n},e}()},16013:function(e,t,n){"use strict";n.d(t,{NodeObserver:function(){return l}});var o=n(97316),r=n(3369),i=n(59326),a=n(8830),s="data-stat-item",c="data-stat-id",l=function(){function e(e,t,n,o,r,a){if(void 0===n&&(n=""),void 0===o&&(o=!1),void 0===r&&(r=""),this.observerId=e,this.itemSelector=t,this.container=n,this.isUnifyNodes=o,this.platform=r,this.getExtraItemParams=a,this.trackingItems={},this._debounceTimeout=20,this.uniqueNodeCounter=0,this.nodes=[],this.isWatching=!1,this.mutatorList=[],(0,i.observersRegister)(this),!this.itemSelector.types&&!this.itemSelector.selectors)throw new Error("Empty itemSelector definition");this.container||(this.container=this.observerId)}return Object.defineProperty(e.prototype,"debounceTimeout",{set:function(e){this._debounceTimeout=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemReachedCallback",{set:function(e){this._itemReachedCallback=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"preCheckReachedCallback",{set:function(e){this._preCheckReachedCallback=e},enumerable:!1,configurable:!0}),e.prototype.getObserverId=function(){return this.observerId},e.prototype.getItemSelector=function(){return this.itemSelector},e.prototype.getPlatform=function(){return this.platform},e.prototype.add=function(e){this.nodes.push(e)},e.prototype.getTrackingItems=function(){return this.trackingItems},e.prototype.addMutators=function(e){this.mutatorList=this.mutatorList.concat(e)},e.prototype.isRunning=function(){return this.isWatching},e.prototype.watch=function(){this.isWatching||(this.update(),this.startObserving(),this.connectMutators(),this.isWatching=!0)},e.prototype.stop=function(){this.isWatching&&(this.trackUntracked(),this.stopObserving(),this.disconnectMutators(),this.isWatching=!1)},e.prototype.scan=function(){this.viewportScanner()},e.prototype.trackUntracked=function(){var e=this.getTrackingItems();for(var t in e)if(e[t]){var n=e[t];!n.isTracked&&n.isReached&&(this.track(n),this.persist(n))}},e.prototype.connectMutators=function(){var e=this;this.mutatorList.forEach((function(t){t.connectMutator(e)}))},e.prototype.disconnectMutators=function(){var e=this;this.mutatorList.forEach((function(t){t.disconnectMutator(e)}))},e.prototype.getContainerQuery=function(){var e=this.container.substr(0,1);return"#"===e||"."===e?this.container:'[data-stat-container="'+(this.container?this.container:this.observerId)+'"]'},e.prototype.getSelectorQuery=function(e){void 0===e&&(e=!0);var t=this.getContainerQuery(),n=[];return this.itemSelector.selectors?n=this.itemSelector.selectors.split(",").map((function(n){return e?t+" "+n:n})):this.itemSelector.types&&(n=this.itemSelector.types.split(",").map((function(n){return e?t+" ["+'data-stat-item^="'+n+'|"]':'[data-stat-item^="'+n+'|"]'}))),n.join(",")},e.prototype.update=function(){var e=document.querySelectorAll(this.getSelectorQuery());this.nodes=Array.from(e)},e.parseStatAttribute=function(e){var t=e.getAttribute(s),n=null==t?void 0:t.split("|");return n?{type:n[0],ownerId:parseInt(n[1]),itemId:n[2]}:{type:"",ownerId:0,itemId:0}},e.prototype.getNodeKey=function(e,t){var n=String(t.itemId);this.isUnifyNodes&&(this.unifyNode(e),n=n+"_"+e.getAttribute(c));return this.observerId+"_"+n},e.prototype.isItemReached=function(e){return!(void 0!==this._preCheckReachedCallback&&!this._preCheckReachedCallback(e))&&this.isReached(e)},e.prototype.filterItem=function(e){return!e.isTracked&&!e.isReached&&(this.isItemReached(e.node)?(this.track(e),this.persist(e),!1):(this.persist(e),!0))},e.prototype.track=function(e){e.isTracked||(e.viewEnd=Date.now(),e.duration=e.viewEnd-e.viewStart,this._itemReachedCallback(e),e.isReached=!1,e.isTracked=!0)},e.prototype.persist=function(e){this.trackingItems[e.key]=e},e.prototype.getTrackingItem=function(t){var n=e.parseStatAttribute(t);if(!n.type||!n.itemId)return null;var o=this.getNodeKey(t,n);return o?o in this.trackingItems?this.trackingItems[o]:this.createTrackingItem(t,n):null},e.prototype.createTrackingItem=function(e,t){var n=this.getNodeKey(e,t),r=this.getExtraItemParams&&this.getExtraItemParams()||{};return this.trackingItems[n]=(0,o.__assign)((0,o.__assign)({},r),{key:n,type:t.type,observerId:this.observerId,ownerId:t.ownerId,itemId:t.itemId,isTracked:!1,isReached:!1,viewStart:0,viewEnd:0,duration:0,node:e,viewTimer:0,data:{},platform:this.getPlatform(),city:(0,a.getStatCity)(),screen:(0,a.getStatScreen)()}),this.trackingItems[n]},e.prototype.getNextUnifyId=function(){return++this.uniqueNodeCounter},e.prototype.unifyNode=function(e){e.getAttribute(c)||e.setAttribute(c,String(this.getNextUnifyId()))},e.prototype.startObserving=function(){var e=this;this.update(),this.viewportScanner=(0,r.debounce)((function(){e.nodes=e.nodes.filter((function(t){var n=e.getTrackingItem(t);return!!n&&e.filterItem(n)}))}),this._debounceTimeout),this.scrollEventListener=function(){return e.scan()},document.addEventListener("scroll",this.scrollEventListener,{passive:!0}),this.scan()},e.prototype.stopObserving=function(){document.removeEventListener("scroll",this.scrollEventListener),this.nodes=[],this.viewportScanner=function(){},this.scrollEventListener=function(){}},e}()},51583:function(e,t,n){"use strict";n.d(t,{NodeViewObserver:function(){return i}});var o=n(97316),r=n(16013);var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.filterItem=function(e){return!e.isTracked&&(e.isReached&&!this.isItemReached(e.node)?(this.track(e),this.persist(e),!1):(this.isItemReached(e.node)&&this.view(e),this.persist(e),!0))},t.prototype.view=function(e){var t=this;e.isTracked||(e.isReached=!0,e.viewStart||(e.viewStart=Date.now()),e.viewTimer&&(clearTimeout(e.viewTimer),e.viewTimer=0),e.viewTimer=window.setTimeout((function(){var n=e.node;!t.isItemReached(n)||function(e){var t=e.viewStart;return Date.now()-t>3e4}(e)?t.track(e):t.view(e)}),3e3))},t.prototype.track=function(t){t.viewTimer&&(clearTimeout(t.viewTimer),t.viewTimer=0),e.prototype.track.call(this,t)},t}(r.NodeObserver)},59326:function(e,t,n){"use strict";n.d(t,{observersRegister:function(){return r},observersStop:function(){return i},observersRescan:function(){return a}});var o={};function r(e){e.getObserverId()in o&&(o[e.getObserverId()].stop(),delete o[e.getObserverId()]),o[e.getObserverId()]=e}function i(){for(var e in o){if(o[e])o[e].stop()}}function a(){for(var e in o){if(o[e])o[e].scan()}}},8830:function(e,t,n){"use strict";n.d(t,{getUtmMarks:function(){return a},getStatCategoryId:function(){return s},getStatScreen:function(){return c},getStatOwnerId:function(){return l},getStatCity:function(){return u}});n(97316);var o=n(90302),r="market_stat_data";function i(){var e=o.vkSessionStorage.getItem(r);return e?JSON.parse(e):{}}var a=function(){var e=i();return{utm_source:e.utm_source,utm_medium:e.utm_medium,utm_campaign:e.utm_campaign,utm_campaign_id:e.utm_campaign_id,utm_content:e.utm_content}},s=function(){return i().category_id};function c(){return i().screen||window.cur.module}function l(){return i().ownerId||0}function u(){return i().city}}}]);

}
/*
     FILE ARCHIVED ON 18:04:28 Sep 24, 2021 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 05:13:04 Nov 16, 2024.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.742
  exclusion.robots: 0.044
  exclusion.robots.policy: 0.026
  esindex: 0.011
  cdx.remote: 10.412
  LoadShardBlock: 184.142 (3)
  PetaboxLoader3.datanode: 141.275 (5)
  PetaboxLoader3.resolve: 190.251 (3)
  load_resource: 219.2 (2)
*/