(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 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),r=e.i(7670),s=e.i(71645),a=e.i(2404),n=e.i(12569);function o(e){return s.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),s.createElement("g",{clipPath:"url(#a)"},s.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 i(e){return s.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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 l=(0,e.i(54061).g)("caption"),c=Object.freeze({caption:l,captionWithIcon:`${l}--with-icon`,content:`${l}__content`,icon:`${l}__icon`,text:`${l}__text`,size:{s:`${l}--s`,m:`${l}--m`},states:{success:`${l}--success`,error:`${l}--error`,warning:`${l}--warning`}});function d({as:e,children:s,state:l="default",size:u="m",text:p,withoutIcon:f=!1,lineClamp:h,role:m,dataQa:g,dataId:y,className:v,style:b,...w}){let x=p||s,_=!f&&["success","error","warning"].includes(l),$="success"===l?o:i,j=(0,r.default)(v,c.caption,c.size[u],{[c.captionWithIcon]:_,[c.states.success]:"success"===l,[c.states.error]:"error"===l,[c.states.warning]:"warning"===l});return(0,t.jsx)(e||"div",{className:j,style:b,role:m,...w,"data-id":y,"data-qa":g,children:(0,t.jsxs)("div",{className:c.content,children:[_&&x&&(0,t.jsx)(a.P,{className:c.icon,children:(0,t.jsx)($,{})}),(0,t.jsx)("span",{className:(0,r.default)(c.text),style:{...h?{WebkitLineClamp:h,lineClamp:h,...n.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,r)=>{if(e)return"object"!=typeof e?r:"function"==typeof t?t(e):e[t]},"v",0,e=>{let{width:t,height:r}=e.getBoundingClientRect();return{x:{start:e.scrollLeft,end:Math.floor(e.scrollLeft+t)},y:{start:e.scrollTop,end:Math.floor(e.scrollTop+r)}}}])},23179,e=>{"use strict";var t=e.i(43476),r=e.i(54061),s=e.i(71645),a=e.i(7670),n=e.i(43489),o=e.i(53760),i=e.i(58950),l=e.i(2753),c=e.i(89485),d=e.i(14044),u=e.i(21214),p=e.i(2404);function f(){return"u"<typeof window}let h=f()?s.useLayoutEffect:s.useEffect;function m(e,t=!1){return f()?t:window.matchMedia(e).matches}function g(e){let{minWidth:t}=c.a[e];return function(e,{defaultValue:t=!1,initializeWithValue:r=!0}={}){let[a,n]=(0,s.useState)(()=>r?m(e,t):t??!1);function o(){n(m(e))}return h(()=>{let t=window.matchMedia(e);return o(),"function"==typeof t.addListener?t.addListener(o):t.addEventListener("change",o),()=>{"function"==typeof t.removeListener?t.removeListener(o):t.removeEventListener("change",o)}},[e]),a}(`screen and (min-width: ${t}px)`)}let y=Object.freeze({divider:(0,r.g)("dropdown-divider")}),v=({...e})=>(0,t.jsx)("div",{...e,className:y.divider});v.displayName="DropdownDivider";let b=(0,r.g)("dropdown-group"),w=Object.freeze({group:b,title:`${b}__title`,content:`${b}__content`}),x=({title:e,children:r,...s})=>(0,t.jsxs)("div",{...s,className:w.group,children:[(0,t.jsx)("div",{className:w.title,children:e}),(0,t.jsx)("div",{className:w.content,children:r})]});x.displayName="DropdownGroup";let _=(0,r.g)("dropdown-option"),$=Object.freeze({option:_,slot:`${_}__slot`,iconSlot:`${_}__slot--icon`,wrapper:`${_}__wrapper`,label:`${_}__label`,caption:`${_}__caption`,states:{danger:`${_}--danger`,success:`${_}--success`,focused:`${_}--focused`,disabled:`${_}--disabled`}}),j=(0,s.createContext)(null),E=()=>{let e=(0,s.useContext)(j);if(null===e)throw Error("Dropdown components must be wrapped in <Dropdown />");return e};function N({placement:e="bottom",width:t="auto",desktopMaxHeight:r,mobileFullHeight:a=!1,title:l,description:c,opened:d,onToggle:u,heading:p,footer:f,dataQa:h,dataId:m}={}){let[g,y]=(0,s.useState)(!1),v=d??g,b=u??y,w=(0,n.useFloating)({open:v,onOpenChange:b,placement:e,whileElementsMounted:o.autoUpdate,middleware:[(0,i.offset)(8),(0,i.flip)({fallbackAxisSideDirection:"none"}),(0,i.shift)({crossAxis:!1,padding:8})]});return(0,s.useMemo)(()=>({open:v,setOpen:b,...w,width:t,desktopMaxHeight:r,title:l,description:c,heading:p,footer:f,mobileFullHeight:a,dataQa:h,dataId:m}),[v,b,w,t,r,l,c,p,f,a,h,m])}let k=({children:e,...r})=>{let s=N(r);return(0,t.jsx)(j.Provider,{value:s,children:e})};k.displayName="Dropdown";let C=(0,r.g)("dropdown"),S=Object.freeze({dropdown:C,overlay:`${C}__overlay`,mobileHeading:`${C}__mobile-heading`,heading:`${C}__heading`,title:`${C}__title`,description:`${C}__description`,content:`${C}__content`,contentInner:`${C}__content-inner`,footer:`${C}__footer`,close:`${C}__close`,closeIcon:`${C}__close-icon`,states:{auto:`${C}--auto`,fullHeight:`${C}--full-height`}}),R=({footer:e,...r})=>e?(0,t.jsx)("div",{...r,className:S.footer,children:e}):null;R.displayName="DropdownFooter";let T=({title:e,description:r,heading:a,isDesktop:n,setOpen:o,...i})=>{let l=(0,s.useMemo)(()=>a||(n&&(e||r)?(0,t.jsxs)(t.Fragment,{children:[e&&(0,t.jsx)("div",{className:S.title,children:e}),r&&(0,t.jsx)("div",{className:S.description,children:r})]}):null),[r,a,n,e]);return(0,t.jsxs)(t.Fragment,{children:[!n&&(0,t.jsxs)("div",{...i,className:S.mobileHeading,children:[e&&(0,t.jsx)("div",{className:S.title,children:e}),r&&(0,t.jsx)("div",{className:S.description,children:r}),(0,t.jsx)("button",{className:S.close,type:"button",tabIndex:-1,"aria-label":"Закрыть окно",onClick:()=>o(!1),children:(0,t.jsx)(p.P,{"aria-hidden":"true",className:S.closeIcon,style:{display:"inline-flex"},children:(0,t.jsx)(u.S,{})})})]}),l&&(0,t.jsx)("div",{...i,className:S.heading,children:l})]})};T.displayName="DropdownHeader";let A=(0,s.forwardRef)(({style:e,contentInnerRef:r,...o},i)=>{var c,u;let{open:p,context:f,width:h,floatingStyles:m,refs:y,heading:v,title:b,description:w,footer:x,desktopMaxHeight:_,mobileFullHeight:$,dataQa:j,dataId:N,setOpen:k}=E(),C=(0,n.useMergeRefs)([y.setFloating,i]),A=(0,s.useRef)(null),L=g("s"),{isMounted:P,styles:O}=(0,n.useTransitionStyles)(f,{initial:{opacity:.2,transform:L?"translate(0, 0)":"translate(0, 100%)"},open:{opacity:1,transform:"translate(0, 0)"},duration:{open:300,close:100}});if((0,s.useEffect)(()=>{let e=({target:e})=>{!p||[A.current,y.reference.current].some(t=>t===e||t&&t.contains(e))||k(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[p,y.reference,k]),!P)return null;let D=(0,t.jsxs)("div",{ref:A,className:(0,a.default)(S.dropdown,{[S.states.fullHeight]:$}),role:L?"popup":"dialog","aria-modal":!L,"data-id":N,"data-qa":j,style:O,children:[(0,t.jsx)(T,{title:b,description:w,heading:v,isDesktop:L,setOpen:k,"data-qa":(0,d.g)(`${j}-header`,!!j)}),(0,t.jsx)("div",{...o,className:S.content,"data-qa":(0,d.g)(`${j}-content`,!!j),children:(0,t.jsx)("div",{className:S.contentInner,style:{maxHeight:L?_:void 0},ref:r,children:o.children})}),(0,t.jsx)(R,{"data-qa":(0,d.g)(`${j}-header`,!!j),footer:x})]});if(L){let r;return"inherit"===h?r=null==(u=null==(c=null==y?void 0:y.reference)?void 0:c.current)?void 0:u.clientWidth:"auto"===h?r=void 0:"number"==typeof h&&(r=h),(0,t.jsx)("div",{className:(0,a.default)(S.overlay,{[S.states.auto]:"auto"===h}),style:{...e,...m,...void 0!==r&&{width:r}},ref:C,children:D})}return(0,t.jsx)(n.FloatingPortal,{id:l.D,children:(0,t.jsx)(n.FloatingOverlay,{lockScroll:!0,className:(0,a.default)(S.overlay,{[S.states.auto]:"auto"===h}),style:e,ref:C,children:D})})});A.displayName="DropdownContent";let L=(0,s.forwardRef)(function({children:e,asChild:r=!1,disabled:a,...o},i){let{refs:l,open:c,setOpen:d}=E(),u=e.ref,p=(0,n.useMergeRefs)([l.setReference,i,u]),f=(0,s.useCallback)(()=>{a||d(!c)},[a,c,d]);return r&&(0,s.isValidElement)(e)?(0,s.cloneElement)(e,{ref:p,disabled:a,onClick:f,...o,...e.props}):(0,t.jsx)("button",{ref:p,onClick:f,disabled:a,...o,type:"button",children:e})});L.displayName="DropdownTrigger",e.s(["D",0,k,"a",0,A,"b",0,j,"c",0,v,"d",0,R,"e",0,x,"f",0,T,"g",0,function({as:e,label:r,caption:n,iconLeft:o,iconRight:i,prepend:l,append:c,variant:d="default",disabled:u=!1,focused:p=!1,className:f,onClick:h,...m}){let g=(0,a.default)(f,$.option,{[$.states.focused]:p,[$.states.success]:"success"===d,[$.states.danger]:"danger"===d,[$.states.disabled]:!!u}),y=(0,s.useCallback)(e=>{e.preventDefault(),u||null==h||h(e)},[u,h]);return(0,t.jsxs)(e||"div",{...m,className:g,"aria-disabled":u,onClick:y,children:[l&&(0,t.jsx)("span",{className:$.slot,children:l}),o&&(0,t.jsx)("span",{className:(0,a.default)($.slot,$.iconSlot),children:o}),(0,t.jsxs)("div",{className:$.wrapper,children:[(0,t.jsx)("span",{className:$.label,children:r}),n&&(0,t.jsx)("span",{className:$.caption,children:n})]}),i&&(0,t.jsx)("span",{className:(0,a.default)($.slot,$.iconSlot),children:i}),c&&(0,t.jsx)("span",{className:$.slot,children:c})]})},"h",0,L,"i",0,"div","j",0,E,"k",0,g,"u",0,N])},33329,e=>{"use strict";var t=e.i(43476),r=e.i(7670),s=e.i(71645),a=e.i(2404),n=e.i(54061);function o(e){return s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.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 i(e){return s.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("rect",{width:18,height:3,x:3,y:10.5,fill:"currentColor",rx:1.5}))}let l=["checkbox"],c=(0,n.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:s="default",type:n="checkbox",className:c,checked:u,inverted:p,disabled:f,...h})=>(0,t.jsx)(e||"span",{...h,className:(0,r.default)(c,d.marker,{[d.states.checkbox]:"checkbox"===n,[d.states.radio]:"radio"===n,[d.states.toggle]:"toggle"===n,[d.states.checked]:!!u,[d.states.indeterminate]:"indeterminate"===u,[d.states.error]:"error"===s,[d.states.inverted]:p,[d.states.disabled]:f}),children:l.includes(n)&&(0,t.jsx)(a.P,{className:(0,r.default)(d.icon,{[d.states.checked]:u,[d.states.inverted]:p,[d.states.error]:"error"===s,[d.states.disabled]:f}),children:"indeterminate"===u?(0,t.jsx)(i,{}):(0,t.jsx)(o,{})})});u.displayName="CommonMarker",e.s(["C",0,u])},10653,e=>{"use strict";e.s(["i",0,function(e){return void 0!==e}])},14087,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(7670),a=e.i(30083),n=e.i(2404),o=e.i(10653),i=e.i(33329),l=e.i(23179);function c(e){return r.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.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 p({value:e,label:d,options:f=[],optionValue:h="value",optionLabel:m="label",optionCaption:g="caption",optionDisabled:y="disabled",variant:v="primary",state:b,size:w="m",icon:x,rightLabel:_,clearable:$=!1,multiple:j=!1,disabled:E=!1,caption:N,placeholder:k,className:C,dataId:S,dataQa:R,isOpen:T=!1,classnameTrigger:A,selectedValue:L,onChange:P,onToggle:O,onSelect:D,onUnselect:I,onFocus:q,onBlur:M,...U}){let[B,F]=(0,r.useState)(!1),[z,H]=(0,r.useState)(),[Z,W]=(0,r.useState)(),[V,J]=(0,r.useState)(!1),X=(0,r.useRef)(null),G=(0,r.useId)(),K=(0,r.useId)(),Q=(0,r.useId)();(0,r.useEffect)(()=>{e?H(e):H(j?[]:void 0)},[j,e]);let Y=(0,r.useMemo)(()=>f.map((e,t)=>{let r=(0,a.g)(e,h,e),s=j&&Array.isArray(z)?z.map(e=>(0,a.g)(e,h,e)):(0,a.g)(z,h,z);return{index:t,value:r,label:(0,a.g)(e,m,e),caption:(0,a.g)(e,g),disabled:(0,a.g)(e,y,!1),selected:j?Array.isArray(s)&&s.includes(r):s===r,active:Z===t,original:e,id:`${Q}-option-${t}`}}),[Z,Q,z,j,g,y,m,h,f]),ee=(0,r.useMemo)(()=>Y.filter(e=>e.selected),[Y]),et=(0,r.useMemo)(()=>(0,o.i)(Z)&&Y[Z].id,[Z]),er=(0,r.useCallback)(e=>{H(e),null==P||P(e)},[P]),es=(0,r.useCallback)(()=>{if(X.current&&et){let{start:e,end:t}=(0,a.v)(X.current).y,r=document.getElementById(et);if(r){let s=r.offsetTop+r.clientHeight-t,a=e-r.offsetTop;s>0?X.current.scrollTop+=s+8:a>0&&(X.current.scrollTop-=a+8)}}},[et]),ea=e=>{F(e),null==O||O(e)},en=(0,r.useCallback)(e=>{if(!(0,o.i)(e))return 0;let t=0===e?Y.length-1:e-1;return Y[t].disabled?en(t):t},[Y]),eo=(0,r.useCallback)(e=>{if(!(0,o.i)(e))return 0;let t=e===Y.length-1?0:e+1;return Y[t].disabled?eo(t):t},[Y]),ei=(0,r.useCallback)(e=>{let t=e&&e.index!==Y.length-1?Y[e.index+1]:Y[0];return t.disabled?ei(t):t},[Y]),el=(0,r.useCallback)(e=>{let t=e&&0!==e.index?Y[e.index-1]:Y[Y.length-1];return t.disabled?el(t):t},[Y]),ec=()=>{ea(!0),W(ee.length>0?ee[0].index:0)},ed=()=>{ea(!1),W(void 0)},eu=(0,r.useCallback)(e=>{if(!j){er($&&e.selected?void 0:e.original),ed();return}if(e.selected&&Array.isArray(z)){er(z.filter(t=>(0,a.g)(t,h,t)!==e.value)),null==I||I(e.original);return}Array.isArray(z)&&(er([...z,e.original]),null==D||D(e.original))},[$,ed,z,j,D,I,h,er]),ep=(0,r.useCallback)(e=>{e.preventDefault(),B?ed():($||j)&&(ee.forEach(e=>null==I?void 0:I(e.original)),er(j?[]:void 0))},[$,ed,j,I,B,ee,er]),ef=(0,r.useCallback)(()=>{B&&ed()},[ed,B]),eh=(0,r.useCallback)(e=>{(e.preventDefault(),B)?W(en(Z)):j||er(el(ee[0]).original)},[Z,en,el,j,B,ee,er]),em=(0,r.useCallback)(e=>{(e.preventDefault(),B)?W(eo(Z)):j?ec():er(ei(ee[0]).original)},[Z,eo,ei,j,B,ec,ee,er]),eg=(0,r.useCallback)(e=>{switch(J(!0),e.key){case"Escape":case"Esc":ep(e);break;case"Tab":ef();break;case"ArrowDown":em(e);break;case"ArrowUp":eh(e)}},[em,eh,ep,ef]),ey=(0,r.useCallback)(e=>{(e.preventDefault(),B)?((0,o.i)(Z)&&eu(Y[Z]),j||ed()):ec()},[Z,ed,eu,Y,j,B,ec]),ev=(0,r.useCallback)(e=>{J(!0),(" "===e.key||"Enter"===e.key)&&ey(e)},[ey]);(0,r.useEffect)(()=>{T&&(()=>{ea(!0);let{value:t,label:r}=(Array.isArray(e)?e[0]:e)??{},s=Y.find(e=>e.value===t&&e.label===r);W((null==s?void 0:s.index)??0)})()},[T]),(0,r.useEffect)(()=>{B&&es()},[B,es]),(0,r.useEffect)(()=>{if(!B)return;let e=e=>{eg(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[eg,B]);let eb=(0,s.default)(A,u.activator,{[u.states.primary]:"primary"===v,[u.states.secondary]:"secondary"===v,[u.states.small]:"s"===w,[u.states.medium]:"m"===w,[u.states.large]:"l"===w,[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.opened]:B,[u.states.disabled]:E}),ew=(0,r.useMemo)(()=>ee.length>0?(0,t.jsxs)(t.Fragment,{children:["s"!==w&&(0,t.jsx)("div",{id:K,className:(0,s.default)(u.label,{[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.opened]:B,[u.states.disabled]:E}),children:d},"label"),(0,t.jsx)("div",{className:(0,s.default)(u.selected,{[u.states.disabled]:E}),children:(null==L?void 0:L(ee.map(e=>e.original)))||ee.map(({label:e})=>e).join(", ")})]}):(0,t.jsx)("div",{id:K,className:(0,s.default)(u.placeholder,{[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.opened]:B,[u.states.disabled]:E}),children:k||d},"placeholder"),[E,d,K,B,k,ee,L,w,b]);return(0,t.jsx)("div",{className:(0,s.default)(C,u.select),children:(0,t.jsxs)(l.D,{opened:B,onToggle:()=>{B?ed():ec()},width:"inherit",placement:"bottom",children:[(0,t.jsx)(l.h,{asChild:!0,disabled:E,children:(0,t.jsxs)("div",{className:eb,id:G,tabIndex:E?-1:0,role:"combobox","aria-haspopup":"listbox","aria-labelledby":K,"aria-controls":Q,"aria-disabled":E,"aria-expanded":B,...!E&&{onFocus:e=>{null==q||q(e)},onBlur:e=>{null==M||M(e)},onKeyDownCapture:ev,onKeyDown:B?void 0:eg},...U,"data-id":S,"data-qa":R,children:[(0,t.jsx)("div",{className:u.activatorWrapper,children:ew}),_&&(0,t.jsx)("div",{"aria-label":_,className:(0,s.default)(u.rightLabel,{[u.states.disabled]:E}),children:_}),x&&(0,t.jsx)("div",{"aria-hidden":"true",className:(0,s.default)(u.icon,{[u.states.disabled]:E}),children:x}),(0,t.jsx)("div",{className:(0,s.default)(u.icon,{[u.states.disabled]:E,[u.states.opened]:B}),children:(0,t.jsx)(n.P,{style:{fontSize:24},"aria-expanded":B,children:(0,t.jsx)(c,{})})})]})}),N&&(0,t.jsx)("div",{className:(0,s.default)(u.caption,{[u.states.error]:"error"===b,[u.states.success]:"success"===b,[u.states.secondary]:"secondary"===v,[u.states.disabled]:E}),children:N}),(0,t.jsx)(l.a,{contentInnerRef:X,children:(0,t.jsx)("ul",{role:"listbox",id:Q,className:u.options,onMouseOver:()=>{V&&J(!1)},children:Y.map(e=>(0,t.jsx)(l.g,{as:"li",disabled:e.disabled,label:e.label,caption:e.caption,focused:e.active&&V,onClick:()=>eu(e),prepend:j?(0,t.jsx)(i.C,{type:"checkbox",checked:e.selected,disabled:e.disabled}):void 0,append:j?void 0:(0,t.jsx)(n.P,{className:(0,s.default)(u.optionIcon,{[u.states.selected]:e.selected}),style:{fontSize:24},children:(0,t.jsx)(a.S,{})}),"aria-selected":e.selected,role:"option",id:e.id},JSON.stringify(e.value)))})})]})})}p.displayName="Select",e.s(["Select",0,p])},67638,e=>{"use strict";var t=e.i(47167);e.i(43476),e.i(10679);var r=e.i(8438);let s=(0,e.i(22468).g)("root-layout","sc"),a=(Object.freeze({layout:`${s}__layout`,body:`${s}__body`}),e=>"NODE_ENV"===e||e.startsWith("NEXT_PUBLIC_"));e.s(["getEnvValue",0,()=>{if(typeof window>"u")return((e=t.default.env)=>{let r={};for(let[t,s]of Object.entries(e))a(t)&&void 0!==s&&(r[t]=s);return r})(t.default.env);let e=(0,r.g)();if(!e)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что env передан в RootLayout (LayoutClientInitializer вызовет setEnvStore).");return e}])},82372,e=>{"use strict";var t=e.i(47167);let r=/"(?:_|\\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*:/,s=/"(?: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*:/,a=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function n(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,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let i=e.trim();if(i.length<=9)switch(i.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(!a.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(r.test(e)||s.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,n)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}let i=/#/g,l=/&/g,c=/\//g,d=/=/g,u=/\+/g,p=/%5e/gi,f=/%60/gi,h=/%7c/gi,m=/%20/gi;function g(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(h,"|").replace(u,"%2B").replace(m,"+").replace(i,"%23").replace(l,"%26").replace(f,"`").replace(p,"^").replace(c,"%2F")}function y(e){return g(e).replace(d,"%3D")}function v(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let b=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,w=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,x=/^([/\\]\s*){2,}[^/\\]/,_=/\/$|\/\?|\/#/,$=/^\.?\//;function j(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?b.test(e):w.test(e)||!!t.acceptRelative&&x.test(e)}let E=Symbol.for("ufo:protocolRelative");function N(e=""){let[t="",r="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:s}}class k extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let C=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function S(e="GET"){return C.has(e.toUpperCase())}let R=new Set(["image/svg","application/xml","application/xhtml","application/html"]),T=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function A(e,t){if(t)if(Array.isArray(t))for(let r of t)await r(e);else await t(e)}let L=new Set([408,409,425,429,500,502,503,504]),P=new Set([101,204,205,304]),O="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g,D=function e(t={}){let{fetch:r=globalThis.fetch,Headers:s=globalThis.Headers,AbortController:a=globalThis.AbortController}=t;async function n(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:+!S(e.options.method);let r=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(r):L.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)),i(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",s=e.request?.url||String(e.request)||"/",a=`[${r}] ${JSON.stringify(s)}`,n=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",o=new k(`${a}: ${n}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(o,t,{get:()=>e[t]});for(let[t,r]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,t,{get:()=>e.response&&e.response[r]});return o}(e);throw Error.captureStackTrace&&Error.captureStackTrace(r,i),r}let i=async function(e,i={}){var l,c,d,p;let f,h,m,b={request:e,options:(l=t.defaults,m=function(e,t,r){if(!t)return new r(e);let s=new r(t);if(e)for(let[t,a]of Symbol.iterator in e||Array.isArray(e)?e:new r(e))s.set(t,a);return s}(i?.headers??e?.headers,l?.headers,s),(l?.query||l?.params||i?.params||i?.query)&&(h={...l?.params,...l?.query,...i?.params,...i?.query}),{...l,...i,query:h,params:h,headers:m}),response:void 0,error:void 0};if(b.options.method&&(b.options.method=b.options.method.toUpperCase()),b.options.onRequest&&(await A(b,b.options.onRequest),b.options.headers instanceof s||(b.options.headers=new s(b.options.headers||{}))),"string"==typeof b.request){if(b.options.baseURL&&(b.request=function(e,t){var r;if(!(r=t)||"/"===r||j(e))return e;let s=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(s)){let t=e[s.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($,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}(s,e)}(b.request,b.options.baseURL)),b.options.query){let e,t,r,s,a,n,o;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 s=v(e[1].replace(u," "));if("__proto__"===s||"constructor"===s)continue;let a=v((e[2]||"").replace(u," "));void 0===t[s]?t[s]=a:Array.isArray(t[s])?t[s].push(a):t[s]=[t[s],a]}return t}((e=function e(t="",r){let s=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(s){let[,e,t=""]=s;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!j(t,{acceptRelative:!0}))return r?e(r+t):N(t);let[,a="",n,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,i="",l=""]=o.match(/([^#/?]*)(.*)?/)||[];"file:"===a&&(l=l.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:c,search:d,hash:u}=N(l);return{protocol:a.toLowerCase(),auth:n?n.slice(0,Math.max(0,n.length-1)):"",host:i,pathname:c,search:d,hash:u,[E]:!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=>`${y(e)}=${g(t)}`).join("&"):`${y(e)}=${g(r)}`:y(e)}).filter(Boolean).join("&"),r=(p=e).pathname||"",s=p.search?(p.search.startsWith("?")?"":"?")+p.search:"",a=p.hash||"",n=p.auth?p.auth+"@":"",o=p.host||"",b.request=(p.protocol||p[E]?(p.protocol||"")+"//":"")+n+o+r+s+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&&S(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;f=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 A(b,b.options.onRequestError),await n(b)}finally{f&&clearTimeout(f)}if((b.response.body||b.response._bodyInit)&&!P.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 T.test(t)?"json":"text/event-stream"===t?"stream":R.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 A(b,b.options.onResponse),!b.options.ignoreResponseError&&b.response.status>=400&&b.response.status<600)?(b.options.onResponseError&&await A(b,b.options.onResponseError),await n(b)):b.response},l=async function(e,t){return(await i(e,t))._data};return l.raw=i,l.native=(...e)=>r(...e),l.create=(r={},s={})=>e({...t,...s,defaults:{...t.defaults,...s.defaults,...r}}),l}({fetch:O.fetch?(...e)=>O.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),Headers:O.Headers,AbortController:O.AbortController}),I=["kasko","osago","kalkulyator_kasko","kalkulyator_osago","kalkulyator_tourism","strahovanie_reitingi","kreditnye_karty","potrebitelskie_kredity","ipoteka","avtokredity","mikrozajmy","vklady","debetovye_karty"],q=(e,t)=>({source:`/${e}/stat_:path(.*)${t?"/:app(app)":""}`,destination:`/navigator/__legacy-product__/${e}/stat_:path${t?"/:app":""}`});[...I.map(e=>q(e,!0)),...I.map(e=>q(e,!1))];let M={APP_PREFIX:"service-navigator",APP_VERSION:t.default.env.APP_VERSION??String(Math.random()).slice(2),REDIS_PORT:Number(t.default.env.REDIS_PORT),REDIS_HOST:t.default.env.REDIS_HOST};var U=e.i(67638);let B=0,F=[],z=new Map,H=async()=>{B>=12&&await new Promise(e=>{F.push(e)}),B+=1},Z=async e=>{await H();try{return await e()}finally{B=Math.max(0,B-1),F.shift()?.()}},W=(e,t)=>{let{isPageContent:r,isMpScRedirects:s,isMpScApi:a,isMpScNavigator:n,isOrganizationApi:o,isAppApi:i}=t;return i?`/${M.APP_PREFIX}`:r?`${e.NEXT_PUBLIC_BASE_URL}/page-content`:a||n?`${e.NEXT_PUBLIC_BASE_URL}/sc`:e.NEXT_PUBLIC_BASE_URL},V=async({url:e,endpoint:t,method:r,config:s,env:a,tags:n})=>{let o=new AbortController,i=setTimeout(()=>o.abort(),5e3),l=()=>o.abort();s?.signal?.aborted&&o.abort(),s?.signal?.addEventListener("abort",l,{once:!0});let c=performance.now();try{let n=await D(e,{baseURL:t,method:r,headers:{...s?.headers},...s,signal:o.signal,timeout:5e3,retry:0,next:{revalidate:Number(a.REVALIDATE_REQUEST_VALUE)||1800,...{}}}),i=performance.now()-c;return i>=1e3&&console.warn(`Запрос ${t}${e} занял ${i.toFixed(2)} ms`),{data:n,error:null}}catch(r){return r.status??r.statusCode,console.error("Ошибка запроса",`${r}: ${t}${e}`),{data:null,error:r||"Unknown error"}}finally{clearTimeout(i),s?.signal?.removeEventListener("abort",l)}},J=async({url:e,options:t={},config:r})=>{let s=(0,U.getEnvValue)(),a=W(s,t),n=(r?.method||"GET").toUpperCase();if(!a)return console.error("Ошибка запроса: API endpoint не задан",e),{data:null,error:"API endpoint is not configured"};let o=()=>Z(()=>V({url:e,endpoint:a,method:n,config:r,env:s,tags:t.tags}));if(r?.signal||"GET"!==n&&"HEAD"!==n)return o();var i=`${n}:${a}${e}`;let l=z.get(i);if(l)return l;let c=o().finally(()=>{z.delete(i)});return z.set(i,c),c};e.s(["callApi",0,J,"getApiEndpoint",0,W],82372)},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,r])=>{Array.isArray(r)?r.forEach(r=>t.append(e,String(r))):t.append(e,String(r))});let r=t.toString();return r?`?${r}`:""}])},47694,80844,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(7670);function a(e){return r.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},r.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,a],80844);var n=e.i(3315),o=e.i(33329),i=e.i(2404);let l=(0,e.i(54061).g)("radio"),c=Object.freeze({radio:l,input:`${l}__input`,marker:`${l}__marker`,wrapper:`${l}__wrapper`,label:`${l}__label`,caption:`${l}__caption`,icon:`${l}__icon`,iconButton:`${l}__icon-button`,states:{error:`${l}--error`,disabled:`${l}--disabled`,inverted:`${l}--inverted`},sizes:{xs:`${l}--xs`,s:`${l}--s`,m:`${l}--m`},variants:{primary:`${l}--primary`,secondary:`${l}--secondary`}}),d=(0,r.forwardRef)(({value:e,variant:l="primary",checked:d=!1,state:u="default",label:p,disabled:f=!1,caption:h,className:m,style:g,icon:y,withIcon:v=!1,size:b="m",inverted:w=!1,children:x,inputRef:_,onChange:$,onIconClick:j,dataQa:E,dataId:N,...k},C)=>{let S=(0,r.useId)(),R=x||p;return(0,t.jsxs)("label",{ref:C,htmlFor:S,"data-marker-label":"",className:(0,s.default)(m,c.radio,{[c.states.disabled]:f,[c.states.inverted]:w,[c.states.error]:"error"===u,[c.sizes[b]]:!0,[c.variants[l]]:!0}),style:g,"data-id":N,"data-qa":E,children:[(0,t.jsx)("input",{id:S,value:e,checked:d,className:c.input,type:"radio",disabled:f,onChange:e=>{null==$||$(e.target.value,e)},ref:_,...k}),(0,t.jsx)("span",{className:c.marker,children:(0,t.jsx)(o.C,{type:"radio",checked:d,inverted:w,state:u,disabled:f})}),R&&(0,t.jsxs)("span",{className:c.wrapper,children:[(0,t.jsx)("span",{className:c.label,children:R}),h&&(0,t.jsx)(n.C,{className:c.caption,withoutIcon:!0,children:h})]}),v&&(0,t.jsx)("button",{type:"button",className:(0,s.default)(c.iconButton),onClick:f?void 0:j,children:(0,t.jsx)(i.P,{className:(0,s.default)(c.icon),children:y?(0,t.jsx)(t.Fragment,{children:y}):(0,t.jsx)(a,{})})})]})});d.displayName="Radio",e.s(["Radio",0,d],47694)}]);