(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{3454:function(t,n,e){"use strict";var r,i;t.exports=(null==(r=e.g.process)?void 0:r.env)&&"object"==typeof(null==(i=e.g.process)?void 0:i.env)?e.g.process:e(7663)},6840:function(t,n,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return e(4807)}])},8853:function(t,n,e){"use strict";e.d(n,{d:function(){return _}});var r=e(3454);let i=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return r.env[t]||n},o=function(t,n){let e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n?i(t,e):e},_=()=>{let t="dev"===i("NEXT_PUBLIC_VERSION");return{ASSETS_BASE_URL:i("ASSETS_BASE_URL","https://assets.finuslugi.ru"),NEXT_PUBLIC_BASE_URL:i("NEXT_PUBLIC_BASE_URL","https://finuslugi.ru"),NEXT_PUBLIC_API_URL:i("NEXT_PUBLIC_API_URL","https://finuslugi.ru"),NEXT_PUBLIC_NEW_API_URL:i("NEXT_PUBLIC_NEW_API_URL","https://finuslugi.ru"),NEXT_PUBLIC_BFF_API_URL:i("NEXT_PUBLIC_BFF_API_URL","https://finuslugi.ru"),NEXT_PUBLIC_VERSION:i("NEXT_PUBLIC_VERSION",""),NEXT_PUBLIC_USER_NAME:o("NEXT_PUBLIC_USER_NAME",t,""),NEXT_PUBLIC_PASSWORD:o("NEXT_PUBLIC_PASSWORD",t,""),NEXT_PUBLIC_NEW_USER_NAME:o("NEXT_PUBLIC_NEW_USER_NAME",t,""),NEXT_PUBLIC_NEW_PASSWORD:o("NEXT_PUBLIC_NEW_PASSWORD",t,""),NEXT_PUBLIC_NEW_API_KEY:o("NEXT_PUBLIC_NEW_API_KEY",t,""),NODE_ENV:i("NODE_ENV",""),SKIP_PROXY:i("SKIP_PROXY",""),NEXT_PUBLIC_COMMON_BLOCKS_SERVICE_URL:i("NEXT_PUBLIC_COMMON_BLOCKS_SERVICE_URL","https://finuslugi.ru/sc"),COMMON_BLOCKS_SERVICE_USER_NAME:o("COMMON_BLOCKS_SERVICE_USER_NAME",t,""),COMMON_BLOCKS_SERVICE_USER_PASSWORD:o("COMMON_BLOCKS_SERVICE_USER_PASSWORD",t,""),NEXT_PUBLIC_HEADLESS_CMS:o("NEXT_PUBLIC_HEADLESS_CMS",t,"https://finuslugi.ru/sc"),NEXT_PUBLIC_INVESTMENT_API:i("NEXT_PUBLIC_INVESTMENT_API","http://mp-sc-investment-api.mp-fin-rc.mpddev.moex.com/"),NEXT_PUBLIC_REACT_HEADER:i("NEXT_PUBLIC_REACT_HEADER")||null}}},4807:function(t,n,e){"use strict";e.r(n);var r=e(5893);e(836),e(2145),e(7626),e(3079);var i=e(7607),o=e(7294),_=e(8853);n.default=t=>{let{Component:n,pageProps:e}=t,u=(0,_.d)();return(0,o.useEffect)(()=>{"dev"!==u.NEXT_PUBLIC_VERSION&&(0,i.zK)()},[u]),(0,r.jsx)(n,{...e})}},7626:function(){},2145:function(){},3079:function(){},836:function(){},7663:function(t){!function(){var n={229:function(t){var n,e,r,i=t.exports={};function o(){throw Error("setTimeout has not been defined")}function _(){throw Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{e="function"==typeof clearTimeout?clearTimeout:_}catch(t){e=_}}();var s=[],c=!1,E=-1;function f(){c&&r&&(c=!1,r.length?s=r.concat(s):E=-1,s.length&&a())}function a(){if(!c){var t=u(f);c=!0;for(var n=s.length;n;){for(r=s,s=[];++E<n;)r&&r[E].run();E=-1,n=s.length}r=null,c=!1,function(t){if(e===clearTimeout)return clearTimeout(t);if((e===_||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}(t)}}function l(t,n){this.fun=t,this.array=n}function N(){}i.nextTick=function(t){var n=Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)n[e-1]=arguments[e];s.push(new l(t,n)),1!==s.length||c||u(a)},l.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=N,i.addListener=N,i.once=N,i.off=N,i.removeListener=N,i.removeAllListeners=N,i.emit=N,i.prependListener=N,i.prependOnceListener=N,i.listeners=function(t){return[]},i.binding=function(t){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={exports:{}},_=!0;try{n[t](o,o.exports,r),_=!1}finally{_&&delete e[t]}return o.exports}r.ab="//";var i=r(229);t.exports=i}()},7607:function(t,n,e){"use strict";function r(){return typeof window>"u"}function i(t){r()||(Array.isArray(window.dataLayer)?window.dataLayer.push(t):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(t):console.log("window._mtm does not exist"))}function o(){if(r()){console.warn("Cant initialize tag manager on server side");return}"function"!=typeof window._init_gtm?console.warn("Cant init GTM, please check if GTM script exists"):window._init_gtm(),"function"!=typeof window._init_mtm?console.warn("Cant init MTM, please check if MTM script exists"):window._init_mtm()}e.d(n,{AB:function(){return i},zK:function(){return o}})}},function(t){var n=function(n){return t(t.s=n)};t.O(0,[774,179],function(){return n(6840),n(9974)}),_N_E=t.O()}]);