(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,67585,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return r}});let l=e.r(32061);function r({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new l.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},9885,(e,t,n)=>{"use strict";function l(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return l}})},52157,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return s}});let l=e.r(43476),r=e.r(74080),i=e.r(63599),o=e.r(9885),a=e.r(43369);function s({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let l=t.reactLoadableManifest;for(let t of e){if(!l[t])continue;let e=l[t].files;n.push(...e)}}if(0===n.length)return null;let c=(0,a.getAssetTokenQuery)();return(0,l.jsx)(l.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,l.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,r.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},69093,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return c}});let l=e.r(43476),r=e.r(71645),i=e.r(67585),o=e.r(52157);function a(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},c=function(e){let t={...s,...e},n=(0,r.lazy)(()=>t.loader().then(a)),c=t.loading;function u(e){let a=c?(0,l.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,u=s?r.Suspense:r.Fragment,d=t.ssr?(0,l.jsxs)(l.Fragment,{children:["u"<typeof window?(0,l.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,l.jsx)(n,{...e})]}):(0,l.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,l.jsx)(n,{...e})});return(0,l.jsx)(u,{...s?{fallback:a}:{},children:d})}return u.displayName="LoadableComponent",u}},70703,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return r}});let l=e.r(55682)._(e.r(69093));function r(e,t){let n={};"function"==typeof e&&(n.loader=e);let r={...n,...t};return(0,l.default)({...r,modules:r.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},8145,13757,e=>{"use strict";var t=e.i(43476),n=e.i(7670),l=e.i(12569);let r=Object.freeze({text:(0,e.i(54061).g)("text")});function i({as:e,className:o,style:a,children:s,size:c,weight:u,lineClamp:d,dataQa:f,dataId:p,...m}){return(0,t.jsx)(e||"span",{className:(0,n.default)(r.text,o),style:{...c&&{fontSize:`var(--font-size-${c})`,lineHeight:`var(--font-line-height-${c})`},...u&&{fontWeight:`var(--font-weight-${u})`},...d&&{WebkitLineClamp:d,lineClamp:d,...l.l},...a},...m,"data-id":p,"data-qa":f,children:s})}i.displayName="Text",e.s([],8145),e.s(["Text",0,i],13757)},56239,e=>{"use strict";let t={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"};e.s(["t",0,e=>e.replace(/[а-яё]/gi,e=>{let n=e.toLowerCase();return n in t?t[n]:e}).replaceAll(/[ \u00A0]/g,"_")])},63687,e=>{"use strict";let t;var n=e.i(56239),l=e.i(58282),r=((t=r||{}).icon="icon",t.chip="chip",t.accordion="accordion",t.button="button",t.checkbox="checkbox",t.radio="radio",t.select="select",t.toggle="toggle",t.tooltip="tooltip",t.link="link",t.banner="banner",t.tag="tag",t.date="date",t.field="field",t.offer="offer",t.tab="tab",t.submitButton="submitButton",t.popup="popup",t.block="block",t.show="show",t.close="close",t);let i={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",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_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_",show:"show_",close:"close_"};e.s(["D",0,r,"h",0,({eventCategory:e,eventActionType:t,eventActionText:r="",eventLabel:o})=>{let a={event:"data-event",eventCategory:e,eventAction:i[t]+(0,n.t)(r)};void 0!==o&&(a.eventLabel=(0,n.t)("string"==typeof o?o:o.toString())),((e,t)=>{if(typeof window>"u")return;let n=sessionStorage.getItem("pushedEvents"),r=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let i=r.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!i){if(t){let t={...e};t.url=window.location.pathname,r.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(r))}(0,l.pushEvent)(e)}})(a)}],63687)},65019,e=>{"use strict";var t=e.i(43476),n=e.i(7670);let l=(0,e.i(54061).g)("card"),r={card:l,variants:{primary:`${l}--primary`,secondary:`${l}--secondary`}},i=({as:e,className:l,style:i,children:o,variant:a="primary",dataQa:s,dataId:c,...u})=>(0,t.jsx)(e||"div",{className:(0,n.default)(l,r.card,r.variants[a]),style:i,...u,"data-id":c,"data-qa":s,children:o});i.displayName="Card",e.s(["Card",0,i])},43489,53760,58950,2753,e=>{"use strict";let t,n,l;e.i(47167);var r=e.i(71645);function i(){return"u">typeof window}function o(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function s(e){return!!i()&&(e instanceof Node||e instanceof a(e).Node)}function c(e){return!!i()&&(e instanceof Element||e instanceof a(e).Element)}function u(e){return!!i()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function d(e){return!(!i()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function f(e){return/^(html|body|#document)$/.test(o(e))}function p(e){return a(e).getComputedStyle(e)}function m(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function h(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&d(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function v(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function g(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function w(){let e=/android/i;return e.test(v())||e.test(g())}function b(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function x(e){return(null==e?void 0:e.ownerDocument)||document}function y(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function _(e){return"composedPath"in e?e.composedPath()[0]:e.target}function C(e){e.preventDefault(),e.stopPropagation()}var E='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',k="u"<typeof Element,N=k?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,S=!k&&Element.prototype.getRootNode?function(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},$=function e(t,n){void 0===n&&(n=!0);var l,r=null==t||null==(l=t.getAttribute)?void 0:l.call(t,"inert");return""===r||"true"===r||n&&t&&e(t.parentNode)},j=function(e){var t,n=null==e||null==(t=e.getAttribute)?void 0:t.call(e,"contenteditable");return""===n||"true"===n},R=function(e,t,n){if($(e))return[];var l=Array.prototype.slice.apply(e.querySelectorAll(E));return t&&N.call(e,E)&&l.unshift(e),l=l.filter(n)},O=function e(t,n,l){for(var r=[],i=Array.from(t);i.length;){var o=i.shift();if(!$(o,!1))if("SLOT"===o.tagName){var a=o.assignedElements(),s=e(a.length?a:o.children,!0,l);l.flatten?r.push.apply(r,s):r.push({scopeParent:o,candidates:s})}else{N.call(o,E)&&l.filter(o)&&(n||!t.includes(o))&&r.push(o);var c=o.shadowRoot||"function"==typeof l.getShadowRoot&&l.getShadowRoot(o),u=!$(c,!1)&&(!l.shadowRootFilter||l.shadowRootFilter(o));if(c&&u){var d=e(!0===c?o.children:c.children,!0,l);l.flatten?r.push.apply(r,d):r.push({scopeParent:o,candidates:d})}else i.unshift.apply(i,o.children)}}return r},T=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},A=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||j(e))&&!T(e)?0:e.tabIndex},I=function(e,t){var n=A(e);return n<0&&t&&!T(e)?0:n},L=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},z=function(e){return"INPUT"===e.tagName},P=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},M=function(e){if(!e.name)return!0;var t,n=e.form||S(e),l=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("u">typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=l(window.CSS.escape(e.name));else try{t=l(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var r=P(t,e.form);return!r||r===e},B=function(e){return z(e)&&"radio"===e.type&&!M(e)},F=function(e){var t,n,l,r,i,o,a,s=e&&S(e),c=null==(t=s)?void 0:t.host,u=!1;if(s&&s!==e)for(u=!!(null!=(n=c)&&null!=(l=n.ownerDocument)&&l.contains(c)||null!=e&&null!=(r=e.ownerDocument)&&r.contains(e));!u&&c;)u=!!(null!=(o=c=null==(i=s=S(c))?void 0:i.host)&&null!=(a=o.ownerDocument)&&a.contains(c));return u},D=function(e){var t=e.getBoundingClientRect(),n=t.width,l=t.height;return 0===n&&0===l},H=function(e,t){var n=t.displayCheck,l=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=N.call(e,"details>summary:first-of-type")?e.parentElement:e;if(N.call(r,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return D(e)}else{if("function"==typeof l){for(var i=e;e;){var o=e.parentElement,a=S(e);if(o&&!o.shadowRoot&&!0===l(o))return D(e);e=e.assignedSlot?e.assignedSlot:o||a===e.ownerDocument?o:a.host}e=i}if(F(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},W=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var l=t.children.item(n);if("LEGEND"===l.tagName)return!!N.call(t,"fieldset[disabled] *")||!l.contains(e)}return!0}t=t.parentElement}return!1},U=function(e,t){return!(t.disabled||$(t)||z(t)&&"hidden"===t.type||H(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||W(t))},V=function(e,t){return!(B(t)||0>A(t))&&!!U(e,t)},q=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},G=function e(t){var n=[],l=[];return t.forEach(function(t,r){var i=!!t.scopeParent,o=i?t.scopeParent:t,a=I(o,i),s=i?e(t.candidates):o;0===a?i?n.push.apply(n,s):n.push(o):l.push({documentOrder:r,tabIndex:a,item:t,isScope:i,content:s})}),l.sort(L).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},Y=function(e,t){return G((t=t||{}).getShadowRoot?O([e],t.includeContainer,{filter:V.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:q}):R(e,t.includeContainer,V.bind(null,t)))},J=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==N.call(e,E)&&V(t,e)},K=e.i(74080);function Q(){return"u">typeof window}function X(e){return et(e)?(e.nodeName||"").toLowerCase():"#document"}function Z(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ee(e){var t;return null==(t=(et(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function et(e){return!!Q()&&(e instanceof Node||e instanceof Z(e).Node)}function en(e){return!!Q()&&(e instanceof Element||e instanceof Z(e).Element)}function el(e){return!!Q()&&(e instanceof HTMLElement||e instanceof Z(e).HTMLElement)}function er(e){return!(!Q()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Z(e).ShadowRoot)}function ei(e){let{overflow:t,overflowX:n,overflowY:l,display:r}=ep(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+n)&&"inline"!==r&&"contents"!==r}function eo(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let ea=/transform|translate|scale|rotate|perspective|filter/,es=/paint|layout|strict|content/,ec=e=>!!e&&"none"!==e;function eu(e){let t=en(e)?ep(e):e;return ec(t.transform)||ec(t.translate)||ec(t.scale)||ec(t.rotate)||ec(t.perspective)||!ed()&&(ec(t.backdropFilter)||ec(t.filter))||ea.test(t.willChange||"")||es.test(t.contain||"")}function ed(){return null==n&&(n="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function ef(e){return/^(html|body|#document)$/.test(X(e))}function ep(e){return Z(e).getComputedStyle(e)}function em(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eh(e){if("html"===X(e))return e;let t=e.assignedSlot||e.parentNode||er(e)&&e.host||ee(e);return er(t)?t.host:t}function ev(e,t,n){var l;void 0===t&&(t=[]),void 0===n&&(n=!0);let r=function e(t){let n=eh(t);return ef(n)?t.ownerDocument?t.ownerDocument.body:t.body:el(n)&&ei(n)?n:e(n)}(e),i=r===(null==(l=e.ownerDocument)?void 0:l.body),o=Z(r);if(!i)return t.concat(r,ev(r,[],n));{let e=eg(o);return t.concat(o,o.visualViewport||[],ei(r)?r:[],e&&n?ev(e):[])}}function eg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}let ew=["top","right","bottom","left"],eb=ew.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),ex=Math.min,ey=Math.max,e_={left:"right",right:"left",bottom:"top",top:"bottom"};function eC(e,t){return"function"==typeof e?e(t):e}function eE(e){return e.split("-")[0]}function ek(e){return e.split("-")[1]}function eN(e){return"x"===e?"y":"x"}function eS(e){return"y"===e?"height":"width"}function e$(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function ej(e,t,n){void 0===n&&(n=!1);let l=ek(e),r=eN(e$(e)),i=eS(r),o="x"===r?l===(n?"end":"start")?"right":"left":"start"===l?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=eL(o)),[o,eL(o)]}function eR(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let eO=["left","right"],eT=["right","left"],eA=["top","bottom"],eI=["bottom","top"];function eL(e){let t=eE(e);return e_[t]+e.slice(t.length)}function ez(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function eP(e){let{x:t,y:n,width:l,height:r}=e;return{width:l,height:r,top:n,left:t,right:t+l,bottom:n+r,x:t,y:n}}function eM(e,t,n){let l,{reference:r,floating:i}=e,o=e$(t),a=eN(e$(t)),s=eS(a),c=eE(t),u="y"===o,d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;switch(c){case"top":l={x:d,y:r.y-i.height};break;case"bottom":l={x:d,y:r.y+r.height};break;case"right":l={x:r.x+r.width,y:f};break;case"left":l={x:r.x-i.width,y:f};break;default:l={x:r.x,y:r.y}}switch(ek(t)){case"start":l[a]-=p*(n&&u?-1:1);break;case"end":l[a]+=p*(n&&u?-1:1)}return l}async function eB(e,t){var n;void 0===t&&(t={});let{x:l,y:r,platform:i,rects:o,elements:a,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=eC(t,e),m=ez(p),h=a[f?"floating"===d?"reference":"floating":d],v=eP(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:s})),g="floating"===d?{x:l,y:r,width:o.floating.width,height:o.floating.height}:o.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=eP(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:w,strategy:s}):g);return{top:(v.top-x.top+m.top)/b.y,bottom:(x.bottom-v.bottom+m.bottom)/b.y,left:(v.left-x.left+m.left)/b.x,right:(x.right-v.right+m.right)/b.x}}let eF=async(e,t,n)=>{let{placement:l="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:eB},s=await (null==o.isRTL?void 0:o.isRTL(t)),c=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=eM(c,l,s),f=l,p=0,m={};for(let n=0;n<i.length;n++){let h=i[n];if(!h)continue;let{name:v,fn:g}=h,{x:w,y:b,data:x,reset:y}=await g({x:u,y:d,initialPlacement:l,placement:f,strategy:r,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=w?w:u,d=null!=b?b:d,m[v]={...m[v],...x},y&&p<50&&(p++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await o.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:u,y:d}=eM(c,f,s)),n=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:m}};function eD(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eH(e){return ew.some(t=>e[t]>=0)}function eW(e){let t=ex(...e.map(e=>e.left)),n=ex(...e.map(e=>e.top));return{x:t,y:n,width:ey(...e.map(e=>e.right))-t,height:ey(...e.map(e=>e.bottom))-n}}let eU=new Set(["left","top"]);async function eV(e,t){let{placement:n,platform:l,elements:r}=e,i=await (null==l.isRTL?void 0:l.isRTL(r.floating)),o=eE(n),a=ek(n),s="y"===e$(n),c=eU.has(o)?-1:1,u=i&&s?-1:1,d=eC(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),s?{x:p*u,y:f*c}:{x:f*c,y:p*u}}let eq=Math.min,eG=Math.max,eY=Math.round,eJ=Math.floor,eK=e=>({x:e,y:e});function eQ(e){let t=ep(e),n=parseFloat(t.width)||0,l=parseFloat(t.height)||0,r=el(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:l,a=eY(n)!==i||eY(l)!==o;return a&&(n=i,l=o),{width:n,height:l,$:a}}function eX(e){return en(e)?e:e.contextElement}function eZ(e){let t=eX(e);if(!el(t))return eK(1);let n=t.getBoundingClientRect(),{width:l,height:r,$:i}=eQ(t),o=(i?eY(n.width):n.width)/l,a=(i?eY(n.height):n.height)/r;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}let e0=eK(0);function e1(e){let t=Z(e);return ed()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:e0}function e2(e,t,n,l){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),o=eX(e),a=eK(1);t&&(l?en(l)&&(a=eZ(l)):a=eZ(e));let s=(void 0===(r=n)&&(r=!1),l&&(!r||l===Z(o))&&r)?e1(o):eK(0),c=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o){let e=Z(o),t=l&&en(l)?Z(l):l,n=e,r=eg(n);for(;r&&l&&t!==n;){let e=eZ(r),t=r.getBoundingClientRect(),l=ep(r),i=t.left+(r.clientLeft+parseFloat(l.paddingLeft))*e.x,o=t.top+(r.clientTop+parseFloat(l.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,f*=e.y,c+=i,u+=o,r=eg(n=Z(r))}}return eP({width:d,height:f,x:c,y:u})}function e4(e,t){let n=em(e).scrollLeft;return t?t.left+n:e2(ee(e)).left+n}function e7(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-e4(e,n),y:n.top+t.scrollTop}}function e3(e,t,n){var l;let r;if("viewport"===t)r=function(e,t){let n=Z(e),l=ee(e),r=n.visualViewport,i=l.clientWidth,o=l.clientHeight,a=0,s=0;if(r){i=r.width,o=r.height;let e=ed();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,s=r.offsetTop)}let c=e4(l);if(c<=0){let e=l.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(l.clientWidth-t.clientWidth-r);o<=25&&(i-=o)}else c<=25&&(i+=c);return{width:i,height:o,x:a,y:s}}(e,n);else if("document"===t){let t,n,i,o,a,s,c;l=ee(e),t=ee(l),n=em(l),i=l.ownerDocument.body,o=eG(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=eG(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+e4(l),c=-n.scrollTop,"rtl"===ep(i).direction&&(s+=eG(t.clientWidth,i.clientWidth)-o),r={width:o,height:a,x:s,y:c}}else if(en(t)){let e,l,i,o,a,s;l=(e=e2(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,o=el(t)?eZ(t):eK(1),a=t.clientWidth*o.x,s=t.clientHeight*o.y,r={width:a,height:s,x:i*o.x,y:l*o.y}}else{let n=e1(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eP(r)}function e5(e){return"static"===ep(e).position}function e6(e,t){if(!el(e)||"fixed"===ep(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ee(e)===n&&(n=n.ownerDocument.body),n}function e8(e,t){var n;let l=Z(e);if(eo(e))return l;if(!el(e)){let t=eh(e);for(;t&&!ef(t);){if(en(t)&&!e5(t))return t;t=eh(t)}return l}let r=e6(e,t);for(;r&&(n=r,/^(table|td|th)$/.test(X(n)))&&e5(r);)r=e6(r,t);return r&&ef(r)&&e5(r)&&!eu(r)?l:r||function(e){let t=eh(e);for(;el(t)&&!ef(t);){if(eu(t))return t;if(eo(t))break;t=eh(t)}return null}(e)||l}let e9=async function(e){let t=this.getOffsetParent||e8,n=this.getDimensions,l=await n(e.floating);return{reference:function(e,t,n){let l=el(t),r=ee(t),i="fixed"===n,o=e2(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=eK(0);if(l||!l&&!i)if(("body"!==X(t)||ei(r))&&(a=em(t)),l){let e=e2(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=e4(r));i&&!l&&r&&(s.x=e4(r));let c=!r||l||i?eK(0):e7(r,a);return{x:o.left+a.scrollLeft-s.x-c.x,y:o.top+a.scrollTop-s.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},te={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:l,strategy:r}=e,i="fixed"===r,o=ee(l),a=!!t&&eo(t.floating);if(l===o||a&&i)return n;let s={scrollLeft:0,scrollTop:0},c=eK(1),u=eK(0),d=el(l);if((d||!d&&!i)&&(("body"!==X(l)||ei(o))&&(s=em(l)),d)){let e=e2(l);c=eZ(l),u.x=e.x+l.clientLeft,u.y=e.y+l.clientTop}let f=!o||d||i?eK(0):e7(o,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-s.scrollTop*c.y+u.y+f.y}},getDocumentElement:ee,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:l,strategy:r}=e,i=[..."clippingAncestors"===n?eo(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let l=ev(e,[],!1).filter(e=>en(e)&&"body"!==X(e)),r=null,i="fixed"===ep(e).position,o=i?eh(e):e;for(;en(o)&&!ef(o);){let t=ep(o),n=eu(o);n||"fixed"!==t.position||(r=null),(i?n||r:!(!n&&"static"===t.position&&r&&("absolute"===r.position||"fixed"===r.position)||ei(o)&&!n&&function e(t,n){let l=eh(t);return!(l===n||!en(l)||ef(l))&&("fixed"===ep(l).position||e(l,n))}(e,o)))?r=t:l=l.filter(e=>e!==o),o=eh(o)}return t.set(e,l),l}(t,this._c):[].concat(n),l],o=e3(t,i[0],r),a=o.top,s=o.right,c=o.bottom,u=o.left;for(let e=1;e<i.length;e++){let n=e3(t,i[e],r);a=eG(n.top,a),s=eq(n.right,s),c=eq(n.bottom,c),u=eG(n.left,u)}return{width:s-u,height:c-a,x:u,y:a}},getOffsetParent:e8,getElementRects:e9,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eQ(e);return{width:t,height:n}},getScale:eZ,isElement:en,isRTL:function(e){return"rtl"===ep(e).direction}};function tt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let tn=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,l;let{x:r,y:i,placement:o,middlewareData:a}=t,s=await eV(t,e);return o===(null==(n=a.offset)?void 0:n.placement)&&null!=(l=a.arrow)&&l.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:o}}}}},tl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:l,placement:r,platform:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=eC(e,t),u={x:n,y:l},d=await i.detectOverflow(t,c),f=e$(eE(r)),p=eN(f),m=u[p],h=u[f];if(o){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+d[e],l=m-d[t];m=ey(n,ex(m,l))}if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=h+d[e],l=h-d[t];h=ey(n,ex(h,l))}let v=s.fn({...t,[p]:m,[f]:h});return{...v,data:{x:v.x-n,y:v.y-l,enabled:{[p]:o,[f]:a}}}}}},tr=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,l,r,i,o;let a,s,c,{placement:u,middlewareData:d,rects:f,initialPlacement:p,platform:m,elements:h}=t,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,..._}=eC(e,t);if(null!=(n=d.arrow)&&n.alignmentOffset)return{};let C=eE(u),E=e$(p),k=eE(p)===p,N=await (null==m.isRTL?void 0:m.isRTL(h.floating)),S=w||(k||!y?[eL(p)]:(a=eL(p),[eR(p),a,eR(a)])),$="none"!==x;!w&&$&&S.push(...(s=ek(p),c=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?eT:eO;return t?eO:eT;case"left":case"right":return t?eA:eI;default:return[]}}(eE(p),"start"===x,N),s&&(c=c.map(e=>e+"-"+s),y&&(c=c.concat(c.map(eR)))),c));let j=[p,...S],R=await m.detectOverflow(t,_),O=[],T=(null==(l=d.flip)?void 0:l.overflows)||[];if(v&&O.push(R[C]),g){let e=ej(u,f,N);O.push(R[e[0]],R[e[1]])}if(T=[...T,{placement:u,overflows:O}],!O.every(e=>e<=0)){let e=((null==(r=d.flip)?void 0:r.index)||0)+1,t=j[e];if(t&&("alignment"!==g||E===e$(t)||T.every(e=>e$(e.placement)!==E||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(i=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(b){case"bestFit":{let e=null==(o=T.filter(e=>{if($){let t=e$(e.placement);return t===E||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=p}if(u!==n)return{reset:{placement:n}}}return{}}}},ti=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:l}=t,{strategy:r="referenceHidden",...i}=eC(e,t);switch(r){case"referenceHidden":{let e=eD(await l.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:eH(e)}}}case"escaped":{let e=eD(await l.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:eH(e)}}}default:return{}}}}},to=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:l,placement:r,rects:i,platform:o,elements:a,middlewareData:s}=t,{element:c,padding:u=0}=eC(e,t)||{};if(null==c)return{};let d=ez(u),f={x:n,y:l},p=eN(e$(r)),m=eS(p),h=await o.getDimensions(c),v="y"===p,g=v?"clientHeight":"clientWidth",w=i.reference[m]+i.reference[p]-f[p]-i.floating[m],b=f[p]-i.reference[p],x=await (null==o.getOffsetParent?void 0:o.getOffsetParent(c)),y=x?x[g]:0;y&&await (null==o.isElement?void 0:o.isElement(x))||(y=a.floating[g]||i.floating[m]);let _=y/2-h[m]/2-1,C=ex(d[v?"top":"left"],_),E=ex(d[v?"bottom":"right"],_),k=y-h[m]-E,N=y/2-h[m]/2+(w/2-b/2),S=ey(C,ex(N,k)),$=!s.arrow&&null!=ek(r)&&N!==S&&i.reference[m]/2-(N<C?C:E)-h[m]/2<0,j=$?N<C?N-C:N-k:0;return{[p]:f[p]+j,data:{[p]:S,centerOffset:N-S-j,...$&&{alignmentOffset:j}},reset:$}}}),ta=(e,t,n)=>{let l=new Map,r={platform:te,...n},i={...r.platform,_c:l};return eF(e,t,{...r,platform:i})};e.s(["arrow",0,to,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,l,r,i;let{rects:o,middlewareData:a,placement:s,platform:c,elements:u}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:p=eb,autoAlignment:m=!0,...h}=eC(e,t),v=void 0!==f||p===eb?((i=f||null)?[...p.filter(e=>ek(e)===i),...p.filter(e=>ek(e)!==i)]:p.filter(e=>eE(e)===e)).filter(e=>!i||ek(e)===i||!!m&&eR(e)!==e):p,g=await c.detectOverflow(t,h),w=(null==(n=a.autoPlacement)?void 0:n.index)||0,b=v[w];if(null==b)return{};let x=ej(b,o,await (null==c.isRTL?void 0:c.isRTL(u.floating)));if(s!==b)return{reset:{placement:v[0]}};let y=[g[eE(b)],g[x[0]],g[x[1]]],_=[...(null==(l=a.autoPlacement)?void 0:l.overflows)||[],{placement:b,overflows:y}],C=v[w+1];if(C)return{data:{index:w+1,overflows:_},reset:{placement:C}};let E=_.map(e=>{let t=ek(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),k=(null==(r=E.filter(e=>e[2].slice(0,ek(e[0])?2:3).every(e=>e<=0))[0])?void 0:r[0])||E[0][0];return k!==s?{data:{index:w+1,overflows:_},reset:{placement:k}}:{}}}},"autoUpdate",0,function(e,t,n,l){let r;void 0===l&&(l={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=l,u=eX(e),d=i||o?[...u?ev(u):[],...t?ev(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let f=u&&s?function(e,t){let n,l=null,r=ee(e);function i(){var e;clearTimeout(n),null==(e=l)||e.disconnect(),l=null}return!function o(a,s){void 0===a&&(a=!1),void 0===s&&(s=1),i();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(a||t(),!f||!p)return;let m={rootMargin:-eJ(d)+"px "+-eJ(r.clientWidth-(u+f))+"px "+-eJ(r.clientHeight-(d+p))+"px "+-eJ(u)+"px",threshold:eG(0,eq(1,s))||1},h=!0;function v(t){let l=t[0].intersectionRatio;if(l!==s){if(!h)return o();l?o(!1,l):n=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==l||tt(c,e.getBoundingClientRect())||o(),h=!1}try{l=new IntersectionObserver(v,{...m,root:r.ownerDocument})}catch(e){l=new IntersectionObserver(v,m)}l.observe(e)}(!0),i}(u,n):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[l]=e;l&&l.target===u&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),u&&!c&&m.observe(u),t&&m.observe(t));let h=c?e2(e):null;return c&&function t(){let l=e2(e);h&&!tt(h,l)&&n(),h=l,r=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(r)}},"computePosition",0,ta,"detectOverflow",0,eB,"flip",0,tr,"hide",0,ti,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:l,rects:r,platform:i,strategy:o}=t,{padding:a=2,x:s,y:c}=eC(e,t),u=Array.from(await (null==i.getClientRects?void 0:i.getClientRects(l.reference))||[]),d=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],l=null;for(let e=0;e<t.length;e++){let r=t[e];!l||r.y-l.y>l.height/2?n.push([r]):n[n.length-1].push(r),l=r}return n.map(e=>eP(eW(e)))}(u),f=eP(eW(u)),p=ez(a),m=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=s&&null!=c)return d.find(e=>s>e.left-p.left&&s<e.right+p.right&&c>e.top-p.top&&c<e.bottom+p.bottom)||f;if(d.length>=2){if("y"===e$(n)){let e=d[0],t=d[d.length-1],l="top"===eE(n),r=e.top,i=t.bottom,o=l?e.left:t.left,a=l?e.right:t.right;return{top:r,bottom:i,left:o,right:a,width:a-o,height:i-r,x:o,y:r}}let e="left"===eE(n),t=ey(...d.map(e=>e.right)),l=ex(...d.map(e=>e.left)),r=d.filter(n=>e?n.left===l:n.right===t),i=r[0].top,o=r[r.length-1].bottom;return{top:i,bottom:o,left:l,right:t,width:t-l,height:o-i,x:l,y:i}}return f}},floating:l.floating,strategy:o});return r.reference.x!==m.reference.x||r.reference.y!==m.reference.y||r.reference.width!==m.reference.width||r.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},"limitShift",0,function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:l,placement:r,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:s=!0,crossAxis:c=!0}=eC(e,t),u={x:n,y:l},d=e$(r),f=eN(d),p=u[f],m=u[d],h=eC(a,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,w;let e="y"===f?"width":"height",t=eU.has(eE(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=o.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),l=i.reference[d]+i.reference[e]+(t?0:(null==(w=o.offset)?void 0:w[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>l&&(m=l)}return{[f]:p,[d]:m}}}},"offset",0,tn,"shift",0,tl,"size",0,function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,l;let r,i,{placement:o,rects:a,platform:s,elements:c}=t,{apply:u=()=>{},...d}=eC(e,t),f=await s.detectOverflow(t,d),p=eE(o),m=ek(o),h="y"===e$(o),{width:v,height:g}=a.floating;"top"===p||"bottom"===p?(r=p,i=m===(await (null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,r="end"===m?"top":"bottom");let w=g-f.top-f.bottom,b=v-f.left-f.right,x=ex(g-f[r],w),y=ex(v-f[i],b),_=!t.middlewareData.shift,C=x,E=y;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=b),null!=(l=t.middlewareData.shift)&&l.enabled.y&&(C=w),_&&!m){let e=ey(f.left,0),t=ey(f.right,0),n=ey(f.top,0),l=ey(f.bottom,0);h?E=v-2*(0!==e||0!==t?e+t:ey(f.left,f.right)):C=g-2*(0!==n||0!==l?n+l:ey(f.top,f.bottom))}await u({...t,availableWidth:E,availableHeight:C});let k=await s.getDimensions(c.floating);return v!==k.width||g!==k.height?{reset:{rects:!0}}:{}}}}],53760);var ts="u">typeof document?r.useLayoutEffect:function(){};function tc(e,t){let n,l,r;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(l=n;0!=l--;)if(!tc(e[l],t[l]))return!1;return!0}if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(l=n;0!=l--;)if(!({}).hasOwnProperty.call(t,r[l]))return!1;for(l=n;0!=l--;){let n=r[l];if(("_owner"!==n||!e.$$typeof)&&!tc(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tu(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function td(e,t){let n=tu(e);return Math.round(t*n)/n}function tf(e){let t=r.useRef(e);return ts(()=>{t.current=e}),t}function tp(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:l=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(l);tc(p,l)||m(l);let[h,v]=r.useState(null),[g,w]=r.useState(null),b=r.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),x=r.useCallback(e=>{e!==E.current&&(E.current=e,w(e))},[]),y=o||h,_=a||g,C=r.useRef(null),E=r.useRef(null),k=r.useRef(d),N=null!=c,S=tf(c),$=tf(i),j=tf(u),R=r.useCallback(()=>{if(!C.current||!E.current)return;let e={placement:t,strategy:n,middleware:p};$.current&&(e.platform=$.current),ta(C.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==j.current};O.current&&!tc(k.current,t)&&(k.current=t,K.flushSync(()=>{f(t)}))})},[p,t,n,$,j]);ts(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let O=r.useRef(!1);ts(()=>(O.current=!0,()=>{O.current=!1}),[]),ts(()=>{if(y&&(C.current=y),_&&(E.current=_),y&&_){if(S.current)return S.current(y,_,R);R()}},[y,_,R,S,N]);let T=r.useMemo(()=>({reference:C,floating:E,setReference:b,setFloating:x}),[b,x]),A=r.useMemo(()=>({reference:y,floating:_}),[y,_]),I=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=td(A.floating,d.x),l=td(A.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+l+"px)",...tu(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:l}},[n,s,A.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:R,refs:T,elements:A,floatingStyles:I}),[d,R,T,A,I])}e.s(["arrow",0,(e,t)=>{let n={name:"arrow",options:e,fn(t){let{element:n,padding:l}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?to({element:n.current,padding:l}).fn(t):{}:n?to({element:n,padding:l}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=tr(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=ti(e);return{name:n.name,fn:n.fn,options:[e,t]}},"offset",0,(e,t)=>{let n=tn(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=tl(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,tp],58950);let tm={...r},th=tm.useInsertionEffect||(e=>e());function tv(e){let t=r.useRef(()=>{});return th(()=>{t.current=e}),r.useCallback(function(){for(var e=arguments.length,n=Array(e),l=0;l<e;l++)n[l]=arguments[l];return null==t.current?void 0:t.current(...n)},[])}var tg="u">typeof document?r.useLayoutEffect:r.useEffect;function tw(){return(tw=Object.assign.bind()).apply(this,arguments)}let tb=!1,tx=0,ty=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tx++,t_=tm.useId||function(){let[e,t]=r.useState(()=>tb?ty():void 0);return tg(()=>{null==e&&t(ty())},[]),r.useEffect(()=>{tb=!0},[]),e},tC=r.forwardRef(function(e,t){let{context:{placement:n,elements:{floating:l},middlewareData:{arrow:i,shift:o}},width:a=14,height:s=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:f,d:m,style:{transform:h,...v}={},...g}=e,w=t_(),[b,x]=r.useState(!1);if(tg(()=>{l&&"rtl"===p(l).direction&&x(!0)},[l]),!l)return null;let[y,_]=n.split("-"),C="top"===y||"bottom"===y,E=d;(C&&null!=o&&o.x||!C&&null!=o&&o.y)&&(E=null);let k=2*u,N=k/2,S=a/2*(-(c/8)+1),$=s/2*c/4,j=!!m,R=E&&"end"===_?"bottom":"top",O=E&&"end"===_?"right":"left";E&&b&&(O="end"===_?"left":"right");let T=(null==i?void 0:i.x)!=null?E||i.x:"",A=(null==i?void 0:i.y)!=null?E||i.y:"",I=m||"M0,0 H"+a+(" L"+(a-S))+","+(s-$)+(" Q"+a/2+","+s+" "+S)+","+(s-$)+" Z",L={top:j?"rotate(180deg)":"",left:j?"rotate(90deg)":"rotate(-90deg)",bottom:j?"":"rotate(180deg)",right:j?"rotate(-90deg)":"rotate(90deg)"}[y];return r.createElement("svg",tw({},g,{"aria-hidden":!0,ref:t,width:j?a:a+k,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[O]:T,[R]:A,[y]:C||j?"100%":"calc(100% - "+k/2+"px)",transform:[L,h].filter(e=>!!e).join(" "),...v}}),k>0&&r.createElement("path",{clipPath:"url(#"+w+")",fill:"none",stroke:f,strokeWidth:k+ +!m,d:I}),r.createElement("path",{stroke:k&&!m?g.fill:"none",d:I}),r.createElement("clipPath",{id:w},r.createElement("rect",{x:-N,y:N*(j?-1:1),width:a+k,height:a})))}),tE=r.createContext(null),tk=r.createContext(null),tN=()=>{var e;return(null==(e=r.useContext(tE))?void 0:e.id)||null};function tS(e){return"data-floating-ui-"+e}function t$(e){let t=(0,r.useRef)(e);return tg(()=>{t.current=e}),t}let tj=tS("safe-polygon");function tR(e,t,n){return n&&!b(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}let tO=0;function tT(e,t){void 0===t&&(t={});let{preventScroll:n=!1,cancelPrevious:l=!0,sync:r=!1}=t;l&&cancelAnimationFrame(tO);let i=()=>null==e?void 0:e.focus({preventScroll:n});r?i():tO=requestAnimationFrame(i)}function tA(e,t){let n=e.filter(e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)}),l=n;for(;l.length;)l=e.filter(e=>{var t;return null==(t=l)?void 0:t.some(t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)})}),n=n.concat(l);return n}let tI=new WeakMap,tL=new WeakSet,tz={},tP=0,tM=e=>e&&(e.host||tM(e.parentNode));function tB(e,t,n){var l,r;let i,a,s,c,u,d,f;void 0===t&&(t=!1),void 0===n&&(n=!1);let p=x(e[0]).body;return l=e.concat(Array.from(p.querySelectorAll("[aria-live]"))),r=t,i="data-floating-ui-inert",a=n?"inert":r?"aria-hidden":null,s=l.map(e=>{if(p.contains(e))return e;let t=tM(e);return p.contains(t)?t:null}).filter(e=>null!=e),c=new Set,u=new Set(s),d=[],tz[i]||(tz[i]=new WeakMap),f=tz[i],s.forEach(function e(t){!(!t||c.has(t))&&(c.add(t),t.parentNode&&e(t.parentNode))}),function e(t){!t||u.has(t)||[].forEach.call(t.children,t=>{if("script"!==o(t))if(c.has(t))e(t);else{let e=a?t.getAttribute(a):null,n=null!==e&&"false"!==e,l=(tI.get(t)||0)+1,r=(f.get(t)||0)+1;tI.set(t,l),f.set(t,r),d.push(t),1===l&&n&&tL.add(t),1===r&&t.setAttribute(i,""),!n&&a&&t.setAttribute(a,"true")}})}(p),c.clear(),tP++,()=>{d.forEach(e=>{let t=(tI.get(e)||0)-1,n=(f.get(e)||0)-1;tI.set(e,t),f.set(e,n),t||(!tL.has(e)&&a&&e.removeAttribute(a),tL.delete(e)),n||e.removeAttribute(i)}),--tP||(tI=new WeakMap,tI=new WeakMap,tL=new WeakSet,tz={})}}let tF=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function tD(e,t){let n=Y(e,tF());"prev"===t&&n.reverse();let l=n.indexOf(m(x(e)));return n.slice(l+1)[0]}function tH(){return tD(document.body,"next")}function tW(){return tD(document.body,"prev")}function tU(e,t){let n=t||e.currentTarget,l=e.relatedTarget;return!l||!h(n,l)}function tV(e){e.querySelectorAll("[data-tabindex]").forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}let tq={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function tG(e){"Tab"===e.key&&(e.target,clearTimeout(l))}let tY=r.forwardRef(function(e,t){let[n,l]=r.useState();tg(()=>(/apple/i.test(navigator.vendor)&&l("button"),document.addEventListener("keydown",tG),()=>{document.removeEventListener("keydown",tG)}),[]);let i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[tS("focus-guard")]:"",style:tq};return r.createElement("span",tw({},e,i))}),tJ=r.createContext(null),tK=tS("portal"),tQ="data-floating-ui-focusable",tX=[];function tZ(e){tX=tX.filter(e=>e.isConnected);let t=e;if(t&&"body"!==o(t)){if(!J(t,tF())){let e=Y(t,tF())[0];e&&(t=e)}tX.push(t),tX.length>20&&(tX=tX.slice(-20))}}function t0(){return tX.slice().reverse().find(e=>e.isConnected)}let t1=r.forwardRef(function(e,t){return r.createElement("button",tw({},e,{type:"button",ref:t,tabIndex:-1,style:tq}))}),t2=0,t4=()=>{},t7=r.forwardRef(function(e,t){let{lockScroll:n=!1,...l}=e;return tg(()=>{if(n)return 1==++t2&&(t4=function(){let e=/iP(hone|ad|od)|iOS/.test(v()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",l=window.innerWidth-document.documentElement.clientWidth,r=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",l&&(t[n]=l+"px"),e){var o,a;let e=(null==(o=window.visualViewport)?void 0:o.offsetLeft)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor((null==(a=window.visualViewport)?void 0:a.offsetTop)||0))+"px",left:-(r-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(r,i))}}()),()=>{0==--t2&&t4()}},[n]),r.createElement("div",tw({ref:t},l,{style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...l.style}}))}),t3={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},t5={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},t6=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}},t8="active",t9="selected";function ne(e,t,n){let l=new Map,r="item"===n,i=e;if(r&&e){let{[t8]:t,[t9]:n,...l}=e;i=l}return{..."floating"===n&&{tabIndex:-1,[tQ]:""},...i,...t.map(t=>{let l=t?t[n]:null;return"function"==typeof l?e?l(e):null:l}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(r&&[t8,t9].includes(n)))if(0===n.indexOf("on")){if(l.has(n)||l.set(n,[]),"function"==typeof i){var o;null==(o=l.get(n))||o.push(i),e[n]=function(){for(var e,t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return null==(e=l.get(n))?void 0:e.map(e=>e(...r)).find(e=>void 0!==e)}}}else e[n]=i}),e),{})}}let nt=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]),nn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function nl(e,t){return"function"==typeof e?e(t):e}e.s(["FloatingArrow",0,tC,"FloatingFocusManager",0,function(e){var t,n;let{context:l,children:i,disabled:o=!1,order:a=["content"],guards:s=!0,initialFocus:c=0,returnFocus:d=!0,restoreFocus:f=!1,modal:p=!0,visuallyHiddenDismiss:v=!1,closeOnFocusOut:b=!0}=e,{open:y,refs:E,nodeId:k,onOpenChange:N,events:S,dataRef:$,floatingId:j,elements:{domReference:R,floating:O}}=l,T="number"==typeof c&&c<0,A=!!(t=R)&&"combobox"===t.getAttribute("role")&&u(n=t)&&n.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")&&T,I=!("u">typeof HTMLElement&&"inert"in HTMLElement.prototype)||s,L=t$(a),z=t$(c),P=t$(d),M=r.useContext(tk),B=r.useContext(tJ),F=r.useRef(null),D=r.useRef(null),H=r.useRef(!1),W=r.useRef(!1),U=r.useRef(-1),V=null!=B,q=O?O.hasAttribute(tQ)?O:O.querySelector("["+tQ+"]")||O:null,G=tv(function(e){return void 0===e&&(e=q),e?Y(e,tF()):[]}),J=tv(e=>{let t=G(e);return L.current.map(e=>R&&"reference"===e?R:q&&"floating"===e?q:t).filter(Boolean).flat()});function K(e){return!o&&v&&p?r.createElement(t1,{ref:"start"===e?F:D,onClick:e=>N(!1,e.nativeEvent)},"string"==typeof v?v:"Dismiss"):null}r.useEffect(()=>{if(o||!p)return;function e(e){if("Tab"===e.key){h(q,m(x(q)))&&0===G().length&&!A&&C(e);let t=J(),n=_(e);"reference"===L.current[0]&&n===R&&(C(e),e.shiftKey?tT(t[t.length-1]):tT(t[1])),"floating"===L.current[1]&&n===q&&e.shiftKey&&(C(e),tT(t[0]))}}let t=x(q);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}},[o,R,q,p,L,A,G,J]),r.useEffect(()=>{if(!o&&O)return O.addEventListener("focusin",e),()=>{O.removeEventListener("focusin",e)};function e(e){let t=_(e),n=G().indexOf(t);-1!==n&&(U.current=n)}},[o,O,G]),r.useEffect(()=>{if(!o&&b&&O&&u(R))return R.addEventListener("focusout",t),R.addEventListener("pointerdown",e),O.addEventListener("focusout",t),()=>{R.removeEventListener("focusout",t),R.removeEventListener("pointerdown",e),O.removeEventListener("focusout",t)};function e(){W.current=!0,setTimeout(()=>{W.current=!1})}function t(e){let t=e.relatedTarget;queueMicrotask(()=>{let n=!(h(R,t)||h(O,t)||h(t,O)||h(null==B?void 0:B.portalNode,t)||null!=t&&t.hasAttribute(tS("focus-guard"))||M&&(tA(M.nodesRef.current,k).find(e=>{var n,l;return h(null==(n=e.context)?void 0:n.elements.floating,t)||h(null==(l=e.context)?void 0:l.elements.domReference,t)})||(function(e,t){var n;let l=[],r=null==(n=e.find(e=>e.id===t))?void 0:n.parentId;for(;r;){let t=e.find(e=>e.id===r);r=null==t?void 0:t.parentId,t&&(l=l.concat(t))}return l})(M.nodesRef.current,k).find(e=>{var n,l;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(l=e.context)?void 0:l.elements.domReference)===t})));if(f&&n&&m(x(q))===x(q).body){u(q)&&q.focus();let e=U.current,t=G(),n=t[e]||t[t.length-1]||q;u(n)&&n.focus()}(A||!p)&&t&&n&&!W.current&&t!==t0()&&(H.current=!0,N(!1,e,"focus-out"))})}},[o,R,O,q,p,k,M,B,N,b,f,G,A]),r.useEffect(()=>{var e;if(o)return;let t=Array.from((null==B||null==(e=B.portalNode)?void 0:e.querySelectorAll("["+tS("portal")+"]"))||[]);if(O){let e=[O,...t,F.current,D.current,L.current.includes("reference")||A?R:null].filter(e=>null!=e),n=p||A?tB(e,I,!I):tB(e);return()=>{n()}}},[o,R,O,p,L,B,A,I]),tg(()=>{if(o||!u(q))return;let e=m(x(q));queueMicrotask(()=>{let t=J(q),n=z.current,l=("number"==typeof n?t[n]:n.current)||q,r=h(q,e);T||r||!y||tT(l,{preventScroll:l===q})})},[o,y,q,T,J,z]),tg(()=>{if(o||!q)return;let e=!1,t=x(q),n=m(t),l=$.current.openEvent;function r(t){let{open:n,reason:r,event:i,nested:o}=t;if(n&&(l=i),"escape-key"===r&&E.domReference.current&&tZ(E.domReference.current),"hover"===r&&"mouseleave"===i.type&&(H.current=!0),"outside-press"===r)if(o)H.current=!1,e=!0;else H.current=!(0===i.mozInputSource&&i.isTrusted||(w()&&i.pointerType?"click"===i.type&&1===i.buttons:0===i.detail&&!i.pointerType)||!g().includes("jsdom/")&&(!w()&&0===i.width&&0===i.height||w()&&1===i.width&&1===i.height&&0===i.pressure&&0===i.detail&&"mouse"===i.pointerType||i.width<1&&i.height<1&&0===i.pressure&&0===i.detail&&"touch"===i.pointerType))}tZ(n),S.on("openchange",r);let i=t.createElement("span");return i.setAttribute("tabindex","-1"),i.setAttribute("aria-hidden","true"),Object.assign(i.style,tq),V&&R&&R.insertAdjacentElement("afterend",i),()=>{S.off("openchange",r);let n=m(t),o=h(O,n)||M&&tA(M.nodesRef.current,k).some(e=>{var t;return h(null==(t=e.context)?void 0:t.elements.floating,n)});(o||l&&["click","mousedown"].includes(l.type))&&E.domReference.current&&tZ(E.domReference.current);let a="boolean"==typeof P.current?t0()||i:P.current.current||i;queueMicrotask(()=>{P.current&&!H.current&&u(a)&&(a===n||n===t.body||o)&&a.focus({preventScroll:e}),i.remove()})}},[o,O,q,P,$,E,S,M,k,V,R]),r.useEffect(()=>{queueMicrotask(()=>{H.current=!1})},[o]),tg(()=>{if(!o&&B)return B.setFocusManagerState({modal:p,closeOnFocusOut:b,open:y,onOpenChange:N,refs:E}),()=>{B.setFocusManagerState(null)}},[o,B,p,y,N,E,b]),tg(()=>{if(o||!q||"function"!=typeof MutationObserver||T)return;let e=()=>{let e=q.getAttribute("tabindex"),t=G(),n=m(x(O)),l=t.indexOf(n);-1!==l&&(U.current=l),L.current.includes("floating")||n!==E.domReference.current&&0===t.length?"0"!==e&&q.setAttribute("tabindex","0"):"-1"!==e&&q.setAttribute("tabindex","-1")};e();let t=new MutationObserver(e);return t.observe(q,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}},[o,O,q,E,L,G,T]);let Q=!o&&I&&(!p||!A)&&(V||p);return r.createElement(r.Fragment,null,Q&&r.createElement(tY,{"data-type":"inside",ref:null==B?void 0:B.beforeInsideRef,onFocus:e=>{if(p){let e=J();tT("reference"===a[0]?e[0]:e[e.length-1])}else if(null!=B&&B.preserveTabOrder&&B.portalNode)if(H.current=!1,tU(e,B.portalNode)){let e=tH()||R;null==e||e.focus()}else{var t;null==(t=B.beforeOutsideRef.current)||t.focus()}}}),!A&&K("start"),i,K("end"),Q&&r.createElement(tY,{"data-type":"inside",ref:null==B?void 0:B.afterInsideRef,onFocus:e=>{if(p)tT(J()[0]);else if(null!=B&&B.preserveTabOrder&&B.portalNode)if(b&&(H.current=!0),tU(e,B.portalNode)){let e=tW()||R;null==e||e.focus()}else{var t;null==(t=B.afterOutsideRef.current)||t.focus()}}}))},"FloatingOverlay",0,t7,"FloatingPortal",0,function(e){let{children:t,id:n,root:l,preserveTabOrder:i=!0}=e,o=function(e){void 0===e&&(e={});let{id:t,root:n}=e,l=t_(),i=r.useContext(tJ),[o,a]=r.useState(null),s=r.useRef(null);return tg(()=>()=>{null==o||o.remove(),queueMicrotask(()=>{s.current=null})},[o]),tg(()=>{if(!l||s.current)return;let e=t?document.getElementById(t):null;if(!e)return;let n=document.createElement("div");n.id=l,n.setAttribute(tK,""),e.appendChild(n),s.current=n,a(n)},[t,l]),tg(()=>{if(null===n||!l||s.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!c(e)&&(e=e.current),e=e||document.body;let r=null;t&&((r=document.createElement("div")).id=t,e.appendChild(r));let o=document.createElement("div");o.id=l,o.setAttribute(tK,""),(e=r||e).appendChild(o),s.current=o,a(o)},[t,n,l,i]),o}({id:n,root:l}),[a,s]=r.useState(null),u=r.useRef(null),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),m=null==a?void 0:a.modal,h=null==a?void 0:a.open,v=!!a&&!a.modal&&a.open&&i&&!!(l||o);return r.useEffect(()=>{if(o&&i&&!m)return o.addEventListener("focusin",e,!0),o.addEventListener("focusout",e,!0),()=>{o.removeEventListener("focusin",e,!0),o.removeEventListener("focusout",e,!0)};function e(e){o&&tU(e)&&("focusin"===e.type?tV:function(e){Y(e,tF()).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})})(o)}},[o,i,m]),r.useEffect(()=>{!o||h||tV(o)},[h,o]),r.createElement(tJ.Provider,{value:r.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:d,beforeInsideRef:f,afterInsideRef:p,portalNode:o,setFocusManagerState:s}),[i,o])},v&&o&&r.createElement(tY,{"data-type":"outside",ref:u,onFocus:e=>{if(tU(e,o)){var t;null==(t=f.current)||t.focus()}else{let e=tW()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),v&&o&&r.createElement("span",{"aria-owns":o.id,style:tq}),o&&K.createPortal(t,o),v&&o&&r.createElement(tY,{"data-type":"outside",ref:d,onFocus:e=>{if(tU(e,o)){var t;null==(t=p.current)||t.focus()}else{let t=tH()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))},"useDismiss",0,function(e,n){void 0===n&&(n={});let{open:l,onOpenChange:i,elements:a,dataRef:m}=e,{enabled:v=!0,escapeKey:g=!0,outsidePress:w=!0,outsidePressEvent:b="pointerdown",referencePress:C=!1,referencePressEvent:E="pointerdown",ancestorScroll:k=!1,bubbles:N,capture:S}=n,$=r.useContext(tk),j=tv("function"==typeof w?w:()=>!1),R="function"==typeof w?j:w,O=r.useRef(!1),T=r.useRef(!1),{escapeKey:A,outsidePress:I}=t6(N),{escapeKey:L,outsidePress:z}=t6(S),P=r.useRef(!1),M=tv(e=>{var t;if(!l||!v||!g||"Escape"!==e.key||P.current)return;let n=null==(t=m.current.floatingContext)?void 0:t.nodeId,r=$?tA($.nodesRef.current,n):[];if(!A&&(e.stopPropagation(),r.length>0)){let e=!0;if(r.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}i(!1,"nativeEvent"in e?e.nativeEvent:e,"escape-key")}),B=tv(e=>{var t;let n=()=>{var t;M(e),null==(t=_(e))||t.removeEventListener("keydown",n)};null==(t=_(e))||t.addEventListener("keydown",n)}),F=tv(e=>{var t;let n=O.current;O.current=!1;let l=T.current;if(T.current=!1,"click"===b&&l||n||"function"==typeof R&&!R(e))return;let r=_(e),v="["+tS("inert")+"]",g=x(a.floating).querySelectorAll(v),w=c(r)?r:null;for(;w&&!f(w);){let e=function(e){var t;if("html"===o(e))return e;let n=e.assignedSlot||e.parentNode||d(e)&&e.host||(null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement);return d(n)?n.host:n}(w);if(f(e)||!c(e))break;w=e}if(g.length&&c(r)&&!r.matches("html,body")&&!h(r,a.floating)&&Array.from(g).every(e=>!h(w,e)))return;if(u(r)&&W){let t=r.clientWidth>0&&r.scrollWidth>r.clientWidth,n=r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=n&&e.offsetX>r.clientWidth;if(n&&"rtl"===p(r).direction&&(l=e.offsetX<=r.offsetWidth-r.clientWidth),l||t&&e.offsetY>r.clientHeight)return}let C=null==(t=m.current.floatingContext)?void 0:t.nodeId,E=$&&tA($.nodesRef.current,C).some(t=>{var n;return y(e,null==(n=t.context)?void 0:n.elements.floating)});if(y(e,a.floating)||y(e,a.domReference)||E)return;let k=$?tA($.nodesRef.current,C):[];if(k.length>0){let e=!0;if(k.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}i(!1,e,"outside-press")}),D=tv(e=>{var t;let n=()=>{var t;F(e),null==(t=_(e))||t.removeEventListener(b,n)};null==(t=_(e))||t.addEventListener(b,n)});r.useEffect(()=>{if(!l||!v)return;m.current.__escapeKeyBubbles=A,m.current.__outsidePressBubbles=I;let e=-1;function n(e){i(!1,e,"ancestor-scroll")}function r(){window.clearTimeout(e),P.current=!0}function o(){e=window.setTimeout(()=>{P.current=!1},5*(null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!!t))}let s=x(a.floating);g&&(s.addEventListener("keydown",L?B:M,L),s.addEventListener("compositionstart",r),s.addEventListener("compositionend",o)),R&&s.addEventListener(b,z?D:F,z);let u=[];return k&&(c(a.domReference)&&(u=ev(a.domReference)),c(a.floating)&&(u=u.concat(ev(a.floating))),!c(a.reference)&&a.reference&&a.reference.contextElement&&(u=u.concat(ev(a.reference.contextElement)))),(u=u.filter(e=>{var t;return e!==(null==(t=s.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",n,{passive:!0})}),()=>{g&&(s.removeEventListener("keydown",L?B:M,L),s.removeEventListener("compositionstart",r),s.removeEventListener("compositionend",o)),R&&s.removeEventListener(b,z?D:F,z),u.forEach(e=>{e.removeEventListener("scroll",n)}),window.clearTimeout(e)}},[m,a,g,R,b,l,i,k,v,A,I,M,L,B,F,z,D]),r.useEffect(()=>{O.current=!1},[R,b]);let H=r.useMemo(()=>({onKeyDown:M,[t3[E]]:e=>{C&&i(!1,e.nativeEvent,"reference-press")}}),[M,i,C,E]),W=r.useMemo(()=>({onKeyDown:M,onMouseDown(){T.current=!0},onMouseUp(){T.current=!0},[t5[b]]:()=>{O.current=!0}}),[M,b]);return r.useMemo(()=>v?{reference:H,floating:W}:{},[v,H,W])},"useFloating",0,function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:l}=e,i=t_(),o=r.useRef({}),[a]=r.useState(()=>{let e;return e=new Map,{emit(t,n){var l;null==(l=e.get(t))||l.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var l;e.set(t,(null==(l=e.get(t))?void 0:l.filter(e=>e!==n))||[])}}}),s=null!=tN(),[c,u]=r.useState(l.reference),d=tv((e,t,l)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:l,nested:s}),null==n||n(e,t,l)}),f=r.useMemo(()=>({setPositionReference:u}),[]),p=r.useMemo(()=>({reference:c||l.reference||null,floating:l.floating||null,domReference:l.reference}),[c,l.reference,l.floating]);return r.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f}),[t,d,p,a,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),l=e.rootContext||n,i=l.elements,[o,a]=r.useState(null),[s,u]=r.useState(null),d=(null==i?void 0:i.domReference)||o,f=r.useRef(null),p=r.useContext(tk);tg(()=>{d&&(f.current=d)},[d]);let m=tp({...e,elements:{...i,...s&&{reference:s}}}),h=r.useCallback(e=>{let t=c(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),v=r.useCallback(e=>{(c(e)||null===e)&&(f.current=e,a(e)),(c(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!c(e))&&m.refs.setReference(e)},[m.refs]),g=r.useMemo(()=>({...m.refs,setReference:v,setPositionReference:h,domReference:f}),[m.refs,v,h]),w=r.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),b=r.useMemo(()=>({...m,...l,refs:g,elements:w,nodeId:t}),[m,g,w,t,l]);return tg(()=>{l.dataRef.current.floatingContext=b;let e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=b)}),r.useMemo(()=>({...m,context:b,refs:g,elements:w}),[m,g,w,b])},"useHover",0,function(e,t){void 0===t&&(t={});let{open:n,onOpenChange:l,dataRef:i,events:o,elements:a}=e,{enabled:s=!0,delay:u=0,handleClose:d=null,mouseOnly:f=!1,restMs:p=0,move:m=!0}=t,v=r.useContext(tk),g=tN(),w=t$(d),y=t$(u),_=t$(n),C=r.useRef(),E=r.useRef(-1),k=r.useRef(),N=r.useRef(-1),S=r.useRef(!0),$=r.useRef(!1),j=r.useRef(()=>{}),R=r.useRef(!1),O=r.useCallback(()=>{var e;let t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t},[i]);r.useEffect(()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(E.current),clearTimeout(N.current),S.current=!0,R.current=!1)}},[s,o]),r.useEffect(()=>{if(!s||!w.current||!n)return;function e(e){O()&&l(!1,e,"hover")}let t=x(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[a.floating,n,l,s,w,O]);let T=r.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let r=tR(y.current,"close",C.current);r&&!k.current?(clearTimeout(E.current),E.current=window.setTimeout(()=>l(!1,e,n),r)):t&&(clearTimeout(E.current),l(!1,e,n))},[y,l]),A=tv(()=>{j.current(),k.current=void 0}),I=tv(()=>{if($.current){let e=x(a.floating).body;e.style.pointerEvents="",e.removeAttribute(tj),$.current=!1}}),L=tv(()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type));r.useEffect(()=>{if(s&&c(a.domReference)){var e;let l=a.domReference;return n&&l.addEventListener("mouseleave",o),null==(e=a.floating)||e.addEventListener("mouseleave",o),m&&l.addEventListener("mousemove",t,{once:!0}),l.addEventListener("mouseenter",t),l.addEventListener("mouseleave",r),()=>{var e;n&&l.removeEventListener("mouseleave",o),null==(e=a.floating)||e.removeEventListener("mouseleave",o),m&&l.removeEventListener("mousemove",t),l.removeEventListener("mouseenter",t),l.removeEventListener("mouseleave",r)}}function t(e){if(clearTimeout(E.current),S.current=!1,f&&!b(C.current)||p>0&&!tR(y.current,"open"))return;let t=tR(y.current,"open",C.current);t?E.current=window.setTimeout(()=>{_.current||l(!0,e,"hover")},t):n||l(!0,e,"hover")}function r(e){if(L())return;j.current();let t=x(a.floating);if(clearTimeout(N.current),R.current=!1,w.current&&i.current.floatingContext){n||clearTimeout(E.current),k.current=w.current({...i.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),A(),L()||T(e,!0,"safe-polygon")}});let l=k.current;t.addEventListener("mousemove",l),j.current=()=>{t.removeEventListener("mousemove",l)};return}"touch"===C.current&&h(a.floating,e.relatedTarget)||T(e)}function o(e){L()||i.current.floatingContext&&(null==w.current||w.current({...i.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){I(),A(),L()||T(e)}})(e))}},[a,s,e,f,p,m,T,A,I,l,n,_,v,y,w,i,L]),tg(()=>{var e,t;if(s&&n&&null!=(e=w.current)&&e.__options.blockPointerEvents&&O()){$.current=!0;let e=a.floating;if(c(a.domReference)&&e){let n=x(a.floating).body;n.setAttribute(tj,"");let l=a.domReference,r=null==v||null==(t=v.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return r&&(r.style.pointerEvents=""),n.style.pointerEvents="none",l.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",l.style.pointerEvents="",e.style.pointerEvents=""}}}},[s,n,g,a,v,w,O]),tg(()=>{n||(C.current=void 0,R.current=!1,A(),I())},[n,A,I]),r.useEffect(()=>()=>{A(),clearTimeout(E.current),clearTimeout(N.current),I()},[s,a.domReference,A,I]);let z=r.useMemo(()=>{function e(e){C.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function r(){S.current||_.current||l(!0,t,"hover")}f&&!b(C.current)||n||0===p||R.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(N.current),"touch"===C.current?r():(R.current=!0,N.current=window.setTimeout(r,p)))}}},[f,l,n,_,p]),P=r.useMemo(()=>({onMouseEnter(){clearTimeout(E.current)},onMouseLeave(e){L()||T(e.nativeEvent,!1)}}),[T,L]);return r.useMemo(()=>s?{reference:z,floating:P}:{},[s,z,P])},"useInteractions",0,function(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),l=e.map(e=>null==e?void 0:e.item),i=r.useCallback(t=>ne(t,e,"reference"),t),o=r.useCallback(t=>ne(t,e,"floating"),n),a=r.useCallback(t=>ne(t,e,"item"),l);return r.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])},"useMergeRefs",0,function(e){return r.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})},e)},"useRole",0,function(e,t){var n;void 0===t&&(t={});let{open:l,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,s=null!=(n=nt.get(a))?n:a,c=t_(),u=null!=tN(),d=r.useMemo(()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:l?i:void 0}:{"aria-expanded":l?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":l?i:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:c},..."menu"===s&&u&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}},[s,i,u,l,c,a]),f=r.useMemo(()=>{let e={id:i,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":c}}},[s,i,c,a]),p=r.useCallback(e=>{let{active:t,selected:n}=e,l={role:"option",...t&&{id:i+"-option"}};switch(a){case"select":return{...l,"aria-selected":t&&n};case"combobox":return{...l,...t&&{"aria-selected":!0}}}return{}},[i,a]);return r.useMemo(()=>o?{reference:d,floating:f,item:p}:{},[o,d,f,p])},"useTransitionStyles",0,function(e,t){void 0===t&&(t={});let{initial:n={opacity:0},open:l,close:i,common:o,duration:a=250}=t,s=e.placement,c=s.split("-")[0],u=r.useMemo(()=>({side:c,placement:s}),[c,s]),d="number"==typeof a,f=(d?a:a.open)||0,p=(d?a:a.close)||0,[m,h]=r.useState(()=>({...nl(o,u),...nl(n,u)})),{isMounted:v,status:g}=function(e,t){void 0===t&&(t={});let{open:n,elements:{floating:l}}=e,{duration:i=250}=t,o=("number"==typeof i?i:i.close)||0,[a,s]=r.useState("unmounted"),c=function(e,t){let[n,l]=r.useState(e);return e&&!n&&l(!0),r.useEffect(()=>{if(!e&&n){let e=setTimeout(()=>l(!1),t);return()=>clearTimeout(e)}},[e,n,t]),n}(n,o);return c||"close"!==a||s("unmounted"),tg(()=>{if(l){if(n){s("initial");let e=requestAnimationFrame(()=>{s("open")});return()=>{cancelAnimationFrame(e)}}s("close")}},[n,l]),{isMounted:c,status:a}}(e,{duration:a}),w=t$(n),b=t$(l),x=t$(i),y=t$(o);return tg(()=>{let e=nl(w.current,u),t=nl(x.current,u),n=nl(y.current,u),l=nl(b.current,u)||Object.keys(e).reduce((e,t)=>(e[t]="",e),{});if("initial"===g&&h(t=>({transitionProperty:t.transitionProperty,...n,...e})),"open"===g&&h({transitionProperty:Object.keys(l).map(nn).join(","),transitionDuration:f+"ms",...n,...l}),"close"===g){let l=t||e;h({transitionProperty:Object.keys(l).map(nn).join(","),transitionDuration:p+"ms",...n,...l})}},[p,x,w,b,y,f,g,u]),{isMounted:v,styles:m}}],43489),e.s(["D",0,"finkit-dropdown","M",0,"finkit-modals","S",0,"finkit-snackbars","T",0,"finkit-tooltips"],2753)},85900,34650,44437,58858,e=>{"use strict";let t=/^\.?\//;Symbol.for("ufo:protocolRelative"),e.s(["joinURL",0,function(e,...n){let l=e||"";for(let e of n.filter(e=>e&&"/"!==e))if(l){let n=e.replace(t,"");l=function(e=""){return e.endsWith("/")?e:e+"/"}(l)+n}else l=e;return l}],85900);var n=e.i(63687);let l=(0,e.i(22468).g)("header","sc"),r=Object.freeze({header:`${l}`,fixed:`${l}__fixed`,hidden:`${l}__fixed--hidden`,transparent:`${l}--transparent`,navigationOpen:`${l}__navigation-open`,container:`${l}__container`,leftRow:`${l}__left-row`,logo:`${l}__logo`,menuItems:`${l}__menu-items`,menuItemActive:`${l}__menu-item-active`,tabletMenuButton:`${l}__tablet-menu-button`,buttonGroup:`${l}__button-group`,chips:`${l}__chips`,menuButton:`${l}__menu-button`,moreButtons:`${l}__more-buttons`,auth:`${l}__auth`,whiteIcons:`${l}__white-icons`,close:`${l}__close`,removed:`${l}__removed`,overlay:`${l}__overlay`,overlayOpening:`${l}__overlay--opening`,overlayClosing:`${l}__overlay--closing`}),i="cb-header",o=[{id:"FINPRODUCTS",label:"Финпродукты"},{id:"NAVIGATOR",label:"Журнал"},{id:"ABOUT",label:"О маркетплейсе"}],a=o.reduce((e,t)=>(e[t.id]=t.label,e),{}),s=Object.freeze({mobile:56,desktop:80});e.s(["F",0,s,"H",0,i,"U",0,"user_region","a",0,a,"b",0,o,"c",0,"user_town","s",0,r],34650);let c="finuslugi-header-height-change",u=(e,t,n)=>{let l=new Date;l.setTime(l.getTime()+864e5*n);let r=encodeURIComponent(JSON.stringify(t)),i=`;domain=.${window.location.hostname}`;document.cookie=`${e}=${r};expires=${l.toUTCString()};path=/;SameSite=Lax${i}`};e.s(["H",0,c,"h",0,(e,t,l)=>(0,n.h)({eventCategory:i,eventActionType:e,eventActionText:t,eventLabel:l}),"i",0,()=>{setTimeout(()=>{if(!(typeof document>"u"||"string"!=typeof document.cookie))try{let e;(e=(()=>{let e=new URLSearchParams(window.location.search),t={};for(let[n,l]of Array.from(e.entries()))n.startsWith("utm_")&&(t[n]=l);return Object.keys(t).length>0?t:null})())&&!document.cookie.split(";").some(e=>e.trim().startsWith("utm_params="))&&u("utm_params",e,90),e&&u("utm_last",e,90)}catch(e){console.error("UTM tracking error:",e)}},0)},"s",0,(e,t,n)=>{if(typeof window>"u"||typeof document>"u")return;let l=document.getElementById("mainHomeBanner"),r=!1,i=0,o=0,a=window.innerWidth<768,s=()=>window.scrollY||document.documentElement.scrollTop,u=e=>{document.documentElement.style.setProperty("--new-header-height-desktop",e),document.documentElement.style.setProperty("--new-header-height-mobile",e)},d=()=>{let e=window.innerWidth<768;e!==a&&(a=e,o=0)},f=function(){let a=s(),c=document.getElementById("headerNotice");if((null==c?void 0:c.getAttribute("data-opening"))==="true")return;o||(()=>{let e=document.querySelector(":root");if(e){let t=parseFloat(window.getComputedStyle(e).getPropertyValue("--fixed-header-height"));o=Number.isNaN(t)?0:t,i=s()}})();let d=a<o,f=a<((null==l?void 0:l.clientHeight)||0);if(n&&f||d){r=!1,e(!1),t(!0),u(`${o}px`);return}e(r=a>i),r&&setTimeout(()=>t(!1),50),u(r?"0px":`${o}px`),i=a<=0?0:a},p=()=>{o=0,f()};return window.addEventListener("scroll",f),window.addEventListener("resize",d),window.addEventListener(c,p),()=>{window.removeEventListener("scroll",f),window.removeEventListener("resize",d),window.removeEventListener(c,p)}}],44437);var d=e.i(71645);e.s(["S",0,function(e){return d.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M7.22 12.53a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 1 1 1.06 1.06L8.81 12l5.97 5.97a.75.75 0 1 1-1.06 1.06l-6.5-6.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}],58858)},21214,e=>{"use strict";var t=e.i(71645);e.s(["S",0,function(e){return t.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},t.createElement("path",{d:"M7.22 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"}))}])},37536,91784,96347,881,43748,53278,e=>{"use strict";var t=e.i(43476),n=e.i(71645),l=e.i(7670),r=e.i(22468),i=e.i(74080);let o=300,a=({opened:e})=>{let[t,l]=(0,n.useState)(!1),r=(0,n.useRef)(null),i=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(e&&!i.current?(i.current=!0,l(!0)):!e&&i.current&&(r.current=setTimeout(()=>{i.current=!1,l(!1)},o)),()=>{r.current&&clearTimeout(r.current)}),[e]),{mounted:t}},s=(0,r.g)("click-outside","sc"),c=Object.freeze({overlay:`${s}__overlay`,open:`${s}--open`,close:`${s}--close`}),u=({onClose:e,onToucheMove:r,isOpen:i,delay:a=o})=>{let s=(0,n.useRef)(null),u=(0,n.useCallback)(()=>{e&&(s.current=setTimeout(()=>{e()},a))},[a,e]),d=(0,n.useCallback)(e=>{"Escape"===e.key&&u()},[u]);return(0,n.useEffect)(()=>(i&&window.addEventListener("keydown",d),()=>{s.current&&clearTimeout(s.current),window.removeEventListener("keydown",d)}),[i,d]),(0,t.jsx)("div",{className:(0,l.default)(c.overlay,{[c.open]:i,[c.close]:!i}),onTouchStart:r,onClick:u})},d=(e,t)=>{e&&(t?e.setAttribute("data-portal",""):e.removeAttribute("data-portal"))},f=(e,t)=>{t.style.removeProperty("overflow-y"),e.classList.toggle("scroll-disable-windows",!1),e.style.removeProperty("overflow"),e.style.removeProperty("height"),e.style.removeProperty("width"),e.style.removeProperty("top")},p=()=>{void 0!==window.prevScrollPosition&&(window.scrollTo(0,window.prevScrollPosition),window.prevScrollPosition=void 0)},m=()=>document.querySelectorAll("[data-portal]").length>1,h=e=>{let t=(0,n.useRef)(null),l=(0,n.useRef)(!1);return(0,n.useEffect)(()=>{if(l.current===e)return;l.current=e;let n=t.current,r=document.body,i=document.documentElement,o=window.innerWidth-i.clientWidth;if(e&&o>0)r.style.top||(window.prevScrollPosition=window.scrollY),i.style.setProperty("overflow-y","scroll"),r.classList.toggle("scroll-disable-windows",!0),r.style.setProperty("width",`calc(100vw - ${o}px)`),r.style.setProperty("top",`-${window.prevScrollPosition}px`),d(n,!0);else if(e)r.style.setProperty("overflow","hidden"),r.style.setProperty("height","100vh"),d(n,!0);else{let e=!m();e&&f(r,i),e&&p(),d(n,!1)}return()=>{let e=!m();e&&f(r,i),e&&p()}},[e]),t},v={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},g={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},w=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function b({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...v,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(w,{viewBox:"0 0 24 24",style:g}))}b.displayName="IconFdsCloseO";let x=(0,r.g)("drawer-footer","sc"),y=Object.freeze({footer:`${x}__footer`,hasScroll:`${x}__footer--has-scroll`}),_=({footer:e,hasScroll:n,className:r})=>(0,t.jsx)("div",{className:(0,l.default)(y.footer,{[y.hasScroll]:n},r),children:"function"==typeof e?e():e}),C=(0,r.g)("drawer-content","sc"),E=Object.freeze({container:`${C}__container`,open:`${C}--open`,close:`${C}--close`,header:`${C}__header`,rowHeader:`${C}__header--row`,title:`${C}__title`,center:`${C}__title--center`,left:`${C}__title--left`,right:`${C}__title--right`,controlContainer:`${C}__control-container`,content:`${C}__content`,footer:`${C}__footer`}),k=({onClose:e,onContentClick:r,children:i,title:o,rowTitle:a,titleAlign:s,isCloseable:c,footer:u,closeButton:d,isOpen:f,contentClassName:p,footerClassName:m,contentStyle:h,width:v})=>{let g=(0,n.useRef)(null),w=(0,n.useRef)(null),[x,y]=(0,n.useState)(!1);(0,n.useEffect)(()=>{var e;if(!w.current||!g.current)return;let t=(null==(e=null==w?void 0:w.current)?void 0:e.getBoundingClientRect().top)||0,n=null==g?void 0:g.current,l=()=>{let e=null==w?void 0:w.current;e&&y(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",l,!1),()=>{null==n||n.removeEventListener("scroll",l,!1)}},[]);let C=h||v?{width:v,...h||{}}:void 0;return(0,t.jsxs)("div",{ref:g,style:C,className:(0,l.default)(E.container,{[E.open]:f,[E.close]:!f},p),children:[o||c?(0,t.jsxs)("div",{className:(0,l.default)(E.header,{[E.rowHeader]:a}),children:[c?d?"function"==typeof d?d():d:(0,t.jsx)("button",{type:"button",className:E.controlContainer,onClick:e,children:(0,t.jsx)(b,{size:24})}):null,o?(0,t.jsx)("h3",{className:(0,l.default)(E.title,{[E[s]]:!0}),children:o}):null]}):null,(0,t.jsx)("div",{ref:w,className:E.content,onClick:r,children:i}),u&&(0,t.jsx)(_,{className:(0,l.default)(E.footer,m),footer:u,hasScroll:x})]})},N=(0,r.g)("drawer-layout","sc"),S=Object.freeze({window:`${N}__window`}),$=({onClose:e,isOpen:r,children:i,withDisabledScroll:o,className:a,...s})=>{let c=(0,n.useCallback)(e=>e.stopPropagation(),[]);return h(r&&o),(0,t.jsxs)("div",{"data-portal":!0,className:(0,l.default)(S.window,a),children:[(0,t.jsx)(u,{onClose:e,isOpen:r,delay:0}),(0,t.jsx)(k,{onContentClick:c,onClose:e,isOpen:r,...s,children:i})]})},j=({isOpen:e=!1,children:n,titleAlign:l="center",isCloseable:r=!0,withDisabledScroll:i=!0,...o})=>{let{mounted:s}=a({opened:e});return s?(0,t.jsx)($,{titleAlign:l,isCloseable:r,isOpen:e,withDisabledScroll:i,...o,children:n}):null};j.displayName="Drawer";let R={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},O={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},T=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function A({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...R,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(T,{viewBox:"0 0 24 24",style:O}))}A.displayName="IconFdsCloseO";let I=(0,r.g)("mobile-modal-footer","sc"),L=Object.freeze({footer:`${I}__footer`,footerWithoutShadow:`${I}__footer--without-shadow`}),z=({footer:e,isSmallPopup:n=!1,footerClassName:r})=>(0,t.jsx)("div",{className:(0,l.default)(L.footer,n&&L.footerWithoutShadow,r),children:"function"==typeof e?e():e}),P=(0,r.g)("mobile-popup","sc"),M=Object.freeze({mobilePopup:`${P}`,mobilePopupOpen:`${P}--open`,content:`${P}__content`,contentFull:`${P}__content--full`,contentTransition:`${P}__content--transition`,contentTransitionOpen:`${P}__content--transition-open`,contentLine:`${P}__content-line`,contentContainer:`${P}__content-container`,smallContentContainer:`${P}__content-container--small`,min:`${P}__content-container--min`,title:`${P}__title`,closeContainer:`${P}__close-container`,closeButton:`${P}__close-button`}),B=({children:e,footer:r,isOpen:i,isSmallPopup:o,onClose:a,hasCloseButton:s=!0,full:c,touchDistance:d=100,withDisabledScroll:f=!0,contentClassName:p,className:m,title:v,closeButton:g,footerClassName:w})=>{let[b,x]=(0,n.useState)(!1),[y,_]=(0,n.useState)(!1),[C,E]=(0,n.useState)(!0),[k,N]=(0,n.useState)("120%"),S=(0,n.useRef)(null),$=(0,n.useRef)(0),j=(0,n.useRef)(!1),R=e=>{var t,n,l;let r=null==(t=S.current)?void 0:t.offsetTop,i=null==(n=S.current)?void 0:n.offsetHeight;if(j.current=!0,E(!1),r&&i){let t=(null==(l=null==e?void 0:e.touches[0])?void 0:l.clientY)-r,n=0;t>=0&&t<=i+30&&(n=t),t>i+30&&(n=i+30),N(`${n}px`),$.current=n}},O=()=>{j.current&&($.current>d&&a?null==a||a():N("0"),E(!0),j.current=!1),window.removeEventListener("touchmove",R),window.removeEventListener("touchend",O)};return(0,n.useEffect)(()=>{i&&setTimeout(()=>{x(!0),_(!0),N("0")},100),!i&&y&&(N("120%"),x(!1),_(!1))},[y,i]),h(i&&f),(0,t.jsxs)("div",{"data-portal":!0,className:(0,l.default)(M.mobilePopup,y&&M.mobilePopupOpen,m),children:[(0,t.jsx)(u,{onClose:()=>{i&&(null==a||a())},onToucheMove:()=>{i&&(x(!1),window.addEventListener("touchmove",R),window.addEventListener("touchend",O))},isOpen:i,delay:0}),(0,t.jsxs)("div",{className:(0,l.default)(M.content,c&&M.contentFull,C&&M.contentTransition,C&&b&&M.contentTransitionOpen),ref:S,style:{transform:`translateY(${k})`},children:[(0,t.jsx)("div",{className:M.contentLine}),(0,t.jsxs)("div",{className:(0,l.default)(M.contentContainer,o&&M.smallContentContainer,{[M.min]:!v&&!s},p),children:[!!v&&(0,t.jsx)("div",{className:M.title,children:v}),s?(0,t.jsx)("div",{className:M.closeContainer,children:s?g?"function"==typeof g?g():g:(0,t.jsx)("button",{onClick:a,className:M.closeButton,children:(0,t.jsx)(A,{size:24})}):null}):null,e]}),r&&(0,t.jsx)(z,{footerClassName:w,isSmallPopup:o,footer:r})]})]})},F=({children:e,isSmallPopup:n=!1,isOpen:l=!1,...r})=>{let{mounted:i}=a({opened:l});return i?(0,t.jsx)(B,{isSmallPopup:n,isOpen:l,...r,children:e}):null};F.displayName="UiMobilePopup",e.s(["D",0,j,"P",0,({children:e,id:t="portal-root"})=>{let[l,r]=(0,n.useState)(null);return(0,n.useEffect)(()=>{let e=document.getElementById(t);if(e)return void r(e);let n=document.createElement("div");return n.id=t,document.body.appendChild(n),r(n),()=>{document.body.removeChild(n)}},[t]),l?(0,i.createPortal)(e,l):null},"U",0,F,"u",0,h],37536);var D=e.i(43489),H=e.i(2753),W=e.i(14044),U=e.i(54061),V=e.i(16727),q=e.i(58858),G=e.i(21214),Y=e.i(2404);let J=(0,U.g)("modal"),K=Object.freeze({modal:J,overlay:`${J}__overlay`,withoutFooter:`${J}--without-footer`,noContent:`${J}--no-content`,open:`${J}--open`,overlayOpen:`${J}__overlay--open`,height:{medium:`${J}--height-medium`,full:`${J}--height-full`},size:{s:`${J}--s`,m:`${J}--m`,l:`${J}--l`,xl:`${J}--xl`},header:`${J}__header`,headerText:`${J}__header-text`,headerTitle:`${J}__header-title`,headerSubtitle:`${J}__header-subtitle`,closeIcon:`${J}__close-icon`,backButton:`${J}__back-button`,backButtonText:`${J}__back-button-text`,headerStates:{centered:`${J}__header--centered`,withLongBtn:`${J}__header--with-long-btn`,defaultHeight:`${J}__header--default-height`},content:`${J}__content`,withoutPadding:`${J}__content--without-padding`,withScroll:`${J}__content--with-scroll`,footer:`${J}__footer`,footerContainer:`${J}__footer-container`,footerBtn:`${J}__footer-btn`,footerDescription:`${J}__footer-description`,divider:`${J}__divider`,dividerTop:`${J}__divider--top`,dividerBottom:`${J}__divider--bottom`}),Q=({primaryBtnText:e,onPrimary:n,secondaryBtnText:r,onSecondary:i,thirdBtnText:o,onThird:a,description:s,children:c,noContent:u,dataQa:d})=>(0,t.jsxs)("div",{"data-qa":(0,W.g)(`${d}-footer`,!!d),className:(0,l.default)(K.footer,{[K.noContent]:u}),children:[!u&&(0,t.jsx)("div",{className:(0,l.default)(K.divider,K.dividerTop)}),c||(0,t.jsxs)("div",{className:K.footerContainer,children:[o&&(0,t.jsx)(V.a,{dataQa:(0,W.g)(`${d}-footer-third-btn`,!!d),label:o,variant:"secondary",size:"s",className:K.footerBtn,onClick:a}),r&&(0,t.jsx)(V.a,{dataQa:(0,W.g)(`${d}-footer-secondary-btn`,!!d),label:r,variant:"secondary",size:"s",className:K.footerBtn,onClick:i}),e&&(0,t.jsx)(V.a,{dataQa:(0,W.g)(`${d}-footer-primary-btn`,!!d),label:e,size:"s",className:K.footerBtn,onClick:n})]}),s&&(0,t.jsx)("span",{"data-qa":(0,W.g)(`${d}-footer-description`,!!d),className:K.footerDescription,children:s})]}),X=({text:e,title:n,subtitle:r,align:i="left",backBtnVariant:o,onBack:a,onClose:s,noContent:c,dataQa:u,withoutCloseBtn:d=!1})=>(0,t.jsxs)("div",{"data-qa":(0,W.g)(`${u}-header`,!!u),className:(0,l.default)(K.header,{[K.headerStates.centered]:"center"===i||!!o,[K.headerStates.withLongBtn]:"long"===o,[K.headerStates.defaultHeight]:!e&&!n&&!r}),children:[e&&(0,t.jsx)("span",{"data-qa":(0,W.g)(`${u}-header-text`,!!u),className:K.headerText,children:e}),n&&(0,t.jsx)("span",{"data-qa":(0,W.g)(`${u}-header-title`,!!u),className:K.headerTitle,children:n}),r&&(0,t.jsx)("span",{"data-qa":(0,W.g)(`${u}-header-subtitle`,!!u),className:K.headerSubtitle,children:r}),!d&&(0,t.jsx)("button",{"data-qa":(0,W.g)(`${u}-header-close`,!!u),type:"button",className:K.closeIcon,onClick:s,children:(0,t.jsx)(Y.P,{children:(0,t.jsx)(G.S,{})})}),o&&(0,t.jsxs)("button",{"data-qa":(0,W.g)(`${u}-header-back`,!!u),type:"button",className:K.backButton,onClick:a,children:[(0,t.jsx)(Y.P,{children:(0,t.jsx)(q.S,{})}),"long"===o&&(0,t.jsx)("span",{className:K.backButtonText,children:"Назад"})]}),!c&&(0,t.jsx)("div",{className:(0,l.default)(K.divider,K.dividerBottom)})]}),Z=(0,n.forwardRef)(({header:e,footer:r,open:i=!1,size:o="m",noPadding:a=!1,height:s="full",onClose:c,children:u,className:d,style:f,dataQa:p,dataId:m,dismissDisabled:h=!1,...v},g)=>{let[w,b]=(0,n.useState)(!1),[x,y]=(0,n.useState)(!1),_=(0,n.useRef)(null);(0,n.useEffect)(()=>()=>{_.current&&cancelAnimationFrame(_.current)},[]),(0,n.useEffect)(()=>{if(_.current&&cancelAnimationFrame(_.current),i)return b(!0),_.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{y(!0)})}),()=>{_.current&&cancelAnimationFrame(_.current)};{y(!1);let e=setTimeout(()=>{b(!1)},300);return()=>{clearTimeout(e),_.current&&cancelAnimationFrame(_.current)}}},[i]);let C=()=>{y(!1);let e=setTimeout(()=>{null==c||c(),b(!1)},300);return()=>clearTimeout(e)},{context:E}=(0,D.useFloating)({open:w,onOpenChange:e=>{e||C()}}),k=(0,D.useDismiss)(E,{outsidePressEvent:"mousedown",outsidePress:!h,escapeKey:!h}),N=(0,D.useRole)(E,{role:"dialog"}),{getFloatingProps:S}=(0,D.useInteractions)([k,N]),[$,j]=(0,n.useState)(!1),R=(0,n.useCallback)(e=>{e&&new ResizeObserver(()=>{j(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return w?(0,t.jsx)(D.FloatingPortal,{id:H.M,children:(0,t.jsx)(D.FloatingOverlay,{lockScroll:!0,className:(0,l.default)(K.overlay,{[K.overlayOpen]:x}),children:(0,t.jsx)(D.FloatingFocusManager,{context:E,children:(0,t.jsxs)("div",{ref:g,className:(0,l.default)(K.modal,K.size[o],K.height[s],{[K.withoutFooter]:!(null==r?void 0:r.primaryBtnText)&&!(null==r?void 0:r.children),[K.open]:x},d),style:f,...S(),...v,"data-id":m,"data-qa":p,children:[(0,t.jsx)(X,{...e,dataQa:p,noContent:!u,onClose:C}),u&&(0,t.jsx)("div",{"data-qa":(0,W.g)(`${p}-content`,!!p),ref:R,className:(0,l.default)(K.content,{[K.withoutFooter]:!(null==r?void 0:r.primaryBtnText)&&!(null==r?void 0:r.children),[K.withoutPadding]:a,[K.withScroll]:$}),children:u}),((null==r?void 0:r.primaryBtnText)||(null==r?void 0:r.children))&&(0,t.jsx)(Q,{...r,dataQa:p,noContent:!u})]})})})}):null});Z.displayName="Modal",e.s(["Modal",0,Z],91784);let ee=(0,U.g)("divider"),et=Object.freeze({divider:ee,content:`${ee}__content`}),en=({content:e,className:n,style:r,dataQa:i,dataId:o,...a})=>(0,t.jsx)("div",{className:(0,l.default)(et.divider,n),style:r,...a,"data-id":o,"data-qa":i,children:e&&(0,t.jsx)("div",{className:et.content,children:e})});en.displayName="Divider",e.s(["Divider",0,en],96347);var el=e.i(91390);e.s([],881),e.s(["InputBase",()=>el.I],43748);var er=e.i(24359),ei=e.i(63687),eo=e.i(34650);let ea={userRegion:eo.U,userTown:eo.c,allRegions:"all_regions",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp",allRussiaSelected:"all_russia_selected"},es={userRegion:eo.U,userTown:eo.c,allRegions:"all_regions_new_api",lastRegionsUpdateUnixTimestamp:"lastRegionsUpdateUnixTimestamp_new_api",allRussiaSelected:"all_russia_selected"},ec=(e=!1)=>e?es:ea,eu=(e,t=!1)=>{if(t){window.allRegionsNewApi=e;return}window.allRegions=e},ed=function(e){if(typeof window>"u"||!window.localStorage)return null;let t=window.localStorage.getItem(e);if(!t||"undefined"===t)return null;try{return JSON.parse(t)}catch(t){console.warn(`Invalid object in localStorage for key "${e}": ${t}`)}return null},ef=e=>e.some(e=>e.towns.some(e=>!!e.newId||!!e.fiasId)),ep=(e,t)=>`${e.replace(/\/+$/,"")}${t}`,em=async e=>{try{return await (await fetch(e)).json()}catch(e){console.warn(e)}return null},eh=(e,t=!1)=>{if(e.length<1)return;let n=ec(t);eu(e,t),window.localStorage.setItem(n.allRegions,JSON.stringify(e)),window.localStorage.setItem(n.lastRegionsUpdateUnixTimestamp,JSON.stringify(Date.now()))},ev=async()=>{let e=await em("https://finuslugi.ru/money_data/Root.json?short=1"),t=Array.isArray(null==e?void 0:e.regions)?e.regions:[];return eh(t),t},eg=async e=>{let t,n,[l,r]=await Promise.all([em(ep(e,"/sc/api/v1/cities?all=true&isActive=true")),em(ep(e,"/sc/api/v1/regions?all=true"))]);if(!Array.isArray(null==l?void 0:l.content)||!Array.isArray(null==r?void 0:r.content))return[];let i=l.content,o=(n=(t=r.content.filter(e=>e.isActive).map(e=>({id:e.geoRegionId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,region_id:e.geoRegionId,enabled:+!!e.isActive,fiasId:e.fiasId,towns:[]}))).reduce((e,t)=>(e[t.id]=t,e),{}),i.forEach(e=>{let t=n[e.geoRegionId];t&&t.towns.push({id:e.legacyId,name:e.name,name_r:e.nameR,name_p:e.nameP,url:e.url,main:+!!e.isRegionalCenter,newId:e.id,fiasId:e.fiasId})}),t);return ef(o)?(eh(o,!0),o):[]},ew=async({showcaseUrl:e="",useNewCitiesApi:t=!1}={})=>t?eg(e):ev(),eb=async e=>{let t=null;try{t=await (await fetch(`${e}`,{method:"GET"})).json()}catch(e){console.warn(e)}return t||null};e.s(["a",0,e=>{let t={};return e.map(({id:e,name:n,towns:l})=>(l.forEach(l=>{l.parentId=e,t[l.name]=t[l.name]||{},t[l.name][l.id]=n}),l)).reduce((e,n)=>(n.forEach(e=>{Object.keys(t[e.name]).length>1&&(e.parentName=t[e.name][e.id])}),[...e,...n]),[])},"b",0,(e,t,n)=>{let l=null,r=null;n&&e.some(e=>{let t=e.towns.find(e=>e.id===n.id)??null;return!!t&&(l=e,r=t,!0)});let i=t?e.find(e=>e.id===t.id)??null:null;return{region:l??i??t,town:r??n}},"c",0,(e,t)=>!!(null!=e&&e.newId||null!=e&&e.fiasId||null!=t&&t.newId||null!=t&&t.fiasId),"d",0,ec,"e",0,e=>{if(typeof document>"u")return null;let t=er.a.getItem(e)??void 0;if(!t||"undefined"===t)return null;try{return JSON.parse(decodeURIComponent(t))}catch{return null}},"f",0,(e,t)=>(!!e||!!t)&&!(null!=e&&e.newId)&&!(null!=e&&e.fiasId)&&!(null!=t&&t.newId)&&!(null!=t&&t.fiasId),"g",0,(e=!1)=>{if(typeof window>"u")return[];let t=((e=!1)=>e?window.allRegionsNewApi:window.allRegions)(e);if(Array.isArray(t)&&t.length>0)return t;let n=ed(ec(e).allRegions)||[];return eu(n,e),n},"h",0,(e,t,n)=>{(0,ei.h)({eventCategory:"finkit-widgets-sc-city-select",eventActionType:e,eventActionText:t,eventLabel:n})},"i",0,(e,t=!1)=>!(e.length<1)&&(!t||ef(e)),"j",0,eb,"l",0,ew,"p",0,ed,"s",0,(e,t,n=!1)=>{if(typeof document>"u")return;let l=ec(n);if(!e&&!t){er.a.removeItem(l.userRegion),er.a.removeItem(l.userTown);return}er.a.setItem(l.userRegion,JSON.stringify(e)||"",{"max-age":31536e3}),er.a.setItem(l.userTown,JSON.stringify(t)||"",{"max-age":31536e3})}],53278)},91390,11512,e=>{"use strict";var t=e.i(43476),n=e.i(71645),l=e.i(43489),r=e.i(7670),i=e.i(3315);e.i(89485);var o=e.i(14044),a=e.i(54061);let s=(...e)=>(...t)=>{e.forEach(e=>{null==e||e(...t)})},c=(0,a.g)("input-base"),u={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`}},d=(0,n.forwardRef)(({icon:e,rightLabel:a,slotLeft:c,disabled:d,state:f,size:p="m",variant:m="primary",label:h,value:v,placeholder:g,maskPlaceholder:w,autoFocus:b=!1,maskPlaceholderVariant:x="default",caption:y,type:_="text",inputMode:C="text",hasCaption:E,className:k,style:N,dataQa:S,dataId:$,inputRef:j,onChange:R,onFocus:O,onBlur:T,onKeyDown:A,...I},L)=>{let z=(0,n.useId)(),{value:P,show:M,hide:B}=((e=!1)=>{let[t,l]=(0,n.useState)(e),r=(0,n.useCallback)(()=>l(!0),[]);return{value:t,show:r,hide:(0,n.useCallback)(()=>l(!1),[]),toggle:(0,n.useCallback)(()=>l(e=>!e),[])}})(),F=(0,n.useRef)(null),D=(0,l.useMergeRefs)([j,F]),H=(0,n.useMemo)(()=>P||!!v||!!g,[v,P,g]),W=(0,n.useCallback)(()=>{var e;null==(e=F.current)||e.focus()},[]),U=(0,n.useMemo)(()=>{if(!w)return null;let e={hidden:v??"",visible:w.substring((null==v?void 0:v.length)??0)};return w.length===(null==v?void 0:v.length)?null:e},[w,v]);return(0,n.useEffect)(()=>{var e,t,n;if(!b)return;let l=(null==(e=F.current)?void 0:e.value.length)??0;null==(t=F.current)||t.focus(),null==(n=F.current)||n.setSelectionRange(l,l)},[b]),(0,t.jsxs)("div",{className:(0,r.default)(k,u.wrapper),style:N,"data-qa":S,"data-id":$,children:[(0,t.jsxs)("div",{className:(0,r.default)(u.input,u.states[m],u.states[p],{[u.states.focused]:P,[u.states.error]:"error"===f,[u.states.success]:"success"===f,[u.states.disabled]:!!d,[u.states.hasLabel]:h}),onClick:W,ref:L,children:[c&&(0,t.jsx)("div",{className:u.slotLeft,children:c}),(0,t.jsxs)("label",{htmlFor:z,className:u.container,children:[h&&(0,t.jsx)("span",{className:(0,r.default)(u.label,{[u.states.active]:H,[u.states.s]:"s"===p,[u.states.disabled]:d,[u.states.error]:"error"===f,[u.states.success]:"success"===f}),children:h}),U&&!!v&&(0,t.jsxs)("div",{className:(0,r.default)(u.placeholder.visible,{[u.states.accent]:"accent"===x}),children:[U.hidden&&(0,t.jsx)("span",{className:u.placeholder.hidden,children:U.hidden}),U.visible]}),(0,t.jsx)("input",{...I,id:z,ref:D,className:(0,r.default)(u.field,{[u.states.s]:"s"===p,[u.states.hasLabel]:h,[u.states.disabled]:d}),type:_,inputMode:C,autoComplete:"off",placeholder:g,value:v,disabled:d,onChange:e=>{null==R||R(e.target.value,e)},onFocus:s(M,O),onBlur:s(B,T),onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),null==R||R("",{target:{value:""}})),null==A||A(e)}})]}),a&&(0,t.jsx)("div",{className:(0,r.default)(u.rightLabel,{[u.states.disabled]:d}),children:a}),e]}),(E||y)&&(0,t.jsx)(i.C,{dataQa:(0,o.g)(`${S}-caption`,!!S),className:(0,r.default)(u.caption,{[u.states.disabled]:d}),state:f,withoutIcon:!0,children:y})]})});d.displayName="InputBase",e.s(["I",0,d],91390);var f=e.i(63687),p=e.i(44437),m=e.i(22468);let h={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},v={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},g=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M12.004 7.246A1.247 1.247 0 0110.75 6a1.25 1.25 0 111.254 1.247zM10.75 12c0 .686.559 1.252 1.254 1.247a1.252 1.252 0 001.246-1.25 1.25 1.25 0 10-2.5.003zm0 6c0 .686.559 1.253 1.254 1.247a1.252 1.252 0 001.246-1.25 1.25 1.25 0 10-2.5.003z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function w({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...h,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(g,{viewBox:"0 0 24 24",style:v}))}w.displayName="IconFdsDotsVerticalO";let b=(0,m.g)("navigation-chips","sc"),x=Object.freeze({wrapper:`${b}__wrapper`,gray:`${b}__variantGray`,white:`${b}__variantWhite`,container:`${b}__container`,chip:`${b}__chip`,more:`${b}__chip--more`,active:`${b}__chip--active`,icon:`${b}__icon`,label:`${b}__label`,hidden:`${b}__hidden`}),y={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},_={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},C=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function E({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...y,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(C,{viewBox:"0 0 24 24",style:_}))}E.displayName="IconFdsArrowUpRightSmallO";let k=(0,m.g)("navigation-content","sc"),N=Object.freeze({contentWrapper:`${k}__content-wrapper`,content:`${k}__content`,contentOpen:`${k}__content--open`,contentHeader:`${k}__content-header`,contentTitle:`${k}__content-title`,contentTitleUrl:`${k}__content-title--url`,contentTitleLink:`${k}__content-title--link`,contentTitleNew:`${k}__content-title--new`,new:`${k}__new`,newInline:`${k}__new-inline`,vip:`${k}__vip`,arrowIcon:`${k}__arrow-icon`,links:`${k}__links`,linksColumns:`${k}__links--columns`,linksTitleless:`${k}__links--titleless`,removed:`${k}__removed`,hidden:`${k}__content--hidden`}),S=({chip:e,hidden:n,onClick:l,refCallback:i,activeChipId:o})=>{let a=!!l,s=()=>{if(a)return null==l?void 0:l(e.url);(0,p.h)(f.D.chip,e.title,`${e.title}_${e.url}`)},c=(0,t.jsxs)(t.Fragment,{children:[e.icon&&(0,t.jsx)("span",{className:x.icon,"aria-hidden":"true",children:e.icon}),(0,t.jsx)("span",{className:x.label,children:e.title}),e.arrow&&(0,t.jsx)(E,{size:24})]}),u=(0,r.default)(x.chip,{[x.hidden]:n,[N.new]:!!e.new,[N.vip]:!!e.vip,[x.active]:e.url===o});return a?(0,t.jsx)("button",{type:"button",className:u,onClick:s,ref:i,children:c}):(0,t.jsx)("a",{href:e.url,className:u,onClick:s,ref:i,children:c})};e.s(["N",0,({items:e=[],maxNumberOfLines:l,variant:i,className:o,activeChipId:a,onClick:s,moreButtonOptions:c})=>{let u=(0,n.useRef)(null),d=(0,n.useRef)(null),m=(0,n.useRef)({}),h=(null==c?void 0:c.label)??"Еще",v="Еще",g=(null==c?void 0:c.showIcon)??!0,b=(0,r.default)(x.chip,x.more,null==c?void 0:c.className),[y,_]=(0,n.useState)(!1),[C,E]=(0,n.useState)(e.length),[k,N]=(0,n.useState)(!1);(0,n.useMemo)(()=>{let t=m.current;e.forEach(e=>{e.url in t||(t[e.url]=null)}),Object.keys(t).forEach(n=>{e.find(e=>String(e.url)===String(n))||delete t[n]})},[e]);let $=(0,n.useCallback)(()=>{let t=u.current;if(!t)return;let n=e=>e?e.getBoundingClientRect().width:0,r=n(t),i=Math.max(Number(l)||0,0),o=()=>{E(e.length),N(!1)};if(y||0===i||r<=0)return void o();let a=(()=>{try{let e=getComputedStyle(t),n=parseFloat(e.columnGap||e.gap||"12");return Number.isNaN(n)?12:n}catch{return 12}})(),s=n(d.current),c=e.map(e=>n(m.current[e.url]));if(c.some(e=>0===e))return void o();let f=1,p=0,h=0;for(let e of c){let t=f===i?s+a:0,n=0===p?e:p+a+e;if(n+t<=r-.5)p=n,h++;else{if(++f>i)break;p=e,h++}}N(h<e.length),E(h)},[y,e,l]);(0,n.useLayoutEffect)(()=>{let e=u.current;if(!e)return;let t=new ResizeObserver(()=>{requestAnimationFrame($)});return t.observe(e),requestAnimationFrame($),()=>{t.disconnect()}},[$]),(0,n.useEffect)(()=>{requestAnimationFrame($)},[$]);let j=y||(l??0)<=0||!k;return(0,t.jsx)("div",{className:(0,r.default)(o,x.wrapper,{[x.gray]:"gray"===i,[x.white]:"white"===i}),children:(0,t.jsxs)("div",{ref:u,className:x.container,children:[e.map((e,n)=>(0,t.jsx)(S,{chip:e,hidden:!j&&n>=C,activeChipId:a,onClick:s,refCallback:t=>{m.current[e.url]=t}},e.url)),!j&&k&&(0,t.jsxs)("button",{type:"button",ref:d,className:b,"aria-label":v,onClick:()=>{(0,p.h)(f.D.chip,v),_(!0)},children:[g&&(0,t.jsx)(w,{size:20}),(0,t.jsx)("span",{className:x.label,children:h})]}),(j||!k)&&(0,t.jsxs)("button",{type:"button",ref:d,className:(0,r.default)(b,x.hidden),tabIndex:-1,"aria-hidden":"true",children:[g&&(0,t.jsx)(w,{size:20}),(0,t.jsx)("span",{className:x.label,children:h})]})]})})},"s",0,N],11512)},89867,e=>{"use strict";var t=e.i(43476),n=e.i(71645);e.i(34348);var l=e.i(47611),r=e.i(60822),i=e.i(7670),o=e.i(85900),a=e.i(63687),s=e.i(71121),c=e.i(37536),u=e.i(44437),d=e.i(34650),f=e.i(22468),p=e.i(91784),m=e.i(96347),h=e.i(46381);e.i(881);var v=e.i(43748),g=e.i(53278);e.i(46401);var w=e.i(34986),b=e.i(65019),x=e.i(11512);let y={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},_={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function C(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let E=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M21.309 22.765a6.932 6.932 0 01-2.016.233c-1.156-.04-2.62-.39-3.927-1.58A9.985 9.985 0 0112 22a9.97 9.97 0 01-7.071-2.929A9.97 9.97 0 012 12C2 6.477 6.477 2 12 2s10 4.477 10 10a9.958 9.958 0 01-1.233 4.814c.07 1.607.354 2.81.617 3.606a7.784 7.784 0 00.424 1.04c.125.248.251.497.15.787-.103.296-.366.44-.65.52zM12 3.5a8.5 8.5 0 103.258 16.353.75.75 0 01.834.178c1.06 1.124 2.278 1.436 3.252 1.469.304.01.584-.007.824-.035a10.45 10.45 0 01-.208-.574c-.317-.96-.641-2.374-.7-4.237a.75.75 0 01.1-.4A8.5 8.5 0 0012 3.5zm-4.209 7.794a1 1 0 10.003-.002l-.003.002zm3.5 0a1 1 0 10.003-.002l-.003.002zm3.502 1.414a1 1 0 01-.002-1.414l.003-.002a1 1 0 110 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function k({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...y,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&C(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(E,{viewBox:"0 0 24 24",style:_}))}k.displayName="IconFdsChatDotsCircleO";let N=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"fds-chat-dots-square-add-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),n.createElement("g",{clipPath:"url(#fds-chat-dots-square-add-o_svg__a)"},n.createElement("path",{d:"M18.25 5.75V8c0 .42.33.75.75.75s.75-.33.75-.75V5.75H22c.42 0 .75-.33.75-.75s-.33-.75-.75-.75h-2.25V2c0-.42-.33-.75-.75-.75s-.75.33-.75.75v2.25H16c-.42 0-.75.33-.75.75s.33.75.75.75h2.25zm-4.546-2.23c-.259-.014-.827-.02-1.704-.02-.676 0-1.129.002-1.358.007a7.963 7.963 0 00-.779.047 7.246 7.246 0 00-2.328.689 7.204 7.204 0 00-4.028 6.4c-.005.228-.007.68-.007 1.357 0 .671.002 1.121.007 1.349.007.324.023.584.047.778.057.474.158.933.303 1.378v.001a7.17 7.17 0 001.76 2.867 7.169 7.169 0 002.92 1.777 7.436 7.436 0 002.108.341c.228.006.68.009 1.355.009.67 0 1.12-.003 1.346-.009a7.12 7.12 0 00.794-.057c.476-.05.96-.162 1.455-.333a.71.71 0 01.685.102c.662.48 1.32.829 1.976 1.047a4.85 4.85 0 001.482.264c.142.002.278-.004.41-.016a10.758 10.758 0 01-.222-.535c-.45-1.164-.676-2.305-.676-3.423a.74.74 0 01.116-.401 7.211 7.211 0 001.08-3.01c.024-.196.04-.456.047-.78.005-.228.007-.678.007-1.349 0-.214.002-.488.006-.822.003-.22.004-.376.004-.468 0-.42.33-.75.75-.75s.75.33.75.75c0 .098-.001.26-.004.486A70.38 70.38 0 0022 12c0 .682-.003 1.142-.008 1.381a9.337 9.337 0 01-.058.93 8.752 8.752 0 01-.393 1.737 8.757 8.757 0 01-.788 1.7c.026.866.217 1.757.571 2.674a8.847 8.847 0 00.6 1.249c.11.224.136.42.078.587-.057.168-.198.306-.423.416-.139.068-.32.13-.543.189a5 5 0 01-1.316.15 6.336 6.336 0 01-1.94-.34 8.598 8.598 0 01-2.064-1.035c-.471.14-.939.236-1.402.286a8.23 8.23 0 01-.93.067c-.24.006-.701.009-1.384.009-.688 0-1.152-.003-1.392-.009a8.222 8.222 0 01-.937-.067 8.672 8.672 0 01-3.989-1.538 8.707 8.707 0 01-2.077-2.078 8.705 8.705 0 01-1.597-4.927A78.972 78.972 0 012 12c0-.687.003-1.15.008-1.39.008-.376.027-.686.057-.93a8.737 8.737 0 01.832-2.806 8.69 8.69 0 013.977-3.977 8.7 8.7 0 012.803-.831c.246-.03.557-.05.933-.058C10.85 2.003 11.313 2 12 2c.902 0 1.495.007 1.779.021.42.021.732.367.712.787a.743.743 0 01-.787.711zm-5.91 9.19a1 1 0 111.412-1.414 1 1 0 01-1.413 1.415zm3.497-1.412a1 1 0 101.418 1.41 1 1 0 00-1.418-1.41zm3.502 1.413a1 1 0 111.414-1.415 1 1 0 01-1.414 1.415z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function S({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...y,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&C(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(N,{viewBox:"0 0 24 24",style:_}))}S.displayName="IconFdsChatDotsSquareAddO";let $=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M19.03 10.28l-6.5 6.5a.75.75 0 01-1.06 0l-6.5-6.5a.75.75 0 111.06-1.06L12 15.19l5.97-5.97a.75.75 0 111.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function j({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...y,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&C(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement($,{viewBox:"0 0 24 24",style:_}))}j.displayName="IconFdsChevronDownO";let R=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function O({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...y,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&C(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(R,{viewBox:"0 0 24 24",style:_}))}O.displayName="IconFdsCloseO";let T=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"fds-menu-skewed-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24.001H0z"}))),n.createElement("g",{clipPath:"url(#fds-menu-skewed-o_svg__a)"},n.createElement("path",{d:"M7.75 5a.75.75 0 100 1.5h13.5a.75.75 0 100-1.5H7.75zM22 12a.75.75 0 00-.75-.75H2.75a.75.75 0 100 1.5h18.5A.75.75 0 0022 12zm-5.75 5.5a.75.75 0 110 1.5H2.75a.75.75 0 110-1.5h13.5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function A({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...y,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&C(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(T,{viewBox:"0 0 24 24",style:_}))}A.displayName="IconFdsMenuSkewedO";let I=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M6.999 7a5 5 0 1110 0 5 5 0 01-10 0zm5-3.5a3.5 3.5 0 100 7 3.5 3.5 0 000-7zM10.012 14h3.974c1.52 0 2.497 0 3.345.337a4.75 4.75 0 011.916 1.402c.579.705.875 1.636 1.335 3.085l.05.159.332 1.04a.75.75 0 11-1.43.455l-.33-1.04c-.53-1.664-.744-2.293-1.117-2.748a3.249 3.249 0 00-1.31-.959c-.547-.217-1.212-.23-2.958-.23h-3.64c-1.746 0-2.41.013-2.957.23a3.249 3.249 0 00-1.311.959c-.373.454-.587 1.084-1.116 2.748l-.331 1.04a.75.75 0 11-1.43-.455l.331-1.04.05-.159c.461-1.449.757-2.38 1.336-3.086a4.752 4.752 0 011.916-1.4C7.515 14 8.492 14 10.012 14z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function L({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...y,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&C(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(I,{viewBox:"0 0 24 24",style:_}))}L.displayName="IconFdsUserO";let z=()=>{let e=(0,n.useRef)(null),t=(0,n.useCallback)(()=>{e.current&&(clearTimeout(e.current),e.current=null)},[]),l=(0,n.useCallback)((t,n)=>{e.current&&clearTimeout(e.current),e.current=setTimeout(()=>{e.current=null,t()},n)},[]);return(0,n.useEffect)(()=>t,[t]),{start:l,clear:t,pending:!!e.current}},P={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},M={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function B(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let F=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M11.28 17.03l4.5-4.5a.75.75 0 000-1.06l-4.5-4.5a.75.75 0 10-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 101.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function D({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...P,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&B(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(F,{viewBox:"0 0 24 24",style:M}))}D.displayName="IconFdsChevronRightSmallO";let H=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function W({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...P,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&B(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(H,{viewBox:"0 0 24 24",style:M}))}W.displayName="IconFdsCloseO";let U=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},n.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),n.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),n.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},n.createElement("path",{d:"M22.23 14.65c0 .03 0 .11-.02.13-.03.4-.06.69-.06.71 0 .03 0 .07-.01.11-.01.07-.03.17-.04.24-.18.84-.65 1.8-1.23 2.49-.23.27-.47.51-.72.7l-.77.55c-.7.48-1.41.93-2.14 1.37-1.52.89-2.89 1.52-3.07 1.6-.39.18-.9.31-1.43.37-.1.01-.21.02-.31.02-.09.01-.19.01-.28.01h-.14c-.71-.02-1.37-.16-1.88-.39-.07-.04-1.35-.62-2.83-1.47-.09-.04-.17-.09-.26-.14a39.02 39.02 0 01-2.91-1.92c-.39-.29-.75-.67-1.07-1.14-.07-.11-.07-.38.24-.38h.79c.34 0 .42.21.81.49.42.31 1.25.94 2.8 1.85.84.49 1.7.95 2.58 1.36.01 0 .09.05.1.05l.28.13c.35.17.85.26 1.38.27h.2c.16 0 .32-.01.46-.03.32-.04.61-.11.85-.21l.11-.05c1.75-.81 3.42-1.77 5-2.86.44-.31.71-.52.72-.52.2-.15.4-.34.58-.58.47-.6.85-1.42.92-2.05 0 0 .03-.26.06-.69l.01-.14c0-.04.01-.08.01-.12.01-.02.01-.08.01-.11 0-.05.01-.11.01-.16l.01-.11c.01-.04.01-.07.01-.12.07-1.23.07-2.55 0-3.79-.01-.04-.01-.16-.01-.2-.01-.03-.01-.08-.01-.11 0-.05-.01-.1-.01-.16l-.01-.11c0-.04-.01-.07-.01-.12-.01-.03-.01-.11-.01-.14-.03-.43-.06-.67-.06-.68-.07-.64-.45-1.46-.92-2.06a3.18 3.18 0 00-.58-.58c-.9-.66-1.83-1.28-2.79-1.84-.97-.57-1.95-1.09-2.97-1.56-.24-.1-.6-.2-.92-.24-.14-.02-.3-.03-.46-.03h-.2c-.53.01-1.03.12-1.38.27 0 0-.08.03-.21.09-.01 0-.09.06-.1.06-.5.23-1.54.74-2.64 1.4-1.54.91-2.38 1.53-2.8 1.84-.39.28-.47.49-.81.49h-.8c-.31 0-.31-.27-.24-.38.32-.48.68-.86 1.07-1.15.94-.68 1.91-1.33 2.91-1.92 1.57-.92 3.01-1.58 3.09-1.61.52-.24 1.17-.37 1.89-.38h.14c.1 0 .19.01.28.01.11 0 .21.01.31.02.53.05 1.02.17 1.42.35.18.08 1.56.71 3.08 1.62 1 .58 1.98 1.22 2.91 1.91.25.19.49.43.72.7.58.69 1.04 1.62 1.22 2.46.02.06.04.17.05.24 0 .03.01.1.01.14.01.02.03.27.06.67 0 .05.01.12.01.16.01.02.01.09.01.11l.08 1.39c.01.37.02.8.02 1.21l-.02 1.16c-.02.54-.05 1.12-.09 1.5zM9.86 10.21c-.16.07-.52.09-.72.09-.47 0-.69-.13-.69-.83 0-.57.06-.83.69-.83.17 0 .33.02.53.08l.32-.56c-.29-.09-.61-.18-.91-.19-.96 0-1.39.46-1.39 1.49s.43 1.5 1.39 1.5c.24 0 .73-.05.96-.15l-.18-.6zM5.87 7.98c-.95 0-1.32.42-1.32 1.47 0 1.06.37 1.48 1.32 1.48.97 0 1.34-.42 1.34-1.48 0-1.05-.37-1.47-1.34-1.47zm-3.49.09l-.04 2.77.7.04.04-2.16h1.03c.08-.19.19-.4.27-.6l-2-.05zm3.49 2.26c-.43 0-.57-.12-.57-.86 0-.79.15-.86.57-.86.44 0 .58.07.58.86 0 .73-.13.86-.58.86zm1.63 3.99c-.17.06-.52.08-.73.08-.46 0-.68-.12-.68-.83 0-.57.07-.83.68-.83.18 0 .33.02.54.09l.31-.56c-.28-.09-.6-.19-.9-.19-.96 0-1.4.46-1.4 1.48 0 1.04.44 1.51 1.4 1.51.24 0 .73-.06.95-.15l-.17-.6zm3.05-2.15H8.51c-.05.93-.27 1.94-.51 2.75l.73.04c.2-.62.39-1.45.45-2.13h.66v2.1l.71.04v-2.8zm5.75 0h-1.96l-.04 2.77.7.04.04-2.15h1.03c.08-.19.14-.46.23-.66zm2.84 0h-.67l-.04 2.15c-.14.04-.29.06-.45.06-.44 0-.54-.13-.54-.71v-1.46l-.71-.04-.04 1.57c0 .95.32 1.32 1.14 1.32.47 0 1-.13 1.31-.24v-2.65zm-14.06.01h-.67c-.1.42-.35 1.15-.64 1.89l-.68-1.87-.71-.02.98 2.83c-.09.19-.18.38-.29.56-.07.13-.13.25-.19.39l.76.05c.16-.3.33-.62.46-.93.43-1.02.72-2.03.98-2.9zm8.73 0h-.67c-.11.43-.36 1.15-.65 1.89l-.67-1.87-.72-.02.99 2.83c-.09.19-.19.38-.29.56-.07.13-.14.25-.2.39l.77.05c.15-.3.32-.62.46-.93.42-1.02.72-2.03.98-2.9z",fill:"url(#fds-gosuslugi-colored-o_svg__b)",fillRule:"evenodd"})));function V({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...P,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&B(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(U,{viewBox:"0 0 24 24",style:M}))}V.displayName="IconFdsGosuslugiColoredO";let q=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 01-.792-.002 13.032 13.032 0 01-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 004.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 00.03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function G({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...P,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&B(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(q,{viewBox:"0 0 24 24",style:M}))}G.displayName="IconFdsShieldCheckO";let Y={"uat-mp.beta.moex.com":"//chat-marketplace.beta.moex.com","finuslugi.ru":"//chat.finuslugi.ru","dev-rc.beta.moex.com":"//dev-opbot.tech.finuslugi.ru"},J=(0,n.createContext)({isAuth:!1,isHeaderHidden:!1,isHeaderTransparent:!1,openedBlock:null,setOpenedBlock:()=>null,openedSection:null,setOpenedSection:()=>null,isNavigationOpen:!1,isNavigationMounted:!1,navMenuItemsRef:{current:null},navigationRef:{current:null},ignoreClicks:!1,setIgnoreClicks:()=>null,isChatModalOpen:!1,setIsChatModalOpen:()=>null,isChatLoading:!1,fixedContainerRef:{current:null},headerRef:{current:null}});function K(){return(0,n.useContext)(J)}let Q=e=>{let[l,r]=(0,n.useState)(!1),[i,o]=(0,n.useState)(!1),[a,s]=(0,n.useState)(!!e.isMainBannerPage),{isChatModalOpen:d,setIsChatModalOpen:f,isChatLoading:p}=(()=>{let[e,t]=(0,n.useState)(!1),[l,r]=(0,n.useState)(!1),i=(0,n.useRef)(!1),o=e=>{i.current=e,r(e)};return(0,n.useEffect)(()=>{if(typeof window>"u")return;let e=(()=>{let{hostname:e}=window.location;return Object.prototype.hasOwnProperty.call(Y,e)?Y[e]:Y["finuslugi.ru"]})(),n="webchat_main";window.supportWidget={craftTalk:{isOpened:!1,setConfig:t=>{if(t.host&&(e=t.host),t.channel&&(n=t.channel),t.user){let e="function"==typeof t.user?t.user:()=>({...t.user});window.__WebchatUserCallback=e}},open:()=>new Promise(e=>{e()}),close:()=>null,toggle:()=>null}};let l=null;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.open=()=>new Promise((r,a)=>{var s,c;let u,d;i.current?a(Error("chat is already opened")):l?(l.openWidget(),t(!1),r()):(o(!0),window.getWebChatCraftTalkExternalControl=e=>{var n;l=e;let i=document.querySelector(".webchat");i&&new MutationObserver(e=>{e.forEach(e=>{if("style"===e.attributeName){let e=document.querySelector(".webchat"),t=!!e&&"none"!==e.style.display;window.supportWidget&&window.supportWidget.craftTalk&&(window.supportWidget.craftTalk.isOpened=t)}})}).observe(i,{attributes:!0,attributeFilter:["style"]}),null!=(n=window.supportWidget)&&n.craftTalk&&(window.supportWidget.craftTalk.close=l.closeWidget),null==l||l.openWidget(),o(!1),t(!1),r()},s=e,c=n,(u=document.createElement("link")).rel="stylesheet",u.type="text/css",u.href=`${s}/assets/css/${c}`,document.head.appendChild(u),(d=document.createElement("script")).src=`${s}/get-bootstrap/${c}`,d.defer=!0,document.body.appendChild(d))}),window.supportWidget.craftTalk.toggle=()=>{var e,t,n,l;null!=(t=null==(e=window.supportWidget)?void 0:e.craftTalk)&&t.isOpened?window.supportWidget.craftTalk.close():null==(l=null==(n=window.supportWidget)?void 0:n.craftTalk)||l.open()})},[]),{isChatModalOpen:e,setIsChatModalOpen:t,isChatLoading:l}})(),[m,h]=(0,n.useState)(null),[v,g]=(0,n.useState)(null),[w,b]=(0,n.useState)(!1),[x,y]=(0,n.useState)(!1),[_,C]=(0,n.useState)(!1),E=(0,n.useRef)(null),k=(0,c.u)(w),N=(0,n.useRef)(null),S=(0,n.useRef)(null),$=(0,n.useRef)(null),j=(0,n.useRef)(null),R=(0,n.useCallback)(()=>{k.current&&k.current.scrollTo({top:0})},[k]),O=(0,n.useCallback)(e=>{g(e),R()},[R]),T=(0,n.useCallback)(e=>{N.current&&clearTimeout(N.current),e&&y(!0),e||(N.current=setTimeout(()=>{y(!1),O(null)},300))},[O]),A=(0,n.useCallback)((e,t,n)=>{if(t&&O(t),!n&&e===m||!e){T(!w),b(!w);return}h(e),T(!0),b(!0)},[m,O,w,T]),I=(0,n.useCallback)(()=>{S.current&&clearTimeout(S.current),C(!0),S.current=setTimeout(()=>{C(!1)},650)},[]);return(0,n.useEffect)(()=>{r(!!document.cookie.includes("auth.gtm_customer_id"));let t=(0,u.s)(o,s,e.isMainBannerPage);return(0,u.i)(),t},[]),(0,t.jsx)("header",{children:(0,t.jsx)(J.Provider,{value:{isAuth:l,isHeaderHidden:i,isHeaderTransparent:a,openedBlock:m,setOpenedBlock:A,openedSection:v,setOpenedSection:O,isNavigationOpen:w,isNavigationMounted:x,navMenuItemsRef:E,navigationRef:k,ignoreClicks:_,setIgnoreClicks:I,isChatModalOpen:d,setIsChatModalOpen:f,isChatLoading:p,fixedContainerRef:$,headerRef:j},children:e.children})})},X=(0,f.g)("certificates-warning-banner","sc"),Z=(0,f.g)("certificates-warning-popup","sc"),ee=Object.freeze({wrapper:`${X}`,container:`${X}__container`,content:`${X}__content`,info:`${X}__info`,image:`${X}__image`,text:`${X}__text`,title:`${X}__title`,description:`${X}__description`,details:`${X}__details`,buttons:`${X}__buttons`,button:`${X}__button`,closeButton:`${X}__close-button`,mobileActivator:`${X}__mobile-activator`}),et=Object.freeze({modal:`${Z}__modal`,desktopCloseButton:`${Z}__desktop-close-button`,mobilePopup:`${Z}__mobile-popup`,mobileContentContainer:`${Z}__mobile-content-container`,mobileCloseButton:`${Z}__mobile-close-button`,mobileDialog:`${Z}__mobile-dialog`,content:`${Z}__content`,image:`${Z}__image`,text:`${Z}__text`,title:`${Z}__title`,description:`${Z}__description`,actions:`${Z}__actions`,primaryActions:`${Z}__primary-actions`,divider:`${Z}__divider`,explanation:`${Z}__explanation`,button:`${Z}__button`,gosuslugiButton:`${Z}__gosuslugi-button`,gosuslugiIcon:`${Z}__gosuslugi-icon`}),en="fu_certificates_access_confirmed",el="fu_certificates_banner_dismissed",er="fu_external_link_warning_shown",ei={bannerShown:{eventActionType:a.D.show,eventActionText:"certificates_banner"},bannerDetails:{eventActionType:a.D.banner,eventActionText:"certificates_details"},bannerInstall:{eventActionType:a.D.button,eventActionText:"certificates_banner_install"},bannerYandex:{eventActionType:a.D.button,eventActionText:"certificates_banner_yandex"},bannerClose:{eventActionType:a.D.icon,eventActionText:"certificates_banner_close"},popupShown:{eventActionType:a.D.popup,eventActionText:"certificates_warning"},popupInstall:{eventActionType:a.D.button,eventActionText:"certificates_popup_install"},popupYandex:{eventActionType:a.D.button,eventActionText:"certificates_popup_yandex"},popupContinue:{eventActionType:a.D.button,eventActionText:"certificates_popup_continue"},popupCloseButton:{eventActionType:a.D.icon,eventActionText:"certificates_popup_close"},popupClosed:{eventActionType:a.D.close,eventActionText:"certificates_popup"}},eo=(e,t,n)=>{let l="banner"===t.source?"":`;host=${t.host}`;try{(0,a.h)({eventCategory:d.H,...ei[e],eventLabel:`source=${t.source};layout=${n?"desktop":"mobile"}${l}`})}catch{}},ea=["--banner-header-height","--fixed-header-height","--new-header-height-desktop","--new-header-height-mobile","--static-new-header-height-mobile","--static-new-header-height-desktop","--header-height"],es=({onDismiss:e,onClosed:i,onOpenDetails:o,onOpenCertificatesPage:a,onOpenYandexBrowserPage:c})=>{let{fixedContainerRef:f,headerRef:p}=K(),m=(0,s.useBreakpointUp)("l"),h=(0,n.useRef)(null),v=(0,n.useRef)(!1),g=(0,n.useRef)(!1),w=(0,n.useRef)(!1),[b,x]=(0,n.useState)(!1),[y,_]=(0,n.useState)(!1);(0,n.useEffect)(()=>{g.current||(g.current=!0,eo("bannerShown",{source:"banner"},m))},[m]);let C=(e,t)=>()=>{eo(e,{source:"banner"},m),t()},E=(0,n.useCallback)(()=>{let e=h.current,t=f.current;if(!e||!t)return;let n=e.getBoundingClientRect().height,l=n+(window.innerWidth<768?d.F.mobile:d.F.desktop),r=document.documentElement.style;r.setProperty("--banner-header-height",`${n}px`),r.setProperty("--fixed-header-height",`${l}px`),r.setProperty("--new-header-height-desktop",`${l}px`),r.setProperty("--new-header-height-mobile",`${l}px`),r.setProperty("--static-new-header-height-mobile",`${l}px`),r.setProperty("--static-new-header-height-desktop",`${l}px`),r.setProperty("--header-height",`${n+108}px`),t.style.transform=v.current?"translateY(0)":`translateY(-${n}px)`,window.dispatchEvent(new Event(u.H))},[f]),k=(0,n.useCallback)(()=>{let e=f.current;ea.forEach(e=>document.documentElement.style.removeProperty(e)),e&&(e.style.transform=""),window.dispatchEvent(new Event(u.H))},[f]),N=(0,n.useCallback)(()=>{let e=f.current;if(!e)return;let t=window.innerWidth<768?d.F.mobile:d.F.desktop,n=document.documentElement.style;n.setProperty("--fixed-header-height",`${t}px`),n.setProperty("--new-header-height-desktop",`${t}px`),n.setProperty("--new-header-height-mobile",`${t}px`),n.setProperty("--static-new-header-height-mobile",`${t}px`),n.setProperty("--static-new-header-height-desktop",`${t}px`),n.setProperty("--header-height","108px"),e.style.transform="",window.dispatchEvent(new Event(u.H))},[f]);return(0,n.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{_(!1),b&&i()};return e.addEventListener("transitionend",t),()=>e.removeEventListener("transitionend",t)},[p,b,i]),(0,n.useLayoutEffect)(()=>{var e;let t=h.current;if(!t)return;E();let n=window.matchMedia("(prefers-reduced-motion: reduce)").matches,l=null;n?(v.current=!0,null==(e=f.current)||e.style.setProperty("transform","translateY(0)")):l=window.requestAnimationFrame(()=>{var e;v.current=!0,null==(e=f.current)||e.style.setProperty("transform","translateY(0)"),_(!0)});let r=new ResizeObserver(E);return r.observe(t),window.addEventListener("resize",E),()=>{null!==l&&window.cancelAnimationFrame(l),r.disconnect(),window.removeEventListener("resize",E),k()}},[k,E]),(0,t.jsxs)("div",{id:"headerNotice",ref:h,role:"region","aria-label":"Сертификаты Минцифры","data-opening":y,className:ee.wrapper,children:[(0,t.jsx)("button",{className:ee.mobileActivator,type:"button","aria-label":"Подробнее о сертификатах Минцифры",onClick:C("bannerDetails",o)}),(0,t.jsx)(r.Container,{children:(0,t.jsxs)("div",{className:ee.container,children:[(0,t.jsxs)("div",{className:ee.content,children:[(0,t.jsxs)("div",{className:ee.info,children:[(0,t.jsx)("div",{className:ee.image,children:(0,t.jsx)(G,{size:32})}),(0,t.jsxs)("div",{className:ee.text,children:[(0,t.jsx)("h2",{className:ee.title,children:"Для работы российских сайтов нужны сертификаты Минцифры"}),(0,t.jsx)("p",{className:ee.description,children:"Установите их, чтобы пользоваться всеми функциями сайта и оплачивать услуги без сбоев. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"}),(0,t.jsxs)("span",{className:ee.details,children:["Подробнее",(0,t.jsx)(D,{size:16})]})]})]}),(0,t.jsxs)("div",{className:ee.buttons,children:[(0,t.jsx)(l.Button,{className:ee.button,label:"Установить сертификаты",iconLeft:(0,t.jsx)(V,{size:16}),size:"xs",variant:"white",onClick:C("bannerInstall",a)}),(0,t.jsx)(l.Button,{className:ee.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,t.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/widgets/CertificatesWarning/yandex-browser.svg",alt:"",loading:"lazy"}),size:"xs",variant:"white",appearance:"outline",onClick:C("bannerYandex",c)})]})]}),(0,t.jsx)("button",{className:ee.closeButton,type:"button","aria-label":"Закрыть",onClick:()=>{if(!w.current){if(w.current=!0,eo("bannerClose",{source:"banner"},m),e(),window.matchMedia("(prefers-reduced-motion: reduce)").matches){k(),i();return}N(),x(!0)}},children:(0,t.jsx)(W,{size:24})})]})})]})},ec={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eu={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},ed=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function ef({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...ec,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(ed,{viewBox:"0 0 24 24",style:eu}))}ef.displayName="IconFdsCloseO";let ep={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},em={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function eh(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let ev=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("linearGradient",{x1:12.343,y1:1,x2:12.343,y2:22.951,id:"fds-gosuslugi-colored-o_svg__b",gradientUnits:"userSpaceOnUse"},n.createElement("stop",{offset:.329,stopColor:"#0F67B1"}),n.createElement("stop",{offset:.636,stopColor:"#EF3E58"})),n.createElement("clipPath",{id:"fds-gosuslugi-colored-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#fds-gosuslugi-colored-o_svg__a)"},n.createElement("path",{d:"M22.23 14.65c0 .03 0 .11-.02.13-.03.4-.06.69-.06.71 0 .03 0 .07-.01.11-.01.07-.03.17-.04.24-.18.84-.65 1.8-1.23 2.49-.23.27-.47.51-.72.7l-.77.55c-.7.48-1.41.93-2.14 1.37-1.52.89-2.89 1.52-3.07 1.6-.39.18-.9.31-1.43.37-.1.01-.21.02-.31.02-.09.01-.19.01-.28.01h-.14c-.71-.02-1.37-.16-1.88-.39-.07-.04-1.35-.62-2.83-1.47-.09-.04-.17-.09-.26-.14a39.02 39.02 0 01-2.91-1.92c-.39-.29-.75-.67-1.07-1.14-.07-.11-.07-.38.24-.38h.79c.34 0 .42.21.81.49.42.31 1.25.94 2.8 1.85.84.49 1.7.95 2.58 1.36.01 0 .09.05.1.05l.28.13c.35.17.85.26 1.38.27h.2c.16 0 .32-.01.46-.03.32-.04.61-.11.85-.21l.11-.05c1.75-.81 3.42-1.77 5-2.86.44-.31.71-.52.72-.52.2-.15.4-.34.58-.58.47-.6.85-1.42.92-2.05 0 0 .03-.26.06-.69l.01-.14c0-.04.01-.08.01-.12.01-.02.01-.08.01-.11 0-.05.01-.11.01-.16l.01-.11c.01-.04.01-.07.01-.12.07-1.23.07-2.55 0-3.79-.01-.04-.01-.16-.01-.2-.01-.03-.01-.08-.01-.11 0-.05-.01-.1-.01-.16l-.01-.11c0-.04-.01-.07-.01-.12-.01-.03-.01-.11-.01-.14-.03-.43-.06-.67-.06-.68-.07-.64-.45-1.46-.92-2.06a3.18 3.18 0 00-.58-.58c-.9-.66-1.83-1.28-2.79-1.84-.97-.57-1.95-1.09-2.97-1.56-.24-.1-.6-.2-.92-.24-.14-.02-.3-.03-.46-.03h-.2c-.53.01-1.03.12-1.38.27 0 0-.08.03-.21.09-.01 0-.09.06-.1.06-.5.23-1.54.74-2.64 1.4-1.54.91-2.38 1.53-2.8 1.84-.39.28-.47.49-.81.49h-.8c-.31 0-.31-.27-.24-.38.32-.48.68-.86 1.07-1.15.94-.68 1.91-1.33 2.91-1.92 1.57-.92 3.01-1.58 3.09-1.61.52-.24 1.17-.37 1.89-.38h.14c.1 0 .19.01.28.01.11 0 .21.01.31.02.53.05 1.02.17 1.42.35.18.08 1.56.71 3.08 1.62 1 .58 1.98 1.22 2.91 1.91.25.19.49.43.72.7.58.69 1.04 1.62 1.22 2.46.02.06.04.17.05.24 0 .03.01.1.01.14.01.02.03.27.06.67 0 .05.01.12.01.16.01.02.01.09.01.11l.08 1.39c.01.37.02.8.02 1.21l-.02 1.16c-.02.54-.05 1.12-.09 1.5zM9.86 10.21c-.16.07-.52.09-.72.09-.47 0-.69-.13-.69-.83 0-.57.06-.83.69-.83.17 0 .33.02.53.08l.32-.56c-.29-.09-.61-.18-.91-.19-.96 0-1.39.46-1.39 1.49s.43 1.5 1.39 1.5c.24 0 .73-.05.96-.15l-.18-.6zM5.87 7.98c-.95 0-1.32.42-1.32 1.47 0 1.06.37 1.48 1.32 1.48.97 0 1.34-.42 1.34-1.48 0-1.05-.37-1.47-1.34-1.47zm-3.49.09l-.04 2.77.7.04.04-2.16h1.03c.08-.19.19-.4.27-.6l-2-.05zm3.49 2.26c-.43 0-.57-.12-.57-.86 0-.79.15-.86.57-.86.44 0 .58.07.58.86 0 .73-.13.86-.58.86zm1.63 3.99c-.17.06-.52.08-.73.08-.46 0-.68-.12-.68-.83 0-.57.07-.83.68-.83.18 0 .33.02.54.09l.31-.56c-.28-.09-.6-.19-.9-.19-.96 0-1.4.46-1.4 1.48 0 1.04.44 1.51 1.4 1.51.24 0 .73-.06.95-.15l-.17-.6zm3.05-2.15H8.51c-.05.93-.27 1.94-.51 2.75l.73.04c.2-.62.39-1.45.45-2.13h.66v2.1l.71.04v-2.8zm5.75 0h-1.96l-.04 2.77.7.04.04-2.15h1.03c.08-.19.14-.46.23-.66zm2.84 0h-.67l-.04 2.15c-.14.04-.29.06-.45.06-.44 0-.54-.13-.54-.71v-1.46l-.71-.04-.04 1.57c0 .95.32 1.32 1.14 1.32.47 0 1-.13 1.31-.24v-2.65zm-14.06.01h-.67c-.1.42-.35 1.15-.64 1.89l-.68-1.87-.71-.02.98 2.83c-.09.19-.18.38-.29.56-.07.13-.13.25-.19.39l.76.05c.16-.3.33-.62.46-.93.43-1.02.72-2.03.98-2.9zm8.73 0h-.67c-.11.43-.36 1.15-.65 1.89l-.67-1.87-.72-.02.99 2.83c-.09.19-.19.38-.29.56-.07.13-.14.25-.2.39l.77.05c.15-.3.32-.62.46-.93.42-1.02.72-2.03.98-2.9z",fill:"url(#fds-gosuslugi-colored-o_svg__b)",fillRule:"evenodd"})));function eg({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...ep,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&eh(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(ev,{viewBox:"0 0 24 24",style:em}))}eg.displayName="IconFdsGosuslugiColoredO";let ew=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9.913 2.416A4.747 4.747 0 0111.855 2h.29c.67 0 1.331.142 1.943.416l5.287 2.373A2.752 2.752 0 0121 7.3v4.712c0 3.694-1.854 6.116-3.84 7.63-1.965 1.497-4.086 2.131-4.766 2.308a1.558 1.558 0 01-.792-.002 13.032 13.032 0 01-4.788-2.492C4.819 17.79 3 15.121 3 11.011V7.3c0-1.086.637-2.068 1.625-2.512l5.288-2.373zm1.942 1.086c-.458 0-.91.097-1.329.285L5.24 6.16A1.25 1.25 0 004.5 7.3v3.71c0 3.598 1.566 5.866 3.275 7.293 1.732 1.448 3.625 2.037 4.212 2.193a.058.058 0 00.03 0c.596-.155 2.497-.726 4.235-2.05 1.717-1.309 3.248-3.326 3.248-6.434V7.3a1.25 1.25 0 00-.739-1.14l-5.287-2.373a3.245 3.245 0 00-1.33-.285h-.289zM15.78 9.22a.75.75 0 010 1.06l-4 4a.75.75 0 01-1.06 0l-2-2a.75.75 0 111.06-1.06l1.47 1.47 3.47-3.47a.75.75 0 011.06 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eb({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...ep,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&eh(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(ew,{viewBox:"0 0 24 24",style:em}))}eb.displayName="IconFdsShieldCheckO";let ex=({onOpenCertificatesPage:e,onOpenYandexBrowserPage:r,onContinue:i})=>{let o=(0,n.useRef)(null),a=`certificates-warning-gosuslugi-${(0,n.useId)().replaceAll(":","")}`;return(0,n.useLayoutEffect)(()=>{var e,t;let n=null==(e=o.current)?void 0:e.querySelector("linearGradient"),l=null==(t=o.current)?void 0:t.querySelector('path[fill^="url("]');n&&l&&(n.id=a,l.setAttribute("fill",`url(#${a})`))},[a]),(0,t.jsxs)("div",{className:et.content,children:[(0,t.jsx)("div",{className:et.image,children:(0,t.jsx)(eb,{size:64})}),(0,t.jsxs)("div",{className:et.text,children:[(0,t.jsx)("h2",{className:et.title,children:"Установите сертификаты Минцифры"}),(0,t.jsx)("p",{className:et.description,children:"Без них российские сайты и оплата услуг могут не работать. Или откройте страницу через Яндекс Браузер — в него всё уже встроено"})]}),(0,t.jsxs)("div",{className:et.actions,children:[(0,t.jsxs)("div",{className:et.primaryActions,children:[(0,t.jsx)(l.Button,{className:`${et.button} ${et.gosuslugiButton}`,label:"Установить сертификаты",iconLeft:(0,t.jsx)("span",{ref:o,className:et.gosuslugiIcon,children:(0,t.jsx)(eg,{size:20})}),size:"m",stretch:!0,onClick:e}),(0,t.jsx)(l.Button,{className:et.button,label:"Открыть в Яндекс Браузере",iconLeft:(0,t.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/widgets/CertificatesWarning/yandex-browser.svg",alt:"",loading:"lazy",width:24,height:24}),size:"m",stretch:!0,variant:"secondary",onClick:r})]}),i&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.Divider,{className:et.divider}),(0,t.jsx)(l.Button,{className:et.button,label:"Продолжить в текущем браузере",size:"m",stretch:!0,variant:"secondary",appearance:"outline",onClick:i}),(0,t.jsx)("p",{className:et.explanation,children:"Можно продолжить и без установки. Браузер покажет предупреждение о незащищенном соединении — пропустите его и нажмите «Перейти на сайт»"})]})]})]})},ey=({isOpen:e,analyticsContext:l,onClose:r,onOpenCertificatesPage:i,onOpenYandexBrowserPage:o,onContinue:a})=>{let u=(0,s.useBreakpointUp)("l"),d=(0,n.useRef)(null),f=(0,n.useRef)(!1),m=(0,n.useRef)(!1),h=(0,n.useRef)(!1),v=(0,n.useRef)(l);(0,n.useEffect)(()=>(f.current=!0,()=>{f.current=!1}),[]),(0,n.useEffect)(()=>{if(v.current=e?l:null,!e){m.current=!1,h.current=!0;return}m.current||(h.current=!1,l&&(m.current=!0,eo("popupShown",l,u)))},[l,u,e]);let g=(0,n.useCallback)(()=>f.current&&e&&!h.current&&v.current===l,[l,e]),w=(0,n.useCallback)(()=>{g()&&(h.current=!0,l&&eo("popupClosed",l,u),r())},[l,g,u,r]),b=()=>{g()&&(l&&eo("popupCloseButton",l,u),w())},x=(e,t)=>()=>{g()&&(l&&eo(e,l,u),t())},y=(0,t.jsx)(ex,{onOpenCertificatesPage:x("popupInstall",i),onOpenYandexBrowserPage:x("popupYandex",o),onContinue:a?x("popupContinue",a):void 0});return(0,n.useEffect)(()=>{if(!e)return;let t=document.activeElement instanceof HTMLElement?document.activeElement:null,n=window.setTimeout(()=>{var e;if(!u){null==(e=d.current)||e.focus();return}let t=document.querySelector(`.${et.desktopCloseButton}`);null==t||t.focus()},120),l=e=>{u||"Escape"===e.key&&w()};return document.addEventListener("keydown",l),()=>{window.clearTimeout(n),document.removeEventListener("keydown",l),null==t||t.focus()}},[w,u,e]),u?(0,t.jsxs)(p.Modal,{className:et.modal,open:e,size:"m",noPadding:!0,header:{withoutCloseBtn:!0},"aria-label":"Установите сертификаты Минцифры",onClose:w,children:[(0,t.jsx)("button",{className:et.desktopCloseButton,type:"button","aria-label":"Закрыть",onClick:b,children:(0,t.jsx)(ef,{size:24})}),y]}):(0,t.jsx)(c.P,{children:(0,t.jsx)(c.U,{className:et.mobilePopup,contentClassName:et.mobileContentContainer,isOpen:e,isSmallPopup:!0,onClose:w,closeButton:(0,t.jsx)("button",{className:et.mobileCloseButton,type:"button","aria-label":"Закрыть",onClick:b,children:(0,t.jsx)(ef,{size:24})}),children:(0,t.jsx)("div",{ref:d,className:et.mobileDialog,role:"dialog","aria-modal":"true","aria-label":"Установите сертификаты Минцифры",tabIndex:-1,children:y})})})},e_=new Map,eC=e=>{if(typeof window>"u")return"1"===e_.get(e);try{return"1"===window.localStorage.getItem(e)||"1"===e_.get(e)}catch{return"1"===e_.get(e)}},eE=e=>{if(e_.set(e,"1"),!(typeof window>"u"))try{window.localStorage.setItem(e,"1")}catch{}},ek=(e,t)=>{if(!e)return null;try{let n,l,r=new URL(e.toString(),t.href);return"http:"!==r.protocol&&"https:"!==r.protocol||(n=r.hostname,l=t.hostname,n===l||"finuslugi.ru"===n||n.endsWith(".finuslugi.ru"))?null:r}catch{return null}},eN={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eS={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},e$=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M3 9.998a9 9 0 0118 0c0 2.08-.89 4.273-2.029 6.249-1.148 1.991-2.6 3.844-3.826 5.262a4.123 4.123 0 01-6.29 0c-1.227-1.418-2.678-3.271-3.826-5.262C3.889 14.27 3 12.077 3 9.998zm9-7.5a7.5 7.5 0 00-7.5 7.5c0 1.688.737 3.607 1.828 5.5 1.083 1.877 2.468 3.65 3.661 5.029 1.084 1.251 2.938 1.251 4.022 0 1.193-1.379 2.578-3.152 3.66-5.03 1.092-1.893 1.829-3.81 1.829-5.499a7.5 7.5 0 00-7.5-7.5zm-4 7.5a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function ej({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...eN,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(e$,{viewBox:"0 0 24 24",style:eS}))}ej.displayName="IconFdsLocationO";let eR={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eO={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function eT(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let eA=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("defs",null,n.createElement("clipPath",{id:"fds-close-circle-o_svg__a"},n.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),n.createElement("g",{clipPath:"url(#fds-close-circle-o_svg__a)"},n.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 1117 0 8.5 8.5 0 01-17 0zm12.28-2.72L13.06 12l2.72 2.72a.743.743 0 010 1.06.742.742 0 01-1.06 0L12 13.06l-2.72 2.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 8.22 9.28a.743.743 0 010-1.06.743.743 0 011.06 0L12 10.94l2.72-2.72a.743.743 0 011.06 0 .743.743 0 010 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})));function eI({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...eR,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&eT(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(eA,{viewBox:"0 0 24 24",style:eO}))}eI.displayName="IconFdsCloseCircleO";let eL=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.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 ez({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...eR,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&eT(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(eL,{viewBox:"0 0 24 24",style:eO}))}ez.displayName="IconFdsQuestionCircleO";let eP=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M10.5 2a8.5 8.5 0 105.456 15.018l4.763 4.762a.75.75 0 001.06-1.06l-4.762-4.763A8.5 8.5 0 0010.5 2zm-7 8.5a7 7 0 1114 0 7 7 0 01-14 0z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eM({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...eR,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&eT(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(eP,{viewBox:"0 0 24 24",style:eO}))}eM.displayName="IconFdsSearchO";let eB=(0,g.g)(),eF=(0,g.a)(eB),eD={regions:eB,towns:eF,region:null,town:null,startPopupVisible:!1,setStartPopupVisible:()=>null,popupVisible:!1,handleToggleModal:()=>null,selectCity:()=>null,handleButtonClick:()=>null,startRegion:null,startTown:null},eH=(0,n.createContext)(eD);function eW(){return(0,n.useContext)(eH)}let eU=(0,f.g)("city-select-modal-body","sc"),eV=Object.freeze({wrapper:`${eU}__wrapper`,subtitle:`${eU}__subtitle`,hintWrapper:`${eU}__hint-wrapper`,hintText:`${eU}__hint-text`,input:`${eU}__input`,chips:`${eU}__chips`,townsListWrapper:`${eU}__towns-list-wrapper`,townsList:`${eU}__towns-list`,townsGroup:`${eU}__towns-group`,townsGroupLabel:`${eU}__towns-group-label`,townsGroupList:`${eU}__towns-group-list`,townsName:`${eU}__towns-name`,regionName:`${eU}__region-name`}),eq=({groupedTowns:e,chips:l,query:r,setQuery:i,isDrawer:o})=>{var s;let c=eW(),u=(0,n.useRef)(null),[d,f]=(0,n.useState)("10000px");(0,n.useEffect)(()=>{if(!o||!u.current)return;let e=e=>e.reduce((e,t)=>e+t,0),t=(n,l)=>{let r=n.map(e=>[...e]),i=r.map(e),o=i.reduce((e,t,n)=>t<i[e]?n:e,0);0===o&&r[0].push(r[1].shift()),2===o&&r[2].unshift(r[1].pop()),1===o&&i[0]>i[2]&&r[1].unshift(r[0].pop()),1===o&&i[0]<i[2]&&r[1].push(r[2].shift());let a=Math.max(...r.map(e));return a>=l?l:t(r,a)};new ResizeObserver(()=>{var e;if(!(null!=(e=u.current)&&e.children))return;let n=Array.from(u.current.children,e=>e.offsetHeight+32);if(0===n.length)return;let l=0;try{l=t([[],n,[]],1/0)}catch{l=0}l>0&&f(`${l}px`)}).observe(u.current)},[]);let p=e=>{if((0,g.h)(a.D.button,(null==e?void 0:e.name)||"Вся Россия"),!(null!=e&&e.id))return c.selectCity();let t=c.regions.find(t=>t.id===Number(e.parentId))||null;c.selectCity(t,e)};return(0,t.jsxs)("div",{className:eV.wrapper,children:[(0,t.jsxs)("div",{className:eV.subtitle,children:["Покажем предложения рядом с вами",(0,t.jsxs)("div",{className:eV.hintWrapper,children:[(0,t.jsx)(ez,{size:24}),(0,t.jsx)("div",{className:eV.hintText,children:"Укажите свой город, чтобы увидеть предложения, доступные в вашем регионе"})]})]}),(0,t.jsx)(v.InputBase,{className:eV.input,value:r,onChange:i,size:"s",placeholder:"Введите название города",icon:r?(0,t.jsx)(eI,{size:24,onClick:()=>i("")}):(0,t.jsx)(eM,{size:24})}),(0,t.jsx)(h.Chips,{className:eV.chips,chips:l,value:(null==(s=c.town)?void 0:s.id)||0,onChipClick:e=>{p(c.towns.find(t=>t.id===e))}}),(0,t.jsx)("div",{className:eV.townsListWrapper,children:(0,t.jsx)("div",{ref:u,className:eV.townsList,style:{maxHeight:d},children:e.map(e=>(0,t.jsxs)("div",{className:eV.townsGroup,children:[(0,t.jsx)("div",{className:eV.townsGroupLabel,children:e.letter}),(0,t.jsx)("div",{className:eV.townsGroupList,children:e.towns.map(e=>(0,t.jsxs)("button",{type:"button",onClick:()=>p(e),children:[(0,t.jsx)("div",{className:eV.townsName,children:e.name}),(0,t.jsx)("div",{className:eV.regionName,children:e.parentName})]},e.id))})]},e.letter))})})]})},eG=[1095,1096,134,720,189,180],eY=()=>{var e;let l=eW(),r=(0,s.useBreakpointUp)("l"),[i,o]=(0,n.useState)(""),u=`Ваш выбор: ${(null==(e=l.town)?void 0:e.name)||"Вся Россия"}`,d=(0,n.useMemo)(()=>l.towns.filter(e=>-1!==String(e.name).toLocaleLowerCase().indexOf(i.toLocaleLowerCase())).sort((e,t)=>e.name.localeCompare(t.name)).reduce((e,t)=>{let n=e.pop();return n||(n={letter:t.name[0],towns:[]}),n.letter!==t.name[0]&&(e.push(n),n={letter:t.name[0],towns:[]}),n.towns.push(t),e.push(n),e},[]),[i,l.towns.length]),f=(0,n.useMemo)(()=>[{id:0,label:"Вся Россия"},...eG.map(e=>{let t=l.towns.find(t=>t.id===e);return{id:null==t?void 0:t.id,label:null==t?void 0:t.name}}).filter(e=>(null==e?void 0:e.id)!==void 0)],[l.towns.length]),p=()=>{(0,g.h)(a.D.button,"close"),l.handleToggleModal(!1)};return(0,t.jsxs)(c.P,{children:[!r&&(0,t.jsx)(c.U,{title:u,isOpen:l.popupVisible,onClose:p,full:!0,children:(0,t.jsx)(eq,{groupedTowns:d,chips:f,query:i,setQuery:o})}),r&&(0,t.jsx)(c.D,{title:u,isOpen:l.popupVisible,onClose:p,width:"856px",rowTitle:!0,titleAlign:"left",children:(0,t.jsx)(eq,{groupedTowns:d,chips:f,query:i,setQuery:o,isDrawer:!0})})]})},eJ=({label:e,onClick:n,eventActionText:r,eventLabel:i,...o})=>(0,t.jsx)(l.Button,{label:e,onClick:e=>{null==n||n(e),(0,a.h)({eventCategory:d.H,eventActionType:a.D.button,eventActionText:r||"",eventLabel:i||""})},...o}),eK={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},eQ={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},eX=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function eZ({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...eK,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(eX,{viewBox:"0 0 24 24",style:eQ}))}eZ.displayName="IconFdsCloseO";let e0=(0,f.g)("header-popup","sc"),e1=Object.freeze({popup:`${e0}__popup`,popupHeader:`${e0}__popup-header`,popupClose:`${e0}__popup-close`,body:`${e0}__body`}),e2=({isOpen:e,onClose:n,children:l,title:r})=>{let i=(0,s.useBreakpointUp)("l");return(0,t.jsxs)(c.P,{children:[!i&&(0,t.jsx)(c.U,{title:r,isOpen:e,onClose:n,children:l}),i&&e&&(0,t.jsxs)("div",{className:e1.popup,children:[(0,t.jsxs)("div",{className:e1.popupHeader,children:[r,(0,t.jsx)(eJ,{className:e1.popupClose,iconLeft:(0,t.jsx)(eZ,{}),shape:"icon",appearance:"ghost",size:"xs",onClick:n,eventActionText:"IconFdsCloseO"})]}),(0,t.jsx)("div",{className:e1.body,children:l})]})]})},e4=(0,f.g)("start-choice-popup","sc"),e7=Object.freeze({top:`${e4}__top`,progress:`${e4}__progress`,innerCircle:`${e4}__inner-circle`,title:`${e4}__title`,subtitle:`${e4}__subtitle`,actions:`${e4}__actions`}),e3=()=>{var e,l;let r=eW(),[i,o]=(0,n.useState)(10),[s,c]=(0,n.useState)(0),u=(0,n.useRef)(void 0),d=()=>{(0,g.h)(a.D.button,"close_choose_popup"),window.localStorage.setItem("auto_town",JSON.stringify(r.startTown)||""),window.localStorage.setItem("auto_region",JSON.stringify(r.startRegion)||""),r.setStartPopupVisible(!1)};return(0,n.useEffect)(()=>{let e,t,n,l;r.startPopupVisible?(t=1e3*(e=Number((" "+i).slice(1)))/100,n=0,l=0,u.current=setInterval(()=>{n++,l+=t,c(3.6*n);let r=e-Math.floor(l/1e3);r<i&&o(r),100===n&&(clearInterval(u.current),d())},t)):(clearInterval(u.current),o(10),c(0))},[r.startPopupVisible]),(0,t.jsxs)(e2,{isOpen:r.startPopupVisible,onClose:d,title:(0,t.jsx)("button",{type:"button",className:e7.progress,style:{background:`conic-gradient(#ff0508 ${s}deg, #e3e7ec 0deg)`},onClick:d,children:(0,t.jsx)("div",{className:e7.innerCircle,children:i})}),children:[(0,t.jsxs)("div",{className:e7.top,children:[(0,t.jsxs)("div",{className:e7.title,children:["Ваш город ",(null==(e=r.startTown)?void 0:e.name)||(null==(l=r.startRegion)?void 0:l.name)||"Вся Россия","?"]}),(0,t.jsx)("div",{className:e7.subtitle,children:"Это поможет вам увидеть выгодные предложения в вашем городе"})]}),(0,t.jsxs)("div",{className:e7.actions,children:[(0,t.jsx)(eJ,{size:"s",stretch:!0,eventActionText:"Да, все верно",onClick:()=>{(0,g.h)(a.D.button,"Да, все верно"),r.selectCity(r.startRegion,r.startTown)},children:"Да, все верно"}),(0,t.jsx)(eJ,{variant:"secondary",size:"s",stretch:!0,eventActionText:"Нет, изменить",onClick:()=>{(0,g.h)(a.D.button,"Нет, изменить"),r.setStartPopupVisible(!1),r.handleToggleModal(!0)},children:"Нет, изменить"})]})]})},e5=(0,f.g)("city-select","sc"),e6=Object.freeze({button:`${e5}__button`,minimal:`${e5}__minimal`,full:`${e5}__full`}),e8=({initialTown:e})=>{var r;let o=eW(),a=(null==(r=o.town)?void 0:r.name)||e||"Вся Россия",{setIsChatModalOpen:s,isChatModalOpen:c}=K(),{startPopupVisible:u,setStartPopupVisible:d,popupVisible:f}=o,p=(0,n.useRef)();(0,n.useEffect)(()=>{f&&(p.current="popup")},[f]),(0,n.useEffect)(()=>{c&&(p.current="chat")},[c]),(0,n.useEffect)(()=>{u&&(p.current="startPopup")},[u]),(0,n.useEffect)(()=>{p.current&&("chat"===p.current&&u?d(!1):["startPopup","popup"].includes(p.current)&&c&&s(!1))},[f,c,u,d,s]);let m={appearance:"ghost",size:"xs",onClick:()=>o.handleButtonClick(!1),iconLeft:(0,t.jsx)(ej,{size:24})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.Button,{...m,className:(0,i.default)(e6.button,e6.full),label:a}),(0,t.jsx)(l.Button,{...m,className:(0,i.default)(e6.button,e6.minimal),shape:"icon"}),(0,t.jsx)(eY,{}),(0,t.jsx)(e3,{})]})},e9=({onClick:e,eventActionType:n,eventActionText:l,eventLabel:r,...i})=>(0,t.jsx)(w.Link,{onClick:t=>{null==e||e(t),(0,a.h)({eventCategory:d.H,eventActionType:n||a.D.link,eventActionText:l||"",eventLabel:r||""})},...i}),te={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tt={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tn=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 7.22a.743.743 0 011.06 0L12 10.94l3.72-3.72a.743.743 0 011.06 0 .742.742 0 010 1.06L13.061 12l3.72 3.72a.743.743 0 010 1.06.743.743 0 01-1.061 0L12 13.06l-3.72 3.72a.743.743 0 01-1.06 0 .743.743 0 010-1.06L10.94 12 7.22 8.28a.743.743 0 010-1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tl({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...te,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(tn,{viewBox:"0 0 24 24",style:tt}))}tl.displayName="IconFdsCloseO";let tr=(0,f.g)("header-mobile-app-banner","sc"),ti=Object.freeze({wrapper:`${tr}__wrapper`,container:`${tr}__container`,closeButton:`${tr}__close-button`,innerWrapper:`${tr}__inner-wrapper`,imageWrapper:`${tr}__image-wrapper`,image:`${tr}__image`,title:`${tr}__title`,description:`${tr}__description`,callToAction:`${tr}__call-to-action`,scanQr:`${tr}__scan-qr`}),to=Object.freeze({mobile:56,desktop:68}),ta="headerBannerShownAt",ts=({minioUrl:e,className:s,mobileAppUrl:c})=>{let{fixedContainerRef:f,headerRef:p}=K(),[m,h]=(0,n.useState)(!1),[v,g]=(0,n.useState)(!1),[w,b]=(0,n.useState)(!1),x=(0,n.useCallback)((e="desktop")=>{let t=f.current;t&&(t.style.transform="translateY(0)",document.documentElement.style.setProperty("--fixed-header-height",`${to[e]+d.F[e]}px`),document.documentElement.style.setProperty("--new-header-height-desktop",`${to.desktop+d.F.desktop}px`),document.documentElement.style.setProperty("--new-header-height-mobile",`${to.mobile+d.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-mobile",`${to.mobile+d.F.mobile}px`),document.documentElement.style.setProperty("--static-new-header-height-desktop",`${to.desktop+d.F.desktop}px`),document.documentElement.style.setProperty("--header-height",`${to[e]+108}px`))},[]),y=(0,n.useCallback)(()=>{let e=f.current;e&&(document.documentElement.style.removeProperty("--fixed-header-height"),document.documentElement.style.removeProperty("--new-header-height-desktop"),document.documentElement.style.removeProperty("--new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-mobile"),document.documentElement.style.removeProperty("--static-new-header-height-desktop"),document.documentElement.style.removeProperty("--header-height"),e.style.transform="")},[]);return(0,n.useEffect)(()=>{let e=p.current;if(!e)return;let t=()=>{v&&h(!1),b(!1)};return e.addEventListener("transitionend",t),()=>{e.removeEventListener("transitionend",t)}},[v]),(0,n.useEffect)(()=>{let e;(!(e=(()=>{let e=localStorage.getItem(ta);if(!e)return null;let t=new Date(e);return isNaN(t.getTime())?null:t})())||Math.floor((e.getTime()-new Date().getTime())/864e5)>5)&&h(!0)},[]),(0,n.useEffect)(()=>{let e=window.innerWidth<768;m&&(x(e?"mobile":"desktop"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!0):b(!0));let t=()=>{if(!m)return null;x(window.innerWidth<768?"mobile":"desktop")};return window.addEventListener("resize",t),()=>{y(),window.removeEventListener("resize",t)}},[m,x,y]),m?(0,t.jsx)("div",{id:"headerNotice",role:"region","aria-label":"Мобильное приложение","data-opening":w,className:(0,i.default)(ti.wrapper,s),children:(0,t.jsx)(r.Container,{children:(0,t.jsxs)("div",{className:ti.container,children:[(0,t.jsxs)("div",{className:ti.innerWrapper,children:[(0,t.jsxs)("picture",{className:ti.imageWrapper,children:[(0,t.jsx)("source",{srcSet:(0,o.joinURL)(e,"/widgets/header/qr-mobile-app.svg"),media:"(min-width: 768px)"}),(0,t.jsx)("img",{className:ti.image,src:(0,o.joinURL)(e,"/logo/finuslugi/default-regular.svg"),loading:"lazy"})]}),(0,t.jsxs)("div",{className:ti.scanQr,children:[(0,t.jsx)("div",{className:ti.title,children:"Скачайте приложение Финуслуги"}),(0,t.jsx)("div",{className:ti.description,children:"Сканируйте QR-код"})]}),(0,t.jsxs)("div",{className:ti.callToAction,children:[(0,t.jsxs)("div",{children:["Приложение",(0,t.jsx)("br",{}),"Финуслуги"]}),(0,t.jsx)(l.Button,{onClick:()=>{(0,u.h)(a.D.button,"skachat_mob_prilozheniye_fu"),window.open(c,"_blank","noreferrer")},variant:"white",size:"xs",children:"Скачать"})]})]}),(0,t.jsx)("div",{"aria-label":"Закрыть",role:"button",className:ti.closeButton,onClick:()=>{localStorage.setItem(ta,new Date().toISOString()),y(),window.matchMedia("(prefers-reduced-motion: reduce)").matches?h(!1):g(!0)},children:(0,t.jsx)(tl,{size:"100%"})})]})})}):null},tc={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},tu={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"};function td(e){return{width:`${e}px`,height:`${e}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"}}let tf=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 12.53a.75.75 0 010-1.06l6.5-6.5a.75.75 0 111.06 1.06L8.81 12l5.97 5.97a.75.75 0 11-1.06 1.06l-6.5-6.5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tp({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...tc,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&td(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(tf,{viewBox:"0 0 24 24",style:tu}))}tp.displayName="IconFdsChevronLeftO";let tm=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M11.28 17.03l4.5-4.5a.75.75 0 000-1.06l-4.5-4.5a.75.75 0 10-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 101.06 1.06z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function th({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...tc,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&td(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(tm,{viewBox:"0 0 24 24",style:tu}))}th.displayName="IconFdsChevronRightSmallO";let tv=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M3 9.998a9 9 0 0118 0c0 2.08-.89 4.273-2.029 6.249-1.148 1.991-2.6 3.844-3.826 5.262a4.123 4.123 0 01-6.29 0c-1.227-1.418-2.678-3.271-3.826-5.262C3.889 14.27 3 12.077 3 9.998zm9-7.5a7.5 7.5 0 00-7.5 7.5c0 1.688.737 3.607 1.828 5.5 1.083 1.877 2.468 3.65 3.661 5.029 1.084 1.251 2.938 1.251 4.022 0 1.193-1.379 2.578-3.152 3.66-5.03 1.092-1.893 1.829-3.81 1.829-5.499a7.5 7.5 0 00-7.5-7.5zm-4 7.5a4 4 0 118 0 4 4 0 01-8 0zm4-2.5a2.5 2.5 0 100 5 2.5 2.5 0 000-5z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tg({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...tc,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&td(l),...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(tv,{viewBox:"0 0 24 24",style:tu}))}tg.displayName="IconFdsLocationO";let tw=(0,f.g)("header-chat-modal-body","sc"),tb=Object.freeze({wrapper:`${tw}__wrapper`,cardButton:`${tw}__card-button`,card:`${tw}__card`,cardTitle:`${tw}__card-title`,cardSubtitle:`${tw}__card-subtitle`,button:`${tw}__button`}),tx=()=>{let e=K();return(0,t.jsxs)("div",{className:tb.wrapper,children:[(0,t.jsx)(eJ,{className:tb.cardButton,variant:"secondary",pending:e.isChatLoading,onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},eventActionText:"Напишите в чат",children:(0,t.jsxs)(b.Card,{className:tb.card,variant:"secondary",children:[(0,t.jsxs)("div",{className:tb.cardTitle,children:[(0,t.jsx)("img",{src:"https://finuslugi.ru/icons/chaticons/new/chat_icon_hover.svg",alt:"chat",width:24,height:24,loading:"lazy"}),"Напишите в чат"]}),(0,t.jsxs)("p",{className:tb.cardSubtitle,children:["Виртуальный ассистент доступен 24/7, ",(0,t.jsx)("br",{}),"операторы — с 6:00 до 23:59 мск"]})]})}),!1]})},ty={display:"inline-block",lineHeight:0,backfaceVisibility:"hidden"},t_={width:"1em",height:"1em",overflowClipMargin:"content-box",overflow:"hidden"},tC=e=>n.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M9 8a.75.75 0 000 1.5h4.44l-5.22 5.22a.75.75 0 101.06 1.06l5.22-5.22v4.445a.75.75 0 101.5 0V8.75a.75.75 0 00-.75-.75H9z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}));function tE({className:e,style:t,boxSize:l,size:r,onClick:i}){return n.default.createElement("span",{className:e,style:{...ty,...i&&{cursor:"pointer"},...r&&{fontSize:`${r}px`},...l&&{width:`${l}px`,height:`${l}px`,display:"inline-flex",alignItems:"center",justifyContent:"center"},...t},...i?{role:"button",tabIndex:"0",onClick:i}:{}},n.default.createElement(tC,{viewBox:"0 0 24 24",style:t_}))}tE.displayName="IconFdsArrowUpRightSmallO";let tk=({data:e,isMobile:l})=>{let r=K();return(0,t.jsx)("div",{className:x.s.contentWrapper,children:e.map(e=>(0,t.jsx)(n.Fragment,{children:e.sections.map(e=>{var n;return(0,t.jsxs)("div",{className:(0,i.default)(x.s.content,{[x.s.hidden]:r.openedSection!==e.id,[x.s.contentOpen]:!!r.openedSection}),children:[(0,t.jsx)("div",{className:x.s.contentHeader,children:(0,t.jsx)("label",{children:e.title})}),null==(n=e.content)?void 0:n.map((n,r)=>{var o,s;return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{children:(0,t.jsx)("a",{className:(0,i.default)(x.s.contentTitle,{[x.s.removed]:!n.title,[x.s.contentTitleUrl]:!!n.url,[x.s.contentTitleLink]:!!e.isSeeAllLinkAvailable,[x.s.contentTitleNew]:!!n.new}),href:e.isSeeAllLinkAvailable?n.url:void 0,children:(0,t.jsxs)("span",{children:[e.isSeeAllLinkAvailable&&(0,t.jsx)("div",{className:x.s.arrowIcon,children:(0,t.jsx)(tE,{})}),n.title]})})}),!(null!=(o=n.links)&&o.length)&&(0,t.jsx)(x.N,{items:n.chips||[],maxNumberOfLines:e.content.length<=1?99:l?3:2}),!!(null!=(s=n.links)&&s.length)&&(0,t.jsx)("div",{className:(0,i.default)(x.s.links,{[x.s.linksColumns]:!!n.columns,[x.s.linksTitleless]:!n.title}),children:n.links.map(e=>(0,t.jsxs)("a",{href:e.url,onClick:()=>(0,u.h)(a.D.link,e.title,`${e.title}_${e.url}`),children:[(0,t.jsx)("div",{className:x.s.arrowIcon,children:(0,t.jsx)(tE,{})}),(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{children:e.title}),!!e.new&&(0,t.jsx)("span",{className:(0,i.default)({[x.s.newInline]:!!e.new})})]})]},e.url))})]},`${n.url}_${r}`)})]},e.id)})},e.id))})},tN=(0,f.g)("navigation-section-icon","sc"),tS=Object.freeze({icon:`${tN}`}),t$={IconFdsAcademicCapO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsAcademicCapO),IconFdsBankO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsBankO),IconFdsBookOpenO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsBookOpenO),IconFdsCalculatorO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsCalculatorO),IconFdsCardO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsCardO),IconFdsChatDotsCircleO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsChatDotsCircleO),IconFdsCoinMultipleO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsCoinMultipleO),IconFdsDotsHorizontalO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsDotsHorizontalO),IconFdsFlashO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsFlashO),IconFdsGraphO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsGraphO),IconFdsLayoutHorizontalO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsLayoutHorizontalO),IconFdsPortfolioO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsPortfolioO),IconFdsRubleCircleO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsRubleCircleO),IconFdsSafeO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsSafeO),IconFdsShieldCheckO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsShieldCheckO),IconFdsWalletO:()=>e.A(44303).then(({navigationSectionIcons:e})=>e.IconFdsWalletO)},tj=e=>Object.prototype.hasOwnProperty.call(t$,e),tR=({name:e,background:l})=>{let[r,i]=(0,n.useState)(null);if((0,n.useEffect)(()=>{if(!e||!tj(e))return void i(null);let t=!0;return t$[e]().then(n=>{t&&i({name:e,component:n})}).catch(()=>{t&&i(null)}),()=>{t=!1}},[e]),!e||!tj(e))return null;let o=(null==r?void 0:r.name)===e?r.component:null;return(0,t.jsx)("div",{className:tS.icon,style:{background:l},children:o&&(0,t.jsx)(o,{})})},tO=(0,f.g)("navigation","sc"),tT=Object.freeze({navigation:`${tO}`,navigationOpening:`${tO}--opening`,navigationClosing:`${tO}--closing`,wrapper:`${tO}__wrapper`,container:`${tO}__container`,containerOpen:`${tO}__container--open`,sections:`${tO}__sections`,sectionsOpen:`${tO}__sections--open`,citySelectButton:`${tO}__city-select-button`,sectionsTitle:`${tO}__sections-title`,sectionsWrapper:`${tO}__sections-wrapper`,section:`${tO}__section`,sectionArrow:`${tO}__section-arrow`,sectionExtra:`${tO}__section--extra`,sectionActive:`${tO}__section--active`,sectionTitle:`${tO}__section-title`,chatWrapper:`${tO}__chat-wrapper`,chatHeader:`${tO}__chat-header`,backButton:`${tO}__back-button`,useful:`${tO}__useful`,usefulOpen:`${tO}__useful--open`,usefulTitle:`${tO}__useful-title`,usefulGrid:`${tO}__useful-grid`,removed:`${tO}__removed`}),tA=({data:e})=>{var o;let c=K(),f=eW(),p=(0,s.useBreakpointDown)("m"),[m,h]=(0,n.useState)(!0);(0,n.useEffect)(()=>{h(p)},[p]);let v=(0,n.useRef)(null),g=(0,n.useCallback)(()=>{v.current&&clearTimeout(v.current),v.current=setTimeout(()=>c.openedSection?c.setOpenedSection(null):c.isNavigationOpen?c.setOpenedBlock(null):void 0,50)},[c]),w=(0,n.useRef)(!1),b=(0,n.useRef)(null),x=(0,n.useCallback)(()=>{m&&(w.current=!0,b.current=window.onpopstate||null,window.onpopstate=function(){window.history.forward(),g()},window.history.pushState(null,"",window.location.href))},[g,m]),y=(0,n.useCallback)(()=>{w.current=!1,window.onpopstate=b.current,window.history.go(-1)},[]),_=(0,n.useRef)(null),C=(0,n.useCallback)(e=>{if(m||!c.navMenuItemsRef.current||!c.navigationRef.current)return;let t=e.target,n=!c.navMenuItemsRef.current.contains(t)&&!c.navigationRef.current.contains(t);if(n&&!_.current){c.setIgnoreClicks(),_.current=setTimeout(()=>c.setOpenedBlock(null),300);return}!n&&_.current&&(clearTimeout(_.current),_.current=null)},[m,c]),E=(0,n.useRef)(null),k=(0,n.useCallback)(e=>{typeof window>"u"||(e?(E.current=C,window.addEventListener("mousemove",E.current)):E.current&&window.removeEventListener("mousemove",E.current))},[C]);(0,n.useEffect)(()=>{k(c.isNavigationOpen),c.isNavigationOpen&&!w.current&&x(),!c.isNavigationOpen&&w.current&&y()},[c.isNavigationOpen]);let N=(e,t)=>()=>{(0,u.h)(a.D.button,t),c.setOpenedSection(e)},{start:S,clear:$}=z(),j=()=>{m||$()};return(0,t.jsx)("div",{ref:c.navigationRef,className:(0,i.default)(tT.navigation,{[tT.removed]:!c.isNavigationMounted,[tT.navigationOpening]:c.isNavigationOpen,[tT.navigationClosing]:!c.isNavigationOpen}),children:(0,t.jsx)("div",{className:tT.wrapper,children:(0,t.jsxs)(r.Container,{className:(0,i.default)(tT.container,{[tT.containerOpen]:!!c.openedSection}),children:[(0,t.jsxs)("div",{className:(0,i.default)(tT.sections,{[tT.sectionsOpen]:!!c.openedSection}),children:[(0,t.jsx)(l.Button,{className:tT.citySelectButton,variant:"violet",appearance:"ghost",size:"xs",onClick:()=>f.handleButtonClick(!1),iconLeft:(0,t.jsx)(tg,{size:24}),label:(null==(o=f.town)?void 0:o.name)||"Вся Россия"}),e.map(e=>(0,t.jsxs)("ul",{className:(0,i.default)(tT.sectionsWrapper,{[tT.removed]:c.openedBlock!==e.id&&!m}),children:[(0,t.jsx)("div",{className:tT.sectionsTitle,children:d.a[e.id]}),e.sections.map(e=>{let n,l;return(0,t.jsxs)("li",{className:(0,i.default)(tT.section,{[tT.sectionExtra]:!!e.extra,[tT.sectionActive]:c.openedSection===e.id}),onClick:N(e.id,e.title),onMouseEnter:(n=e.id,l=e.title,()=>{m||S(N(n,l),150)}),onMouseLeave:j,children:[c.isNavigationMounted&&(0,t.jsx)(tR,{name:e.uikitIcon,background:e.uikitIconBg}),(0,t.jsx)("span",{className:tT.sectionTitle,children:e.title}),(0,t.jsx)("div",{className:tT.sectionArrow,children:(0,t.jsx)(th,{size:24})})]},e.id)})]},e.id)),(0,t.jsxs)("div",{className:tT.chatWrapper,children:[(0,t.jsx)("div",{className:tT.chatHeader,children:"Нужна помощь?"}),(0,t.jsx)(tx,{})]})]}),(0,t.jsxs)("button",{type:"button",className:(0,i.default)(tT.backButton,{[tT.removed]:!c.openedSection}),onClick:()=>{(0,u.h)(a.D.button,"Назад"),c.setOpenedSection(null)},children:[(0,t.jsx)(tp,{size:24}),(0,t.jsx)("span",{children:"Назад"})]}),(0,t.jsx)(tk,{data:e,isMobile:m}),(0,t.jsxs)("div",{className:(0,i.default)(tT.useful,{[tT.usefulOpen]:!!c.openedSection}),children:[(0,t.jsx)("div",{className:tT.usefulTitle,children:"Полезное на Финуслугах"}),e.map(e=>(0,t.jsx)(n.Fragment,{children:e.sections.map(e=>{var n;return(0,t.jsx)("div",{className:(0,i.default)(tT.usefulGrid,{[tT.removed]:c.openedSection!==e.id}),children:null==(n=e.useful)?void 0:n.map((e,n)=>(0,t.jsxs)("a",{href:e.url,onClick:()=>(0,u.h)(a.D.link,e.title,`${e.title}_${e.url}`),children:[(0,t.jsx)("div",{children:(0,t.jsx)("img",{src:e.icon,srcSet:e.icon2?`${e.icon}, ${e.icon2} 2x`:void 0,alt:e.title,loading:"lazy"})}),(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},`${e.title}_${n}`))},e.id)})},e.id))]})]})})})},tI=({data:e,showcaseUrl:s="https://finuslugi.ru",minioUrl:c="https://assets.finuslugi.ru/mp-assets",lkUrl:f="https://lk.finuslugi.ru/registration",initialTown:p,isMainBannerPage:m,enableAppHeaderBanner:h=!1,enableCertificatesBanner:v=!1,enableExternalLinkWarning:g=!1,news:w,className:b})=>{let x=K(),y=(0,n.useMemo)(()=>((e,t,n)=>{var l,r,i,a,s,c,u;let d=(null==(r=null==(l=null==e?void 0:e.NAVIGATOR)?void 0:l.findIndex)?void 0:r.call(l,({id:e})=>"news"===e))||-1,f=(null==(a=null==(i=null==e?void 0:e.NAVIGATOR)?void 0:i[d])?void 0:a.content)||[];if(null!=(u=null==(c=null==(s=null==e?void 0:e.NAVIGATOR)?void 0:s[d])?void 0:c.content)&&u[0]&&Array.isArray(n)&&f.length){let l=n.map(({title:e,url:n})=>({title:e,url:(0,o.joinURL)(t||"",n),new:0}));e.NAVIGATOR[d].content[0].links=l}return[{id:"FINPRODUCTS",sections:Array.isArray(null==e?void 0:e.FINPRODUCTS)?null==e?void 0:e.FINPRODUCTS:[]},{id:"NAVIGATOR",sections:Array.isArray(null==e?void 0:e.NAVIGATOR)?null==e?void 0:e.NAVIGATOR:[]},{id:"ABOUT",sections:Array.isArray(null==e?void 0:e.ABOUT)?null==e?void 0:e.ABOUT:[]}]})(e,s,w),[e,s,w]),_=null==e?void 0:e.config,C=!!e&&v&&!!m,E=(({enableCertificatesBanner:e,enableExternalLinkWarning:t,isMainBannerPage:l})=>{let[r,i]=(0,n.useState)("checking"),[o,a]=(0,n.useState)(!1),[s,c]=(0,n.useState)(!1),[u,d]=(0,n.useState)(!1),[f,p]=(0,n.useState)(!1),m=(0,n.useRef)(),h=(0,n.useRef)(!1),v=(0,n.useRef)(!1),g=(0,n.useRef)(!1);(0,n.useRef)(null);let w=(0,n.useRef)(null),b=(0,n.useRef)(null),x=(0,n.useRef)(null),y=e&&l,_=y||t,C=(0,n.useCallback)(e=>{let t=m.current;t?t.call(window,e,"_blank","noopener,noreferrer"):window.open(e,"_blank","noopener,noreferrer")},[]),E=(0,n.useCallback)(()=>{a(!1),g.current=!1,w.current=null,b.current=null,x.current=null,p(!1)},[]),k=(0,n.useCallback)(e=>{eE(er),v.current=!0,g.current=!1,w.current=e,p("external"===e&&null!==b.current),a(!0)},[]),N=(0,n.useCallback)(()=>!h.current&&("external"===w.current&&!g.current||!v.current),[]),S=(0,n.useCallback)(()=>{"external"!==w.current&&k("external")},[k]);(0,n.useEffect)(()=>{m.current=window.open;let e=window.navigator.userAgent.includes("YaBrowser/");return e&&eE(en),h.current=e||eC(en),v.current=eC(er),d(h.current),c(!0),()=>{b.current=null,x.current=null}},[]),(0,n.useEffect)(()=>{if(s){if(!y)return void i("skipped");i(e=>"shown"===e||"closing"===e||"dismissed"===e?e:u||eC(el)?"skipped":"shown")}},[u,y,s]),(0,n.useEffect)(()=>{},[E,_,s]),(0,n.useEffect)(()=>{if(!s||!t)return;let e=m.current;if(!e)return;let n=!0,l=e=>{if(0!==e.button&&1!==e.button||!(e.target instanceof Element))return;let t=e.target.closest("a[href]");if(!t||e.defaultPrevented)return;let l=ek(t.href,window.location);if(!l||!N())return;e.preventDefault(),null===b.current&&(b.current=l.href,x.current={source:"external_anchor",host:l.hostname});let r=b.current;queueMicrotask(()=>{n&&N()&&b.current===r&&S()})},r=(t,n="_blank",l)=>{let r=ek(t,window.location);return r&&N()?(null===b.current&&(b.current=r.href,x.current={source:"external_window_open",host:r.hostname}),S(),null):e.call(window,t,n,l)};return window.open=r,document.addEventListener("click",l,!0),document.addEventListener("auxclick",l,!0),()=>{n=!1,document.removeEventListener("click",l,!0),document.removeEventListener("auxclick",l,!0),window.open===r&&(window.open=e)}},[t,s,N,S]),(0,n.useEffect)(()=>{var e;t||(b.current=null,(null==(e=x.current)?void 0:e.source)!=="banner"&&(x.current=null),p(!1),"external"===w.current&&E())},[E,t]),(0,n.useEffect)(()=>{y||"banner"===w.current&&E()},[E,y]),(0,n.useEffect)(()=>{_||E()},[E,_]);let $=(0,n.useCallback)(()=>{eE(el),i("closing")},[]),j=(0,n.useCallback)(()=>{i("dismissed")},[]),R=(0,n.useCallback)(()=>{b.current=null,x.current={source:"banner"},k("banner")},[k]),O=(0,n.useCallback)(()=>{C("https://www.gosuslugi.ru/crt")},[C]),T=(0,n.useCallback)(()=>{C("https://browser.yandex.ru/")},[C]),A=(0,n.useCallback)(()=>{let e=b.current;e&&(eE(er),v.current=!0,g.current=!0,C(e))},[C]);return{bannerStatus:r,isPopupOpen:o,popupAnalyticsContext:x.current,dismissBanner:$,finishBannerClosing:j,openPopupFromBanner:R,closePopup:E,openCertificatesPage:O,openYandexBrowserPage:T,continueToExternalPage:f?A:void 0}})({enableCertificatesBanner:C,enableExternalLinkWarning:g,isMainBannerPage:!!m}),N="shown"===E.bannerStatus||"closing"===E.bannerStatus,$=!C||"skipped"===E.bannerStatus,R=(0,n.useMemo)(()=>y.reduce((e,t)=>{var n;return e[t.id]=null==(n=t.sections[0])?void 0:n.id,e},{}),[y]),T=x.isAuth?"Личный кабинет":"Войти",I=m&&x.isHeaderTransparent,P=(e,t,n,l)=>()=>{e!==x.openedBlock?(0,u.h)(a.D.toggle,t,"on"):(0,u.h)(a.D.button,"menu_close","on");let r=n?R[e]:"";x.setOpenedBlock(e,r,!!l)},{start:M,clear:B}=z(),F=e=>()=>{x.ignoreClicks||e()},D=(0,t.jsx)(ey,{isOpen:E.isPopupOpen,analyticsContext:E.popupAnalyticsContext,onClose:E.closePopup,onOpenCertificatesPage:E.openCertificatesPage,onOpenYandexBrowserPage:E.openYandexBrowserPage,onContinue:E.continueToExternalPage});return e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{ref:x.headerRef,className:(0,i.default)(d.s.header,b,{[d.s.transparent]:I}),children:(0,t.jsxs)("div",{ref:x.fixedContainerRef,className:(0,i.default)(d.s.fixed,{[d.s.hidden]:x.isHeaderHidden,[d.s.navigationOpen]:x.isNavigationOpen}),children:[N&&(0,t.jsx)(es,{onDismiss:E.dismissBanner,onClosed:E.finishBannerClosing,onOpenDetails:E.openPopupFromBanner,onOpenCertificatesPage:E.openCertificatesPage,onOpenYandexBrowserPage:E.openYandexBrowserPage}),$&&!!(null!=_&&_.appBannerUrl)&&h&&(0,t.jsx)(ts,{mobileAppUrl:_.appBannerUrl,minioUrl:c}),(0,t.jsxs)(r.Container,{className:d.s.container,children:[(0,t.jsxs)("div",{className:d.s.leftRow,children:[(0,t.jsx)(e9,{className:d.s.logo,href:s,eventActionType:a.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${s}`,children:(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{srcSet:(0,o.joinURL)(c,"/widgets/header/logo/d.webp"),media:"(min-width: 768px)"}),(0,t.jsx)("img",{src:(0,o.joinURL)(c,"/widgets/header/logo/m.webp"),alt:"Финуслуги",loading:"eager"})]})}),(0,t.jsx)("nav",{ref:x.navMenuItemsRef,className:d.s.menuItems,children:(0,t.jsx)("ul",{children:d.b.map(({id:e,label:n})=>(0,t.jsx)("li",{children:(0,t.jsx)(l.Button,{className:(0,i.default)({[d.s.menuItemActive]:x.openedBlock===e&&x.isNavigationOpen}),label:n,variant:"white",size:"xs",onClick:F(P(e,n,!0)),onMouseEnter:()=>{x.isNavigationOpen&&e===x.openedBlock||x.setIgnoreClicks(),M(P(e,n,!0,!0),200)},onMouseLeave:B})},e))})}),(0,t.jsx)(eJ,{className:(0,i.default)(d.s.tabletMenuButton,{[d.s.menuItemActive]:x.isNavigationOpen}),eventActionText:"Меню сайта",variant:"white",size:"xs",iconRight:(0,t.jsx)(j,{size:24}),onClick:P("FINPRODUCTS","Меню сайта"),children:"Меню сайта"})]}),(0,t.jsxs)("div",{className:(0,i.default)(d.s.buttonGroup,{[d.s.whiteIcons]:(null==_?void 0:_.iconColorOnMobileMainBanner)==="white"}),children:[(0,t.jsxs)("div",{className:d.s.chips,children:[(0,t.jsx)(eJ,{as:"a",href:f,size:"xs",shape:"icon",appearance:"ghost",eventActionText:"profile",eventLabel:`profile_${f}`,iconLeft:(0,t.jsx)(L,{size:20})}),(0,t.jsx)(eJ,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",shape:"icon",appearance:"ghost",eventActionText:"IconFdsChatDotsCircleO",iconLeft:(0,t.jsx)(k,{size:24})})]}),(0,t.jsx)(eJ,{className:d.s.menuButton,size:"xs",shape:I?"icon":"default",appearance:I?"ghost":"fill",label:"Меню",onClick:P("FINPRODUCTS","Меню"),eventActionText:"Меню",iconLeft:(0,t.jsx)(A,{size:24})}),(0,t.jsxs)("div",{className:d.s.moreButtons,children:[(0,t.jsx)(e8,{initialTown:p}),(0,t.jsx)(eJ,{onClick:()=>{var e,t,n;return null==(n=null==(t=null==(e=null==window?void 0:window.supportWidget)?void 0:e.craftTalk)?void 0:t.open)?void 0:n.call(t)},size:"xs",appearance:"ghost",eventActionText:"IconFdsChatDotsSquareAddO",iconLeft:(0,t.jsx)(S,{size:24}),children:"Онлайн чат"}),(0,t.jsx)(eJ,{as:"a",href:f,size:"xs",eventActionText:T,eventLabel:`${T}_${f}`,label:T})]})]}),(0,t.jsxs)(e9,{className:d.s.auth,href:f,eventActionText:T,eventLabel:`${T}_${f}`,children:[(0,t.jsx)(eJ,{size:"xs",shape:"circle-icon",iconLeft:(0,t.jsx)(L,{}),eventActionText:T,eventLabel:`${T}_${f}`}),(0,t.jsx)("p",{children:T})]}),(0,t.jsx)("div",{className:d.s.close,children:(0,t.jsx)(eJ,{className:d.s.close,size:"xs",variant:"secondary",shape:"circle-icon",iconLeft:(0,t.jsx)(O,{}),onClick:()=>x.setOpenedBlock(null),eventActionText:"IconFdsCloseO"})})]})]})}),(0,t.jsx)("div",{className:(0,i.default)(d.s.overlay,{[d.s.removed]:!x.isNavigationMounted,[d.s.overlayOpening]:x.isNavigationOpen,[d.s.overlayClosing]:!x.isNavigationOpen}),onClick:F(()=>x.setOpenedBlock(null))}),(0,t.jsx)(tA,{data:y,minioUrl:c}),D]}):g?D:null};e.s(["CitySelectProvider",0,({children:e,initialRegion:l,initialTown:r,showStartGeoPopup:i=!0,lastRegionsUpdateUnixTimestamp:o,dadataUrl:s="https://finuslugi.ru/backend/money/dadata",showcaseUrl:c="",useNewCitiesApi:u=!1})=>{let d=(0,g.d)(u),f=Number((0,g.p)(d.lastRegionsUpdateUnixTimestamp)||0),p=Number(o||0)>f,[m,h]=(0,n.useState)((0,g.g)(u)),v=(0,n.useRef)(m),[{startRegion:w,startTown:b},x]=(0,n.useState)({startRegion:eD.startRegion,startTown:eD.startTown}),y=l??eD.region,_=r??eD.town,[{region:C,town:E},k]=(0,n.useState)({region:y,town:_}),[N,S]=(0,n.useState)(eD.startPopupVisible),[$,j]=(0,n.useState)(eD.popupVisible),R=(0,n.useRef)(""),O=(0,n.useRef)(!1),T=(0,n.useMemo)(()=>(0,g.a)(m),[m]);(0,n.useEffect)(()=>{v.current=m},[m]);let A=(0,n.useCallback)((e,t)=>{window.sessionStorage.setItem("start_popup_opened","1"),window.localStorage.setItem("auto_town",JSON.stringify(t)||""),window.localStorage.setItem("auto_region",JSON.stringify(e)||""),S(!0),x({startRegion:e,startTown:t})},[S,x]),I=(0,n.useCallback)((e,t)=>{window.sessionStorage.getItem("start_popup_opened")||A(e,t)},[A]),L=(0,n.useCallback)(()=>{if(R.current&&!C&&!E){let e=T.find(e=>e.name===R.current)??null;return I(m.find(t=>t.id===(null==e?void 0:e.parentId))??null,e)}I(C,E)},[C,E,T,m,I]),z=(0,n.useCallback)(e=>{j(e)},[j]),P=(0,n.useCallback)((e,t)=>{if(!e&&!t){window.localStorage.setItem(d.allRussiaSelected,"1"),window.localStorage.setItem(d.userRegion,""),window.localStorage.setItem(d.userTown,""),(0,g.s)(null,null,u);return}window.localStorage.setItem(d.allRussiaSelected,"0"),window.localStorage.setItem(d.userRegion,JSON.stringify(e)||""),window.localStorage.setItem(d.userTown,JSON.stringify(t)||""),(0,g.s)(e||null,t||null,u)},[d,u]),M=(0,n.useCallback)(e=>{e?(0,g.h)(a.D.icon,"location"):(0,g.h)(a.D.button,(null==E?void 0:E.name)||"Вся Россия"),!i||window.sessionStorage.getItem("start_popup_opened")?z(!0):L()},[i,E,z,L]),B=(0,n.useCallback)((e,t)=>{P(e,t),k({region:e||null,town:t||null}),S(!1),z(!1);let n=new CustomEvent("onRegionChange",{detail:{region:e,town:t}});document.dispatchEvent(n)},[z,P]),F=()=>{let e=(0,g.e)(d.userRegion)??(0,g.p)(d.userRegion),t=(0,g.e)(d.userTown)??(0,g.p)(d.userTown),n=(0,g.b)(v.current,e,t),l=u&&(0,g.f)(e,t);l&&(O.current=!0),l&&(0,g.c)(n.region,n.town)&&(P(n.region,n.town),O.current=!1),k(n);let r=async({coords:{latitude:e,longitude:t}})=>{let n=`${s}?lat=${e}&lon=${t}`,l=await (0,g.j)(n);null!=l&&l.location&&(R.current=l.location.data.city)};if(!window.localStorage.getItem("dadata")&&navigator.geolocation&&i)try{navigator.geolocation.getCurrentPosition(r,()=>null)}catch{}};return(0,n.useEffect)(()=>{(!(0,g.i)(m,u)||p)&&(0,g.l)({showcaseUrl:c,useNewCitiesApi:u}).then(e=>{e.length<1||h(e)})},[]),(0,n.useEffect)(()=>{if(!u)return;let e=(0,g.b)(m,C,E);O.current&&(0,g.c)(e.region,e.town)&&(P(e.region,e.town),O.current=!1),k(e)},[m,C,P,E,u]),(0,n.useEffect)(()=>{if(window.innerWidth<1024){let e=()=>{F(),window.removeEventListener("scroll",e)};window.addEventListener("scroll",e)}else setTimeout(()=>{F()},0)},[]),(0,t.jsx)(eH.Provider,{value:{regions:m,towns:T,region:C,town:E,startPopupVisible:N,setStartPopupVisible:S,popupVisible:$,handleToggleModal:z,selectCity:B,handleButtonClick:M,startRegion:w,startTown:b},children:e})},"Header",0,e=>(0,t.jsx)(Q,{isMainBannerPage:e.isMainBannerPage,children:(0,t.jsx)(tI,{...e})}),"useCitySelectContext",0,eW])}]);