PageSourceSearch

https://my.bluehealth.co/_next/static/immutable/chunks/1avsj50kwbazx.js

js bluehealth.co collected 2026-10-07 21:58:05 UTC 68,123 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="916c8ddd-edfc-aa96-2edd-594e765c65cd")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,555324,e=>{"use strict";var t=e.i(60750),n=e.i(912935);e.s([],832874),e.i(832874);var r=e.i(676524),i=e.i(93207),o=e.i(286638);let l=r.createContext(void 0);function s(){let e=r.useContext(l);if(void 0===e)throw Error((0,o.default)(13));return e}let u={imageLoadingStatus:()=>null},a=r.forwardRef(function(e,n){let{className:o,render:s,style:a,...c}=e,[f,d]=r.useState("idle"),g=r.useMemo(()=>({imageLoadingStatus:f,setImageLoadingStatus:d}),[f,d]),m=(0,i.useRenderElement)("span",e,{state:{imageLoadingStatus:f},ref:n,props:c,stateAttributesMapping:u});return(0,t.jsx)(l.Provider,{value:g,children:m})});var c=e.i(249213),f=e.i(176544),d=e.i(471379),g=e.i(319393),m=e.i(745764),p=e.i(824462);let h={...u,...g.transitionStatusMapping},v=r.forwardRef(function(e,t){let{className:n,render:o,onLoadingStatusChange:l,referrerPolicy:u,crossOrigin:a,style:g,...v}=e,y=s(),E=function(e,{referrerPolicy:t,crossOrigin:n}){let[i,o]=r.useState("idle");return(0,f.useIsoLayoutEffect)(()=>{if(!e)return o("error"),p.NOOP;let r=!0,i=new window.Image,l=e=>()=>{r&&o(e)};return o("loading"),i.onload=l("loaded"),i.onerror=l("error"),t&&(i.referrerPolicy=t),i.crossOrigin=n??null,i.src=e,i.complete&&o(i.naturalWidth>0?"loaded":"error"),()=>{r=!1}},[e,n,t]),i}(e.src,{referrerPolicy:u,crossOrigin:a}),x="loaded"===E,{mounted:b,transitionStatus:R,setMounted:w}=(0,m.useTransitionStatus)(x),S=r.useRef(null),C=(0,c.useStableCallback)(e=>{l?.(e),y.setImageLoadingStatus(e)});(0,f.useIsoLayoutEffect)(()=>{"idle"!==E&&C(E)},[E,C]),(0,d.useOpenChangeComplete)({open:x,ref:S,onComplete(){x||w(!1)}});let T=(0,i.useRenderElement)("img",e,{state:{imageLoadingStatus:E,transitionStatus:R},ref:[t,S],props:v,stateAttributesMapping:h,enabled:b});return b?T:null});var y=e.i(741578);let E=r.forwardRef(function(e,t){let{className:n,render:o,delay:l,style:a,...c}=e,{imageLoadingStatus:f}=s(),[d,g]=r.useState(void 0===l),m=(0,y.useTimeout)();return r.useEffect(()=>(void 0!==l&&m.start(l,()=>g(!0)),m.clear),[m,l]),(0,i.useRenderElement)("span",e,{state:{imageLoadingStatus:f},ref:t,props:c,stateAttributesMapping:u,enabled:"loaded"!==f&&d})});e.s(["Fallback",0,E,"Image",0,v,"Root",0,a],455296);var x=e.i(455296),x=x,b=e.i(254090);e.s(["Avatar",0,function(e){let r,i,o,l,s=(0,n.c)(8);return s[0]!==e?({className:r,...i}=e,s[0]=e,s[1]=r,s[2]=i):(r=s[1],i=s[2]),s[3]!==r?(o=(0,b.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full",r),s[3]=r,s[4]=o):o=s[4],s[5]!==i||s[6]!==o?(l=(0,t.jsx)(x.Root,{className:o,"data-slot":"avatar",...i}),s[5]=i,s[6]=o,s[7]=l):l=s[7],l},"AvatarFallback",0,function(e){let r,i,o,l,s=(0,n.c)(8);return s[0]!==e?({className:r,...i}=e,s[0]=e,s[1]=r,s[2]=i):(r=s[1],i=s[2]),s[3]!==r?(o=(0,b.cn)("flex size-full items-center justify-center rounded-full","bg-p-blue-grey text-p-white-warm","font-mono",r),s[3]=r,s[4]=o):o=s[4],s[5]!==i||s[6]!==o?(l=(0,t.jsx)(x.Fallback,{className:o,"data-slot":"avatar-fallback",...i}),s[5]=i,s[6]=o,s[7]=l):l=s[7],l},"AvatarImage",0,function(e){let r,i,o,l,s=(0,n.c)(8);return s[0]!==e?({className:r,...i}=e,s[0]=e,s[1]=r,s[2]=i):(r=s[1],i=s[2]),s[3]!==r?(o=(0,b.cn)("aspect-square size-full",r),s[3]=r,s[4]=o):o=s[4],s[5]!==i||s[6]!==o?(l=(0,t.jsx)(x.Image,{className:o,"data-slot":"avatar-image",...i}),s[5]=i,s[6]=o,s[7]=l):l=s[7],l}],555324)},852580,454918,e=>{"use strict";var t=e.i(60750),n=e.i(912935),r=e.i(52659),i=e.i(239101),o=e.i(79362),l=e.i(729834);let s=(e,t)=>t?((e,t={})=>{let n=e.split("?"),r=n[1]?((e={},t={})=>{for(let n in t){let r=t[n];e[n]&&(0,l.isNull)(r)?delete e[n]:e[n]=r}return e})((0,o.getUrlQueryParams)(e),t):t;return n[0]+(0,i.buildUrlQueryString)(r)})(e,t):e;e.s(["getCrossAppUrl",0,s,"urlClientAppAndroid",0,"https://play.google.com/store/apps/details?id=com.bluehealth.app","urlClientAppIos",0,"https://apps.apple.com/it/app/blue-health/id000000000"],454918);var u=e.i(427916);function a(e,t){return s(`https://app.bluehealth.co${e}
2`,{[u.searchParamLocale]:t})}e.s(["LinkToClientApp",0,function(e){let i,o,l,s,u=(0,n.c)(7);u[0]!==e?({pathname:o,locale:i,...l}=e,u[0]=e,u[1]=i,u[2]=o,u[3]=l):(i=u[1],o=u[2],l=u[3]);let c=a(o,i);return u[4]!==c||u[5]!==l?(s=(0,t.jsx)(r.default,{href:c,rel:"noopener",...l}),u[4]=c,u[5]=l,u[6]=s):s=u[6],s},"useLinkToClientApp",0,a],852580)},494473,e=>{"use strict";var t=e.i(676524),n=e.i(92615),r=e.i(668444),i=e.i(491436),o=e.i(249213),l=e.i(176544),s=e.i(741578),u=e.i(956741),a=e.i(703214),c=e.i(799915),f=e.i(540167),d=e.i(169372),g=e.i(573989),m=e.i(228695),p=e.i(457503),h=e.i(121447);e.s(["useHoverFloatingInteraction",0,function(e,v={}){let y="rootStore"in e?e.rootStore:e,E=y.useState("open"),x=y.useState("floatingElement"),b=y.useState("domReferenceElement"),{dataRef:R}=y.context,{enabled:w=!0,closeDelay:S=0,nodeId:C}=v,T=(0,p.useHoverInteractionSharedState)(y),A=(0,m.useFloatingTree)(),O=(0,m.useFloatingParentNodeId)(),L=(0,o.useStableCallback)(()=>(0,h.isClickLikeOpenEvent)(R.current.openEvent?.type,T.interactedInside)),P=(0,o.useStableCallback)(()=>{let e=R.current.openEvent?.type;return e?.includes("mouse")&&"mousedown"!==e}),M=(0,o.useStableCallback)(e=>(0,c.isTargetInsideEnabledTrigger)(e,y.context.triggerElements)),k=t.useCallback(e=>{let t=(0,h.getDelay)(S,"close",T.pointerType),n=()=>{y.setOpen(!1,(0,d.createChangeEventDetails)(g.REASONS.triggerHover,e)),A?.events.emit("floating.closed",e)};t?T.openChangeTimeout.start(t,n):(T.openChangeTimeout.clear(),n())},[S,y,T,A]),I=(0,o.useStableCallback)(()=>{(0,p.clearSafePolygonPointerEventsMutation)(T)}),D=(0,o.useStableCallback)(e=>{let t=(0,a.getTarget)(e);if(!(0,c.isInteractiveElement)(t)){T.interactedInside=!1;return}T.interactedInside=t?.closest("[aria-haspopup]")!=null});(0,l.useIsoLayoutEffect)(()=>{E||(T.pointerType=void 0,T.restTimeoutPending=!1,T.interactedInside=!1,I())},[E,T,I]),t.useEffect(()=>I,[I]),(0,l.useIsoLayoutEffect)(()=>{if(w&&E&&T.handleCloseOptions?.blockPointerEvents&&P()&&(0,n.isElement)(b)&&x){let e=(0,u.ownerDocument)(x),t=A?.nodesRef.current.find(e=>e.id===O)?.context?.elements.floating;t&&(t.style.pointerEvents="");let n=T.handleCloseOptions?.getScope?.()??T.pointerEventsScopeElement??t??b.closest("[data-rootownerid]")??e.body;return(0,p.applySafePolygonPointerEventsMutation)(T,{scopeElement:n,referenceElement:b,floatingElement:x}),()=>{I()}}},[w,E,b,x,T,P,A,O,I]);let N=(0,s.useTimeout)();t.useEffect(()=>{if(w)return(0,i.mergeCleanups)(x&&(0,r.addEventListener)(x,"mouseenter",function(){T.openChangeTimeout.clear(),N.clear(),A?.events.off("floating.closed",e),I()}),x&&(0,r.addEventListener)(x,"mouseleave",function(t){if(A&&O&&(0,f.getNodeChildren)(A.nodesRef.current,O).length>0)return void A.events.on("floating.closed",e);if(M(t.relatedTarget))return;let r=R.current.floatingContext?.nodeId??C,i=t.relatedTarget;if(!(A&&r&&(0,n.isElement)(i)&&(0,f.getNodeChildren)(A.nodesRef.current,r,!1).some(e=>(0,a.contains)(e.context?.elements.floating,i)))){if(T.handler)return void T.handler(t);I(),L()||k(t)}}),x&&(0,r.addEventListener)(x,"pointerdown",D,!0),()=>{A?.events.off("floating.closed",e)});function e(t){A&&O&&!((0,f.getNodeChildren)(A.nodesRef.current,O).length>0)&&N.start(0,()=>{A.events.off("floating.closed",e),y.setOpen(!1,(0,d.createChangeEventDetails)(g.REASONS.triggerHover,t)),A.events.emit("floating.closed",t)})}},[w,x,y,R,C,L,M,k,I,D,T,A,O,N])}])},457503,121447,e=>{"use strict";var t=e.i(132111),n=e.i(677673),r=e.i(741578);e.i(799915);class i{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new r.Timeout,this.restTimeout=new r.Timeout,this.handleCloseOptions=void 0}static create(){return new i}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose}let o=new WeakMap;function l(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&o.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty("pointer-events"),e.pointerEventsReferenceElement?.style.removeProperty("pointer-events"),e.pointerEventsFloatingElement?.style.removeProperty("pointer-events"),o.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}e.s(["applySafePolygonPointerEventsMutation",0,function(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,s=o.get(n);s&&s!==e&&l(s),l(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,o.set(n,e),n.style.pointerEvents="none",r.style.pointerEvents="auto",i.style.pointerEvents="auto"},"clearSafePolygonPointerEventsMutation",0,l,"useHoverInteractionSharedState",0,function(e){let r=(0,n.useRefWithInit)(i.create).current,o=e.context.dataRef.current;return o.hoverInteractionState||(o.hoverInteractionState=r),(0,t.useOnMount)(o.hoverInteractionState.disposeEffect),o.hoverInteractionState}],457503);var s=e.i(898337);e.s(["getDelay",0,function(e,t,n){let r=null==n||(0,s.isMouseLikePointerType)(n)?"function"==typeof e?e():e:0;return"number"==typeof r?r:r?.[t]},"getRestMs",0,function(e){return"function"==typeof e?e():e},"isClickLikeOpenEvent",0,function(e,t){return t||"click"===e||"mousedown"===e}],121447)},260725,e=>{"use strict";var t=e.i(676524),n=e.i(221603),r=e.i(92615),i=e.i(668444),o=e.i(491436),l=e.i(771342),s=e.i(249213),u=e.i(956741),a=e.i(703214),c=e.i(799915),f=e.i(898337),d=e.i(169372),g=e.i(573989),m=e.i(228695),p=e.i(457503),h=e.i(121447);let v={current:null};e.s(["useHoverReferenceInteraction",0,function(e,y={}){let E="rootStore"in e?e.rootStore:e,{dataRef:x,events:b}=E.context,{enabled:R=!0,delay:w=0,handleClose:S=null,mouseOnly:C=!1,restMs:T=0,move:A=!0,triggerElementRef:O=v,externalTree:L,isActiveTrigger:P=!0,getHandleCloseContext:M,isClosing:k}=y,I=(0,m.useFloatingTree)(L),D=(0,p.useHoverInteractionSharedState)(E),N=t.useRef(!1),F=(0,l.useValueAsRef)(S),W=(0,l.useValueAsRef)(w),H=(0,l.useValueAsRef)(T),V=(0,l.useValueAsRef)(R),$=(0,l.useValueAsRef)(k);P&&(D.handleCloseOptions=F.current?.__options);
2let B=(0,s.useStableCallback)(()=>(0,h.isClickLikeOpenEvent)(x.current.openEvent?.type,D.interactedInside)),_=(0,s.useStableCallback)(e=>(0,c.isTargetInsideEnabledTrigger)(e,E.context.triggerElements)),z=(0,s.useStableCallback)((e,t,n)=>{let i=E.context.triggerElements;return i.hasElement(t)?!e||!(0,a.contains)(e,t):!!(0,r.isElement)(n)&&i.hasMatchingElement(e=>(0,a.contains)(e,n))&&(!e||!(0,a.contains)(e,n))}),j=(0,s.useStableCallback)((e,t=!0)=>{let n=(0,h.getDelay)(W.current,"close",D.pointerType);n?D.openChangeTimeout.start(n,()=>{E.setOpen(!1,(0,d.createChangeEventDetails)(g.REASONS.triggerHover,e)),I?.events.emit("floating.closed",e)}):t&&(D.openChangeTimeout.clear(),E.setOpen(!1,(0,d.createChangeEventDetails)(g.REASONS.triggerHover,e)),I?.events.emit("floating.closed",e))}),K=(0,s.useStableCallback)(()=>{D.handler&&((0,u.ownerDocument)(E.select("domReferenceElement")).removeEventListener("mousemove",D.handler),D.handler=void 0)}),G=(0,s.useStableCallback)(()=>{(0,p.clearSafePolygonPointerEventsMutation)(D)});return t.useEffect(()=>K,[K]),t.useEffect(()=>{if(R)return b.on("openchange",e),()=>{b.off("openchange",e)};function e(e){e.open?N.current=!1:(N.current=e.reason===g.REASONS.triggerHover,K(),D.openChangeTimeout.clear(),D.restTimeout.clear(),D.blockMouseMove=!0,D.restTimeoutPending=!1)}},[R,b,D,K]),t.useEffect(()=>{if(!R)return;let e=O.current??(P?E.select("domReferenceElement"):null);if((0,r.isElement)(e))return A?(0,o.mergeCleanups)((0,i.addEventListener)(e,"mousemove",t,{once:!0}),(0,i.addEventListener)(e,"mouseenter",t),(0,i.addEventListener)(e,"mouseleave",n)):(0,o.mergeCleanups)((0,i.addEventListener)(e,"mouseenter",t),(0,i.addEventListener)(e,"mouseleave",n));function t(e){if(D.openChangeTimeout.clear(),D.blockMouseMove=!1,C&&!(0,f.isMouseLikePointerType)(D.pointerType))return;let t=(0,h.getRestMs)(H.current),n=(0,h.getDelay)(W.current,"open",D.pointerType),i=(0,a.getTarget)(e),o=e.currentTarget??null,l=E.select("domReferenceElement"),s=o;if((0,r.isElement)(i)&&!E.context.triggerElements.hasElement(i)){for(let e of E.context.triggerElements.elements())if((0,a.contains)(e,i)){s=e;break}}(0,r.isElement)(o)&&(0,r.isElement)(l)&&!E.context.triggerElements.hasElement(o)&&(0,a.contains)(o,l)&&(s=l);let u=null!=s&&z(l,s,i),c=E.select("open"),m=$.current?.()??"ending"===E.select("transitionStatus"),p=!c&&m&&N.current,v=!u&&(0,r.isElement)(s)&&(0,r.isElement)(l)&&(0,a.contains)(l,s)&&p,y=t>0&&!n,x=!c||u;u&&(c||p)||v?E.setOpen(!0,(0,d.createChangeEventDetails)(g.REASONS.triggerHover,e,s)):!y&&(n?D.openChangeTimeout.start(n,()=>{x&&E.setOpen(!0,(0,d.createChangeEventDetails)(g.REASONS.triggerHover,e,s))}):x&&E.setOpen(!0,(0,d.createChangeEventDetails)(g.REASONS.triggerHover,e,s)))}function n(e){if(B())return void G();K();let t=E.select("domReferenceElement"),n=(0,u.ownerDocument)(t);D.restTimeout.clear(),D.restTimeoutPending=!1;let r=x.current.floatingContext??M?.();if(!_(e.relatedTarget)){if(F.current&&r){E.select("open")||D.openChangeTimeout.clear();let t=O.current;D.handler=F.current({...r,tree:I,x:e.clientX,y:e.clientY,onClose(){G(),K(),V.current&&!B()&&t===E.select("domReferenceElement")&&j(e,!0)}}),n.addEventListener("mousemove",D.handler),D.handler(e);return}"touch"===D.pointerType&&(0,a.contains)(E.select("floatingElement"),e.relatedTarget)||j(e)}}},[K,G,x,W,j,E,R,F,D,P,z,B,_,C,A,H,O,I,V,M,$]),t.useMemo(()=>{if(R)return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,r=e.currentTarget,i=E.select("domReferenceElement"),o=E.select("open"),l=z(i,r,e.target);if(C&&!(0,f.isMouseLikePointerType)(D.pointerType))return;if(o&&l&&D.handleCloseOptions?.blockPointerEvents){let e=E.select("floatingElement");if(e){let t=D.handleCloseOptions?.getScope?.()??r.ownerDocument.body;(0,p.applySafePolygonPointerEventsMutation)(D,{scopeElement:t,referenceElement:r,floatingElement:e})}}let s=(0,h.getRestMs)(H.current);function u(){if(D.restTimeoutPending=!1,B())return;let e=E.select("open");D.blockMouseMove||e&&!l||E.setOpen(!0,(0,d.createChangeEventDetails)(g.REASONS.triggerHover,t,r))}(!o||l)&&0!==s&&(!l&&D.restTimeoutPending&&e.movementX**2+e.movementY**2<2||(D.restTimeout.clear(),"touch"===D.pointerType?n.flushSync(()=>{u()}):l&&o?u():(D.restTimeoutPending=!0,D.restTimeout.start(s,u))))}};function e(e){D.pointerType=e.pointerType}},[R,D,B,z,C,E,H])}])},7119,e=>{"use strict";var t=e.i(676524),n=e.i(92615),r=e.i(771342),i=e.i(249213),o=e.i(176544),l=e.i(956741),s=e.i(703214),u=e.i(799915),a=e.i(898337),c=e.i(843440),f=e.i(228695),d=e.i(169372),g=e.i(573989),m=e.i(29186),p=e.i(862178);function h(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function v(e,t){return h(t,e===p.ARROW_UP||e===p.ARROW_DOWN,e===p.ARROW_LEFT||e===p.ARROW_RIGHT)}function y(e,t,n){return h(t,e===p.ARROW_DOWN,n?e===p.ARROW_LEFT:e===p.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}e.s(["useListNavigation",0,function(e,E){let x="rootStore"in e?e.rootStore:e,b=x.useState("open"),R=x.use
2State("floatingElement"),w=x.useState("domReferenceElement"),S=x.context.dataRef,{listRef:C,activeIndex:T,onNavigate:A=()=>{},enabled:O=!0,selectedIndex:L=null,allowEscape:P=!1,loopFocus:M=!1,nested:k=!1,rtl:I=!1,virtual:D=!1,focusItemOnOpen:N="auto",focusItemOnHover:F=!0,openOnArrowKeyDown:W=!0,disabledIndices:H,orientation:V="vertical",parentOrientation:$,cols:B=1,id:_,resetOnPointerLeave:z=!0,externalTree:j}=E,K=(0,u.getFloatingFocusElement)(R),G=(0,r.useValueAsRef)(K),U=(0,f.useFloatingParentNodeId)(),Y=(0,f.useFloatingTree)(j);(0,o.useIsoLayoutEffect)(()=>{S.current.orientation=V},[S,V]);let q=(0,u.isTypeableCombobox)(w),X=t.useRef(N),Q=t.useRef(L??-1),J=t.useRef(null),Z=t.useRef(!0),ee=(0,i.useStableCallback)(e=>{A(-1===Q.current?null:Q.current,e)}),et=t.useRef(ee),en=t.useRef(!!R),er=t.useRef(b),ei=t.useRef(!1),eo=t.useRef(!1),el=t.useRef(null),es=(0,r.useValueAsRef)(H),eu=(0,r.useValueAsRef)(b),ea=(0,r.useValueAsRef)(L),ec=(0,r.useValueAsRef)(z),ef=(0,i.useStableCallback)(()=>{function e(e){D?Y?.events.emit("virtualfocus",e):el.current=(0,m.enqueueFocus)(e,{sync:ei.current,preventScroll:!0})}let t=C.current[Q.current],n=eo.current;t&&e(t),(ei.current?e=>e():requestAnimationFrame)(()=>{let r=C.current[Q.current]||t;!r||(t||e(r),em&&(n||!Z.current)&&r.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,o.useIsoLayoutEffect)(()=>{O&&(b&&R?(Q.current=L??-1,X.current&&null!=L&&(eo.current=!0,ee())):en.current&&(Q.current=-1,et.current()))},[O,b,R,L,ee]),(0,o.useIsoLayoutEffect)(()=>{if(O){if(!b){ei.current=!1;return}if(R)if(null==T){if(ei.current=!1,null!=ea.current)return;if(en.current&&(Q.current=-1,ef()),(!er.current||!en.current)&&X.current&&(null!=J.current||!0===X.current&&null==J.current)){let e=0,t=()=>{null==C.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e+=1):(Q.current=null==J.current||y(J.current,V,I)||k?(0,c.getMinListIndex)(C):(0,c.getMaxListIndex)(C),J.current=null,ee())};t()}}else(0,c.isIndexOutOfListBounds)(C.current,T)||(Q.current=T,ef(),eo.current=!1)}},[O,b,R,T,ea,k,C,V,I,ee,ef,es]),(0,o.useIsoLayoutEffect)(()=>{if(!O||R||!Y||D||!en.current)return;let e=Y.nodesRef.current,t=e.find(e=>e.id===U)?.context?.elements.floating,n=(0,s.activeElement)((0,l.ownerDocument)(R)),r=e.some(e=>e.context&&(0,s.contains)(e.context.elements.floating,n));t&&!r&&Z.current&&t.focus({preventScroll:!0})},[O,R,Y,U,D]),(0,o.useIsoLayoutEffect)(()=>{et.current=ee,er.current=b,en.current=!!R}),(0,o.useIsoLayoutEffect)(()=>{b||(J.current=null,X.current=N)},[b,N]);let ed=null!=T,eg=(0,i.useStableCallback)(e=>{if(!eu.current)return;let t=C.current.indexOf(e.currentTarget);-1!==t&&(Q.current!==t||T!==t)&&(Q.current=t,ee(e))}),em=t.useMemo(()=>({onFocus(e){ei.current=!0,eg(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){ei.current=!0,eo.current=!1,F&&eg(e)},onPointerLeave(e){let t;if(!eu.current||!Z.current||"touch"===e.pointerType)return;ei.current=!0;let n=e.relatedTarget;if(!((t=e.currentTarget.getBoundingClientRect()).top+1<=e.clientY&&e.clientY<=t.bottom-1&&t.left+1<=e.clientX&&e.clientX<=t.right-1||!F||C.current.includes(n))&&ec.current&&(el.current?.(),el.current=null,Q.current=-1,ee(e),!D)){let e=G.current,t=(0,s.activeElement)((0,l.ownerDocument)(e));e&&(0,s.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[eg,eu,G,F,C,ee,ec,D]),ep=t.useCallback(()=>$??Y?.nodesRef.current.find(e=>e.id===U)?.context?.dataRef?.current.orientation,[U,Y,$]),eh=(0,i.useStableCallback)(e=>{var t;let r,i;if(Z.current=!1,ei.current=!0,229===e.which||!eu.current&&e.currentTarget===G.current)return;if(k&&(t=e.key,r=I?t===p.ARROW_RIGHT:t===p.ARROW_LEFT,i=t===p.ARROW_UP,"both"===V||"horizontal"===V&&B&&B>1?"Escape"===t:h(V,r,i))){v(e.key,ep())||(0,a.stopEvent)(e),x.setOpen(!1,(0,d.createChangeEventDetails)(g.REASONS.listNavigation,e.nativeEvent)),(0,n.isHTMLElement)(w)&&(D?Y?.events.emit("virtualfocus",w):w.focus());return}let o=Q.current,l=(0,c.getMinListIndex)(C,H),u=(0,c.getMaxListIndex)(C,H);if(q||("Home"===e.key&&((0,a.stopEvent)(e),Q.current=l,ee(e)),"End"===e.key&&((0,a.stopEvent)(e),Q.current=u,ee(e))),B>1){let t=Array.from({length:C.current.length},()=>({width:1,height:1})),n=(0,c.createGridCellMap)(t,B,!1),r=n.findIndex(e=>null!=e&&!(0,c.isListIndexDisabled)(C.current,e,H)),i=n.reduce((e,t,n
2)=>null==t||(0,c.isListIndexDisabled)(C.current,t,H)?e:n,-1),o=n[(0,c.getGridNavigatedIndex)(n.map(e=>null!=e?C.current[e]:null),{event:e,orientation:V,loopFocus:M,rtl:I,cols:B,disabledIndices:(0,c.getGridCellIndices)([...("function"!=typeof H?H:null)||C.current.map((e,t)=>(0,c.isListIndexDisabled)(C.current,t,H)?t:void 0),void 0],n),minIndex:r,maxIndex:i,prevIndex:(0,c.getGridCellIndexOfCorner)(Q.current>u?l:Q.current,t,n,B,e.key===p.ARROW_DOWN?"bl":e.key===(I?p.ARROW_LEFT:p.ARROW_RIGHT)?"tr":"tl"),stopEvent:!0})];if(null!=o&&(Q.current=o,ee(e)),"both"===V)return}if(v(e.key,V)){if((0,a.stopEvent)(e),b&&!D&&(0,s.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){Q.current=y(e.key,V,I)?l:u,ee(e);return}y(e.key,V,I)?M?o>=u?P&&o!==C.current.length?Q.current=-1:(ei.current=!1,Q.current=l):Q.current=(0,c.findNonDisabledListIndex)(C.current,{startingIndex:o,disabledIndices:H}):Q.current=Math.min(u,(0,c.findNonDisabledListIndex)(C.current,{startingIndex:o,disabledIndices:H})):M?o<=l?P&&-1!==o?Q.current=C.current.length:(ei.current=!1,Q.current=u):Q.current=(0,c.findNonDisabledListIndex)(C.current,{startingIndex:o,decrement:!0,disabledIndices:H}):Q.current=Math.max(l,(0,c.findNonDisabledListIndex)(C.current,{startingIndex:o,decrement:!0,disabledIndices:H})),(0,c.isIndexOutOfListBounds)(C.current,Q.current)&&(Q.current=-1),ee(e)}}),ev=t.useMemo(()=>D&&b&&ed&&{"aria-activedescendant":`${_}-${T}`},[D,b,ed,_,T]),ey=t.useMemo(()=>({"aria-orientation":"both"===V?void 0:V,...!q?ev:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&b&&!D){let t=(0,s.getTarget)(e.nativeEvent);if(t&&!(0,s.contains)(G.current,t))return;(0,a.stopEvent)(e),x.setOpen(!1,(0,d.createChangeEventDetails)(g.REASONS.focusOut,e.nativeEvent)),(0,n.isHTMLElement)(w)&&w.focus();return}eh(e)},onPointerMove(){Z.current=!0}}),[ev,eh,G,V,q,x,b,D,w]),eE=t.useMemo(()=>{function e(e){"auto"===N&&(0,a.isVirtualClick)(e.nativeEvent)&&(X.current=!D)}function t(e){X.current=N,"auto"===N&&(0,a.isVirtualPointerEvent)(e.nativeEvent)&&(X.current=!0)}return{onKeyDown(e){var t,n;let r=x.select("open");Z.current=!1;let i=e.key.startsWith("Arrow"),o=(t=e.key,n=ep(),h(n,I?t===p.ARROW_LEFT:t===p.ARROW_RIGHT,t===p.ARROW_DOWN)),l=v(e.key,V),s=(k?o:l)||"Enter"===e.key||""===e.key.trim();if(D&&r)return eh(e);if(r||W||!i){if(s){let t=v(e.key,ep());J.current=k&&t?null:e.key}if(k){o&&((0,a.stopEvent)(e),r?(Q.current=(0,c.getMinListIndex)(C,es.current),ee(e)):x.setOpen(!0,(0,d.createChangeEventDetails)(g.REASONS.listNavigation,e.nativeEvent,e.currentTarget)));return}l&&(null!=ea.current&&(Q.current=ea.current),(0,a.stopEvent)(e),!r&&W?x.setOpen(!0,(0,d.createChangeEventDetails)(g.REASONS.listNavigation,e.nativeEvent,e.currentTarget)):eh(e),r&&ee(e))}},onFocus(e){x.select("open")&&!D&&(Q.current=-1,ee(e))},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}}
2,[eh,es,N,C,k,ee,x,W,V,ep,I,ea,D]),ex=t.useMemo(()=>({...ev,...eE}),[ev,eE]);return t.useMemo(()=>O?{reference:ex,floating:ey,item:em,trigger:eE}:{},[O,ex,ey,eE,em])}],7119)},851115,e=>{"use strict";var t=e.i(676524),n=e.i(249213),r=e.i(176544),i=e.i(741578),o=e.i(703214),l=e.i(898337),s=e.i(843440);e.s(["useTypeahead",0,function(e,u){let a="rootStore"in e?e.rootStore:e,c=a.context.dataRef,f=a.useState("open"),{listRef:d,elementsRef:g,activeIndex:m,onMatch:p,onTypingChange:h,enabled:v=!0,resetMs:y=750,selectedIndex:E=null}=u,x=(0,i.useTimeout)(),b=t.useRef(""),R=t.useRef(E??m??-1),w=t.useRef(null);(0,r.useIsoLayoutEffect)(()=>{(f||null===E)&&(x.clear(),w.current=null,""!==b.current&&(b.current=""))},[f,E,x]),(0,r.useIsoLayoutEffect)(()=>{f&&""===b.current&&(R.current=E??m??-1)},[f,E,m]);let S=(0,n.useStableCallback)(e=>{e?c.current.typing||(c.current.typing=e,h?.(e)):c.current.typing&&(c.current.typing=e,h?.(e))}),C=(0,n.useStableCallback)(e=>{function t(e,n,r=0){if(0===e.length)return -1;let i=(r%e.length+e.length)%e.length,o=n.toLocaleLowerCase();for(let t=0;t<e.length;t+=1){let n=(i+t)%e.length,r=e[n];if(r?.toLocaleLowerCase().startsWith(o)&&function(e){let t=g?.current[e];return!t||(0,s.isElementVisible)(t)}(n))return n}return -1}let n=d.current;if(b.current.length>0&&" "===e.key&&((0,l.stopEvent)(e),S(!0)),b.current.length>0&&" "!==b.current[0]&&-1===t(n,b.current)&&" "!==e.key&&S(!1),null==n||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;f&&" "!==e.key&&((0,l.stopEvent)(e),S(!0));let r=""===b.current;r&&(R.current=E??m??-1),n.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&b.current===e.key&&(b.current="",R.current=w.current),b.current+=e.key,x.start(y,()=>{b.current="",R.current=w.current,S(!1)});let i=r?E??m??-1:R.current,o=t(n,b.current,(i??0)+1);-1!==o?(p?.(o),w.current=o):" "!==e.key&&(b.current="",S(!1))}),T=(0,n.useStableCallback)(e=>{let t=e.relatedTarget,n=a.select("domReferenceElement"),r=a.select("floatingElement"),i=(0,o.contains)(n,t),l=(0,o.contains)(r,t);i||l||(x.clear(),b.current="",R.current=w.current,S(!1))}),A=t.useMemo(()=>({onKeyDown:C,onBlur:T}),[C,T]),O=t.useMemo(()=>({onKeyDown:C,onBlur:T}),[C,T]);return t.useMemo(()=>v?{reference:A,floating:O}:{},[v,A,O])}])},381316,327953,e=>{"use strict";var t=e.i(92615),n=e.i(741578),r=e.i(703214),i=e.i(540167);let o=.1*.1;function l(e,t,n,r,i,o){return r>=t!=o>=t&&e<=(i-n)*(t-r)/(o-r)+n}function s(e,t,n,r,i,o,s,u,a,c){let f=!1;return l(e,t,n,r,i,o)&&(f=!f),l(e,t,i,o,s,u)&&(f=!f),l(e,t,s,u,a,c)&&(f=!f),l(e,t,a,c,n,r)&&(f=!f),f}function u(e,t,n,r,i,o){let l=Math.min(n,i),s=Math.max(n,i),u=Math.min(r,o),a=Math.max(r,o);return e>=l&&e<=s&&t>=u&&t<=a}e.s(["safePolygon",0,function(e={}){let{blockPointerEvents:l=!1}=e,a=new n.Timeout,c=({x:e,y:n,placement:l,elements:c,onClose:f,nodeId:d,tree:g})=>{let m=l?.split("-")[0],p=!1,h=null,v=null,y="u">typeof performance?performance.now():0;return function(l){a.clear();let E=c.domReference,x=c.floating;if(!E||!x||null==m||null==e||null==n)return;let{clientX:b,clientY:R}=l,w=(0,r.getTarget)(l),S="mouseleave"===l.type,C=(0,r.contains)(x,w),T=(0,r.contains)(E,w);if(C&&(p=!0,!S))return;if(T&&(p=!1,!S)){p=!0;return}if(S&&(0,t.isElement)(l.relatedTarget)&&(0,r.contains)(x,l.relatedTarget))return;function A(){return!!(g&&(0,i.getNodeChildren)(g.nodesRef.current,d).length>0)}function O(){A()||(a.clear(),f())}if(A())return;let L=E.getBoundingClientRect(),P=x.getBoundingClientRect(),M=e>P.right-P.width/2,k=n>P.bottom-P.height/2,I=P.width>L.width,D=P.height>L.height,N=(I?L:P).left,F=(I?L:P).right,W=(D?L:P).top,H=(D?L:P).bottom;if("top"===m&&n>=L.bottom-1||"bottom"===m&&n<=L.top+1||"left"===m&&e>=L.right-1||"right"===m&&e<=L.left+1)return void O();let V=!1;switch(m){case"top":V=u(b,R,N,L.top+1,F,P.bottom-1);break;case"bottom":V=u(b,R,N,P.top+1,F,L.bottom-1);break;case"left":V=u(b,R,P.right-1,H,L.left+1,W);break;case"right":V=u(b,R,L.right-1,H,P.left+1,W)}if(V)return;if(p&&(!(b>=L.x)||!(b<=L.x+L.width)||!(R>=L.y)||!(R<=L.y+L.height))||!S&&function(e,t){let n=performance.now(),r=n-y;if(null===h||null===v||0===r)return h=e,v=t,y=n,!1;let i=e-h,l=t-v;return h=e,v=t,y=n,i*i+l*l<r*r*o}(b,R))return void O();let $=!1;switch(m){case"top":{let t=I?.25:2,r=n+.5+1,i=M||I?P.bottom-.5:P.top,o=M?I?P.bottom-.5:P.top:P.bottom-.5;$=s(b,R,I||M?e+t:e-t,r,I?e-t:M?e+t:e-t,r,P.left,i,P.right,o);break}case"bottom":{let t=I?.25:2,r=n-.5,i=M||I?P.top+.5:P.bottom,o=M?I?P.top+.5:P.bottom:P.top+.5;$=s(b,R,I||M?e+t:e-t,r,I?e-t:M?e+t:e-t,r,P.left,i,P.right,o);break}case"left":{let t=D?.25:2,r=e+.5+1,i=k||D?P.right-.5:P.left,o=k?D?P.right-.5:P.left:P.right-.5;$=s(b,R,i,P.top,o,P.bottom,r,D||k?n+t:n-t,r,D?n-t:k?n+t:n-t);break}case"right":{let t=D?.25:2,r=e-.5,i=k||D?P.left+.5:P.right,o=k?D?P.left+.5:P.right:P.left+.5;$=s(b,R,r,D||k?n+t:n-t,r,D?n-t:k?n+t:n-t,i,P.top,o,P.bottom)}}$?p||a.start(40,O):O()}};return c.__options={...e,blockPointerEvents:l},c}],381316);var a=e.i(676524),c=e.i(668444),f=e.i(491436),d=e.i(330245),g=e.i(956741),m=e.i(799915),p=e.i(169372),h=e.i(573989),v=e.i(272314);let y=d.isMac&&d.isSafari;e.s(["useFocus",0,function(e,i={}){let o="rootStore"in e?e.rootStore:e,{events:l,dataRef:s}=o.context,{enabled:u=!0,delay:d}=i,E=a.useRef(!1),x=a.useRef(null),b=(0,n.useTimeout)(),R=a.useRef(!0);a.useEffect(()=>{let e=o.select("domReferenceElement");
2if(!u)return;let n=(0,t.getWindow)(e);return(0,f.mergeCleanups)((0,c.addEventListener)(n,"blur",function(){let e=o.select("domReferenceElement");!o.select("open")&&(0,t.isHTMLElement)(e)&&e===(0,r.activeElement)((0,g.ownerDocument)(e))&&(E.current=!0)}),y&&(0,c.addEventListener)(n,"keydown",function(){R.current=!0},!0),y&&(0,c.addEventListener)(n,"pointerdown",function(){R.current=!1},!0))},[o,u]),a.useEffect(()=>{if(u)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){if(e.reason===h.REASONS.triggerPress||e.reason===h.REASONS.escapeKey){let e=o.select("domReferenceElement");(0,t.isElement)(e)&&(x.current=e,E.current=!0)}}},[l,u,o]);let w=a.useMemo(()=>({onMouseLeave(){E.current=!1,x.current=null},onFocus(e){let n=e.currentTarget;if(E.current){if(x.current===n)return;E.current=!1,x.current=null}let i=(0,r.getTarget)(e.nativeEvent);if((0,t.isElement)(i)){if(y&&!e.relatedTarget){if(!R.current&&!(0,m.isTypeableElement)(i))return}else if(!(0,m.matchesFocusVisible)(i))return}let l=(0,m.isTargetInsideEnabledTrigger)(e.relatedTarget,o.context.triggerElements),{nativeEvent:s,currentTarget:u}=e,a="function"==typeof d?d():d;o.select("open")&&l||0===a||void 0===a?o.setOpen(!0,(0,p.createChangeEventDetails)(h.REASONS.triggerFocus,s,u)):b.start(a,()=>{E.current||o.setOpen(!0,(0,p.createChangeEventDetails)(h.REASONS.triggerFocus,s,u))})},onBlur(e){E.current=!1,x.current=null;let n=e.relatedTarget,i=e.nativeEvent,l=(0,t.isElement)(n)&&n.hasAttribute((0,v.createAttribute)("focus-guard"))&&"outside"===n.getAttribute("data-type");b.start(0,()=>{let e=o.select("domReferenceElement"),t=(0,r.activeElement)((0,g.ownerDocument)(e));if(!n&&t===e||(0,r.contains)(s.current.floatingContext?.refs.floating.current,t)||(0,r.contains)(e,t)||l)return;let u=n??t;(0,m.isTargetInsideEnabledTrigger)(u,o.context.triggerElements)||o.setOpen(!1,(0,p.createChangeEventDetails)(h.REASONS.triggerFocus,i))})}}),[s,o,b,d]);return a.useMemo(()=>u?{reference:w,trigger:w}:{},[u,w])}],327953)},988244,887985,e=>{"use strict";var t=e.i(676524),n=e.i(93207);let r=t.forwardRef(function(e,t){let{className:r,render:i,orientation:o="horizontal",style:l,...s}=e;return(0,n.useRenderElement)("div",e,{state:{orientation:o},ref:t,props:[{role:"separator","aria-orientation":o},s]})});e.s(["Separator",0,r],988244);var i=e.i(912935),o=e.i(514248),l=e.i(820473);e.s(["useUserGreeting",0,function(e){let t,n,r,s,u=(0,i.c)(15),a=!e;u[0]!==a?(t={skip:a},u[0]=a,u[1]=t):t=u[1];let{data:c,loading:f,error:d,refetch:g}=(0,o.useQuery)(l.MeDocument,t),m=c?.me?.profile;u[2]!==e||u[3]!==m?(n=function(e,t){let{firstName:n,lastName:r,email:i}=t||{},{name:o,given_name:l,nickname:s,email:u}=e||{},a=(n||r||o||l||s||"").split("@")[0];return{fullName:n&&r?`${n} ${r}`:"",displayName:a,anyName:(a||i||u||"").split("@")[0]}}(e,m),u[2]=e,u[3]=m,u[4]=n):n=u[4];let p=n,h=e?.email||m?.email||"";return u[5]!==e?(r=function(e){let{picture:t,given_name:n,family_name:r}=e||{},{photo:i,firstName:o,lastName:l}={},s=i||(t&&!t.includes("gravatar.com")?t:void 0),u=o||n,a=l||r;if(e&&(s||u&&a))return{src:s,fallback:`${u?.[0]}${a?.[0]}`.toUpperCase()}}(e),u[5]=e,u[6]=r):r=u[6],u[7]!==d||u[8]!==f||u[9]!==p||u[10]!==m||u[11]!==g||u[12]!==h||u[13]!==r?(s={loading:f,error:d,refetch:g,profile:m,email:h,avatar:r,...p},u[7]=d,u[8]=f,u[9]=p,u[10]=m,u[11]=g,u[12]=h,u[13]=r,u[14]=s):s=u[14],s}],887985)},746693,e=>{"use strict";var t=e.i(135278),n=e.i(824462);e.s(["getDisabledMountTransitionStyles",0,function(e){return"starting"===e?t.DISABLED_TRANSITIONS_STYLE:n.EMPTY_OBJECT}])},829867,e=>{"use strict";var t=e.i(285182);e.s(["getPseudoElementBounds",0,function(e){let n=e.getBoundingClientRect(),r=(0,t.ownerWindow)(e),i=r.getComputedStyle(e,"::before"),o=r.getComputedStyle(e,"::after");if("none"===i.content&&"none"===o.content)return n;let l=parseFloat(i.width)||0,s=parseFloat(i.height)||0,u=parseFloat(o.width)||0,a=parseFloat(o.height)||0,c=Math.max(n.width,l,u),f=Math.max(n.height,s,a),d=c-n.width,g=f-n.height;return{left:n.left-d/2,right:n.right+d/2,top:n.top-g/2,bottom:n.bottom+g/2}}])},828314,675020,581132,e=>{"use strict";var t=e.i(676524),n=e.i(641645),r=e.i(956741),i=e.i(285182),o=e.i(176544),l=e.i(771342),s=e.i(249213);function u(e,t,r){let i,{reference:o,floating:l}=e,s=(0,n.getSideAxis)(t),u=(0,n.getAlignmentAxis)(t),a=(0,n.getAxisLength)(u),c=(0,n.getSide)(t),f="y"===s,d=o.x+o.width/2-l.width/2,g=o.y+o.height/2-l.height/2,m=o[a]/2-l[a]/2;switch(c){case"top":i={x:d,y:o.y-l.height};break;case"bottom":i={x:d,y:o.y+o.height};break;case"right":i={x:o.x+o.width,y:g};break;case"left":i={x:o.x-l.width,y:g};break;default:i={x:o.x,y:o.y}}switch((0,n.getAlignment)(t)){case"start":i[u]-=m*(r&&f?-1:1);break;case"end":i[u]+=m*(r&&f?-1:1)}return i}async function a(e,t){var r;void 0===t&&(t={});let{x:i,y:o,platform:l,rects:s,elements:u,strategy:a}=e,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:g=!1,padding:m=0}
2=(0,n.evaluate)(t,e),p=(0,n.getPaddingObject)(m),h=u[g?"floating"===d?"reference":"floating":d],v=(0,n.rectToClientRect)(await l.getClippingRect({element:null==(r=await (null==l.isElement?void 0:l.isElement(h)))||r?h:h.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(u.floating)),boundary:c,rootBoundary:f,strategy:a})),y="floating"===d?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,E=await (null==l.getOffsetParent?void 0:l.getOffsetParent(u.floating)),x=await (null==l.isElement?void 0:l.isElement(E))&&await (null==l.getScale?void 0:l.getScale(E))||{x:1,y:1},b=(0,n.rectToClientRect)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:E,strategy:a}):y);return{top:(v.top-b.top+p.top)/x.y,bottom:(b.bottom-v.bottom+p.bottom)/x.y,left:(v.left-b.left+p.left)/x.x,right:(b.right-v.right+p.right)/x.x}}let c=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:a},c=await (null==l.isRTL?void 0:l.isRTL(t)),f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:g}=u(f,r,c),m=r,p=0,h={};for(let n=0;n<o.length;n++){let a=o[n];if(!a)continue;let{name:v,fn:y}=a,{x:E,y:x,data:b,reset:R}=await y({x:d,y:g,initialPlacement:r,placement:m,strategy:i,middlewareData:h,rects:f,platform:s,elements:{reference:e,floating:t}});d=null!=E?E:d,g=null!=x?x:g,h[v]={...h[v],...b},R&&p<50&&(p++,"object"==typeof R&&(R.placement&&(m=R.placement),R.rects&&(f=!0===R.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:d,y:g}=u(f,m,c)),n=-1)}return{x:d,y:g,placement:m,strategy:i,middlewareData:h}};function f(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function d(e){return n.sides.some(t=>e[t]>=0)}let g=new Set(["left","top"]);async function m(e,t){let{placement:r,platform:i,elements:o}=e,l=await (null==i.isRTL?void 0:i.isRTL(o.floating)),s=(0,n.getSide)(r),u=(0,n.getAlignment)(r),a="y"===(0,n.getSideAxis)(r),c=g.has(s)?-1:1,f=l&&a?-1:1,d=(0,n.evaluate)(t,e),{mainAxis:m,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return u&&"number"==typeof h&&(p="end"===u?-1*h:h),a?{x:p*f,y:m*c}:{x:m*c,y:p*f}}var p=e.i(92615);function h(e){let t=(0,p.getComputedStyle)(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=(0,p.isHTMLElement)(e),l=o?e.offsetWidth:r,s=o?e.offsetHeight:i,u=(0,n.round)(r)!==l||(0,n.roun
2d)(i)!==s;return u&&(r=l,i=s),{width:r,height:i,$:u}}function v(e){return(0,p.isElement)(e)?e:e.contextElement}function y(e){let t=v(e);if(!(0,p.isHTMLElement)(t))return(0,n.createCoords)(1);let r=t.getBoundingClientRect(),{width:i,height:o,$:l}=h(t),s=(l?(0,n.round)(r.width):r.width)/i,u=(l?(0,n.round)(r.height):r.height)/o;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}let E=(0,n.createCoords)(0);function x(e){let t=(0,p.getWindow)(e);return(0,p.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:E}function b(e,t,r,i){var o;void 0===t&&(t=!1),void 0===r&&(r=!1);let l=e.getBoundingClientRect(),s=v(e),u=(0,n.createCoords)(1);t&&(i?(0,p.isElement)(i)&&(u=y(i)):u=y(e));let a=(void 0===(o=r)&&(o=!1),i&&(!o||i===(0,p.getWindow)(s))&&o)?x(s):(0,n.createCoords)(0),c=(l.left+a.x)/u.x,f=(l.top+a.y)/u.y,d=l.width/u.x,g=l.height/u.y;if(s){let e=(0,p.getWindow)(s),t=i&&(0,p.isElement)(i)?(0,p.getWindow)(i):i,n=e,r=(0,p.getFrameElement)(n);for(;r&&i&&t!==n;){let e=y(r),t=r.getBoundingClientRect(),i=(0,p.getComputedStyle)(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,g*=e.y,c+=o,f+=l,n=(0,p.getWindow)(r),r=(0,p.getFrameElement)(n)}}return(0,n.rectToClientRect)({width:d,height:g,x:c,y:f})}function R(e,t){let n=(0,p.getNodeScroll)(e).scrollLeft;return t?t.left+n:b((0,p.getDocumentElement)(e)).left+n}function w(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-R(e,n),y:n.top+t.scrollTop}}function S(e,t,r){var i;let o;if("viewport"===t)o=function(e,t){let n=(0,p.getWindow)(e),r=(0,p.getDocumentElement)(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,s=0,u=0;if(i){o=i.width,l=i.height;let e=(0,p.isWebKit)();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}let a=R(r);if(a<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else a<=25&&(o+=a);return{width:o,height:l,x:s,y:u}}(e,r);else if("document"===t){let t,r,l,s,u,a,c;i=(0,p.getDocumentElement)(e),t=(0,p.getDocumentElement)(i),r=(0,p.getNodeScroll)(i),l=i.ownerDocument.body,s=(0,n.max)(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),u=(0,n.max)(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),a=-r.scrollLeft+R(i),c=-r.
2scrollTop,"rtl"===(0,p.getComputedStyle)(l).direction&&(a+=(0,n.max)(t.clientWidth,l.clientWidth)-s),o={width:s,height:u,x:a,y:c}}else if((0,p.isElement)(t)){let e,i,l,s,u,a;i=(e=b(t,!0,"fixed"===r)).top+t.clientTop,l=e.left+t.clientLeft,s=(0,p.isHTMLElement)(t)?y(t):(0,n.createCoords)(1),u=t.clientWidth*s.x,a=t.clientHeight*s.y,o={width:u,height:a,x:l*s.x,y:i*s.y}}else{let n=x(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,n.rectToClientRect)(o)}function C(e){return"static"===(0,p.getComputedStyle)(e).position}function T(e,t){if(!(0,p.isHTMLElement)(e)||"fixed"===(0,p.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,p.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function A(e,t){let n=(0,p.getWindow)(e);if((0,p.isTopLayer)(e))return n;if(!(0,p.isHTMLElement)(e)){let t=(0,p.getParentNode)(e);for(;t&&!(0,p.isLastTraversableNode)(t);){if((0,p.isElement)(t)&&!C(t))return t;t=(0,p.getParentNode)(t)}return n}let r=T(e,t);for(;r&&(0,p.isTableElement)(r)&&C(r);)r=T(r,t);return r&&(0,p.isLastTraversableNode)(r)&&C(r)&&!(0,p.isContainingBlock)(r)?n:r||(0,p.getContainingBlock)(e)||n}let O=async function(e){let t=this.getOffsetParent||A,r=this.getDimensions,i=await r(e.floating);return{reference:function(e,t,r){let i=(0,p.isHTMLElement)(t),o=(0,p.getDocumentElement)(t),l="fixed"===r,s=b(e,!0,l,t),u={scrollLeft:0,scrollTop:0},a=(0,n.createCoords)(0);if(i||!i&&!l)if(("body"!==(0,p.getNodeName)(t)||(0,p.isOverflowElement)(o))&&(u=(0,p.getNodeScroll)(t)),i){let e=b(t,!0,l,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=R(o));l&&!i&&o&&(a.x=R(o));let c=!o||i||l?(0,n.createCoords)(0):w(o,u);return{x:s.left+u.scrollLeft-a.x-c.x,y:s.top+u.scrollTop-a.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},L={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:i,strategy:o}=e,l="fixed"===o,s=(0,p.getDocumentElement)(i),u=!!t&&(0,p.isTopLayer)(t.floating);if(i===s||u&&l)return r;let a={scrollLeft:0,scrollTop:0},c=(0,n.createCoords)(1),f=(0,n.createCoords)(0),d=(0,p.isHTMLElement)(i);if((d||!d&&!l)&&(("body"!==(0,p.getNodeName)(i)||(0,p.isOverflowElement)(s))&&(a=(0,p.getNodeScroll)(i)),d)){let e=b(i);c=y(i),f.x=e.x+i.clientLeft,f.y=e.y+i.clientTop}let g=!s||d||l?(0,n.createCoords)(0):w(s,a);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-a.scrollLeft*c.x+f.x+g.x,y:r.y*c.y-a.scrollTop*c.y+f.y+g.y}},getDocumentElement:p.getDocumentElement,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:i,strategy:o}=e,l=[..."clippingAncestors"===r?(0,p.isTopLayer)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,p.getOverflowAncestors)(e,[],!1).filter(e=>(0,p.isElement)(e)&&"body"!==(0,p.getNodeName)(e)),i=null,o="fixed"===(0,p.getComputedStyle)(e).position,l=o?(0,p.getParentNode)(e):e;for(;(0,p.isElement)(l)&&!(0,p.isLastTraversableNode)(l);){let t=(0,p.getComputedStyle)(l),n=(0,p.isContainingBlock)(l);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||(0,p.isOverflowElement)(l)&&!n&&function e(t,n){let r=(0,p.getParentNode)(t);return!(r===n||!(0,p.isElement)(r)||(0,p.isLastTraversableNode)(r))&&("fixed"===(0,p.getComputedStyle)(r).position||e(r,n))}(e,l)))?i=t:r=r.filter(e=>e!==l),l=(0,p.getParentNode)(l)}return t.set(e,r),r}(t,this._c):[].concat(r),i],s=S(t,l[0],o),u=s.top,a=s.right,c=s.bottom,f=s.left;for(let e=1;e<l.length;e++){let r=S(t,l[e],o);u=(0,n.max)(r.top,u),a=(0,n.min)(r.right,a),c=(0,n.min)(r.bottom,c),f=(0,n.max)(r.left,f)}return{width:a-f,height:c-u,x:f,y:u}},getOffsetParent:A,getElementRects:O,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=h(e);return{width:t,height:n}},getScale:y,isElement:p.isElement,isRTL:function(e){return"rtl"===(0,p.getComputedStyle)(e).direction}};function P(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function M(e,t,r,i){let o;void 0===i&&(i={});let{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=i,f=v(e),d=l||s?[...f?(0,p.getOverflowAncestors)(f):[],...t?(0,p.getOverflowAncestors)(t):[]]:[];
2d.forEach(e=>{l&&e.addEventListener("scroll",r,{passive:!0}),s&&e.addEventListener("resize",r)});let g=f&&a?function(e,t){let r,i=null,o=(0,p.getDocumentElement)(e);function l(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}return!function s(u,a){void 0===u&&(u=!1),void 0===a&&(a=1),l();let c=e.getBoundingClientRect(),{left:f,top:d,width:g,height:m}=c;if(u||t(),!g||!m)return;let p={rootMargin:-(0,n.floor)(d)+"px "+-(0,n.floor)(o.clientWidth-(f+g))+"px "+-(0,n.floor)(o.clientHeight-(d+m))+"px "+-(0,n.floor)(f)+"px",threshold:(0,n.max)(0,(0,n.min)(1,a))||1},h=!0;function v(t){let n=t[0].intersectionRatio;if(n!==a){if(!h)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||P(c,e.getBoundingClientRect())||s(),h=!1}try{i=new IntersectionObserver(v,{...p,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(v,p)}i.observe(e)}(!0),l}(f,r):null,m=-1,h=null;u&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===f&&h&&t&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),f&&!c&&h.observe(f),t&&h.observe(t));let y=c?b(e):null;return c&&function t(){let n=b(e);y&&!P(y,n)&&r(),y=n,o=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{l&&e.removeEventListener("scroll",r),s&&e.removeEventListener("resize",r)}),null==g||g(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(o)}}var k=e.i(221603),I="u">typeof document?t.useLayoutEffect:function(){};function D(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!D(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!D(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function N(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function F(e,t){let n=N(e);return Math.round(t*n)/n}function W(e){let n=t.useRef(e);return I(()=>{n.current=e}),n}var H=e.i(228695),V=e.i(614883),$=e.i(677673),B=e.i(454820),_=e.i(330968);function z(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=(0,V.useId)(),l=null!=(0,H.useFloatingParentNodeId)(),s=(0,$.useRefWithInit)(()=>new B.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new _.PopupTriggerMap,floatingId:i,syncOnly:!1,nested:l})).current;return(0,o.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:i};void 0!==r.reference&&(e.referenceElement=r.reference,e.domReferenceElement=(0,p.isElement)(r.reference)?r.reference:null),void 0!==r.floating&&(e.floatingElement=r.floating),s.update(e)},[t,i,r.reference,r.floating,s]),s.context.onOpenChange=n,s.context.nested=l,s}e.s(["useFloatingRootContext",0,z],675020);var j=e.i(52521);let K={name:"hide",async fn(e){var t;let r,{width:i,height:o,x:l,y:s}=e.rects.reference,u=await (t=void 0,{name:(r={name:"hide",options:t={},async fn(e){let{rects:r,platform:i}=e,{strategy:o="referenceHidden",...l}=(0,n.evaluate)(t,e);switch(o){case"referenceHidden":{let t=f(await i.detectOverflow(e,{...l,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:d(t)}}}case"escaped":{let t=f(await i.detectOverflow(e,{...l,altBoundary:!0}),r.floating);return{data:{escapedOffsets:t,escaped:d(t)}}}default:return{}}}}).name,fn:r.fn,options:[void 0,void 0]}).fn(e);return{data:{referenceHidden:u.data?.referenceHidden||0===i&&0===o&&0===l&&0===s}}}},G={sideX:"left",sideY:"top"};function U(e,t,n){let r="inline-start"===e||"inline-end"===e;return({top:"top",right:r?n?"inline-start":"inline-end":"right",bottom:"bottom",left:r?n?"inline-end":"inline-start":"left"})[t]}function Y(e,t,r){let{rects:i,placement:o}=e;return{side:U(t,(0,n.getSide)(o),r),align:(0,n.getAlignment)(o)||"center",anchor:{width:i.reference.width,height:i.reference.height},positioner:{width:i.floating.width,height:i.floating.height}}}function q(e){return null!=e&&"current"in e}e.s(["DEFAULT_SIDES",0,G,"adaptiveOrigin",0,{name:"adaptiveOrigin",async fn(e){let{x:t,y:o,rects:{floating:l},elements:{floating:s},platform:u,strategy:a,placement:c}=e,f=(0,i.ownerWindow)(s),d=f.getComputedStyle(s);if("0s"===d.transitionDuration||""===d.transitionDuration)return{x:t,y:o,data:G};let g=await u.getOffsetParent?.(s),m={width:0,height:0};
2if("fixed"===a&&f?.visualViewport)m={width:f.visualViewport.width,height:f.visualViewport.height};else if(g===f){let e=(0,r.ownerDocument)(s);m={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await u.isElement?.(g)&&(m=await u.getDimensions(g));let p=(0,n.getSide)(c),h=t,v=o;return"left"===p&&(h=m.width-(t+l.width)),"top"===p&&(v=m.height-(o+l.height)),{x:h,y:v,data:{sideX:"left"===p?"right":G.sideX,sideY:"top"===p?"bottom":G.sideY}}}}],581132),e.s(["useAnchorPositioning",0,function(e){var u,a,f,d,h,v,y,E,x,b,R,w;let S,C,T,A,{anchor:O,positionMethod:P="absolute",side:V="bottom",sideOffset:$=0,align:B="center",alignOffset:_=0,collisionBoundary:X,collisionPadding:Q=5,sticky:J=!1,arrowPadding:Z=5,disableAnchorTracking:ee=!1,keepMounted:et=!1,floatingRootContext:en,mounted:er,collisionAvoidance:ei,shiftCrossAxis:eo=!1,nodeId:el,adaptiveOrigin:es,lazyFlip:eu=!1,externalTree:ea}=e,[ec,ef]=t.useState(null);er||null===ec||ef(null);let ed=ei.side||"flip",eg=ei.align||"flip",em=ei.fallbackAxisSide||"end",ep="function"==typeof O?O:void 0,eh=(0,s.useStableCallback)(ep),ev=ep?eh:O,ey=(0,l.useValueAsRef)(O),eE=(0,l.useValueAsRef)(er),ex="rtl"===(0,j.useDirection)(),eb=ec||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ex?"left":"right","inline-start":ex?"right":"left"})[V],eR="center"===B?eb:`${eb}-${B}`,ew=Q,eS=+("bottom"===V),eC=+("top"===V),eT=+("right"===V),eA=+("left"===V);"number"==typeof ew?ew={top:ew+eS,right:ew+eA,bottom:ew+eC,left:ew+eT}:ew&&(ew={top:(ew.top||0)+eS,right:(ew.right||0)+eA,bottom:(ew.bottom||0)+eC,left:(ew.left||0)+eT});let eO={boundary:"clipping-ancestors"===X?"clippingAncestors":X,padding:ew},eL=t.useRef(null),eP=(0,l.useValueAsRef)($),eM=(0,l.useValueAsRef)(_),ek=[(u=e=>{let t=Y(e,V,ex),n="function"==typeof eP.current?eP.current(t):eP.current,r="function"==typeof eM.current?eM.current(t):eM.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},a=["function"!=typeof $?$:0,"function"!=typeof _?_:0,ex,V],void 0===(f=u)&&(f=0),{name:(S={name:"offset",options:f,async fn(e){var t,n;let{x:r,y:i,placement:o,middlewareData:l}=e,s=await m(e,f);return o===(null==(t=l.offset)?void 0:t.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:o}}}}).name,fn:S.fn,options:[u,a]})],eI="none"===eg&&"shift"!==ed,eD=!eI&&(J||eo||"shift"===ed),eN="none"===ed?null:{name:(C={name:"flip",options:h=d={...eO,padding:{top:ew.top+1,right:ew.right+1,bottom:ew.bottom+1,left:ew.left+1},mainAxis:!eo&&"flip"===ed,crossAxis:"flip"===eg&&"alignment",fallbackAxisSideDirection:em},async fn(e){var t,r,i,o,l;let{placement:s,middlewareData:u,rects:a,initialPlacement:c,platform:f,elements:d}=e,{mainAxis:g=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:E=!0,...x}=(0,n.evaluate)(h,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let b=(0,n.getSide)(s),R=(0,n.getSideAxis)(c),w=(0,n.getSide)(c)===c,S=await (null==f.isRTL?void 0:f.isRTL(d.floating)),C=p||(w||!E?[(0,n.getOppositePlacement)(c)]:(0,n.getExpandedPlacements)(c)),T="none"!==y;!p&&T&&C.push(...(0,n.getOppositeAxisPlacements)(c,E,y,S));let A=[c,...C],O=await f.detectOverflow(e,x),L=[],P=(null==(r=u.flip)?void 0:r.overflows)||[];if(g&&L.push(O[b]),m){let e=(0,n.getAlignmentSides)(s,a,S);L.push(O[e[0]],O[e[1]])}if(P=[...P,{placement:s,overflows:L}],!L.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=A[e];if(t&&("alignment"!==m||R===(0,n.getSideAxis)(t)||P.every(e=>(0,n.getSideAxis)(e.placement)!==R||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let r=null==(o=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!r)switch(v){case"bestFit":{let e=null==(l=P.filter(e=>{if(T){let t=(0,n.getSideAxis)(e.placement);return t===R||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(r=e);break}case"initialPlacement":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}).name,fn:C.fn,options:[d,void 0]},eF=eI?null:(v=e=>{var t,i;let o=(0,r.ownerDocument)(e.elements.floating).documentElement;return{...eO,rootBoundary:eo?{x:0,y:0,width:o.clientWidth,height:o.clientHeight}:void 0,mainAxis:"none"!==eg,crossAxis:eD,limiter:J||eo?void 0:{fn:(void 0===(i=t=e=>{if(!eL.current)return{};let{width:t,height:r}=eL.current.getBoundingClientRect(),i=(0,n.getSideAxis)((0,n.getSide)(e.placement)),o="y"===i?ew.left+ew.right:ew.top+ew.bottom;return{offset:("y"===i?t:r)/2+o/2}})&&(i={}),{options:i,fn(e){let{x:t,y:r,placement:o,rects:l,middlewareData:s}=e,{offset:u=0,mainAxis:a=!0,crossAxis:c=!0}=(0,n.evaluate)(i,e),f={x:t,y:r},d=(0,n.getSideAxis)(o),m=(0,n.getOppositeAxis)(d),p=f[m],h=f[d],v=(0,n.evaluate)(u,e),y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){let e="y"===m?"height":"width",t=l.reference[m]-l.floating[e]+y.mainAxis,n=l.reference[m]+l.reference[e]-y.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var E,x;let e="y"===m?"width":"height",t=g.has((0,n.getSide)(o)),r=l.reference[d]-l.floating[e]+(t&&(null==(E=s.offset)?void 0:E[d])||0)+(t?0:y.crossAxis),i=l.reference[d]+l.reference[e]+(t?0:(null==(x=s.offset)?void 0:x[d])||0)-(t?y.crossAxis:0);h<r?h=r:h>i&&(h=i)}return{[m]:p,[d]:h}}}).fn,options:[t,void 0]}}},y=[eO,J,eo,ew,eg],void 0===(E=v)&&(E={}),{name:(T={name:"shift",options:E,async fn(e){let{x:t,y:r,placement:i,platform:o}=e,{mainAxis:l=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=(0,n.evaluate)(E,e),c={x:t,y:r},f=await o.detectOverflow(e,a),d=(0,n.getSideAxis)((0,n.getSide)(i)),g=(0,n.getOppositeAxis)(d),m=c[g],p=c[d];if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",r=m+f[e],i=m-f[t];m=(0,n.clamp)(r,m,i)}if(s){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=p+f[e],i=p-f[t];p=(0,n.clamp)(r,p,i)}let h=u.fn({...e,[g]:m,[d]:p});return{...h,data:{x:h.x-t,y:h.y-r,enabled:{[g]:l,[d]:s}}}}}).name,fn:T.fn,options:[v,y]});"shift"===ed||"shift"===eg||"center"===B?ek.push(eF,eN):ek.push(eN,eF),ek.push({name:(A={name:"size",options:b=x={...eO,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!eE.current)return;let o=e.style;o.setProperty("--available-width",`${t}px`),o.setProperty("--available-height",`${n}px`);let l=(0,i.ownerWindow)(e).devicePixelRatio||1,{x:s,y:u,width:a,height:c}=r.reference,f=(Math.round((s+a)*l)-Math.round(s*l))/l,d=(Math.round((u+c)*l)-Math.round(u*l))/l;o.setProperty("--anchor-width",`${f}px`),o.setProperty("--anchor-height",`${d}px`)}},async fn(e){var t,r;let i,o,{placement:l,rects:s,platform:u,elements:a}=e,{apply:c=()=>{},...f}=(0,n.evaluate)(b,e),d=await u.detectOverflow(e,f),g=(0,n.getSide)(l),m=(0,n.getAlignment)(l),p="y"===(0,n.getSideAxis)(l),{width:h,height:v}=s.floating;"top"===g||"bottom"===g?(i=g,o=m===(await (null==u.isRTL?void 0:u.isRTL(a.floating))?"start":"end")?"left":"right"):(o=g,i="end"===m?"top":"bottom");let y=v-d.top-d.bottom,E=h-d.left-d.right,x=(0,n.min)(v-d[i],y),R=(0,n.min)(h-d[o],E),w=!e.middlewareData.shift,S=x,C=R;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(C=E),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(S=y),w&&!m){let e=(0,n.max)(d.left,0),t=(0,n.max)(d.right,0),r=(0,n.max)(d.top,0),i=(0,n.max)(d.bottom,0);p?C=h-2*(0!==e||0!==t?e+t:(0,n.max)(d.left,d.right)):S=v-2*(0!==r||0!==i?r+i:(0,n.max)(d.top,d.bottom))}await c({...e,availableWidth:C,availableHeight:S});let T=await u.getDimensions(a.floating);return h!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}).name,fn:A.fn,options:[x,void 0]},(R=()=>({element:eL.current||(0,r.ownerDocument)(eL.current).createElement("div"),padding:Z,offsetParent:"floating"}),w=[Z],{...{name:"arrow",options:R,async fn(e){let{x:t,y:r,placement:i,rects:o,platform:l,elements:s,middlewareData:u}=e,{element:a,padding:c=0,offsetParent:f="real"}=(0,n.evaluate)(R,e)||{};if(null==a)return{};
2let d=(0,n.getPaddingObject)(c),g={x:t,y:r},m=(0,n.getAlignmentAxis)(i),p=(0,n.getAxisLength)(m),h=await l.getDimensions(a),v="y"===m,y=v?"clientHeight":"clientWidth",E=o.reference[p]+o.reference[m]-g[m]-o.floating[p],x=g[m]-o.reference[m],b="real"===f?await l.getOffsetParent?.(a):s.floating,w=s.floating[y]||o.floating[p];w&&await l.isElement?.(b)||(w=s.floating[y]||o.floating[p]);let S=w/2-h[p]/2-1,C=Math.min(d[v?"top":"left"],S),T=Math.min(d[v?"bottom":"right"],S),A=w-h[p]-T,O=w/2-h[p]/2+(E/2-x/2),L=(0,n.clamp)(C,O,A),P=!u.arrow&&null!=(0,n.getAlignment)(i)&&O!==L&&o.reference[p]/2-(O<C?C:T)-h[p]/2<0,M=P?O<C?O-C:O-A:0;return{[m]:g[m]+M,data:{[m]:L,centerOffset:O-L-M,...P&&{alignmentOffset:M}},reset:P}}},options:[R,w]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:r,placement:i,rects:o,y:l}=e,s=(0,n.getSide)(i),u=(0,n.getSideAxis)(s),a=eL.current,c=r.arrow?.x||0,f=r.arrow?.y||0,d=a?.clientWidth||0,g=a?.clientHeight||0,m=c+d/2,p=f+g/2,h=Math.abs(r.shift?.y||0),v=o.reference.height/2,y="function"==typeof $?$(Y(e,V,ex)):$,E=h>y,x={top:`${m}px calc(100% + ${y}px)`,bottom:`${m}px ${-y}px`,left:`calc(100% + ${y}px) ${p}px`,right:`${-y}px ${p}px`}[s],b=`${m}px ${o.reference.y+v-l}px`;return t.floating.style.setProperty("--transform-origin",eD&&"y"===u&&E?b:x),{}}},K,es),(0,o.useIsoLayoutEffect)(()=>{!er&&en&&en.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[er,en]);let eW=t.useMemo(()=>({elementResize:!ee&&"u">typeof ResizeObserver,layoutShift:!ee&&"u">typeof IntersectionObserver}),[ee]),{refs:eH,elements:eV,x:e$,y:eB,middlewareData:e_,update:ez,placement:ej,context:eK,isPositioned:eG,floatingStyles:eU}=function(e={}){let{nodeId:n,externalTree:r}=e,i=z(e),l=e.rootContext||i,s={reference:l.useState("referenceElement"),floating:l.useState("floatingElement"),domReference:l.useState("domReferenceElement")},[u,a]=t.useState(null),f=t.useRef(null),d=(0,H.useFloatingTree)(r);(0,o.useIsoLayoutEffect)(()=>{s.domReference&&(f.current=s.domReference)},[s.domReference]);let g=function(e){void 0===e&&(e={});let{placement:n="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:s}={},transform:u=!0,whileElementsMounted:a,open:f}=e,[d,g]=t.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[m,p]=t.useState(i);D(m,i)||p(i);let[h,v]=t.useState(null),[y,E]=t.useState(null),x=t.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),b=t.useCallback(e=>{e!==C.current&&(C.current=e,E(e))},[]),R=l||h,w=s||y,S=t.useRef(null),C=t.useRef(null),T=t.useRef(d),A=null!=a,O=W(a),P=W(o),M=W(f),H=t.useCallback(()=>{var e,t;let i,o,l;if(!S.current||!C.current)return;let s={placement:n,strategy:r,middleware:m};P.current&&(s.platform=P.current),(e=S.current,t=C.current,i=new Map,l={...(o={platform:L,...s}).platform,_c:i},c(e,t,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==M.current};V.current&&!D(T.current,t)&&(T.current=t,k.flushSync(()=>{g(t)}))})},[m,n,r,P,M]);I(()=>{!1===f&&T.current.isPositioned&&(T.current.isPositioned=!1,g(e=>({...e,isPositioned:!1})))},[f]);let V=t.useRef(!1);I(()=>(V.current=!0,()=>{V.current=!1}),[]),I(()=>{if(R&&(S.current=R),w&&(C.current=w),R&&w){if(O.current)return O.current(R,w,H);H()}},[R,w,H,O,A]);let $=t.useMemo(()=>({reference:S,floating:C,setReference:x,setFloating:b}),[x,b]),B=t.useMemo(()=>({reference:R,floating:w}),[R,w]),_=t.useMemo(()=>{let e={position:r,left:0,top:0};if(!B.floating)return e;let t=F(B.floating,d.x),n=F(B.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...N(B.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,u,B.floating,d.x,d.y]);return t.useMemo(()=>({...d,update:H,refs:$,elements:B,floatingStyles:_}),[d,H,$,B,_])}({...e,elements:{...s,...u&&{reference:u}}}),m=t.useCallback(e=>{let t=(0,p.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;a(t),g.refs.setReference(t)},[g.refs]),[h,v]=t.useState(void 0),[y,E]=t.useState(null);l.useSyncedValue("referenceElement",h??null);let x=(0,p.isElement)(h)?h:null;l.useSyncedValue("domReferenceElement",void 0===h?s.domReference:x),l.useSyncedValue("floatingElement",y);let b=t.useCallback(e=>{((0,p.isElement)(e)||null===e)&&(f.current=e,v(e)),((0,p.isElement)(g.refs.reference.current)||null===g.refs.reference.current||null!==e&&!(0,p.isElement)(e))&&g.refs.setReference(e)},[g.refs,v]),R=t.useCallback(e=>{E(e),g.refs.setFloating(e)},[g.refs]),w=t.useMemo(()=>({...g.refs,setReference:b,setFloating:R,setPositionReference:m,domReference:f}),[g.refs,b,R,m]),S=t.useMemo(()=>({...g.elements,domReference:s.domReference}),[g.elements,s.domReference]),C=l.useState("open"),T=l.useState("floatingId"),A=t.useMemo(()=>({...g,dataRef:l.context.dataRef,open:C,onOpenChange:l.setOpen,events:l.context.events,floatingId:T,refs:w,elements:S,nodeId:n,rootStore:l}),[g,w,S,n,l,C,T]);return(0,o.useIsoLayoutEffect)(()=>{l.context.dataRef.current.floatingContext=A;let e=d?.nodesRef.current.find(e=>e.id===n);e&&(e.context=A)}),t.useMemo(()=>({...g,context:A,refs:w,elements:S,rootStore:l}),[g,w,S,A,l])}({rootContext:en,open:et?er:void 0,placement:eR,middleware:ek,strategy:P,whileElementsMounted:et?void 0:(...e)=>M(...e,eW),nodeId:el,externalTree:ea}),{sideX:eY,sideY:eq}=e_.adaptiveOrigin||G,eX=eG?P:"fixed",eQ=t.useMemo(()=>{let e=es?{position:eX,[eY]:e$,[eq]:eB}:{position:eX,...eU};return eG||(e.opacity=0),e},[es,eX,eY,e$,eq,eB,eU,eG]),eJ=t.useRef(null);(0,o.useIsoLayoutEffect)(()=>
2{if(!er)return;let e=ey.current,t="function"==typeof e?e():e,n=(q(t)?t.current:t)||null;n!==eJ.current&&(eH.setPositionReference(n),eJ.current=n)},[er,eH,ev,ey]),t.useEffect(()=>{if(!er)return;let e=ey.current;"function"!=typeof e&&q(e)&&e.current!==eJ.current&&(eH.setPositionReference(e.current),eJ.current=e.current)},[er,eH,ev,ey]),t.useEffect(()=>{if(et&&er&&eV.domReference&&eV.floating)return M(eV.domReference,eV.floating,ez,eW)},[et,er,eV,ez,eW]);let eZ=(0,n.getSide)(ej),e0=U(V,eZ,ex),e1=(0,n.getAlignment)(ej)||"center",e2=!!e_.hide?.referenceHidden;(0,o.useIsoLayoutEffect)(()=>{eu&&er&&eG&&ef(eZ)},[eu,er,eG,eZ]);let e5=t.useMemo(()=>({position:"absolute",top:e_.arrow?.y,left:e_.arrow?.x}),[e_.arrow]),e4=e_.arrow?.centerOffset!==0;return t.useMemo(()=>({positionerStyles:eQ,arrowStyles:e5,arrowRef:eL,arrowUncentered:e4,side:e0,align:e1,physicalSide:eZ,anchorHidden:e2,refs:eH,context:eK,isPositioned:eG,update:ez}),[eQ,e5,eL,e4,e0,e1,eZ,e2,eH,eK,eG,ez])}],828314)},989883,e=>{"use strict";var t=e.i(676524),n=e.i(956741),r=e.i(420749),i=e.i(176544);e.s(["useAnchoredPopupScrollLock",0,function(e,o,l,s){let[u,a]=t.useState(!1);(0,i.useIsoLayoutEffect)(()=>{if(!e||!o||null==l)return void a(!1);let t=(0,n.ownerDocument)(l).documentElement.clientWidth,r=l.offsetWidth;a(t>0&&r>0&&r>=t-20)},[e,o,l]),(0,r.useScrollLock)(e&&(!o||u),s)}])},187822,e=>{"use strict";var t=e.i(676524),n=e.i(221603),r=e.i(875556),i=e.i(276125),o=e.i(176544),l=e.i(249213),s=e.i(956741),u=e.i(509856),a=e.i(824462),c=e.i(641645),f=e.i(92615);function d(e){let t=(0,f.getComputedStyle)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=(0,f.isHTMLElement)(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r;return((0,c.round)(n)!==o||(0,c.round)(r)!==l)&&(n=o,r=l),{width:n,height:r}}let g=()=>!0;function m(e,t,n){let r=e.style.getPropertyValue(t);return e.style.setProperty(t,n),()=>{e.style.setProperty(t,r)}}function p(e,t){let n=[];for(let[r,i]of Object.entries(t))n.push(m(e,r,i));return n.length?()=>{n.forEach(e=>e())}:a.NOOP}function h(e,t){let n="auto"===t?"auto":`${t.width}px`,r="auto"===t?"auto":`${t.height}px`;e.style.setProperty("--popup-width",n),e.style.setProperty("--popup-height",r)}function v(e,t){let n="max-content"===t?"max-content":`${t.width}px`,r="max-content"===t?"max-content":`${t.height}px`;e.style.setProperty("--positioner-width",n),e.style.setProperty("--positioner-height",r)}var y=e.i(52521),E=e.i(60750);e.s(["usePopupViewport",0,function(e){let c,{store:f,side:x,cssVars:b,children:R}=e,w=(0,y.useDirection)(),S=f.useState("activeTriggerElement"),C=f.useState("activeTriggerId"),T=f.useState("open"),A=f.useState("payload"),O=f.useState("mounted"),L=f.useState("popupElement"),P=f.useState("positionerElement"),M=function(e){let[n,r]=t.useState({current:e,previous:null});return e!==n.current&&r({current:e,previous:n.current}),n.previous}(T?S:null),k=function(e,n){let[r,i]=t.useState(0),l=t.useRef(e),s=t.useRef(n),u=t.useRef(!1);return(0,o.useIsoLayoutEffect)(()=>{let t=l.current,r=n!==s.current;e!==t?(i(e=>e+1),u.current=!r):u.current&&r&&(i(e=>e+1),u.current=!1),l.current=e,s.current=n},[e,n]),`${e??"current"}-${r}`}(C,A),I=t.useRef(null),[D,N]=t.useState(null),[F,W]=t.useState(null),H=t.useRef(null),V=t.useRef(null),$=(0,u.useAnimationsFinished)(H,!0,!1),B=(0,i.useAnimationFrame)(),[_,z]=t.useState(null),[j,K]=t.useState(!1);(0,o.useIsoLayoutEffect)(()=>(f.set("hasViewport",!0),()=>{f.set("hasViewport",!1)}),[f]);let G=(0,l.useStableCallback)(()=>{H.current?.style.setProperty("animation","none"),H.current?.style.setProperty("transition","none"),V.current?.style.setProperty("display","none")}),U=(0,l.useStableCallback)(e=>{H.current?.style.removeProperty("animation"),H.current?.style.removeProperty("transition"),V.current?.style.removeProperty("display"),e&&z(e)}),Y=t.useRef(null);(0,o.useIsoLayoutEffect)(()=>{var e,t;let r,i,o,l;S&&M&&S!==M&&Y.current!==S&&I.current&&(N(I.current),K(!0),W((e=M,t=S,r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),o={x:r.left+r.width/2,y:r.top+r.height/2},{horizontal:(l={x:i.left+i.width/2,y:i.top+i.height/2}).x-o.x,vertical:l.y-o.y})),B.request(()=>{n.flushSync(()=>{K(!1)}),$(()=>{N(null),z(null),I.current=null})}),Y.current=S)},[S,M,D,$,B]),(0,o.useIsoLayoutEffect)(()=>{let e=H.current;if(!e)return;let t=(0,s.ownerDocument)(e).createElement("div");for(let n of Array.from(e.childNodes))t.appendChild(n.cloneNode(!0));I.current=t});let q=null!=D;return c=q?(0,E.jsxs)(t.Fragment,{children:[(0,E.jsx)("div",{"data-previous":!0,inert:(0,r.inertValue)(!0),ref:V,style:{..._?{[b.popupWidth
2]:`${_.width}px`,[b.popupHeight]:`${_.height}px`}:null,position:"absolute"},"data-ending-style":j?void 0:""},"previous"),(0,E.jsx)("div",{"data-current":!0,ref:H,"data-starting-style":j?"":void 0,children:R},k)]}):(0,E.jsx)("div",{"data-current":!0,ref:H,children:R},k),(0,o.useIsoLayoutEffect)(()=>{let e=V.current;e&&D&&e.replaceChildren(...Array.from(D.childNodes))},[D]),!function(e){let{popupElement:n,positionerElement:r,content:s,mounted:c,enabled:f=g,onMeasureLayout:y,onMeasureLayoutComplete:E,side:x,direction:b}=e,R=(0,u.useAnimationsFinished)(n,!0,!1),w=(0,i.useAnimationFrame)(),S=t.useRef(null),C=t.useRef(null),T=t.useRef(!0),A=t.useRef(a.NOOP),O=(0,l.useStableCallback)(y),L=(0,l.useStableCallback)(E),P=t.useMemo(()=>{let e="top"===x,t="left"===x;return"rtl"===b?(e=e||"inline-end"===x,t=t||"inline-end"===x):(e=e||"inline-start"===x,t=t||"inline-start"===x),e?{position:"absolute",["top"===x?"bottom":"top"]:"0",[t?"right":"left"]:"0"}:a.EMPTY_OBJECT},[x,b]);(0,o.useIsoLayoutEffect)(()=>{if(!c||!f()||"function"!=typeof ResizeObserver){A.current=a.NOOP,T.current=!0,S.current=null,C.current=null;return}if(!n||!r)return;A.current=p(n,P);let e=new ResizeObserver(e=>{let t=e[0];t&&(C.current={width:Math.ceil(t.borderBoxSize[0].inlineSize),height:Math.ceil(t.borderBoxSize[0].blockSize)})});e.observe(n),h(n,"auto");let t=m(n,"position","static"),i=m(n,"transform","none"),o=m(n,"scale","1"),l=p(r,{"--available-width":"max-content","--available-height":"max-content"});function s(){t(),i(),l(),o()}if(O?.(),T.current||null===S.current){v(r,"max-content");let t=d(n);return S.current=t,v(r,t),s(),L?.(null,t),T.current=!1,()=>{e.disconnect(),A.current(),A.current=a.NOOP}}h(n,"auto"),v(r,"max-content");let u=S.current??C.current,g=d(n);if(S.current=g,!u)return v(r,g),s(),L?.(null,g),()=>{e.disconnect(),w.cancel(),A.current(),A.current=a.NOOP};h(n,u),s(),L?.(u,g),v(r,g);let y=new AbortController;return w.request(()=>{h(n,g),R(()=>{n.style.setProperty("--popup-width","auto"),n.style.setProperty("--popup-height","auto")},y.signal)}),()=>{e.disconnect(),y.abort(),w.cancel(),A.current(),A.current=a.NOOP}},[s,n,r,R,w,f,c,O,L,P])}({popupElement:L,positionerElement:P,mounted:O,content:A,onMeasureLayout:G,onMeasureLayoutComplete:U,side:x,direction:w}),{children:c,state:{activationDirection:function(e){if(e){var t,n;return`${(t=e.horizontal)>5?"right":t<-5?"left":""} ${(n=e.vertical)>5?"down":n<-5?"up":""}`}}(F),transitioning:q}}}],187822)},748241,e=>{"use strict";var t=e.i(606328),n=e.i(93207),r=e.i(746693);e.s(["usePositioner",0,function(e,i,{styles:o,transitionStatus:l,props:s,refs:u,hidden:a,inert:c=!1}){let f={...o};return c&&(f.pointerEvents="none"),(0,n.useRenderElement)("div",e,{state:i,ref:u,props:[{role:"presentation",hidden:a,style:f},(0,r.getDisabledMountTransitionStyles)(l),s],stateAttributesMapping:t.popupStateMapping})}])}]);
3
4//# debugId=916c8ddd-edfc-aa96-2edd-594e765c65cd

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.