PageSourceSearch

https://studentseats.com/_next/static/chunks/8ba032d65e3e71c4.js

js studentseats.com collected 2026-10-08 06:26:58 UTC 61,846 bytes, 7 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,133716,372853,276331,508870,e=>{"use strict";let t;var r=e.i(271645),[n,o]=function(e={}){let{strict:t=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=e,a=r.createContext(void 0);return a.displayName=o,[a.Provider,function e(){var o;let s=r.useContext(a);if(!s&&t){let t=Error(n);throw t.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,t,e),t}return s},a]}({name:"DropdownContext",errorMessage:"useDropdownContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Dropdown />`"}),a=e.i(595494),s=e.i(415267),i=e.i(571390),l=e.i(984898),u=e.i(779754),c=(0,l.tv)({base:["w-full","p-1","min-w-[200px]"]});function d(...e){for(var t,r,n=0,o="";n<e.length;)(t=e[n++])&&(r=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}(t))&&(o&&(o+=" "),o+=r);return o}(0,l.tv)({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","outline-solid outline-transparent","cursor-pointer","tap-highlight-transparent","data-[pressed=true]:opacity-70",...u.dataFocusVisibleClasses,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal truncate",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","shrink-0"],shortcut:["px-1","py-0.5","rounded-sm","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:"border-small border-transparent hover:border-default data-[hover=true]:bg-default-100"},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{}}},defaultVariants:{variant:"solid",color:"default"},compoundVariants:[{variant:"solid",color:"default",class:{base:"data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"solid",color:"primary",class:{base:"data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"solid",color:"secondary",class:{base:"data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"solid",color:"success",class:{base:"data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"solid",color:"warning",class:{base:"data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"solid",color:"danger",class:{base:"data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"shadow",color:"default",class:{base:"data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground"}},{variant:"shadow",color:"primary",class:{base:"data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground"}},{variant:"shadow",color:"secondary",class:{base:"data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground"}},{variant:"shadow",color:"success",class:{base:"data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground"}},{variant:"shadow",color:"warning",class:{base:"data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground"}},{variant:"shadow",color:"danger",class:{base:"data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground"}},{variant:"bordered",color:"default",class:{base:"data-[hover=true]:border-default"}},{variant:"bordered",color:"primary",class:{base:"data-[hover=true]:border-primary data-[hover=true]:text-primary"}},{variant:"bordered",color:"secondary",class:{base:"data-[hover=true]:border-secondary data-[hover=true]:text-secondary"}},{variant:"bordered",color:"success",class:{base:"data-[hover=true]:border-success data-[hover=true]:text-success"}},{variant:"bordered",color:"warning",class:{base:"data-[hover=true]:border-warning data-[hover=true]:text-warning"}},{variant:"bordered",color:"danger",class:{base:"data-[hover=true]:border-danger data-[hover=true]:text-danger"}},{variant:"flat",color:"default",class:{base:"data-[hover=true]:bg-default/40 data-[hover=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{base:"data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary"}},{variant:"flat",color:"secondary",class:{base:"data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary"}},{variant:"flat",color:"success",class:{base:"data-[hover=true]:bg-success/20 data-[hover=true]:text-success "}},{variant:"flat",color:"warning",class:{base:"data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning"}},{variant:"flat",color:"danger",class:{base:"data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger"}},{variant:"faded",color:"default",class:{base:"data-[hover=true]:text-default-foreground"}},{variant:"faded",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"faded",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"faded",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"faded",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"faded",color:"danger",class:{base:"data-[hover=true]:text-danger"}},{variant:"light",color:"default",class:{base:"data-[hover=true]:text-default-500"}},{variant:"light",color:"primary",class:{base:"data-[hover=true]:text-primary"}},{variant:"light",color:"secondary",class:{base:"data-[hover=true]:text-secondary"}},{variant:"light",color:"success",class:{base:"data-[hover=true]:text-success"}},{variant:"light",color:"warning",class:{base:"data-[hover=true]:text-warning"}},{variant:"light",color:"danger",class:{base:"data-[hover=true]:text-danger"}}]}),(0,l.tv)({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),(0,l.tv)({base:"w-full flex flex-col gap-0.5 p-1"}),e.i(247167);var p=new Map;function v(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],o=n[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=function(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}(r,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof o?t[e]=d(r,o):"id"===e&&r&&o?t.id=function(e,t){if(e===t)return e;let r=p.get(e);
1if(r)return r.forEach(e=>e.current=t),t;let n=p.get(t);return n?(n.forEach(t=>t.current=e),e):t}(r,o):t[e]=void 0!==o?o:r}}return t}var f=e.i(869918),[g,m]=(0,f.createContext)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),b=e.i(995798),h=e.i(273830),y=e.i(158825),E=e.i(88653),T=e.i(843476),w=(0,h.forwardRef)((e,t)=>{let{children:n,...o}=e,a=(0,b.usePopover)({...o,ref:t}),[s,i]=r.Children.toArray(n),l=(0,T.jsx)(y.Overlay,{portalContainer:a.portalContainer,children:i});return(0,T.jsxs)(g,{value:a,children:[s,a.disableAnimation&&a.isOpen?l:(0,T.jsx)(E.AnimatePresence,{children:a.isOpen?l:null})]})});w.displayName="HeroUI.Popover";var x=e=>{let{children:t,...o}=e,l=function(e){var t;let n=(0,a.useProviderContext)(),{as:o,triggerRef:l,isOpen:u,defaultOpen:p,onOpenChange:f,isDisabled:g,type:m="menu",trigger:b="press",placement:h="bottom",closeOnSelect:y=!0,shouldBlockScroll:E=!0,classNames:T,disableAnimation:w=null!=(t=null==n?void 0:n.disableAnimation)&&t,onClose:x,className:P,...C}=e,N=(0,r.useRef)(null),k=l||N,M=(0,r.useRef)(null),L=(0,r.useRef)(null),S=(0,s.useMenuTriggerState)({trigger:b,isOpen:u,defaultOpen:p,onOpenChange:e=>{null==f||f(e),e||null==x||x()}}),{menuTriggerProps:D,menuProps:F}=(0,i.useMenuTrigger)({type:m,trigger:b,isDisabled:g},S,k),R=(0,r.useMemo)(()=>c({className:P}),[P]);return{Component:o||"div",menuRef:M,menuProps:F,closeOnSelect:y,onClose:S.close,autoFocus:S.focusStrategy||!0,disableAnimation:w,getPopoverProps:(e={})=>({state:S,placement:h,ref:L,disableAnimation:w,shouldBlockScroll:E,scrollRef:M,triggerRef:k,...v(C,e),classNames:{...T,...e.classNames,content:d(R,null==T?void 0:T.content,e.className)}}),getMenuProps:(e,t=null)=>({ref:function(...e){return t=>{e.forEach(e=>(function(e,t){if(null!=e){if("function"==typeof e)return void e(t);try{e.current=t}catch{throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}})(e,t))}}(t,M),menuProps:F,closeOnSelect:y,...v(e,{onAction:(t,r)=>{var n;let o;(void 0===(n=(o=r||((e,t)=>{if(e){let r=Array.isArray(e.children)?e.children:[...(null==e?void 0:e.items)||[]];if(r&&r.length)return r.find(e=>{if(e&&e.key===t)return e})||{}}return null})(e,t))&&o.props&&"closeOnSelect"in o.props?o.props.closeOnSelect:null==e?void 0:e.closeOnSelect)||n)&&y&&S.close()},onClose:S.close})}),getMenuTriggerProps:(e={})=>{let{onPress:t,onPressStart:r,...n}=D;return v(n,{isDisabled:g},e)}}}(o),[u,p]=r.default.Children.toArray(t);return(0,T.jsx)(n,{value:l,children:(0,T.jsxs)(w,{...l.getPopoverProps(),children:[u,p]})})};x.displayName="HeroUI.Dropdown",e.s(["Dropdown",()=>x],133716);var P=e.i(569080),C=e.i(750179),N=e.i(111487),k=e.i(791884),M=e.i(317430),L=e.i(717234),S=e.i(21318),D=e.i(880577);function F(e){if(!e)return;let t=!0;return r=>{e({...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t}),t&&r.stopPropagation()}}var R=e.i(389979),A=e.i(797547);e.i(882179);let O=r.default.createContext(null);r.default.forwardRef(function(e,t){let{children:n,...o}=e,a=(0,A.useObjectRef)(t),s={...o,ref:a};return r.default.createElement(O.Provider,{value:s},n)});var j=e.i(134212),I=e.i(111733);let H="default",K="",U=new WeakMap;function W(e){if((0,I.isIOS)())"disabled"===H&&(H="restoring",setTimeout(()=>{(0,L.runAfterTransition)(()=>{if("restoring"===H){let t=(0,k.getOwnerDocument)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=K||""),K="",H="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&U.has(e)){let t=U.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[r]&&(e.style[r]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),U.delete(e)}}let V=r.default.createContext({register:()=>{}});V.displayName="PressResponderContext";var B=e.i(229032),z=e.i(567928),G=e.i(523474),_=e.i(540861),$=e.i(991247),Y=e.i(174501),X=e.i(211458),q=e.i(437239);e.i(174080);var J=new WeakMap;class Q{continuePropagation(){(0,G._)(this,J,!1)}get shouldStopPropagation(){return(0,B._)(this,J)}constructor(e,t,r,n){var o;(0,z._)(this,J,{writable:!0,value:void 0}),(0,G._)(this,J,!0);let a=null!=(o=null==n?void 0:n.target)?o:r.currentTarget;const s=null==a?void 0:a.getBoundingClientRect();let i,l=0,u,c=null;null!=r.clientX&&null!=r.clientY&&(u=r.clientX,c=r.clientY),s&&(null!=u&&null!=c?(i=u-s.left,l=c-s.top):(i=s.width/2,l=s.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=i,this.y=l}}let Z=Symbol("linkClicked"),ee="react-aria-pressable-style",et="data-react-aria-pressable";function er(e){return"A"===e.tagName&&e.hasAttribute("href")}function en(e,t){let{key:r,code:n}=e,o=t.getAttribute("role");return("Enter"===r||" "===r||"Spacebar"===r||"Space"===n)&&!(t instanceof(0,k.getOwnerWindow)(t).HTMLInputElement&&!ei(t,r)||t instanceof(0,k.getOwnerWindow)(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===o||!o&&er(t))&&"Enter"!==r)}function eo(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function ea(e,t){return e instanceof HTMLInputElement?!ei(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!er(e))}let es=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ei(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:es.has(e.type)}function el(e,t){let n,{elementType:o="button",isDisabled:a,onPress:s,onPressStart:i,onPressEnd:l,onPressUp:u,onPressChange:c,preventFocusOnPress:d,allowFocusWhenDisabled:p,onClick:v,href:f,target:g,rel:m,type:b="button",allowTextSelectionOnPress:h}=e;n="button"===o?{type:b,disabled:a}:{role:"button",href:"a"!==o||a?void 0:f,target:"a"===o?g:void 0,type:"input"===o?b:void 0,disabled:"input"===o?a:void 0,"aria-disabled":a&&"input"!==o?a:void 0,rel:"a"===o?m:void 0};let{pressProps:y,isPressed:E}=function(e){let{onPress:t,onPressChange:n,onPressStart:o,onPressEnd:a,onPressUp:s,onClick:i,isDisabled:l,isPressed:u,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:p,ref:v,...f}=function(e){let t=(0,r.useContext)(V);if(t){let{register:r,...n}=t;e=(0,C.mergeProps)(n,e),r()}return(0,R.useSyncRef)(t,e.ref),e}(e),[g,m]=(0,r.useState)(!1),b=(0,r.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:h,removeAllGlobalListeners:y}=(0,_.useGlobalListeners)(),E=(0,$.useEffectEvent)((e,t)=>{let r=b.current;if(l||r.didFirePressStart)return!1;let a=!0;if(r.isTriggeringEvent=!0,o){let r=new Q("pressstart",t,e);o(r),a=r.shouldStopPropagation}return n&&n(!0),r.isTriggeringEvent=!1,r.didFirePressStart=!0,m(!0),a}),T=(0,$.useEffectEvent)((e,r,o=!0)=>{let s=b.current;if(!s.didFirePressStart)return!1;s.didFirePressStart=!1,s.isTriggeringEvent=!0;let i=!0;if(a){let t=new Q("pressend",r,e);a(t),i=t.shouldStopPropagation}if(n&&n(!1),m(!1),t&&o&&!l){let n=new Q("press",r,e);t(n),i&&(i=n.shouldStopPropagation)}return s.isTriggeringEvent=!1,i}),w=(0,$.useEffectEvent)((e,t)=>{let r=b.current;if(l)return!1;if(s){r.isTriggeringEvent=!0;let n=new Q("pressup",t,e);return s(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0}),x=(0,$.useEffectEvent)(e=>{let t=b.current;if(t.isPressed&&t.target){for(let r of(t.didFirePressStart&&null!=t.pointerType&&T(eo(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,y(),p||W(t.target),t.disposables)
1)r();t.disposables=[]}}),P=(0,$.useEffectEvent)(e=>{d&&x(e)}),N=(0,$.useEffectEvent)(e=>{null==i||i(e)}),L=(0,$.useEffectEvent)((e,t)=>{if(i){let r=new MouseEvent("click",e);(0,j.setEventTarget)(r,t),i((0,j.createSyntheticEvent)(r))}}),D=(0,r.useMemo)(()=>{let e=b.current,t={onKeyDown(t){if(en(t.nativeEvent,t.currentTarget)&&(0,M.nodeContains)(t.currentTarget,(0,M.getEventTarget)(t.nativeEvent))){var n;ea((0,M.getEventTarget)(t.nativeEvent),t.key)&&t.preventDefault();let o=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,e.pointerType="keyboard",o=E(t,"keyboard");let n=t.currentTarget;h((0,k.getOwnerDocument)(t.currentTarget),"keyup",(0,Y.chain)(t=>{en(t,n)&&!t.repeat&&(0,M.nodeContains)(n,(0,M.getEventTarget)(t))&&e.target&&w(eo(e.target,t),"keyboard")},r),!0)}o&&t.stopPropagation(),t.metaKey&&(0,I.isMac)()&&(null==(n=e.metaKeyEvents)||n.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||(0,M.nodeContains)(t.currentTarget,(0,M.getEventTarget)(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!X.openLink.isOpening){let r=!0;if(l&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,q.isVirtualClick)(t.nativeEvent))){let e=E(t,"virtual"),n=w(t,"virtual"),o=T(t,"virtual");N(t),r=e&&n&&o}else if(e.isPressed&&"keyboard"!==e.pointerType){let n=e.pointerType||t.nativeEvent.pointerType||"virtual",o=w(eo(t.currentTarget,t),n),a=T(eo(t.currentTarget,t),n,!0);r=o&&a,e.isOverTarget=!1,N(t),x(t)}e.ignoreEmulatedMouseEvents=!1,r&&t.stopPropagation()}}},r=t=>{var r,n,o;if(e.isPressed&&e.target&&en(t,e.target)){ea((0,M.getEventTarget)(t),t.key)&&t.preventDefault();let r=(0,M.getEventTarget)(t),o=(0,M.nodeContains)(e.target,(0,M.getEventTarget)(t));T(eo(e.target,t),"keyboard",o),o&&L(t,e.target),y(),"Enter"!==t.key&&er(e.target)&&(0,M.nodeContains)(e.target,r)&&!t[Z]&&(t[Z]=!0,(0,X.openLink)(e.target,t,!1)),e.isPressed=!1,null==(n=e.metaKeyEvents)||n.delete(t.key)}else if("Meta"===t.key&&(null==(r=e.metaKeyEvents)?void 0:r.size)){let t=e.metaKeyEvents;for(let r of(e.metaKeyEvents=void 0,t.values()))null==(o=e.target)||o.dispatchEvent(new KeyboardEvent("keyup",r))}};if("u">typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!(0,M.nodeContains)(t.currentTarget,(0,M.getEventTarget)(t.nativeEvent)))return;if((0,q.isVirtualPointerEvent)(t.nativeEvent)){e.pointerType="virtual";return}e.pointerType=t.pointerType;let o=!0;if(!e.isPressed){e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,p||function(e){if((0,I.isIOS)()){if("default"===H){let t=(0,k.getOwnerDocument)(e);K=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}H="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";U.set(e,e.style[t]),e.style[t]="none"}}(e.target),o=E(t,e.pointerType);let a=(0,M.getEventTarget)(t.nativeEvent);"releasePointerCapture"in a&&a.releasePointerCapture(t.pointerId),h((0,k.getOwnerDocument)(t.currentTarget),"pointerup",r,!1),h((0,k.getOwnerDocument)(t.currentTarget),"pointercancel",n,!1)}o&&t.stopPropagation()},t.onMouseDown=t=>{if((0,M.nodeContains)(t.currentTarget,(0,M.getEventTarget)(t.nativeEvent))&&0===t.button){if(c){let r=(0,j.preventFocus)(t.target);r&&e.disposables.push(r)}t.stopPropagation()}},t.onPointerUp=t=>{(0,M.nodeContains)(t.currentTarget,(0,M.getEventTarget)(t.nativeEvent))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||w(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,E(eo(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,T(eo(e.target,t),e.pointerType,!1),P(t))};let r=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if((0,M.nodeContains)(e.target,(0,M.getEventTarget)(t))&&null!=e.pointerType){let r=!1,n=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(r?x(t):((0,S.focusWithoutScrolling)(e.target),e.target.click()))},80);h(t.currentTarget,"click",()=>r=!0,!0),e.disposables.push(()=>clearTimeout(n))}else x(t);e.isOverTarget=!1}},n=e=>{x(e)};t.onDragStart=e=>{(0,M.nodeContains)(e.currentTarget,(0,M.getEventTarget)(e.nativeEvent))&&x(e)}}return t},[h,l,c,y,p,x,P,T,E,w,N,L]);return(0,r.useEffect)(()=>
1{if(!v)return;let e=(0,k.getOwnerDocument)(v.current);if(!e||!e.head||e.getElementById(ee))return;let t=e.createElement("style");t.id=ee,t.textContent=`
2@layer {
3  [${et}] {
4    touch-action: pan-x pan-y pinch-zoom;
5  }
6}
7    `.trim(),e.head.prepend(t)},[v]),(0,r.useEffect)(()=>{let e=b.current;return()=>{var t;for(let r of(p||W(null!=(t=e.target)?t:void 0),e.disposables))r();e.disposables=[]}},[p]),{isPressed:u||g,pressProps:(0,C.mergeProps)(f,D,{[et]:!0})}}({onClick:v,onPressStart:i,onPressEnd:l,onPressUp:u,onPressChange:c,onPress:s,isDisabled:a,preventFocusOnPress:d,allowTextSelectionOnPress:h,ref:t}),{focusableProps:T}=function(e,t){let{focusProps:n}=(0,D.useFocus)(e),{keyboardProps:o}={keyboardProps:e.isDisabled?{}:{onKeyDown:F(e.onKeyDown),onKeyUp:F(e.onKeyUp)}},a=(0,C.mergeProps)(n,o),s=function(e){let t=(0,r.useContext)(O)||{};(0,R.useSyncRef)(t,e);let{ref:n,...o}=t;return o}(t),i=e.isDisabled?{}:s,l=(0,r.useRef)(e.autoFocus);(0,r.useEffect)(()=>{var e;let r,n;l.current&&t.current&&(e=t.current,r=(0,k.getOwnerDocument)(e),n=(0,M.getActiveElement)(r),"virtual"===(0,N.getInteractionModality)()?(0,L.runAfterTransition)(()=>{(0,M.getActiveElement)(r)===n&&e.isConnected&&(0,S.focusWithoutScrolling)(e)}):(0,S.focusWithoutScrolling)(e)),l.current=!1},[t]);let u=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(u=void 0),{focusableProps:(0,C.mergeProps)({...a,tabIndex:u},i)}}(e,t);p&&(T.tabIndex=a?-1:T.tabIndex);let w=(0,C.mergeProps)(T,y,(0,P.filterDOMProps)(e,{labelable:!0}));return{isPressed:E,buttonProps:(0,C.mergeProps)(n,w,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var[eu,ec]=(0,f.createContext)({name:"ButtonGroupContext",strict:!1}),ed=e.i(12719),ep=e.i(366481),ev=e.i(898278),ef=e.i(694722),eg=e.i(919477),em=e.i(946834);let eb=!1,eh=0;function ey(e){"touch"===e.pointerType&&(eb=!0,setTimeout(()=>{eb=!1},50))}function eE(){if("u">typeof document)return"u">typeof PointerEvent&&document.addEventListener("pointerup",ey),eh++,()=>{!(--eh>0)&&"u">typeof PointerEvent&&document.removeEventListener("pointerup",ey)}}var eT=e.i(858176),ew=(0,h.forwardRef)((e,t)=>{let{slots:n,classNames:o,label:a,variant:s,getSpinnerProps:i}=function(e){var t,n;let[o,a]=(0,h.mapPropsVariants)(e,eT.spinner.variantKeys),s=(0,ed.useProviderContext)(),i=null!=(n=null!=(t=null==e?void 0:e.variant)?t:null==s?void 0:s.spinnerVariant)?n:"default",{children:l,className:u,classNames:c,label:d,...p}=o,v=(0,r.useMemo)(()=>(0,eT.spinner)({...a}),[(0,ep.objectToDeps)(a)]),f=(0,ep.clsx)(null==c?void 0:c.base,u),g=d||l,m=(0,r.useMemo)(()=>g&&"string"==typeof g?g:p["aria-label"]?"":"Loading",[l,g,p["aria-label"]]),b=(0,r.useCallback)(()=>({"aria-label":m,className:v.base({class:f}),...p}),[m,v,f,p]);return{label:g,slots:v,classNames:c,variant:i,getSpinnerProps:b}}({...e});return"wave"===s||"dots"===s?(0,T.jsxs)("div",{ref:t,...i(),children:[(0,T.jsx)("div",{className:n.wrapper({class:null==o?void 0:o.wrapper}),children:[void 0,void 0,void 0].map((e,t)=>(0,T.jsx)("i",{className:n.dots({class:null==o?void 0:o.dots}),style:{"--dot-index":t}},`dot-${t}`))}),a&&(0,T.jsx)("span",{className:n.label({class:null==o?void 0:o.label}),children:a})]}):"simple"===s?(0,T.jsxs)("div",{ref:t,...i(),children:[(0,T.jsxs)("svg",{className:n.wrapper({class:null==o?void 0:o.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[(0,T.jsx)("circle",{className:n.circle1({class:null==o?void 0:o.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,T.jsx)("path",{className:n.circle2({class:null==o?void 0:o.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),a&&(0,T.jsx)("span",{className:n.label({class:null==o?void 0:o.label}),children:a})]}):"spinner"===s?(0,T.jsxs)("div",{ref:t,...i(),children:[(0,T.jsx)("div",{className:n.wrapper({class:null==o?void 0:o.wrapper}),children:[...Array(12)].map((e,t)=>(0,T.jsx)("i",{className:n.spinnerBars({class:null==o?void 0:o.spinnerBars}),style:{"--bar-index":t}},`star-${t}`))}),a&&(0,T.jsx)("span",{className:n.label({class:null==o?void 0:o.label}),children:a})]}):(0,T.jsxs)("div",{ref:t,...i(),children:[(0,T.jsxs)("div",{className:n.wrapper({class:null==o?void 0:o.wrapper}),children:[(0,T.jsx)("i",{className:n.circle1({class:null==o?void 0:o.circle1})}),(0,T.jsx)("i",{className:n.circle2({class:null==o?void 0:o.circle2})})]}),a&&(0,T.jsx)("span",{className:n.label({class:null==o?void 0:o.label}),children:a})]})});ew.displayName="HeroUI.Spinner";var ex=e.i(824511),eP=e.i(444113),eC=()=>e.A(475977).then(e=>e.default),eN=e=>{let{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:a}=e;return(0,T.jsx)(T.Fragment,{children:t.map(e=>{let t=(0,ep.clamp)(.01*e.size,.2,e.size>100?.75:.5);return(0,T.jsx)(eP.LazyMotion,{features:eC,children:(0,T.jsx)(E.AnimatePresence,{mode:"popLayout",children:(0,T.jsx)(ex.m.span,{animate:{transform:"scale(2)",opacity:0}
7,className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:e.y,left:e.x,width:`${e.size}px`,height:`${e.size}px`,...o},transition:{duration:t},onAnimationComplete:()=>{a(e.key)},...r})})},e.key)})})};eN.displayName="HeroUI.Ripple";var ek=(0,h.forwardRef)((e,t)=>{let{Component:n,domRef:o,children:a,spinnerSize:s,spinner:i=(0,T.jsx)(ew,{color:"current",size:s}),spinnerPlacement:l,startContent:u,endContent:c,isLoading:d,disableRipple:p,getButtonProps:v,getRippleProps:f,isIconOnly:g}=function(e){var t,n,o,a,s,i,l,u,c;let d=ec(),p=(0,ed.useProviderContext)(),v=!!d,{ref:f,as:g,children:m,startContent:b,endContent:h,autoFocus:y,className:E,spinner:T,isLoading:w=!1,disableRipple:x=!1,fullWidth:P=null!=(t=null==d?void 0:d.fullWidth)&&t,radius:C=null==d?void 0:d.radius,size:N=null!=(n=null==d?void 0:d.size)?n:"md",color:L=null!=(o=null==d?void 0:d.color)?o:"default",variant:S=null!=(a=null==d?void 0:d.variant)?a:"solid",disableAnimation:D=null!=(i=null!=(s=null==d?void 0:d.disableAnimation)?s:null==p?void 0:p.disableAnimation)&&i,isDisabled:F=null!=(l=null==d?void 0:d.isDisabled)&&l,isIconOnly:R=null!=(u=null==d?void 0:d.isIconOnly)&&u,spinnerPlacement:A="start",onPress:O,onClick:j,...I}=e,H=g||"button",K="string"==typeof H,U=(0,ef.useDOMRef)(f),W=null!=(c=x||(null==p?void 0:p.disableRipple))?c:D,{isFocusVisible:V,isFocused:B,focusProps:z}=(0,ev.useFocusRing)({autoFocus:y}),G=F||w,$=(0,r.useMemo)(()=>(0,em.button)({size:N,color:L,variant:S,radius:C,fullWidth:P,isDisabled:G,isInGroup:v,disableAnimation:D,isIconOnly:R,className:E}),[N,L,S,C,P,G,v,R,D,E]),{onPress:Y,onClear:X,ripples:q}=function(e={}){let[t,n]=(0,r.useState)([]),o=(0,r.useCallback)(e=>{let t=e.target,r=Math.max(t.clientWidth,t.clientHeight);n(t=>[...t,{key:(0,ep.getUniqueID)(t.length.toString()),size:r,x:e.x-r/2,y:e.y-r/2}])},[]);return{ripples:t,onClear:(0,r.useCallback)(e=>{n(t=>t.filter(t=>t.key!==e))},[]),onPress:o,...e}}(),J=(0,r.useCallback)(e=>{W||G||D||U.current&&Y(e)},[W,G,D,U,Y]),{buttonProps:Q,isPressed:Z}=el({elementType:g,isDisabled:G,onPress:(0,ep.chain)(O,J),onClick:j,...I},U),{isHovered:ee,hoverProps:et}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:o,isDisabled:a}=e,[s,i]=(0,r.useState)(!1),l=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(eE,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=(0,_.useGlobalListeners)(),{hoverProps:d,triggerHoverEnd:p}=(0,r.useMemo)(()=>{let e=(e,t)=>{let r=l.target;
7l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&r&&(l.isHovered=!1,c(),o&&o({type:"hoverend",target:r,pointerType:t}),n&&n(!1),i(!1))},r={};return"u">typeof PointerEvent&&(r.onPointerEnter=r=>{eb&&"mouse"===r.pointerType||((r,o)=>{if(l.pointerType=o,a||"touch"===o||l.isHovered||!r.currentTarget.contains(r.target))return;l.isHovered=!0;let s=r.currentTarget;l.target=s,u((0,k.getOwnerDocument)(r.target),"pointerover",t=>{l.isHovered&&l.target&&!(0,M.nodeContains)(l.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:s,pointerType:o}),n&&n(!0),i(!0)})(r,r.pointerType)},r.onPointerLeave=t=>{!a&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:r,triggerHoverEnd:e}},[t,n,o,a,l,u,c]);return(0,r.useEffect)(()=>{a&&p({currentTarget:l.target},l.pointerType)},[a]),{hoverProps:d,isHovered:s}}({isDisabled:G}),er=(0,r.useCallback)((e={})=>({"data-disabled":(0,ep.dataAttr)(G),"data-focus":(0,ep.dataAttr)(B),"data-pressed":(0,ep.dataAttr)(Z),"data-focus-visible":(0,ep.dataAttr)(V),"data-hover":(0,ep.dataAttr)(ee),"data-loading":(0,ep.dataAttr)(w),...(0,ep.mergeProps)(Q,z,et,(0,eg.filterDOMProps)(I,{enabled:K}),(0,eg.filterDOMProps)(e)),className:$}),[w,G,B,Z,K,V,ee,Q,z,et,I,$]),en=e=>(0,r.isValidElement)(e)?(0,r.cloneElement)(e,{"aria-hidden":!0,focusable:!1}):null,eo=en(b),ea=en(h);return{Component:H,children:m,domRef:U,spinner:T,styles:$,startContent:eo,endContent:ea,isLoading:w,spinnerPlacement:A,spinnerSize:(0,r.useMemo)(()=>({sm:"sm",md:"sm",lg:"md"})[N],[N]),disableRipple:W,getButtonProps:er,getRippleProps:(0,r.useCallback)(()=>({ripples:q,onClear:X}),[q,X]),isIconOnly:R}}({...e,ref:t});return(0,T.jsxs)(n,{ref:o,...v(),children:[u,d&&"start"===l&&i,d&&g?null:a,d&&"end"===l&&i,c,!p&&(0,T.jsx)(eN,{...f()})]})});ek.displayName="HeroUI.Button";var eM=e=>{var t,n;let o,{triggerRef:a,getTriggerProps:s}=m(),{children:i,...l}=e,u=(0,r.useMemo)(()=>"string"==typeof i?(0,T.jsx)("p",{children:i}):r.Children.only(i),[i]),c=null!=(t=u.props.ref)?t:u.ref,{onPress:d,isDisabled:p,...v}=(0,r.useMemo)(()=>s((0,ep.mergeProps)(l,u.props),c),[s,u.props,l,c]),[,f]=(o=[],[null==(n=r.Children.map(i,e=>(0,r.isValidElement)(e)&&e.type===ek?(o.push(e),null):e))?void 0:n.filter(
7Boolean),o.length>=0?o:void 0]),{buttonProps:g}=el({onPress:d,isDisabled:p},a),b=(0,r.useMemo)(()=>(null==f?void 0:f[0])!==void 0,[f]);return b||delete v.preventFocusOnPress,(0,r.cloneElement)(u,(0,ep.mergeProps)(v,b?{onPress:d,isDisabled:p}:g))};eM.displayName="HeroUI.PopoverTrigger";var eL=e=>{let{getMenuTriggerProps:t}=o(),{children:r,...n}=e;return(0,T.jsx)(eM,{...t(n),children:r})};eL.displayName="HeroUI.DropdownTrigger",e.s(["DropdownTrigger",()=>eL],372853);var eS=e.i(560623),eD=e.i(520947),eF=e.i(366784),eR=e.i(482008),eA=()=>e.A(475977).then(e=>e.default),eO=e=>{let{as:t,children:n,className:o,...a}=e,{Component:s,placement:i,backdrop:l,motionProps:u,disableAnimation:c,getPopoverProps:d,getDialogProps:p,getBackdropProps:v,getContentProps:f,isNonModal:g,onClose:b}=m(),h=(0,r.useRef)(null),{dialogProps:y,titleProps:E}=(0,eR.useDialog)({},h),w=p({ref:h,...y,...a}),x=(0,T.jsxs)(T.Fragment,{children:[!g&&(0,T.jsx)(eS.DismissButton,{onDismiss:b}),(0,T.jsx)(t||s||"div",{...w,children:(0,T.jsx)("div",{...f({className:o}),children:"function"==typeof n?n(E):n})}),(0,T.jsx)(eS.DismissButton,{onDismiss:b})]}),P=(0,r.useMemo)(()=>"transparent"===l?null:c?(0,T.jsx)("div",{...v()}):(0,T.jsx)(eP.LazyMotion,{features:eA,children:(0,T.jsx)(ex.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:eD.TRANSITION_VARIANTS.fade,...v()})}),[l,c,v]),C=i?(0,eF.getTransformOrigins)("center"===i?"top":i):void 0,N=(0,T.jsx)(T.Fragment,{children:c?x:(0,T.jsx)(eP.LazyMotion,{features:eA,children:(0,T.jsx)(ex.m.div,{animate:"enter",exit:"exit",initial:"initial",style:C,variants:eD.TRANSITION_VARIANTS.scaleSpringOpacity,...u,children:x})})});return(0,T.jsxs)("div",{...d(),children:[P,N]})};eO.displayName="HeroUI.PopoverContent";var ej=e.i(999661),eI=e.i(887921),eH=e.i(587030),eK=e.i(346996),eU=e.i(700864);let eW=r.default.createContext(null),eV="react-aria-focus-scope-restore",eB=null;function ez(e){var t,n,o,a,s,i,l,u,c,d;let p,v,f,g,{children:m,contain:b,restoreFocus:h,autoFocus:y}=e,E=(0,r.useRef)(null),T=(0,r.useRef)(null),w=(0,r.useRef)([]),{parentNode:x}=(0,r.useContext)(eW)||{},P=(0,r.useMemo)(()=>new e7({scopeRef:w}),[w]);(0,ej.useLayoutEffect)(()=>{let e=x||e4.root;if(e4.getTreeNode(e.scopeRef)&&eB&&!eX(eB,e.scopeRef)){let t=e4.getTreeNode(eB);t&&(e=t)}e.addChild(P),e4.addNode(P)},[P,x]),(0,ej.useLayoutEffect)(()=>{let e=e4.getTreeNode(w);e&&(e.contain=!!b)},[b]),(0,ej.useLayoutEffect)(()=>{var e;let t=null==(e=E.current)?void 0:e.nextSibling,r=[],n=e=>e.stopPropagation();for(;t&&t!==T.current;)r.push(t),t.addEventListener(eV,n),t=t.nextSibling;return w.current=r,()=>{for(let e of r)e.removeEventListener(eV,n)}},[m]),t=w,n=h,o=b,(0,ej.useLayoutEffect)(()=>{if(n||o)return;let e=t.current,r=(0,k.getOwnerDocument)(e?e[0]:void 0),a=e=>{let r=(0,M.getEventTarget)(e);e$(r,t.current)?eB=t:eY(r)||(eB=null)};return r.addEventListener("focusin",a,!1),null==e||e.forEach(e=>e.addEventListener("focusin",a,!1)),()=>{r.removeEventListener("focusin",a,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",a,!1))}},[t,n,o]),a=w,s=b,p=(0,r.useRef)(void 0),v=(0,r.useRef)(void 0),(0,ej.useLayoutEffect)(()=>{let e=a.current;if(!s){v.current&&(cancelAnimationFrame(v.current),v.current=void 0);return}let t=(0,k.getOwnerDocument)(e?e[0]:void 0),r=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!e_(a)||e.isComposing)return;let r=(0,M.getActiveElement)(t),n=a.current;if(!n||!e$(r,n))return;let o=e1(eG(n),{tabbable:!0},n);if(!r)return;o.currentNode=r;let s=e.shiftKey?o.previousNode():o.nextNode();s||(o.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,s=e.shiftKey?o.previousNode():o.nextNode()),e.preventDefault(),s&&eq(s,!0)},n=e=>{(!eB||eX(eB,a))&&e$((0,M.getEventTarget)(e),a.current)?(eB=a,p.current=(0,M.getEventTarget)(e)):e_(a)&&!eY((0,M.getEventTarget)(e),a)?p.current?p.current.focus():eB&&eB.current&&eQ(eB.current):e_(a)&&(p.current=(0,M.getEventTarget)(e))},o=e=>{v.current&&cancelAnimationFrame(v.current),v.current=requestAnimationFrame(()=>{let r=(0,eK.getInteractionModality)(),n=("virtual"===r||null===r)&&(0,I.isAndroid)()&&(0,I.isChrome)(),o=(0,M.getActiveElement)(t);
7if(!n&&o&&e_(a)&&!eY(o,a)){eB=a;let t=(0,M.getEventTarget)(e);if(t&&t.isConnected){var s;p.current=t,null==(s=p.current)||s.focus()}else eB.current&&eQ(eB.current)}})};return t.addEventListener("keydown",r,!1),t.addEventListener("focusin",n,!1),null==e||e.forEach(e=>e.addEventListener("focusin",n,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",o,!1)),()=>{t.removeEventListener("keydown",r,!1),t.removeEventListener("focusin",n,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",n,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",o,!1))}},[a,s]),(0,ej.useLayoutEffect)(()=>()=>{v.current&&cancelAnimationFrame(v.current)},[v]),i=w,l=h,u=b,f=(0,r.useRef)("u">typeof document?(0,M.getActiveElement)((0,k.getOwnerDocument)(i.current?i.current[0]:void 0)):null),(0,ej.useLayoutEffect)(()=>{let e=i.current,t=(0,k.getOwnerDocument)(e?e[0]:void 0);if(!l||u)return;let r=()=>{(!eB||eX(eB,i))&&e$((0,M.getActiveElement)(t),i.current)&&(eB=i)};return t.addEventListener("focusin",r,!1),null==e||e.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",r,!1))}},[i,u]),(0,ej.useLayoutEffect)(()=>{let e=(0,k.getOwnerDocument)(i.current?i.current[0]:void 0);if(!l)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!e_(i)||t.isComposing)return;let r=e.activeElement;if(!eY(r,i)||!eZ(i))return;let n=e4.getTreeNode(i);if(!n)return;let o=n.nodeToRestore,a=e1(e.body,{tabbable:!0});a.currentNode=r;let s=t.shiftKey?a.previousNode():a.nextNode();if(o&&o.isConnected&&o!==e.body||(o=void 0,n.nodeToRestore=void 0),(!s||!eY(s,i))&&o){a.currentNode=o;do s=t.shiftKey?a.previousNode():a.nextNode();while(eY(s,i))(t.preventDefault(),t.stopPropagation(),s)?eq(s,!0):eY(o)?eq(o,!0):r.blur()}};return u||e.addEventListener("keydown",t,!0),()=>{u||e.removeEventListener("keydown",t,!0)}},[i,l,u]),(0,ej.useLayoutEffect)(()=>{var e;let t=(0,k.getOwnerDocument)(i.current?i.current[0]:void 0);if(!l)return;let r=e4.getTreeNode(i);if(r)return r.nodeToRestore=null!=(e=f.current)?e:void 0,()=>{let e=e4.getTreeNode(i);if(!e)return;let r=e.nodeToRestore,n=(0,M.getActiveElement)(t);
7if(l&&r&&(n&&eY(n,i)||n===t.body&&eZ(i))){let e=e4.clone();requestAnimationFrame(()=>{if(t.activeElement===t.body){let t=e.getTreeNode(i);for(;t;){if(t.nodeToRestore&&t.nodeToRestore.isConnected)return void e0(t.nodeToRestore);t=t.parent}for(t=e.getTreeNode(i);t;){if(t.scopeRef&&t.scopeRef.current&&e4.getTreeNode(t.scopeRef))return void e0(eJ(t.scopeRef.current,!0));t=t.parent}}})}}},[i,l]),c=w,d=y,g=r.default.useRef(d),(0,r.useEffect)(()=>{if(g.current){eB=c;let e=(0,k.getOwnerDocument)(c.current?c.current[0]:void 0);!e$((0,M.getActiveElement)(e),eB.current)&&c.current&&eQ(c.current)}g.current=!1},[c]),(0,r.useEffect)(()=>{let e=(0,M.getActiveElement)((0,k.getOwnerDocument)(w.current?w.current[0]:void 0)),t=null;if(e$(e,w.current)){for(let r of e4.traverse())r.scopeRef&&e$(e,r.scopeRef.current)&&(t=r);t===e4.getTreeNode(w)&&(eB=t.scopeRef)}},[w]),(0,ej.useLayoutEffect)(()=>()=>{var e,t,r;let n=null!=(r=null==(t=e4.getTreeNode(w))||null==(e=t.parent)?void 0:e.scopeRef)?r:null;(w===eB||eX(w,eB))&&(!n||e4.getTreeNode(n))&&(eB=n),e4.removeTreeNode(w)},[w]);let C=(0,r.useMemo)(()=>{var e;return e=w,{focusNext(t={}){var r;let n=e.current,{from:o,tabbable:a,wrap:s,accept:i}=t,l=o||(0,M.getActiveElement)((0,k.getOwnerDocument)(null!=(r=n[0])?r:void 0)),u=n[0].previousElementSibling,c=e1(eG(n),{tabbable:a,accept:i},n);c.currentNode=e$(l,n)?l:u;let d=c.nextNode();return!d&&s&&(c.currentNode=u,d=c.nextNode()),d&&eq(d,!0),d},focusPrevious(t={}){var r;let n=e.current,{from:o,tabbable:a,wrap:s,accept:i}=t,l=o||(0,M.getActiveElement)((0,k.getOwnerDocument)(null!=(r=n[0])?r:void 0)),u=n[n.length-1].nextElementSibling,c=e1(eG(n),{tabbable:a,accept:i},n);c.currentNode=e$(l,n)?l:u;let d=c.previousNode();return!d&&s&&(c.currentNode=u,d=c.previousNode()),d&&eq(d,!0),d},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=e1(eG(r),{tabbable:n,accept:o},r);a.currentNode=r[0].previousElementSibling;let s=a.nextNode();return s&&eq(s,!0),s},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,a=e1(eG(r),{tabbable:n,accept:o},r);a.currentNode=r[r.length-1].nextElementSibling;let s=a.previousNode();return s&&eq(s,!0),s}}},[]),N=(0,r.useMemo)(()=>({focusManager:C,parentNode:P}),[P,C]);return r.default.createElement(eW.Provider,{value:N},r.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:E}),m,r.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:T}))}function eG(e){return e[0].parentElement}function e_(e){let t=e4.getTreeNode(eB);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function e$(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function eY(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of e4.traverse(e4.getTreeNode(t)))if(r&&e$(e,r.current))return!0;return!1}function eX(e,t){var r;let n=null==(r=e4.getTreeNode(t))?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}
7function eq(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,eU.focusSafely)(e)}catch{}}function eJ(e,t=!0){let r=e[0].previousElementSibling,n=eG(e),o=e1(n,{tabbable:t},e);o.currentNode=r;let a=o.nextNode();return t&&!a&&((o=e1(n=eG(e),{tabbable:!1},e)).currentNode=r,a=o.nextNode()),a}function eQ(e,t=!0){eq(eJ(e,t))}function eZ(e){let t=e4.getTreeNode(eB);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function e0(e){e.dispatchEvent(new CustomEvent(eV,{bubbles:!0,cancelable:!0}))&&eq(e)}function e1(e,t,r){let n=(null==t?void 0:t.tabbable)?eI.isTabbable:eI.isFocusable,o=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,a=(0,k.getOwnerDocument)(o),s=(0,eH.createShadowTreeWalker)(a,e||a,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t||null==(o=t.from)?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:n(e)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){let t=(0,k.getOwnerWindow)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o="none"!==r&&"hidden"!==n&&"collapse"!==n;if(o){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n}=t(e);o="none"!==r&&"hidden"!==n&&"collapse"!==n}return o}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!r||"SUMMARY"===r.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!r||e$(e,r))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(s.currentNode=t.from),s}class e2{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let o=new e7({scopeRef:e});n.addChild(o),o.parent=n,this.fastMap.set(e,o),r&&(o.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&e$(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let r=new e2;for(let n of this.traverse())r.addTreeNode(n.scopeRef,null!=(t=null==(e=n.parent)?void 0:e.scopeRef)?t:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new e7({scopeRef:null}),this.fastMap.set(null,this.root)}}class e7{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let e4=new e2;var e3=e.i(648656);function e5(e){let{isSelected:t,disableAnimation:r,...n}=e;return(0,T.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...n,children:(0,T.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var e8=e.i(368274);function e9(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function e6(e){let t=(0,r.useRef)({isFocused:!1,observer:null});(0,ej.useLayoutEffect)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=(0,$.useEffectEvent)(t=>{null==e||e(t)});return(0,r.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(e9(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null==(e=t.current.observer)||e.disconnect();
7let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}e.i(454453);let te=null,tt=new Set,tr=new Map,tn=!1,to=!1,ta={Tab:!0,Escape:!0};function ts(e,t){for(let r of tt)r(e,t)}function ti(e){tn=!0,e.metaKey||!(0,I.isMac)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(te="keyboard",ts("keyboard",e))}function tl(e){te="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(tn=!0,ts("pointer",e))}function tu(e){(0,q.isVirtualClick)(e)&&(tn=!0,te="virtual")}function tc(e){e.target!==window&&e.target!==document&&e.isTrusted&&(tn||to||(te="virtual",ts("virtual",e)),tn=!1,to=!1)}function td(){tn=!1,to=!0}function tp(e){if("u"<typeof window||"u"<typeof document||tr.get((0,k.getOwnerWindow)(e)))return;let t=(0,k.getOwnerWindow)(e),r=(0,k.getOwnerDocument)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){tn=!0,n.apply(this,arguments)},r.addEventListener("keydown",ti,!0),r.addEventListener("keyup",ti,!0),r.addEventListener("click",tu,!0),t.addEventListener("focus",tc,!0),t.addEventListener("blur",td,!1),"u">typeof PointerEvent&&(r.addEventListener("pointerdown",tl,!0),r.addEventListener("pointermove",tl,!0),r.addEventListener("pointerup",tl,!0)),t.addEventListener("beforeunload",()=>{tv(e)},{once:!0}),tr.set(t,{focus:n})}let tv=(e,t)=>{let r=(0,k.getOwnerWindow)(e),n=(0,k.getOwnerDocument)(e);t&&n.removeEventListener("DOMContentLoaded",t),tr.has(r)&&(r.HTMLElement.prototype.focus=tr.get(r).focus,n.removeEventListener("keydown",ti,!0),n.removeEventListener("keyup",ti,!0),n.removeEventListener("click",tu,!0),r.removeEventListener("focus",tc,!0),r.removeEventListener("blur",td,!1),"u">typeof PointerEvent&&(n.removeEventListener("pointerdown",tl,!0),n.removeEventListener("pointermove",tl,!0),n.removeEventListener("pointerup",tl,!0)),tr.delete(r))};function tf(){return"pointer"!==te}"u">typeof document&&("loading"!==(t=(0,k.getOwnerDocument)(void 0)).readyState?tp(void 0):t.addEventListener("DOMContentLoaded",()=>{tp(void 0)}));let tg=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var tm=e=>e?"true":void 0;function tb(...e){for(var t,r,n=0,o="";n<e.length;)(t=e[n++])&&(r=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}(t))&&(o&&(o+=" "),o+=r);return o}var th=new Map;function ty(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let e in n){let r=t[e],o=n[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=function(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}(r,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof o?t[e]=tb(r,o):"id"===e&&r&&o?t.id=function(e,t){if(e===t)return e;let r=th.get(e);if(r)return r.forEach(e=>e.current=t),t;let n=th.get(t);return n?(n.forEach(t=>t.current=e),e):t}(r,o):t[e]=void 0!==o?o:r}}return t}let tE=new WeakMap;var tT=e.i(720246),tw=e.i(512677),tx=e.i(343027),tP=e.i(371330),tC=e.i(859530),tN=e.i(682234),tk=e.i(484656);let tM=!1,tL=0;function tS(e){"touch"===e.pointerType&&(tM=!0,setTimeout(()=>{tM=!1},50))}function tD(){if("u">typeof document)return"u">typeof PointerEvent&&document.addEventListener("pointerup",tS),tL++,()=>{!(--tL>0)&&"u">typeof PointerEvent&&document.removeEventListener("pointerup",tS)}}var tF=e.i(578602),tR=e=>{let{Component:t,slots:n,classNames:o,rendered:s,shortcut:i,description:l,isSelectable:u,isSelected:c,isDisabled:d,selectedIcon:p,startContent:v,endContent:f,disableAnimation:g,hideSelectedIcon:m,getItemProps:b,getLabelProps:h,getDescriptionProps:y,getKeyboardShortcutProps:E,getSelectedIconProps:w}=function(e){var t,n;let o=(0,a.useProviderContext)(),[s,i]=(0,e3.mapPropsVariants)(e,e8.menuItem.variantKeys),{as:l,item:u,state:c,shortcut:d,description:p,startContent:v,endContent:f,isVirtualized:g,selectedIcon:m,className:b,classNames:h,onAction:y,autoFocus:E,onPress:T,onPressStart:w,onPressUp:x,onPressEnd:N,onPressChange:L,onHoverStart:S,onHoverChange:D,onHoverEnd:F,hideSelectedIcon:R=!1,isReadOnly:A=!1,closeOnSelect:O,onClose:j,onClick:I,...H}=s,K=null!=(n=null!=(t=e.disableAnimation)?t:null==o?void 0:o.disableAnimation)&&n,U=(0,r.useRef)(null),W=l||((null==H?void 0:H.href)?"a":"li"),V="string"==typeof W,{rendered:B,key:z}=u,G=c.disabledKeys.has(z)||e.isDisabled,$="none"!==c.selectionManager.selectionMode,Y=(0,tF.useIsMobile)(),{isFocusVisible:q,focusProps:J}=function(e={}){var t;let{autoFocus:n=!1,isTextInput:o,within:a}=e,s=(0,r.useRef)({isFocused:!1,isFocusVisible:n||tf()}),[i,l]=(0,r.useState)(!1),[u,c]=(0,r.useState)(()=>s.current.isFocused&&s.current.isFocusVisible),d=(0,r.useCallback)(()=>c(s.current.isFocused&&s.current.isFocusVisible),[]),p=(0,r.useCallback)(e=>{s.current.isFocused=e,l(e),d()},[d]);t={isTextInput:o},tp(),(0,r.useEffect)(()=>{let e=(e,r)=>{var n;let o,a,i,l,u;n=!!(null==t?void 0:t.isTextInput),o=(0,k.getOwnerDocument)(null==r?void 0:r.target),a="u">typeof window?(0,k.getOwnerWindow)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,i="u">typeof window?(0,k.getOwnerWindow)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l="u">typeof window?(0,k.getOwnerWindow)(null==r?void 0:r.target).HTMLElement:HTMLElement,u="u">typeof window?(0,k.getOwnerWindow)(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent,(n=n||o.activeElement instanceof a&&!tg.has(o.activeElement.type)||o.activeElement instanceof i||o.activeElement instanceof l&&o.activeElement.isContentEditable)&&"keyboard"===e&&r instanceof u&&!ta[r.key]||(e=>{s.current.isFocusVisible=e,d()})(tf())};return tt.add(e),()=>{tt.delete(e)}},[]);let{focusProps:v}=function(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:a}=e,s=(0,r.useCallback)(e=>{if(e.target===e.currentTarget)return o&&o(e),a&&a(!1),!0},[o,a]),i=e6(s),l=(0,r.useCallback)(e=>{let t=(0,k.getOwnerDocument)(e.target),r=t?(0,M.getActiveElement)(t):(0,M.getActiveElement)();e.target===e.currentTarget&&r===(0,M.getEventTarget)(e.nativeEvent)&&(n&&n(e),a&&a(!0),i(e))},[a,n,i]);return{focusProps:{onFocus:!t&&(n||a||o)?l:void 0,onBlur:!t&&(o||a)?s:void 0}}}({isDisabled:a,onFocusChange:p}),{focusWithinProps:f}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:a}=e,s=(0,r.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:l}=(0,_.useGlobalListeners)(),u=(0,r.useCallback)(e=>{e.currentTarget.contains(e.target)&&s.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(s.current.isFocusWithin=!1,l(),n&&n(e),a&&a(!1))},[n,a,s,l]),c=e6(u),d=(0,r.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=(0,k.getOwnerDocument)(e.target),r=(0,M.getActiveElement)(t);
7if(!s.current.isFocusWithin&&r===(0,M.getEventTarget)(e.nativeEvent)){o&&o(e),a&&a(!0),s.current.isFocusWithin=!0,c(e);let r=e.currentTarget;i(t,"focus",e=>{if(s.current.isFocusWithin&&!(0,M.nodeContains)(r,e.target)){let n=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(n,"target",{value:r}),Object.defineProperty(n,"currentTarget",{value:r}),u(e9(n))}},{capture:!0})}},[o,a,c,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:u}}}({isDisabled:!a,onFocusWithinChange:p});return{isFocused:i,isFocusVisible:u,focusProps:a?f:v}}({autoFocus:E}),{isPressed:Q,isFocused:Z,isSelected:ee,isDisabled:et,menuItemProps:er,labelProps:en,descriptionProps:eo,keyboardShortcutProps:ea}=function(e,t,r){var n,o;let{id:a,key:s,closeOnSelect:i,isVirtualized:l,"aria-haspopup":u,onPressStart:c,onPressUp:d,onPress:p,onPressChange:v,onPressEnd:f,onHoverStart:g,onHoverChange:m,onHoverEnd:b,onKeyDown:h,onKeyUp:y,onFocus:E,onFocusChange:T,onBlur:w,selectionManager:x=t.selectionManager}=e,N=!!u,k=N&&"true"===e["aria-expanded"],M=null!=(n=e.isDisabled)?n:x.isDisabled(s),L=null!=(o=e.isSelected)?o:x.isSelected(s),S=tE.get(t),D=t.collection.getItem(s),F=e.onClose||S.onClose,R=(0,X.useRouter)(),A=t=>{var r;!N&&((null==D||null==(r=D.props)?void 0:r.onAction)?D.props.onAction():e.onAction&&e.onAction(s),S.onAction&&(0,S.onAction)(s),t.target instanceof HTMLAnchorElement&&D&&R.open(t.target,t,D.props.href,D.props.routerOptions))},O="menuitem";N||("single"===x.selectionMode?O="menuitemradio":"multiple"===x.selectionMode&&(O="menuitemcheckbox"));let j=(0,tT.useSlotId)(),I=(0,tT.useSlotId)(),H=(0,tT.useSlotId)(),K={id:a,"aria-disabled":M||void 0,role:O,"aria-label":e["aria-label"],"aria-labelledby":j,"aria-describedby":[I,H].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":u,"aria-expanded":e["aria-expanded"]};"none"===x.selectionMode||N||(K["aria-checked"]=L),l&&(K["aria-posinset"]=null==D?void 0:D.index,K["aria-setsize"]=(0,tw.getItemCount)(t.collection));let U=()=>{!N&&F&&(null!=i?i:"multiple"!==x.selectionMode||x.isLink(s))&&F()},{itemProps:W,isFocused:V}=(0,tk.useSelectableItem)({id:a,selectionManager:x,key:s,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:S.shouldUseVirtualFocus}),{pressProps:B,isPressed:z}=(0,tx.usePress)({onPressStart:e=>{"keyboard"===e.pointerType&&A(e),null==c||c(e)},onPress:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&(A(e),U()),null==p||p(e)},onPressUp:e=>{"mouse"===e.pointerType&&(A(e),U()),null==d||d(e)},onPressChange:v,onPressEnd:f,isDisabled:M}),{hoverProps:G}=(0,tP.useHover)({isDisabled:M,onHoverStart(e){(0,eK.isFocusVisible)()||k&&u||(x.setFocused(!0),x.setFocusedKey(s)),null==g||g(e)},onHoverChange:m,onHoverEnd:b}),{keyboardProps:_}=(0,tC.useKeyboard)({onKeyDown:e=>{if(e.repeat)return void e.continuePropagation();switch(e.key){case" ":M||"none"!==x.selectionMode||N||!1===i||!F||F();break;case"Enter":M||!1===i||N||!F||F();break;default:N||e.continuePropagation(),null==h||h(e)}},onKeyUp:y}),{focusProps:$}=(0,tN.useFocus)({onBlur:w,onFocus:E,onFocusChange:T}),Y=(0,P.filterDOMProps)(null==D?void 0:D.props);delete Y.id;let q=(0,X.useLinkProps)(null==D?void 0:D.props);return{menuItemProps:{...K,...(0,C.mergeProps)(Y,q,N?{onFocus:W.onFocus,"data-collection":W["data-collection"],"data-key":W["data-key"]}:W,B,G,_,$,S.shouldUseVirtualFocus||N?{onMouseDown:e=>e.preventDefault()}:void 0),tabIndex:null!=W.tabIndex&&k&&!S.shouldUseVirtualFocus?-1:W.tabIndex},labelProps:{id:j},descriptionProps:{id:I},keyboardShortcutProps:{id:H},isFocused:V,isFocusVisible:V&&x.isFocused&&(0,eK.isFocusVisible)()&&!k,isSelected:L,isPressed:z,isDisabled:M}}({key:z,onClose:j,isDisabled:G,onPress:(0,r.useCallback)(e=>{null==I||I(e),null==T||T(e)},[I,T]),onPressStart:w,onPressUp:x,onPressEnd:N,onPressChange:L,"aria-label":s["aria-label"],closeOnSelect:O,isVirtualized:g,onAction:y},c,U),{hoverProps:es,isHovered:ei}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:o,isDisabled:a}
7=e,[s,i]=(0,r.useState)(!1),l=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(tD,[]);let{addGlobalListener:u,removeAllGlobalListeners:c}=(0,_.useGlobalListeners)(),{hoverProps:d,triggerHoverEnd:p}=(0,r.useMemo)(()=>{let e=(e,t)=>{let r=l.target;l.pointerType="",l.target=null,"touch"!==t&&l.isHovered&&r&&(l.isHovered=!1,c(),o&&o({type:"hoverend",target:r,pointerType:t}),n&&n(!1),i(!1))},r={};return"u">typeof PointerEvent&&(r.onPointerEnter=r=>{tM&&"mouse"===r.pointerType||((r,o)=>{if(l.pointerType=o,a||"touch"===o||l.isHovered||!r.currentTarget.contains(r.target))return;l.isHovered=!0;let s=r.currentTarget;l.target=s,u((0,k.getOwnerDocument)(r.target),"pointerover",t=>{l.isHovered&&l.target&&!(0,M.nodeContains)(l.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:s,pointerType:o}),n&&n(!0),i(!0)})(r,r.pointerType)},r.onPointerLeave=t=>{!a&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:r,triggerHoverEnd:e}},[t,n,o,a,l,u,c]);return(0,r.useEffect)(()=>{a&&p({currentTarget:l.target},l.pointerType)},[a]),{hoverProps:d,isHovered:s}}({isDisabled:et,onHoverStart(e){tf()||(c.selectionManager.setFocused(!0),c.selectionManager.setFocusedKey(z)),null==S||S(e)},onHoverChange:D,onHoverEnd:F}),el=er,eu=(0,r.useMemo)(()=>(0,e8.menuItem)({...i,isDisabled:et,disableAnimation:K,hasTitleTextChild:"string"==typeof B,hasDescriptionTextChild:"string"==typeof p}),[function(e){if(!e||"object"!=typeof e)return"";try{return JSON.stringify(e)}catch{return""}}(i),et,K,B,p]),ec=tb(null==h?void 0:h.base,b);A&&(el=function(e){for(let t in e)t.startsWith("on")&&delete e[t];return e}(el));let ed=(0,r.useCallback)((e={})=>({"aria-hidden":tm(!0),"data-disabled":tm(et),className:eu.selectedIcon({class:null==h?void 0:h.selectedIcon}),...e}),[et,eu,h]);return{Component:W,domRef:U,slots:eu,classNames:h,isSelectable:$,isSelected:ee,isDisabled:et,rendered:B,shortcut:d,description:p,startContent:v,endContent:f,selectedIcon:m,disableAnimation:K,getItemProps:(e={})=>({ref:U,...ty(A?{}:J,(0,eg.filterDOMProps)(H,{enabled:V}),el,es,e),"data-focus":tm(Z),"data-selectable":tm($),"data-hover":tm(Y?ei||Q:ei),"data-disabled":tm(et),"data-selected":tm(ee),"data-pressed":tm(Q),"data-focus-visible":tm(q),className:eu.base({class:tb(ec,e.className)})}),getLabelProps:(e={})=>({...ty(en,e),className:eu.title({class:null==h?void 0:h.title})}),hideSelectedIcon:R,getDescriptionProps:(e={})=>({...ty(eo,e),className:eu.description({class:null==h?void 0:h.description})}),getKeyboardShortcutProps:(e={})=>({...ty(ea,e),className:eu.shortcut({class:null==h?void 0:h.shortcut})}),getSelectedIconProps:ed}}(e),x=(0,r.useMemo)(()=>{let e=(0,T.jsx)(e5,{disableAnimation:g,isSelected:c});return"function"==typeof p?p({icon:e,isSelected:c,isDisabled:d}):p||e},[p,c,d,g]);return(0,T.jsxs)(t,{...b(),children:[v,l?(0,T.jsxs)("div",{className:n.wrapper({class:null==o?void 0:o.wrapper}),children:[(0,T.jsx)("span",{...h(),children:s}),(0,T.jsx)("span",{...y(),children:l})]}):(0,T.jsx)("span",{...h(),children:s}),i&&(0,T.jsx)("kbd",{...E(),children:i}),u&&!m&&(0,T.jsx)("span",{...w(),children:x}),f]})};tR.displayName="HeroUI.MenuItem";var tA=e.i(714060),tO=(0,e3.forwardRef)(({item:e,state:t,as:n,variant:o,color:a,disableAnimation:s,onAction:i,closeOnSelect:l,className:u,classNames:c,showDivider:d=!1,hideSelectedIcon:p,dividerProps:v={},itemClasses:f,title:g,...m},b)=>{let h=(0,r.useMemo)(()=>(0,e8.menuSection)(),[]),y=tb(null==c?void 0:c.base,u),E=tb(null==c?void 0:c.divider,null==v?void 0:v.className),{itemProps:w,headingProps:x,groupProps:P}=function(e){let{heading:t,"aria-label":r}=e,n=(0,tT.useId)();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}({heading:e.rendered,"aria-label":e["aria-label"]});return(0,T.jsxs)(n||"li",{"data-slot":"base",...ty(w,m),className:h.base({class:y}),children:[e.rendered&&(0,T.jsx)("span",{...x,className:h.heading({class:null==c?void 0:c.heading}),"data-slot":"heading",children:e.rendered}),(0,T.jsxs)("ul",{...P,className:h.group({class:null==c?void 0:c.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(e=>{let{key:r,props:n}=e,u=(0,T.jsx)(tR,{classNames:f,closeOnSelect:l,color:a,disableAnimation:s,hideSelectedIcon:p,item:e,state:t,variant:o,onAction:i,...n},r);return e.wrapper&&(u=e.wrapper(u)),u}),d&&(0,T.jsx)(tA.Divider,{as:"li",className:h.divider({class:E}),...v})]})]})});tO.displayName="HeroUI.MenuSection";var tj=e.i(234423),tI=e.i(792476);"u">typeof window&&window.document&&window.document.createElement;var tH=e.i(75540),tK=(0,e3.forwardRef)(function(e,t){let{Component:n,state:o,closeOnSelect:s,color:i,disableAnimation:l,hideSelectedIcon:u,hideEmptyContent:c,variant:d,onClose:p,topContent:v,bottomContent:f,itemClasses:g,getBaseProps:m,getListProps:b,getEmptyContentProps:h}=function(e){var t;let n,o=(0,a.useProviderContext)(),{as:s,ref:i,variant:l,color:u,children:c,disableAnimation:d=null!=(t=null==o?void 0:o.disableAnimation)&&t,onAction:p,closeOnSelect:v,itemClasses:f,className:g,state:m,topContent:b,bottomContent:h,hideEmptyContent:y=!1,hideSelectedIcon:E=!1,emptyContent:T="No items.",menuProps:w,onClose:x,classNames:N,...k}=e,M=s||"ul",L=(n=(0,r.useRef)(null),(0,r.useImperativeHandle)(i,()=>n.current),n),S="string"==typeof M,D=(0,tI.useTreeState)({...k,...w,children:c}),F=m||D,{menuProps:R}=function(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:o,onKeyUp:a,...s}=e,i=(0,P.filterDOMProps)(e,{labelable:!0}),{listProps:l}
7=(0,tj.useSelectableList)({...s,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return tE.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:(0,C.mergeProps)(i,{onKeyDown:o,onKeyUp:a},{role:"menu",...l,onKeyDown:t=>{var r;("Escape"!==t.key||e.shouldUseVirtualFocus)&&(null==(r=l.onKeyDown)||r.call(l,t))}})}}({...k,...w,onAction:p},F,L),A=(0,r.useMemo)(()=>(0,e8.menu)({className:g}),[g]),O=tb(null==N?void 0:N.base,g);return{Component:M,state:F,variant:l,color:u,disableAnimation:d,onClose:x,topContent:b,bottomContent:h,closeOnSelect:v,className:g,itemClasses:f,getBaseProps:(e={})=>({ref:L,"data-slot":"base",className:A.base({class:O}),...(0,eg.filterDOMProps)(k,{enabled:S}),...e}),getListProps:(e={})=>({"data-slot":"list",className:A.list({class:null==N?void 0:N.list}),...R,...e}),hideEmptyContent:y,hideSelectedIcon:E,getEmptyContentProps:(e={})=>({children:T,className:A.emptyContent({class:null==N?void 0:N.emptyContent}),...e})}}({...e,ref:t}),y=(0,T.jsxs)(n,{...b(),children:[!o.collection.size&&!c&&(0,T.jsx)("li",{children:(0,T.jsx)("div",{...h()})}),[...o.collection].map(e=>{var t;let r={closeOnSelect:s,color:i,disableAnimation:l,item:e,state:o,variant:d,onClose:p,hideSelectedIcon:u,...e.props},n=(t=null==r?void 0:r.classNames,g||t?Array.from(new Set([...Object.keys(g||{}),...Object.keys(t||{})])).reduce((e,r)=>({...e,[r]:(0,tH.clsx)(null==g?void 0:g[r],null==t?void 0:t[r])}),{}):{});if("section"===e.type)return(0,T.jsx)(tO,{...r,itemClasses:n},e.key);let a=(0,T.jsx)(tR,{...r,classNames:n},e.key);return e.wrapper&&(a=e.wrapper(a)),a})]});return(0,T.jsxs)("div",{...m(),children:[v,y,f]})}),tU=(0,e3.forwardRef)(function(e,t){let{getMenuProps:r}=o();return(0,T.jsx)(eO,{children:(0,T.jsx)(ez,{contain:!0,restoreFocus:!0,children:(0,T.jsx)(tK,{...r(e,t)})})})});e.s(["DropdownMenu",()=>tU],276331);var tW=e.i(776457).BaseItem;e.s(["DropdownItem",()=>tW],508870)}]);

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.