(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58858,e=>{"use strict";var t=e.i(71645);e.s(["S",0,function(e){return t.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M7.22 12.53a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 1 1 1.06 1.06L8.81 12l5.97 5.97a.75.75 0 1 1-1.06 1.06l-6.5-6.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}])},60822,e=>{"use strict";var t=e.i(43476),r=e.i(7670);let n=(0,e.i(54061).g)("container"),a=Object.freeze({container:n,states:{narrow:`${n}--narrow`}}),o=({children:e,as:n,fluid:o=!1,className:i="",...s})=>(0,t.jsx)(n||"div",{className:(0,r.default)(a.container,i,{[a.states.narrow]:!o}),...s,children:e});o.displayName="Container",e.s(["Container",0,o])},65019,46381,e=>{"use strict";var t=e.i(43476),r=e.i(7670),n=e.i(54061);let a=(0,n.g)("card"),o={card:a,variants:{primary:`${a}--primary`,secondary:`${a}--secondary`}},i=({as:e,className:n,style:a,children:i,variant:s="primary",dataQa:l,dataId:c,...u})=>(0,t.jsx)(e||"div",{className:(0,r.default)(n,o.card,o.variants[s]),style:a,...u,"data-id":c,"data-qa":l,children:i});i.displayName="Card",e.s(["Card",0,i],65019);var s=e.i(71645),l=e.i(14044);let c=(0,n.g)("chips"),u=Object.freeze({chips:c,chip:`${c}__item`,icon:`${c}__icon`,iconLeft:`${c}__icon-left`,iconRight:`${c}__icon-right`,label:`${c}__label`,variants:{primary:`${c}--primary`,secondary:`${c}--secondary`,tertiary:`${c}--tertiary`},activeVariants:{primary:`${c}--active-primary`,secondary:`${c}--active-secondary`},sizes:{s:`${c}--s`,m:`${c}--m`,l:`${c}--l`},selected:`${c}--selected`,indicator:`${c}__indicator`,indicatorVariant:{red:`${c}__indicator--red`,orange:`${c}__indicator--orange`,green:`${c}__indicator--green`,purple:`${c}__indicator--purple`,purpleSecondary:`${c}__indicator--purple-secondary`,blue:`${c}__indicator--blue`,pink:`${c}__indicator--pink`}}),d=(0,s.forwardRef)(({chips:e,value:n,variant:a="primary",activeVariant:o="primary",multiple:i,clearable:c,size:d="m",className:p,style:m,dataQa:f,dataId:h,onChipClick:g,...y},w)=>{let[b,_]=(0,s.useState)(i?[]:void 0),v=(0,s.useRef)(null);(0,s.useImperativeHandle)(w,()=>({getRoot:()=>v.current,getSelectedChips:()=>b})),(0,s.useEffect)(()=>{i?_(Array.isArray(n)?n:[]):_(n)},[n,i]);let x=i||c,$=e=>i&&Array.isArray(b)?b.includes(e):b===e,j=(e,t,r)=>{_(r),null==g||g(e,t,r)},S=(e,t)=>{if(i&&Array.isArray(b))if($(e)){let r=b.filter(t=>t!==e);j(e,t,r)}else j(e,t,[...b,e]);else{let r=c&&$(e)?void 0:e;j(e,t,r)}};return(0,t.jsx)("div",{ref:v,className:(0,r.default)(p,u.chips),style:m,...y,"data-id":h,"data-qa":f,children:e.map((e,n)=>(({id:e,label:n,iconLeft:i,iconRight:s,indicator:c},p)=>{let m=$(e);return(0,t.jsxs)("div",{className:(0,r.default)(u.chip,u.sizes[d],u.activeVariants[o],u.variants[a],[{[u.selected]:m}]),role:x?"checkbox":"radio","aria-checked":m,"aria-label":n,tabIndex:0,"data-qa":(0,l.g)(`${f}-item-${++p}`,!!f),onClick:t=>{S(e,t)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),S(e,t))},children:[i&&(0,t.jsx)("span",{className:(0,r.default)(u.icon,u.iconLeft),"aria-hidden":"true",children:i}),(0,t.jsx)("span",{className:(0,r.default)(u.label),children:n}),c&&(0,t.jsx)("div",{className:(0,r.default)(u.indicator,u.indicatorVariant[c])}),s&&(0,t.jsx)("span",{className:(0,r.default)(u.icon,u.iconRight),"aria-hidden":"true",children:s})]},e)})(e,n))})});d.displayName="Chips",e.s(["Chips",0,d],46381)},18524,e=>{"use strict";var t=e.i(82372);e.s(["CmsService",0,{getLayoutData:async e=>(await (0,t.callApi)({url:`/api/v1/layout/${e}`,options:{isMpScApi:!0}})).data||null,async getPageData(e,r){let n=new URLSearchParams({scLayoutName:e,scPageUrl:r}).toString();return(await (0,t.callApi)({url:`/api/v1/data/page-data?${n}`,options:{isMpScApi:!0}})).data||null},getPage:async e=>(await (0,t.callApi)({url:`/api/v1/sc-page/${e}`,options:{isMpScApi:!0}})).data||null}])},79335,e=>{"use strict";e.s(["EDITORS_EMAIL",0,"editors@finuslugi.ru","KASKO_URL",0,"/kasko","LK",0,"https://lk.finuslugi.ru/registration/","OPENGRAPH_IMAGE",0,"https://finuslugi.ru/icons/1200x630-logo.jpg","OSAGO_URL",0,"/osago"])},63186,(e,t,r)=>{"use strict";Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});let n=e.r(71645);r.TagManagerNoscript=function({gtmID:e,mtmURL:t,mtmID:r}){return n.createElement(n.Fragment,null,n.createElement("noscript",{id:"analytics-gtm-noscript",dangerouslySetInnerHTML:{__html:function({gtmID:e}){return`<iframe src="https://www.googletagmanager.com/ns.html?id=${e}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`}({gtmID:e})}}),n.createElement("noscript",{id:"analytics-mtm-noscript",dangerouslySetInnerHTML:{__html:function({mtmURL:e,mtmID:t}){return`<img src="${e}/matomo.php?idsite=${t}&rec=1" alt="Matomo Tracker" style="display:none;visibility:hidden" />`}({mtmURL:t,mtmID:r})}}))},r.TagManagerScript=function({gtmID:e,mtmURL:t,mtmID:r,autoInit:a=!0}){return n.createElement(n.Fragment,null,n.createElement("script",{id:"analytics-session-script",dangerouslySetInnerHTML:{__html:`
    (function(w) {
  /*! js-cookie v3.0.5 | MIT */
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t}));
  function uuidv4(){return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(a){return (a^Math.random()*16>>a/4).toString(16)})}
  function normalizeDomain(domain) {return '.'+domain.replace(/^http(s)?:\\/\\//gi, '').replace(/\\/$/, '').split('.').slice(-2).join('.')}
  var uuidv4re=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
  var browserId=Cookies.get('browserId')||w.browserId||(function(){
    try{return w.localStorage.getItem('browserId');}catch(e){return null;}
  })()||uuidv4();
  var sessionId=Cookies.get('browserSessionId')||w.browserSessionId||(function(){
    try{return w.sessionStorage.getItem('browserSessionId')||w.sessionStorage.getItem('browserId');}catch(e){return null;}
  })()||uuidv4();
  if(!browserId.match(uuidv4re)){browserId=uuidv4();}
  if(!sessionId.match(uuidv4re)){sessionId=uuidv4();}
  w.browserId=browserId;
  w.browserSessionId=sessionId;
  try{
    w.localStorage.setItem('browserId', browserId);
    w.sessionStorage.setItem('browserId', sessionId);
    w.sessionStorage.setItem('browserSessionId', sessionId);
  }catch(e){}
  var domain=normalizeDomain(w.location.hostname);
  var cookieOptions={path:'/',secure:true,domain:domain,sameSite:w.location.protocol==='https:'?'None':'Lax'};
  Cookies.set('browserId',browserId,Object.assign({},cookieOptions,{expires: 365}));
  Cookies.set('browserSessionId',sessionId,cookieOptions);
  w.dataLayer=w.dataLayer||[];w._mtm=w._mtm||[];
  w.dataLayer.push({browser_id:browserId,session_id:sessionId});
  w._mtm.push({event:'setBrowserSession',browser_id:browserId,session_id:sessionId});
})(window);
  `}}),n.createElement("script",{id:"analytics-gtm-script",dangerouslySetInnerHTML:{__html:function({gtmID:e}){return`
    (function(w,l,d){
      w._gtm_initialized=false;
      w[l]=w[l]||[];
      w[l].push({...(w._session||{})});
      w._init_gtm=function(){
        if(w._gtm_initialized)return;
        w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});
        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
        g.type='text/javascript';
        g.async=true;
        g.src='https://www.googletagmanager.com/gtm.js?id=${e}&l=dataLayer';
        s.parentNode.insertBefore(g,s);
        g.onload=function(){
          w._gtm_initialized=true;
        };
      }
    })(window,'dataLayer',document);
  `}({gtmID:e})}}),n.createElement("script",{id:"analytics-mtm-script",dangerouslySetInnerHTML:{__html:function({mtmURL:e,mtmID:t}){return`
    (function(w,l,d){
      w._mtm_initialized=false;
      w[l]=w[l]||[];
      w[l].push({...(w._session||{})});
      w._init_mtm=function(){
        if(w._mtm_initialized)return;
        w[l].push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});
        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
        g.type='text/javascript';
        g.async=true;
        g.src='${e}/js/container_${t}.js';
        s.parentNode.insertBefore(g,s);
        g.onload=function(){
          w._mtm_initialized=true;
        };
      }
    })(window,'_mtm',document);
  `}({mtmURL:t,mtmID:r})}}),a&&n.createElement("script",{id:"analytics-auto-init-script",dangerouslySetInnerHTML:{__html:`
    (function(w,g,m){
      if(typeof w[g]==='function')w[g]();
      if(typeof w[m]==='function')w[m]();
    })(window,'_init_gtm','_init_mtm');
  `}}))}},85426,(e,t,r)=>{t.exports=e.r(63186)},67638,e=>{"use strict";var t=e.i(47167);e.i(43476),e.i(85426);var r=e.i(8438);let n=(0,e.i(22468).g)("root-layout","sc");Object.freeze({layout:`${n}__layout`,body:`${n}__body`}),e.s(["getEnvValue",0,()=>{if(typeof window>"u")return{...t.default.env};let e=(0,r.g)();if(!e)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что env передан в RootLayout (LayoutClientInitializer вызовет setEnvStore).");return e}])},82372,e=>{"use strict";e.i(47167);let t=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,r=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,n=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function a(e,t){var r;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(r=e,console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`)):t}function o(e,i={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let s=e.trim();if(s.length<=9)switch(s.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return NaN;case"infinity":return 1/0;case"-infinity":return-1/0}if(!n.test(e)){if(i.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(t.test(e)||r.test(e)){if(i.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,a)}return JSON.parse(e)}catch(t){if(i.strict)throw t;return e}}let i=/#/g,s=/&/g,l=/\//g,c=/=/g,u=/\+/g,d=/%5e/gi,p=/%60/gi,m=/%7c/gi,f=/%20/gi;function h(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(m,"|").replace(u,"%2B").replace(f,"+").replace(i,"%23").replace(s,"%26").replace(p,"`").replace(d,"^").replace(l,"%2F")}function g(e){return h(e).replace(c,"%3D")}function y(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let w=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,b=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,_=/^([/\\]\s*){2,}[^/\\]/,v=/\/$|\/\?|\/#/,x=/^\.?\//;function $(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?w.test(e):b.test(e)||!!t.acceptRelative&&_.test(e)}let j=Symbol.for("ufo:protocolRelative");function S(e=""){let[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}class T extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let E=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function I(e="GET"){return E.has(e.toUpperCase())}let L=new Set(["image/svg","application/xml","application/xhtml","application/html"]),C=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function N(e,t){if(t)if(Array.isArray(t))for(let r of t)await r(e);else await t(e)}let A=new Set([408,409,425,429,500,502,503,504]),R=new Set([101,204,205,304]),k="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,P=k.fetch?(...e)=>k.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),O=function e(t={}){let{fetch:r=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:a=globalThis.AbortController}=t;async function i(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:+!I(e.options.method);let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):A.has(r))){let r="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return r>0&&await new Promise(e=>setTimeout(e,r)),s(e.request,{...e.options,retry:t-1})}}let r=function(e){let t=e.error?.message||e.error?.toString()||"",r=e.request?.method||e.options?.method||"GET",n=e.request?.url||String(e.request)||"/",a=`[${r}] ${JSON.stringify(n)}`,o=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=new T(`${a}: ${o}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(i,t,{get:()=>e[t]});for(let[t,r]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(i,t,{get:()=>e.response&&e.response[r]});return i}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,s),r}let s=async function(e,s={}){var l,c,d,p;let m,f,w,b={request:e,options:(l=t.defaults,w=function(e,t,r){if(!t)return new r(e);let n=new r(t);if(e)for(let[t,a]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))n.set(t,a);return n}(s?.headers??e?.headers,l?.headers,n),(l?.query||l?.params||s?.params||s?.query)&&(f={...l?.params,...l?.query,...s?.params,...s?.query}),{...l,...s,query:f,params:f,headers:w}),response:void 0,error:void 0};if(b.options.method&&(b.options.method=b.options.method.toUpperCase()),b.options.onRequest&&(await N(b,b.options.onRequest),b.options.headers instanceof n||(b.options.headers=new n(b.options.headers||{}))),"string"==typeof b.request){if(b.options.baseURL&&(b.request=function(e,t){var r;if(!(r=t)||"/"===r||$(e))return e;let n=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(n)){let t=e[n.length];if(!t||"/"===t||"?"===t)return e}return function(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace(x,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}(n,e)}(b.request,b.options.baseURL)),b.options.query){let e,t,r,n,a,o,i;c=b.request,d=b.options.query,t={...function(e=""){let t=Object.create(null);for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let n=y(e[1].replace(u," "));if("__proto__"===n||"constructor"===n)continue;let a=y((e[2]||"").replace(u," "));void 0===t[n]?t[n]=a:Array.isArray(t[n])?t[n].push(a):t[n]=[t[n],a]}return t}((e=function e(t="",r){let n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=""]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!$(t,{acceptRelative:!0}))return r?e(r+t):S(t);let[,a="",o,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",l=""]=i.match(/([^#/?]*)(.*)?/)||[];"file:"===a&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:c,search:u,hash:d}=S(l);return{protocol:a.toLowerCase(),auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:s,pathname:c,search:u,hash:d,[j]:!a}}(c)).search),...d},e.search=Object.keys(t).filter(e=>void 0!==t[e]).map(e=>{var r;return(("number"==typeof(r=t[e])||"boolean"==typeof r)&&(r=String(r)),r)?Array.isArray(r)?r.map(t=>`${g(e)}=${h(t)}`).join("&"):`${g(e)}=${h(r)}`:g(e)}).filter(Boolean).join("&"),r=(p=e).pathname||"",n=p.search?(p.search.startsWith("?")?"":"?")+p.search:"",a=p.hash||"",o=p.auth?p.auth+"@":"",i=p.host||"",b.request=(p.protocol||p[j]?(p.protocol||"")+"//":"")+o+i+r+n+a,delete b.options.query}"query"in b.options&&delete b.options.query,"params"in b.options&&delete b.options.params}if(b.options.body&&I(b.options.method))if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(b.options.body)){let e=b.options.headers.get("content-type");"string"!=typeof b.options.body&&(b.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(b.options.body).toString():JSON.stringify(b.options.body)),e||b.options.headers.set("content-type","application/json"),b.options.headers.has("accept")||b.options.headers.set("accept","application/json")}else("pipeTo"in b.options.body&&"function"==typeof b.options.body.pipeTo||"function"==typeof b.options.body.pipe)&&!("duplex"in b.options)&&(b.options.duplex="half");if(!b.options.signal&&b.options.timeout){let e=new a;m=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},b.options.timeout),b.options.signal=e.signal}try{b.response=await r(b.request,b.options)}catch(e){return b.error=e,b.options.onRequestError&&await N(b,b.options.onRequestError),await i(b)}finally{m&&clearTimeout(m)}if((b.response.body||b.response._bodyInit)&&!R.has(b.response.status)&&"HEAD"!==b.options.method){let e=(b.options.parseResponse?"json":b.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return C.test(t)?"json":"text/event-stream"===t?"stream":L.has(t)||t.startsWith("text/")?"text":"blob"}(b.response.headers.get("content-type")||"");switch(e){case"json":{let e=await b.response.text(),t=b.options.parseResponse||o;b.response._data=t(e);break}case"stream":b.response._data=b.response.body||b.response._bodyInit;break;default:b.response._data=await b.response[e]()}}return(b.options.onResponse&&await N(b,b.options.onResponse),!b.options.ignoreResponseError&&b.response.status>=400&&b.response.status<600)?(b.options.onResponseError&&await N(b,b.options.onResponseError),await i(b)):b.response},l=async function(e,t){return(await s(e,t))._data};return l.raw=s,l.native=(...e)=>r(...e),l.create=(r={},n={})=>e({...t,...n,defaults:{...t.defaults,...n.defaults,...r}}),l}({fetch:P,Headers:k.Headers,AbortController:k.AbortController});var D=e.i(67638);let U=0,z=[],B=new Map,q=async()=>{U>=12&&await new Promise(e=>{z.push(e)}),U+=1},M=async e=>{await q();try{return await e()}finally{U=Math.max(0,U-1),z.shift()?.()}},F=(e,t)=>{let{isPageContent:r,isMpScRedirects:n,isMpScApi:a}=t;return r?`${e.NEXT_PUBLIC_BASE_URL}/page-content`:a?`${e.NEXT_PUBLIC_BASE_URL}/sc`:e.NEXT_PUBLIC_BASE_URL},W=async({url:e,endpoint:t,method:r,config:n,env:a,tags:o})=>{let i=new AbortController,s=setTimeout(()=>i.abort(),5e3),l=()=>i.abort();n?.signal?.aborted&&i.abort(),n?.signal?.addEventListener("abort",l,{once:!0});let c=performance.now();try{let o=await O(e,{baseURL:t,method:r,headers:{...n?.headers},...n,signal:i.signal,timeout:5e3,retry:0,next:{revalidate:Number(a.REVALIDATE_REQUEST_VALUE)||1800,...{}}}),s=performance.now()-c;return s>=1e3&&console.warn(`Запрос ${t}${e} занял ${s.toFixed(2)} ms`),{data:o,error:null}}catch(r){return r.status??r.statusCode,console.error("Ошибка запроса",`${r}: ${t}${e}`),{data:null,error:r||"Unknown error"}}finally{clearTimeout(s),n?.signal?.removeEventListener("abort",l)}},H=async({url:e,options:t={},config:r})=>{let n=(0,D.getEnvValue)(),a=F(n,t),o=(r?.method||"GET").toUpperCase();if(!a)return console.error("Ошибка запроса: API endpoint не задан",e),{data:null,error:"API endpoint is not configured"};let i=()=>M(()=>W({url:e,endpoint:a,method:o,config:r,env:n,tags:t.tags}));if(r?.signal||"GET"!==o&&"HEAD"!==o)return i();var s=`${o}:${a}${e}`;let l=B.get(s);if(l)return l;let c=i().finally(()=>{B.delete(s)});return B.set(s,c),c};e.s(["callApi",0,H,"getApiEndpoint",0,F],82372)},17212,e=>{"use strict";e.s(["convertSettledData",0,function(e,t){return e?.status==="fulfilled"?e.value:t}])},1178,(e,t,r)=>{let n;{let e=e=>function(){throw Error(`\`${e}\` is only available in a Server Component.`)};n={unstable_cache:function(e){return"function"!=typeof e?e:function(){return e.apply(this,arguments)}},unstable_noStore:function(){},updateTag:e("updateTag"),revalidateTag:e("revalidateTag"),revalidatePath:e("revalidatePath"),refresh:e("refresh"),cacheLife:e("cacheLife"),cacheTag:e("cacheTag")}}let a=!1,o=!1;n.unstable_cacheLife=function(){return a||(a=!0,console.error(Error("`unstable_cacheLife` was recently stabilized and should be imported as `cacheLife`. The `unstable` prefixed form will be removed in a future version of Next.js."))),n.cacheLife.apply(this,arguments)},n.unstable_cacheTag=function(){return o||(o=!0,console.error(Error("`unstable_cacheTag` was recently stabilized and should be imported as `cacheTag`. The `unstable` prefixed form will be removed in a future version of Next.js."))),n.cacheTag.apply(this,arguments)},t.exports=n,r.unstable_cache=n.unstable_cache,r.revalidatePath=n.revalidatePath,r.revalidateTag=n.revalidateTag,r.updateTag=n.updateTag,r.unstable_noStore=n.unstable_noStore,r.cacheLife=n.cacheLife,r.unstable_cacheLife=n.unstable_cacheLife,r.cacheTag=n.cacheTag,r.unstable_cacheTag=n.unstable_cacheTag,r.refresh=n.refresh},24359,e=>{"use strict";let t={getItem:e=>{if(typeof document>"u")return null;let t=document.cookie.split(";").find(t=>t.split("=")[0].trim()===e);return t?t.split("=")[1]??null:null},setItem:(e,t,r={})=>{if(typeof document>"u")return;(r={path:"/",...r}).expires instanceof Date&&(r.expires=r.expires.toUTCString());let n=`${encodeURIComponent(e)}=${encodeURIComponent(t)}`;for(let e in r){if(!r.hasOwnProperty(e))continue;n+=`; ${e}`;let t=r[e];!0!==t&&(n+=`=${t}`)}document.cookie=n},removeItem:e=>{t.setItem(e,"",{"max-age":-1})}};e.s(["a",0,t])},71121,e=>{"use strict";let t=Object.freeze({xs:Object.freeze({maxWidth:599}),s:Object.freeze({minWidth:600,maxWidth:767}),m:Object.freeze({minWidth:768,maxWidth:1023}),l:Object.freeze({minWidth:1024,maxWidth:1279}),xl:Object.freeze({minWidth:1280,maxWidth:1439}),"2xl":Object.freeze({minWidth:1440,maxWidth:1919}),"3xl":Object.freeze({minWidth:1920})}),r=Object.freeze(Object.keys(t));Object.freeze(r.filter(e=>"xs"!==e)),Object.freeze(r.filter(e=>"3xl"!==e));var n=e.i(71645);function a(){return"u"<typeof window}e.i(91402);let o=a()?n.useLayoutEffect:n.useEffect;function i(e,t=!1){return a()?t:window.matchMedia(e).matches}function s(e,{defaultValue:t=!1,initializeWithValue:r=!0}={}){let[a,l]=(0,n.useState)(()=>r?i(e,t):t??!1);function c(){l(i(e))}return o(()=>{let t=window.matchMedia(e);return c(),"function"==typeof t.addListener?t.addListener(c):t.addEventListener("change",c),()=>{"function"==typeof t.removeListener?t.removeListener(c):t.removeEventListener("change",c)}},[e]),a}e.s(["useBreakpointDown",0,function(e){let{maxWidth:r}=t[e];return s(`screen and (max-width: ${r}px)`)},"useBreakpointUp",0,function(e){let{minWidth:r}=t[e];return s(`screen and (min-width: ${r}px)`)}],71121)},91784,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(43489),a=e.i(7670),o=e.i(2753),i=e.i(14044),s=e.i(54061),l=e.i(16727),c=e.i(58858),u=e.i(21214),d=e.i(2404);let p=(0,s.g)("modal"),m=Object.freeze({modal:p,overlay:`${p}__overlay`,withoutFooter:`${p}--without-footer`,noContent:`${p}--no-content`,open:`${p}--open`,overlayOpen:`${p}__overlay--open`,height:{medium:`${p}--height-medium`,full:`${p}--height-full`},size:{s:`${p}--s`,m:`${p}--m`,l:`${p}--l`,xl:`${p}--xl`},header:`${p}__header`,headerText:`${p}__header-text`,headerTitle:`${p}__header-title`,headerSubtitle:`${p}__header-subtitle`,closeIcon:`${p}__close-icon`,backButton:`${p}__back-button`,backButtonText:`${p}__back-button-text`,headerStates:{centered:`${p}__header--centered`,withLongBtn:`${p}__header--with-long-btn`,defaultHeight:`${p}__header--default-height`},content:`${p}__content`,withoutPadding:`${p}__content--without-padding`,withScroll:`${p}__content--with-scroll`,footer:`${p}__footer`,footerContainer:`${p}__footer-container`,footerBtn:`${p}__footer-btn`,footerDescription:`${p}__footer-description`,divider:`${p}__divider`,dividerTop:`${p}__divider--top`,dividerBottom:`${p}__divider--bottom`}),f=({primaryBtnText:e,onPrimary:r,secondaryBtnText:n,onSecondary:o,thirdBtnText:s,onThird:c,description:u,children:d,noContent:p,dataQa:f})=>(0,t.jsxs)("div",{"data-qa":(0,i.g)(`${f}-footer`,!!f),className:(0,a.default)(m.footer,{[m.noContent]:p}),children:[!p&&(0,t.jsx)("div",{className:(0,a.default)(m.divider,m.dividerTop)}),d||(0,t.jsxs)("div",{className:m.footerContainer,children:[s&&(0,t.jsx)(l.a,{dataQa:(0,i.g)(`${f}-footer-third-btn`,!!f),label:s,variant:"secondary",size:"s",className:m.footerBtn,onClick:c}),n&&(0,t.jsx)(l.a,{dataQa:(0,i.g)(`${f}-footer-secondary-btn`,!!f),label:n,variant:"secondary",size:"s",className:m.footerBtn,onClick:o}),e&&(0,t.jsx)(l.a,{dataQa:(0,i.g)(`${f}-footer-primary-btn`,!!f),label:e,size:"s",className:m.footerBtn,onClick:r})]}),u&&(0,t.jsx)("span",{"data-qa":(0,i.g)(`${f}-footer-description`,!!f),className:m.footerDescription,children:u})]}),h=({text:e,title:r,subtitle:n,align:o="left",backBtnVariant:s,onBack:l,onClose:p,noContent:f,dataQa:h,withoutCloseBtn:g=!1})=>(0,t.jsxs)("div",{"data-qa":(0,i.g)(`${h}-header`,!!h),className:(0,a.default)(m.header,{[m.headerStates.centered]:"center"===o||!!s,[m.headerStates.withLongBtn]:"long"===s,[m.headerStates.defaultHeight]:!e&&!r&&!n}),children:[e&&(0,t.jsx)("span",{"data-qa":(0,i.g)(`${h}-header-text`,!!h),className:m.headerText,children:e}),r&&(0,t.jsx)("span",{"data-qa":(0,i.g)(`${h}-header-title`,!!h),className:m.headerTitle,children:r}),n&&(0,t.jsx)("span",{"data-qa":(0,i.g)(`${h}-header-subtitle`,!!h),className:m.headerSubtitle,children:n}),!g&&(0,t.jsx)("button",{"data-qa":(0,i.g)(`${h}-header-close`,!!h),type:"button",className:m.closeIcon,onClick:p,children:(0,t.jsx)(d.P,{children:(0,t.jsx)(u.S,{})})}),s&&(0,t.jsxs)("button",{"data-qa":(0,i.g)(`${h}-header-back`,!!h),type:"button",className:m.backButton,onClick:l,children:[(0,t.jsx)(d.P,{children:(0,t.jsx)(c.S,{})}),"long"===s&&(0,t.jsx)("span",{className:m.backButtonText,children:"Назад"})]}),!f&&(0,t.jsx)("div",{className:(0,a.default)(m.divider,m.dividerBottom)})]}),g=(0,r.forwardRef)(({header:e,footer:s,open:l=!1,size:c="m",noPadding:u=!1,height:d="full",onClose:p,children:g,className:y,style:w,dataQa:b,dataId:_,dismissDisabled:v=!1,...x},$)=>{let[j,S]=(0,r.useState)(!1),[T,E]=(0,r.useState)(!1),I=(0,r.useRef)(null);(0,r.useEffect)(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),(0,r.useEffect)(()=>{if(I.current&&cancelAnimationFrame(I.current),l)return S(!0),I.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{E(!0)})}),()=>{I.current&&cancelAnimationFrame(I.current)};{E(!1);let e=setTimeout(()=>{S(!1)},300);return()=>{clearTimeout(e),I.current&&cancelAnimationFrame(I.current)}}},[l]);let L=()=>{E(!1);let e=setTimeout(()=>{null==p||p(),S(!1)},300);return()=>clearTimeout(e)},{context:C}=(0,n.useFloating)({open:j,onOpenChange:e=>{e||L()}}),N=(0,n.useDismiss)(C,{outsidePressEvent:"mousedown",outsidePress:!v,escapeKey:!v}),A=(0,n.useRole)(C,{role:"dialog"}),{getFloatingProps:R}=(0,n.useInteractions)([N,A]),[k,P]=(0,r.useState)(!1),O=(0,r.useCallback)(e=>{e&&new ResizeObserver(()=>{P(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return j?(0,t.jsx)(n.FloatingPortal,{id:o.M,children:(0,t.jsx)(n.FloatingOverlay,{lockScroll:!0,className:(0,a.default)(m.overlay,{[m.overlayOpen]:T}),children:(0,t.jsx)(n.FloatingFocusManager,{context:C,children:(0,t.jsxs)("div",{ref:$,className:(0,a.default)(m.modal,m.size[c],m.height[d],{[m.withoutFooter]:!(null==s?void 0:s.primaryBtnText)&&!(null==s?void 0:s.children),[m.open]:T},y),style:w,...R(),...x,"data-id":_,"data-qa":b,children:[(0,t.jsx)(h,{...e,dataQa:b,noContent:!g,onClose:L}),g&&(0,t.jsx)("div",{"data-qa":(0,i.g)(`${b}-content`,!!b),ref:O,className:(0,a.default)(m.content,{[m.withoutFooter]:!(null==s?void 0:s.primaryBtnText)&&!(null==s?void 0:s.children),[m.withoutPadding]:u,[m.withScroll]:k}),children:g}),((null==s?void 0:s.primaryBtnText)||(null==s?void 0:s.children))&&(0,t.jsx)(f,{...s,dataQa:b,noContent:!g})]})})})}):null});g.displayName="Modal",e.s(["Modal",0,g])},53693,e=>{"use strict";var t=e.i(43476);e.i(34348);var r=e.i(47611),n=e.i(60822),a=e.i(7670);let o=(0,e.i(22468).g)("error-page-widget","sc"),i=Object.freeze({errorPageWidget:`${o}`,wrapper:`${o}__wrapper`,main:`${o}__main`,picture:`${o}__picture`,img:`${o}__img`,text:`${o}__text`,button:`${o}__button`,buttonMobile:`${o}__button-mobile`});e.s(["ErrorPageWidget",0,({variant:e="404",showcaseUrl:o="https://finuslugi.ru",minioUrl:s="https://assets.finuslugi.ru/mp-assets",className:l,isHomePage:c,title:u,subtitle:d,buttonText:p})=>{let m="404"===e,f=c?"Обновить":"На Главную",h=()=>{c?window.location.reload():window.open(`${o}/`,"_self")};return(0,t.jsx)("div",{className:(0,a.default)(i.errorPageWidget,l),children:(0,t.jsx)(n.Container,{children:(0,t.jsxs)("div",{className:i.wrapper,children:[(0,t.jsxs)("div",{className:i.main,children:[(0,t.jsxs)("div",{className:i.text,children:[(0,t.jsx)("h1",{dangerouslySetInnerHTML:{__html:u??(m?"Страница не найдена":"Сервис временно<br>недоступен")}}),(0,t.jsx)("p",{dangerouslySetInnerHTML:{__html:d??(m?"Похоже, ссылка устарела или содержит ошибку":"Мы уже исправляем проблему  – попробуйте зайти через несколько минут или обновить страницу ")}})]}),(0,t.jsx)(r.Button,{className:i.button,label:p??f,onClick:h,size:"s"})]}),(0,t.jsxs)("picture",{className:i.picture,children:[(0,t.jsx)("source",{srcSet:`${s}/widgets/ErrorPageWidget/cat_error_d.png`,media:"(min-width: 1024px)",width:696,height:452}),(0,t.jsx)("source",{srcSet:`${s}/widgets/ErrorPageWidget/cat_error_m.png`,media:"(max-width: 1023px)",width:311,height:200}),(0,t.jsx)("img",{src:`${s}/widgets/ErrorPageWidget/cat_error_m.png`,alt:"Что-то не работает",className:i.img,loading:"eager"})]}),(0,t.jsx)(r.Button,{className:i.buttonMobile,label:p??f,onClick:h,size:"s"})]})})})}])},58298,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(53693),a=e.i(71267),o=e.i(47167),i=e.i(1178),s=e.i(67638),l=e.i(79335),c=e.i(17212),u=e.i(18524);let d=Number(o.default.env.REVALIDATE_REQUEST_VALUE)||300,p=(0,i.unstable_cache)(async()=>{let e=(0,s.getEnvValue)(),[t,r]=await Promise.allSettled([u.CmsService.getPageData("PageHeaderWidget","homepage"),u.CmsService.getPageData("PageFooter","homepage")]),n=(0,c.convertSettledData)(t,null),a=(0,c.convertSettledData)(r,null),o=a?.value,i=e.NEXT_PUBLIC_BASE_URL,d=`${e.NEXT_PUBLIC_S3_ASSETS}/mp-assets`;return{headerData:{data:n?.value,showcaseUrl:i,minioUrl:d,lkUrl:l.LK,enableExternalLinkWarning:"true"===e.NEXT_PUBLIC_ENABLE_EXTERNAL_LINK_WARNING},footerData:{data:o,showcaseUrl:i,minioUrl:d}}},["layout-header-footer"],{revalidate:d,tags:["layout"]}),m=(0,r.cache)(()=>p());e.s(["default",0,function(){let[e,o]=(0,r.useState)(null);return((0,r.useEffect)(()=>{m().then(e=>{o(e)})},[]),e)?(0,t.jsxs)(a.PageLayout,{headerData:e.headerData,footerData:e.footerData,children:[(0,t.jsx)(n.ErrorPageWidget,{variant:"503"}),";"]}):null}],58298)},44303,e=>{e.v(t=>Promise.all(["static/chunks/0mb9k_-8t1xn1.js"].map(t=>e.l(t))).then(()=>t(17750)))},56322,e=>{e.v(t=>Promise.all(["static/chunks/2d4_1j3q-zriu.css","static/chunks/1kabnzz386u0s.js"].map(t=>e.l(t))).then(()=>t(32200)))}]);