(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{199:(e,t,n)=>{"use strict";n.d(t,{Dn:()=>i,LM:()=>o,aD:()=>a,vP:()=>s});let r="method-bo:analytics-consent:v1",i="method-bo:analytics-consent-change";function o(){try{let e=JSON.parse(window.localStorage.getItem(r)??"null");if(e?.version!==1||"granted"!==e.status&&"denied"!==e.status||!e.decided_at)return null;return e}catch{return null}}function a(e){let t=o();if(t?.status===e)return t;let n={version:1,status:e,decided_at:new Date().toISOString()};return window.localStorage.setItem(r,JSON.stringify(n)),"denied"===e&&function(){for(let e of Array.from({length:window.localStorage.length},(e,t)=>window.localStorage.key(t)))e&&(e.startsWith("_ym")||e.startsWith("method-bo:book-attribution:")||e.startsWith("method-bo:funnel-attribution:")||e.startsWith("method-bo:funnel-dedupe:")||e.startsWith("method-bo:funnel-lead-dedupe:"))&&window.localStorage.removeItem(e);for(let e of document.cookie.split(";")){let t=e.split("=")[0]?.trim();t?.startsWith("_ym")&&(document.cookie=`${t}=; Max-Age=0; path=/; SameSite=Lax`)}window.__METHOD_BO_FUNNEL_PENDING__=[],window.__METHOD_BO_FUNNEL_EVENTS__=[],window.__METHOD_BO_BOOK_PENDING__=[],window.__METHOD_BO_BOOK_EVENTS__=[]}(),window.dispatchEvent(new CustomEvent(i,{detail:n})),n}function s(){return o()?.status==="granted"}},716:(e,t,n)=>{"use strict";n.d(t,{gg:()=>_,jd:()=>c,wh:()=>l});var r=n(199),i=n(9443),o=n(1955),a=n(1463);let s=new Set(["path","destination","location","section","watched_percent"]);function _(e,t={}){if(!(0,r.vP)())return!1;let n={goal:e,params:Object.fromEntries(Object.entries(t).filter(([e])=>s.has(e)).map(([e,t])=>[e,"string"==typeof t?t.slice(0,80):t]))};return window.__METHOD_BO_BOOK_EVENTS__=[...window.__METHOD_BO_BOOK_EVENTS__??[],n],"development"===(0,i.WV)()||(window.__METHOD_BO_BOOK_PENDING__=[...window.__METHOD_BO_BOOK_PENDING__??[],n].slice(-100),l(),!0)}function l(){if(!(0,r.vP)()){window.__METHOD_BO_BOOK_PENDING__=[];return}let e=(0,i.WV)(),t="production"===e?i.Df:"test"===e?Number(a.env.NEXT_PUBLIC_YANDEX_METRIKA_TEST_COUNTER_ID):null;if(t&&Number.isInteger(t)&&!(t<=0)&&"function"==typeof window.ym)for(;window.__METHOD_BO_BOOK_PENDING__?.length&&(0,r.vP)();){let e=window.__METHOD_BO_BOOK_PENDING__[0];try{window.ym(t,"reachGoal",e.goal,e.params)}catch{return}window.__METHOD_BO_BOOK_PENDING__.shift()}}let c=o.R},1955:(e,t,n)=>{"use strict";n.d(t,{R:()=>l});var r=n(199),i=n(5596);let o="method-bo:funnel-attribution:v2",a="method-bo:book-attribution:v1";function s(e){if(!e||"object"!=typeof e||"string"!=typeof e.captured_at||!Number.isFinite(Date.parse(e.captured_at)))return null;let t="string"==typeof e.landing_path?e.landing_path.split(/[?#]/)[0]:"/";return{captured_at:e.captured_at,landing_path:t.startsWith("/")?t.slice(0,200):"/",...Object.fromEntries(i.aG.map(t=>[t,(0,i.v2)(e[t])]))}}function _(e,t,n){try{let r=JSON.parse(window.localStorage.getItem(e)??"null"),i=s(r?.first_touch),o=s(r?.last_touch);if(r?.version!==t||!(Date.parse(r.expires_at)>n)||!Number.isFinite(Date.parse(r.created_at))||!i||!o)return null;return{version:2,created_at:r.created_at,expires_at:r.expires_at,first_touch:i,last_touch:o}}catch{return null}}function l(){if((0,r.vP)())try{let n=Date.now(),r=_(o,2,n),l=_(a,1,n);if(l)if(r){var e,t;let n;r={...r,first_touch:Date.parse(l.first_touch.captured_at)null!==e[t]))!==i.aG.some(e=>null!==t[e])?n?e:t:Date.parse(e.captured_at)>Date.parse(t.captured_at)?e:t),created_at:Date.parse(l.created_at)null!==d[e]),w=(0,i.lG)(r,f?d:null,c,n);return window.localStorage.setItem(o,JSON.stringify(w)),window.localStorage.removeItem(a),w}catch{return}}},2531:(e,t,n)=>{Promise.resolve().then(n.bind(n,9462)),Promise.resolve().then(n.bind(n,9779)),Promise.resolve().then(n.bind(n,8876)),Promise.resolve().then(n.t.bind(n,6872,23))},5596:(e,t,n)=>{"use strict";n.d(t,{EA:()=>i,Hf:()=>o,KI:()=>u,OJ:()=>r,ZD:()=>c,_w:()=>d,aG:()=>a,lG:()=>f,v2:()=>l});let r="site-launch-001-v1",i=864e5,o=7776e6,a=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],s=Object.freeze({S0:Object.freeze({result_code:"insufficient_evidence",result_level:"needs_verification"}),S1:Object.freeze({result_code:"active_client_base_requires_check",result_level:"attention"}),S2:Object.freeze({result_code:"visit_frequency_requires_check",result_level:"attention"}),S3:Object.freeze({result_code:"average_check_requires_check",result_level:"attention"}),S4:Object.freeze({result_code:"three_levers_stable",result_level:"stable"})}),_=Object.freeze({Q1:"akb_measurement",Q2:"akb_trend",Q3:"akb_reactivation_process",Q4:"average_check_measurement",Q5:"average_check_drivers",Q6:"average_check_trend",Q7:"frequency_trend",Q8:"frequency_return_process",Q9:"data_basis"});function l(e){if("string"!=typeof e)return null;let t=e.normalize("NFC").replace(/[\u0000-\u001f\u007f]/g,"").trim().replace(/\s+/g," ");if(!t)return null;let n=Array.from(t).slice(0,200).join("");return/\b[^\s@]+@[^\s@]+\.[^\s@]+\b/u.test(n)||/(?:^|\D)\+?\d(?:[\s().-]*\d){9,14}(?:\D|$)/u.test(n)?null:n}function c(e){return s[e]??s.S0}function u(e){return _[e]??null}function d(e){return"string"==typeof e&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function f(e,t,n,r){if(e?.version===2&&Date.parse(e.expires_at)>r)return t?{...e,last_touch:t}:e;let i=t??n;return{version:2,created_at:new Date(r).toISOString(),expires_at:new Date(r+2592e6).toISOString(),first_touch:i,last_touch:i}}},5626:e=>{e.exports={banner:"analyticsConsent_banner__Eritr",links:"analyticsConsent_links__tp6EK",actions:"analyticsConsent_actions__IWw_U",settings:"analyticsConsent_settings__thKwG"}},6872:()=>{},8876:(e,t,n)=>{"use strict";n.d(t,{YandexMetrika:()=>l});var r=n(2115),i=n(199),o=n(9443),a=n(716),s=n(1463);function _(){if("production"===(0,o.WV)())return o.Df;if("test"===(0,o.WV)()){let e=Number(s.env.NEXT_PUBLIC_YANDEX_METRIKA_TEST_COUNTER_ID);return Number.isInteger(e)&&e>0?e:null}return null}function l(){return(0,r.useEffect)(()=>{let e=!1,t=()=>{let t=_();if(e||!t||!(0,i.vP)()||"development"===(0,o.WV)())return;let n=`disableYaCounter${t}`;if(window[n]=!1,document.querySelector(`script[data-method-bo-metrika="${t}"]`))return void(0,a.wh)();if("function"!=typeof window.ym){let e=(...t)=>{e.a=e.a??[],e.a.push(t)};e.a=[],e.methodBoQueued=!0,e.l=Date.now(),window.ym=e}let r=document.createElement("script");for(let n of(r.async=!0,r.src=`https://mc.yandex.ru/metrika/tag.js?id=${t}`,r.dataset.methodBoMetrika=String(t),r.onload=()=>{!e&&(0,i.vP)()&&((0,a.wh)(),window.dispatchEvent(new Event("method-bo:metrika-ready")))},document.head.appendChild(r),window.ym(t,"init",{ssr:!0,webvisor:!0,clickmap:!0,ecommerce:"dataLayer",referrer:document.referrer,url:location.href,accurateTrackBounce:!0,trackLinks:!0}),window.__METHOD_BO_FUNNEL_PENDING__??[]))window.ym(t,"reachGoal",n.goal,n.params);window.__METHOD_BO_FUNNEL_PENDING__=[],(0,a.wh)()},n=()=>{(0,i.LM)()?.status==="granted"?t():(()=>{let e=_();if(!e)return;window[`disableYaCounter${e}`]=!0,"function"==typeof window.ym&&window.ym(e,"destruct");let t=window.ym;t?.methodBoQueued&&(t.a=[],delete window.ym),document.querySelectorAll(`script[data-method-bo-metrika="${e}"]`).forEach(e=>e.remove()),window.__METHOD_BO_FUNNEL_PENDING__=[],window.__METHOD_BO_BOOK_PENDING__=[]})()};return t(),window.addEventListener(i.Dn,n),()=>{e=!0,window.removeEventListener(i.Dn,n)}},[]),null}},9443:(e,t,n)=>{"use strict";n.d(t,{Df:()=>o,WV:()=>s,a3:()=>c,pn:()=>_,rB:()=>u});var r=n(199),i=n(5596);let o=0x6a18388,a={diagnostic_view:new Set(["session_id","funnel_version","entry_state","diagnostic_available"]),diagnostic_start:new Set(["session_id","funnel_version","start_method","total_steps"]),diagnostic_step:new Set(["session_id","funnel_version","step_number","step_code"]),diagnostic_complete:new Set(["session_id","funnel_version","answered_steps","completion_status","result_code"]),diagnostic_result:new Set(["session_id","funnel_version","result_code","result_level","result_nature","verification_required"]),calculator_interaction:new Set(["session_id","funnel_version","interaction_type","result_code"]),expert_click:new Set(["session_id","funnel_version","cta_location","destination_type","result_code"]),form_start:new Set(["session_id","funnel_version","form_id","entry_point","form_mode","result_code"]),lead_submit:new Set(["session_id","funnel_version","form_id","entry_point","result_code","backend_status","lead_id_hash"])};function s(){return"production"}function _(e,t){if(!(0,r.vP)())return!1;let n=function(e,t){let n={};for(let[r,i]of Object.entries(t))a[e].has(r)&&void 0!==i&&("string"==typeof i||"number"==typeof i||"boolean"==typeof i)&&(n[r]="string"==typeof i?Array.from(i).slice(0,80).join(""):i);return n}(e,{funnel_version:i.OJ,...t}),_={goal:e,params:n};return window.__METHOD_BO_FUNNEL_EVENTS__=[...window.__METHOD_BO_FUNNEL_EVENTS__??[],_],"production"!==s()||("function"!=typeof window.ym?window.__METHOD_BO_FUNNEL_PENDING__=[...window.__METHOD_BO_FUNNEL_PENDING__??[],_]:window.ym(o,"reachGoal",e,n),!0)}let l="method-bo:funnel-lead-dedupe:v2";function c(e){try{let t=JSON.parse(window.localStorage.getItem(l)??"{}");return!!(t[e]&&Date.parse(t[e])>Date.now())}catch{return!1}}function u(e){if(!(0,r.vP)())return;let t={};try{t=JSON.parse(window.localStorage.getItem(l)??"{}")}catch{}let n=Date.now();(t=Object.fromEntries(Object.entries(t).filter(([,e])=>Date.parse(e)>n)))[e]=new Date(n+i.Hf).toISOString(),window.localStorage.setItem(l,JSON.stringify(t))}},9462:(e,t,n)=>{"use strict";n.d(t,{AnalyticsConsent:()=>c});var r=n(5155),i=n(8500),o=n.n(i),a=n(2115),s=n(199),_=n(5626),l=n.n(_);function c(){let[e,t]=(0,a.useState)(null),[n,i]=(0,a.useState)(!1);function _(e){(0,s.aD)(e),t(e),i(!1)}return(0,a.useEffect)(()=>{let e=window.setTimeout(()=>{let e=(0,s.LM)()?.status??null;t(e),i(null===e)},0);return()=>window.clearTimeout(e)},[]),(0,r.jsx)(r.Fragment,{children:n?(0,r.jsxs)("section",{className:l().banner,role:"dialog","aria-label":"Настройки аналитики","aria-live":"polite",children:[(0,r.jsx)("p",{children:"Мы используем Яндекс Метрику и Вебвизор, чтобы понимать, как работает сайт, и улучшать его. Аналитика включится только с вашего согласия. Необходимые функции сайта работают без аналитических cookies."}),(0,r.jsxs)("div",{className:l().links,children:[(0,r.jsx)(o(),{href:"/privacy-policy/",children:"Политика конфиденциальности"}),(0,r.jsx)(o(),{href:"/cookie-policy/",children:"Политика использования cookies"})]}),(0,r.jsxs)("div",{className:l().actions,children:[(0,r.jsx)("button",{type:"button",onClick:()=>_("granted"),children:"Принять аналитику"}),(0,r.jsx)("button",{type:"button",onClick:()=>_("denied"),children:"Только необходимые"})]})]}):(0,r.jsx)("button",{className:l().settings,type:"button",onClick:()=>i(!0),"aria-label":`Настройки cookies. Текущий выбор: ${"granted"===e?"аналитика разрешена":"только необходимые"}`,children:"Настройки cookies"})})}},9779:(e,t,n)=>{"use strict";n.d(t,{PwaRegistration:()=>i});var r=n(2115);function i(){return(0,r.useEffect)(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js")},[]),null}}},e=>{e.O(0,[4549,8500,8441,3794,7358],()=>e(e.s=2531)),_N_E=e.O()}]);