-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path326.vg_bundle.js
1 lines (1 loc) · 60.4 KB
/
326.vg_bundle.js
1
"use strict";(self.webpackChunkcustom_vf_nextjs=self.webpackChunkcustom_vf_nextjs||[]).push([[326],{3750:(e,t,s)=>{s.d(t,{E8f:()=>i,IPg:()=>n,M_S:()=>o,Vjl:()=>r});var l=s(4405);function o(e){return(0,l.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10 12.796V3.204L4.519 8 10 12.796zm-.659.753-5.48-4.796a1 1 0 0 1 0-1.506l5.48-4.796A1 1 0 0 1 11 3.204v9.592a1 1 0 0 1-1.659.753z"}}]})(e)}function i(e){return(0,l.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6 12.796V3.204L11.481 8 6 12.796zm.659.753 5.48-4.796a1 1 0 0 0 0-1.506L6.66 2.451C6.011 1.885 5 2.345 5 3.204v9.592a1 1 0 0 0 1.659.753z"}}]})(e)}function n(e){return(0,l.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"}}]})(e)}function r(e){return(0,l.w_)({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"}}]})(e)}},902:(e,t,s)=>{s.d(t,{VS:()=>l,Yv:()=>i,Yx:()=>o,sK:()=>n});var l=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(null==t?void 0:t[e])||{}},o=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"}[e]),i=(e,t)=>{if(t.includes("-")){const[s]=t.split("-");if(s.includes(e))return!1}return!0},n=(e,t)=>{if(t.includes("-")){const[,s]=t.split("-");return`${e}-${s}`}return e}},5574:(e,t,s)=>{s.d(t,{j:()=>d});var l=s(4333);var o=s(8141),i=s(7294);function n(e){const{as:t,className:s,orientation:n,...r}=e;let a=t||"hr";"hr"===a&&"vertical"===n&&(a="div");const{separatorProps:c}=function(e){let t,s=(0,l.z)(e,{enabled:"string"==typeof e.elementType});return"vertical"===e.orientation&&(t="vertical"),"hr"!==e.elementType?{separatorProps:{...s,role:"separator","aria-orientation":t}}:{separatorProps:s}}({elementType:"string"==typeof a?a:"hr",orientation:n}),d=(0,i.useMemo)((()=>(0,o.q)({orientation:n,className:s})),[n,s]);return{Component:a,getDividerProps:(0,i.useCallback)(((e={})=>({className:d,role:"separator","data-orientation":n,...c,...r,...e})),[d,n,c,r])}}var r=s(2134),a=s(5893),c=(0,r.Gp)(((e,t)=>{const{Component:s,getDividerProps:l}=n({...e});return(0,a.jsx)(s,{ref:t,...l()})}));c.displayName="NextUI.Divider";var d=c},458:(e,t,s)=>{s.d(t,{y7:()=>o});var l={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]},o={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.7)",transition:{type:"easeOut",bounce:0,duration:.18}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:l.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:l.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:l.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:l.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:l.ease}},exit:{opacity:0,transition:{duration:.3,ease:l.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}}},9363:(e,t,s)=>{s.d(t,{X:()=>D});var l=s(5893);function o(e){const{isSelected:t,disableAnimation:s,...o}=e;return(0,l.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...o,children:(0,l.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:s?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var i=s(7294),n=s(8763),r=s(2134),a=s(8628),c=s(4333),d=s(9869),u=s(2802),p=s(262),g=s(1844),h=s(8922),y=s(9200),f=s(8103),m=s(7911);const v=new WeakMap;function b(e,t){let s=v.get(e);if(!s)throw new Error("Unknown list");return`${s.id}-option-${l=t,"string"==typeof l?l.replace(/\s*/g,""):""+l}`;var l}var K=s(8552),P=s(6344);function S(e){const[t,s]=(0,r.oe)(e,n.D9.variantKeys),{as:l,item:o,state:y,description:S,startContent:k,endContent:w,isVirtualized:M,selectedIcon:x,className:C,classNames:A,autoFocus:F,onPress:N,onClick:I,shouldHighlightOnFocus:D,hideSelectedIcon:B=!1,isReadOnly:O=!1,...E}=t,T=e.disableAnimation,L=(0,i.useRef)(null),R=l||(e.href?"a":"li"),z="string"==typeof R,{rendered:j,key:V}=o,U=y.disabledKeys.has(V)||e.isDisabled,W="none"!==y.selectionManager.selectionMode,G=(0,P.d)(),{pressProps:_,isPressed:$}=(0,K.r)({ref:L,isDisabled:U,onPress:N}),{isHovered:H,hoverProps:X}=(0,h.XI)({isDisabled:U}),{isFocusVisible:Y,focusProps:q}=(0,a.Fx)({autoFocus:F}),{isFocused:J,isSelected:Z,optionProps:Q,labelProps:ee,descriptionProps:te}=function(e,t,s){var l;let{key:o}=e,i=v.get(t);var n;let r=null!==(n=e.isDisabled)&&void 0!==n?n:t.disabledKeys.has(o);var a;let c=null!==(a=e.isSelected)&&void 0!==a?a:t.selectionManager.isSelected(o);var d;let u=null!==(d=e.shouldSelectOnPressUp)&&void 0!==d?d:null==i?void 0:i.shouldSelectOnPressUp;var p;let y=null!==(p=e.shouldFocusOnHover)&&void 0!==p?p:null==i?void 0:i.shouldFocusOnHover;var K;let P=null!==(K=e.shouldUseVirtualFocus)&&void 0!==K?K:null==i?void 0:i.shouldUseVirtualFocus;var S;let k=null!==(S=e.isVirtualized)&&void 0!==S?S:null==i?void 0:i.isVirtualized,w=(0,g.mp)(),M=(0,g.mp)(),x={role:"option","aria-disabled":r||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?c:void 0};(0,g.V5)()&&(0,g.Pf)()||(x["aria-label"]=e["aria-label"],x["aria-labelledby"]=w,x["aria-describedby"]=M);let C=t.collection.getItem(o);if(k){let e=Number(null==C?void 0:C.index);x["aria-posinset"]=Number.isNaN(e)?void 0:e+1,x["aria-setsize"]=(0,m.is)(t.collection)}let{itemProps:A,isPressed:F,isFocused:N,hasAction:I,allowsSelection:D}=(0,f.Cs)({selectionManager:t.selectionManager,key:o,ref:s,shouldSelectOnPressUp:u,allowsDifferentPressOrigin:u&&y,isVirtualized:k,shouldUseVirtualFocus:P,isDisabled:r,onAction:(null==i?void 0:i.onAction)?()=>{var e;return null==i||null===(e=i.onAction)||void 0===e?void 0:e.call(i,o)}:void 0,linkBehavior:null==i?void 0:i.linkBehavior}),{hoverProps:B}=(0,h.XI)({isDisabled:r||!y,onHoverStart(){(0,h.E)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),O=(0,g.zL)(null==C?void 0:C.props,{isLink:!!(null==C||null===(l=C.props)||void 0===l?void 0:l.href)});return delete O.id,{optionProps:{...x,...(0,g.dG)(O,A,B),id:b(t,o)},labelProps:{id:w},descriptionProps:{id:M},isFocused:N,isFocusVisible:N&&(0,h.E)(),isSelected:c,isDisabled:r,isPressed:F,allowsSelection:D,hasAction:I}}({key:V,isDisabled:U,"aria-label":t["aria-label"],isVirtualized:M},y,L);let se=Q;const le=(0,i.useMemo)((()=>(0,n.D9)({...s,isDisabled:U,disableAnimation:T})),[...Object.values(s),U,T]),oe=(0,d.W)(null==A?void 0:A.base,C);O&&(se=(0,u.Os)(se));const ie=(0,i.useMemo)((()=>!(!D||!J)||(G?H||$:H)),[H,$,J,G,D]),ne=(0,i.useCallback)(((e={})=>({"aria-hidden":(0,p.PB)(!0),"data-disabled":(0,p.PB)(U),className:le.selectedIcon({class:null==A?void 0:A.selectedIcon}),...e})),[U,le,A]);return{Component:R,domRef:L,slots:le,classNames:A,isSelectable:W,isSelected:Z,isDisabled:U,rendered:j,description:S,startContent:k,endContent:w,selectedIcon:x,hideSelectedIcon:B,disableAnimation:T,getItemProps:(e={})=>({ref:L,...(0,g.dG)({onClick:I},se,O?{}:(0,g.dG)(q,_),X,(0,c.z)(E,{enabled:z}),e),"data-selectable":(0,p.PB)(W),"data-focus":(0,p.PB)(J),"data-hover":(0,p.PB)(ie),"data-disabled":(0,p.PB)(U),"data-selected":(0,p.PB)(Z),"data-pressed":(0,p.PB)($),"data-focus-visible":(0,p.PB)(Y),className:le.base({class:(0,d.W)(oe,e.className)})}),getLabelProps:(e={})=>({...(0,g.dG)(ee,e),"data-label":(0,p.PB)(!0),className:le.title({class:null==A?void 0:A.title})}),getWrapperProps:(e={})=>({...(0,g.dG)(e),className:le.wrapper({class:null==A?void 0:A.wrapper})}),getDescriptionProps:(e={})=>({...(0,g.dG)(te,e),className:le.description({class:null==A?void 0:A.description})}),getSelectedIconProps:ne}}var k=(0,r.Gp)(((e,t)=>{const{Component:s,rendered:n,description:r,isSelectable:a,isSelected:c,isDisabled:d,selectedIcon:u,startContent:p,endContent:g,hideSelectedIcon:h,disableAnimation:y,getItemProps:f,getLabelProps:m,getWrapperProps:v,getDescriptionProps:b,getSelectedIconProps:K}=S(e),P=(0,i.useMemo)((()=>{const e=(0,l.jsx)(o,{disableAnimation:y,isSelected:c});return"function"==typeof u?u({icon:e,isSelected:c,isDisabled:d}):u||e}),[u,c,d,y]);return(0,l.jsxs)(s,{...f(),children:[p,r?(0,l.jsxs)("div",{...v(),children:[(0,l.jsx)("span",{...m(),children:n}),(0,l.jsx)("span",{...b(),children:r})]}):(0,l.jsx)("span",{...m(),children:n}),a&&!h&&(0,l.jsx)("span",{...K(),children:P}),g]})}));k.displayName="NextUI.ListboxItem";var w=k,M=s(5574),x=(0,r.Gp)((({item:e,state:t,as:s,variant:o,color:r,disableAnimation:a,className:c,classNames:u,hideSelectedIcon:p,showDivider:h=!1,dividerProps:y={},itemClasses:f,title:m,...v},b)=>{const K=s||"li",P=(0,i.useMemo)((()=>(0,n.Dk)()),[]),S=(0,d.W)(null==u?void 0:u.base,c),k=(0,d.W)(null==u?void 0:u.divider,null==y?void 0:y.className),{itemProps:x,headingProps:C,groupProps:A}=function(e){let{heading:t,"aria-label":s}=e,l=(0,g.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:l,role:"presentation"}:{},groupProps:{role:"group","aria-label":s,"aria-labelledby":t?l:void 0}}}({heading:e.rendered,"aria-label":e["aria-label"]});return(0,l.jsxs)(K,{"data-slot":"base",...(0,g.dG)(x,v),className:P.base({class:S}),children:[e.rendered&&(0,l.jsx)("span",{...C,className:P.heading({class:null==u?void 0:u.heading}),"data-slot":"heading",children:e.rendered}),(0,l.jsxs)("ul",{...A,className:P.group({class:null==u?void 0:u.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map((e=>{const{key:s,props:i}=e;let n=(0,l.jsx)(w,{classNames:f,color:r,disableAnimation:a,hideSelectedIcon:p,item:e,state:t,variant:o,...i},s);return e.wrapper&&(n=e.wrapper(n)),n})),h&&(0,l.jsx)(M.j,{as:"li",className:P.divider({class:k}),...y})]})]},e.key)}));x.displayName="NextUI.ListboxSection";var C=x,A=s(3107),F=s(1744);function N(e){const{ref:t,as:s,state:l,variant:o,color:r,onAction:a,children:u,onSelectionChange:p,disableAnimation:m,itemClasses:b,className:K,topContent:P,bottomContent:S,emptyContent:k="No items.",hideSelectedIcon:w=!1,hideEmptyContent:M=!1,shouldHighlightOnFocus:x=!1,classNames:C,...N}=e,I=s||"ul",D="string"==typeof I,B=(0,F.gy)(t),O=(0,A.n_)({...e,children:u,onSelectionChange:p}),E=l||O,{listBoxProps:T}=function(e,t,s){let l=(0,g.zL)(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||("replace"===o?"action":"override");"toggle"===o&&"action"===i&&(i="override");let{listProps:n}=(0,f._t)({...e,ref:s,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:r}=(0,h.L_)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=(0,g.Me)(e.id);v.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:c,fieldProps:d}=(0,y.N)({...e,id:a,labelElementType:"span"});return{labelProps:c,listBoxProps:(0,g.dG)(l,r,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,g.dG)(d,n)})}}({...e,onAction:a},E,B),L=(0,i.useMemo)((()=>(0,n.GI)({className:K})),[,K]),R=(0,d.W)(null==C?void 0:C.base,K);return{Component:I,state:E,variant:o,color:r,slots:L,classNames:C,topContent:P,bottomContent:S,emptyContent:k,hideEmptyContent:M,shouldHighlightOnFocus:x,hideSelectedIcon:w,disableAnimation:m,className:K,itemClasses:b,getBaseProps:(e={})=>({ref:B,"data-slot":"base",className:L.base({class:R}),...(0,c.z)(N,{enabled:D}),...e}),getListProps:(e={})=>({"data-slot":"list",className:L.list({class:null==C?void 0:C.list}),...T,...e}),getEmptyContentProps:(e={})=>({"data-slot":"empty-content",children:k,className:L.emptyContent({class:null==C?void 0:C.emptyContent}),...e})}}function I(e,t){const{Component:s,state:o,color:i,variant:n,itemClasses:r,getBaseProps:a,topContent:c,bottomContent:d,hideEmptyContent:u,hideSelectedIcon:p,shouldHighlightOnFocus:h,disableAnimation:y,getEmptyContentProps:f,getListProps:m}=N({...e,ref:t}),v=(0,l.jsxs)(s,{...m(),children:[!o.collection.size&&!u&&(0,l.jsx)("li",{children:(0,l.jsx)("div",{...f()})}),[...o.collection].map((e=>{var t;const s={color:i,item:e,state:o,variant:n,disableAnimation:y,hideSelectedIcon:p,...e.props};if("section"===e.type)return(0,l.jsx)(C,{...s,itemClasses:r},e.key);let a=(0,l.jsx)(w,{...s,classNames:(0,g.dG)(r,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:h},e.key);return e.wrapper&&(a=e.wrapper(a)),a}))]});return(0,l.jsxs)("div",{...a(),children:[c,v,d]})}I.displayName="NextUI.Listbox";var D=(0,r.Gp)(I);I.displayName="NextUI.Listbox"},8266:(e,t,s)=>{s.d(t,{R:()=>l});var l=s(7911).ck},161:(e,t,s)=>{s.d(t,{S:()=>m});var l=s(7294),o=s(3450),i=s(902),n=new WeakMap,r=[];var a=s(1844);function c(e,t){const{triggerRef:s,popoverRef:c,showArrow:d,offset:u=7,crossOffset:p=0,scrollRef:g,shouldFlip:h,boundaryElement:y,shouldCloseOnBlur:f=!0,placement:m="top",containerPadding:v,shouldCloseOnInteractOutside:b,isNonModal:K,isKeyboardDismissDisabled:P,...S}=e,k=K||!0,{overlayProps:w,underlayProps:M}=(0,o.Ir)({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:f,isDismissable:!0,isKeyboardDismissDisabled:P,shouldCloseOnInteractOutside:b||(e=>{let t=null==s?void 0:s.current;return!t||!t.contains(e)})},c),{overlayProps:x,arrowProps:C,placement:A}=(0,o.tN)({...S,shouldFlip:h,crossOffset:p,targetRef:s,overlayRef:c,isOpen:t.isOpen,scrollRef:g,boundaryElement:y,containerPadding:v,placement:(0,i.Yx)(m),offset:d?u+3:u,onClose:()=>{}});return(0,l.useEffect)((()=>{if(t.isOpen&&!k&&c.current)return function(e,t=document.body){let s=new Set(e),l=new Set,o=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))s.add(t);let t=e=>{const t=e.parentElement;if(s.has(e)||l.has(t)&&"row"!==t.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of s)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},o=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),n=t(e);if(n===NodeFilter.FILTER_ACCEPT&&i(e),n!==NodeFilter.FILTER_REJECT){let e=o.nextNode();for(;null!=e;)i(e),e=o.nextNode()}},i=e=>{var t;let s=null!=(t=n.get(e))?t:0;"true"===e.getAttribute("aria-hidden")&&0===s||(0===s&&e.setAttribute("aria-hidden","true"),l.add(e),n.set(e,s+1))};r.length&&r[r.length-1].disconnect(),o(t);let a=new MutationObserver((e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...s,...l].some((e=>e.contains(t.target)))){for(let e of t.removedNodes)e instanceof Element&&(s.delete(e),l.delete(e));for(let e of t.addedNodes)!(e instanceof HTMLElement||e instanceof SVGElement)||"true"!==e.dataset.liveAnnouncer&&"true"!==e.dataset.reactAriaTopLayer?e instanceof Element&&o(e):s.add(e)}}));a.observe(t,{childList:!0,subtree:!0});let c={observe(){a.observe(t,{childList:!0,subtree:!0})},disconnect(){a.disconnect()}};return r.push(c),()=>{a.disconnect();for(let e of l){let t=n.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),n.delete(e)):n.set(e,t-1))}c===r[r.length-1]?(r.pop(),r.length&&r[r.length-1].observe()):r.splice(r.indexOf(c),1)}}([c.current])}),[k,t.isOpen,c]),{popoverProps:(0,a.dG)(w,x),arrowProps:C,underlayProps:M,placement:A}}var d=s(1744),u=s(5698),p=s(8628),g=s(2134),h=s(4506),y=s(9869),f=s(262);function m(e){var t,s;const[n,r]=(0,g.oe)(e,h.v.variantKeys),{as:m,children:v,ref:b,state:K,triggerRef:P,scrollRef:S,defaultOpen:k,onOpenChange:w,isOpen:M,isNonModal:x=!0,shouldFlip:C=!0,containerPadding:A=12,shouldBlockScroll:F=!1,shouldCloseOnBlur:N,portalContainer:I,placement:D="top",triggerType:B="dialog",showArrow:O=!1,offset:E=7,crossOffset:T=0,boundaryElement:L,isKeyboardDismissDisabled:R,shouldCloseOnInteractOutside:z,motionProps:j,className:V,classNames:U,onClose:W,...G}=n,_=m||"div",$=(0,d.gy)(b),H=(0,l.useRef)(null),X=(0,l.useRef)(!1),Y=P||H,q=null!=(t=e.disableAnimation)&&t,J=(0,u.d)({isOpen:M,defaultOpen:k,onOpenChange:e=>{null==w||w(e),e||null==W||W()}}),Z=K||J,{popoverProps:Q,underlayProps:ee,placement:te}=c({triggerRef:Y,isNonModal:x,popoverRef:$,placement:D,offset:E,scrollRef:S,shouldCloseOnBlur:N,boundaryElement:L,crossOffset:T,shouldFlip:C,containerPadding:A,isKeyboardDismissDisabled:R,shouldCloseOnInteractOutside:z},Z),{triggerProps:se}=(0,o.IB)({type:B},Z,Y),{isFocusVisible:le,isFocused:oe,focusProps:ie}=(0,p.Fx)(),ne=(0,l.useMemo)((()=>(0,h.v)({...r})),[...Object.values(r)]),re=(0,y.W)(null==U?void 0:U.base,V),ae=(0,l.useCallback)(((e={})=>({"data-slot":"content","data-open":(0,f.PB)(Z.isOpen),"data-arrow":(0,f.PB)(O),"data-placement":(0,i.sK)(te,D),className:ne.content({class:(0,y.W)(null==U?void 0:U.content,e.className)})})),[ne,Z.isOpen,O,te,D,U]),ce=(0,l.useMemo)((()=>(0,i.Yv)(te,D)?te:D),[te,D]),de=(0,l.useCallback)((t=>{var s;let l;return"touch"!==t.pointerType||"blur"!==(null==e?void 0:e.backdrop)&&"opaque"!==(null==e?void 0:e.backdrop)?X.current=!0:l=setTimeout((()=>{X.current=!0}),100),null==(s=se.onPress)||s.call(se,t),()=>{clearTimeout(l)}}),[null==se?void 0:se.onPress]),ue=(0,l.useCallback)(((e={},t=null)=>({"data-slot":"trigger","aria-haspopup":"dialog",...(0,a.dG)(se,e),onPress:de,className:ne.trigger({class:(0,y.W)(null==U?void 0:U.trigger,e.className)}),ref:(0,a.lq)(t,Y)})),[Z,se,de,Y]),pe=(0,l.useCallback)(((e={})=>({"data-slot":"backdrop",className:ne.backdrop({class:null==U?void 0:U.backdrop}),onClick:e=>{X.current?(Z.close(),X.current=!1):e.preventDefault()},...ee,...e})),[ne,Z.isOpen,U,ee]);return(0,l.useEffect)((()=>{if(Z.isOpen&&(null==$?void 0:$.current))return(0,o.RP)([null==$?void 0:$.current])}),[Z.isOpen,$]),{state:Z,Component:_,children:v,classNames:U,showArrow:O,triggerRef:Y,placement:ce,isNonModal:x,popoverRef:$,portalContainer:I,isOpen:Z.isOpen,onClose:Z.close,disableAnimation:q,shouldBlockScroll:F,backdrop:null!=(s=e.backdrop)?s:"transparent",motionProps:j,getBackdropProps:pe,getPopoverProps:(e={})=>({ref:$,...(0,a.dG)(Q,G,e),style:(0,a.dG)(Q.style,G.style,e.style)}),getTriggerProps:ue,getDialogProps:(e={})=>({"data-slot":"base","data-open":(0,f.PB)(Z.isOpen),"data-focus":(0,f.PB)(oe),"data-arrow":(0,f.PB)(O),"data-focus-visible":(0,f.PB)(le),"data-placement":(0,i.sK)(te,D),...(0,a.dG)(ie,e),className:ne.base({class:(0,y.W)(re)}),style:{outline:"none"}}),getContentProps:ae}}},6850:(e,t,s)=>{s.d(t,{q:()=>h});var l=s(161),o=s(7294),i=s(3450),n=s(2134),r=s(7619),a=s(1844),c=s(902),d=s(458),u=s(5893),p=({children:e,motionProps:t,placement:s,disableAnimation:l,style:o={},...i})=>l?(0,u.jsx)("div",{...i,children:e}):(0,u.jsx)(r.E.div,{animate:"enter",exit:"exit",initial:"initial",style:{...o,...(0,c.VS)("center"===s?"top":s)},variants:d.y7.scaleSpringOpacity,...(0,a.dG)(i,t),children:e}),g=(0,n.Gp)(((e,t)=>{const{Component:s,state:n,children:a,placement:c,backdrop:g,portalContainer:h,disableAnimation:y,motionProps:f,isNonModal:m,getPopoverProps:v,getBackdropProps:b,getDialogProps:K,getContentProps:P}=(0,l.S)({...e,shouldCloseOnInteractOutside:void 0,ref:t}),S=o.useMemo((()=>"transparent"===g?null:y?(0,u.jsx)("div",{...b()}):(0,u.jsx)(r.E.div,{animate:"enter",exit:"exit",initial:"exit",variants:d.y7.fade,...b()})),[g,y,b]);return(0,u.jsxs)(i.aV,{portalContainer:h,children:[!m&&S,(0,u.jsx)(s,{...v(),children:(0,u.jsxs)(p,{disableAnimation:y,motionProps:f,placement:c,tabIndex:-1,...K(),children:[!m&&(0,u.jsx)(i.U4,{onDismiss:n.close}),(0,u.jsx)("div",{...P(),children:a}),(0,u.jsx)(i.U4,{onDismiss:n.close})]})})]})}));g.displayName="NextUI.FreeSoloPopover";var h=g},4819:(e,t,s)=>{s.d(t,{o:()=>u});var l=s(2134),o=s(5599),i=s(1744),n=s(2802),r=s(7294);function a(e){var t;const[s,a]=(0,l.oe)(e,o.w.variantKeys),{ref:c,as:d,children:u,className:p,style:g,size:h=40,offset:y=0,visibility:f="auto",isEnabled:m=!0,onVisibilityChange:v,...b}=s,K=d||"div",P=(0,i.gy)(c);!function(e={}){const{domRef:t,isEnabled:s=!0,overflowCheck:l="vertical",visibility:o="auto",offset:i=0,onVisibilityChange:a,updateDeps:c=[]}=e,d=(0,r.useRef)(o);(0,r.useEffect)((()=>{const e=null==t?void 0:t.current;if(!e||!s)return;const r=(t,s,l,i,r)=>{if("auto"===o){const t=`${i}${(0,n.kC)(r)}Scroll`;s&&l?(e.dataset[t]="true",e.removeAttribute(`data-${i}-scroll`),e.removeAttribute(`data-${r}-scroll`)):(e.dataset[`${i}Scroll`]=s.toString(),e.dataset[`${r}Scroll`]=l.toString(),e.removeAttribute(`data-${i}-${r}-scroll`))}else{const e=s&&l?"both":s?i:l?r:"none";e!==d.current&&(null==a||a(e),d.current=e)}},c=()=>{const t=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}];for(const{type:s,prefix:o,suffix:n}of t)if(l===s||"both"===l){const t="vertical"===s?e.scrollTop>i:e.scrollLeft>i,l="vertical"===s?e.scrollTop+e.clientHeight+i<e.scrollHeight:e.scrollLeft+e.clientWidth+i<e.scrollWidth;r(0,t,l,o,n)}},u=()=>{["top","bottom","topBottom","left","right","leftRight"].forEach((t=>{e.removeAttribute(`data-${t}-scroll`)}))};return c(),e.addEventListener("scroll",c),"auto"!==o&&(u(),"both"===o?(e.dataset.topBottomScroll=String("vertical"===l),e.dataset.leftRightScroll=String("horizontal"===l)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach((t=>{e.dataset[`${t}Scroll`]=String(o===t)})))),()=>{e.removeEventListener("scroll",c),u()}}),[...c,s,o,l,a,t])}({domRef:P,offset:y,visibility:f,isEnabled:m,onVisibilityChange:v,updateDeps:[u],overflowCheck:null!=(t=e.orientation)?t:"vertical"});const S=(0,r.useMemo)((()=>(0,o.w)({...a,className:p})),[...Object.values(a),p]);return{Component:K,styles:S,domRef:P,children:u,getBaseProps:(t={})=>{var s;return{ref:P,className:S,"data-orientation":null!=(s=e.orientation)?s:"vertical",style:{"--scroll-shadow-size":`${h}px`,...g,...t.style},...b,...t}}}}var c=s(5893),d=(0,l.Gp)(((e,t)=>{const{Component:s,children:l,getBaseProps:o}=a({...e,ref:t});return(0,c.jsx)(s,{...o(),children:l})}));d.displayName="NextUI.ScrollShadow";var u=d},5688:(e,t,s)=>{s.d(t,{v:()=>o});var l=s(5893),o=({strokeWidth:e=1.5,...t})=>(0,l.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:(0,l.jsx)("path",{d:"m6 9 6 6 6-6"})})},7817:(e,t,s)=>{s.d(t,{A:()=>d});var l=s(7611),o=s(8922),i=s(9200),n=s(8113),r=s(8103),a=s(1844),c=s(7294);function d(e,t,s){const{disallowEmptySelection:d,isDisabled:u}=e,p=(0,l.Xe)({usage:"search",sensitivity:"base"}),g=(0,c.useMemo)((()=>new r.dp(t.collection,t.disabledKeys,null,p)),[t.collection,t.disabledKeys,p]),{menuTriggerProps:h,menuProps:y}=(0,n.u4)({isDisabled:u,type:"listbox"},t,s),{typeSelectProps:f}=(0,r.ip)({keyboardDelegate:g,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKeys([e])}}),{labelProps:m,fieldProps:v,descriptionProps:b,errorMessageProps:K}=(0,i.U)({...e,labelElementType:"span"});f.onKeyDown=f.onKeyDownCapture,delete f.onKeyDownCapture;const P=(0,a.zL)(e,{labelable:!0}),S=(0,a.dG)(f,h,v),k=(0,a.Me)();return{labelProps:{...m,onClick:()=>{var t;e.isDisabled||(null==(t=s.current)||t.focus(),(0,o._w)("keyboard"))}},triggerProps:(0,a.dG)(P,{...S,onKeyDown:(0,a.tS)(S.onKeyDown,(e=>{if("single"===t.selectionMode)switch(e.key){case"ArrowLeft":{e.preventDefault();const s=t.selectedKeys.size>0?g.getKeyAbove(t.selectedKeys.values().next().value):g.getFirstKey();s&&t.setSelectedKeys([s]);break}case"ArrowRight":{e.preventDefault();const s=t.selectedKeys.size>0?g.getKeyBelow(t.selectedKeys.values().next().value):g.getFirstKey();s&&t.setSelectedKeys([s]);break}}}),e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[k,void 0!==P["aria-label"]?void 0!==P["aria-labelledby"]?P["aria-labelledby"]:S.id:S["aria-labelledby"]].join(" "),onFocus(s){t.isFocused||(e.onFocus&&e.onFocus(s),t.setFocused(!0))},onBlur(s){t.isOpen||(e.onBlur&&e.onBlur(s),t.setFocused(!1))}}),valueProps:{id:k},menuProps:{...y,disallowEmptySelection:d,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:s=>{s.currentTarget.contains(s.relatedTarget)||(e.onBlur&&e.onBlur(s),t.setFocused(!1))},onFocus:null==y?void 0:y.onFocus,"aria-labelledby":[v["aria-labelledby"],S["aria-label"]&&!v["aria-labelledby"]?S.id:null].filter(Boolean).join(" ")},descriptionProps:b,errorMessageProps:K}}},8727:(e,t,s)=>{s.d(t,{V:()=>n});var l=s(3107);var o=s(4482),i=s(7294);function n(e){const[t,s]=(0,i.useState)(!1),n=(0,o.W)(e),r=function(e){const{collection:t,disabledKeys:s,selectionManager:o,selectionManager:{setSelectedKeys:i,selectedKeys:n,selectionMode:r}}=(0,l.n_)(e),a=[],c=0!==n.size?Array.from(n).map((e=>{const s=t.getItem(e);return s||a.push(e),s})).filter(Boolean):null;return a.length,{collection:t,disabledKeys:s,selectionManager:o,selectionMode:r,selectedKeys:n,setSelectedKeys:i.bind(o),selectedItems:c}}({...e,onSelectionChange:t=>{null!=e.onSelectionChange&&("all"===t?e.onSelectionChange(new Set(r.collection.getKeys())):e.onSelectionChange(t)),"single"===e.selectionMode&&n.close()}});return{...r,...n,close(){n.close()},open(){0!==r.collection.size&&n.open()},toggle(e){0!==r.collection.size&&n.toggle(e)},isFocused:t,setFocused:s}}},6344:(e,t,s)=>{s.d(t,{d:()=>i});var l=s(6769),o=700;function i(){return!(0,l.Av)()&&"undefined"!=typeof window&&window.screen.width<=o}},8113:(e,t,s)=>{s.d(t,{H9:()=>y,iX:()=>f,u4:()=>g,x7:()=>m});var l=s(1844),o=s(7611),i=s(8922),n=s(3450),r=s(8103),a=s(8628),c=s(7911),d=s(7294);function u(e){return e&&e.__esModule?e.default:e}var p={};function g(e,t,s){let{type:r="menu",isDisabled:a,trigger:c="press"}=e,d=(0,l.Me)(),{triggerProps:g,overlayProps:h}=(0,n.IB)({type:r},t,s),y=(0,o.qb)(u(p)),{longPressProps:f}=(0,i.TA)({isDisabled:a||"longPress"!==c,accessibilityDescription:y.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),m={onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||a||t.toggle("virtual"===e.pointerType?"first":null)},onPress(e){"touch"!==e.pointerType||a||t.toggle()}};return delete g.onPress,{menuTriggerProps:{...g,..."press"===c?m:f,id:d,onKeyDown:e=>{if(!a&&("longPress"!==c||e.altKey)&&s&&s.current)switch(e.key){case"Enter":case" ":if("longPress"===c)return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...h,"aria-labelledby":d,autoFocus:t.focusStrategy||!0,onClose:t.close}}}p={"ar-AE":{longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"},"bg-BG":{longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"},"cs-CZ":{longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"},"da-DK":{longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"},"de-DE":{longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"},"el-GR":{longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"},"et-EE":{longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"},"fi-FI":{longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"},"fr-FR":{longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."},"he-IL":{longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"},"it-IT":{longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"},"ja-JP":{longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"},"ko-KR":{longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"},"lt-LT":{longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."},"lv-LV":{longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"},"nb-NO":{longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"},"ru-RU":{longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"},"sk-SK":{longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"},"sl-SI":{longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"},"tr-TR":{longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"},"uk-UA":{longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"},"zh-CN":{longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"},"zh-TW":{longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"}};const h=new WeakMap;function y(e,t,s){let{shouldFocusWrap:o=!0,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let n=(0,l.zL)(e,{labelable:!0}),{listProps:a}=(0,r._t)({...i,ref:s,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:o,linkBehavior:"override"});return h.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:(0,l.dG)(n,{role:"menu","aria-hidden":t.expandedKeys.size>0||void 0,...a,onKeyDown:e=>{"Escape"!==e.key&&a.onKeyDown(e)}})}}function f(e,t,s){var n;let{key:u,closeOnSelect:p,isVirtualized:g,"aria-haspopup":y}=e,{direction:f}=(0,o.bU)(),m=!!y,v=t.expandedKeys.has(u);var b;let K=null!==(b=e.isDisabled)&&void 0!==b?b:t.disabledKeys.has(u);var P;let S=null!==(P=e.isSelected)&&void 0!==P?P:t.selectionManager.isSelected(u),k=(0,d.useRef)(),w=(0,d.useCallback)((()=>{k.current&&(clearTimeout(k.current),k.current=void 0)}),[k]),M=(0,l.iW)((()=>{w(),t.setExpandedKeys(new Set([u]))}));(0,l.bt)((()=>()=>w()),[w]);let x=h.get(t),C=e.onClose||x.onClose,A=(0,d.useCallback)((()=>{M()}),[]),F=m?A:e.onAction||x.onAction,N=(0,l.tv)(),I=e=>{F&&F(u),e.target instanceof HTMLAnchorElement&&N.open(e.target,e)},D="menuitem";"single"===t.selectionManager.selectionMode?D="menuitemradio":"multiple"===t.selectionManager.selectionMode&&(D="menuitemcheckbox");let B=(0,l.mp)(),O=(0,l.mp)(),E=(0,l.mp)(),T={"aria-disabled":K||void 0,role:D,"aria-label":e["aria-label"],"aria-labelledby":B,"aria-describedby":[O,E].filter(Boolean).join(" ")||void 0};"none"!==t.selectionManager.selectionMode&&(T["aria-checked"]=S);let L=t.collection.getItem(u);g&&(T["aria-posinset"]=null==L?void 0:L.index,T["aria-setsize"]=(0,c.is)(t.collection)),null!=y&&(T["aria-haspopup"]=y,T["aria-expanded"]=v?"true":"false");let{itemProps:R,isFocused:z}=(0,r.Cs)({selectionManager:t.selectionManager,key:u,ref:s,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:j,isPressed:V}=(0,i.r7)({onPressStart:e=>{"keyboard"===e.pointerType&&I(e)},onPressUp:e=>{"keyboard"!==e.pointerType&&(I(e),!m&&C&&(null!=p?p:"multiple"!==t.selectionManager.selectionMode||t.selectionManager.isLink(u))&&C())},isDisabled:K||m&&t.expandedKeys.has(u)}),{hoverProps:U}=(0,i.XI)({isDisabled:K,onHoverStart(){if(!((0,i.E)()||m&&t.expandedKeys.has(u))){t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(u),u===t.selectionManager.focusedKey&&t.selectionManager.isFocused&&document.activeElement!==s.current&&(0,a.ex)(s.current)}},onHoverChange:e=>{e&&m&&!t.expandedKeys.has(u)?k.current||(k.current=setTimeout((()=>{M()}),200)):e||w()}}),{keyboardProps:W}=(0,i.v5)({onKeyDown:e=>{if(e.repeat)e.continuePropagation();else switch(e.key){case" ":K||"none"!==t.selectionManager.selectionMode||m||!1===p||!C||C();break;case"Enter":K||!1===p||m||!C||C();break;case"ArrowRight":m&&"ltr"===f?M():e.continuePropagation();break;case"ArrowLeft":m&&"rtl"===f?M():e.continuePropagation();break;default:e.continuePropagation()}}}),G=(0,l.zL)(L.props,{isLink:!!(null==L||null===(n=L.props)||void 0===n?void 0:n.href)});return delete G.id,{menuItemProps:{...T,...(0,l.dG)(G,R,j,U,W)},labelProps:{id:B},descriptionProps:{id:O},keyboardShortcutProps:{id:E},isFocused:z,isSelected:S,isPressed:V,isDisabled:K}}function m(e){let{heading:t,"aria-label":s}=e,o=(0,l.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:o,role:"presentation"}:{},groupProps:{role:"group","aria-label":s,"aria-labelledby":t?o:void 0}}}},8103:(e,t,s)=>{s.d(t,{Cs:()=>h,_t:()=>v,dp:()=>m,ip:()=>p});var l=s(3935),o=s(7294),i=s(8628),n=s(1844),r=s(8922),a=s(7611);function c(e){return(0,n.ad)()?e.altKey:e.ctrlKey}function d(e){return(0,n.V5)()?e.metaKey:e.ctrlKey}const u=1e3;function p(e){let{keyboardDelegate:t,selectionManager:s,onTypeSelect:l}=e,i=(0,o.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{let o=function(e){return 1!==e.length&&/^[A-Z]/i.test(e)?"":e}(e.key);if(!o||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "===o&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o;let n=t.getKeyForSearch(i.search,s.focusedKey);null==n&&(n=t.getKeyForSearch(i.search)),null!=n&&(s.setFocusedKey(n),l&&l(n)),clearTimeout(i.timeout),i.timeout=setTimeout((()=>{i.search=""}),u)}:null}}}function g(e){let{selectionManager:t,keyboardDelegate:s,ref:u,autoFocus:g=!1,shouldFocusWrap:h=!1,disallowEmptySelection:y=!1,disallowSelectAll:f=!1,selectOnFocus:m="replace"===t.selectionBehavior,disallowTypeAhead:v=!1,shouldUseVirtualFocus:b,allowsTabNavigation:K=!1,isVirtualized:P,scrollRef:S=u,linkBehavior:k="action"}=e,{direction:w}=(0,a.bU)(),M=(0,n.tv)(),x=(0,o.useRef)({top:0,left:0});(0,n.zX)(S,"scroll",P?null:()=>{x.current={top:S.current.scrollTop,left:S.current.scrollLeft}});const C=(0,o.useRef)(g);(0,o.useEffect)((()=>{if(C.current){let e=null;"first"===g&&(e=s.getFirstKey()),"last"===g&&(e=s.getLastKey());let l=t.selectedKeys;l.size&&(e=l.values().next().value),t.setFocused(!0),t.setFocusedKey(e),null!=e||b||(0,i.ex)(u.current)}C.current=!1}),[]);let A=(0,o.useRef)(t.focusedKey);(0,o.useEffect)((()=>{let e=(0,r.Jz)();if(t.isFocused&&null!=t.focusedKey&&(null==S?void 0:S.current)){let s=S.current.querySelector(`[data-key="${t.focusedKey}"]`);s&&"keyboard"===e&&(P||(0,n.zT)(S.current,s),(0,n.Gt)(s,{containingElement:u.current}))}t.isFocused&&null==t.focusedKey&&null!=A.current&&(0,i.ex)(u.current),A.current=t.focusedKey}),[P,S,t.focusedKey,t.isFocused,u]);let F,N={onKeyDown:e=>{if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!u.current.contains(e.target))return;const o=(s,o)=>{if(null!=s){if(t.isLink(s)&&"selection"===k&&m&&!c(e)){(0,l.flushSync)((()=>{t.setFocusedKey(s,o)}));let i=S.current.querySelector(`[data-key="${s}"]`);return void M.open(i,e)}if(t.setFocusedKey(s,o),t.isLink(s)&&"override"===k)return;e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(s):m&&!c(e)&&t.replaceSelection(s)}};switch(e.key){case"ArrowDown":if(s.getKeyBelow){var r,a;e.preventDefault();let l=null!=t.focusedKey?s.getKeyBelow(t.focusedKey):null===(r=s.getFirstKey)||void 0===r?void 0:r.call(s);null==l&&h&&(l=null===(a=s.getFirstKey)||void 0===a?void 0:a.call(s,t.focusedKey)),o(l)}break;case"ArrowUp":if(s.getKeyAbove){var p,g;e.preventDefault();let l=null!=t.focusedKey?s.getKeyAbove(t.focusedKey):null===(p=s.getLastKey)||void 0===p?void 0:p.call(s);null==l&&h&&(l=null===(g=s.getLastKey)||void 0===g?void 0:g.call(s,t.focusedKey)),o(l)}break;case"ArrowLeft":if(s.getKeyLeftOf){var v,b;e.preventDefault();let l=s.getKeyLeftOf(t.focusedKey);null==l&&h&&(l="rtl"===w?null===(v=s.getFirstKey)||void 0===v?void 0:v.call(s,t.focusedKey):null===(b=s.getLastKey)||void 0===b?void 0:b.call(s,t.focusedKey)),o(l,"rtl"===w?"first":"last")}break;case"ArrowRight":if(s.getKeyRightOf){var P,x;e.preventDefault();let l=s.getKeyRightOf(t.focusedKey);null==l&&h&&(l="rtl"===w?null===(P=s.getLastKey)||void 0===P?void 0:P.call(s,t.focusedKey):null===(x=s.getFirstKey)||void 0===x?void 0:x.call(s,t.focusedKey)),o(l,"rtl"===w?"last":"first")}break;case"Home":if(s.getFirstKey){e.preventDefault();let l=s.getFirstKey(t.focusedKey,d(e));t.setFocusedKey(l),d(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(l):m&&t.replaceSelection(l)}break;case"End":if(s.getLastKey){e.preventDefault();let l=s.getLastKey(t.focusedKey,d(e));t.setFocusedKey(l),d(e)&&e.shiftKey&&"multiple"===t.selectionMode?t.extendSelection(l):m&&t.replaceSelection(l)}break;case"PageDown":if(s.getKeyPageBelow){e.preventDefault(),o(s.getKeyPageBelow(t.focusedKey))}break;case"PageUp":if(s.getKeyPageAbove){e.preventDefault(),o(s.getKeyPageAbove(t.focusedKey))}break;case"a":d(e)&&"multiple"===t.selectionMode&&!0!==f&&(e.preventDefault(),t.selectAll());break;case"Escape":e.preventDefault(),y||t.clearSelection();break;case"Tab":if(!K){if(e.shiftKey)u.current.focus();else{let e,t,s=(0,i.QL)(u.current,{tabbable:!0});do{t=s.lastChild(),t&&(e=t)}while(t);e&&!e.contains(document.activeElement)&&(0,n.Ao)(e)}break}}},onFocus:e=>{if(t.isFocused)e.currentTarget.contains(e.target)||t.setFocused(!1);else if(e.currentTarget.contains(e.target)){if(t.setFocused(!0),null==t.focusedKey){let i=e=>{null!=e&&(t.setFocusedKey(e),m&&t.replaceSelection(e))},n=e.relatedTarget;var l,o;n&&e.currentTarget.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING?i(null!==(l=t.lastSelectedKey)&&void 0!==l?l:s.getLastKey()):i(null!==(o=t.firstSelectedKey)&&void 0!==o?o:s.getFirstKey())}else P||(S.current.scrollTop=x.current.top,S.current.scrollLeft=x.current.left);if(!P&&null!=t.focusedKey){let e=S.current.querySelector(`[data-key="${t.focusedKey}"]`);if(e){e.contains(document.activeElement)||(0,n.Ao)(e),"keyboard"===(0,r.Jz)()&&(0,n.Gt)(e,{containingElement:u.current})}}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||t.setFocused(!1)},onMouseDown(e){S.current===e.target&&e.preventDefault()}},{typeSelectProps:I}=p({keyboardDelegate:s,selectionManager:t});return v||(N=(0,n.dG)(I,N)),b||(F=null==t.focusedKey?0:-1),{collectionProps:{...N,tabIndex:F}}}function h(e){let{selectionManager:t,key:s,ref:l,shouldSelectOnPressUp:a,shouldUseVirtualFocus:u,focus:p,isDisabled:g,onAction:h,allowsDifferentPressOrigin:m,linkBehavior:v="action"}=e,b=(0,n.tv)(),K=e=>{if("keyboard"===e.pointerType&&c(e))t.toggleSelection(s);else{if("none"===t.selectionMode)return;if(t.isLink(s)){if("selection"===v)return b.open(l.current,e),void t.setSelectedKeys(t.selectedKeys);if("override"===v||"none"===v)return}"single"===t.selectionMode?t.isSelected(s)&&!t.disallowEmptySelection?t.toggleSelection(s):t.replaceSelection(s):e&&e.shiftKey?t.extendSelection(s):"toggle"===t.selectionBehavior||e&&(d(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(s):t.replaceSelection(s)}};(0,o.useEffect)((()=>{s===t.focusedKey&&t.isFocused&&!u&&(p?p():document.activeElement!==l.current&&(0,i.ex)(l.current))}),[l,s,t.focusedKey,t.childFocusStrategy,t.isFocused,u]),g=g||t.isDisabled(s);let P={};u||g?g&&(P.onMouseDown=e=>{e.preventDefault()}):P={tabIndex:s===t.focusedKey?0:-1,onFocus(e){e.target===l.current&&t.setFocusedKey(s)}};let S=t.isLink(s)&&"override"===v,k=t.isLink(s)&&"selection"!==v&&"none"!==v,w=!g&&t.canSelectItem(s)&&!S,M=(h||k)&&!g,x=M&&("replace"===t.selectionBehavior?!w:!w||t.isEmpty),C=M&&w&&"replace"===t.selectionBehavior,A=x||C,F=(0,o.useRef)(null),N=A&&w,I=(0,o.useRef)(!1),D=(0,o.useRef)(!1),B=e=>{h&&h(),k&&b.open(l.current,e)},O={};a?(O.onPressStart=e=>{F.current=e.pointerType,I.current=N,"keyboard"!==e.pointerType||A&&!f()||K(e)},m?(O.onPressUp=x?null:e=>{"keyboard"!==e.pointerType&&w&&K(e)},O.onPress=x?B:null):O.onPress=e=>{if(x||C&&"mouse"!==e.pointerType){if("keyboard"===e.pointerType&&!y())return;B(e)}else"keyboard"!==e.pointerType&&w&&K(e)}):(O.onPressStart=e=>{F.current=e.pointerType,I.current=N,D.current=x,w&&("mouse"===e.pointerType&&!x||"keyboard"===e.pointerType&&(!M||f()))&&K(e)},O.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&A&&y()||"mouse"===e.pointerType&&D.current)&&(A?B(e):w&&K(e))}),P["data-key"]=s,O.preventFocusOnPress=u;let{pressProps:E,isPressed:T}=(0,r.r7)(O),L=C?e=>{"mouse"===F.current&&(e.stopPropagation(),e.preventDefault(),B(e))}:void 0,{longPressProps:R}=(0,r.TA)({isDisabled:!N,onLongPress(e){"touch"===e.pointerType&&(K(e),t.setSelectionBehavior("toggle"))}}),z=t.isLink(s)?e=>{n.nG.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,n.dG)(P,w||x?E:{},N?R:{},{onDoubleClick:L,onDragStartCapture:e=>{"touch"===F.current&&I.current&&e.preventDefault()},onClick:z}),isPressed:T,isSelected:t.isSelected(s),isFocused:t.isFocused&&t.focusedKey===s,isDisabled:g,allowsSelection:w,hasAction:A}}function y(){let e=window.event;return"Enter"===(null==e?void 0:e.key)}function f(){let e=window.event;return" "===(null==e?void 0:e.key)||"Space"===(null==e?void 0:e.code)}class m{getNextKey(e){for(e=this.collection.getKeyAfter(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,t,s){let l=this.getItem(e);if(!l)return null;let o=l.getBoundingClientRect();do{e=t(e),l=this.getItem(e)}while(l&&s(o,l.getBoundingClientRect()));return e}isSameRow(e,t){return e.top===t.top||e.left!==t.left}isSameColumn(e,t){return e.left===t.left||e.top!==t.top}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getNextKey(e)),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,(e=>this.getPreviousKey(e)),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"rtl"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){return"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,(e=>this.getNextColumn(e,"ltr"===this.direction)),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){if("item"===this.collection.getItem(e).type&&!this.disabledKeys.has(e))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return this.ref.current.querySelector(`[data-key="${e}"]`)}getKeyPageAbove(e){let t=this.ref.current,s=this.getItem(e);if(!s)return null;if(!(0,n.a9)(t))return this.getFirstKey();let l=t.getBoundingClientRect(),o=s.getBoundingClientRect();if("horizontal"===this.orientation){let i=l.x-t.scrollLeft,n=Math.max(0,o.x-i+o.width-l.width);for(;s&&o.x-i>n;)s=null==(e=this.getKeyAbove(e))?null:this.getItem(e),o=null==s?void 0:s.getBoundingClientRect()}else{let i=l.y-t.scrollTop,n=Math.max(0,o.y-i+o.height-l.height);for(;s&&o.y-i>n;)s=null==(e=this.getKeyAbove(e))?null:this.getItem(e),o=null==s?void 0:s.getBoundingClientRect()}return null!=e?e:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,s=this.getItem(e);if(!s)return null;if(!(0,n.a9)(t))return this.getLastKey();let l=t.getBoundingClientRect(),o=s.getBoundingClientRect();if("horizontal"===this.orientation){let i=l.x-t.scrollLeft,n=Math.min(t.scrollWidth,o.x-i-o.width+l.width);for(;s&&o.x-i<n;)s=null==(e=this.getKeyBelow(e))?null:this.getItem(e),o=null==s?void 0:s.getBoundingClientRect()}else{let i=l.y-t.scrollTop,n=Math.min(t.scrollHeight,o.y-i-o.height+l.height);for(;s&&o.y-i<n;)s=null==(e=this.getKeyBelow(e))?null:this.getItem(e),o=null==s?void 0:s.getBoundingClientRect()}return null!=e?e:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let s=this.collection,l=t||this.getFirstKey();for(;null!=l;){let t=s.getItem(l),o=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(o,e))return l;l=this.getKeyBelow(l)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.orientation=t.orientation,this.direction=t.direction,this.layout=t.layout||"stack"}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical";"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function v(e){let{selectionManager:t,collection:s,disabledKeys:l,ref:i,keyboardDelegate:n}=e,r=(0,a.Xe)({usage:"search",sensitivity:"base"}),c=t.disabledBehavior,d=(0,o.useMemo)((()=>n||new m(s,"selection"===c?new Set:l,i,r)),[n,s,l,i,r,c]),{collectionProps:u}=g({...e,ref:i,selectionManager:t,keyboardDelegate:d});return{listProps:u}}},7911:(e,t,s)=>{s.d(t,{Kx:()=>p,_P:()=>g,ck:()=>n,eg:()=>y,is:()=>v,l8:()=>h});var l=s(7294);function o(e){return null}function i(e){return null!=e.hasChildItems?e.hasChildItems:!!e.childItems||!!(e.title&&l.Children.count(e.children)>0)}o.getCollectionNode=function*(e,t){let{childItems:s,title:o,children:n}=e,r=e.title||e.children,a=e.textValue||("string"==typeof r?r:"")||e["aria-label"]||"";!a&&(null==t||t.suppressTextValueWarning),yield{type:"item",props:e,rendered:r,textValue:a,"aria-label":e["aria-label"],hasChildNodes:i(e),*childNodes(){if(s)for(let e of s)yield{type:"item",value:e};else if(o){let e=[];l.Children.forEach(n,(t=>{e.push({type:"item",element:t})})),yield*e}}}};let n=o;function r(e){return null}r.getCollectionNode=function*(e){let{children:t,title:s,items:o}=e;yield{type:"section",props:e,hasChildNodes:!0,rendered:s,"aria-label":e["aria-label"],*childNodes(){if("function"==typeof t){if(!o)throw new Error("props.children was a function but props.items is missing");for(let e of o)yield{type:"item",value:e,renderer:t}}else{let e=[];l.Children.forEach(t,(t=>{e.push({type:"item",element:t})})),yield*e}}}};class a{build(e,t){return this.context=t,c((()=>this.iterateCollection(e)))}*iterateCollection(e){let{children:t,items:s}=e;if("function"==typeof t){if(!s)throw new Error("props.children was a function but props.items is missing");for(let s of e.items)yield*this.getFullNode({value:s},{renderer:t})}else{let e=[];l.Children.forEach(t,(t=>{e.push(t)}));let s=0;for(let t of e){let e=this.getFullNode({element:t,index:s},{});for(let t of e)s++,yield t}}}getKey(e,t,s,l){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${l}${t.key}`;let o=t.value;if(null!=o){var i;let e=null!==(i=o.key)&&void 0!==i?i:o.id;if(null==e)throw new Error("No key found for item");return e}return l?`${l}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,s,o){let i=e.element;if(!i&&e.value&&t&&t.renderer){let s=this.cache.get(e.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context)))return s.index=e.index,s.parentKey=o?o.key:null,void(yield s);i=t.renderer(e.value)}if(l.isValidElement(i)){let l=i.type;if("function"!=typeof l&&"function"!=typeof l.getCollectionNode){let e="function"==typeof i.type?i.type.name:i.type;throw new Error(`Unknown element <${e}> in collection.`)}let n=l.getCollectionNode(i.props,this.context),r=e.index,a=n.next();for(;!a.done&&a.value;){let l=a.value;e.index=r;let c=l.key;c||(c=l.element?null:this.getKey(i,e,t,s));let p=[...this.getFullNode({...l,key:c,index:r,wrapper:d(e.wrapper,l.wrapper)},this.getChildState(t,l),s?`${s}${i.key}`:i.key,o)];for(let t of p){if(t.value=l.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw new Error(`Unsupported type <${u(t.type)}> in <${u(o.type)}>. Only <${u(e.type)}> is supported.`);r++,yield t}a=n.next(p)}return}if(null==e.key)return;let n=this,r={type:e.type,props:e.props,key:e.key,parentKey:o?o.key:null,value:e.value,level:o?o.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:c((function*(){if(!e.hasChildNodes)return;let s=0;for(let l of e.childNodes()){null!=l.key&&(l.key=`${r.key}${l.key}`),l.index=s;let e=n.getFullNode(l,n.getChildState(t,l),r.key,r);for(let t of e)s++,yield t}}))};yield r}constructor(){this.cache=new WeakMap}}function c(e){let t=[],s=null;return{*[Symbol.iterator](){for(let e of t)yield e;s||(s=e());for(let e of s)t.push(e),yield e}}}function d(e,t){return e&&t?s=>e(t(s)):e||(t||void 0)}function u(e){return e[0].toUpperCase()+e.slice(1)}function p(e,t,s){let o=(0,l.useMemo)((()=>new a),[]),{children:i,items:n,collection:r}=e;return(0,l.useMemo)((()=>{if(r)return r;let e=o.build({children:i,items:n},s);return t(e)}),[o,i,n,r,s,t])}function g(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function h(e){return function(e,t){if(t<0)return;let s=0;for(let l of e){if(s===t)return l;s++}}(e,0)}function y(e,t,s){if(t.parentKey===s.parentKey)return t.index-s.index;let l=[...f(e,t),t],o=[...f(e,s),s],i=l.slice(0,o.length).findIndex(((e,t)=>e!==o[t]));return-1!==i?(t=l[i],s=o[i],t.index-s.index):l.findIndex((e=>e===s))>=0?1:(o.findIndex((e=>e===t)),-1)}function f(e,t){let s=[];for(;null!=(null==t?void 0:t.parentKey);)t=e.getItem(t.parentKey),s.unshift(t);return s}const m=new WeakMap;function v(e){let t=m.get(e);if(null!=t)return t;t=0;let s=l=>{for(let o of l)"section"===o.type?s(g(o,e)):t++};return s(e),m.set(e,t),t}},3107:(e,t,s)=>{s.d(t,{n_:()=>r});var l=s(6417),o=s(7294),i=s(7911);class n{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){const t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){this.keyMap=new Map,this.iterable=e;let t,s=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)s(t)};for(let t of e)s(t);let l=0;for(let[e,s]of this.keyMap)t?(t.nextKey=e,s.prevKey=t.key):(this.firstKey=e,s.prevKey=void 0),"item"===s.type&&(s.index=l++),t=s,t.nextKey=void 0;this.lastKey=null==t?void 0:t.key}}function r(e){let{filter:t}=e,s=(0,l.q)(e),r=(0,o.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),a=(0,o.useCallback)((e=>new n(t?t(e):e)),[t]),c=(0,o.useMemo)((()=>({suppressTextValueWarning:e.suppressTextValueWarning})),[e.suppressTextValueWarning]),d=(0,i.Kx)(e,a,c),u=(0,o.useMemo)((()=>new(0,l.Z)(d,s)),[d,s]);const p=(0,o.useRef)(null);return(0,o.useEffect)((()=>{if(null!=s.focusedKey&&!d.getItem(s.focusedKey)){const e=p.current.getItem(s.focusedKey),t=[...p.current.getKeys()].map((e=>{const t=p.current.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),l=[...d.getKeys()].map((e=>{const t=d.getItem(e);return"item"===t.type?t:null})).filter((e=>null!==e)),o=t.length-l.length;let i,n=Math.min(o>1?Math.max(e.index-o+1,0):e.index,l.length-1);for(;n>=0;){if(!u.isDisabled(l[n].key)){i=l[n];break}n<l.length-1?n++:(n>e.index&&(n=e.index),n--)}s.setFocusedKey(i?i.key:null)}p.current=d}),[d,u,s,s.focusedKey]),{collection:d,disabledKeys:r,selectionManager:u}}},4482:(e,t,s)=>{s.d(t,{W:()=>i});var l=s(5698),o=s(7294);function i(e){let t=(0,l.d)(e),[s,i]=(0,o.useState)(null);return{focusStrategy:s,...t,open(e=null){i(e),t.open()},toggle(e=null){i(e),t.toggle()}}}},5698:(e,t,s)=>{s.d(t,{d:()=>i});var l=s(7294),o=s(5897);function i(e){let[t,s]=(0,o.zk)(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const i=(0,l.useCallback)((()=>{s(!0)}),[s]),n=(0,l.useCallback)((()=>{s(!1)}),[s]),r=(0,l.useCallback)((()=>{s(!t)}),[s,t]);return{isOpen:t,setOpen:s,open:i,close:n,toggle:r}}},6417:(e,t,s)=>{s.d(t,{Z:()=>c,q:()=>r});var l=s(5897),o=s(7294),i=s(7911);class n extends Set{constructor(e,t,s){super(e),e instanceof n?(this.anchorKey=t||e.anchorKey,this.currentKey=s||e.currentKey):(this.anchorKey=t,this.currentKey=s)}}function r(e){let{selectionMode:t="none",disallowEmptySelection:s,allowDuplicateSelectionEvents:i,selectionBehavior:r="toggle",disabledBehavior:c="all"}=e,d=(0,o.useRef)(!1),[,u]=(0,o.useState)(!1),p=(0,o.useRef)(null),g=(0,o.useRef)(null),[,h]=(0,o.useState)(null),y=(0,o.useMemo)((()=>a(e.selectedKeys)),[e.selectedKeys]),f=(0,o.useMemo)((()=>a(e.defaultSelectedKeys,new n)),[e.defaultSelectedKeys]),[m,v]=(0,l.zk)(y,f,e.onSelectionChange),b=(0,o.useMemo)((()=>e.disabledKeys?new Set(e.disabledKeys):new Set),[e.disabledKeys]),[K,P]=(0,o.useState)(r);"replace"===r&&"toggle"===K&&"object"==typeof m&&0===m.size&&P("replace");let S=(0,o.useRef)(r);return(0,o.useEffect)((()=>{r!==S.current&&(P(r),S.current=r)}),[r]),{selectionMode:t,disallowEmptySelection:s,selectionBehavior:K,setSelectionBehavior:P,get isFocused(){return d.current},setFocused(e){d.current=e,u(e)},get focusedKey(){return p.current},get childFocusStrategy(){return g.current},setFocusedKey(e,t="first"){p.current=e,g.current=t,h(e)},selectedKeys:m,setSelectedKeys(e){!i&&function(e,t){if(e.size!==t.size)return!1;for(let s of e)if(!t.has(s))return!1;return!0}(e,m)||v(e)},disabledKeys:b,disabledBehavior:c}}function a(e,t){return e?"all"===e?"all":new n(e):t}class c{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every((e=>t.has(e))),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let s=this.collection.getItem(t);(!e||s&&(0,i.eg)(this.collection,s,e)<0)&&(e=s)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let s=this.collection.getItem(t);(!e||s&&(0,i.eg)(this.collection,s,e)>0)&&(e=s)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let t;if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new n([e],e,e);else{let s=this.state.selectedKeys,l=s.anchorKey||e;t=new n(s,l,e);for(let o of this.getKeyRange(l,s.currentKey||e))t.delete(o);for(let s of this.getKeyRange(e,l))this.canSelectItem(s)&&t.add(s)}this.state.setSelectedKeys(t)}getKeyRange(e,t){let s=this.collection.getItem(e),l=this.collection.getItem(t);return s&&l?(0,i.eg)(this.collection,s,l)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){let s=[],l=e;for(;l;){let e=this.collection.getItem(l);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&s.push(l),l===t)return s;l=this.collection.getKeyAfter(l)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t)return e;if("cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e))return void this.replaceSelection(e);if(null==(e=this.getKey(e)))return;let t=new n("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode)return;if(null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new n([e],e,e):new n;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new n;for(let s of e)if(s=this.getKey(s),null!=s&&(t.add(s),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=s=>{for(;s;){if(this.canSelectItem(s)){let l=this.collection.getItem(s);"item"===l.type&&e.push(s),l.hasChildNodes&&(this.allowsCellSelection||"item"!==l.type)&&t((0,i.l8)((0,i._P)(l,this.collection)).key)}s=this.collection.getKeyAfter(s)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new n)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let s of e)if(!t.has(s))return!1;for(let s of t)if(!e.has(s))return!1;return!0}canSelectItem(e){if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let t=this.collection.getItem(e);return!(!t||"cell"===t.type&&!this.allowsCellSelection)}isDisabled(e){return this.state.disabledKeys.has(e)&&"all"===this.state.disabledBehavior}isLink(e){var t,s;return!!(null===(s=this.collection.getItem(e))||void 0===s||null===(t=s.props)||void 0===t?void 0:t.href)}constructor(e,t,s){var l;this.collection=e,this.state=t,this.allowsCellSelection=null!==(l=null==s?void 0:s.allowsCellSelection)&&void 0!==l&&l,this._isSelectAll=null}}}}]);