profinansy-ui-lib 4.0.96 → 4.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -365,7 +365,7 @@ Check the top-level render call using <`+q+">.")}return Y}}function tc(I,Y){{if(
365
365
  `;function _1(){return typeof window<"u"}function Nn(e){return n0(e)?(e.nodeName||"").toLowerCase():"#document"}function Mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function pn(e){var t;return(t=(n0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function n0(e){return _1()?e instanceof Node||e instanceof Mt(e).Node:!1}function Be(e){return _1()?e instanceof Element||e instanceof Mt(e).Element:!1}function ot(e){return _1()?e instanceof HTMLElement||e instanceof Mt(e).HTMLElement:!1}function Qa(e){return!_1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mt(e).ShadowRoot}function Bo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Dt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function H8(e){return["table","td","th"].includes(Nn(e))}function I1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ws(e){const t=S1(),n=Be(e)?Dt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function V8(e){let t=_n(e);for(;ot(t)&&!Bn(t);){if(Ws(t))return t;if(I1(t))return null;t=_n(t)}return null}function S1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Bn(e){return["html","body","#document"].includes(Nn(e))}function Dt(e){return Mt(e).getComputedStyle(e)}function D1(e){return Be(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _n(e){if(Nn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qa(e)&&e.host||pn(e);return Qa(t)?t.host:t}function r0(e){const t=_n(e);return Bn(t)?e.ownerDocument?e.ownerDocument.body:e.body:ot(t)&&Bo(t)?t:r0(t)}function Tn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=r0(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),a=Mt(o);if(i){const l=Ka(a);return t.concat(a,a.visualViewport||[],Bo(o)?o:[],l&&n?Tn(l):[])}return t.concat(o,Tn(o,[],n))}function Ka(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function vn(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function rt(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&Qa(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function o0(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function i0(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function N8(e){return e.mozInputSource===0&&e.isTrusted?!0:qa()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function a0(e){return W8()?!1:!qa()&&e.width===0&&e.height===0||qa()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function s0(){return/apple/i.test(navigator.vendor)}function qa(){const e=/android/i;return e.test(o0())||e.test(i0())}function O8(){return o0().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function W8(){return i0().includes("jsdom/")}function xo(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function Z8(e){return"nativeEvent"in e}function Y8(e){return e.matches("html,body")}function ht(e){return e?.ownerDocument||document}function la(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function bn(e){return"composedPath"in e?e.composedPath()[0]:e.target}const z8="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Zs(e){return ot(e)&&e.matches(z8)}function ca(e){e.preventDefault(),e.stopPropagation()}function G8(e){return e?e.getAttribute("role")==="combobox"&&Zs(e):!1}const Tr=Math.min,Jn=Math.max,Ui=Math.round,di=Math.floor,an=e=>({x:e,y:e}),X8={left:"right",right:"left",bottom:"top",top:"bottom"},J8={start:"end",end:"start"};function es(e,t,n){return Jn(e,Tr(t,n))}function Ho(e,t){return typeof e=="function"?e(t):e}function er(e){return e.split("-")[0]}function Vo(e){return e.split("-")[1]}function l0(e){return e==="x"?"y":"x"}function Ys(e){return e==="y"?"height":"width"}function Fr(e){return["top","bottom"].includes(er(e))?"y":"x"}function zs(e){return l0(Fr(e))}function U8(e,t,n){n===void 0&&(n=!1);const r=Vo(e),o=zs(e),i=Ys(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Qi(a)),[a,Qi(a)]}function Q8(e){const t=Qi(e);return[ts(e),t,ts(t)]}function ts(e){return e.replace(/start|end/g,t=>J8[t])}function K8(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function q8(e,t,n,r){const o=Vo(e);let i=K8(er(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(ts)))),i}function Qi(e){return e.replace(/left|right|bottom|top/g,t=>X8[t])}function ep(e){return{top:0,right:0,bottom:0,left:0,...e}}function c0(e){return typeof e!="number"?ep(e):{top:e,right:e,bottom:e,left:e}}function Pr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}/*!
366
366
  * tabbable 6.2.0
367
367
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
368
- */var tp=["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])"],Ki=tp.join(","),d0=typeof Element>"u",Br=d0?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,qi=!d0&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},e1=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",a=i||n&&t&&e(t.parentNode);return a},np=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},rp=function(t,n,r){if(e1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Ki));return n&&Br.call(t,Ki)&&o.unshift(t),o=o.filter(r),o},op=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!e1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),c=l.length?l:a.children,u=e(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:a,candidates:u})}else{var p=Br.call(a,Ki);p&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),g=!e1(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(f&&g){var v=e(f===!0?a.children:f.children,!0,r);r.flatten?o.push.apply(o,v):o.push({scopeParent:a,candidates:v})}else i.unshift.apply(i,a.children)}}return o},u0=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},p0=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||np(t))&&!u0(t)?0:t.tabIndex},ip=function(t,n){var r=p0(t);return r<0&&n&&!u0(t)?0:r},ap=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},f0=function(t){return t.tagName==="INPUT"},sp=function(t){return f0(t)&&t.type==="hidden"},lp=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},cp=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dp=function(t){if(!t.name)return!0;var n=t.form||qi(t),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(a){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",a.message),!1}var i=cp(o,t.form);return!i||i===t},up=function(t){return f0(t)&&t.type==="radio"},pp=function(t){return up(t)&&!dp(t)},fp=function(t){var n,r=t&&qi(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var a,l,c;for(i=!!((a=o)!==null&&a!==void 0&&(l=a.ownerDocument)!==null&&l!==void 0&&l.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!i&&o;){var u,p,f;r=qi(o),o=(u=r)===null||u===void 0?void 0:u.host,i=!!((p=o)!==null&&p!==void 0&&(f=p.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},yc=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},hp=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=Br.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(Br.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var c=t.parentElement,u=qi(t);if(c&&!c.shadowRoot&&o(c)===!0)return yc(t);t.assignedSlot?t=t.assignedSlot:!c&&u!==t.ownerDocument?t=u.host:t=c}t=l}if(fp(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return yc(t);return!1},mp=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Br.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},gp=function(t,n){return!(n.disabled||e1(n)||sp(n)||hp(n,t)||lp(n)||mp(n))},ns=function(t,n){return!(pp(n)||p0(n)<0||!gp(t,n))},vp=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Cp=function e(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,c=ip(l,a),u=a?e(o.candidates):l;c===0?a?n.push.apply(n,u):n.push(l):r.push({documentOrder:i,tabIndex:c,item:o,isScope:a,content:u})}),r.sort(ap).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},j1=function(t,n){n=n||{};var r;return n.getShadowRoot?r=op([t],n.includeContainer,{filter:ns.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:vp}):r=rp(t,n.includeContainer,ns.bind(null,n)),Cp(r)},xp=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Br.call(t,Ki)===!1?!1:ns(n,t)};function wc(e,t,n){let{reference:r,floating:o}=e;const i=Fr(t),a=zs(t),l=Ys(a),c=er(t),u=i==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let v;switch(c){case"top":v={x:p,y:r.y-o.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(Vo(t)){case"start":v[a]-=g*(n&&u?-1:1);break;case"end":v[a]+=g*(n&&u?-1:1);break}return v}const h0=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=wc(u,r,c),g=r,v={},C=0;for(let x=0;x<l.length;x++){const{name:b,fn:y}=l[x],{x:k,y:w,data:E,reset:L}=await y({x:p,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});p=k??p,f=w??f,v={...v,[b]:{...v[b],...E}},L&&C<=50&&(C++,typeof L=="object"&&(L.placement&&(g=L.placement),L.rects&&(u=L.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):L.rects),{x:p,y:f}=wc(u,g,c)),x=-1)}return{x:p,y:f,placement:g,strategy:o,middlewareData:v}};async function m0(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:g=!1,padding:v=0}=Ho(t,e),C=c0(v),b=l[g?f==="floating"?"reference":"floating":f],y=Pr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:c})),k=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},L=Pr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:w,strategy:c}):k);return{top:(y.top-L.top+C.top)/E.y,bottom:(L.bottom-y.bottom+C.bottom)/E.y,left:(y.left-L.left+C.left)/E.x,right:(L.right-y.right+C.right)/E.x}}const g0=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:p=0}=Ho(e,t)||{};if(u==null)return{};const f=c0(p),g={x:n,y:r},v=zs(o),C=Ys(v),x=await a.getDimensions(u),b=v==="y",y=b?"top":"left",k=b?"bottom":"right",w=b?"clientHeight":"clientWidth",E=i.reference[C]+i.reference[v]-g[v]-i.floating[C],L=g[v]-i.reference[v],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let M=$?$[w]:0;(!M||!await(a.isElement==null?void 0:a.isElement($)))&&(M=l.floating[w]||i.floating[C]);const _=E/2-L/2,D=M/2-x[C]/2-1,B=Tr(f[y],D),N=Tr(f[k],D),P=B,V=M-x[C]-N,F=M/2-x[C]/2+_,S=es(P,F,V),A=!c.arrow&&Vo(o)!=null&&F!==S&&i.reference[C]/2-(F<P?B:N)-x[C]/2<0,j=A?F<P?F-P:F-V:0;return{[v]:g[v]+j,data:{[v]:S,centerOffset:F-S-j,...A&&{alignmentOffset:j}},reset:A}}}),v0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:x=!0,...b}=Ho(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=er(o),k=Fr(l),w=er(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),L=g||(w||!x?[Qi(l)]:Q8(l)),$=C!=="none";!g&&$&&L.push(...q8(l,x,C,E));const M=[l,...L],_=await m0(t,b),D=[];let B=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&D.push(_[y]),f){const F=U8(o,a,E);D.push(_[F[0]],_[F[1]])}if(B=[...B,{placement:o,overflows:D}],!D.every(F=>F<=0)){var N,P;const F=(((N=i.flip)==null?void 0:N.index)||0)+1,S=M[F];if(S)return{data:{index:F,overflows:B},reset:{placement:S}};let A=(P=B.filter(j=>j.overflows[0]<=0).sort((j,R)=>j.overflows[1]-R.overflows[1])[0])==null?void 0:P.placement;if(!A)switch(v){case"bestFit":{var V;const j=(V=B.filter(R=>{if($){const T=Fr(R.placement);return T===k||T==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(T=>T>0).reduce((T,W)=>T+W,0)]).sort((R,T)=>R[1]-T[1])[0])==null?void 0:V[0];j&&(A=j);break}case"initialPlacement":A=l;break}if(o!==A)return{reset:{placement:A}}}return{}}}};async function bp(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=er(n),l=Vo(n),c=Fr(n)==="y",u=["left","top"].includes(a)?-1:1,p=i&&c?-1:1,f=Ho(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:C}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof C=="number"&&(v=l==="end"?C*-1:C),c?{x:v*p,y:g*u}:{x:g*u,y:v*p}}const C0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,c=await bp(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},yp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:y,y:k}=b;return{x:y,y:k}}},...c}=Ho(e,t),u={x:n,y:r},p=await m0(t,c),f=Fr(er(o)),g=l0(f);let v=u[g],C=u[f];if(i){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",k=v+p[b],w=v-p[y];v=es(k,v,w)}if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",k=C+p[b],w=C-p[y];C=es(k,C,w)}const x=l.fn({...t,[g]:v,[f]:C});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:i,[f]:a}}}}}};function x0(e){const t=Dt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ot(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Ui(n)!==i||Ui(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Gs(e){return Be(e)?e:e.contextElement}function Lr(e){const t=Gs(e);if(!ot(t))return an(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=x0(t);let a=(i?Ui(n.width):n.width)/r,l=(i?Ui(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const wp=an(0);function b0(e){const t=Mt(e);return!S1()||!t.visualViewport?wp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mt(e)?!1:t}function tr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Gs(e);let a=an(1);t&&(r?Be(r)&&(a=Lr(r)):a=Lr(e));const l=kp(i,n,r)?b0(i):an(0);let c=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,p=o.width/a.x,f=o.height/a.y;if(i){const g=Mt(i),v=r&&Be(r)?Mt(r):r;let C=g,x=Ka(C);for(;x&&r&&v!==C;){const b=Lr(x),y=x.getBoundingClientRect(),k=Dt(x),w=y.left+(x.clientLeft+parseFloat(k.paddingLeft))*b.x,E=y.top+(x.clientTop+parseFloat(k.paddingTop))*b.y;c*=b.x,u*=b.y,p*=b.x,f*=b.y,c+=w,u+=E,C=Mt(x),x=Ka(C)}}return Pr({width:p,height:f,x:c,y:u})}function Xs(e,t){const n=D1(e).scrollLeft;return t?t.left+n:tr(pn(e)).left+n}function y0(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Xs(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Ep(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=pn(r),l=t?I1(t.floating):!1;if(r===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=an(1);const p=an(0),f=ot(r);if((f||!f&&!i)&&((Nn(r)!=="body"||Bo(a))&&(c=D1(r)),ot(r))){const v=tr(r);u=Lr(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const g=a&&!f&&!i?y0(a,c,!0):an(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-c.scrollTop*u.y+p.y+g.y}}function Lp(e){return Array.from(e.getClientRects())}function Mp(e){const t=pn(e),n=D1(e),r=e.ownerDocument.body,o=Jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Xs(e);const l=-n.scrollTop;return Dt(r).direction==="rtl"&&(a+=Jn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function $p(e,t){const n=Mt(e),r=pn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;const u=S1();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l,y:c}}function _p(e,t){const n=tr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ot(e)?Lr(e):an(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:l,x:c,y:u}}function kc(e,t,n){let r;if(t==="viewport")r=$p(e,n);else if(t==="document")r=Mp(pn(e));else if(Be(t))r=_p(t,n);else{const o=b0(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pr(r)}function w0(e,t){const n=_n(e);return n===t||!Be(n)||Bn(n)?!1:Dt(n).position==="fixed"||w0(n,t)}function Ip(e,t){const n=t.get(e);if(n)return n;let r=Tn(e,[],!1).filter(l=>Be(l)&&Nn(l)!=="body"),o=null;const i=Dt(e).position==="fixed";let a=i?_n(e):e;for(;Be(a)&&!Bn(a);){const l=Dt(a),c=Ws(a);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Bo(a)&&!c&&w0(e,a))?r=r.filter(p=>p!==a):o=l,a=_n(a)}return t.set(e,r),r}function Sp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?I1(t)?[]:Ip(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,p)=>{const f=kc(t,p,o);return u.top=Jn(f.top,u.top),u.right=Tr(f.right,u.right),u.bottom=Tr(f.bottom,u.bottom),u.left=Jn(f.left,u.left),u},kc(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Dp(e){const{width:t,height:n}=x0(e);return{width:t,height:n}}function jp(e,t,n){const r=ot(t),o=pn(t),i=n==="fixed",a=tr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=an(0);if(r||!r&&!i)if((Nn(t)!=="body"||Bo(o))&&(l=D1(t)),r){const g=tr(t,!0,i,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&(c.x=Xs(o));const u=o&&!r&&!i?y0(o,l):an(0),p=a.left+l.scrollLeft-c.x-u.x,f=a.top+l.scrollTop-c.y-u.y;return{x:p,y:f,width:a.width,height:a.height}}function da(e){return Dt(e).position==="static"}function Ec(e,t){if(!ot(e)||Dt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pn(e)===n&&(n=n.ownerDocument.body),n}function k0(e,t){const n=Mt(e);if(I1(e))return n;if(!ot(e)){let o=_n(e);for(;o&&!Bn(o);){if(Be(o)&&!da(o))return o;o=_n(o)}return n}let r=Ec(e,t);for(;r&&H8(r)&&da(r);)r=Ec(r,t);return r&&Bn(r)&&da(r)&&!Ws(r)?n:r||V8(e)||n}const Ap=async function(e){const t=this.getOffsetParent||k0,n=this.getDimensions,r=await n(e.floating);return{reference:jp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Rp(e){return Dt(e).direction==="rtl"}const Tp={convertOffsetParentRelativeRectToViewportRelativeRect:Ep,getDocumentElement:pn,getClippingRect:Sp,getOffsetParent:k0,getElementRects:Ap,getClientRects:Lp,getDimensions:Dp,getScale:Lr,isElement:Be,isRTL:Rp};function E0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fp(e,t){let n=null,r;const o=pn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:p,top:f,width:g,height:v}=u;if(l||t(),!g||!v)return;const C=di(f),x=di(o.clientWidth-(p+g)),b=di(o.clientHeight-(f+v)),y=di(p),w={rootMargin:-C+"px "+-x+"px "+-b+"px "+-y+"px",threshold:Jn(0,Tr(1,c))||1};let E=!0;function L($){const M=$[0].intersectionRatio;if(M!==c){if(!E)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!E0(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(L,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(L,w)}n.observe(e)}return a(!0),i}function nr(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Gs(e),p=o||i?[...u?Tn(u):[],...Tn(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=u&&l?Fp(u,n):null;let g=-1,v=null;a&&(v=new ResizeObserver(y=>{let[k]=y;k&&k.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),u&&!c&&v.observe(u),v.observe(t));let C,x=c?tr(e):null;c&&b();function b(){const y=tr(e);x&&!E0(x,y)&&n(),x=y,C=requestAnimationFrame(b)}return n(),()=>{var y;p.forEach(k=>{o&&k.removeEventListener("scroll",n),i&&k.removeEventListener("resize",n)}),f?.(),(y=v)==null||y.disconnect(),v=null,c&&cancelAnimationFrame(C)}}const Pp=C0,Bp=yp,Hp=v0,Lc=g0,Vp=(e,t,n)=>{const r=new Map,o={platform:Tp,...n},i={...o.platform,_c:r};return h0(e,t,{...o,platform:i})};var _i=typeof document<"u"?m.useLayoutEffect:m.useEffect;function t1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!t1(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!t1(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function L0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mc(e,t){const n=L0(e);return Math.round(t*n)/n}function ua(e){const t=d.useRef(e);return _i(()=>{t.current=e}),t}function Np(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[p,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,v]=d.useState(r);t1(g,r)||v(r);const[C,x]=d.useState(null),[b,y]=d.useState(null),k=d.useCallback(R=>{R!==$.current&&($.current=R,x(R))},[]),w=d.useCallback(R=>{R!==M.current&&(M.current=R,y(R))},[]),E=i||C,L=a||b,$=d.useRef(null),M=d.useRef(null),_=d.useRef(p),D=c!=null,B=ua(c),N=ua(o),P=ua(u),V=d.useCallback(()=>{if(!$.current||!M.current)return;const R={placement:t,strategy:n,middleware:g};N.current&&(R.platform=N.current),Vp($.current,M.current,R).then(T=>{const W={...T,isPositioned:P.current!==!1};F.current&&!t1(_.current,W)&&(_.current=W,Ls.flushSync(()=>{f(W)}))})},[g,t,n,N,P]);_i(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const F=d.useRef(!1);_i(()=>(F.current=!0,()=>{F.current=!1}),[]),_i(()=>{if(E&&($.current=E),L&&(M.current=L),E&&L){if(B.current)return B.current(E,L,V);V()}},[E,L,V,B,D]);const S=d.useMemo(()=>({reference:$,floating:M,setReference:k,setFloating:w}),[k,w]),A=d.useMemo(()=>({reference:E,floating:L}),[E,L]),j=d.useMemo(()=>{const R={position:n,left:0,top:0};if(!A.floating)return R;const T=Mc(A.floating,p.x),W=Mc(A.floating,p.y);return l?{...R,transform:"translate("+T+"px, "+W+"px)",...L0(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:W}},[n,l,A.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:V,refs:S,elements:A,floatingStyles:j}),[p,V,S,A,j])}const Op=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Lc({element:r.current,padding:o}).fn(n):{}:r?Lc({element:r,padding:o}).fn(n):{}}}},No=(e,t)=>({...Pp(e),options:[e,t]}),Oo=(e,t)=>({...Bp(e),options:[e,t]}),Wo=(e,t)=>({...Hp(e),options:[e,t]}),Js=(e,t)=>({...Op(e),options:[e,t]});function fn(e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const M0={...d},Wp=M0.useInsertionEffect,Zp=Wp||(e=>e());function Ot(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Zp(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var lt=typeof document<"u"?m.useLayoutEffect:m.useEffect;function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(this,arguments)}let $c=!1,Yp=0;const _c=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Yp++;function zp(){const[e,t]=d.useState(()=>$c?_c():void 0);return lt(()=>{e==null&&t(_c())},[]),d.useEffect(()=>{$c=!0},[]),e}const Gp=M0.useId,rr=Gp||zp;let yo;process.env.NODE_ENV!=="production"&&(yo=new Set);function Xp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=yo)!=null&&e.has(o))){var i;(i=yo)==null||i.add(o),console.warn(o)}}function Jp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=yo)!=null&&e.has(o))){var i;(i=yo)==null||i.add(o),console.error(o)}}const Us=d.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:l=14,height:c=7,tipRadius:u=0,strokeWidth:p=0,staticOffset:f,stroke:g,d:v,style:{transform:C,...x}={},...b}=t;process.env.NODE_ENV!=="production"&&(n||Xp("The `ref` prop is required for `FloatingArrow`."));const y=rr(),[k,w]=d.useState(!1);if(lt(()=>{if(!o)return;Dt(o).direction==="rtl"&&w(!0)},[o]),!o)return null;const[E,L]=r.split("-"),$=E==="top"||E==="bottom";let M=f;($&&a!=null&&a.x||!$&&a!=null&&a.y)&&(M=null);const _=p*2,D=_/2,B=l/2*(u/-8+1),N=c/2*u/4,P=!!v,V=M&&L==="end"?"bottom":"top";let F=M&&L==="end"?"right":"left";M&&k&&(F=L==="end"?"left":"right");const S=i?.x!=null?M||i.x:"",A=i?.y!=null?M||i.y:"",j=v||"M0,0"+(" H"+l)+(" L"+(l-B)+","+(c-N))+(" Q"+l/2+","+c+" "+B+","+(c-N))+" Z",R={top:P?"rotate(180deg)":"",left:P?"rotate(90deg)":"rotate(-90deg)",bottom:P?"":"rotate(180deg)",right:P?"rotate(-90deg)":"rotate(90deg)"}[E];return d.createElement("svg",bo({},b,{"aria-hidden":!0,ref:n,width:P?l:l+_,height:l,viewBox:"0 0 "+l+" "+(c>l?c:l),style:{position:"absolute",pointerEvents:"none",[F]:S,[V]:A,[E]:$||P?"100%":"calc(100% - "+_/2+"px)",transform:[R,C].filter(T=>!!T).join(" "),...x}}),_>0&&d.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:g,strokeWidth:_+(v?0:1),d:j}),d.createElement("path",{stroke:_&&!v?b.fill:"none",d:j}),d.createElement("clipPath",{id:y},d.createElement("rect",{x:-D,y:D*(P?-1:1),width:l+_,height:l})))});function Up(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Qp=d.createContext(null),Kp=d.createContext(null),Qs=()=>{var e;return((e=d.useContext(Qp))==null?void 0:e.id)||null},A1=()=>d.useContext(Kp);function or(e){return"data-floating-ui-"+e}function rn(e){const t=m.useRef(e);return lt(()=>{t.current=e}),t}const Ic=or("safe-polygon");function pa(e,t,n){return n&&!xo(n)?0:typeof e=="number"?e:e?.[t]}function Ks(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:p=!1,restMs:f=0,move:g=!0}=t,v=A1(),C=Qs(),x=rn(u),b=rn(c),y=rn(n),k=d.useRef(),w=d.useRef(-1),E=d.useRef(),L=d.useRef(-1),$=d.useRef(!0),M=d.useRef(!1),_=d.useRef(()=>{}),D=d.useRef(!1),B=d.useCallback(()=>{var j;const R=(j=o.current.openEvent)==null?void 0:j.type;return R?.includes("mouse")&&R!=="mousedown"},[o]);d.useEffect(()=>{if(!l)return;function j(R){let{open:T}=R;T||(clearTimeout(w.current),clearTimeout(L.current),$.current=!0,D.current=!1)}return i.on("openchange",j),()=>{i.off("openchange",j)}},[l,i]),d.useEffect(()=>{if(!l||!x.current||!n)return;function j(T){B()&&r(!1,T,"hover")}const R=ht(a.floating).documentElement;return R.addEventListener("mouseleave",j),()=>{R.removeEventListener("mouseleave",j)}},[a.floating,n,r,l,x,B]);const N=d.useCallback(function(j,R,T){R===void 0&&(R=!0),T===void 0&&(T="hover");const W=pa(b.current,"close",k.current);W&&!E.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,j,T),W)):R&&(clearTimeout(w.current),r(!1,j,T))},[b,r]),P=Ot(()=>{_.current(),E.current=void 0}),V=Ot(()=>{if(M.current){const j=ht(a.floating).body;j.style.pointerEvents="",j.removeAttribute(Ic),M.current=!1}}),F=Ot(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);d.useEffect(()=>{if(!l)return;function j(Z){if(clearTimeout(w.current),$.current=!1,p&&!xo(k.current)||f>0&&!pa(b.current,"open"))return;const X=pa(b.current,"open",k.current);X?w.current=window.setTimeout(()=>{y.current||r(!0,Z,"hover")},X):n||r(!0,Z,"hover")}function R(Z){if(F())return;_.current();const X=ht(a.floating);if(clearTimeout(L.current),D.current=!1,x.current&&o.current.floatingContext){n||clearTimeout(w.current),E.current=x.current({...o.current.floatingContext,tree:v,x:Z.clientX,y:Z.clientY,onClose(){V(),P(),F()||N(Z,!0,"safe-polygon")}});const re=E.current;X.addEventListener("mousemove",re),_.current=()=>{X.removeEventListener("mousemove",re)};return}(k.current==="touch"?!rt(a.floating,Z.relatedTarget):!0)&&N(Z)}function T(Z){F()||o.current.floatingContext&&(x.current==null||x.current({...o.current.floatingContext,tree:v,x:Z.clientX,y:Z.clientY,onClose(){V(),P(),F()||N(Z)}})(Z))}if(Be(a.domReference)){var W;const Z=a.domReference;return n&&Z.addEventListener("mouseleave",T),(W=a.floating)==null||W.addEventListener("mouseleave",T),g&&Z.addEventListener("mousemove",j,{once:!0}),Z.addEventListener("mouseenter",j),Z.addEventListener("mouseleave",R),()=>{var X;n&&Z.removeEventListener("mouseleave",T),(X=a.floating)==null||X.removeEventListener("mouseleave",T),g&&Z.removeEventListener("mousemove",j),Z.removeEventListener("mouseenter",j),Z.removeEventListener("mouseleave",R)}}},[a,l,e,p,f,g,N,P,V,r,n,y,v,b,x,o,F]),lt(()=>{var j;if(l&&n&&(j=x.current)!=null&&j.__options.blockPointerEvents&&B()){M.current=!0;const T=a.floating;if(Be(a.domReference)&&T){var R;const W=ht(a.floating).body;W.setAttribute(Ic,"");const Z=a.domReference,X=v==null||(R=v.nodesRef.current.find(me=>me.id===C))==null||(R=R.context)==null?void 0:R.elements.floating;return X&&(X.style.pointerEvents=""),W.style.pointerEvents="none",Z.style.pointerEvents="auto",T.style.pointerEvents="auto",()=>{W.style.pointerEvents="",Z.style.pointerEvents="",T.style.pointerEvents=""}}}},[l,n,C,a,v,x,B]),lt(()=>{n||(k.current=void 0,D.current=!1,P(),V())},[n,P,V]),d.useEffect(()=>()=>{P(),clearTimeout(w.current),clearTimeout(L.current),V()},[l,a.domReference,P,V]);const S=d.useMemo(()=>{function j(R){k.current=R.pointerType}return{onPointerDown:j,onPointerEnter:j,onMouseMove(R){const{nativeEvent:T}=R;function W(){!$.current&&!y.current&&r(!0,T,"hover")}p&&!xo(k.current)||n||f===0||D.current&&R.movementX**2+R.movementY**2<2||(clearTimeout(L.current),k.current==="touch"?W():(D.current=!0,L.current=window.setTimeout(W,f)))}}},[p,r,n,y,f]),A=d.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(j){F()||N(j.nativeEvent,!1)}}),[N,F]);return d.useMemo(()=>l?{reference:S,floating:A}:{},[l,S,A])}let Sc=0;function vr(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Sc);const i=()=>e?.focus({preventScroll:n});o?i():Sc=requestAnimationFrame(i)}function qp(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i?.parentId,i&&(r=r.concat(i))}return r}function Mr(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}let Cr=new WeakMap,ui=new WeakSet,pi={},fa=0;const ef=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,$0=e=>e&&(e.host||$0(e.parentNode)),tf=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=$0(n);return e.contains(r)?r:null}).filter(n=>n!=null);function nf(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=tf(t,e),l=new Set,c=new Set(a),u=[];pi[o]||(pi[o]=new WeakMap);const p=pi[o];a.forEach(f),g(t),l.clear();function f(v){!v||l.has(v)||(l.add(v),v.parentNode&&f(v.parentNode))}function g(v){!v||c.has(v)||[].forEach.call(v.children,C=>{if(Nn(C)!=="script")if(l.has(C))g(C);else{const x=i?C.getAttribute(i):null,b=x!==null&&x!=="false",y=(Cr.get(C)||0)+1,k=(p.get(C)||0)+1;Cr.set(C,y),p.set(C,k),u.push(C),y===1&&b&&ui.add(C),k===1&&C.setAttribute(o,""),!b&&i&&C.setAttribute(i,"true")}})}return fa++,()=>{u.forEach(v=>{const C=(Cr.get(v)||0)-1,x=(p.get(v)||0)-1;Cr.set(v,C),p.set(v,x),C||(!ui.has(v)&&i&&v.removeAttribute(i),ui.delete(v)),x||v.removeAttribute(o)}),fa--,fa||(Cr=new WeakMap,Cr=new WeakMap,ui=new WeakSet,pi={})}}function Dc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=ht(e[0]).body;return nf(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const wo=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function _0(e,t){const n=j1(e,wo());t==="prev"&&n.reverse();const r=n.indexOf(vn(ht(e)));return n.slice(r+1)[0]}function I0(){return _0(document.body,"next")}function S0(){return _0(document.body,"prev")}function fo(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!rt(n,r)}function rf(e){j1(e,wo()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function jc(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const R1={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};let of;function Ac(e){e.key==="Tab"&&(e.target,clearTimeout(of))}const n1=d.forwardRef(function(t,n){const[r,o]=d.useState();lt(()=>(s0()&&o("button"),document.addEventListener("keydown",Ac),()=>{document.removeEventListener("keydown",Ac)}),[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[or("focus-guard")]:"",style:R1};return d.createElement("span",bo({},t,i))}),D0=d.createContext(null),Rc=or("portal");function af(e){e===void 0&&(e={});const{id:t,root:n}=e,r=rr(),o=j0(),[i,a]=d.useState(null),l=d.useRef(null);return lt(()=>()=>{i?.remove(),queueMicrotask(()=>{l.current=null})},[i]),lt(()=>{if(!r||l.current)return;const c=t?document.getElementById(t):null;if(!c)return;const u=document.createElement("div");u.id=r,u.setAttribute(Rc,""),c.appendChild(u),l.current=u,a(u)},[t,r]),lt(()=>{if(n===null||!r||l.current)return;let c=n||o?.portalNode;c&&!Be(c)&&(c=c.current),c=c||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,c.appendChild(u));const p=document.createElement("div");p.id=r,p.setAttribute(Rc,""),c=u||c,c.appendChild(p),l.current=p,a(p)},[t,n,r,o]),i}function Zo(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=af({id:n,root:r}),[a,l]=d.useState(null),c=d.useRef(null),u=d.useRef(null),p=d.useRef(null),f=d.useRef(null),g=a?.modal,v=a?.open,C=!!a&&!a.modal&&a.open&&o&&!!(r||i);return d.useEffect(()=>{if(!i||!o||g)return;function x(b){i&&fo(b)&&(b.type==="focusin"?jc:rf)(i)}return i.addEventListener("focusin",x,!0),i.addEventListener("focusout",x,!0),()=>{i.removeEventListener("focusin",x,!0),i.removeEventListener("focusout",x,!0)}},[i,o,g]),d.useEffect(()=>{i&&(v||jc(i))},[v,i]),d.createElement(D0.Provider,{value:d.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:p,afterInsideRef:f,portalNode:i,setFocusManagerState:l}),[o,i])},C&&i&&d.createElement(n1,{"data-type":"outside",ref:c,onFocus:x=>{if(fo(x,i)){var b;(b=p.current)==null||b.focus()}else{const y=S0()||a?.refs.domReference.current;y?.focus()}}}),C&&i&&d.createElement("span",{"aria-owns":i.id,style:R1}),i&&Ls.createPortal(t,i),C&&i&&d.createElement(n1,{"data-type":"outside",ref:u,onFocus:x=>{if(fo(x,i)){var b;(b=f.current)==null||b.focus()}else{const y=I0()||a?.refs.domReference.current;y?.focus(),a?.closeOnFocusOut&&a?.onOpenChange(!1,x.nativeEvent,"focus-out")}}}))}const j0=()=>d.useContext(D0),rs="data-floating-ui-focusable";function sf(e){return e?e.hasAttribute(rs)?e:e.querySelector("["+rs+"]")||e:null}const lf=20;let Zn=[];function ha(e){Zn=Zn.filter(n=>n.isConnected);let t=e;if(!(!t||Nn(t)==="body")){if(!xp(t,wo())){const n=j1(t,wo())[0];n&&(t=n)}Zn.push(t),Zn.length>lf&&(Zn=Zn.slice(-20))}}function Tc(){return Zn.slice().reverse().find(e=>e.isConnected)}const cf=d.forwardRef(function(t,n){return d.createElement("button",bo({},t,{type:"button",ref:n,tabIndex:-1,style:R1}))});function qs(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:f=!0}=e,{open:g,refs:v,nodeId:C,onOpenChange:x,events:b,dataRef:y,floatingId:k,elements:{domReference:w,floating:E}}=t,L=typeof a=="number"&&a<0,$=G8(w)&&L,M=ef()?i:!0,_=rn(o),D=rn(a),B=rn(l),N=A1(),P=j0(),V=d.useRef(null),F=d.useRef(null),S=d.useRef(!1),A=d.useRef(!1),j=d.useRef(-1),R=P!=null,T=sf(E),W=Ot(function(re){return re===void 0&&(re=T),re?j1(re,wo()):[]}),Z=Ot(re=>{const oe=W(re);return _.current.map(z=>w&&z==="reference"?w:T&&z==="floating"?T:oe).filter(Boolean).flat()});d.useEffect(()=>{if(r||!u)return;function re(z){if(z.key==="Tab"){rt(T,vn(ht(T)))&&W().length===0&&!$&&ca(z);const te=Z(),Q=bn(z);_.current[0]==="reference"&&Q===w&&(ca(z),z.shiftKey?vr(te[te.length-1]):vr(te[1])),_.current[1]==="floating"&&Q===T&&z.shiftKey&&(ca(z),vr(te[0]))}}const oe=ht(T);return oe.addEventListener("keydown",re),()=>{oe.removeEventListener("keydown",re)}},[r,w,T,u,_,$,W,Z]),d.useEffect(()=>{if(r||!E)return;function re(oe){const z=bn(oe),Q=W().indexOf(z);Q!==-1&&(j.current=Q)}return E.addEventListener("focusin",re),()=>{E.removeEventListener("focusin",re)}},[r,E,W]),d.useEffect(()=>{if(r||!f)return;function re(){A.current=!0,setTimeout(()=>{A.current=!1})}function oe(z){const te=z.relatedTarget;queueMicrotask(()=>{const Q=!(rt(w,te)||rt(E,te)||rt(te,E)||rt(P?.portalNode,te)||te!=null&&te.hasAttribute(or("focus-guard"))||N&&(Mr(N.nodesRef.current,C).find(pe=>{var ve,He;return rt((ve=pe.context)==null?void 0:ve.elements.floating,te)||rt((He=pe.context)==null?void 0:He.elements.domReference,te)})||qp(N.nodesRef.current,C).find(pe=>{var ve,He;return((ve=pe.context)==null?void 0:ve.elements.floating)===te||((He=pe.context)==null?void 0:He.elements.domReference)===te})));if(c&&Q&&vn(ht(T))===ht(T).body){ot(T)&&T.focus();const pe=j.current,ve=W(),He=ve[pe]||ve[ve.length-1]||T;ot(He)&&He.focus()}($||!u)&&te&&Q&&!A.current&&te!==Tc()&&(S.current=!0,x(!1,z,"focus-out"))})}if(E&&ot(w))return w.addEventListener("focusout",oe),w.addEventListener("pointerdown",re),E.addEventListener("focusout",oe),()=>{w.removeEventListener("focusout",oe),w.removeEventListener("pointerdown",re),E.removeEventListener("focusout",oe)}},[r,w,E,T,u,C,N,P,x,f,c,W,$]),d.useEffect(()=>{var re;if(r)return;const oe=Array.from((P==null||(re=P.portalNode)==null?void 0:re.querySelectorAll("["+or("portal")+"]"))||[]);if(E){const z=[E,...oe,V.current,F.current,_.current.includes("reference")||$?w:null].filter(Q=>Q!=null),te=u||$?Dc(z,M,!M):Dc(z);return()=>{te()}}},[r,w,E,u,_,P,$,M]),lt(()=>{if(r||!ot(T))return;const re=ht(T),oe=vn(re);queueMicrotask(()=>{const z=Z(T),te=D.current,Q=(typeof te=="number"?z[te]:te.current)||T,pe=rt(T,oe);!L&&!pe&&g&&vr(Q,{preventScroll:Q===T})})},[r,g,T,L,Z,D]),lt(()=>{if(r||!T)return;let re=!1;const oe=ht(T),z=vn(oe);let Q=y.current.openEvent;ha(z);function pe(G){let{open:Lt,reason:ut,event:Ge,nested:Gt}=G;Lt&&(Q=Ge),ut==="escape-key"&&v.domReference.current&&ha(v.domReference.current),ut==="hover"&&Ge.type==="mouseleave"&&(S.current=!0),ut==="outside-press"&&(Gt?(S.current=!1,re=!0):S.current=!(N8(Ge)||a0(Ge)))}b.on("openchange",pe);const ve=oe.createElement("span");ve.setAttribute("tabindex","-1"),ve.setAttribute("aria-hidden","true"),Object.assign(ve.style,R1),R&&w&&w.insertAdjacentElement("afterend",ve);function He(){return typeof B.current=="boolean"?Tc()||ve:B.current.current||ve}return()=>{b.off("openchange",pe);const G=vn(oe),Lt=rt(E,G)||N&&Mr(N.nodesRef.current,C).some(Gt=>{var ee;return rt((ee=Gt.context)==null?void 0:ee.elements.floating,G)});(Lt||Q&&["click","mousedown"].includes(Q.type))&&v.domReference.current&&ha(v.domReference.current);const Ge=He();queueMicrotask(()=>{B.current&&!S.current&&ot(Ge)&&(!(Ge!==G&&G!==oe.body)||Lt)&&Ge.focus({preventScroll:re}),ve.remove()})}},[r,E,T,B,y,v,b,N,C,R,w]),d.useEffect(()=>{queueMicrotask(()=>{S.current=!1})},[r]),lt(()=>{if(!r&&P)return P.setFocusManagerState({modal:u,closeOnFocusOut:f,open:g,onOpenChange:x,refs:v}),()=>{P.setFocusManagerState(null)}},[r,P,u,g,x,v,f]),lt(()=>{if(r||!T||typeof MutationObserver!="function"||L)return;const re=()=>{const z=T.getAttribute("tabindex"),te=W(),Q=vn(ht(E)),pe=te.indexOf(Q);pe!==-1&&(j.current=pe),_.current.includes("floating")||Q!==v.domReference.current&&te.length===0?z!=="0"&&T.setAttribute("tabindex","0"):z!=="-1"&&T.setAttribute("tabindex","-1")};re();const oe=new MutationObserver(re);return oe.observe(T,{childList:!0,subtree:!0,attributes:!0}),()=>{oe.disconnect()}},[r,E,T,v,_,W,L]);function X(re){return r||!p||!u?null:d.createElement(cf,{ref:re==="start"?V:F,onClick:oe=>x(!1,oe.nativeEvent)},typeof p=="string"?p:"Dismiss")}const me=!r&&M&&(u?!$:!0)&&(R||u);return d.createElement(d.Fragment,null,me&&d.createElement(n1,{"data-type":"inside",ref:P?.beforeInsideRef,onFocus:re=>{if(u){const z=Z();vr(o[0]==="reference"?z[0]:z[z.length-1])}else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(S.current=!1,fo(re,P.portalNode)){const z=I0()||w;z?.focus()}else{var oe;(oe=P.beforeOutsideRef.current)==null||oe.focus()}}}),!$&&X("start"),n,X("end"),me&&d.createElement(n1,{"data-type":"inside",ref:P?.afterInsideRef,onFocus:re=>{if(u)vr(Z()[0]);else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(f&&(S.current=!0),fo(re,P.portalNode)){const z=S0()||w;z?.focus()}else{var oe;(oe=P.afterOutsideRef.current)==null||oe.focus()}}}))}function Fc(e){return ot(e.target)&&e.target.tagName==="BUTTON"}function Pc(e){return Zs(e)}function Yo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:p=!0,stickIfOpen:f=!0}=t,g=d.useRef(),v=d.useRef(!1),C=d.useMemo(()=>({onPointerDown(x){g.current=x.pointerType},onMouseDown(x){const b=g.current;x.button===0&&l!=="click"&&(xo(b,!0)&&u||(n&&c&&(!(o.current.openEvent&&f)||o.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const b=g.current;if(l==="mousedown"&&g.current){g.current=void 0;return}xo(b,!0)&&u||(n&&c&&(!(o.current.openEvent&&f)||o.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){g.current=void 0,!(x.defaultPrevented||!p||Fc(x))&&(x.key===" "&&!Pc(i)&&(x.preventDefault(),v.current=!0),x.key==="Enter"&&r(!(n&&c),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!p||Fc(x)||Pc(i)||x.key===" "&&v.current&&(v.current=!1,r(!(n&&c),x.nativeEvent,"click"))}}),[o,i,l,u,p,r,n,f,c]);return d.useMemo(()=>a?{reference:C}:{},[a,C])}const df={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},uf={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Bc=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function zo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:p=!1,referencePressEvent:f="pointerdown",ancestorScroll:g=!1,bubbles:v,capture:C}=t,x=A1(),b=Ot(typeof c=="function"?c:()=>!1),y=typeof c=="function"?b:c,k=d.useRef(!1),w=d.useRef(!1),{escapeKey:E,outsidePress:L}=Bc(v),{escapeKey:$,outsidePress:M}=Bc(C),_=d.useRef(!1),D=Ot(S=>{var A;if(!n||!a||!l||S.key!=="Escape"||_.current)return;const j=(A=i.current.floatingContext)==null?void 0:A.nodeId,R=x?Mr(x.nodesRef.current,j):[];if(!E&&(S.stopPropagation(),R.length>0)){let T=!0;if(R.forEach(W=>{var Z;if((Z=W.context)!=null&&Z.open&&!W.context.dataRef.current.__escapeKeyBubbles){T=!1;return}}),!T)return}r(!1,Z8(S)?S.nativeEvent:S,"escape-key")}),B=Ot(S=>{var A;const j=()=>{var R;D(S),(R=bn(S))==null||R.removeEventListener("keydown",j)};(A=bn(S))==null||A.addEventListener("keydown",j)}),N=Ot(S=>{var A;const j=k.current;k.current=!1;const R=w.current;if(w.current=!1,u==="click"&&R||j||typeof y=="function"&&!y(S))return;const T=bn(S),W="["+or("inert")+"]",Z=ht(o.floating).querySelectorAll(W);let X=Be(T)?T:null;for(;X&&!Bn(X);){const z=_n(X);if(Bn(z)||!Be(z))break;X=z}if(Z.length&&Be(T)&&!Y8(T)&&!rt(T,o.floating)&&Array.from(Z).every(z=>!rt(X,z)))return;if(ot(T)&&F){const z=T.clientWidth>0&&T.scrollWidth>T.clientWidth,te=T.clientHeight>0&&T.scrollHeight>T.clientHeight;let Q=te&&S.offsetX>T.clientWidth;if(te&&Dt(T).direction==="rtl"&&(Q=S.offsetX<=T.offsetWidth-T.clientWidth),Q||z&&S.offsetY>T.clientHeight)return}const me=(A=i.current.floatingContext)==null?void 0:A.nodeId,re=x&&Mr(x.nodesRef.current,me).some(z=>{var te;return la(S,(te=z.context)==null?void 0:te.elements.floating)});if(la(S,o.floating)||la(S,o.domReference)||re)return;const oe=x?Mr(x.nodesRef.current,me):[];if(oe.length>0){let z=!0;if(oe.forEach(te=>{var Q;if((Q=te.context)!=null&&Q.open&&!te.context.dataRef.current.__outsidePressBubbles){z=!1;return}}),!z)return}r(!1,S,"outside-press")}),P=Ot(S=>{var A;const j=()=>{var R;N(S),(R=bn(S))==null||R.removeEventListener(u,j)};(A=bn(S))==null||A.addEventListener(u,j)});d.useEffect(()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=E,i.current.__outsidePressBubbles=L;let S=-1;function A(Z){r(!1,Z,"ancestor-scroll")}function j(){window.clearTimeout(S),_.current=!0}function R(){S=window.setTimeout(()=>{_.current=!1},S1()?5:0)}const T=ht(o.floating);l&&(T.addEventListener("keydown",$?B:D,$),T.addEventListener("compositionstart",j),T.addEventListener("compositionend",R)),y&&T.addEventListener(u,M?P:N,M);let W=[];return g&&(Be(o.domReference)&&(W=Tn(o.domReference)),Be(o.floating)&&(W=W.concat(Tn(o.floating))),!Be(o.reference)&&o.reference&&o.reference.contextElement&&(W=W.concat(Tn(o.reference.contextElement)))),W=W.filter(Z=>{var X;return Z!==((X=T.defaultView)==null?void 0:X.visualViewport)}),W.forEach(Z=>{Z.addEventListener("scroll",A,{passive:!0})}),()=>{l&&(T.removeEventListener("keydown",$?B:D,$),T.removeEventListener("compositionstart",j),T.removeEventListener("compositionend",R)),y&&T.removeEventListener(u,M?P:N,M),W.forEach(Z=>{Z.removeEventListener("scroll",A)}),window.clearTimeout(S)}},[i,o,l,y,u,n,r,g,a,E,L,D,$,B,N,M,P]),d.useEffect(()=>{k.current=!1},[y,u]);const V=d.useMemo(()=>({onKeyDown:D,[df[f]]:S=>{p&&r(!1,S.nativeEvent,"reference-press")}}),[D,r,p,f]),F=d.useMemo(()=>({onKeyDown:D,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[uf[u]]:()=>{k.current=!0}}),[D,u]);return d.useMemo(()=>a?{reference:V,floating:F}:{},[a,V,F])}function pf(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=rr(),i=d.useRef({}),[a]=d.useState(()=>Up()),l=Qs()!=null;if(process.env.NODE_ENV!=="production"){const v=r.reference;v&&!Be(v)&&Jp("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=d.useState(r.reference),p=Ot((v,C,x)=>{i.current.openEvent=v?C:void 0,a.emit("openchange",{open:v,event:C,reason:x,nested:l}),n?.(v,C,x)}),f=d.useMemo(()=>({setPositionReference:u}),[]),g=d.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return d.useMemo(()=>({dataRef:i,open:t,onOpenChange:p,elements:g,events:a,floatingId:o,refs:f}),[t,p,g,a,o,f])}function Go(e){e===void 0&&(e={});const{nodeId:t}=e,n=pf({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=d.useState(null),[l,c]=d.useState(null),p=o?.domReference||i,f=d.useRef(null),g=A1();lt(()=>{p&&(f.current=p)},[p]);const v=Np({...e,elements:{...o,...l&&{reference:l}}}),C=d.useCallback(w=>{const E=Be(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;c(E),v.refs.setReference(E)},[v.refs]),x=d.useCallback(w=>{(Be(w)||w===null)&&(f.current=w,a(w)),(Be(v.refs.reference.current)||v.refs.reference.current===null||w!==null&&!Be(w))&&v.refs.setReference(w)},[v.refs]),b=d.useMemo(()=>({...v.refs,setReference:x,setPositionReference:C,domReference:f}),[v.refs,x,C]),y=d.useMemo(()=>({...v.elements,domReference:p}),[v.elements,p]),k=d.useMemo(()=>({...v,...r,refs:b,elements:y,nodeId:t}),[v,b,y,t,r]);return lt(()=>{r.dataRef.current.floatingContext=k;const w=g?.nodesRef.current.find(E=>E.id===t);w&&(w.context=k)}),d.useMemo(()=>({...v,context:k,refs:b,elements:y}),[v,b,y,k])}function ff(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=d.useRef(!1),p=d.useRef(),f=d.useRef(!0);d.useEffect(()=>{if(!l)return;const v=Mt(a.domReference);function C(){!n&&ot(a.domReference)&&a.domReference===vn(ht(a.domReference))&&(u.current=!0)}function x(){f.current=!0}return v.addEventListener("blur",C),v.addEventListener("keydown",x,!0),()=>{v.removeEventListener("blur",C),v.removeEventListener("keydown",x,!0)}},[a.domReference,n,l]),d.useEffect(()=>{if(!l)return;function v(C){let{reason:x}=C;(x==="reference-press"||x==="escape-key")&&(u.current=!0)}return o.on("openchange",v),()=>{o.off("openchange",v)}},[o,l]),d.useEffect(()=>()=>{clearTimeout(p.current)},[]);const g=d.useMemo(()=>({onPointerDown(v){a0(v.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(v){if(u.current)return;const C=bn(v.nativeEvent);if(c&&Be(C))try{if(s0()&&O8())throw Error();if(!C.matches(":focus-visible"))return}catch{if(!f.current&&!Zs(C))return}r(!0,v.nativeEvent,"focus")},onBlur(v){u.current=!1;const C=v.relatedTarget,x=v.nativeEvent,b=Be(C)&&C.hasAttribute(or("focus-guard"))&&C.getAttribute("data-type")==="outside";p.current=window.setTimeout(()=>{var y;const k=vn(a.domReference?a.domReference.ownerDocument:document);!C&&k===a.domReference||rt((y=i.current.floatingContext)==null?void 0:y.refs.floating.current,k)||rt(a.domReference,k)||b||r(!1,x,"focus")})}}),[i,a.domReference,r,c]);return d.useMemo(()=>l?{reference:g}:{},[l,g])}const Hc="active",Vc="selected";function ma(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Hc]:a,[Vc]:l,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[rs]:""},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(c=>{let[u,p]=c;if(!(o&&[Hc,Vc].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof p=="function"){var f;(f=r.get(u))==null||f.push(p),a[u]=function(){for(var g,v=arguments.length,C=new Array(v),x=0;x<v;x++)C[x]=arguments[x];return(g=r.get(u))==null?void 0:g.map(b=>b(...C)).find(b=>b!==void 0)}}}else a[u]=p}),a),{})}}function Xo(e){e===void 0&&(e=[]);const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),o=d.useCallback(l=>ma(l,e,"reference"),t),i=d.useCallback(l=>ma(l,e,"floating"),n),a=d.useCallback(l=>ma(l,e,"item"),r);return d.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}const hf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Jo(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,l=(n=hf.get(a))!=null?n:a,c=rr(),p=Qs()!=null,f=d.useMemo(()=>l==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?o:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:c},...l==="menu"&&p&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[l,o,p,r,c,a]),g=d.useMemo(()=>{const C={id:o,...l&&{role:l}};return l==="tooltip"||a==="label"?C:{...C,...l==="menu"&&{"aria-labelledby":c}}},[l,o,c,a]),v=d.useCallback(C=>{let{active:x,selected:b}=C;const y={role:"option",...x&&{id:o+"-option"}};switch(a){case"select":return{...y,"aria-selected":x&&b};case"combobox":return{...y,...x&&{"aria-selected":!0}}}return{}},[o,a]);return d.useMemo(()=>i?{reference:f,floating:g,item:v}:{},[i,f,g,v])}const Nc=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function xr(e,t){return typeof e=="function"?e(t):e}function mf(e,t){const[n,r]=d.useState(e);return e&&!n&&r(!0),d.useEffect(()=>{if(!e&&n){const o=setTimeout(()=>r(!1),t);return()=>clearTimeout(o)}},[e,n,t]),n}function gf(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,a=(typeof o=="number"?o:o.close)||0,[l,c]=d.useState("unmounted"),u=mf(n,a);return!u&&l==="close"&&c("unmounted"),lt(()=>{if(r){if(n){c("initial");const p=requestAnimationFrame(()=>{c("open")});return()=>{cancelAnimationFrame(p)}}c("close")}},[n,r]),{isMounted:u,status:l}}function Uo(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:o,common:i,duration:a=250}=t,l=e.placement,c=l.split("-")[0],u=d.useMemo(()=>({side:c,placement:l}),[c,l]),p=typeof a=="number",f=(p?a:a.open)||0,g=(p?a:a.close)||0,[v,C]=d.useState(()=>({...xr(i,u),...xr(n,u)})),{isMounted:x,status:b}=gf(e,{duration:a}),y=rn(n),k=rn(r),w=rn(o),E=rn(i);return lt(()=>{const L=xr(y.current,u),$=xr(w.current,u),M=xr(E.current,u),_=xr(k.current,u)||Object.keys(L).reduce((D,B)=>(D[B]="",D),{});if(b==="initial"&&C(D=>({transitionProperty:D.transitionProperty,...M,...L})),b==="open"&&C({transitionProperty:Object.keys(_).map(Nc).join(","),transitionDuration:f+"ms",...M,..._}),b==="close"){const D=$||L;C({transitionProperty:Object.keys(D).map(Nc).join(","),transitionDuration:g+"ms",...M,...D})}},[g,w,y,k,E,f,b,u]),{isMounted:x,styles:v}}function Oc(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a<i;l=a++){const[c,u]=t[a]||[0,0],[p,f]=t[l]||[0,0];u>=r!=f>=r&&n<=(p-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function vf(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Cf(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,c=performance.now();function u(f,g){const v=performance.now(),C=v-c;if(a===null||l===null||C===0)return a=f,l=g,c=v,null;const x=f-a,b=g-l,k=Math.sqrt(x*x+b*b)/C;return a=f,l=g,c=v,k}const p=f=>{let{x:g,y:v,placement:C,elements:x,onClose:b,nodeId:y,tree:k}=f;return function(E){function L(){clearTimeout(o),b()}if(clearTimeout(o),!x.domReference||!x.floating||C==null||g==null||v==null)return;const{clientX:$,clientY:M}=E,_=[$,M],D=bn(E),B=E.type==="mouseleave",N=rt(x.floating,D),P=rt(x.domReference,D),V=x.domReference.getBoundingClientRect(),F=x.floating.getBoundingClientRect(),S=C.split("-")[0],A=g>F.right-F.width/2,j=v>F.bottom-F.height/2,R=vf(_,V),T=F.width>V.width,W=F.height>V.height,Z=(T?V:F).left,X=(T?V:F).right,me=(W?V:F).top,re=(W?V:F).bottom;if(N&&(i=!0,!B))return;if(P&&(i=!1),P&&!B){i=!0;return}if(B&&Be(E.relatedTarget)&&rt(x.floating,E.relatedTarget)||k&&Mr(k.nodesRef.current,y).some(te=>{let{context:Q}=te;return Q?.open}))return;if(S==="top"&&v>=V.bottom-1||S==="bottom"&&v<=V.top+1||S==="left"&&g>=V.right-1||S==="right"&&g<=V.left+1)return L();let oe=[];switch(S){case"top":oe=[[Z,V.top+1],[Z,F.bottom-1],[X,F.bottom-1],[X,V.top+1]];break;case"bottom":oe=[[Z,F.top+1],[Z,V.bottom-1],[X,V.bottom-1],[X,F.top+1]];break;case"left":oe=[[F.right-1,re],[F.right-1,me],[V.left+1,me],[V.left+1,re]];break;case"right":oe=[[V.right-1,re],[V.right-1,me],[F.left+1,me],[F.left+1,re]];break}function z(te){let[Q,pe]=te;switch(S){case"top":{const ve=[T?Q+t/2:A?Q+t*4:Q-t*4,pe+t+1],He=[T?Q-t/2:A?Q+t*4:Q-t*4,pe+t+1],G=[[F.left,A||T?F.bottom-t:F.top],[F.right,A?T?F.bottom-t:F.top:F.bottom-t]];return[ve,He,...G]}case"bottom":{const ve=[T?Q+t/2:A?Q+t*4:Q-t*4,pe-t],He=[T?Q-t/2:A?Q+t*4:Q-t*4,pe-t],G=[[F.left,A||T?F.top+t:F.bottom],[F.right,A?T?F.top+t:F.bottom:F.top+t]];return[ve,He,...G]}case"left":{const ve=[Q+t+1,W?pe+t/2:j?pe+t*4:pe-t*4],He=[Q+t+1,W?pe-t/2:j?pe+t*4:pe-t*4];return[...[[j||W?F.right-t:F.left,F.top],[j?W?F.right-t:F.left:F.right-t,F.bottom]],ve,He]}case"right":{const ve=[Q-t,W?pe+t/2:j?pe+t*4:pe-t*4],He=[Q-t,W?pe-t/2:j?pe+t*4:pe-t*4],G=[[j||W?F.left+t:F.right,F.top],[j?W?F.left+t:F.right:F.left+t,F.bottom]];return[ve,He,...G]}}}if(!Oc([$,M],oe)){if(i&&!R)return L();if(!B&&r){const te=u(E.clientX,E.clientY);if(te!==null&&te<.1)return L()}Oc([$,M],z([g,v]))?!i&&r&&(o=window.setTimeout(L,40)):L()}}};return p.__options={blockPointerEvents:n},p}const On=e=>{if(Ar){const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}},Qo=(e,t,n={})=>{const r={path:"/","max-age":31104e3,...n},o=window.location.origin;o.includes("localhost")?r.domain="localhost":o.includes("profinansy.ae")?r.domain=".profinansy.ae":o.includes("qa.profinansy.dev")?r.domain=".profinansy.dev":r.domain=".profinansy.ru",n.expires instanceof Date&&(r.expires=n.expires.toUTCString());let i=encodeURIComponent(e)+"="+encodeURIComponent(t);for(const a in r){i+="; "+a;const l=r[a];l!==!0&&(i+="="+l)}document.cookie=i},xf=e=>{Qo(e,"",{"max-age":-1})},os=["/login","/idv","/method"],A0=m.createContext({mode:"light",selectedMode:"light",toggleTheme:null,setShowTheme:null,unAvailablePagesTheme:os}),ne=()=>m.useContext(A0),Wc="selected_theme",bf=({children:e,selectedTheme:t})=>{const[n,r]=m.useState(t??"light"),[o,i]=m.useState(t??"light");m.useEffect(()=>{let c=!0;const u=window?.location.pathname;os.forEach(p=>{u.includes(p)&&(c=!1)}),i(c?n:"light")},[n]),m.useEffect(()=>{const c=On(Wc);(c==="light"||c==="dark")&&r(c)},[]);const a=c=>{r(c),Qo(Wc,c)},l=c=>{i(c)};return s.jsx(A0.Provider,{value:{mode:o,selectedMode:n,toggleTheme:a,setShowTheme:l,unAvailablePagesTheme:os},children:e})},U={light:{background:{primary:"#F4F4F9",content:"#FFFFFF",secondary:"#F7F7F9",secondaryAlpha:"#EAE9F1",field:"#FFFFFF",fieldSecondary:"#F5F4F8",accent:"#6553F5",accentSecondaryTint:"#E8E5FE",positiveTint:"#DCF6DA",warningTint:"#FFF0DB",negativeTint:"#FFF1EC",info:"#DBDCFF",bottomActions:"rgba(255, 255, 255, 0.5)",overlay:"rgba(0, 0, 0, 0.60)"},text:{primary:"#242424",secondary:"#6A6A71",tertiary:"#A1A0AC",fourth:"#606076",contrast:"#FFFFFF",contrastThemed:"#FFFFFF",accent:"#6553F5",accentSecondary:"#9B8EFF",positive:"#34C759",warning:"#FFA000",negative:"#FF3B30",info:"#3038F5",link:"#4285F4"},icons:{primary:"#242424",secondary:"#AAAABA",tertiary:"#CCCBD3",fourth:"#606076",contrast:"#FFFFFF",contrastThemed:"#FFFFFF",contrastThemRev:"#FFFFFF",accent:"#6553F5",accentSecondary:"#9B8EFF",positive:"#34C759",warring:"#FFA000",negative:"#FF3B30",info:"#3038F5",link:"#4285F4"},stroke:{primary:"#DDDDE3",secondary:"#D6D6DE",tertiary:"#E7E7EB",contrast:"#7D7D95",accent:"#6553F5",positive:"#34C759",warning:"#FFA000",negative:"#FF3B30",info:"#3038F5",tooltip:"#F0F0F0"},interactiveButtons:{brandBackground:"#6553F5",brandBackgroundHover:"#4A35F3",brandText:"#FFFFFF",secondaryBrandBackground:"#E0DDFD",secondaryBrandBackgroundHover:"rgba(101, 83, 245, 0.22)",secondaryBrandText:"#4A35F3",whiteFixedBackground:"#FFFFFF",whiteFixedBackgroundHover:"rgba(255, 255, 255, 0.85)",whiteFixedText:"#242424",outlineBrandBackground:"#FFFFFF",outlineBrandBackgroundHover:"rgba(101, 83, 245, 0.08)",outlineBrandText:"#6553F5",outlineBrandBorder:"#6553F5",outlineBrandBorderHover:"#6553F5",systemBackground:"#EAE9F1",systemBackgroundHover:"#DFDEEA",systemText:"#464167",successBackground:"#E1F7E6",successBackgroundHover:"#BBEDC6",successText:"#299E47",warningBackground:"#FFF1D9",warningBackgroundHover:"#FFDFA8",warningText:"#E59000",criticalBackground:"#FFE2E0",criticalBackgroundHover:"#FFC6C2",criticalText:"#FF3B30",neutralBackground:"rgba(36, 36, 36, 0.50)",neutralBackgroundHover:"rgba(36, 36, 36, 0.70)",neutralText:"#FFFFFF",flatBrandTextHover:"#3821F2",flatSystemTextHover:"#6C659A"},interactiveControls:{accent:"#F0EFF3",secondary:"#FFFFFF",supportive:"#E8E8ED",brand:"#6553F5",brandAlpha:"#4A35F3",accentDark:"#19181B"},other:{orange:"#FFAD30",green:"#A0DD1E",olive:"#DBDE43",violet:"#6E59EF",red:"#EB343F",red2:"#FF4747",pink:"#F969FC",turquoise:"#2ED0C7",blue:"#72E3E3",mediumBlue:"#58C9E2",darkBlue:"#28C6E9",lightBlue:"#4285F4",navyBlue:"#11408E",lightBlueTint:"rgba(66, 133, 244, 0.10)",gray:"rgba(36, 36, 36, 0.50)",orangeTint:"#FFF9EF",greenTint:"#F8FDED",oliveTint:"#FCFDF0",violetTint:"#F4F2FE",redTint:"#FEEFF0",pinkTint:"#FFF3FF",turquoiseTint:"#EFFCFB",darkBlueTint:"#EEF8FB",black:"#111011"},shadow:{basicDefault:"0px 14px 20px -4px rgba(87, 87, 87, 0.10)",basicHover:"0px 12px 28px -3px rgba(87, 87, 87, 0.20)",basicDrag:"0px 12px 32px -3px rgba(87, 87, 87, 0.32)",overlay:"0px 16px 40px -3px rgba(58, 57, 60, 0.28)",dropdown:"0px 4px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 4px 0px rgba(0, 0, 0, 0.06)",modal:"0px 14px 30px -4px rgba(0, 0, 0, 0.2)",dragItem:"0px 4px 12px rgba(0, 0, 0, 0.15)"},statesBackground:{tabsHover:"#F6F6F6",tabsActive:"#383838",tabsActiveHover:"#242424",accentHover:"#7665FF",accentActive:"#5D48F5",field:"rgba(0, 0, 0, 0.06)",secondaryAlphaActive:"#DCDCDC",secondaryAlphaHover:"#E7E7E7",listHover:"#F6F6F6",notificationHover:"#F6F6F6",notificationHoverError:"#F6F6F6",sideBarActive:"#111011",sideBarOpen:"#E1E0EB"},gradient:{gradient_1:"linear-gradient(90deg, #f4f4f9 0%, rgba(244, 244, 249, 0) 100%)",gradient_2:"linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%)",gradient_3:"linear-gradient(90deg, rgba(244, 244, 249, 0) 0%, #f4f4f9 100%)",gradient_4:"linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)",top:"linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.95) 52.08%, rgba(255, 255, 255, 0.00) 100%)",bottom:"linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.95) 53.12%, #FFF 100%)"},club:{primary:"#3C3993",primaryHover:"#5853E3",secondary:"#4833F4",secondaryHover:"#200DB8",buttonBackground:"#E7E7F2",buttonBackgroundHover:"#CAC9E1",green:"#29B279",primaryActive:"#2B2979",primaryGradient:"linear-gradient(54.06deg, #162331 10.84%, #3C3993 98.2%)",secondaryGradient:"linear-gradient(90.24deg, #B92A78 0%, #6699FB 99.58%)"},nav:{search:"#1E1E1E",chipsSearch:"#171718",divider:"#1B1B1C",tabs:"#252527"}},dark:{background:{primary:"#181818",content:"#202020",secondary:"#2B2B2B",secondaryAlpha:"#333333",field:"#2B2B2B",fieldSecondary:"#323232",accent:"#9B8EFF",accentSecondaryTint:"#2B293A",positiveTint:"#384436",warningTint:"#453B2B",negativeTint:"#362D2A",info:"#20213B",bottomActions:"rgba(24, 24, 24, 0.85)",overlay:"rgba(0, 0, 0, 0.60)"},text:{primary:"#FFFFFF",secondary:"#BABAC6",tertiary:"#73738C",fourth:"#E0E0E6",contrast:"#242424",contrastThemed:"#FFFFFF",accent:"#9B8EFF",accentSecondary:"#756CBB",positive:"#30D158",warning:"#F49B06",negative:"#FF452A",info:"#3B42EA",link:"#4285F4"},icons:{primary:"#D9D9D9",secondary:"#BABAC6",tertiary:"#3E3E4C",fourth:"#E0E0E6",contrast:"#242424",contrastThemed:"#FFFFFF",contrastThemRev:"#454545",accent:"#9B8EFF",accentSecondary:"#756CBB",positive:"#30D158",warring:"#F49B06",negative:"#FF452A",info:"#3B42EA",link:"#4285F4"},stroke:{primary:"#3E3E4C",secondary:"#7D7D95",tertiary:"#454554",contrast:"#535365",accent:"#9B8EFF",positive:"#30D158",warning:"#F49B06",negative:"#FF453A",info:"#3B42EA",tooltip:"#535365"},interactiveButtons:{brandBackground:"#7B61FF",brandBackgroundHover:"#6142FF",brandText:"#FFFFFF",secondaryBrandBackground:"#E5DFFF",secondaryBrandBackgroundHover:"rgba(155, 142, 255, 0.22)",secondaryBrandText:"#6142FF",whiteFixedBackground:"#FFFFFF",whiteFixedBackgroundHover:"rgba(255, 255, 255, 0.85)",whiteFixedText:"#242424",outlineBrandBackground:"#202020",outlineBrandBackgroundHover:"rgba(155, 142, 255, 0.1)",outlineBrandText:"#9B8EFF",outlineBrandBorder:"#9B8EFF",outlineBrandBorderHover:"#9B8EFF",systemBackground:"#2E2E38",systemBackgroundHover:"#3A3A48",systemText:"#CCCADD",successBackground:"#223B28",successBackgroundHover:"#2B4A32",successText:"#2CAA4C",warningBackground:"#40321C",warningBackgroundHover:"#634E2B",warningText:"#F99E06",criticalBackground:"#412621",criticalBackgroundHover:"#38211D",criticalText:"#FF5A42",neutralBackground:"rgba(255, 255, 255, 0.50)",neutralBackgroundHover:"rgba(255, 255, 255, 0.70)",neutralText:"#FFFFFF",flatBrandTextHover:"#9B8EFF",flatSystemTextHover:"#777399"},interactiveControls:{accent:"#39383C",secondary:"#242424",supportive:"#2F2F37",brand:"#7B61FF",brandAlpha:"#6142FF",accentDark:"#FFFFFF"},other:{orange:"#E79D2D",green:"#91C81C",olive:"#C1C339",violet:"#6E59EF",red:"#E8343F",red2:"#F02D3A",pink:"#E05DE2",turquoise:"#229E97",blue:"#61C5C5",mediumBlue:"#51BBD2",darkBlue:"#21AFCE",lightBlue:"#317AF2",navyBlue:"#C9DEFF",lightBlueTint:"rgba(49, 122, 242, 0.04)",gray:"rgba(48, 48, 48, 0.50)",orangeTint:"rgba(255, 173, 48, 0.04)",greenTint:"rgba(160, 221, 30, 0.04)",oliveTint:"rgba(219, 222, 67, 0.04)",violetTint:"rgba(110, 89, 239, 0.04)",redTint:"rgba(235, 52, 63, 0.04)",pinkTint:"rgba(249, 105, 252, 0.04)",turquoiseTint:"rgba(46, 208, 199, 0.04)",darkBlueTint:"rgba(33, 175, 206, 0.04)",black:"#242325"},shadow:{basicDefault:null,basicHover:null,basicDrag:null,overlay:null,dropdown:null,modal:null,dragItem:null},statesBackground:{tabsHover:"#383838",tabsActive:"#FFFFFF",tabsActiveHover:"#F6F6F6",accentHover:"#614DF5",accentActive:"#9284FF",field:"rgba(255, 255, 255, 0.06)",secondaryAlphaActive:"#505050",secondaryAlphaHover:"#404040",listHover:"#303030",notificationHover:"#303030",notificationHoverError:"#303030",sideBarActive:"#333036",sideBarOpen:"#333036"},gradient:{gradient_1:"linear-gradient(90deg, #181818 0%, rgba(24, 24, 24, 0.00) 100%)",gradient_2:"linear-gradient(90deg, #2B2B2B 0%, rgba(43, 43, 43, 0.00) 100%)",gradient_3:"linear-gradient(90deg, rgba(24, 24, 24, 0.00) 0%, #181818 100%)",gradient_4:"linear-gradient(90deg, rgba(43, 43, 43, 0.00) 0%, #2B2B2B 100%)",top:"linear-gradient(180deg, #2B2B2B 0%, rgba(43, 43, 43, 0.95) 53.65%, rgba(43, 43, 43, 0.00) 100%)",bottom:" linear-gradient(180deg, rgba(43, 43, 43, 0.00) 0%, rgba(43, 43, 43, 0.95) 52.08%, #2B2B2B 100%)"},club:{primary:"#5854C6",primaryHover:"#7672F6",secondary:"#8C7CFF",secondaryHover:"#614FED",buttonBackground:"#282837",buttonBackgroundHover:"#2E2C60",green:"#2FCA89",primaryActive:"#3C3180",primaryGradient:"linear-gradient(54.11deg, #2C2562 6.32%, #4641BF 116.13%)",secondaryGradient:"linear-gradient(90.24deg, #CE2680 0%, #4080FD 99.58%)"},nav:{search:"#1E1E1E",chipsSearch:"#171718",divider:"#2B2B2D",tabs:"#323235"}}},el={idv:"linear-gradient(95.09deg, #6553f5 14.05%, #ee2cff 108.18%)",idvShort:"linear-gradient(95deg, #6553f5 14.05%, #ee2cff 108.18%)"},Et=h.css`
368
+ */var tp=["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])"],Ki=tp.join(","),d0=typeof Element>"u",Br=d0?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,qi=!d0&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},e1=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",a=i||n&&t&&e(t.parentNode);return a},np=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},rp=function(t,n,r){if(e1(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Ki));return n&&Br.call(t,Ki)&&o.unshift(t),o=o.filter(r),o},op=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!e1(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),c=l.length?l:a.children,u=e(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:a,candidates:u})}else{var p=Br.call(a,Ki);p&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),g=!e1(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(f&&g){var v=e(f===!0?a.children:f.children,!0,r);r.flatten?o.push.apply(o,v):o.push({scopeParent:a,candidates:v})}else i.unshift.apply(i,a.children)}}return o},u0=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},p0=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||np(t))&&!u0(t)?0:t.tabIndex},ip=function(t,n){var r=p0(t);return r<0&&n&&!u0(t)?0:r},ap=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},f0=function(t){return t.tagName==="INPUT"},sp=function(t){return f0(t)&&t.type==="hidden"},lp=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},cp=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},dp=function(t){if(!t.name)return!0;var n=t.form||qi(t),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(a){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",a.message),!1}var i=cp(o,t.form);return!i||i===t},up=function(t){return f0(t)&&t.type==="radio"},pp=function(t){return up(t)&&!dp(t)},fp=function(t){var n,r=t&&qi(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var a,l,c;for(i=!!((a=o)!==null&&a!==void 0&&(l=a.ownerDocument)!==null&&l!==void 0&&l.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!i&&o;){var u,p,f;r=qi(o),o=(u=r)===null||u===void 0?void 0:u.host,i=!!((p=o)!==null&&p!==void 0&&(f=p.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},yc=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},hp=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=Br.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(Br.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var l=t;t;){var c=t.parentElement,u=qi(t);if(c&&!c.shadowRoot&&o(c)===!0)return yc(t);t.assignedSlot?t=t.assignedSlot:!c&&u!==t.ownerDocument?t=u.host:t=c}t=l}if(fp(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return yc(t);return!1},mp=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Br.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},gp=function(t,n){return!(n.disabled||e1(n)||sp(n)||hp(n,t)||lp(n)||mp(n))},ns=function(t,n){return!(pp(n)||p0(n)<0||!gp(t,n))},vp=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Cp=function e(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scopeParent,l=a?o.scopeParent:o,c=ip(l,a),u=a?e(o.candidates):l;c===0?a?n.push.apply(n,u):n.push(l):r.push({documentOrder:i,tabIndex:c,item:o,isScope:a,content:u})}),r.sort(ap).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},j1=function(t,n){n=n||{};var r;return n.getShadowRoot?r=op([t],n.includeContainer,{filter:ns.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:vp}):r=rp(t,n.includeContainer,ns.bind(null,n)),Cp(r)},xp=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Br.call(t,Ki)===!1?!1:ns(n,t)};function wc(e,t,n){let{reference:r,floating:o}=e;const i=Fr(t),a=zs(t),l=Ys(a),c=er(t),u=i==="y",p=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let v;switch(c){case"top":v={x:p,y:r.y-o.height};break;case"bottom":v={x:p,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:f};break;case"left":v={x:r.x-o.width,y:f};break;default:v={x:r.x,y:r.y}}switch(Vo(t)){case"start":v[a]-=g*(n&&u?-1:1);break;case"end":v[a]+=g*(n&&u?-1:1);break}return v}const h0=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:f}=wc(u,r,c),g=r,v={},C=0;for(let x=0;x<l.length;x++){const{name:b,fn:y}=l[x],{x:k,y:w,data:E,reset:L}=await y({x:p,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});p=k??p,f=w??f,v={...v,[b]:{...v[b],...E}},L&&C<=50&&(C++,typeof L=="object"&&(L.placement&&(g=L.placement),L.rects&&(u=L.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):L.rects),{x:p,y:f}=wc(u,g,c)),x=-1)}return{x:p,y:f,placement:g,strategy:o,middlewareData:v}};async function m0(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:g=!1,padding:v=0}=Ho(t,e),C=c0(v),b=l[g?f==="floating"?"reference":"floating":f],y=Pr(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:u,rootBoundary:p,strategy:c})),k=f==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},L=Pr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:k,offsetParent:w,strategy:c}):k);return{top:(y.top-L.top+C.top)/E.y,bottom:(L.bottom-y.bottom+C.bottom)/E.y,left:(y.left-L.left+C.left)/E.x,right:(L.right-y.right+C.right)/E.x}}const g0=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:u,padding:p=0}=Ho(e,t)||{};if(u==null)return{};const f=c0(p),g={x:n,y:r},v=zs(o),C=Ys(v),x=await a.getDimensions(u),b=v==="y",y=b?"top":"left",k=b?"bottom":"right",w=b?"clientHeight":"clientWidth",E=i.reference[C]+i.reference[v]-g[v]-i.floating[C],L=g[v]-i.reference[v],$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let M=$?$[w]:0;(!M||!await(a.isElement==null?void 0:a.isElement($)))&&(M=l.floating[w]||i.floating[C]);const _=E/2-L/2,D=M/2-x[C]/2-1,B=Tr(f[y],D),N=Tr(f[k],D),P=B,V=M-x[C]-N,F=M/2-x[C]/2+_,S=es(P,F,V),A=!c.arrow&&Vo(o)!=null&&F!==S&&i.reference[C]/2-(F<P?B:N)-x[C]/2<0,j=A?F<P?F-P:F-V:0;return{[v]:g[v]+j,data:{[v]:S,centerOffset:F-S-j,...A&&{alignmentOffset:j}},reset:A}}}),v0=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:u}=t,{mainAxis:p=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:x=!0,...b}=Ho(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=er(o),k=Fr(l),w=er(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),L=g||(w||!x?[Qi(l)]:Q8(l)),$=C!=="none";!g&&$&&L.push(...q8(l,x,C,E));const M=[l,...L],_=await m0(t,b),D=[];let B=((r=i.flip)==null?void 0:r.overflows)||[];if(p&&D.push(_[y]),f){const F=U8(o,a,E);D.push(_[F[0]],_[F[1]])}if(B=[...B,{placement:o,overflows:D}],!D.every(F=>F<=0)){var N,P;const F=(((N=i.flip)==null?void 0:N.index)||0)+1,S=M[F];if(S)return{data:{index:F,overflows:B},reset:{placement:S}};let A=(P=B.filter(j=>j.overflows[0]<=0).sort((j,R)=>j.overflows[1]-R.overflows[1])[0])==null?void 0:P.placement;if(!A)switch(v){case"bestFit":{var V;const j=(V=B.filter(R=>{if($){const T=Fr(R.placement);return T===k||T==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(T=>T>0).reduce((T,W)=>T+W,0)]).sort((R,T)=>R[1]-T[1])[0])==null?void 0:V[0];j&&(A=j);break}case"initialPlacement":A=l;break}if(o!==A)return{reset:{placement:A}}}return{}}}};async function bp(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=er(n),l=Vo(n),c=Fr(n)==="y",u=["left","top"].includes(a)?-1:1,p=i&&c?-1:1,f=Ho(t,e);let{mainAxis:g,crossAxis:v,alignmentAxis:C}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof C=="number"&&(v=l==="end"?C*-1:C),c?{x:v*p,y:g*u}:{x:g*u,y:v*p}}const C0=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:l}=t,c=await bp(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},yp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:b=>{let{x:y,y:k}=b;return{x:y,y:k}}},...c}=Ho(e,t),u={x:n,y:r},p=await m0(t,c),f=Fr(er(o)),g=l0(f);let v=u[g],C=u[f];if(i){const b=g==="y"?"top":"left",y=g==="y"?"bottom":"right",k=v+p[b],w=v-p[y];v=es(k,v,w)}if(a){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",k=C+p[b],w=C-p[y];C=es(k,C,w)}const x=l.fn({...t,[g]:v,[f]:C});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:i,[f]:a}}}}}};function x0(e){const t=Dt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ot(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=Ui(n)!==i||Ui(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function Gs(e){return Be(e)?e:e.contextElement}function Lr(e){const t=Gs(e);if(!ot(t))return an(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=x0(t);let a=(i?Ui(n.width):n.width)/r,l=(i?Ui(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const wp=an(0);function b0(e){const t=Mt(e);return!S1()||!t.visualViewport?wp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mt(e)?!1:t}function tr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Gs(e);let a=an(1);t&&(r?Be(r)&&(a=Lr(r)):a=Lr(e));const l=kp(i,n,r)?b0(i):an(0);let c=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,p=o.width/a.x,f=o.height/a.y;if(i){const g=Mt(i),v=r&&Be(r)?Mt(r):r;let C=g,x=Ka(C);for(;x&&r&&v!==C;){const b=Lr(x),y=x.getBoundingClientRect(),k=Dt(x),w=y.left+(x.clientLeft+parseFloat(k.paddingLeft))*b.x,E=y.top+(x.clientTop+parseFloat(k.paddingTop))*b.y;c*=b.x,u*=b.y,p*=b.x,f*=b.y,c+=w,u+=E,C=Mt(x),x=Ka(C)}}return Pr({width:p,height:f,x:c,y:u})}function Xs(e,t){const n=D1(e).scrollLeft;return t?t.left+n:tr(pn(e)).left+n}function y0(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Xs(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function Ep(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",a=pn(r),l=t?I1(t.floating):!1;if(r===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},u=an(1);const p=an(0),f=ot(r);if((f||!f&&!i)&&((Nn(r)!=="body"||Bo(a))&&(c=D1(r)),ot(r))){const v=tr(r);u=Lr(r),p.x=v.x+r.clientLeft,p.y=v.y+r.clientTop}const g=a&&!f&&!i?y0(a,c,!0):an(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+p.x+g.x,y:n.y*u.y-c.scrollTop*u.y+p.y+g.y}}function Lp(e){return Array.from(e.getClientRects())}function Mp(e){const t=pn(e),n=D1(e),r=e.ownerDocument.body,o=Jn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Jn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Xs(e);const l=-n.scrollTop;return Dt(r).direction==="rtl"&&(a+=Jn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}function $p(e,t){const n=Mt(e),r=pn(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(o){i=o.width,a=o.height;const u=S1();(!u||u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:l,y:c}}function _p(e,t){const n=tr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=ot(e)?Lr(e):an(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:l,x:c,y:u}}function kc(e,t,n){let r;if(t==="viewport")r=$p(e,n);else if(t==="document")r=Mp(pn(e));else if(Be(t))r=_p(t,n);else{const o=b0(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Pr(r)}function w0(e,t){const n=_n(e);return n===t||!Be(n)||Bn(n)?!1:Dt(n).position==="fixed"||w0(n,t)}function Ip(e,t){const n=t.get(e);if(n)return n;let r=Tn(e,[],!1).filter(l=>Be(l)&&Nn(l)!=="body"),o=null;const i=Dt(e).position==="fixed";let a=i?_n(e):e;for(;Be(a)&&!Bn(a);){const l=Dt(a),c=Ws(a);!c&&l.position==="fixed"&&(o=null),(i?!c&&!o:!c&&l.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Bo(a)&&!c&&w0(e,a))?r=r.filter(p=>p!==a):o=l,a=_n(a)}return t.set(e,r),r}function Sp(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?I1(t)?[]:Ip(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((u,p)=>{const f=kc(t,p,o);return u.top=Jn(f.top,u.top),u.right=Tr(f.right,u.right),u.bottom=Tr(f.bottom,u.bottom),u.left=Jn(f.left,u.left),u},kc(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Dp(e){const{width:t,height:n}=x0(e);return{width:t,height:n}}function jp(e,t,n){const r=ot(t),o=pn(t),i=n==="fixed",a=tr(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=an(0);if(r||!r&&!i)if((Nn(t)!=="body"||Bo(o))&&(l=D1(t)),r){const g=tr(t,!0,i,t);c.x=g.x+t.clientLeft,c.y=g.y+t.clientTop}else o&&(c.x=Xs(o));const u=o&&!r&&!i?y0(o,l):an(0),p=a.left+l.scrollLeft-c.x-u.x,f=a.top+l.scrollTop-c.y-u.y;return{x:p,y:f,width:a.width,height:a.height}}function da(e){return Dt(e).position==="static"}function Ec(e,t){if(!ot(e)||Dt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return pn(e)===n&&(n=n.ownerDocument.body),n}function k0(e,t){const n=Mt(e);if(I1(e))return n;if(!ot(e)){let o=_n(e);for(;o&&!Bn(o);){if(Be(o)&&!da(o))return o;o=_n(o)}return n}let r=Ec(e,t);for(;r&&H8(r)&&da(r);)r=Ec(r,t);return r&&Bn(r)&&da(r)&&!Ws(r)?n:r||V8(e)||n}const Ap=async function(e){const t=this.getOffsetParent||k0,n=this.getDimensions,r=await n(e.floating);return{reference:jp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Rp(e){return Dt(e).direction==="rtl"}const Tp={convertOffsetParentRelativeRectToViewportRelativeRect:Ep,getDocumentElement:pn,getClippingRect:Sp,getOffsetParent:k0,getElementRects:Ap,getClientRects:Lp,getDimensions:Dp,getScale:Lr,isElement:Be,isRTL:Rp};function E0(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Fp(e,t){let n=null,r;const o=pn(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const u=e.getBoundingClientRect(),{left:p,top:f,width:g,height:v}=u;if(l||t(),!g||!v)return;const C=di(f),x=di(o.clientWidth-(p+g)),b=di(o.clientHeight-(f+v)),y=di(p),w={rootMargin:-C+"px "+-x+"px "+-b+"px "+-y+"px",threshold:Jn(0,Tr(1,c))||1};let E=!0;function L($){const M=$[0].intersectionRatio;if(M!==c){if(!E)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}M===1&&!E0(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(L,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(L,w)}n.observe(e)}return a(!0),i}function nr(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Gs(e),p=o||i?[...u?Tn(u):[],...Tn(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=u&&l?Fp(u,n):null;let g=-1,v=null;a&&(v=new ResizeObserver(y=>{let[k]=y;k&&k.target===u&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var w;(w=v)==null||w.observe(t)})),n()}),u&&!c&&v.observe(u),v.observe(t));let C,x=c?tr(e):null;c&&b();function b(){const y=tr(e);x&&!E0(x,y)&&n(),x=y,C=requestAnimationFrame(b)}return n(),()=>{var y;p.forEach(k=>{o&&k.removeEventListener("scroll",n),i&&k.removeEventListener("resize",n)}),f?.(),(y=v)==null||y.disconnect(),v=null,c&&cancelAnimationFrame(C)}}const Pp=C0,Bp=yp,Hp=v0,Lc=g0,Vp=(e,t,n)=>{const r=new Map,o={platform:Tp,...n},i={...o.platform,_c:r};return h0(e,t,{...o,platform:i})};var _i=typeof document<"u"?m.useLayoutEffect:m.useEffect;function t1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!t1(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!t1(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function L0(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Mc(e,t){const n=L0(e);return Math.round(t*n)/n}function ua(e){const t=d.useRef(e);return _i(()=>{t.current=e}),t}function Np(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[p,f]=d.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,v]=d.useState(r);t1(g,r)||v(r);const[C,x]=d.useState(null),[b,y]=d.useState(null),k=d.useCallback(R=>{R!==$.current&&($.current=R,x(R))},[]),w=d.useCallback(R=>{R!==M.current&&(M.current=R,y(R))},[]),E=i||C,L=a||b,$=d.useRef(null),M=d.useRef(null),_=d.useRef(p),D=c!=null,B=ua(c),N=ua(o),P=ua(u),V=d.useCallback(()=>{if(!$.current||!M.current)return;const R={placement:t,strategy:n,middleware:g};N.current&&(R.platform=N.current),Vp($.current,M.current,R).then(T=>{const W={...T,isPositioned:P.current!==!1};F.current&&!t1(_.current,W)&&(_.current=W,Ls.flushSync(()=>{f(W)}))})},[g,t,n,N,P]);_i(()=>{u===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const F=d.useRef(!1);_i(()=>(F.current=!0,()=>{F.current=!1}),[]),_i(()=>{if(E&&($.current=E),L&&(M.current=L),E&&L){if(B.current)return B.current(E,L,V);V()}},[E,L,V,B,D]);const S=d.useMemo(()=>({reference:$,floating:M,setReference:k,setFloating:w}),[k,w]),A=d.useMemo(()=>({reference:E,floating:L}),[E,L]),j=d.useMemo(()=>{const R={position:n,left:0,top:0};if(!A.floating)return R;const T=Mc(A.floating,p.x),W=Mc(A.floating,p.y);return l?{...R,transform:"translate("+T+"px, "+W+"px)",...L0(A.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:T,top:W}},[n,l,A.floating,p.x,p.y]);return d.useMemo(()=>({...p,update:V,refs:S,elements:A,floatingStyles:j}),[p,V,S,A,j])}const Op=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Lc({element:r.current,padding:o}).fn(n):{}:r?Lc({element:r,padding:o}).fn(n):{}}}},No=(e,t)=>({...Pp(e),options:[e,t]}),Oo=(e,t)=>({...Bp(e),options:[e,t]}),Wo=(e,t)=>({...Hp(e),options:[e,t]}),Js=(e,t)=>({...Op(e),options:[e,t]});function fn(e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})},e)}const M0={...d},Wp=M0.useInsertionEffect,Zp=Wp||(e=>e());function Ot(e){const t=d.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return Zp(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var lt=typeof document<"u"?m.useLayoutEffect:m.useEffect;function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bo.apply(this,arguments)}let $c=!1,Yp=0;const _c=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Yp++;function zp(){const[e,t]=d.useState(()=>$c?_c():void 0);return lt(()=>{e==null&&t(_c())},[]),d.useEffect(()=>{$c=!0},[]),e}const Gp=M0.useId,rr=Gp||zp;let yo;process.env.NODE_ENV!=="production"&&(yo=new Set);function Xp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=yo)!=null&&e.has(o))){var i;(i=yo)==null||i.add(o),console.warn(o)}}function Jp(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o="Floating UI: "+n.join(" ");if(!((e=yo)!=null&&e.has(o))){var i;(i=yo)==null||i.add(o),console.error(o)}}const Us=d.forwardRef(function(t,n){const{context:{placement:r,elements:{floating:o},middlewareData:{arrow:i,shift:a}},width:l=14,height:c=7,tipRadius:u=0,strokeWidth:p=0,staticOffset:f,stroke:g,d:v,style:{transform:C,...x}={},...b}=t;process.env.NODE_ENV!=="production"&&(n||Xp("The `ref` prop is required for `FloatingArrow`."));const y=rr(),[k,w]=d.useState(!1);if(lt(()=>{if(!o)return;Dt(o).direction==="rtl"&&w(!0)},[o]),!o)return null;const[E,L]=r.split("-"),$=E==="top"||E==="bottom";let M=f;($&&a!=null&&a.x||!$&&a!=null&&a.y)&&(M=null);const _=p*2,D=_/2,B=l/2*(u/-8+1),N=c/2*u/4,P=!!v,V=M&&L==="end"?"bottom":"top";let F=M&&L==="end"?"right":"left";M&&k&&(F=L==="end"?"left":"right");const S=i?.x!=null?M||i.x:"",A=i?.y!=null?M||i.y:"",j=v||"M0,0"+(" H"+l)+(" L"+(l-B)+","+(c-N))+(" Q"+l/2+","+c+" "+B+","+(c-N))+" Z",R={top:P?"rotate(180deg)":"",left:P?"rotate(90deg)":"rotate(-90deg)",bottom:P?"":"rotate(180deg)",right:P?"rotate(-90deg)":"rotate(90deg)"}[E];return d.createElement("svg",bo({},b,{"aria-hidden":!0,ref:n,width:P?l:l+_,height:l,viewBox:"0 0 "+l+" "+(c>l?c:l),style:{position:"absolute",pointerEvents:"none",[F]:S,[V]:A,[E]:$||P?"100%":"calc(100% - "+_/2+"px)",transform:[R,C].filter(T=>!!T).join(" "),...x}}),_>0&&d.createElement("path",{clipPath:"url(#"+y+")",fill:"none",stroke:g,strokeWidth:_+(v?0:1),d:j}),d.createElement("path",{stroke:_&&!v?b.fill:"none",d:j}),d.createElement("clipPath",{id:y},d.createElement("rect",{x:-D,y:D*(P?-1:1),width:l+_,height:l})))});function Up(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const Qp=d.createContext(null),Kp=d.createContext(null),Qs=()=>{var e;return((e=d.useContext(Qp))==null?void 0:e.id)||null},A1=()=>d.useContext(Kp);function or(e){return"data-floating-ui-"+e}function rn(e){const t=m.useRef(e);return lt(()=>{t.current=e}),t}const Ic=or("safe-polygon");function pa(e,t,n){return n&&!xo(n)?0:typeof e=="number"?e:e?.[t]}function Ks(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:i,elements:a}=e,{enabled:l=!0,delay:c=0,handleClose:u=null,mouseOnly:p=!1,restMs:f=0,move:g=!0}=t,v=A1(),C=Qs(),x=rn(u),b=rn(c),y=rn(n),k=d.useRef(),w=d.useRef(-1),E=d.useRef(),L=d.useRef(-1),$=d.useRef(!0),M=d.useRef(!1),_=d.useRef(()=>{}),D=d.useRef(!1),B=d.useCallback(()=>{var j;const R=(j=o.current.openEvent)==null?void 0:j.type;return R?.includes("mouse")&&R!=="mousedown"},[o]);d.useEffect(()=>{if(!l)return;function j(R){let{open:T}=R;T||(clearTimeout(w.current),clearTimeout(L.current),$.current=!0,D.current=!1)}return i.on("openchange",j),()=>{i.off("openchange",j)}},[l,i]),d.useEffect(()=>{if(!l||!x.current||!n)return;function j(T){B()&&r(!1,T,"hover")}const R=ht(a.floating).documentElement;return R.addEventListener("mouseleave",j),()=>{R.removeEventListener("mouseleave",j)}},[a.floating,n,r,l,x,B]);const N=d.useCallback(function(j,R,T){R===void 0&&(R=!0),T===void 0&&(T="hover");const W=pa(b.current,"close",k.current);W&&!E.current?(clearTimeout(w.current),w.current=window.setTimeout(()=>r(!1,j,T),W)):R&&(clearTimeout(w.current),r(!1,j,T))},[b,r]),P=Ot(()=>{_.current(),E.current=void 0}),V=Ot(()=>{if(M.current){const j=ht(a.floating).body;j.style.pointerEvents="",j.removeAttribute(Ic),M.current=!1}}),F=Ot(()=>o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1);d.useEffect(()=>{if(!l)return;function j(Z){if(clearTimeout(w.current),$.current=!1,p&&!xo(k.current)||f>0&&!pa(b.current,"open"))return;const X=pa(b.current,"open",k.current);X?w.current=window.setTimeout(()=>{y.current||r(!0,Z,"hover")},X):n||r(!0,Z,"hover")}function R(Z){if(F())return;_.current();const X=ht(a.floating);if(clearTimeout(L.current),D.current=!1,x.current&&o.current.floatingContext){n||clearTimeout(w.current),E.current=x.current({...o.current.floatingContext,tree:v,x:Z.clientX,y:Z.clientY,onClose(){V(),P(),F()||N(Z,!0,"safe-polygon")}});const re=E.current;X.addEventListener("mousemove",re),_.current=()=>{X.removeEventListener("mousemove",re)};return}(k.current==="touch"?!rt(a.floating,Z.relatedTarget):!0)&&N(Z)}function T(Z){F()||o.current.floatingContext&&(x.current==null||x.current({...o.current.floatingContext,tree:v,x:Z.clientX,y:Z.clientY,onClose(){V(),P(),F()||N(Z)}})(Z))}if(Be(a.domReference)){var W;const Z=a.domReference;return n&&Z.addEventListener("mouseleave",T),(W=a.floating)==null||W.addEventListener("mouseleave",T),g&&Z.addEventListener("mousemove",j,{once:!0}),Z.addEventListener("mouseenter",j),Z.addEventListener("mouseleave",R),()=>{var X;n&&Z.removeEventListener("mouseleave",T),(X=a.floating)==null||X.removeEventListener("mouseleave",T),g&&Z.removeEventListener("mousemove",j),Z.removeEventListener("mouseenter",j),Z.removeEventListener("mouseleave",R)}}},[a,l,e,p,f,g,N,P,V,r,n,y,v,b,x,o,F]),lt(()=>{var j;if(l&&n&&(j=x.current)!=null&&j.__options.blockPointerEvents&&B()){M.current=!0;const T=a.floating;if(Be(a.domReference)&&T){var R;const W=ht(a.floating).body;W.setAttribute(Ic,"");const Z=a.domReference,X=v==null||(R=v.nodesRef.current.find(me=>me.id===C))==null||(R=R.context)==null?void 0:R.elements.floating;return X&&(X.style.pointerEvents=""),W.style.pointerEvents="none",Z.style.pointerEvents="auto",T.style.pointerEvents="auto",()=>{W.style.pointerEvents="",Z.style.pointerEvents="",T.style.pointerEvents=""}}}},[l,n,C,a,v,x,B]),lt(()=>{n||(k.current=void 0,D.current=!1,P(),V())},[n,P,V]),d.useEffect(()=>()=>{P(),clearTimeout(w.current),clearTimeout(L.current),V()},[l,a.domReference,P,V]);const S=d.useMemo(()=>{function j(R){k.current=R.pointerType}return{onPointerDown:j,onPointerEnter:j,onMouseMove(R){const{nativeEvent:T}=R;function W(){!$.current&&!y.current&&r(!0,T,"hover")}p&&!xo(k.current)||n||f===0||D.current&&R.movementX**2+R.movementY**2<2||(clearTimeout(L.current),k.current==="touch"?W():(D.current=!0,L.current=window.setTimeout(W,f)))}}},[p,r,n,y,f]),A=d.useMemo(()=>({onMouseEnter(){clearTimeout(w.current)},onMouseLeave(j){F()||N(j.nativeEvent,!1)}}),[N,F]);return d.useMemo(()=>l?{reference:S,floating:A}:{},[l,S,A])}let Sc=0;function vr(e,t){t===void 0&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Sc);const i=()=>e?.focus({preventScroll:n});o?i():Sc=requestAnimationFrame(i)}function qp(e,t){var n;let r=[],o=(n=e.find(i=>i.id===t))==null?void 0:n.parentId;for(;o;){const i=e.find(a=>a.id===o);o=i?.parentId,i&&(r=r.concat(i))}return r}function Mr(e,t){let n=e.filter(o=>{var i;return o.parentId===t&&((i=o.context)==null?void 0:i.open)}),r=n;for(;r.length;)r=e.filter(o=>{var i;return(i=r)==null?void 0:i.some(a=>{var l;return o.parentId===a.id&&((l=o.context)==null?void 0:l.open)})}),n=n.concat(r);return n}let Cr=new WeakMap,ui=new WeakSet,pi={},fa=0;const ef=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,$0=e=>e&&(e.host||$0(e.parentNode)),tf=(e,t)=>t.map(n=>{if(e.contains(n))return n;const r=$0(n);return e.contains(r)?r:null}).filter(n=>n!=null);function nf(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=tf(t,e),l=new Set,c=new Set(a),u=[];pi[o]||(pi[o]=new WeakMap);const p=pi[o];a.forEach(f),g(t),l.clear();function f(v){!v||l.has(v)||(l.add(v),v.parentNode&&f(v.parentNode))}function g(v){!v||c.has(v)||[].forEach.call(v.children,C=>{if(Nn(C)!=="script")if(l.has(C))g(C);else{const x=i?C.getAttribute(i):null,b=x!==null&&x!=="false",y=(Cr.get(C)||0)+1,k=(p.get(C)||0)+1;Cr.set(C,y),p.set(C,k),u.push(C),y===1&&b&&ui.add(C),k===1&&C.setAttribute(o,""),!b&&i&&C.setAttribute(i,"true")}})}return fa++,()=>{u.forEach(v=>{const C=(Cr.get(v)||0)-1,x=(p.get(v)||0)-1;Cr.set(v,C),p.set(v,x),C||(!ui.has(v)&&i&&v.removeAttribute(i),ui.delete(v)),x||v.removeAttribute(o)}),fa--,fa||(Cr=new WeakMap,Cr=new WeakMap,ui=new WeakSet,pi={})}}function Dc(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=ht(e[0]).body;return nf(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const wo=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function _0(e,t){const n=j1(e,wo());t==="prev"&&n.reverse();const r=n.indexOf(vn(ht(e)));return n.slice(r+1)[0]}function I0(){return _0(document.body,"next")}function S0(){return _0(document.body,"prev")}function fo(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!rt(n,r)}function rf(e){j1(e,wo()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function jc(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const R1={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};let of;function Ac(e){e.key==="Tab"&&(e.target,clearTimeout(of))}const n1=d.forwardRef(function(t,n){const[r,o]=d.useState();lt(()=>(s0()&&o("button"),document.addEventListener("keydown",Ac),()=>{document.removeEventListener("keydown",Ac)}),[]);const i={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[or("focus-guard")]:"",style:R1};return d.createElement("span",bo({},t,i))}),D0=d.createContext(null),Rc=or("portal");function af(e){e===void 0&&(e={});const{id:t,root:n}=e,r=rr(),o=j0(),[i,a]=d.useState(null),l=d.useRef(null);return lt(()=>()=>{i?.remove(),queueMicrotask(()=>{l.current=null})},[i]),lt(()=>{if(!r||l.current)return;const c=t?document.getElementById(t):null;if(!c)return;const u=document.createElement("div");u.id=r,u.setAttribute(Rc,""),c.appendChild(u),l.current=u,a(u)},[t,r]),lt(()=>{if(n===null||!r||l.current)return;let c=n||o?.portalNode;c&&!Be(c)&&(c=c.current),c=c||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,c.appendChild(u));const p=document.createElement("div");p.id=r,p.setAttribute(Rc,""),c=u||c,c.appendChild(p),l.current=p,a(p)},[t,n,r,o]),i}function Zo(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=af({id:n,root:r}),[a,l]=d.useState(null),c=d.useRef(null),u=d.useRef(null),p=d.useRef(null),f=d.useRef(null),g=a?.modal,v=a?.open,C=!!a&&!a.modal&&a.open&&o&&!!(r||i);return d.useEffect(()=>{if(!i||!o||g)return;function x(b){i&&fo(b)&&(b.type==="focusin"?jc:rf)(i)}return i.addEventListener("focusin",x,!0),i.addEventListener("focusout",x,!0),()=>{i.removeEventListener("focusin",x,!0),i.removeEventListener("focusout",x,!0)}},[i,o,g]),d.useEffect(()=>{i&&(v||jc(i))},[v,i]),d.createElement(D0.Provider,{value:d.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:p,afterInsideRef:f,portalNode:i,setFocusManagerState:l}),[o,i])},C&&i&&d.createElement(n1,{"data-type":"outside",ref:c,onFocus:x=>{if(fo(x,i)){var b;(b=p.current)==null||b.focus()}else{const y=S0()||a?.refs.domReference.current;y?.focus()}}}),C&&i&&d.createElement("span",{"aria-owns":i.id,style:R1}),i&&Ls.createPortal(t,i),C&&i&&d.createElement(n1,{"data-type":"outside",ref:u,onFocus:x=>{if(fo(x,i)){var b;(b=f.current)==null||b.focus()}else{const y=I0()||a?.refs.domReference.current;y?.focus(),a?.closeOnFocusOut&&a?.onOpenChange(!1,x.nativeEvent,"focus-out")}}}))}const j0=()=>d.useContext(D0),rs="data-floating-ui-focusable";function sf(e){return e?e.hasAttribute(rs)?e:e.querySelector("["+rs+"]")||e:null}const lf=20;let Zn=[];function ha(e){Zn=Zn.filter(n=>n.isConnected);let t=e;if(!(!t||Nn(t)==="body")){if(!xp(t,wo())){const n=j1(t,wo())[0];n&&(t=n)}Zn.push(t),Zn.length>lf&&(Zn=Zn.slice(-20))}}function Tc(){return Zn.slice().reverse().find(e=>e.isConnected)}const cf=d.forwardRef(function(t,n){return d.createElement("button",bo({},t,{type:"button",ref:n,tabIndex:-1,style:R1}))});function qs(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:l=!0,restoreFocus:c=!1,modal:u=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:f=!0}=e,{open:g,refs:v,nodeId:C,onOpenChange:x,events:b,dataRef:y,floatingId:k,elements:{domReference:w,floating:E}}=t,L=typeof a=="number"&&a<0,$=G8(w)&&L,M=ef()?i:!0,_=rn(o),D=rn(a),B=rn(l),N=A1(),P=j0(),V=d.useRef(null),F=d.useRef(null),S=d.useRef(!1),A=d.useRef(!1),j=d.useRef(-1),R=P!=null,T=sf(E),W=Ot(function(re){return re===void 0&&(re=T),re?j1(re,wo()):[]}),Z=Ot(re=>{const oe=W(re);return _.current.map(z=>w&&z==="reference"?w:T&&z==="floating"?T:oe).filter(Boolean).flat()});d.useEffect(()=>{if(r||!u)return;function re(z){if(z.key==="Tab"){rt(T,vn(ht(T)))&&W().length===0&&!$&&ca(z);const te=Z(),Q=bn(z);_.current[0]==="reference"&&Q===w&&(ca(z),z.shiftKey?vr(te[te.length-1]):vr(te[1])),_.current[1]==="floating"&&Q===T&&z.shiftKey&&(ca(z),vr(te[0]))}}const oe=ht(T);return oe.addEventListener("keydown",re),()=>{oe.removeEventListener("keydown",re)}},[r,w,T,u,_,$,W,Z]),d.useEffect(()=>{if(r||!E)return;function re(oe){const z=bn(oe),Q=W().indexOf(z);Q!==-1&&(j.current=Q)}return E.addEventListener("focusin",re),()=>{E.removeEventListener("focusin",re)}},[r,E,W]),d.useEffect(()=>{if(r||!f)return;function re(){A.current=!0,setTimeout(()=>{A.current=!1})}function oe(z){const te=z.relatedTarget;queueMicrotask(()=>{const Q=!(rt(w,te)||rt(E,te)||rt(te,E)||rt(P?.portalNode,te)||te!=null&&te.hasAttribute(or("focus-guard"))||N&&(Mr(N.nodesRef.current,C).find(pe=>{var ve,He;return rt((ve=pe.context)==null?void 0:ve.elements.floating,te)||rt((He=pe.context)==null?void 0:He.elements.domReference,te)})||qp(N.nodesRef.current,C).find(pe=>{var ve,He;return((ve=pe.context)==null?void 0:ve.elements.floating)===te||((He=pe.context)==null?void 0:He.elements.domReference)===te})));if(c&&Q&&vn(ht(T))===ht(T).body){ot(T)&&T.focus();const pe=j.current,ve=W(),He=ve[pe]||ve[ve.length-1]||T;ot(He)&&He.focus()}($||!u)&&te&&Q&&!A.current&&te!==Tc()&&(S.current=!0,x(!1,z,"focus-out"))})}if(E&&ot(w))return w.addEventListener("focusout",oe),w.addEventListener("pointerdown",re),E.addEventListener("focusout",oe),()=>{w.removeEventListener("focusout",oe),w.removeEventListener("pointerdown",re),E.removeEventListener("focusout",oe)}},[r,w,E,T,u,C,N,P,x,f,c,W,$]),d.useEffect(()=>{var re;if(r)return;const oe=Array.from((P==null||(re=P.portalNode)==null?void 0:re.querySelectorAll("["+or("portal")+"]"))||[]);if(E){const z=[E,...oe,V.current,F.current,_.current.includes("reference")||$?w:null].filter(Q=>Q!=null),te=u||$?Dc(z,M,!M):Dc(z);return()=>{te()}}},[r,w,E,u,_,P,$,M]),lt(()=>{if(r||!ot(T))return;const re=ht(T),oe=vn(re);queueMicrotask(()=>{const z=Z(T),te=D.current,Q=(typeof te=="number"?z[te]:te.current)||T,pe=rt(T,oe);!L&&!pe&&g&&vr(Q,{preventScroll:Q===T})})},[r,g,T,L,Z,D]),lt(()=>{if(r||!T)return;let re=!1;const oe=ht(T),z=vn(oe);let Q=y.current.openEvent;ha(z);function pe(G){let{open:Lt,reason:ut,event:Ge,nested:Gt}=G;Lt&&(Q=Ge),ut==="escape-key"&&v.domReference.current&&ha(v.domReference.current),ut==="hover"&&Ge.type==="mouseleave"&&(S.current=!0),ut==="outside-press"&&(Gt?(S.current=!1,re=!0):S.current=!(N8(Ge)||a0(Ge)))}b.on("openchange",pe);const ve=oe.createElement("span");ve.setAttribute("tabindex","-1"),ve.setAttribute("aria-hidden","true"),Object.assign(ve.style,R1),R&&w&&w.insertAdjacentElement("afterend",ve);function He(){return typeof B.current=="boolean"?Tc()||ve:B.current.current||ve}return()=>{b.off("openchange",pe);const G=vn(oe),Lt=rt(E,G)||N&&Mr(N.nodesRef.current,C).some(Gt=>{var ee;return rt((ee=Gt.context)==null?void 0:ee.elements.floating,G)});(Lt||Q&&["click","mousedown"].includes(Q.type))&&v.domReference.current&&ha(v.domReference.current);const Ge=He();queueMicrotask(()=>{B.current&&!S.current&&ot(Ge)&&(!(Ge!==G&&G!==oe.body)||Lt)&&Ge.focus({preventScroll:re}),ve.remove()})}},[r,E,T,B,y,v,b,N,C,R,w]),d.useEffect(()=>{queueMicrotask(()=>{S.current=!1})},[r]),lt(()=>{if(!r&&P)return P.setFocusManagerState({modal:u,closeOnFocusOut:f,open:g,onOpenChange:x,refs:v}),()=>{P.setFocusManagerState(null)}},[r,P,u,g,x,v,f]),lt(()=>{if(r||!T||typeof MutationObserver!="function"||L)return;const re=()=>{const z=T.getAttribute("tabindex"),te=W(),Q=vn(ht(E)),pe=te.indexOf(Q);pe!==-1&&(j.current=pe),_.current.includes("floating")||Q!==v.domReference.current&&te.length===0?z!=="0"&&T.setAttribute("tabindex","0"):z!=="-1"&&T.setAttribute("tabindex","-1")};re();const oe=new MutationObserver(re);return oe.observe(T,{childList:!0,subtree:!0,attributes:!0}),()=>{oe.disconnect()}},[r,E,T,v,_,W,L]);function X(re){return r||!p||!u?null:d.createElement(cf,{ref:re==="start"?V:F,onClick:oe=>x(!1,oe.nativeEvent)},typeof p=="string"?p:"Dismiss")}const me=!r&&M&&(u?!$:!0)&&(R||u);return d.createElement(d.Fragment,null,me&&d.createElement(n1,{"data-type":"inside",ref:P?.beforeInsideRef,onFocus:re=>{if(u){const z=Z();vr(o[0]==="reference"?z[0]:z[z.length-1])}else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(S.current=!1,fo(re,P.portalNode)){const z=I0()||w;z?.focus()}else{var oe;(oe=P.beforeOutsideRef.current)==null||oe.focus()}}}),!$&&X("start"),n,X("end"),me&&d.createElement(n1,{"data-type":"inside",ref:P?.afterInsideRef,onFocus:re=>{if(u)vr(Z()[0]);else if(P!=null&&P.preserveTabOrder&&P.portalNode)if(f&&(S.current=!0),fo(re,P.portalNode)){const z=S0()||w;z?.focus()}else{var oe;(oe=P.afterOutsideRef.current)==null||oe.focus()}}}))}function Fc(e){return ot(e.target)&&e.target.tagName==="BUTTON"}function Pc(e){return Zs(e)}function Yo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:p=!0,stickIfOpen:f=!0}=t,g=d.useRef(),v=d.useRef(!1),C=d.useMemo(()=>({onPointerDown(x){g.current=x.pointerType},onMouseDown(x){const b=g.current;x.button===0&&l!=="click"&&(xo(b,!0)&&u||(n&&c&&(!(o.current.openEvent&&f)||o.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const b=g.current;if(l==="mousedown"&&g.current){g.current=void 0;return}xo(b,!0)&&u||(n&&c&&(!(o.current.openEvent&&f)||o.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){g.current=void 0,!(x.defaultPrevented||!p||Fc(x))&&(x.key===" "&&!Pc(i)&&(x.preventDefault(),v.current=!0),x.key==="Enter"&&r(!(n&&c),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!p||Fc(x)||Pc(i)||x.key===" "&&v.current&&(v.current=!1,r(!(n&&c),x.nativeEvent,"click"))}}),[o,i,l,u,p,r,n,f,c]);return d.useMemo(()=>a?{reference:C}:{},[a,C])}const df={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},uf={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Bc=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function zo(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:u="pointerdown",referencePress:p=!1,referencePressEvent:f="pointerdown",ancestorScroll:g=!1,bubbles:v,capture:C}=t,x=A1(),b=Ot(typeof c=="function"?c:()=>!1),y=typeof c=="function"?b:c,k=d.useRef(!1),w=d.useRef(!1),{escapeKey:E,outsidePress:L}=Bc(v),{escapeKey:$,outsidePress:M}=Bc(C),_=d.useRef(!1),D=Ot(S=>{var A;if(!n||!a||!l||S.key!=="Escape"||_.current)return;const j=(A=i.current.floatingContext)==null?void 0:A.nodeId,R=x?Mr(x.nodesRef.current,j):[];if(!E&&(S.stopPropagation(),R.length>0)){let T=!0;if(R.forEach(W=>{var Z;if((Z=W.context)!=null&&Z.open&&!W.context.dataRef.current.__escapeKeyBubbles){T=!1;return}}),!T)return}r(!1,Z8(S)?S.nativeEvent:S,"escape-key")}),B=Ot(S=>{var A;const j=()=>{var R;D(S),(R=bn(S))==null||R.removeEventListener("keydown",j)};(A=bn(S))==null||A.addEventListener("keydown",j)}),N=Ot(S=>{var A;const j=k.current;k.current=!1;const R=w.current;if(w.current=!1,u==="click"&&R||j||typeof y=="function"&&!y(S))return;const T=bn(S),W="["+or("inert")+"]",Z=ht(o.floating).querySelectorAll(W);let X=Be(T)?T:null;for(;X&&!Bn(X);){const z=_n(X);if(Bn(z)||!Be(z))break;X=z}if(Z.length&&Be(T)&&!Y8(T)&&!rt(T,o.floating)&&Array.from(Z).every(z=>!rt(X,z)))return;if(ot(T)&&F){const z=T.clientWidth>0&&T.scrollWidth>T.clientWidth,te=T.clientHeight>0&&T.scrollHeight>T.clientHeight;let Q=te&&S.offsetX>T.clientWidth;if(te&&Dt(T).direction==="rtl"&&(Q=S.offsetX<=T.offsetWidth-T.clientWidth),Q||z&&S.offsetY>T.clientHeight)return}const me=(A=i.current.floatingContext)==null?void 0:A.nodeId,re=x&&Mr(x.nodesRef.current,me).some(z=>{var te;return la(S,(te=z.context)==null?void 0:te.elements.floating)});if(la(S,o.floating)||la(S,o.domReference)||re)return;const oe=x?Mr(x.nodesRef.current,me):[];if(oe.length>0){let z=!0;if(oe.forEach(te=>{var Q;if((Q=te.context)!=null&&Q.open&&!te.context.dataRef.current.__outsidePressBubbles){z=!1;return}}),!z)return}r(!1,S,"outside-press")}),P=Ot(S=>{var A;const j=()=>{var R;N(S),(R=bn(S))==null||R.removeEventListener(u,j)};(A=bn(S))==null||A.addEventListener(u,j)});d.useEffect(()=>{if(!n||!a)return;i.current.__escapeKeyBubbles=E,i.current.__outsidePressBubbles=L;let S=-1;function A(Z){r(!1,Z,"ancestor-scroll")}function j(){window.clearTimeout(S),_.current=!0}function R(){S=window.setTimeout(()=>{_.current=!1},S1()?5:0)}const T=ht(o.floating);l&&(T.addEventListener("keydown",$?B:D,$),T.addEventListener("compositionstart",j),T.addEventListener("compositionend",R)),y&&T.addEventListener(u,M?P:N,M);let W=[];return g&&(Be(o.domReference)&&(W=Tn(o.domReference)),Be(o.floating)&&(W=W.concat(Tn(o.floating))),!Be(o.reference)&&o.reference&&o.reference.contextElement&&(W=W.concat(Tn(o.reference.contextElement)))),W=W.filter(Z=>{var X;return Z!==((X=T.defaultView)==null?void 0:X.visualViewport)}),W.forEach(Z=>{Z.addEventListener("scroll",A,{passive:!0})}),()=>{l&&(T.removeEventListener("keydown",$?B:D,$),T.removeEventListener("compositionstart",j),T.removeEventListener("compositionend",R)),y&&T.removeEventListener(u,M?P:N,M),W.forEach(Z=>{Z.removeEventListener("scroll",A)}),window.clearTimeout(S)}},[i,o,l,y,u,n,r,g,a,E,L,D,$,B,N,M,P]),d.useEffect(()=>{k.current=!1},[y,u]);const V=d.useMemo(()=>({onKeyDown:D,[df[f]]:S=>{p&&r(!1,S.nativeEvent,"reference-press")}}),[D,r,p,f]),F=d.useMemo(()=>({onKeyDown:D,onMouseDown(){w.current=!0},onMouseUp(){w.current=!0},[uf[u]]:()=>{k.current=!0}}),[D,u]);return d.useMemo(()=>a?{reference:V,floating:F}:{},[a,V,F])}function pf(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=rr(),i=d.useRef({}),[a]=d.useState(()=>Up()),l=Qs()!=null;if(process.env.NODE_ENV!=="production"){const v=r.reference;v&&!Be(v)&&Jp("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[c,u]=d.useState(r.reference),p=Ot((v,C,x)=>{i.current.openEvent=v?C:void 0,a.emit("openchange",{open:v,event:C,reason:x,nested:l}),n?.(v,C,x)}),f=d.useMemo(()=>({setPositionReference:u}),[]),g=d.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return d.useMemo(()=>({dataRef:i,open:t,onOpenChange:p,elements:g,events:a,floatingId:o,refs:f}),[t,p,g,a,o,f])}function Go(e){e===void 0&&(e={});const{nodeId:t}=e,n=pf({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=d.useState(null),[l,c]=d.useState(null),p=o?.domReference||i,f=d.useRef(null),g=A1();lt(()=>{p&&(f.current=p)},[p]);const v=Np({...e,elements:{...o,...l&&{reference:l}}}),C=d.useCallback(w=>{const E=Be(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),contextElement:w}:w;c(E),v.refs.setReference(E)},[v.refs]),x=d.useCallback(w=>{(Be(w)||w===null)&&(f.current=w,a(w)),(Be(v.refs.reference.current)||v.refs.reference.current===null||w!==null&&!Be(w))&&v.refs.setReference(w)},[v.refs]),b=d.useMemo(()=>({...v.refs,setReference:x,setPositionReference:C,domReference:f}),[v.refs,x,C]),y=d.useMemo(()=>({...v.elements,domReference:p}),[v.elements,p]),k=d.useMemo(()=>({...v,...r,refs:b,elements:y,nodeId:t}),[v,b,y,t,r]);return lt(()=>{r.dataRef.current.floatingContext=k;const w=g?.nodesRef.current.find(E=>E.id===t);w&&(w.context=k)}),d.useMemo(()=>({...v,context:k,refs:b,elements:y}),[v,b,y,k])}function ff(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:a}=e,{enabled:l=!0,visibleOnly:c=!0}=t,u=d.useRef(!1),p=d.useRef(),f=d.useRef(!0);d.useEffect(()=>{if(!l)return;const v=Mt(a.domReference);function C(){!n&&ot(a.domReference)&&a.domReference===vn(ht(a.domReference))&&(u.current=!0)}function x(){f.current=!0}return v.addEventListener("blur",C),v.addEventListener("keydown",x,!0),()=>{v.removeEventListener("blur",C),v.removeEventListener("keydown",x,!0)}},[a.domReference,n,l]),d.useEffect(()=>{if(!l)return;function v(C){let{reason:x}=C;(x==="reference-press"||x==="escape-key")&&(u.current=!0)}return o.on("openchange",v),()=>{o.off("openchange",v)}},[o,l]),d.useEffect(()=>()=>{clearTimeout(p.current)},[]);const g=d.useMemo(()=>({onPointerDown(v){a0(v.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(v){if(u.current)return;const C=bn(v.nativeEvent);if(c&&Be(C))try{if(s0()&&O8())throw Error();if(!C.matches(":focus-visible"))return}catch{if(!f.current&&!Zs(C))return}r(!0,v.nativeEvent,"focus")},onBlur(v){u.current=!1;const C=v.relatedTarget,x=v.nativeEvent,b=Be(C)&&C.hasAttribute(or("focus-guard"))&&C.getAttribute("data-type")==="outside";p.current=window.setTimeout(()=>{var y;const k=vn(a.domReference?a.domReference.ownerDocument:document);!C&&k===a.domReference||rt((y=i.current.floatingContext)==null?void 0:y.refs.floating.current,k)||rt(a.domReference,k)||b||r(!1,x,"focus")})}}),[i,a.domReference,r,c]);return d.useMemo(()=>l?{reference:g}:{},[l,g])}const Hc="active",Vc="selected";function ma(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[Hc]:a,[Vc]:l,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[rs]:""},...i,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(c=>{let[u,p]=c;if(!(o&&[Hc,Vc].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof p=="function"){var f;(f=r.get(u))==null||f.push(p),a[u]=function(){for(var g,v=arguments.length,C=new Array(v),x=0;x<v;x++)C[x]=arguments[x];return(g=r.get(u))==null?void 0:g.map(b=>b(...C)).find(b=>b!==void 0)}}}else a[u]=p}),a),{})}}function Xo(e){e===void 0&&(e=[]);const t=e.map(l=>l?.reference),n=e.map(l=>l?.floating),r=e.map(l=>l?.item),o=d.useCallback(l=>ma(l,e,"reference"),t),i=d.useCallback(l=>ma(l,e,"floating"),n),a=d.useCallback(l=>ma(l,e,"item"),r);return d.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a}),[o,i,a])}const hf=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Jo(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,l=(n=hf.get(a))!=null?n:a,c=rr(),p=Qs()!=null,f=d.useMemo(()=>l==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?o:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?o:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:c},...l==="menu"&&p&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[l,o,p,r,c,a]),g=d.useMemo(()=>{const C={id:o,...l&&{role:l}};return l==="tooltip"||a==="label"?C:{...C,...l==="menu"&&{"aria-labelledby":c}}},[l,o,c,a]),v=d.useCallback(C=>{let{active:x,selected:b}=C;const y={role:"option",...x&&{id:o+"-option"}};switch(a){case"select":return{...y,"aria-selected":x&&b};case"combobox":return{...y,...x&&{"aria-selected":!0}}}return{}},[o,a]);return d.useMemo(()=>i?{reference:f,floating:g,item:v}:{},[i,f,g,v])}const Nc=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function xr(e,t){return typeof e=="function"?e(t):e}function mf(e,t){const[n,r]=d.useState(e);return e&&!n&&r(!0),d.useEffect(()=>{if(!e&&n){const o=setTimeout(()=>r(!1),t);return()=>clearTimeout(o)}},[e,n,t]),n}function gf(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,a=(typeof o=="number"?o:o.close)||0,[l,c]=d.useState("unmounted"),u=mf(n,a);return!u&&l==="close"&&c("unmounted"),lt(()=>{if(r){if(n){c("initial");const p=requestAnimationFrame(()=>{c("open")});return()=>{cancelAnimationFrame(p)}}c("close")}},[n,r]),{isMounted:u,status:l}}function Uo(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:o,common:i,duration:a=250}=t,l=e.placement,c=l.split("-")[0],u=d.useMemo(()=>({side:c,placement:l}),[c,l]),p=typeof a=="number",f=(p?a:a.open)||0,g=(p?a:a.close)||0,[v,C]=d.useState(()=>({...xr(i,u),...xr(n,u)})),{isMounted:x,status:b}=gf(e,{duration:a}),y=rn(n),k=rn(r),w=rn(o),E=rn(i);return lt(()=>{const L=xr(y.current,u),$=xr(w.current,u),M=xr(E.current,u),_=xr(k.current,u)||Object.keys(L).reduce((D,B)=>(D[B]="",D),{});if(b==="initial"&&C(D=>({transitionProperty:D.transitionProperty,...M,...L})),b==="open"&&C({transitionProperty:Object.keys(_).map(Nc).join(","),transitionDuration:f+"ms",...M,..._}),b==="close"){const D=$||L;C({transitionProperty:Object.keys(D).map(Nc).join(","),transitionDuration:g+"ms",...M,...D})}},[g,w,y,k,E,f,b,u]),{isMounted:x,styles:v}}function Oc(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,l=i-1;a<i;l=a++){const[c,u]=t[a]||[0,0],[p,f]=t[l]||[0,0];u>=r!=f>=r&&n<=(p-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function vf(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Cf(e){e===void 0&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,l=null,c=performance.now();function u(f,g){const v=performance.now(),C=v-c;if(a===null||l===null||C===0)return a=f,l=g,c=v,null;const x=f-a,b=g-l,k=Math.sqrt(x*x+b*b)/C;return a=f,l=g,c=v,k}const p=f=>{let{x:g,y:v,placement:C,elements:x,onClose:b,nodeId:y,tree:k}=f;return function(E){function L(){clearTimeout(o),b()}if(clearTimeout(o),!x.domReference||!x.floating||C==null||g==null||v==null)return;const{clientX:$,clientY:M}=E,_=[$,M],D=bn(E),B=E.type==="mouseleave",N=rt(x.floating,D),P=rt(x.domReference,D),V=x.domReference.getBoundingClientRect(),F=x.floating.getBoundingClientRect(),S=C.split("-")[0],A=g>F.right-F.width/2,j=v>F.bottom-F.height/2,R=vf(_,V),T=F.width>V.width,W=F.height>V.height,Z=(T?V:F).left,X=(T?V:F).right,me=(W?V:F).top,re=(W?V:F).bottom;if(N&&(i=!0,!B))return;if(P&&(i=!1),P&&!B){i=!0;return}if(B&&Be(E.relatedTarget)&&rt(x.floating,E.relatedTarget)||k&&Mr(k.nodesRef.current,y).some(te=>{let{context:Q}=te;return Q?.open}))return;if(S==="top"&&v>=V.bottom-1||S==="bottom"&&v<=V.top+1||S==="left"&&g>=V.right-1||S==="right"&&g<=V.left+1)return L();let oe=[];switch(S){case"top":oe=[[Z,V.top+1],[Z,F.bottom-1],[X,F.bottom-1],[X,V.top+1]];break;case"bottom":oe=[[Z,F.top+1],[Z,V.bottom-1],[X,V.bottom-1],[X,F.top+1]];break;case"left":oe=[[F.right-1,re],[F.right-1,me],[V.left+1,me],[V.left+1,re]];break;case"right":oe=[[V.right-1,re],[V.right-1,me],[F.left+1,me],[F.left+1,re]];break}function z(te){let[Q,pe]=te;switch(S){case"top":{const ve=[T?Q+t/2:A?Q+t*4:Q-t*4,pe+t+1],He=[T?Q-t/2:A?Q+t*4:Q-t*4,pe+t+1],G=[[F.left,A||T?F.bottom-t:F.top],[F.right,A?T?F.bottom-t:F.top:F.bottom-t]];return[ve,He,...G]}case"bottom":{const ve=[T?Q+t/2:A?Q+t*4:Q-t*4,pe-t],He=[T?Q-t/2:A?Q+t*4:Q-t*4,pe-t],G=[[F.left,A||T?F.top+t:F.bottom],[F.right,A?T?F.top+t:F.bottom:F.top+t]];return[ve,He,...G]}case"left":{const ve=[Q+t+1,W?pe+t/2:j?pe+t*4:pe-t*4],He=[Q+t+1,W?pe-t/2:j?pe+t*4:pe-t*4];return[...[[j||W?F.right-t:F.left,F.top],[j?W?F.right-t:F.left:F.right-t,F.bottom]],ve,He]}case"right":{const ve=[Q-t,W?pe+t/2:j?pe+t*4:pe-t*4],He=[Q-t,W?pe-t/2:j?pe+t*4:pe-t*4],G=[[j||W?F.left+t:F.right,F.top],[j?W?F.left+t:F.right:F.left+t,F.bottom]];return[ve,He,...G]}}}if(!Oc([$,M],oe)){if(i&&!R)return L();if(!B&&r){const te=u(E.clientX,E.clientY);if(te!==null&&te<.1)return L()}Oc([$,M],z([g,v]))?!i&&r&&(o=window.setTimeout(L,40)):L()}}};return p.__options={blockPointerEvents:n},p}const On=e=>{if(Ar){const t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([.$?*|{}()[\]\\/+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):void 0}},Qo=(e,t,n={})=>{const r={path:"/","max-age":31104e3,...n},o=window.location.origin;o.includes("localhost")?r.domain="localhost":o.includes("profinansy.ae")?r.domain=".profinansy.ae":o.includes("qa.profinansy.dev")?r.domain=".profinansy.dev":r.domain=".profinansy.ru",n.expires instanceof Date&&(r.expires=n.expires.toUTCString());let i=encodeURIComponent(e)+"="+encodeURIComponent(t);for(const a in r){i+="; "+a;const l=r[a];l!==!0&&(i+="="+l)}document.cookie=i},xf=e=>{Qo(e,"",{"max-age":-1})},os=["/login","/idv","/method"],A0=m.createContext({mode:"light",selectedMode:"light",toggleTheme:null,setShowTheme:null,unAvailablePagesTheme:os}),ne=()=>m.useContext(A0),Wc="selected_theme",bf=({children:e,selectedTheme:t})=>{const[n,r]=m.useState(t??"light"),[o,i]=m.useState(t??"light");m.useEffect(()=>{let c=!0;const u=window?.location.pathname;os.forEach(p=>{u.includes(p)&&(c=!1)}),i(c?n:"light")},[n]),m.useEffect(()=>{const c=On(Wc);(c==="light"||c==="dark")&&r(c)},[]);const a=c=>{r(c),Qo(Wc,c)},l=c=>{i(c)};return s.jsx(A0.Provider,{value:{mode:o,selectedMode:n,toggleTheme:a,setShowTheme:l,unAvailablePagesTheme:os},children:e})},U={light:{background:{primary:"#F4F4F9",content:"#FFFFFF",secondary:"#F7F7F9",secondaryAlpha:"#EAE9F1",field:"#FFFFFF",fieldSecondary:"#F5F4F8",accent:"#6553F5",accentSecondaryTint:"#E8E5FE",positiveTint:"#DCF6DA",warningTint:"#FFF0DB",negativeTint:"#FFF1EC",info:"#DBDCFF",bottomActions:"rgba(255, 255, 255, 0.5)",overlay:"rgba(0, 0, 0, 0.60)"},text:{primary:"#242424",secondary:"#6A6A71",tertiary:"#A1A0AC",fourth:"#606076",contrast:"#FFFFFF",contrastThemed:"#FFFFFF",accent:"#6553F5",accentSecondary:"#9B8EFF",positive:"#34C759",warning:"#FFA000",negative:"#FF3B30",info:"#3038F5",link:"#4285F4"},icons:{primary:"#242424",secondary:"#AAAABA",tertiary:"#CCCBD3",fourth:"#606076",contrast:"#FFFFFF",contrastThemed:"#FFFFFF",contrastThemRev:"#FFFFFF",accent:"#6553F5",accentSecondary:"#9B8EFF",positive:"#34C759",warring:"#FFA000",negative:"#FF3B30",info:"#3038F5",link:"#4285F4"},stroke:{primary:"#DDDDE3",secondary:"#D6D6DE",tertiary:"#E7E7EB",contrast:"#7D7D95",accent:"#6553F5",positive:"#34C759",warning:"#FFA000",negative:"#FF3B30",info:"#3038F5",tooltip:"#F0F0F0"},interactiveButtons:{brandBackground:"#6553F5",brandBackgroundHover:"#4A35F3",brandText:"#FFFFFF",secondaryBrandBackground:"rgba(101, 83, 245, 0.12)",secondaryBrandBackgroundHover:"rgba(101, 83, 245, 0.22)",secondaryBrandText:"#4A35F3",whiteFixedBackground:"#FFFFFF",whiteFixedBackgroundHover:"rgba(255, 255, 255, 0.85)",whiteFixedText:"#242424",outlineBrandBackground:"#FFFFFF",outlineBrandBackgroundHover:"rgba(101, 83, 245, 0.08)",outlineBrandText:"#6553F5",outlineBrandBorder:"#6553F5",outlineBrandBorderHover:"#3821F2",systemBackground:"#EAE9F1",systemBackgroundHover:"#DFDEEA",systemText:"#464167",successBackground:"#E1F7E6",successBackgroundHover:"#BBEDC6",successText:"#299E47",warningBackground:"#FFF1D9",warningBackgroundHover:"#FFDFA8",warningText:"#E59000",criticalBackground:"#FFE2E0",criticalBackgroundHover:"#FFD7D4",criticalText:"#FF3B30",neutralBackground:"rgba(36, 36, 36, 0.50)",neutralBackgroundHover:"rgba(36, 36, 36, 0.70)",neutralText:"#FFFFFF",flatBrandTextHover:"#3821F2",flatSystemTextHover:"#6C659A"},interactiveControls:{accent:"#F0EFF3",secondary:"#FFFFFF",supportive:"#E8E8ED",brand:"#6553F5",brandAlpha:"#4A35F3",accentDark:"#19181B"},other:{orange:"#FFAD30",green:"#A0DD1E",olive:"#DBDE43",violet:"#6E59EF",red:"#EB343F",red2:"#FF4747",pink:"#F969FC",turquoise:"#2ED0C7",blue:"#72E3E3",mediumBlue:"#58C9E2",darkBlue:"#28C6E9",lightBlue:"#4285F4",navyBlue:"#11408E",lightBlueTint:"rgba(66, 133, 244, 0.10)",gray:"rgba(36, 36, 36, 0.50)",orangeTint:"#FFF9EF",greenTint:"#F8FDED",oliveTint:"#FCFDF0",violetTint:"#F4F2FE",redTint:"#FEEFF0",pinkTint:"#FFF3FF",turquoiseTint:"#EFFCFB",darkBlueTint:"#EEF8FB",black:"#111011"},shadow:{basicDefault:"0px 14px 20px -4px rgba(87, 87, 87, 0.10)",basicHover:"0px 12px 28px -3px rgba(87, 87, 87, 0.20)",basicDrag:"0px 12px 32px -3px rgba(87, 87, 87, 0.32)",overlay:"0px 16px 40px -3px rgba(58, 57, 60, 0.28)",dropdown:"0px 4px 8px 0px rgba(0, 0, 0, 0.04), 0px 0px 4px 0px rgba(0, 0, 0, 0.06)",modal:"0px 14px 30px -4px rgba(0, 0, 0, 0.2)",dragItem:"0px 4px 12px rgba(0, 0, 0, 0.15)"},statesBackground:{tabsHover:"#F6F6F6",tabsActive:"#383838",tabsActiveHover:"#242424",accentHover:"#7665FF",accentActive:"#5D48F5",field:"rgba(0, 0, 0, 0.06)",secondaryAlphaActive:"#DCDCDC",secondaryAlphaHover:"#E7E7E7",listHover:"#F6F6F6",notificationHover:"#F6F6F6",notificationHoverError:"#F6F6F6",sideBarActive:"#111011",sideBarOpen:"#E1E0EB"},gradient:{gradient_1:"linear-gradient(90deg, #f4f4f9 0%, rgba(244, 244, 249, 0) 100%)",gradient_2:"linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%)",gradient_3:"linear-gradient(90deg, rgba(244, 244, 249, 0) 0%, #f4f4f9 100%)",gradient_4:"linear-gradient(90deg, rgba(255, 255, 255, 0.00) 0%, #FFF 100%)",top:"linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.95) 52.08%, rgba(255, 255, 255, 0.00) 100%)",bottom:"linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.95) 53.12%, #FFF 100%)"},club:{primary:"#3C3993",primaryHover:"#5853E3",secondary:"#4833F4",secondaryHover:"#200DB8",buttonBackground:"#E7E7F2",buttonBackgroundHover:"#CAC9E1",green:"#29B279",primaryActive:"#2B2979",primaryGradient:"linear-gradient(54.06deg, #162331 10.84%, #3C3993 98.2%)",secondaryGradient:"linear-gradient(90.24deg, #B92A78 0%, #6699FB 99.58%)"},nav:{search:"#1E1E1E",chipsSearch:"#171718",divider:"#1B1B1C",tabs:"#252527"}},dark:{background:{primary:"#181818",content:"#202020",secondary:"#2B2B2B",secondaryAlpha:"#333333",field:"#2B2B2B",fieldSecondary:"#323232",accent:"#9B8EFF",accentSecondaryTint:"#2B293A",positiveTint:"#384436",warningTint:"#453B2B",negativeTint:"#362D2A",info:"#20213B",bottomActions:"rgba(24, 24, 24, 0.85)",overlay:"rgba(0, 0, 0, 0.60)"},text:{primary:"#FFFFFF",secondary:"#BABAC6",tertiary:"#73738C",fourth:"#E0E0E6",contrast:"#242424",contrastThemed:"#FFFFFF",accent:"#9B8EFF",accentSecondary:"#756CBB",positive:"#30D158",warning:"#F49B06",negative:"#FF452A",info:"#3B42EA",link:"#4285F4"},icons:{primary:"#D9D9D9",secondary:"#BABAC6",tertiary:"#3E3E4C",fourth:"#E0E0E6",contrast:"#242424",contrastThemed:"#FFFFFF",contrastThemRev:"#454545",accent:"#9B8EFF",accentSecondary:"#756CBB",positive:"#30D158",warring:"#F49B06",negative:"#FF452A",info:"#3B42EA",link:"#4285F4"},stroke:{primary:"#3E3E4C",secondary:"#7D7D95",tertiary:"#454554",contrast:"#535365",accent:"#9B8EFF",positive:"#30D158",warning:"#F49B06",negative:"#FF453A",info:"#3B42EA",tooltip:"#535365"},interactiveButtons:{brandBackground:"#7B61FF",brandBackgroundHover:"#6142FF",brandText:"#FFFFFF",secondaryBrandBackground:"rgba(155, 142, 255, 0.12)",secondaryBrandBackgroundHover:"rgba(155, 142, 255, 0.22)",secondaryBrandText:"#6142FF",whiteFixedBackground:"#FFFFFF",whiteFixedBackgroundHover:"rgba(255, 255, 255, 0.85)",whiteFixedText:"#242424",outlineBrandBackground:"#202020",outlineBrandBackgroundHover:"rgba(155, 142, 255, 0.1)",outlineBrandText:"#9B8EFF",outlineBrandBorder:"#9B8EFF",outlineBrandBorderHover:"#9B8EFF",systemBackground:"#2E2E38",systemBackgroundHover:"#3A3A48",systemText:"#CCCADD",successBackground:"#223B28",successBackgroundHover:"#2B4A32",successText:"#2CAA4C",warningBackground:"#40321C",warningBackgroundHover:"#634E2B",warningText:"#F99E06",criticalBackground:"#412621",criticalBackgroundHover:"#38211D",criticalText:"#FF5A42",neutralBackground:"rgba(255, 255, 255, 0.50)",neutralBackgroundHover:"rgba(255, 255, 255, 0.70)",neutralText:"#FFFFFF",flatBrandTextHover:"#9B8EFF",flatSystemTextHover:"#777399"},interactiveControls:{accent:"#39383C",secondary:"#242424",supportive:"#2F2F37",brand:"#7B61FF",brandAlpha:"#6142FF",accentDark:"#FFFFFF"},other:{orange:"#E79D2D",green:"#91C81C",olive:"#C1C339",violet:"#6E59EF",red:"#E8343F",red2:"#F02D3A",pink:"#E05DE2",turquoise:"#229E97",blue:"#61C5C5",mediumBlue:"#51BBD2",darkBlue:"#21AFCE",lightBlue:"#317AF2",navyBlue:"#C9DEFF",lightBlueTint:"rgba(49, 122, 242, 0.04)",gray:"rgba(48, 48, 48, 0.50)",orangeTint:"rgba(255, 173, 48, 0.04)",greenTint:"rgba(160, 221, 30, 0.04)",oliveTint:"rgba(219, 222, 67, 0.04)",violetTint:"rgba(110, 89, 239, 0.04)",redTint:"rgba(235, 52, 63, 0.04)",pinkTint:"rgba(249, 105, 252, 0.04)",turquoiseTint:"rgba(46, 208, 199, 0.04)",darkBlueTint:"rgba(33, 175, 206, 0.04)",black:"#242325"},shadow:{basicDefault:null,basicHover:null,basicDrag:null,overlay:null,dropdown:null,modal:null,dragItem:null},statesBackground:{tabsHover:"#383838",tabsActive:"#FFFFFF",tabsActiveHover:"#F6F6F6",accentHover:"#614DF5",accentActive:"#9284FF",field:"rgba(255, 255, 255, 0.06)",secondaryAlphaActive:"#505050",secondaryAlphaHover:"#404040",listHover:"#303030",notificationHover:"#303030",notificationHoverError:"#303030",sideBarActive:"#333036",sideBarOpen:"#333036"},gradient:{gradient_1:"linear-gradient(90deg, #181818 0%, rgba(24, 24, 24, 0.00) 100%)",gradient_2:"linear-gradient(90deg, #2B2B2B 0%, rgba(43, 43, 43, 0.00) 100%)",gradient_3:"linear-gradient(90deg, rgba(24, 24, 24, 0.00) 0%, #181818 100%)",gradient_4:"linear-gradient(90deg, rgba(43, 43, 43, 0.00) 0%, #2B2B2B 100%)",top:"linear-gradient(180deg, #2B2B2B 0%, rgba(43, 43, 43, 0.95) 53.65%, rgba(43, 43, 43, 0.00) 100%)",bottom:" linear-gradient(180deg, rgba(43, 43, 43, 0.00) 0%, rgba(43, 43, 43, 0.95) 52.08%, #2B2B2B 100%)"},club:{primary:"#5854C6",primaryHover:"#7672F6",secondary:"#8C7CFF",secondaryHover:"#614FED",buttonBackground:"#282837",buttonBackgroundHover:"#2E2C60",green:"#2FCA89",primaryActive:"#3C3180",primaryGradient:"linear-gradient(54.11deg, #2C2562 6.32%, #4641BF 116.13%)",secondaryGradient:"linear-gradient(90.24deg, #CE2680 0%, #4080FD 99.58%)"},nav:{search:"#1E1E1E",chipsSearch:"#171718",divider:"#2B2B2D",tabs:"#323235"}}},el={idv:"linear-gradient(95.09deg, #6553f5 14.05%, #ee2cff 108.18%)",idvShort:"linear-gradient(95deg, #6553f5 14.05%, #ee2cff 108.18%)"},Et=h.css`
369
369
  &::-webkit-scrollbar {
370
370
  width: 4px;
371
371
  height: 4px;
@@ -1168,7 +1168,7 @@ Check the top-level render call using <`+q+">.")}return Y}}function tc(I,Y){{if(
1168
1168
  display: flex;
1169
1169
  align-items: center;
1170
1170
  width: 100%;
1171
- `,U0=({label:e,children:t,required:n,marginBottom:r=16,hint:o=null,className:i})=>{const{mode:a}=ne();return s.jsx(h.ThemeProvider,{theme:U[a],children:s.jsxs(nm,{$marginBottom:r,className:Te(i,"fieldRow-container"),children:[!!e&&s.jsxs(rm,{onClick:l=>l.preventDefault(),children:[e," ",n&&s.jsx(om,{children:"*"}),!!o?.content?.length&&s.jsx(im,{children:s.jsx(ur,{...o})})]}),s.jsx(am,{children:t})]})})},sm=(e,t)=>e==="flatSystem"||e==="flatBrand"?{height:"auto",maxHeight:"auto",borderRadius:"0px"}:{L:{height:"48px",maxHeight:"48px",borderRadius:t==="square"?"14px":"100%"},M:{height:"40px",maxHeight:"40px",borderRadius:t==="square"?"12px":"100%"},S:{height:"34px",maxHeight:"34px",borderRadius:t==="square"?"10px":"100%"}},bt=e=>({primary:{default:{color:e.interactiveButtons.brandText,background:e.interactiveButtons.brandBackground,border:`1px solid ${e.interactiveButtons.brandBackground}`},hover:{color:e.interactiveButtons.brandText,background:e.interactiveButtons.brandBackgroundHover,border:`1px solid ${e.interactiveButtons.brandBackgroundHover}`},active:{color:e.interactiveButtons.brandText,background:e.interactiveButtons.brandBackground,border:`1px solid ${e.interactiveButtons.brandBackground}`}},secondary:{default:{color:e.interactiveButtons.secondaryBrandText,background:e.interactiveButtons.secondaryBrandBackground,border:`1px solid ${e.interactiveButtons.secondaryBrandBackground}`},hover:{color:e.interactiveButtons.secondaryBrandText,background:e.interactiveButtons.secondaryBrandBackgroundHover,border:`1px solid ${e.interactiveButtons.secondaryBrandBackgroundHover}`},active:{color:e.interactiveButtons.secondaryBrandText,background:e.interactiveButtons.secondaryBrandBackground,border:`1px solid ${e.interactiveButtons.secondaryBrandBackground}`}},whiteFixed:{default:{color:e.interactiveButtons.whiteFixedText,background:e.interactiveButtons.whiteFixedBackground,border:`1px solid ${e.interactiveButtons.whiteFixedBackground}`},hover:{color:e.interactiveButtons.whiteFixedText,background:e.interactiveButtons.whiteFixedBackgroundHover,border:`1px solid ${e.interactiveButtons.whiteFixedBackgroundHover}`},active:{color:e.interactiveButtons.whiteFixedText,background:e.interactiveButtons.whiteFixedBackground,border:`1px solid ${e.interactiveButtons.whiteFixedBackground}`}},outlineBrand:{default:{color:e.interactiveButtons.outlineBrandText,background:"transparent",border:`1px solid ${e.interactiveButtons.outlineBrandBorder}`},hover:{color:e.interactiveButtons.outlineBrandText,background:e.interactiveButtons.outlineBrandBackgroundHover,border:`1px solid ${e.interactiveButtons.outlineBrandBorderHover}`},active:{color:e.interactiveButtons.outlineBrandText,background:"transparent",border:`1px solid ${e.interactiveButtons.outlineBrandBorder}`}},success:{default:{color:e.interactiveButtons.successText,background:e.interactiveButtons.successBackground,border:`1px solid ${e.interactiveButtons.successBackground}`},hover:{color:e.interactiveButtons.successText,background:e.interactiveButtons.successBackgroundHover,border:`1px solid ${e.interactiveButtons.successBackgroundHover}`},active:{color:e.interactiveButtons.successText,background:e.interactiveButtons.successBackground,border:`1px solid ${e.interactiveButtons.successBackground}`}},warning:{default:{color:e.interactiveButtons.warningText,background:e.interactiveButtons.warningBackground,border:`1px solid ${e.interactiveButtons.warningBackground}`},hover:{color:e.interactiveButtons.warningText,background:e.interactiveButtons.warningBackgroundHover,border:`1px solid ${e.interactiveButtons.warningBackgroundHover}`},active:{color:e.interactiveButtons.warningText,background:e.interactiveButtons.warningBackground,border:`1px solid ${e.interactiveButtons.warningBackground}`}},secondaryCritical:{default:{color:e.interactiveButtons.criticalText,background:e.interactiveButtons.criticalBackground,border:`1px solid ${e.interactiveButtons.criticalBackground}`},hover:{color:e.interactiveButtons.criticalText,background:e.interactiveButtons.criticalBackgroundHover,border:`1px solid ${e.interactiveButtons.criticalBackgroundHover}`},active:{color:e.interactiveButtons.criticalText,background:e.interactiveButtons.criticalBackground,border:`1px solid ${e.interactiveButtons.criticalBackground}`}},secondarySystem:{default:{color:e.interactiveButtons.systemText,background:e.interactiveButtons.systemBackground,border:`1px solid ${e.interactiveButtons.systemBackground}`},hover:{color:e.interactiveButtons.systemText,background:e.interactiveButtons.systemBackgroundHover,border:`1px solid ${e.interactiveButtons.systemBackgroundHover}`},active:{color:e.interactiveButtons.systemText,background:e.interactiveButtons.systemBackground,border:`1px solid ${e.interactiveButtons.systemBackground}`}},neutral:{default:{color:e.interactiveButtons.neutralText,background:e.interactiveButtons.neutralBackground,border:"1px solid transparent"},hover:{color:e.interactiveButtons.neutralText,background:e.interactiveButtons.neutralBackgroundHover,border:"1px solid transparent"},active:{color:e.interactiveButtons.neutralText,background:e.interactiveButtons.neutralBackground,border:"1px solid transparent"}},flatBrand:{default:{color:e.interactiveButtons.outlineBrandText,background:"transparent",border:"1px solid transparent"},hover:{color:e.interactiveButtons.flatBrandTextHover,background:"transparent",border:"1px solid transparent"},active:{color:e.interactiveButtons.outlineBrandText,background:"transparent",border:"1px solid transparent"}},flatSystem:{default:{color:e.interactiveButtons.systemText,background:"transparent",border:"1px solid transparent"},hover:{color:e.interactiveButtons.flatSystemTextHover,background:"transparent",border:"1px solid transparent"},active:{color:e.interactiveButtons.systemText,background:"transparent",border:"1px solid transparent"}},methodPrimary:{default:{color:e.interactiveButtons.brandText,background:e.club.primary,border:`1px solid ${e.club.primary}`},hover:{color:e.interactiveButtons.brandText,background:e.club.primaryHover,border:`1px solid ${e.club.primaryHover}`},active:{color:e.interactiveButtons.brandText,background:e.club.primaryActive,border:`1px solid ${e.club.primaryActive}`}},methodSecondary:{default:{color:e.club.primary,background:e.club.buttonBackground,border:`1px solid ${e.club.buttonBackground}`},hover:{color:e.text.contrastThemed,background:e.club.primary,border:`1px solid ${e.club.primary}`},active:{color:e.text.contrastThemed,background:e.club.primaryHover,border:`1px solid ${e.club.primaryHover}`}},methodFlatBrand:{default:{color:e.club.primary,background:"transparent",border:"1px solid transparent"},hover:{color:e.club.primaryHover,background:"transparent",border:"1px solid transparent"},active:{color:e.club.primaryActive,background:"transparent",border:"1px solid transparent"}}}),Xc=(e,t,n,r)=>e==="flatBrand"||e==="flatSystem"||e==="methodFlatBrand"?0:t==="L"?n&&r?28:n?32:14:t==="M"?n&&r?20:n?24:10:n&&r?16:n?20:4,lm=e=>e==="L"||e==="M"?"6px":"4px",Q0=h.styled.span`
1171
+ `,U0=({label:e,children:t,required:n,marginBottom:r=16,hint:o=null,className:i})=>{const{mode:a}=ne();return s.jsx(h.ThemeProvider,{theme:U[a],children:s.jsxs(nm,{$marginBottom:r,className:Te(i,"fieldRow-container"),children:[!!e&&s.jsxs(rm,{onClick:l=>l.preventDefault(),children:[e," ",n&&s.jsx(om,{children:"*"}),!!o?.content?.length&&s.jsx(im,{children:s.jsx(ur,{...o})})]}),s.jsx(am,{children:t})]})})},sm=(e,t)=>e==="flatSystem"||e==="flatBrand"?{height:"auto",maxHeight:"auto",borderRadius:"0px"}:{L:{height:"48px",maxHeight:"48px",borderRadius:t==="square"?"14px":"100%"},M:{height:"40px",maxHeight:"40px",borderRadius:t==="square"?"12px":"100%"},S:{height:"34px",maxHeight:"34px",borderRadius:t==="square"?"10px":"100%"}},bt=e=>({primary:{default:{color:e.interactiveButtons.brandText,background:e.interactiveButtons.brandBackground,border:`1px solid ${e.interactiveButtons.brandBackground}`},hover:{color:e.interactiveButtons.brandText,background:e.interactiveButtons.brandBackgroundHover,border:`1px solid ${e.interactiveButtons.brandBackgroundHover}`},active:{color:e.interactiveButtons.brandText,background:e.interactiveButtons.brandBackground,border:`1px solid ${e.interactiveButtons.brandBackground}`}},secondary:{default:{color:e.interactiveButtons.secondaryBrandText,background:e.interactiveButtons.secondaryBrandBackground,border:"1px solid transparent"},hover:{color:e.interactiveButtons.secondaryBrandText,background:e.interactiveButtons.secondaryBrandBackgroundHover,border:"1px solid transparent"},active:{color:e.interactiveButtons.secondaryBrandText,background:e.interactiveButtons.secondaryBrandBackground,border:"1px solid transparent"}},whiteFixed:{default:{color:e.interactiveButtons.whiteFixedText,background:e.interactiveButtons.whiteFixedBackground,border:`1px solid ${e.interactiveButtons.whiteFixedBackground}`},hover:{color:e.interactiveButtons.whiteFixedText,background:e.interactiveButtons.whiteFixedBackgroundHover,border:`1px solid ${e.interactiveButtons.whiteFixedBackgroundHover}`},active:{color:e.interactiveButtons.whiteFixedText,background:e.interactiveButtons.whiteFixedBackground,border:`1px solid ${e.interactiveButtons.whiteFixedBackground}`}},outlineBrand:{default:{color:e.interactiveButtons.outlineBrandText,background:"transparent",border:`1px solid ${e.interactiveButtons.outlineBrandBorder}`},hover:{color:e.interactiveButtons.outlineBrandText,background:e.interactiveButtons.outlineBrandBackgroundHover,border:`1px solid ${e.interactiveButtons.outlineBrandBorderHover}`},active:{color:e.interactiveButtons.outlineBrandText,background:"transparent",border:`1px solid ${e.interactiveButtons.outlineBrandBorder}`}},success:{default:{color:e.interactiveButtons.successText,background:e.interactiveButtons.successBackground,border:`1px solid ${e.interactiveButtons.successBackground}`},hover:{color:e.interactiveButtons.successText,background:e.interactiveButtons.successBackgroundHover,border:`1px solid ${e.interactiveButtons.successBackgroundHover}`},active:{color:e.interactiveButtons.successText,background:e.interactiveButtons.successBackground,border:`1px solid ${e.interactiveButtons.successBackground}`}},warning:{default:{color:e.interactiveButtons.warningText,background:e.interactiveButtons.warningBackground,border:`1px solid ${e.interactiveButtons.warningBackground}`},hover:{color:e.interactiveButtons.warningText,background:e.interactiveButtons.warningBackgroundHover,border:`1px solid ${e.interactiveButtons.warningBackgroundHover}`},active:{color:e.interactiveButtons.warningText,background:e.interactiveButtons.warningBackground,border:`1px solid ${e.interactiveButtons.warningBackground}`}},secondaryCritical:{default:{color:e.interactiveButtons.criticalText,background:e.interactiveButtons.criticalBackground,border:`1px solid ${e.interactiveButtons.criticalBackground}`},hover:{color:e.interactiveButtons.criticalText,background:e.interactiveButtons.criticalBackgroundHover,border:`1px solid ${e.interactiveButtons.criticalBackgroundHover}`},active:{color:e.interactiveButtons.criticalText,background:e.interactiveButtons.criticalBackground,border:`1px solid ${e.interactiveButtons.criticalBackground}`}},secondarySystem:{default:{color:e.interactiveButtons.systemText,background:e.interactiveButtons.systemBackground,border:`1px solid ${e.interactiveButtons.systemBackground}`},hover:{color:e.interactiveButtons.systemText,background:e.interactiveButtons.systemBackgroundHover,border:`1px solid ${e.interactiveButtons.systemBackgroundHover}`},active:{color:e.interactiveButtons.systemText,background:e.interactiveButtons.systemBackground,border:`1px solid ${e.interactiveButtons.systemBackground}`}},neutral:{default:{color:e.interactiveButtons.neutralText,background:e.interactiveButtons.neutralBackground,border:"1px solid transparent"},hover:{color:e.interactiveButtons.neutralText,background:e.interactiveButtons.neutralBackgroundHover,border:"1px solid transparent"},active:{color:e.interactiveButtons.neutralText,background:e.interactiveButtons.neutralBackground,border:"1px solid transparent"}},flatBrand:{default:{color:e.interactiveButtons.outlineBrandText,background:"transparent",border:"1px solid transparent"},hover:{color:e.interactiveButtons.flatBrandTextHover,background:"transparent",border:"1px solid transparent"},active:{color:e.interactiveButtons.outlineBrandText,background:"transparent",border:"1px solid transparent"}},flatSystem:{default:{color:e.interactiveButtons.systemText,background:"transparent",border:"1px solid transparent"},hover:{color:e.interactiveButtons.flatSystemTextHover,background:"transparent",border:"1px solid transparent"},active:{color:e.interactiveButtons.systemText,background:"transparent",border:"1px solid transparent"}},methodPrimary:{default:{color:e.interactiveButtons.brandText,background:e.club.primary,border:`1px solid ${e.club.primary}`},hover:{color:e.interactiveButtons.brandText,background:e.club.primaryHover,border:`1px solid ${e.club.primaryHover}`},active:{color:e.interactiveButtons.brandText,background:e.club.primaryActive,border:`1px solid ${e.club.primaryActive}`}},methodSecondary:{default:{color:e.club.primary,background:e.club.buttonBackground,border:`1px solid ${e.club.buttonBackground}`},hover:{color:e.text.contrastThemed,background:e.club.primary,border:`1px solid ${e.club.primary}`},active:{color:e.text.contrastThemed,background:e.club.primaryHover,border:`1px solid ${e.club.primaryHover}`}},methodFlatBrand:{default:{color:e.club.primary,background:"transparent",border:"1px solid transparent"},hover:{color:e.club.primaryHover,background:"transparent",border:"1px solid transparent"},active:{color:e.club.primaryActive,background:"transparent",border:"1px solid transparent"}}}),Xc=(e,t,n,r)=>e==="flatBrand"||e==="flatSystem"||e==="methodFlatBrand"?0:t==="L"?n&&r?28:n?32:14:t==="M"?n&&r?20:n?24:10:n&&r?16:n?20:4,lm=e=>e==="L"||e==="M"?"6px":"4px",Q0=h.styled.span`
1172
1172
  width: ${e=>e.$size==="S"?"16px":"18px"};
1173
1173
  height: ${e=>e.$size==="S"?"16px":"18px"};
1174
1174
  display: flex;
@@ -1178,7 +1178,7 @@ Check the top-level render call using <`+q+">.")}return Y}}function tc(I,Y){{if(
1178
1178
  transition: transform 0.3s ${O.animation_1};
1179
1179
  & svg {
1180
1180
  width: 100%;
1181
- height: 100%;
1181
+ /* height: 100%; */
1182
1182
  }
1183
1183
  `,K0=h.styled.span`
1184
1184
  width: ${e=>e.$size==="S"?"16px":"18px"};
@@ -1190,7 +1190,7 @@ Check the top-level render call using <`+q+">.")}return Y}}function tc(I,Y){{if(
1190
1190
  transition: transform 0.3s ${O.animation_1};
1191
1191
  & svg {
1192
1192
  width: 100%;
1193
- height: 100%;
1193
+ /* height: 100%; */
1194
1194
  }
1195
1195
  `,cm=h.styled.button`
1196
1196
  position: relative;