(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,71666,71469,e=>{"use strict";var t=e.i(43476),a=e.i(7670),i=e.i(12569),l=e.i(54061);let s={display:"h1",hero:"h1",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6"},n=(0,l.g)("heading"),r=Object.freeze({heading:n,states:Object.freeze({display:`${n}--display`,hero:`${n}--hero`,h1:`${n}--h1`,h2:`${n}--h2`,h3:`${n}--h3`,h4:`${n}--h4`,h5:`${n}--h5`,h6:`${n}--h6`})}),o=({as:e,children:l,weight:n,type:o,lineClamp:c,className:d,style:u,dataQa:m,dataId:p,...h})=>{var f;let g=e||s[o]||"div",v=/^h[1-6]$/.test(g),_=(null==(f=o.match(/\d+/))?void 0:f[0])||1;return(0,t.jsx)(g,{className:(0,a.default)(r.heading,r.states[o],d),style:{...n?{fontWeight:`var(--font-weight-${n})`}:void 0,...c?{WebkitLineClamp:c,lineClamp:c,...i.l}:void 0,...u},role:v?null:"heading","aria-level":v?null:_,...h,"data-id":p,"data-qa":m,children:l})};o.displayName="Heading",e.s([],71666),e.s(["Heading",0,o],71469)},24301,e=>{"use strict";let t=["finuslugi.ru","inguru.dev","moex.com"];e.s(["insertRelToHtmlText",0,e=>e?e=e.replace(/href="(.*?)"/gi,(e,a)=>`${e}${a.includes("//")&&!t.find(e=>a&&a.indexOf(e)>=0)?' rel="nofollow"':""}`):""],24301)},6441,e=>{e.q("/service-navigator/_next/static/media/eye2.06n57tux4kq96.svg")},93645,e=>{e.q("/service-navigator/_next/static/media/arrow.1klzm52owtowv.svg")},1013,e=>{e.q("/service-navigator/_next/static/media/Bar chart vertical.1-1xdyyhijnmm.svg")},62199,e=>{e.q("/service-navigator/_next/static/media/Chart square.2q58qgbj_uq5b.svg")},24188,e=>{e.q("/service-navigator/_next/static/media/Coins percent.1inbzpeiqywpm.svg")},60498,e=>{e.q("/service-navigator/_next/static/media/Compass.3erp_tbxvvxcp.svg")},75195,e=>{e.q("/service-navigator/_next/static/media/Home.3i6knd-rj1a73.svg")},49432,e=>{e.q("/service-navigator/_next/static/media/Newspaper.0b11o8-b80652.svg")},39454,e=>{e.q("/service-navigator/_next/static/media/Play square.2_-6qb9hzwaxt.svg")},80579,e=>{e.q("/service-navigator/_next/static/media/Question square.2148e8aq_2vwn.svg")},91572,e=>{e.q("/service-navigator/_next/static/media/Safe square.10lor89vhj39s.svg")},70264,e=>{e.q("/service-navigator/_next/static/media/Shield checkmark.3lnw4mry582d7.svg")},73127,e=>{e.q("/service-navigator/_next/static/media/Star.3b5n7-akfja30.svg")},25716,e=>{e.q("/service-navigator/_next/static/media/TetraStar.1_btujbyklvjh.svg")},89805,e=>{e.q("/service-navigator/_next/static/media/Wallet.441wv3a3wndl0.svg")},2927,e=>{e.q("/service-navigator/_next/static/media/thumb-up.1jza8g0o-u773.svg")},50219,e=>{e.q("/service-navigator/_next/static/media/clock2.1xkuyqg0i_zrt.svg")},51826,e=>{e.q("/service-navigator/_next/static/media/tack.3s2sx3-nm_-bq.svg")},24110,e=>{e.q("/service-navigator/_next/static/media/app-qr.43mged6k3z4ug.svg")},15182,e=>{e.q("/service-navigator/_next/static/media/adv-apps.20sazt7s756lc.png")},65018,e=>{"use strict";var t=e.i(71645);let a={xl:"screen and (max-width: 1440px)",lg:"screen and (max-width: 1200px)",md:"screen and (max-width: 900px)",sm:"screen and (max-width: 600px)"};e.s(["useMedia",0,(e="lg")=>{let i=(0,t.useRef)(null),[l,s]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{!i.current&&window&&(i.current=window?.matchMedia(a[e]||e));let t=()=>{s(!!i.current&&i.current.matches)};return t(),i.current?.addEventListener("change",t),()=>i.current?.removeEventListener("change",t)},[e]),l}])},62798,e=>{"use strict";e.i(91402),e.s(["pluralize",0,(e,t,a,i)=>{let l=[t,a,i];return l[e%100>4&&e%100<20?2:[2,0,1,1,1,2][e%10<5?e%10:5]]||l[0]}])},2753,21214,e=>{"use strict";e.s(["D",0,"finkit-dropdown","M",0,"finkit-modals","T",0,"finkit-tooltips"],2753);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 7.22a.743.743 0 0 1 1.06 0L12 10.94l3.72-3.72a.743.743 0 0 1 1.06 0 .742.742 0 0 1 0 1.06L13.061 12l3.72 3.72a.743.743 0 0 1 0 1.06.743.743 0 0 1-1.061 0L12 13.06l-3.72 3.72a.743.743 0 0 1-1.06 0 .743.743 0 0 1 0-1.06L10.94 12 7.22 8.28a.743.743 0 0 1 0-1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}],21214)},3315,e=>{"use strict";var t=e.i(43476),a=e.i(7670),i=e.i(71645),l=e.i(2404),s=e.i(12569);function n(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("defs",null,i.createElement("clipPath",{id:"a"},i.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),i.createElement("g",{clipPath:"url(#a)"},i.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm1.5 0a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0Zm12.28-1.72-4.25 4.25a.722.722 0 0 1-.53.22.722.722 0 0 1-.53-.22l-2.25-2.25a.743.743 0 0 1 0-1.06.743.743 0 0 1 1.06 0L11 12.94l3.72-3.72a.743.743 0 0 1 1.06 0 .743.743 0 0 1 0 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))}function r(e){return i.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M12.617 2.035a4.736 4.736 0 0 0-1.232 0c-1.28.167-2.263 1.01-3.216 2.25-.944 1.231-1.97 3.005-3.284 5.28l-.06.105c-1.316 2.277-2.342 4.053-2.937 5.487-.6 1.447-.838 2.72-.344 3.912.159.382.366.74.617 1.069.785 1.024 2.007 1.454 3.56 1.659 1.539.202 3.59.202 6.22.202h.12c2.63 0 4.681 0 6.22-.202 1.553-.204 2.775-.635 3.56-1.66a4.75 4.75 0 0 0 .617-1.068c.494-1.192.256-2.465-.344-3.912-.595-1.434-1.621-3.21-2.937-5.487l-.06-.105c-1.315-2.275-2.34-4.049-3.285-5.28-.952-1.24-1.935-2.083-3.215-2.25ZM11.58 3.522a3.23 3.23 0 0 1 .844 0c.678.089 1.343.535 2.22 1.677.877 1.143 1.854 2.83 3.205 5.169 1.352 2.34 2.328 4.031 2.88 5.364.552 1.331.606 2.13.344 2.762-.108.261-.25.507-.422.731-.415.543-1.135.897-2.564 1.085-1.43.188-3.382.189-6.085.189s-4.655-.001-6.085-.19c-1.43-.187-2.149-.54-2.564-1.084a3.249 3.249 0 0 1-.422-.73c-.262-.632-.208-1.432.344-2.763.552-1.333 1.528-3.023 2.88-5.364 1.351-2.338 2.328-4.026 3.205-5.17.877-1.141 1.543-1.587 2.22-1.676Zm1.173 5.227a.75.75 0 0 0-1.5 0v5.5a.75.75 0 1 0 1.5 0v-5.5Zm-1.75 8.253a1 1 0 1 1 2-.005 1 1 0 0 1-2 .005Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let o=(0,e.i(54061).g)("caption"),c=Object.freeze({caption:o,captionWithIcon:`${o}--with-icon`,content:`${o}__content`,icon:`${o}__icon`,text:`${o}__text`,size:{s:`${o}--s`,m:`${o}--m`},states:{success:`${o}--success`,error:`${o}--error`,warning:`${o}--warning`}});function d({as:e,children:i,state:o="default",size:u="m",text:m,withoutIcon:p=!1,lineClamp:h,role:f,dataQa:g,dataId:v,className:_,style:b,...y}){let x=m||i,w=!p&&["success","error","warning"].includes(o),j="success"===o?n:r,k=(0,a.default)(_,c.caption,c.size[u],{[c.captionWithIcon]:w,[c.states.success]:"success"===o,[c.states.error]:"error"===o,[c.states.warning]:"warning"===o});return(0,t.jsx)(e||"div",{className:k,style:b,role:f,...y,"data-id":v,"data-qa":g,children:(0,t.jsxs)("div",{className:c.content,children:[w&&x&&(0,t.jsx)(l.P,{className:c.icon,children:(0,t.jsx)(j,{})}),(0,t.jsx)("span",{className:(0,a.default)(c.text),style:{...h?{WebkitLineClamp:h,lineClamp:h,...s.l}:void 0},children:x})]})})}d.displayName="Caption",e.s(["C",0,d])},30083,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("defs",null,t.createElement("clipPath",{id:"a"},t.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),t.createElement("g",{clipPath:"url(#a)"},t.createElement("path",{d:"m10.53 16.53 8.25-8.25a.743.743 0 0 0 0-1.06.743.743 0 0 0-1.06 0L10 14.94l-3.72-3.72a.743.743 0 0 0-1.06 0 .743.743 0 0 0 0 1.06l4.25 4.25c.146.147.323.22.53.22a.722.722 0 0 0 .53-.22Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))},"g",0,(e,t,a)=>{if(e)return"object"!=typeof e?a:"function"==typeof t?t(e):e[t]},"v",0,e=>{let{width:t,height:a}=e.getBoundingClientRect();return{x:{start:e.scrollLeft,end:Math.floor(e.scrollLeft+t)},y:{start:e.scrollTop,end:Math.floor(e.scrollTop+a)}}}])},10653,e=>{"use strict";e.s(["i",0,function(e){return void 0!==e}])},33329,e=>{"use strict";var t=e.i(43476),a=e.i(7670),i=e.i(71645),l=e.i(2404),s=e.i(54061);function n(e){return i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.836 6.466a1.5 1.5 0 0 1-.051 2.12l-9.45 9a1.5 1.5 0 0 1-2.07 0l-4.05-3.857a1.5 1.5 0 1 1 2.07-2.172L9.3 14.429l8.415-8.015a1.5 1.5 0 0 1 2.121.052Z"}))}function r(e){return i.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("rect",{width:18,height:3,x:3,y:10.5,fill:"currentColor",rx:1.5}))}let o=["checkbox"],c=(0,s.g)("common-marker"),d={marker:c,icon:`${c}__icon`,states:{checkbox:`${c}--checkbox`,radio:`${c}--radio`,toggle:`${c}--toggle`,error:`${c}--error`,checked:`${c}--checked`,disabled:`${c}--disabled`,inverted:`${c}--inverted`,indeterminate:`${c}--indeterminate`}},u=({as:e,state:i="default",type:s="checkbox",className:c,checked:u,inverted:m,disabled:p,...h})=>(0,t.jsx)(e||"span",{...h,className:(0,a.default)(c,d.marker,{[d.states.checkbox]:"checkbox"===s,[d.states.radio]:"radio"===s,[d.states.toggle]:"toggle"===s,[d.states.checked]:!!u,[d.states.indeterminate]:"indeterminate"===u,[d.states.error]:"error"===i,[d.states.inverted]:m,[d.states.disabled]:p}),children:o.includes(s)&&(0,t.jsx)(l.P,{className:(0,a.default)(d.icon,{[d.states.checked]:u,[d.states.inverted]:m,[d.states.error]:"error"===i,[d.states.disabled]:p}),children:"indeterminate"===u?(0,t.jsx)(r,{}):(0,t.jsx)(n,{})})});u.displayName="CommonMarker",e.s(["C",0,u])},23179,e=>{"use strict";var t=e.i(43476),a=e.i(54061),i=e.i(71645),l=e.i(7670),s=e.i(43489),n=e.i(53760),r=e.i(58950),o=e.i(2753),c=e.i(89485),d=e.i(14044),u=e.i(21214),m=e.i(2404);function p(){return"u"<typeof window}let h=p()?i.useLayoutEffect:i.useEffect;function f(e,t=!1){return p()?t:window.matchMedia(e).matches}function g(e){let{minWidth:t}=c.a[e];return function(e,{defaultValue:t=!1,initializeWithValue:a=!0}={}){let[l,s]=(0,i.useState)(()=>a?f(e,t):t??!1);function n(){s(f(e))}return h(()=>{let t=window.matchMedia(e);return n(),"function"==typeof t.addListener?t.addListener(n):t.addEventListener("change",n),()=>{"function"==typeof t.removeListener?t.removeListener(n):t.removeEventListener("change",n)}},[e]),l}(`screen and (min-width: ${t}px)`)}let v=Object.freeze({divider:(0,a.g)("dropdown-divider")}),_=({...e})=>(0,t.jsx)("div",{...e,className:v.divider});_.displayName="DropdownDivider";let b=(0,a.g)("dropdown-group"),y=Object.freeze({group:b,title:`${b}__title`,content:`${b}__content`}),x=({title:e,children:a,...i})=>(0,t.jsxs)("div",{...i,className:y.group,children:[(0,t.jsx)("div",{className:y.title,children:e}),(0,t.jsx)("div",{className:y.content,children:a})]});x.displayName="DropdownGroup";let w=(0,a.g)("dropdown-option"),j=Object.freeze({option:w,slot:`${w}__slot`,iconSlot:`${w}__slot--icon`,wrapper:`${w}__wrapper`,label:`${w}__label`,caption:`${w}__caption`,states:{danger:`${w}--danger`,success:`${w}--success`,focused:`${w}--focused`,disabled:`${w}--disabled`}}),k=(0,i.createContext)(null),N=()=>{let e=(0,i.useContext)(k);if(null===e)throw Error("Dropdown components must be wrapped in <Dropdown />");return e};function C({placement:e="bottom",width:t="auto",desktopMaxHeight:a,mobileFullHeight:l=!1,title:o,description:c,opened:d,onToggle:u,heading:m,footer:p,dataQa:h,dataId:f}={}){let[g,v]=(0,i.useState)(!1),_=d??g,b=u??v,y=(0,s.useFloating)({open:_,onOpenChange:b,placement:e,whileElementsMounted:n.autoUpdate,middleware:[(0,r.offset)(8),(0,r.flip)({fallbackAxisSideDirection:"none"}),(0,r.shift)({crossAxis:!1,padding:8})]});return(0,i.useMemo)(()=>({open:_,setOpen:b,...y,width:t,desktopMaxHeight:a,title:o,description:c,heading:m,footer:p,mobileFullHeight:l,dataQa:h,dataId:f}),[_,b,y,t,a,o,c,m,p,l,h,f])}let I=({children:e,...a})=>{let i=C(a);return(0,t.jsx)(k.Provider,{value:i,children:e})};I.displayName="Dropdown";let $=(0,a.g)("dropdown"),S=Object.freeze({dropdown:$,overlay:`${$}__overlay`,mobileHeading:`${$}__mobile-heading`,heading:`${$}__heading`,title:`${$}__title`,description:`${$}__description`,content:`${$}__content`,contentInner:`${$}__content-inner`,footer:`${$}__footer`,close:`${$}__close`,closeIcon:`${$}__close-icon`,states:{auto:`${$}--auto`,fullHeight:`${$}--full-height`}}),M=({footer:e,...a})=>e?(0,t.jsx)("div",{...a,className:S.footer,children:e}):null;M.displayName="DropdownFooter";let L=({title:e,description:a,heading:l,isDesktop:s,setOpen:n,...r})=>{let o=(0,i.useMemo)(()=>l||(s&&(e||a)?(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)("div",{className:S.title,children:e}),a&&(0,t.jsx)("div",{className:S.description,children:a})]}):null),[a,l,s,e]);return(0,t.jsxs)(t.Fragment,{children:[!s&&(0,t.jsxs)("div",{...r,className:S.mobileHeading,children:[e&&(0,t.jsx)("div",{className:S.title,children:e}),a&&(0,t.jsx)("div",{className:S.description,children:a}),(0,t.jsx)("button",{className:S.close,type:"button",tabIndex:-1,"aria-label":"Закрыть окно",onClick:()=>n(!1),children:(0,t.jsx)(m.P,{"aria-hidden":"true",className:S.closeIcon,style:{display:"inline-flex"},children:(0,t.jsx)(u.S,{})})})]}),o&&(0,t.jsx)("div",{...r,className:S.heading,children:o})]})};L.displayName="DropdownHeader";let W=(0,i.forwardRef)(({style:e,contentInnerRef:a,...n},r)=>{var c,u;let{open:m,context:p,width:h,floatingStyles:f,refs:v,heading:_,title:b,description:y,footer:x,desktopMaxHeight:w,mobileFullHeight:j,dataQa:k,dataId:C,setOpen:I}=N(),$=(0,s.useMergeRefs)([v.setFloating,r]),W=(0,i.useRef)(null),T=g("s"),{isMounted:E,styles:R}=(0,s.useTransitionStyles)(p,{initial:{opacity:.2,transform:T?"translate(0, 0)":"translate(0, 100%)"},open:{opacity:1,transform:"translate(0, 0)"},duration:{open:300,close:100}});if((0,i.useEffect)(()=>{let e=({target:e})=>{!m||[W.current,v.reference.current].some(t=>t===e||t&&t.contains(e))||I(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[m,v.reference,I]),!E)return null;let Z=(0,t.jsxs)("div",{ref:W,className:(0,l.default)(S.dropdown,{[S.states.fullHeight]:j}),role:T?"popup":"dialog","aria-modal":!T,"data-id":C,"data-qa":k,style:R,children:[(0,t.jsx)(L,{title:b,description:y,heading:_,isDesktop:T,setOpen:I,"data-qa":(0,d.g)(`${k}-header`,!!k)}),(0,t.jsx)("div",{...n,className:S.content,"data-qa":(0,d.g)(`${k}-content`,!!k),children:(0,t.jsx)("div",{className:S.contentInner,style:{maxHeight:T?w:void 0},ref:a,children:n.children})}),(0,t.jsx)(M,{"data-qa":(0,d.g)(`${k}-header`,!!k),footer:x})]});if(T){let a;return"inherit"===h?a=null==(u=null==(c=null==v?void 0:v.reference)?void 0:c.current)?void 0:u.clientWidth:"auto"===h?a=void 0:"number"==typeof h&&(a=h),(0,t.jsx)("div",{className:(0,l.default)(S.overlay,{[S.states.auto]:"auto"===h}),style:{...e,...f,...void 0!==a&&{width:a}},ref:$,children:Z})}return(0,t.jsx)(s.FloatingPortal,{id:o.D,children:(0,t.jsx)(s.FloatingOverlay,{lockScroll:!0,className:(0,l.default)(S.overlay,{[S.states.auto]:"auto"===h}),style:e,ref:$,children:Z})})});W.displayName="DropdownContent";let T=(0,i.forwardRef)(function({children:e,asChild:a=!1,disabled:l,...n},r){let{refs:o,open:c,setOpen:d}=N(),u=e.ref,m=(0,s.useMergeRefs)([o.setReference,r,u]),p=(0,i.useCallback)(()=>{l||d(!c)},[l,c,d]);return a&&(0,i.isValidElement)(e)?(0,i.cloneElement)(e,{ref:m,disabled:l,onClick:p,...n,...e.props}):(0,t.jsx)("button",{ref:m,onClick:p,disabled:l,...n,type:"button",children:e})});T.displayName="DropdownTrigger",e.s(["D",0,I,"a",0,W,"b",0,k,"c",0,_,"d",0,M,"e",0,x,"f",0,L,"g",0,function({as:e,label:a,caption:s,iconLeft:n,iconRight:r,prepend:o,append:c,variant:d="default",disabled:u=!1,focused:m=!1,className:p,onClick:h,...f}){let g=(0,l.default)(p,j.option,{[j.states.focused]:m,[j.states.success]:"success"===d,[j.states.danger]:"danger"===d,[j.states.disabled]:!!u}),v=(0,i.useCallback)(e=>{e.preventDefault(),u||null==h||h(e)},[u,h]);return(0,t.jsxs)(e||"div",{...f,className:g,"aria-disabled":u,onClick:v,children:[o&&(0,t.jsx)("span",{className:j.slot,children:o}),n&&(0,t.jsx)("span",{className:(0,l.default)(j.slot,j.iconSlot),children:n}),(0,t.jsxs)("div",{className:j.wrapper,children:[(0,t.jsx)("span",{className:j.label,children:a}),s&&(0,t.jsx)("span",{className:j.caption,children:s})]}),r&&(0,t.jsx)("span",{className:(0,l.default)(j.slot,j.iconSlot),children:r}),c&&(0,t.jsx)("span",{className:j.slot,children:c})]})},"h",0,T,"i",0,"div","j",0,N,"k",0,g,"u",0,C])},14087,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(7670),l=e.i(30083),s=e.i(2404),n=e.i(10653),r=e.i(33329),o=e.i(23179);function c(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"m19.03 10.28-6.5 6.5a.75.75 0 0 1-1.06 0l-6.5-6.5a.75.75 0 1 1 1.06-1.06L12 15.19l5.97-5.97a.75.75 0 1 1 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let d=(0,e.i(54061).g)("select"),u={select:d,activator:`${d}__activator`,activatorWrapper:`${d}__activator-wrapper`,placeholder:`${d}__placeholder`,selected:`${d}__selected`,label:`${d}__label`,rightLabel:`${d}__right-label`,icon:`${d}__icon`,options:`${d}__options`,optionIcon:`${d}__option-icon`,caption:`${d}__caption`,states:{primary:`${d}--primary`,secondary:`${d}--secondary`,small:`${d}--s`,medium:`${d}--m`,large:`${d}--l`,opened:`${d}--opened`,error:`${d}--error`,success:`${d}--success`,selected:`${d}--selected`,disabled:`${d}--disabled`}};function m({value:e,label:d,options:p=[],optionValue:h="value",optionLabel:f="label",optionCaption:g="caption",optionDisabled:v="disabled",variant:_="primary",state:b,size:y="m",icon:x,rightLabel:w,clearable:j=!1,multiple:k=!1,disabled:N=!1,caption:C,placeholder:I,className:$,dataId:S,dataQa:M,isOpen:L=!1,classnameTrigger:W,selectedValue:T,onChange:E,onToggle:R,onSelect:Z,onUnselect:O,onFocus:Y,onBlur:P,...z}){let[A,F]=(0,a.useState)(!1),[D,J]=(0,a.useState)(),[V,U]=(0,a.useState)(),[B,X]=(0,a.useState)(!1),H=(0,a.useRef)(null),G=(0,a.useId)(),q=(0,a.useId)(),Q=(0,a.useId)();(0,a.useEffect)(()=>{e?J(e):J(k?[]:void 0)},[k,e]);let K=(0,a.useMemo)(()=>p.map((e,t)=>{let a=(0,l.g)(e,h,e),i=k&&Array.isArray(D)?D.map(e=>(0,l.g)(e,h,e)):(0,l.g)(D,h,D);return{index:t,value:a,label:(0,l.g)(e,f,e),caption:(0,l.g)(e,g),disabled:(0,l.g)(e,v,!1),selected:k?Array.isArray(i)&&i.includes(a):i===a,active:V===t,original:e,id:`${Q}-option-${t}`}}),[V,Q,D,k,g,v,f,h,p]),ee=(0,a.useMemo)(()=>K.filter(e=>e.selected),[K]),et=(0,a.useMemo)(()=>(0,n.i)(V)&&K[V].id,[V]),ea=(0,a.useCallback)(e=>{J(e),null==E||E(e)},[E]),ei=(0,a.useCallback)(()=>{if(H.current&&et){let{start:e,end:t}=(0,l.v)(H.current).y,a=document.getElementById(et);if(a){let i=a.offsetTop+a.clientHeight-t,l=e-a.offsetTop;i>0?H.current.scrollTop+=i+8:l>0&&(H.current.scrollTop-=l+8)}}},[et]),el=e=>{F(e),null==R||R(e)},es=(0,a.useCallback)(e=>{if(!(0,n.i)(e))return 0;let t=0===e?K.length-1:e-1;return K[t].disabled?es(t):t},[K]),en=(0,a.useCallback)(e=>{if(!(0,n.i)(e))return 0;let t=e===K.length-1?0:e+1;return K[t].disabled?en(t):t},[K]),er=(0,a.useCallback)(e=>{let t=e&&e.index!==K.length-1?K[e.index+1]:K[0];return t.disabled?er(t):t},[K]),eo=(0,a.useCallback)(e=>{let t=e&&0!==e.index?K[e.index-1]:K[K.length-1];return t.disabled?eo(t):t},[K]),ec=()=>{el(!0),U(ee.length>0?ee[0].index:0)},ed=()=>{el(!1),U(void 0)},eu=(0,a.useCallback)(e=>{if(!k){ea(j&&e.selected?void 0:e.original),ed();return}if(e.selected&&Array.isArray(D)){ea(D.filter(t=>(0,l.g)(t,h,t)!==e.value)),null==O||O(e.original);return}Array.isArray(D)&&(ea([...D,e.original]),null==Z||Z(e.original))},[j,ed,D,k,Z,O,h,ea]),em=(0,a.useCallback)(e=>{e.preventDefault(),A?ed():(j||k)&&(ee.forEach(e=>null==O?void 0:O(e.original)),ea(k?[]:void 0))},[j,ed,k,O,A,ee,ea]),ep=(0,a.useCallback)(()=>{A&&ed()},[ed,A]),eh=(0,a.useCallback)(e=>{(e.preventDefault(),A)?U(es(V)):k||ea(eo(ee[0]).original)},[V,es,eo,k,A,ee,ea]),ef=(0,a.useCallback)(e=>{(e.preventDefault(),A)?U(en(V)):k?ec():ea(er(ee[0]).original)},[V,en,er,k,A,ec,ee,ea]),eg=(0,a.useCallback)(e=>{switch(X(!0),e.key){case"Escape":case"Esc":em(e);break;case"Tab":ep();break;case"ArrowDown":ef(e);break;case"ArrowUp":eh(e)}},[ef,eh,em,ep]),ev=(0,a.useCallback)(e=>{(e.preventDefault(),A)?((0,n.i)(V)&&eu(K[V]),k||ed()):ec()},[V,ed,eu,K,k,A,ec]),e_=(0,a.useCallback)(e=>{X(!0),(" "===e.key||"Enter"===e.key)&&ev(e)},[ev]);(0,a.useEffect)(()=>{L&&(()=>{el(!0);let{value:t,label:a}=(Array.isArray(e)?e[0]:e)??{},i=K.find(e=>e.value===t&&e.label===a);U((null==i?void 0:i.index)??0)})()},[L]),(0,a.useEffect)(()=>{A&&ei()},[A,ei]),(0,a.useEffect)(()=>{if(!A)return;let e=e=>{eg(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[eg,A]);let eb=(0,i.default)(W,u.activator,{[u.states.primary]:"primary"===_,[u.states.secondary]:"secondary"===_,[u.states.small]:"s"===y,[u.states.medium]:"m"===y,[u.states.large]:"l"===y,[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.opened]:A,[u.states.disabled]:N}),ey=(0,a.useMemo)(()=>ee.length>0?(0,t.jsxs)(t.Fragment,{children:["s"!==y&&(0,t.jsx)("div",{id:q,className:(0,i.default)(u.label,{[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.opened]:A,[u.states.disabled]:N}),children:d},"label"),(0,t.jsx)("div",{className:(0,i.default)(u.selected,{[u.states.disabled]:N}),children:(null==T?void 0:T(ee.map(e=>e.original)))||ee.map(({label:e})=>e).join(", ")})]}):(0,t.jsx)("div",{id:q,className:(0,i.default)(u.placeholder,{[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.opened]:A,[u.states.disabled]:N}),children:I||d},"placeholder"),[N,d,q,A,I,ee,T,y,b]);return(0,t.jsx)("div",{className:(0,i.default)($,u.select),children:(0,t.jsxs)(o.D,{opened:A,onToggle:()=>{A?ed():ec()},width:"inherit",placement:"bottom",children:[(0,t.jsx)(o.h,{asChild:!0,disabled:N,children:(0,t.jsxs)("div",{className:eb,id:G,tabIndex:N?-1:0,role:"combobox","aria-haspopup":"listbox","aria-labelledby":q,"aria-controls":Q,"aria-disabled":N,"aria-expanded":A,...!N&&{onFocus:e=>{null==Y||Y(e)},onBlur:e=>{null==P||P(e)},onKeyDownCapture:e_,onKeyDown:A?void 0:eg},...z,"data-id":S,"data-qa":M,children:[(0,t.jsx)("div",{className:u.activatorWrapper,children:ey}),w&&(0,t.jsx)("div",{"aria-label":w,className:(0,i.default)(u.rightLabel,{[u.states.disabled]:N}),children:w}),x&&(0,t.jsx)("div",{"aria-hidden":"true",className:(0,i.default)(u.icon,{[u.states.disabled]:N}),children:x}),(0,t.jsx)("div",{className:(0,i.default)(u.icon,{[u.states.disabled]:N,[u.states.opened]:A}),children:(0,t.jsx)(s.P,{style:{fontSize:24},"aria-expanded":A,children:(0,t.jsx)(c,{})})})]})}),C&&(0,t.jsx)("div",{className:(0,i.default)(u.caption,{[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.secondary]:"secondary"===_,[u.states.disabled]:N}),children:C}),(0,t.jsx)(o.a,{contentInnerRef:H,children:(0,t.jsx)("ul",{role:"listbox",id:Q,className:u.options,onMouseOver:()=>{B&&X(!1)},children:K.map(e=>(0,t.jsx)(o.g,{as:"li",disabled:e.disabled,label:e.label,caption:e.caption,focused:e.active&&B,onClick:()=>eu(e),prepend:k?(0,t.jsx)(r.C,{type:"checkbox",checked:e.selected,disabled:e.disabled}):void 0,append:k?void 0:(0,t.jsx)(s.P,{className:(0,i.default)(u.optionIcon,{[u.states.selected]:e.selected}),style:{fontSize:24},children:(0,t.jsx)(l.S,{})}),"aria-selected":e.selected,role:"option",id:e.id},JSON.stringify(e.value)))})})]})})}m.displayName="Select",e.s(["Select",0,m])},91390,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(43489),l=e.i(7670),s=e.i(3315);e.i(89485);var n=e.i(14044),r=e.i(54061);let o=(...e)=>(...t)=>{e.forEach(e=>{null==e||e(...t)})},c=(0,r.g)("input-base"),d={wrapper:c,input:`${c}__input`,container:`${c}__container`,label:`${c}__label`,field:`${c}__field`,slotLeft:`${c}__slot-left`,rightLabel:`${c}__right-label`,caption:`${c}__caption`,placeholder:{visible:`${c}__placeholder`,hidden:`${c}__hidden`},states:{primary:`${c}--primary`,secondary:`${c}--secondary`,error:`${c}--error`,success:`${c}--success`,s:`${c}--s`,m:`${c}--m`,l:`${c}--l`,focused:`${c}--focused`,disabled:`${c}--disabled`,active:`${c}--active`,hasLabel:`${c}--has-label`,accent:`${c}--accent`}},u=(0,a.forwardRef)(({icon:e,rightLabel:r,slotLeft:c,disabled:u,state:m,size:p="m",variant:h="primary",label:f,value:g,placeholder:v,maskPlaceholder:_,autoFocus:b=!1,maskPlaceholderVariant:y="default",caption:x,type:w="text",inputMode:j="text",hasCaption:k,className:N,style:C,dataQa:I,dataId:$,inputRef:S,onChange:M,onFocus:L,onBlur:W,onKeyDown:T,...E},R)=>{let Z=(0,a.useId)(),{value:O,show:Y,hide:P}=((e=!1)=>{let[t,i]=(0,a.useState)(e),l=(0,a.useCallback)(()=>i(!0),[]);return{value:t,show:l,hide:(0,a.useCallback)(()=>i(!1),[]),toggle:(0,a.useCallback)(()=>i(e=>!e),[])}})(),z=(0,a.useRef)(null),A=(0,i.useMergeRefs)([S,z]),F=(0,a.useMemo)(()=>O||!!g||!!v,[g,O,v]),D=(0,a.useCallback)(()=>{var e;null==(e=z.current)||e.focus()},[]),J=(0,a.useMemo)(()=>{if(!_)return null;let e={hidden:g??"",visible:_.substring((null==g?void 0:g.length)??0)};return _.length===(null==g?void 0:g.length)?null:e},[_,g]);return(0,a.useEffect)(()=>{var e,t,a;if(!b)return;let i=(null==(e=z.current)?void 0:e.value.length)??0;null==(t=z.current)||t.focus(),null==(a=z.current)||a.setSelectionRange(i,i)},[b]),(0,t.jsxs)("div",{className:(0,l.default)(N,d.wrapper),style:C,"data-qa":I,"data-id":$,children:[(0,t.jsxs)("div",{className:(0,l.default)(d.input,d.states[h],d.states[p],{[d.states.focused]:O,[d.states.error]:"error"===m,[d.states.success]:"success"===m,[d.states.disabled]:!!u,[d.states.hasLabel]:f}),onClick:D,ref:R,children:[c&&(0,t.jsx)("div",{className:d.slotLeft,children:c}),(0,t.jsxs)("label",{htmlFor:Z,className:d.container,children:[f&&(0,t.jsx)("span",{className:(0,l.default)(d.label,{[d.states.active]:F,[d.states.s]:"s"===p,[d.states.disabled]:u,[d.states.error]:"error"===m,[d.states.success]:"success"===m}),children:f}),J&&!!g&&(0,t.jsxs)("div",{className:(0,l.default)(d.placeholder.visible,{[d.states.accent]:"accent"===y}),children:[J.hidden&&(0,t.jsx)("span",{className:d.placeholder.hidden,children:J.hidden}),J.visible]}),(0,t.jsx)("input",{...E,id:Z,ref:A,className:(0,l.default)(d.field,{[d.states.s]:"s"===p,[d.states.hasLabel]:f,[d.states.disabled]:u}),type:w,inputMode:j,autoComplete:"off",placeholder:v,value:g,disabled:u,onChange:e=>{null==M||M(e.target.value,e)},onFocus:o(Y,L),onBlur:o(P,W),onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),null==M||M("",{target:{value:""}})),null==T||T(e)}})]}),r&&(0,t.jsx)("div",{className:(0,l.default)(d.rightLabel,{[d.states.disabled]:u}),children:r}),e]}),(k||x)&&(0,t.jsx)(s.C,{dataQa:(0,n.g)(`${I}-caption`,!!I),className:(0,l.default)(d.caption,{[d.states.disabled]:u}),state:m,withoutIcon:!0,children:x})]})});u.displayName="InputBase",e.s(["I",0,u],91390)},881,43748,e=>{"use strict";var t=e.i(91390);e.s([],881),e.s(["InputBase",()=>t.I],43748)},95109,e=>{"use strict";e.s(["paramsToString",0,e=>{if(!e)return"";let t=new URLSearchParams;Object.entries(e).filter(([e,t])=>null!=t).forEach(([e,a])=>{Array.isArray(a)?a.forEach(a=>t.append(e,String(a))):t.append(e,String(a))});let a=t.toString();return a?`?${a}`:""}])},47694,80844,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(7670);function l(e){return a.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M12.004 7.246A1.247 1.247 0 0 1 10.75 6c0-.69.558-1.253 1.25-1.253.69 0 1.25.56 1.25 1.25 0 .688-.559 1.248-1.246 1.25ZM10.75 12c0 .686.559 1.252 1.254 1.247a1.252 1.252 0 0 0 1.246-1.25c0-.69-.56-1.25-1.25-1.25-.692 0-1.25.564-1.25 1.253Zm0 6c0 .686.559 1.253 1.254 1.247a1.252 1.252 0 0 0 1.246-1.25c0-.69-.56-1.25-1.25-1.25-.692 0-1.25.564-1.25 1.253Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}e.s(["S",0,l],80844);var s=e.i(3315),n=e.i(33329),r=e.i(2404);let o=(0,e.i(54061).g)("radio"),c=Object.freeze({radio:o,input:`${o}__input`,marker:`${o}__marker`,wrapper:`${o}__wrapper`,label:`${o}__label`,caption:`${o}__caption`,icon:`${o}__icon`,iconButton:`${o}__icon-button`,states:{error:`${o}--error`,disabled:`${o}--disabled`,inverted:`${o}--inverted`},sizes:{xs:`${o}--xs`,s:`${o}--s`,m:`${o}--m`},variants:{primary:`${o}--primary`,secondary:`${o}--secondary`}}),d=(0,a.forwardRef)(({value:e,variant:o="primary",checked:d=!1,state:u="default",label:m,disabled:p=!1,caption:h,className:f,style:g,icon:v,withIcon:_=!1,size:b="m",inverted:y=!1,children:x,inputRef:w,onChange:j,onIconClick:k,dataQa:N,dataId:C,...I},$)=>{let S=(0,a.useId)(),M=x||m;return(0,t.jsxs)("label",{ref:$,htmlFor:S,"data-marker-label":"",className:(0,i.default)(f,c.radio,{[c.states.disabled]:p,[c.states.inverted]:y,[c.states.error]:"error"===u,[c.sizes[b]]:!0,[c.variants[o]]:!0}),style:g,"data-id":C,"data-qa":N,children:[(0,t.jsx)("input",{id:S,value:e,checked:d,className:c.input,type:"radio",disabled:p,onChange:e=>{null==j||j(e.target.value,e)},ref:w,...I}),(0,t.jsx)("span",{className:c.marker,children:(0,t.jsx)(n.C,{type:"radio",checked:d,inverted:y,state:u,disabled:p})}),M&&(0,t.jsxs)("span",{className:c.wrapper,children:[(0,t.jsx)("span",{className:c.label,children:M}),h&&(0,t.jsx)(s.C,{className:c.caption,withoutIcon:!0,children:h})]}),_&&(0,t.jsx)("button",{type:"button",className:(0,i.default)(c.iconButton),onClick:p?void 0:k,children:(0,t.jsx)(r.P,{className:(0,i.default)(c.icon),children:v?(0,t.jsx)(t.Fragment,{children:v}):(0,t.jsx)(l,{})})})]})});d.displayName="Radio",e.s(["Radio",0,d],47694)},45756,e=>{"use strict";var t=e.i(71645);let a={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},i={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},l=e=>t.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10a9.971 9.971 0 007.071-2.929A9.97 9.97 0 0022 12c0-5.523-4.477-10-10-10zM3.5 12a8.5 8.5 0 1117 0 8.5 8.5 0 01-17 0zm8.872-4.977C13.657 7.18 15 8.15 15 9.761c0 .698-.179 1.238-.504 1.665-.307.401-.704.644-.98.812-.313.191-.477.293-.595.43-.083.096-.17.246-.17.584a.75.75 0 01-1.5 0c0-.66.193-1.164.531-1.558.28-.326.64-.544.89-.695l.062-.037c.287-.175.452-.29.568-.442.096-.126.198-.335.198-.759 0-.633-.532-1.158-1.309-1.252-.716-.087-1.454.236-1.717 1.2a.75.75 0 01-1.447-.394c.486-1.78 1.998-2.454 3.345-2.292zM11.999 15a1 1 0 10.002 2 1 1 0 00-.002-2z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function s({className:e,style:n,boxSize:r,size:o,onClick:c}){return t.default.createElement("span",{className:e,style:{...a,...c&&{cursor:"pointer"},...o&&{fontSize:`${o}px`},...r&&{width:`${r}px`,height:`${r}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...n},...c?{role:"button",tabIndex:"0",onClick:c}:{}},t.default.createElement(l,{viewBox:"0 0 24 24",style:i}))}s.displayName="IconFdsQuestionCircleO",e.s(["k",0,s])},8810,e=>{"use strict";let t;var a=e.i(43476),i=e.i(71645),l=e.i(60822);e.i(71666);var s=e.i(71469);e.i(8145);var n=e.i(13757),r=e.i(7670);let o=["credits","microCredits","autoCredits","cards"],c=(e,t)=>{if(typeof window>"u")return;let{pathname:a}=window.location;if("/"!==a&&"/home"!==a&&"/home/"!==a)return;let i=t=>{try{e({event:"data-event",eventCategory:t,eventAction:"click_button",eventLabel:"undefined",eventNameCard:"undefined",eventUrl:"undefined",eventValue:"undefined"})}catch{return}};"deposits"===t?i("ab_homepage_tolko_vklad"):(t&&o.includes(t)&&i("ab_homepage_tolko_kredit"),i("ab_homepage_krome_vkladov"))};var d=e.i(93562);e.i(46401);var u=e.i(34986),m=e.i(22468);let p=(0,m.g)("check-all","sc"),h=Object.freeze({wrapper:`${p}__wrapper`,link:`${p}__link`,icon:`${p}__icon`,iconGray:`${p}__icon--gray`}),f=({children:e,className:t,linkClassName:i,iconGrayBackground:l,Link:s,event:n,href:o,dataLayerPush:c,onClick:m})=>{let p=s??u.Link;return(0,a.jsx)("div",{className:(0,r.default)(h.wrapper,t),onClick:()=>{n&&c(n)},onClickCapture:e=>{let t=e.target instanceof Element?e.target.closest("a[href]"):null;t&&e.currentTarget.contains(t)&&(null==m||m())},children:(0,a.jsxs)(p,{className:(0,r.default)(h.link,i),href:o,children:[e,(0,a.jsx)("span",{className:(0,r.default)(h.icon,{[h.iconGray]:l}),children:(0,a.jsx)(d.K,{size:24})})]})})};var g=e.i(97052),v=e.i(57687);e.i(34348);var _=e.i(47611),b=e.i(56239),y=e.i(45756),x=e.i(44323);let w=(0,e.i(54061).g)("tag"),j=Object.freeze({tag:w,label:`${w}__label`,icon:`${w}__icon`,rounded:`${w}--rounded`,variant:{primary:`${w}--primary`,secondary:`${w}--secondary`,outline:`${w}--outline`,tertiary:`${w}--tertiary`,pink:`${w}--pink`,red:`${w}--red`,green:`${w}--green`,blue:`${w}--blue`,orange:`${w}--orange`,purple:`${w}--purple`,violet:`${w}--violet`,blur:`${w}--blur`},size:{s:`${w}--s`,m:`${w}--m`,l:`${w}--l`},iconMargin:{left:`${w}__icon--left`,right:`${w}__icon--right`}}),k=(0,i.forwardRef)(({label:e,size:t="m",rounded:i,variant:l="primary",iconLeft:s,iconRight:n,onIconLeftClick:o,onIconRightClick:c,className:d,style:u,dataQa:m,dataId:p,...h},f)=>(0,a.jsx)(a.Fragment,{children:e&&(0,a.jsxs)("div",{ref:f,className:(0,r.default)(j.tag,j.variant[l],j.size[t],{[j.rounded]:i},d),style:u,...h,"data-id":p,"data-qa":m,children:[s&&(0,a.jsx)("button",{type:"button",className:(0,r.default)(j.icon,j.iconMargin.left,{[j.size.l]:"l"===t}),onClick:e=>null==o?void 0:o(e),disabled:!o,children:s}),(0,a.jsx)("span",{className:(0,r.default)(j.label,j.size[t]),children:e}),n&&(0,a.jsx)("button",{type:"button",className:(0,r.default)(j.icon,j.iconMargin.right,{[j.size.l]:"l"===t}),onClick:e=>null==c?void 0:c(e),disabled:!c,children:n})]})}));k.displayName="Tag";var N=e.i(11864),C=e.i(14087),I=e.i(85900),$=((t=$||{}).light="light",t.gray="gray",t);let S=(0,m.g)("best-offers-banner","sc"),M=Object.freeze({bestOffersBaner:S,wrapper:`${S}__wrapper`,wideWrapper:`${S}__wrapper--wide`,whiteWrapper:`${S}__wrapper--white`,content:`${S}__content`,header:`${S}__header`,title:`${S}__title`,subtitle:`${S}__subtitle`,icon:`${S}__icon`,iconBlack:`${S}__icon--black`,iconWhite:`${S}__icon--white`,image:`${S}__image`}),L=({title:e,image:t,url:i,description:l,backgroundColor:s,textColor:o,wide:c,theme:u,handleBannerDataLayerPush:m,className:p})=>{let h=u===$.gray,f={"--bg-base":(null==s?void 0:s.base)??(h?"var(--color-white)":"var(--color-gray-400)"),"--bg-hover":(null==s?void 0:s.hover)??"var(--color-gray-500)"};return(0,a.jsxs)("div",{className:(0,r.default)(M.wrapper,p,{[M.wideWrapper]:c}),style:f,onClick:()=>{m(),window.open(i,"_blank")},children:[(0,a.jsxs)("div",{className:M.content,children:[(0,a.jsxs)("div",{className:M.header,children:[(0,a.jsx)(n.Text,{weight:"medium",size:"24",className:M.title,style:{color:o},children:e}),(0,a.jsx)("div",{className:(0,r.default)(M.icon,{[M.iconBlack]:h&&!(null!=o&&o.includes("color-white")),[M.iconWhite]:h&&!!(null!=o&&o.includes("color-white"))}),children:(0,a.jsx)(d.K,{size:32})})]}),l&&(0,a.jsx)(n.Text,{size:"16",style:{color:o},children:l})]}),(null==t?void 0:t.url)&&(0,a.jsx)("picture",{className:M.image,children:(0,a.jsx)("img",{src:t.url,width:t.width??150,height:t.height??"auto",alt:`Баннер ${e}`,loading:"lazy"})})]})},W=(0,m.g)("offer-card","sc"),T=Object.freeze({offerCard:W,wrapper:`${W}__wrapper`,whiteWrapper:`${W}__wrapper--white`,bankInfo:`${W}__bankInfo`,units:`${W}__units`,unitsColumn:`${W}__units--column`,unit:`${W}__unit`,unitRow:`${W}__unit--row`,unitTitleWrapper:`${W}__unitTitleWrapper`,unitTitle:`${W}__unitTitle`,tooltipIcon:`${W}__tooltipIcon`,unitValue:`${W}__unitValue`,bottomBlock:`${W}__bottomBlock`,tags:`${W}__tags`,tag:`${W}__tag`,button:`${W}__button`,buttonRounded:`${W}__button--rounded`,buttonAdditional:`${W}__button--additional`}),E={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},R={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},Z=e=>i.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{d:"M13.328 2.869a1.444 1.444 0 00-2.65 0A694.174 694.174 0 008.47 7.85a648.96 648.96 0 00-5.196.656c-1.266.165-1.673 1.722-.823 2.553a641.289 641.289 0 003.856 3.748A704.06 704.06 0 005.29 20.22c-.214 1.16.995 2.24 2.15 1.572a650.04 650.04 0 004.562-2.66c1.504.887 3.346 1.956 4.564 2.66 1.154.667 2.363-.411 2.15-1.572a702.887 702.887 0 00-1.017-5.412 664.068 664.068 0 003.856-3.748c.85-.832.443-2.389-.824-2.553-1.383-.18-3.479-.45-5.195-.657a696.41 696.41 0 00-2.208-4.982z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function O({className:e,style:t,boxSize:a,size:l,onClick:s}){return i.default.createElement("span",{className:e,style:{...E,...s&&{cursor:"pointer"},...l&&{fontSize:`${l}px`},...a&&{width:`${a}px`,height:`${a}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...s?{role:"button",tabIndex:"0",onClick:s}:{}},i.default.createElement(Z,{viewBox:"0 0 24 24",style:R}))}O.displayName="IconFdsStarF";let Y=({title:e,value:t,tooltip:l,textColor:s,unitsAsColumn:o,isTitleUnit:c})=>{let d;return(0,a.jsxs)("div",{className:(0,r.default)(T.unit,{[T.unitRow]:o}),children:[(0,a.jsxs)("div",{className:T.unitTitleWrapper,children:[(0,a.jsx)(n.Text,{size:"14",className:T.unitTitle,children:e}),l&&(0,a.jsx)(x.Tooltip,{text:l,children:(0,a.jsx)(y.k,{className:T.tooltipIcon})})]}),(0,a.jsx)(n.Text,{weight:"medium",size:c?"18":o?"16":"24",className:T.unitValue,style:{color:s},children:e.includes("Рейтинг")?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O,{size:16,style:{color:"var(--color-orange-400)"}}),t]}):(d=t.split("₽")).map((e,t)=>(0,a.jsxs)(i.Fragment,{children:[e,t<d.length-1&&(0,a.jsx)(n.Text,{weight:"regular",children:"₽"})]},`${e}-${t}`))})]})},P=({tags:e,isGrayTheme:t})=>{let i=t?"secondary":"primary";return(0,a.jsx)("div",{className:T.tags,children:e.sort((e,t)=>e.order-t.order).map(e=>(0,a.jsx)(k,{className:T.tag,label:e.label,variant:e.variant?e.variant:i,rounded:!0},e.label))})},z=({companyName:e,name:t,url:i,logo:l,units:s,tags:n,additionalButton:o,unitsAsColumn:d,dataLayerPush:u,eventCategory:m,productType:p,theme:h,buttonClassName:f,eventValueByUnitTitle:g})=>{let v=h===$.gray,y=a=>{c(u,p);let i={event:"data-event",eventCategory:m,eventAction:`click_button_${(0,b.t)(a)}_${p}`,eventLabel:(0,b.t)(`${e}_${t}`)};if(g){let e=s.find(e=>e.title.toLowerCase()===g.toLowerCase());e&&(i.eventValue=(0,b.t)(e.value))}u(i)};return(0,a.jsxs)("div",{className:(0,r.default)(T.wrapper,{[T.whiteWrapper]:v}),children:[(0,a.jsxs)("div",{className:T.bankInfo,children:[l&&(0,a.jsx)("img",{src:l,width:56,height:56,alt:`${e} logo`,loading:"lazy"}),(0,a.jsx)(Y,{title:t,value:e,isTitleUnit:!0})]}),(0,a.jsx)("div",{className:(0,r.default)(T.units,{[T.unitsColumn]:d}),children:s.map(e=>(0,a.jsx)(Y,{title:e.title,value:e.value,tooltip:e.tooltip,textColor:e.textColor,unitsAsColumn:d},`${e.title}-${e.value}`))}),(0,a.jsxs)("div",{className:T.bottomBlock,children:[n&&(0,a.jsx)(P,{tags:n,isGrayTheme:v}),o&&o.text.trim().length>0&&(0,a.jsx)(_.Button,{as:"a",className:(0,r.default)(T.button,T.buttonRounded,T.buttonAdditional),size:"xs",label:o.text,href:null==o?void 0:o.url,variant:v?"secondary":"white",onClick:()=>y(o.text)}),(0,a.jsx)(_.Button,{as:"a",className:(0,r.default)(T.button,f),size:"xs",label:"Подробнее",href:i,onClick:()=>y("podrobnee_o_kartochke_iz")})]})]})},A=(0,m.g)("offers-list","sc"),F=Object.freeze({offersList:A,wrapper:`${A}__wrapper`,sliderWrapper:`${A}__sliderWrapper`,offerItem:`${A}__offerItem`,compact:`${A}__offerItem--compact`,bannerItem:`${A}__bannerItem`}),D=({offers:e,banner:t,dataLayerPush:i,eventCategory:l,productType:s,theme:n,singleProduct:o})=>{let d=e.length<=2;return(0,a.jsxs)(v.Slider,{options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3e3,disableOnInteraction:!1}},breakpoints:{xl:{autoplay:!1}},className:F.sliderWrapper,pagination:!0,children:[e.slice(0,3).map(e=>(0,a.jsx)(v.SliderItem,{className:(0,r.default)(F.offerItem,{[F.compact]:o}),children:(0,a.jsx)(z,{...e,dataLayerPush:i,eventCategory:l,productType:s,theme:n})},e.id)),t&&(0,a.jsx)(v.SliderItem,{className:F.bannerItem,children:(0,a.jsx)(L,{...t,handleBannerDataLayerPush:()=>{c(i,s),i({event:"data-event",eventCategory:l,eventAction:"click_bnr_banner_top_predlozheniy",eventLabel:s})},wide:d,theme:n})})]},s)},J=(0,m.g)("osago-tab","sc"),V=Object.freeze({osagoTab:J,wrapper:`${J}__wrapper`,card:`${J}__card`,whiteCard:`${J}__card--white`,image:`${J}__image`,content:`${J}__content`,inputWrapper:`${J}__inputWrapper`,select:`${J}__select`,input:`${J}__input`,buttonLinkWrapper:`${J}__buttonLinkWrapper`,button:`${J}__button`,banner:`${J}__banner`}),U={kasko:{title:"Рассчет Каско за минуту",description:"Выберите лучшие условия для оформления полиса",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}},osago:{title:"ОСАГО с экономией до 78%",description:"Предварительная цена после ввода номера ТС",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}}},B=[{label:"Мотоцикл",value:"moto"},{label:"Автомобиль",value:"auto"}],X=Object.fromEntries(B.map(e=>[e.value,e])),H={auto:{mask:"a 000 aa 00",placeholder:"A 000 AA 00"},moto:{mask:"0000 aa 00",placeholder:"0000 AA 00"}},G="АВЕКМНОРСТУХ",q=RegExp(`[${G}]`,"i"),Q=RegExp(`[^0-9${G}]`,"gi"),K=({type:e,baseUrl:t,s3Assets:l,banner:o,dataLayerPush:d,eventCategory:m,theme:p})=>{let h="osago"===e,f=(0,I.joinURL)(t,"osago"),g=(0,I.joinURL)(f,"step-car"),v=(0,I.joinURL)(t,"kasko"),y=(0,I.joinURL)(v,"vehicle"),x=h?g:y,[w,j]=(0,i.useState)(""),[k,S]=(0,i.useState)("auto"),{mask:M,placeholder:W}=H[k],T=p===$.gray,E=`?${new URLSearchParams({type:h?k:"auto",license:w})}`,R=(0,I.joinURL)(x,E),Z=o??{...U[e],url:h?f:v,image:l?{url:(0,I.joinURL)(l,`widgets/BestOffers/${h?"icon_osago":"icons_car"}.png`),width:204,height:160}:void 0},O=X[k].label,Y=(t,a)=>{d({event:"data-event",eventCategory:m,eventAction:t,eventLabel:a??e})};return(0,a.jsxs)("div",{className:V.wrapper,children:[(0,a.jsxs)("div",{className:(0,r.default)(V.card,{[V.whiteCard]:T}),children:[l&&(0,a.jsx)("picture",{children:(0,a.jsx)("img",{src:`${l}/widgets/BestOffers/auto_bg.png`,alt:"Автомобиль",loading:"lazy",className:V.image})}),(0,a.jsxs)("div",{className:V.content,children:[(0,a.jsxs)(s.Heading,{as:"h3",type:"h3",children:["Онлайн калькулятор ",h?"ОСАГО":"Каско"]}),(0,a.jsxs)("div",{className:V.inputWrapper,children:[h&&(0,a.jsx)(C.Select,{options:B,value:X[k],label:"Тип транспорта",variant:T?"primary":"secondary",className:V.select,onChange:e=>{j(""),S(e.value),Y(`selector_item_${(0,b.t)(e.label)}`)}}),(0,a.jsx)(N.InputMasked,{label:"Госномер",variant:T?"primary":"secondary",maskOpts:{mask:M,definitions:{a:q}},maskPlaceholder:W,value:w,className:V.input,onChange:(e,t)=>{j(t.replace(Q,"").toUpperCase())},onClick:()=>Y(`message_field_${(0,b.t)(O)}`),onBlur:()=>Y(`on_message_field_${(0,b.t)(O)}`)}),(0,a.jsxs)(n.Text,{children:["У меня"," ",(0,a.jsx)(u.Link,{href:x,onClick:()=>{c(d),Y("click_link_net_nomera",x)},children:"нет номера"})]})]}),(0,a.jsx)(_.Button,{as:"a",href:R,size:"s",className:V.button,onClick:()=>{c(d),Y(`click_button_rasschitat_${(0,b.t)(O)}`,R)},children:"Рассчитать"})]})]}),(0,a.jsx)("div",{className:V.banner,children:(0,a.jsx)(L,{...Z,theme:p,handleBannerDataLayerPush:()=>{c(d),Y("click_bnr_banner_top_predlozheniy")}})})]})},ee=(0,m.g)("best-offers","sc"),et=Object.freeze({bestOffers:ee,graySection:`${ee}--gray`,singleProduct:`${ee}--singleProduct`,titleWrapper:`${ee}__title-wrapper`,singleProductTitleWrapper:`${ee}__title-wrapper--singleProduct`,title:`${ee}__title`,singleProductTitle:`${ee}__title--singleProduct`,chips:`${ee}__chips`,warning:`${ee}__warning`,allOffersLink:`${ee}__allOffersLink`}),ea={вклады:"вкладам",облигации:"облигациям",кредиты:"кредитам",займы:"займам","кредитные карты":"кредитным картам",каско:"каско",осаго:"ОСАГО","дебетовые карты":"дебетовым картам",ипотека:"ипотеке",автокредиты:"автокредитам",фонды:"фондам"};e.s(["BestOffers",0,({tabs:e,baseUrl:t,s3Assets:o,eventCategory:d="best-offers",dataLayerPush:u,singleProduct:m=!1,theme:p=$.light,className:h,tagTitle:v="h2",initialActiveChipId:_})=>{var b;let y,x=p===$.gray,w=Array.isArray(e)?e.filter(({banner:e,offers:t,productType:a})=>!!e||!!(null!=t&&t.length)||"osago"===a||"kasko"===a).map(e=>({...e,offers:Array.isArray(e.offers)?e.offers:[]})):[],j=w.map(e=>({url:e.productType,title:e.name})),k=(null==(b=j[0])?void 0:b.url)??"",[N,C]=(0,i.useState)(_??k),I=N&&w.some(e=>e.productType===N)?N:k,S=w.find(e=>e.productType===I)??w[0];if(!S)return null;let M=ea[S.name.toLowerCase()],L=M?`по ${M}`:S.name,W=("kasko"===(y=null==S?void 0:S.productType)||"osago"===y)&&t?(0,a.jsx)(K,{type:S.productType,banner:S.banner,baseUrl:t,s3Assets:o,dataLayerPush:u,eventCategory:d,theme:p}):null;return(0,a.jsx)("section",{className:(0,r.default)(et.bestOffers,h,{[et.singleProduct]:m,[et.graySection]:x}),children:(0,a.jsxs)(l.Container,{children:[(0,a.jsx)("div",{className:(0,r.default)(et.titleWrapper,m&&et.singleProductTitleWrapper),children:(0,a.jsxs)(s.Heading,{as:v,role:void 0,"aria-level":void 0,type:m?"h2":"display",className:(0,r.default)(et.title,m&&et.singleProductTitle),children:["Лучшие предложения ",m?L:"сегодня"]})}),!m&&(0,a.jsx)(g.N,{items:j,maxNumberOfLines:2,activeChipId:I,variant:x?"white":"gray",className:et.chips,onClick:e=>{c(u,e),C(e);let t=w.find(t=>t.productType===e);u({event:"data-event",eventCategory:d,eventAction:"click_chip_top_predlozheniy_vybor",eventLabel:null==t?void 0:t.productType})}}),(0,a.jsxs)("div",{children:[W??(0,a.jsx)(D,{offers:S.offers,banner:S.banner,dataLayerPush:u,eventCategory:d,productType:S.productType,theme:p,singleProduct:m}),S.hasWarning&&(0,a.jsx)(n.Text,{as:"p",size:"16",className:et.warning,children:S.warningCustomText??"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})]}),S.checkAllUrl&&(0,a.jsx)(f,{href:S.checkAllUrl,onClick:()=>c(u,S.productType),event:{event:"data-event",eventCategory:d,eventAction:"link",eventLabel:`Показать все предложения ${S.productType}`},dataLayerPush:u,iconGrayBackground:!x,className:et.allOffersLink,linkClassName:S.checkAllLinkClassName,children:"Показать все предложения"})]})})}],8810)},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,a){let i=new URLSearchParams({scLayoutName:e,scPageUrl:a}).toString();return(await (0,t.callApi)({url:`/api/v1/data/page-data?${i}`,options:{isMpScApi:!0}})).data||null},getPage:async e=>(await (0,t.callApi)({url:`/api/v1/sc-page/${e}`,options:{isMpScApi:!0}})).data||null}])},38886,86969,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(74080);e.s(["Portal",0,({children:e,id:l="portal-root"})=>{let[s,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=document?.getElementById(l);if(e)n(e);else{let e=document?.createElement("div");return document?.body.appendChild(e),n(e),()=>{document?.body.removeChild(e)}}},[]),(0,t.jsx)(t.Fragment,{children:s&&(0,i.createPortal)(e,s)})}],86969),e.s([],38886)},59626,e=>{e.v({close:"ClickOutside-module-scss-module__hnbccW__close",fade:"ClickOutside-module-scss-module__hnbccW__fade","fade-out":"ClickOutside-module-scss-module__hnbccW__fade-out",open:"ClickOutside-module-scss-module__hnbccW__open",overlay:"ClickOutside-module-scss-module__hnbccW__overlay",shine:"ClickOutside-module-scss-module__hnbccW__shine"})},47384,e=>{e.v({footer:"MobileModalFooter-module-scss-module__ofBYjW__footer",footerWithoutShadow:"MobileModalFooter-module-scss-module__ofBYjW__footerWithoutShadow",shine:"MobileModalFooter-module-scss-module__ofBYjW__shine"})},70997,e=>{e.v({closeButton:"MobilePopup-module-scss-module__DZ3YPa__closeButton",closeContainer:"MobilePopup-module-scss-module__DZ3YPa__closeContainer",content:"MobilePopup-module-scss-module__DZ3YPa__content",contentContainer:"MobilePopup-module-scss-module__DZ3YPa__contentContainer",contentFull:"MobilePopup-module-scss-module__DZ3YPa__contentFull",contentLine:"MobilePopup-module-scss-module__DZ3YPa__contentLine",contentTransition:"MobilePopup-module-scss-module__DZ3YPa__contentTransition",contentTransitionOpen:"MobilePopup-module-scss-module__DZ3YPa__contentTransitionOpen",min:"MobilePopup-module-scss-module__DZ3YPa__min",mobilePopup:"MobilePopup-module-scss-module__DZ3YPa__mobilePopup",shine:"MobilePopup-module-scss-module__DZ3YPa__shine",smallContentContainer:"MobilePopup-module-scss-module__DZ3YPa__smallContentContainer",subtitle:"MobilePopup-module-scss-module__DZ3YPa__subtitle",title:"MobilePopup-module-scss-module__DZ3YPa__title"})},75182,64457,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(7670);let l=300;var s=e.i(59626);let n=({onClose:e,onToucheMove:n,isOpen:r,delay:o=l})=>{let c=(0,a.useRef)(null),d=(0,a.useCallback)(()=>{e&&(c.current=setTimeout(()=>{e()},o))},[o,e]),u=(0,a.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,a.useEffect)(()=>(r&&window.addEventListener("keydown",u),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",u)}),[r,u]),(0,t.jsx)("div",{className:(0,i.default)(s.default.overlay,{[s.default.open]:r,[s.default.close]:!r}),onTouchStart:n,onClick:d})};var r=e.i(47384);let o=({footer:e,isSmallPopup:a=!1,footerClassName:l})=>(0,t.jsx)("div",{className:(0,i.default)(r.default.footer,a&&r.default.footerWithoutShadow,l),children:"function"==typeof e?e():e});var c=e.i(70997);let d=({children:e,footer:l,isOpen:s,isSmallPopup:r,onClose:d,hasCloseButton:u=!0,full:m,touchDistance:p=100,withDisabledScroll:h=!0,contentClassName:f,className:g,title:v,subtitle:_,closeButton:b,footerClassName:y})=>{var x;let w,[j,k]=(0,a.useState)(!1),[N,C]=(0,a.useState)(!1),[I,$]=(0,a.useState)(!0),[S,M]=(0,a.useState)("120%"),L=(0,a.useRef)(null),W=(0,a.useRef)(0),T=(0,a.useRef)(!1),E=e=>{let t=L.current?.offsetTop,a=L.current?.offsetHeight;if(T.current=!0,$(!1),t&&a){let i=e?.touches[0]?.clientY-t,l=0;i>=0&&i<=a+30&&(l=i),i>a+30&&(l=a+30),M(`${l}px`),W.current=l}},R=()=>{T.current&&(W.current>p&&d?d?.():M("0"),$(!0),T.current=!1),window.removeEventListener("touchmove",E),window.removeEventListener("touchend",R)};(0,a.useEffect)(()=>{s&&setTimeout(()=>{k(!0),C(!0),M("0")},100),!s&&N&&(M("120%"),k(!1),C(!1))},[N,s]),x=s&&h,w=(0,a.useRef)(null),(0,a.useEffect)(()=>{let e=w.current,t=window.innerWidth-document.documentElement.clientWidth;x&&t&&!document.body.style.top&&(window.prevScrollPosition=window.scrollY||window.pageYOffset),x&&t&&(document.documentElement.style.setProperty("overflow-y","scroll"),document.body.classList.toggle("scroll-disable-windows",!0),document.body.style.setProperty("width",`calc(100vw - ${t}px)`),document.body.style.setProperty("top",`-${window.prevScrollPosition}px`)),x&&!t&&(document.body.style.setProperty("overflow","hidden"),document.body.style.setProperty("height","100vw")),x&&e&&e.setAttribute("data-portal","");let a=document.querySelectorAll("[data-portal]").length>1;x||a||(document.body.classList.toggle("scroll-disable-windows",!1),document.body.style.removeProperty("overflow"),document.body.style.removeProperty("height"),document.body.style.removeProperty("width"),document.body.style.removeProperty("top")),x||a||void 0===window.prevScrollPosition||(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0),!x&&e&&e.removeAttribute("data-portal")},[x]);let Z="function"==typeof b?b():b;return(0,t.jsxs)("div",{"data-portal":!0,className:(0,i.default)(c.default.mobilePopup,N&&c.default.mobilePopupOpen,g),children:[(0,t.jsx)(n,{onClose:()=>{s&&d?.()},onToucheMove:()=>{s&&(k(!1),window.addEventListener("touchmove",E),window.addEventListener("touchend",R))},isOpen:s,delay:0}),(0,t.jsxs)("div",{className:(0,i.default)(c.default.content,m&&c.default.contentFull,I&&c.default.contentTransition,I&&j&&c.default.contentTransitionOpen),ref:L,style:{transform:`translateY(${S})`},children:[(0,t.jsx)("div",{className:c.default.contentLine}),(0,t.jsxs)("div",{className:(0,i.default)(c.default.contentContainer,r&&c.default.smallContentContainer,{[c.default.min]:!v&&!u},f),children:[!!v&&(0,t.jsx)("div",{className:c.default.title,children:v}),!!_&&(0,t.jsx)("div",{className:(0,i.default)(c.default.title,c.default.subtitle),children:_}),u?(0,t.jsxs)("div",{className:c.default.closeContainer,children:[Z,b?null:(0,t.jsx)("button",{onClick:d,className:c.default.closeButton,children:(0,t.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})})]}):null,e]}),l&&(0,t.jsx)(o,{footerClassName:y,isSmallPopup:r,footer:l})]})]})},u=({children:e,isSmallPopup:i=!1,isOpen:s=!1,...n})=>{let{mounted:r}=(({opened:e})=>{let[t,i]=(0,a.useState)(!1),s=(0,a.useRef)(null),n=(0,a.useRef)(!1);return(0,a.useEffect)(()=>(e&&!n.current?(n.current=!0,i(!0)):!e&&n.current&&(s.current=setTimeout(()=>{n.current=!1,i(!1)},l)),()=>{s.current&&clearTimeout(s.current)}),[e]),{mounted:t}})({opened:s});return r?(0,t.jsx)(d,{isSmallPopup:i,isOpen:s,...n,children:e}):null};u.displayName="UiMobilePopup",e.s(["UiMobilePopup",0,u],64457),e.s([],75182)},15612,e=>{"use strict";var t=e.i(231);let a="code_verifier",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",l=()=>{if(!globalThis.crypto?.subtle)throw Error("PKCE is not supported in this browser");return globalThis.crypto},s=async e=>{var t;let a;return t=new Uint8Array(await l().subtle.digest("SHA-256",new TextEncoder().encode(e))),a="",t.forEach(e=>{a+=String.fromCharCode(e)}),btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,"")},n=async()=>{let e,t,a=(e=new Uint8Array(96),l().getRandomValues(e),t="",e.forEach(e=>{t+=i.charAt(e%i.length)}),t);return{codeChallenge:await s(a),codeVerifier:a}};e.s(["createPkceKeys",0,n,"getCodeVerifier",0,()=>t.appSessionStorage.getItemRaw(a),"removeCodeVerifier",0,()=>{t.appSessionStorage.removeItem(a)},"saveCodeVerifier",0,e=>{t.appSessionStorage.setItem(a,e)}])},24734,44770,e=>{"use strict";var t=e.i(85900),a=e.i(15612),i=e.i(231);let l={endpoint:"https://sso-stable.beta.moex.com/auth/realms/craml-universal/protocol/openid-connect/auth",protocol:"oauth2",response_type:"code",response_mode:"query",client_id:"journal",scope:"openid+email+profile",code_challenge:"nsFRX3OPOyJ-YwsNJll07k1_xbGD5ByKGJA-Sl3ju1Q",code_challenge_method:"S256",nonce:"VXOi0Dxv.up2.uSbL9PCjeVtv9dYJhCg",state:{simple:!0,stateId:"Q_SOFRRbmY6qAhvO87JJa",fingerprintHash:"b7080a7c721d8d76781d64ba309e6521",phoneVerify:"true",cramlURL:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v5/customers",cramlProvidersURL:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v6/providers",cramlCustomersURL:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v5/customers",cramlPhoneVerificationUrl:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v6/phone-verifications/run",cramlConfirmOtpUrl:"http://craml-sys-customer-data.craml-rc.mpddev.moex.com/api/v6/customers/create-or-find-provider-customer-by-otp",otpURL:"http://mp-sys-notifier.mp-rc.mpddev.moex.com/api/v0/notifications"}};e.s(["COMMENTS_AUTH_WIDGET_CONFIG",0,{theme:"light",view:"phone",linkTarget:"_self",primaryAuthProviders:["PHONE"],additionalAuthProviders:["TINKOFF","ALFA","SBER","MTS","SOVCOM","VTB"],primaryTextOverride:"Войти"},"DEFAULT_SERVER_CONFIG",0,{title:"Войдите по номеру телефона",description:"Чтобы оставить комментарий",availableAuthProviders:["PHONE","TINKOFF","ALFA","SBER","MTS","SOVCOM","VTB"],consents:[{key:"isPlatformRulesAccepted",title:{text:"Принимаете правила платформы",links:[]},value:!0,required:!0,hidden:!1},{key:"isProcessingPersonalDataAllowed",title:{text:"Подтверждаете актуальность персональных данных и соглашаетесь на их обработку в соответствии с политикой конфиденциальности",links:[]},value:!0,required:!0,hidden:!1},{key:"isPromotionSendAllowed",title:{text:"Соглашаетесь получать маркетинговую рассылку",links:[]},value:!0,required:!1,hidden:!1}]},"DEFAULT_SSO_PARAMS",0,l],44770);let s=e=>{let t=new TextEncoder().encode(e),a="";return t.forEach(e=>{a+=String.fromCharCode(e)}),btoa(a)},n=(e,a,i)=>{let l=(0,t.stringifyQuery)(i),s=e.includes("?")?"&":"?";return`${e}${s}scope=${a}&${l}`},r=async({data:e={},endpoint:t,redirect_uri:r,phone:o="",scope:c,includePhoneInState:d,includeResponseMode:u=!0})=>{let{codeChallenge:m,codeVerifier:p}=await (0,a.createPkceKeys)(),h=e||{},f=((e={},t,a="")=>{let n=i.appLocalStorage.getItemRaw("browserId"),r=i.appSessionStorage.getItemRaw("browserSessionId"),o={...l.state,...e,browserId:n,browserSessionId:r};return t?o.phone=a:(delete o.phone,delete o.phoneVerify),s(JSON.stringify(o))})(h.state||{},d,o);(0,a.saveCodeVerifier)(p);let{endpoint:g,scope:v,..._}={...l,...h,endpoint:t||h.endpoint||l.endpoint,redirect_uri:r,state:f,code_challenge:m,scope:c||h.scope||l.scope};return u?n(g,v,_):n(g,v,{client_id:_.client_id,redirect_uri:_.redirect_uri,response_mode:"fragment",response_type:_.response_type,prompt:"none",code_challenge:_.code_challenge,code_challenge_method:_.code_challenge_method})},o=async(e={},t,a)=>r({data:e,redirect_uri:t,phone:a,includePhoneInState:!0}),c=async(e={},t,a)=>r({data:e,endpoint:t,redirect_uri:a,scope:"openid",includePhoneInState:!1,includeResponseMode:!1});e.s(["getHiddenSsoIframeUrl",0,c,"getSsoUrl",0,o],24734)},6184,e=>{e.v({caption:"ResponsiveImage-module-scss-module__KcTWLa__caption",figureWrapper:"ResponsiveImage-module-scss-module__KcTWLa__figureWrapper",image:"ResponsiveImage-module-scss-module__KcTWLa__image",pictureWrapper:"ResponsiveImage-module-scss-module__KcTWLa__pictureWrapper",shine:"ResponsiveImage-module-scss-module__KcTWLa__shine"})},5580,e=>{e.v({caption:"ContentImage-module-scss-module__F2hwnW__caption",close:"ContentImage-module-scss-module__F2hwnW__close",debug:"ContentImage-module-scss-module__F2hwnW__debug",detailImage:"ContentImage-module-scss-module__F2hwnW__detailImage",detailImageWrapper:"ContentImage-module-scss-module__F2hwnW__detailImageWrapper",imageModal:"ContentImage-module-scss-module__F2hwnW__imageModal",imgContainer:"ContentImage-module-scss-module__F2hwnW__imgContainer",shine:"ContentImage-module-scss-module__F2hwnW__shine"})},52919,33209,72934,65854,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(57688),l=e.i(62965),s=e.i(7670);e.i(38886);var n=e.i(86969),r=e.i(65018),o=e.i(6184);let c=/%25([0-9A-Fa-f]{2})/g,d=({srcDesktop:e,srcMobile:a,alt:i,caption:l,className:n,pictureClassName:r,captionClassName:d,imageClassName:u,isLazy:m=!0})=>{let p=e.replace(c,"%$1"),h=a.replace(c,"%$1");return(0,t.jsxs)("figure",{className:(0,s.default)(o.default.figureWrapper,n),children:[(0,t.jsxs)("picture",{className:(0,s.default)(o.default.pictureWrapper,r),children:[(0,t.jsx)("source",{media:"(max-width: 599px)",srcSet:h}),(0,t.jsx)("img",{loading:m?"lazy":void 0,className:(0,s.default)(o.default.image,u),src:p,fetchPriority:m?void 0:"high",decoding:m?void 0:"async",alt:i??"detail image"})]}),!!l&&(0,t.jsx)("figcaption",{className:(0,s.default)(o.default.caption,d),dangerouslySetInnerHTML:{__html:l}})]})};e.s(["ResponsiveImage",0,d],33209),e.s([],72934);var u=e.i(80453),m=e.i(5580);let p=({src:e,onClose:s})=>{let[n,r]=(0,a.useState)(1),[o,c]=(0,a.useState)(1),[d,u]=(0,a.useState)({x:0,y:0}),[p,h]=(0,a.useState)({x:0,y:0}),f=(0,a.useRef)(null),g=(0,a.useRef)(null),v=(0,a.useRef)(1),_=(0,a.useRef)(!1);(0,a.useEffect)(()=>{let e=e=>{e.preventDefault()};return document.addEventListener("touchmove",e,{passive:!1}),()=>{document.body.style.overflow="",document.body.style.height="",document.removeEventListener("touchmove",e)}},[]),(0,a.useEffect)(()=>{if(_.current){_.current=!1;let e=document.getElementById("imageModalContainerId");if(!e)return;let t=e.getBoundingClientRect(),a=t.x||0,i=t.height||0;u({x:-(a/n*1),y:-((t.y||0)/n*1)+window.innerHeight/n/2-i/n/2});let l=document.getElementById("imageModalCloseId");if(!l)return;let s=window.innerWidth/document.documentElement.getBoundingClientRect()?.width,r=l.getBoundingClientRect(),o=r.width*s||0,d=r.x||0,m=r.y||0,p=-(d/s*1)+window.innerWidth/s-o/s-16/s;c(s),h({x:p,y:-(m/s*1)+58})}},[n]);let b=e=>{let[t,a]=[e[0],e[1]],i=t.clientX-a.clientX,l=t.clientY-a.clientY;return Math.sqrt(i*i+l*l)};return(0,t.jsxs)("div",{className:m.default.imageModal,onTouchStart:e=>{e.preventDefault(),2===e.touches.length&&(f.current=b(e.touches)),1===e.touches.length&&(g.current={x:e.touches[0].clientX/n-d.x,y:e.touches[0].clientY/n-d.y})},onTouchMove:e=>{if(e.preventDefault(),2===e.touches.length&&null!==f.current){let t=n+(b(e.touches)-f.current)*5e-5;t<v.current?t=v.current:t>3&&(t=3),r(t)}1===e.touches.length&&null!==g.current&&u({x:e.touches[0].clientX/n-g.current.x,y:e.touches[0].clientY/n-g.current.y})},onTouchEnd:()=>{f.current=null,g.current=null},children:[(0,t.jsx)("div",{id:"imageModalCloseId",className:m.default.close,onClick:s,style:{transform:`scale(${o}) translate(${p.x}px, ${p.y}px)`},children:(0,t.jsx)(l.IconFdsCloseO,{size:22})}),(0,t.jsx)("div",{id:"imageModalContainerId",className:m.default.imgContainer,style:{transform:`scale(${n}) translate(${d.x}px, ${d.y}px)`},children:(0,t.jsx)(i.default,{src:e,width:0,height:0,alt:"detail image",unoptimized:!0,onLoadingComplete:()=>{let e=window.innerWidth,t=document.getElementById("imageModalContainerId");if(!t)return;let a=t.getBoundingClientRect().width||0,i=a>0?e/a:1;v.current=i,r(i),_.current=!0,document.body.style.overflow="hidden",document.body.style.height="100vh"}})})]})};e.s(["ContentImage",0,({env:e,imageFile:i,imageData:l,imageVariants:o,imageCaption:c,className:h,disableZoom:f,imageClassName:g})=>{let v=(0,r.useMedia)("lg"),[_,b]=(0,a.useState)(!1),y=e.NEXT_PUBLIC_BASE_URL,x=l||`${y}/img/posts_content/large/${i}`,w=()=>l?{mobile:(0,u.getImageVariantUrl)(o,"mobileDetail",l),desktop:(0,u.getImageVariantUrl)(o,"detail",l)}:{mobile:`${y}/img/posts_content/small/${i}`,desktop:`${y}/img/posts_content/large/${i}`};return i||l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,s.default)(m.default["content-image"],h),onClick:()=>{!f&&v&&b(!0)},children:(0,t.jsx)(d,{captionClassName:m.default.caption,srcDesktop:w().desktop,srcMobile:w().mobile,caption:c,imageClassName:(0,s.default)(m.default.detailImage,g),className:m.default.detailImageWrapper})}),(0,t.jsx)(n.Portal,{children:_&&v&&(0,t.jsx)(p,{src:x,onClose:()=>b(!1)})})]}):null}],65854),e.s([],52919)},97209,52918,e=>{"use strict";let t={getItem:e=>{let t=document.cookie.split(";").find(t=>t.split("=")[0].trim()===e);return t?t.split("=")[1]??null:null},setItem:(e,t,a={})=>{(a={path:"/",...a}).expires instanceof Date&&(a.expires=a.expires.toUTCString());let i=encodeURIComponent(e)+"="+encodeURIComponent(t);for(let e in a){if(!a.hasOwnProperty(e))continue;i+="; "+e;let t=a[e];!0!==t&&(i+="="+t)}document.cookie=i},removeItem:e=>{t.setItem(e,"",{"max-age":-1})}};e.s(["appCookie",0,t],52918);var a=e.i(231);let i="comments_auth_access_token",l=e=>{let t={expires:new Date(Date.now()+1e3*e),sameSite:"Strict"};return"https:"!==window.location.protocol?t:{...t,secure:!0}};e.s(["getSavedAccessToken",0,()=>{let e;return t.getItem("access_token")||("object"!=typeof(e=a.appLocalStorage.getItem(i))||null===e||"string"!=typeof e.value||"number"!=typeof e.expiresAt?null:e.expiresAt>Date.now()?e.value:(a.appLocalStorage.removeItem(i),null))},"saveCallbackTokens",0,({access_token:e,expires_in:s,refresh_expires_in:n,refresh_token:r})=>{let o=l(s),c=l(n);if(t.removeItem("access_token"),t.setItem("access_token",e,o),t.setItem("refresh_token",r,c),t.getItem("access_token")!==e){let t;return void(t={value:e,expiresAt:Date.now()+1e3*s},a.appLocalStorage.setItem(i,JSON.stringify(t)))}a.appLocalStorage.removeItem(i)}],97209)},11615,e=>{"use strict";let t="authorization_code",a={access_token:"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJxbDFyMEhYU0U4VFo1VkRsZFhKZ1JfdHBiaEtJclJWTTdtSnJVQnVCWm5rIn0.eyJleHAiOjE3NjQ3NTg0MzksImlhdCI6MTc2NDc1ODEzOSwiYXV0aF90aW1lIjoxNzY0NzU4MTM3LCJqdGkiOiJiMDdkNWVmZS03Y2U3LTQyZGItODlmYy04MjcxNTJiZDBkM2QiLCJpc3MiOiJodHRwczovL3Nzby1zdGFibGUuYmV0YS5tb2V4LmNvbS9hdXRoL3JlYWxtcy9jcmFtbC11bml2ZXJzYWwiLCJhdWQiOlsiZGZhX29pcyIsInRvdWNoY3JhbWxfcHVibGljIiwiYWNjb3VudCJdLCJzdWIiOiIzNjU1Nzg4Zi1hMjExLTQyNjYtODIxZS00M2FmZDE4N2JlZjciLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJ0b3VjaGNyYW1sX3B1YmxpYyIsIm5vbmNlIjoiVUFiakhyUXZiMnNsOHpQUHFLdnVXIiwic2lkIjoiMTNjNWY5ZGMtZjAzOC00NGM5LWI1ZmUtZDk0ZWZmNzYzOGMwIiwiYWxsb3dlZC1vcmlnaW5zIjpbIiIsImh0dHBzOi8vZGV2LXJjLWxrLmJldGEubW9leC5jb20vKiIsIioiXSwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbImRlZmF1bHQtcm9sZXMtY3JhbWwtdW5pdmVyc2FsIiwib2ZmbGluZV9hY2Nlc3MiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGJhY2t3YXJkc19jb21wYXRpYmxlIGVtYWlsIHVuaXZlcnNhbF9jcmFtbF9wcmVmZXJyZWQgYXV0aHpfYXR0cnMgc3ViX2NyYW1sX2lkIHByb2ZpbGUgYXV0aF9wcm92aWRlciBhdXRoX2Zsb3ciLCJhdXRoel9hdHRycyI6eyJzdGF0dXMiOiJBQ1RJVkUiLCJpZGVudF9sdmwiOiJOT1RfSURFTlRJRklFRCIsImF1dGhfcHJvdmlkZXIiOiJwaG9uZSIsImF1dGhfZmxvdyI6InNpbXBsZSJ9LCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImF1dGhfZmxvdyI6InNpbXBsZSIsInByZWZlcnJlZF91c2VybmFtZSI6Ijc0ODliNzQwLTViYTAtNGMzMS1hYWVmLTIxMDIyZDQxMWVhZSIsInNlc3Npb25fc3RhdGUiOiIxM2M1ZjlkYy1mMDM4LTQ0YzktYjVmZS1kOTRlZmY3NjM4YzAiLCJjdXN0b21lcl9pZCI6Ijc0ODliNzQwLTViYTAtNGMzMS1hYWVmLTIxMDIyZDQxMWVhZSIsImF1dGhfcHJvdmlkZXIiOiJwaG9uZSJ9.R3s8pdLr1eam9SuZAQ_kAMGZh7J8I1-WApZ287zip3Rxd1VFDhY3IblH-itDvBxS0cyTuSVi5f_B-YJztv05bDlRvRAYJ3bEKwdSQjk_8izolOZLvEWkQqohRHPXKfYg8vHmQ27BZcFe9CikANAH9w_tTkbBdOMEbiI4dznXvL92YGlzlyxsdMUvpeSYibjWA5dlIeWx4lj8FdEDBUSqBf6JdoOi9iclWb9qw9DCwlXlMAIy_Lbfdb2yMy9ZXybNL5uHN-32r3_klwyYRsy2LhXKebKyJIJaIgvdcrHMn9A_BeyEYfdPWsF_uKFoADi2Hcx2f7Bo_6mnJXXZ3Eld-A",expires_in:300,refresh_expires_in:1800,refresh_token:"eyJhbGciOiJIUzUxMiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJiODA5MTdmZi00OGIzLTRjMmMtYTc5YS1lOTkzODE4ZDZkNjYifQ.eyJleHAiOjE3NjQ3NTk5MzksImlhdCI6MTc2NDc1ODEzOSwianRpIjoiMmVhNTk2ZjgtNmJiMi00YWE4LTgwNWYtNzUwZDUwMjI3ZGExIiwiaXNzIjoiaHR0cHM6Ly9zc28tc3RhYmxlLmJldGEubW9leC5jb20vYXV0aC9yZWFsbXMvY3JhbWwtdW5pdmVyc2FsIiwiYXVkIjoiaHR0cHM6Ly9zc28tc3RhYmxlLmJldGEubW9leC5jb20vYXV0aC9yZWFsbXMvY3JhbWwtdW5pdmVyc2FsIiwic3ViIjoiMzY1NTc4OGYtYTIxMS00MjY2LTgyMWUtNDNhZmQxODdiZWY3IiwidHlwIjoiUmVmcmVzaCIsImF6cCI6InRvdWNoY3JhbWxfcHVibGljIiwibm9uY2UiOiJVQWJqSHJRdmIyc2w4elBQcUt2dVciLCJzaWQiOiIxM2M1ZjlkYy1mMDM4LTQ0YzktYjVmZS1kOTRlZmY3NjM4YzAiLCJzY29wZSI6Im9wZW5pZCBiYXNpYyBiYWNrd2FyZHNfY29tcGF0aWJsZSBlbWFpbCBjb25maWdfcmVxdWlyZV9ydW5fY3VzdG9tZXJfdmVyaWZpY2F0aW9ucyBjdXN0b21lcl9yZWNvcmRfc3RhdGUgYnJva2VyYWdlX2tleXNfd2ViIGVzaWFfb2lkIHVuaXZlcnNhbF9jcmFtbF9wcmVmZXJyZWQgYXV0aHpfYXR0cnMgcm9sZXMgc3ViX2NyYW1sX2lkIHByb2ZpbGUgd2ViLW9yaWdpbnMgYXV0aF9wcm92aWRlciBhdXRoX2Zsb3cifQ.mtkm-1NMff6Mzp5GHoSOXv2muBgTrl20f6vCPoa9PZLN2i35DEB4QrAG5SRR_qD3KCe6Df1yUOnGwoygG0vcZA",token_type:"Bearer",id_token:"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJxbDFyMEhYU0U4VFo1VkRsZFhKZ1JfdHBiaEtJclJWTTdtSnJVQnVCWm5rIn0.eyJleHAiOjE3NjQ3NTg0MzksImlhdCI6MTc2NDc1ODEzOSwiYXV0aF90aW1lIjoxNzY0NzU4MTM3LCJqdGkiOiJiNzZiNDU0Yy0yNDdmLTRmNWEtYjMyOC1lZGExNDQwN2Y5YjMiLCJpc3MiOiJodHRwczovL3Nzby1zdGFibGUuYmV0YS5tb2V4LmNvbS9hdXRoL3JlYWxtcy9jcmFtbC11bml2ZXJzYWwiLCJhdWQiOiJ0b3VjaGNyYW1sX3B1YmxpYyIsInN1YiI6IjM2NTU3ODhmLWEyMTEtNDI2Ni04MjFlLTQzYWZkMTg3YmVmNyIsInR5cCI6IklEIiwiYXpwIjoidG91Y2hjcmFtbF9wdWJsaWMiLCJub25jZSI6IlVBYmpIclF2YjJzbDh6UFBxS3Z1VyIsInNpZCI6IjEzYzVmOWRjLWYwMzgtNDRjOS1iNWZlLWQ5NGVmZjc2MzhjMCIsImF0X2hhc2giOiJxOWdHVEc1UUNFakRRM2d6UWpCX1hRIiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiI3NDg5Yjc0MC01YmEwLTRjMzEtYWFlZi0yMTAyMmQ0MTFlYWUiLCJzZXNzaW9uX3N0YXRlIjoiMTNjNWY5ZGMtZjAzOC00NGM5LWI1ZmUtZDk0ZWZmNzYzOGMwIn0.UQBUtA7F3MBo1ax2IMZ2ok5ZjGo_Yp7F20vucJOhEldK7WCHfauHv96eYD7eKU6L0lmhbmFqF92MLIwN58b2ksd6Xy08RN3PmiMasIhblDiOx8Cd6W9VrbdnR5Uuf2Ff01m3zRhLK11K1rfM16nbW2mltnsCCacUBBpRKUONjUEw7NLWXzyxtcTHs6ZSPkgVFb8qLiaN2l3yCmkq-tDeRQt9N74SBIgGFeU91gK6Y9JKS2nV4QZ0AbISeR_PUoH96JH0_teCQnSRR704-ca9MdycWpNB5Yt6eo9IMKCpdXl6aBPLtlNlOXloAeqf3nrMsOXWxL5DjH8ySgHQ5S-xxg","not-before-policy":0,session_state:"13c5f9dc-f038-44c9-b5fe-d94eff7638c0",scope:"openid auth_provider auth_flow",customer_record_state:"created"},i=async e=>{let t=await e.text();if(!t)return null;try{return JSON.parse(t)}catch{return t}},l=async e=>{let{tokenUrl:l}=e;if("authDebug"===new URLSearchParams(window.location.search).get("mode"))return{ok:!0,status:200,data:a};let s=await fetch(l,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:(({code:e,refreshToken:a,codeVerifier:i,grantType:l=t,redirectUri:s})=>{let n=new URLSearchParams;return e&&n.set("code",e),a&&n.set("refresh_token",a),l===t&&i&&n.set("code_verifier",i),n.set("response_type","code"),n.set("grant_type",l),n.set("client_id","journal"),n.set("redirect_uri",s),n})(e)}),n=await i(s);return s.ok&&"object"==typeof n&&null!==n&&"string"==typeof n.access_token&&"number"==typeof n.expires_in&&"number"==typeof n.refresh_expires_in&&"string"==typeof n.refresh_token&&"string"==typeof n.token_type?{ok:!0,status:s.status,data:n}:{ok:!1,status:s.status,data:n}};e.s(["exchangeCallbackToken",0,l])},59260,e=>{"use strict";var t,a=e.i(94246),i=e.i(37819),l=((t={}).icon="icon",t.chip="chip",t.accordion="accordion",t.button="button",t.slider="slider",t.card="card",t.stat="stat",t.checkbox="checkbox",t.radio="radio",t.select="select",t.toggle="toggle",t.tooltip="tooltip",t.link="link",t.navigator="navigator",t.banner="banner",t.tag="tag",t.date="date",t.field="field",t.click_field="click_field",t.offer="offer",t.tab="tab",t.submit_button="submit_button",t.popup="popup",t.element="element",t.list="list",t.view_element="view_element",t);e.s(["DataLayerActionType",()=>l,"newHandelDataLayerPush",0,({eventCategory:e,eventActionType:t,eventActionText:l="",eventLabel:s})=>{let n={event:"data-event",eventCategory:e,eventAction:{icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",card:"click_card_",stat:"click_stat_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",click_field:"click_field_",offer:"click_offer_",tab:"click_tab_",submit_button:"form_button_",popup:"show_pop_up_",slider:"click_slider_",navigator:"click_navigator_",element:"click_element_",list:"click_list_",view_element:"view_element_"}[t]+(0,i.translit)(l)};void 0!==s&&(n.eventLabel=(0,i.translit)("string"==typeof s?s:s.toString())),(0,a.dataLayerPush)(n)}])},43487,37993,e=>{"use strict";var t=e.i(67638),a=e.i(82372),i=e.i(17212);let l=e=>{if("string"!=typeof e)return"";let t=e?.split("/")?.pop()||"";return t?.startsWith("stat_")?t?.replace("stat_",""):t};e.s(["getShortUrl",0,l],37993);var s=e.i(88195);let n=()=>"true"===String((0,t.getEnvValue)().NEXT_PUBLIC_COMMENTS_V2_API_ENABLED),r=e=>e?.[0]!=="/"?`/${e}`:e,o=async e=>{let{data:t,error:i}=await (0,a.callApi)({url:`/api/v2/comments?published=true&page=0&size=1000&sort=DESC&sortBy=dt&contentUrl=${r(e)}`,options:{isMpScApi:!0}});return i?{data:{comments:[]}}:{data:{comments:(t?.content||[]).map(e=>({id:e.id,post_id:e.contentUrl,comment:e.text,user_id:e.name,date_created:e.dt,user_name:e.name}))}}},c=async e=>{let[t,l]=await Promise.allSettled([(0,a.callApi)({url:`/api/v2/posts/by-full-url?fullUrl=${e}&draft=false&showPlanned=false`,options:{isMpScNavigator:!0}}),n()?o(e):(0,a.callApi)({url:`/money_data/NavigatorDetailNocache.json?url=${e}`})]),r=(0,i.convertSettledData)(t,null),c=(0,i.convertSettledData)(l,null),d=c?.data?.comments||null;return{data:{article:{...(0,s.parsePost)(r?.data)||{},comments:d},tags:[],ctgs:[],actual_news:[],news_tags:[],towns_info:[],others:[]}}},d=async(e,t)=>{let i=null,s=(0,a.getApiEndpoint)(e,{isMpScNavigator:!0}),n=l(t);try{let e=await fetch(`${s}/api/v1/counter/view/${n}`,{method:"PUT"});if(!e.ok)throw Error(`Error: ${e.statusText}`);i=await e.json()}catch(e){console.error("Error:",e)}return i?.views},u=async(e,t,i)=>{let{data:l}=await (0,a.callApi)({url:"/api/v1/polls/votes",options:{isMpScNavigator:!0},config:{method:"POST",body:JSON.stringify({contentUrl:e,pollKey:t,variantKey:i}),headers:{"Content-Type":"application/json"}}});return(0,s.getSurveyStats)(l?.result?.answers)},m=async(e,t)=>{let{data:i}=await (0,a.callApi)({url:`/api/v1/polls/results?contentUrl=${e}&pollKey=${t}`,options:{isMpScNavigator:!0}});return(0,s.getSurveyStats)(i?.answers)},p=async(e,t,i,l)=>{if("validate"===l)return!0;let{error:s}=await (0,a.callApi)({url:"/api/v2/comments",options:{isMpScApi:!0},config:{method:"POST",body:JSON.stringify((({post_id:e,user_name:t,comment:a})=>({contentUrl:e,name:t,text:a}))({post_id:r(String(e)),user_name:t,comment:i}))}});return!s},h=async(e,t,i,l,s,r)=>{if(n())return await p(t,l,s,r);let o=null,c=(0,a.getApiEndpoint)(e,{});try{let e=await fetch(`${c}/money_data/NavigatorComments.json`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:t,user_name:l,user_id:i,comment:s,secret:"g4$3in4d",type:r})});if(!e.ok)throw Error(`Error: ${e.statusText}`);o=await e.json()}catch(e){console.error("Error:",e)}return!!o?.success},f=async(e,t)=>{let i=null,s=(0,a.getApiEndpoint)(e,{isMpScNavigator:!0}),n=l(t);try{let e=await fetch(`${s}/api/v1/counter/like/INCREMENT/${n}`,{method:"POST"});if(i=await e.json(),!e.ok||!i?.likes)throw Error(`Error: ${e.statusText}`)}catch(e){console.error("Error:",e)}return!!i?.likes};e.s(["getNavigatorDetailData",0,c,"getSurveyVotes",0,m,"submitPostComment",0,h,"submitPostLike",0,f,"submitPostViewNoCache",0,d,"submitSurveyVote",0,u],43487)},11864,e=>{"use strict";var t=e.i(43476),a=e.i(71645);e.i(21496);var i=e.i(62383),l=e.i(91390);let s=(0,a.forwardRef)(({maskOpts:e,value:s="",autoFocus:n=!1,onChange:r,onKeyDown:o,...c},d)=>{let[u,m]=(0,a.useState)(""),{ref:p,setValue:h,unmaskedValue:f}=(0,i.useIMask)(e,{onAccept:(e,t)=>{m(e),null==r||r(t.unmaskedValue,e)}});return(0,a.useEffect)(()=>{s!==f&&(h(s),m(s))},[s,h,f]),(0,a.useImperativeHandle)(d,()=>p.current),(0,t.jsx)(l.I,{...c,autoFocus:n,inputRef:p,value:u,onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),h(""),m(""),null==r||r("","")),null==o||o(e)}})});s.displayName="InputMasked",e.s(["InputMasked",0,s])},5081,e=>{"use strict";e.s(["generateUuid",0,()=>{let e="";for(let t=0;t<36;t++)(8===t||13===t||18===t||23===t)&&(e+="-"),e+="0123456789abcdef"[Math.floor(16*Math.random())];return e}])},44323,e=>{"use strict";var t=e.i(43476),a=e.i(71645),i=e.i(43489),l=e.i(53760),s=e.i(58950),n=e.i(7670),r=e.i(2753),o=e.i(14044);let c=(0,e.i(54061).g)("tooltip"),d=Object.freeze({tooltip:c,text:`${c}__text`,wrapper:`${c}__wrapper`,inverted:`${c}--inverted`}),u=({children:e,moveToBody:a})=>a?(0,t.jsx)(i.FloatingPortal,{id:r.T,children:e}):(0,t.jsx)(t.Fragment,{children:e}),m=(0,a.forwardRef)(({position:e="top",text:r,zIndex:c=1,inverted:m,withoutTail:p,children:h,boundingOffset:f=12,boundaryPadding:g,moveToBody:v=!1,hideWhenOutOfBounds:_=!1,style:b,className:y,dataQa:x,dataId:w,...j},k)=>{let[N,C]=(0,a.useState)(!1),I=(0,a.useRef)(null),{refs:$,floatingStyles:S,context:M,middlewareData:L}=(0,i.useFloating)({open:N,onOpenChange:C,placement:e,whileElementsMounted:l.autoUpdate,middleware:[(0,s.offset)({mainAxis:f}),(0,s.flip)({fallbackAxisSideDirection:"start",crossAxis:!1,...void 0!==g&&{padding:g}}),(0,s.shift)({...void 0!==g&&{padding:g}}),(0,s.arrow)({element:I,padding:8}),..._?[(0,s.hide)({strategy:"escaped",padding:-24})]:[]]}),W=(0,i.useHover)(M,{delay:300}),{getReferenceProps:T,getFloatingProps:E}=(0,i.useInteractions)([W]),R=(0,i.useTransitionStyles)(M,{duration:300});return(0,a.useImperativeHandle)(k,()=>({getActivatorElement:$.reference,getTooltipElement:$.floating})),(0,a.useEffect)(()=>{var e;(null==(e=L.hide)?void 0:e.escaped)&&C(!1)},[L.hide]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"data-qa":(0,o.g)(`${x}-activator`,!!x),ref:$.setReference,...T,className:d.wrapper,children:h}),R.isMounted&&(0,t.jsx)(u,{moveToBody:v,children:(0,t.jsxs)("div",{role:"tooltip",ref:$.setFloating,style:{...S,...R.styles,...b,zIndex:c},className:(0,n.default)(d.tooltip,y,{[d.inverted]:m}),...E,...j,"data-qa":x,"data-id":w,children:[(0,t.jsx)("span",{className:(0,n.default)(d.text,{[d.inverted]:m}),children:r}),!p&&(0,t.jsx)(i.FloatingArrow,{ref:I,context:M,width:16,d:"M8 10C6 12.58 3.43 16 0 16L16 16C12.58 16 10 12.58 8 10Z",fill:m?"var(--color-white)":"var(--color-black-500)"})]})})]})});m.displayName="Tooltip",e.s(["Tooltip",0,m],44323)},22668,e=>{"use strict";var t=e.i(71645),a=e.i(10653);e.s(["u",0,function(e,i){let[l,s]=(0,t.useState)(e);return(0,t.useEffect)(()=>{(0,a.i)(i)&&s(i)},[JSON.stringify(i)]),[l,s]}])}]);