PageSourceSearch

https://www.workwiseforscreen.org.uk/_next/static/immutable/chunks/2j-wrb6pl2qd9.js

js workwiseforscreen.org.uk collected 2026-10-04 05:19:09 UTC 197,840 bytes, 23 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,713897,e=>{"use strict";var t=e.i(998154),n=(0,e.i(535487).tv)({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),r=e.i(406911),l=e.i(872890),i=e.i(248406),o=(0,l.forwardRef)((e,l)=>{let{Component:o,getDividerProps:s}=function(e){var l;let i,o,{as:s,className:a,orientation:u,...c}=e,d=s||"hr";"hr"===d&&"vertical"===u&&(d="div");let{separatorProps:f}=(l={elementType:"string"==typeof d?d:"hr",orientation:u},o=(0,t.filterDOMProps)(l,{enabled:"string"==typeof l.elementType}),("vertical"===l.orientation&&(i="vertical"),"hr"!==l.elementType)?{separatorProps:{...o,role:"separator","aria-orientation":i}}:{separatorProps:o}),p=(0,r.useMemo)(()=>n({orientation:u,className:a}),[u,a]);return{Component:d,getDividerProps:(0,r.useCallback)((e={})=>({className:p,role:"separator","data-orientation":u,...f,...c,...e}),[p,u,f,c])}}({...e});return(0,i.jsx)(o,{ref:l,...s()})});o.displayName="HeroUI.Divider",e.s(["Divider",0,o],713897)},21508,e=>{"use strict";var t=[.36,.66,.4,1];e.s(["TRANSITION_VARIANTS",0,{scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},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.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:[.4,0,1,1]}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:[0,0,.2,1]}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:t}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:t}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:t}},exit:{opacity:0,transition:{duration:.3,ease:t}}},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}}}}])},219987,902754,362660,560199,407128,701290,e=>{"use strict";var t=e.i(618340),n=e.i(270678),r=e.i(380004),l=e.i(406911),i=e.i(872890),o=e.i(102121),s=e.i(713897),a=e.i(19103),u=e.i(248406),c=(0,i.forwardRef)(({item:e,state:t,as:i,variant:c,color:d,disableAnimation:f,className:p,classNames:h,hideSelectedIcon:g,showDivider:m=!1,dividerProps:v={},itemClasses:y,title:b,items:w,...E},S)=>{let x=(0,l.useMemo)(()=>(0,r.listboxSection)(),[]),P=(0,o.clsx)(null==h?void 0:h.base,p),C=(0,o.clsx)(null==h?void 0:h.divider,null==v?void 0:v.className),{itemProps:T,headingProps:M,groupProps:k}=function(e){let{heading:t,"aria-label":n}=e,r=(0,a.useId)();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}({heading:e.rendered,"aria-label":e["aria-label"]});return(0,u.jsxs)(i||"li",{"data-slot":"base",...(0,o.mergeProps)(T,E),className:x.base({class:P}),children:[e.rendered&&(0,u.jsx)("span",{...M,className:x.heading({class:null==h?void 0:h.heading}),"data-slot":"heading",children:e.rendered}),(0,u.jsxs)("ul",{...k,className:x.group({class:null==h?void 0:h.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(e=>{let{key:r,props:l}=e,i=(0,u.jsx)(n.listbox_item_default,{classNames:y,color:d,disableAnimation:f,hideSelectedIcon:g,item:e,state:t,variant:c,...l},r);return e.wrapper&&(i=e.wrapper(i)),i}),m&&(0,u.jsx)(s.Divider,{as:"li",className:x.divider({class:C}),...v})]})]},e.key)});c.displayName="HeroUI.ListboxSection";var d=e.i(606100);function f(e,t,n){let r,l=n.initialDeps??[];return()=>{var i,o,s,a;let u,c;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(u=Date.now());let d=e();if(!(d.length!==l.length||d.some((e,t)=>l[t]!==e)))return r;if(l=d,n.key&&(null==(o=n.debug)?void 0:o.call(n))&&(c=Date.now()),r=t(...d),n.key&&(null==(s=n.debug)?void 0:s.call(n))){let e=Math.round((Date.now()-u)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,l=(e,t)=>
1{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${l(t,5)} /${l(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(a=null==n?void 0:n.onChange)||a.call(n,r),r}}function p(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}let h=e=>e,g=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},m=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let l=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(l(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};let i=new r.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return void l({width:e.inlineSize,height:e.blockSize})}l(n.getBoundingClientRect())});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},v={passive:!0},y="u"<typeof window||"onscrollend"in window,b=(e,t)=>{var n,r;let l,i=e.scrollElement;if(!i)return;let o=e.targetWindow;if(!o)return;let s=0,a=e.options.useScrollendEvent&&y?()=>void 0:(n=()=>{t(s,!1)},r=e.options.isScrollingResetDelay,function(...e){o.clearTimeout(l),l=o.setTimeout(()=>n.apply(this,e),r)}),u=n=>()=>{let{horizontal:r,isRtl:l}=e.options;s=r?i.scrollLeft*(l&&-1||1):i.scrollTop,a(),t(s,n)},c=u(!0),d=u(!1);return d(),i.addEventListener("scroll",c,v),i.addEventListener("scrollend",d,v),()=>{i.removeEventListener("scroll",c),i.removeEventListener("scrollend",d)}},w=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},E=(e,{adjustments:t=0,behavior:n},r)=>{var l,i;null==(i=null==(l=r.scrollElement)?void 0:l.scrollTo)||i.call(l,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class S{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:h,rangeExtractor:g,onChange:()=>{},measureElement:w,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=f(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e
4=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let l=t-1;l>=0;l--){let t=e[l];if(n.has(t.lane))continue;let i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=f(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,n,r,l)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:l}),{key:!1}),this.getMeasurements=f(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:l},i)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let o=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let s=this.measurementsCache.slice(0,o);for(let l=o;l<e;l++){let e=r(l),o=1===this.options.lanes?s[l-1]:this.getFurthestMeasurement(s,l),a=o?o.end+this.options.gap:t+n,u=i.get(e),c="number"==typeof u?u:this.options.estimateSize(l),d=a+c,f=o?o.lane:l%this.options.lanes;s[l]={index:l,start:a,size:c,end:d,key:e,lane:f}}return this.measurementsCache=s,s},{key:!1,debug:()=>this.options.debug}),this.calculateRange=f(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n}){let r=e.length-1,l=x(0,r,t=>e[t].start,n),i=l;for(;i<r&&e[i].end<n+t;)i++;return{startIndex:l,endIndex:i}}({measurements:e,outerSize:t,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=f(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,l)=>null===r||null===l?[]:e({startIndex:r,endIndex:l,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let l=r.key,i=this.elementsCache.get(l);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(l,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=f(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,l=e.length;r<l;r++){let l=t[e[r]];n.push(l)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return p(t[x(0,t.length-1,e=>p(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>
4{let n=this.getSize(),r=this.getScrollOffset();"auto"===t&&e>=r+n&&(t="end"),"end"===t&&(e-=n);let l=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[l]:this.scrollElement[l]:0)-n,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),l=this.getScrollOffset();if("auto"===t)if(n.end>=l+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=l+this.options.scrollPaddingStart))return[l,t];t="start"}let i=n.start-this.options.scrollPaddingStart+(n.size-r)/2;switch(t){case"center":return[this.getOffsetForAlignment(i,t),t];case"end":return[this.getOffsetForAlignment(n.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(n.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let r=this.getOffsetForIndex(e,t);if(!r)return;let[l,i]=r;this._scrollToOffset(l,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=p(this.getOffsetForIndex(e,i));1>Math.abs(t-this.getScrollOffset())||this.scrollToIndex(e,{align:i,behavior:n})}else this.scrollToIndex(e,{align:i,behavior:n})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let x=(e,t,n,r)=>{for(;e<=t;){let l=(e+t)/2|0,i=n(l);if(i<r)e=l+1;else{if(!(i>r))return l;t=l-1}}return e>0?e-1:0},P="u">typeof document?l.useLayoutEffect:l.useEffect;var C=e.i(752447),T=e.i(399228),M=e.i(998154),k=e=>{var t;let{Component:r,state:s,color:a,variant:f,itemClasses:p,getBaseProps:h,topContent:g,bottomContent:v,hideEmptyContent:y,hideSelectedIcon:w,shouldHighlightOnFocus:x,disableAnimation:k,getEmptyContentProps:K,getListProps:L,scrollShadowProps:N}=e,{virtualization:I}=e;if(!I||!(0,o.isEmpty)(I)&&!I.maxListboxHeight&&!I.itemHeight)throw Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");let{maxListboxHeight:D,itemHeight:R}=I,A=Math.min(D,R*s.collection.size),O=(0,l.useRef)(null),F=(0,l.useMemo)(()=>((e,t)=>{let n=[];for(let r of e)"section"===r.type?n.push(([...r.childNodes].length+1)*t):n.push(t);return n})([...s.collection],R),[s.collection,R]),z=function(e){let t=l.useReducer(()=>({}),{})[1],n={...e,onChange:(n,r)=>{var l;r?(0,d.flushSync)(t):t(),null==(l=e.onChange)||l.call(e,n,r)}},[r]=l.useState(()=>new S(n));return r.setOptions(n),P(()=>r._didMount(),[]),P(()=>r._willUpdate()),r}({observeElementRect:m,observeElementOffset:b,scrollToFn:E,...{count:[...s.collection].length,getScrollElement:()=>O.current,estimateSize:e=>F[e]}}),j=z.getVirtualItems(),B=z.getTotalSize(),{getBaseProps:_}=function(e){var t;let[n,r]=(0,i.mapPropsVariants)(e,C.scrollShadow.variantKeys),{ref:s,as:a,children:u,className:c,style:d,size:f=40,offset:p=0,visibility:h="auto",isEnabled:g=!0,onVisibilityChange:m,...v}=n,y=(0,T.useDOMRef)(s);!function(e={}){let{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:i="auto",offset:s=0,onVisibilityChange:a,updateDeps:u=[]}=e,c=(0,l.useRef)(i);(0,l.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!n)return;let l=(t,n,r,l,s)=>{if("auto"===i){let t=`${l}${(0,o.capitalize)(s)}Scroll`;n&&r?(e.dataset[t]="true",e.removeAttribute(`data-${l}-scroll`),e.removeAttribute(`data-${s}-scroll`)):(e.dataset[`${l}Scroll`]=n.toString(),e.dataset[`${s}Scroll`]=r.toString(),e.removeAttribute(`data-${l}-${s}-scroll`))}else{let e=n&&r?"both":n?l:r?s:"none";e!==c.current&&(null==a||a(e),c.current=e)}},u=()=>{var t,n;let i=e.querySelector('ul[data-slot="list"]'),o=+(null!=(t=null==i?void 0:i.getAttribute("data-virtual-scroll-height"))?t:e.scrollHeight),a=+(null!=(n=null==i?void 0:i.getAttribute("data-virtual-scroll-top"))?n:e.scrollTop);for(let{type:t,prefix:n,suffix:i}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(r===t||"both"===r){let r="vertical"===t?a>s:e.scrollLeft>s,u="vertical"===t?a+e.clientHeight+s<o:e.scrollLeft+e.clientWidth+s<e.scrollWidth;l(t,r,u,n,i)}},d=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u,!0),"auto"!==i&&(d(),"both"===i?(e.dataset.topBottomScroll=String("vertical"===r),e.dataset.leftRightScroll=String("horizontal"===r)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(i===t)}))),()=>{e.removeEventListener("scroll",u,!0),d()}},[...u,n,i,r,a,t])}({domRef:y,offset:p,visibility:h,isEnabled:g,onVisibilityChange:m,updateDeps:[u],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let b=(0,l.useMemo)(()=>(0,C.scrollShadow)({...r,className:c}),[(0,o.objectToDeps)(r),c]);return{Component:a||"div",styles:b,domRef:y,children:u,getBaseProps:(t={})=>{var n;return{ref:y,className:b,"data-orientation":null!=(n=e.orientation)?n:"vertical",style:{"--scroll-shadow-size":`${f}px`,...d,...t.style},...v,...t}}}}({...N}),[W,V]=(0,l.useState)({isTop:!1,isBottom:!0,isMiddle:!1}),H=(0,u.jsxs)(r,{...L(),"data-virtual-scroll-height":B,"data-virtual-scroll-top":null==(t=null==O?void 0:O.current)?void 0:t.scrollTop,children:[!s.collection.size&&!y&&(0,u.jsx)("li",{children:(0,u.jsx)("div",{...K()})}),(0,u.jsx)("div",{...(0,M.filterDOMProps)(_()),ref:O,style:{height:D,overflow:"auto"},onScroll:e=>{V((e=>{if(!e||void 0===e.scrollTop||void 0===e.clientHeight||void 0===e.scrollHeight)return{isTop:!1,isBottom:!1,isMiddle:!1};let t=0===e.scrollTop,n=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:n,isMiddle:!t&&!n}})(e.target))},children:A>0&&R>0&&(0,u.jsx)("div",{style:{height:`${B}px`,width:"100%",position:"relative"},children:j.map(e=>(e=>{var t;let r=[...s.collection][e.index];if(!r)return null;let l={color:a,item:r,state:s,variant:f,disableAnimation:k,hideSelectedIcon:w,...r.props},i={position:"absolute",top:0,left:0,width:"100%",height:`${e.size}px`,transform:`translateY(${e.start}px)`};if("section"===r.type)return(0,u.jsx)(c,{...l,itemClasses:p,style:{...i,...l.style}}
4,r.key);let d=(0,u.jsx)(n.listbox_item_default,{...l,classNames:(0,o.mergeProps)(p,null==(t=r.props)?void 0:t.classNames),shouldHighlightOnFocus:x,style:{...i,...l.style}},r.key);return r.wrapper&&(d=r.wrapper(d)),d})(e))})})]});return(0,u.jsxs)("div",{...h(),children:[g,H,v]})},K=(0,i.forwardRef)(function(e,r){let{isVirtualized:l,...i}=e,s=(0,t.useListbox)({...i,ref:r}),{Component:a,state:d,color:f,variant:p,itemClasses:h,getBaseProps:g,topContent:m,bottomContent:v,hideEmptyContent:y,hideSelectedIcon:b,shouldHighlightOnFocus:w,disableAnimation:E,getEmptyContentProps:S,getListProps:x}=s;if(l)return(0,u.jsx)(k,{...e,...s});let P=(0,u.jsxs)(a,{...x(),children:[!d.collection.size&&!y&&(0,u.jsx)("li",{children:(0,u.jsx)("div",{...S()})}),[...d.collection].map(e=>{var t;let r={color:f,item:e,state:d,variant:p,disableAnimation:E,hideSelectedIcon:b,...e.props};if("section"===e.type)return(0,u.jsx)(c,{...r,itemClasses:h},e.key);let l=(0,u.jsx)(n.listbox_item_default,{...r,classNames:(0,o.mergeProps)(h,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:w},e.key);return e.wrapper&&(l=e.wrapper(l)),l})]});return(0,u.jsxs)("div",{...g(),children:[m,P,v]})});e.s(["Listbox",0,K],219987);var L=new WeakMap,N=[],I=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],D=(e,t)=>{if(t.includes("-")){let[n]=t.split("-");if(n.includes(e))return!1}return!0},R=(e,t)=>{if(t.includes("-")){let[,n]=t.split("-");return`${e}-${n}`}return e};e.s(["getArrowPlacement",0,R,"getShouldUseAxisPlacement",0,D,"getTransformOrigins",0,e=>{let 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])||{}},"toReactAriaPlacement",0,I],902754);var A=e.i(957968);function O(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}let F={top:"top",bottom:"top",left:"left",right:"left"},z={top:"bottom",bottom:"top",left:"right",right:"left"},j={top:"left",left:"top"},B={top:"height",left:"width"},_={width:"totalWidth",height:"totalHeight"},W={},V="u">typeof document?window.visualViewport:null;function H(e){var t,n,r,l,i;let o=0,s=0,a=0,u=0,c=0,d=0,f={},p=(null!=(t=null==V?void 0:V.scale)?t:1)>1;if("BODY"===e.tagName){let t=document.documentElement;a=t.clientWidth,u=t.clientHeight,o=null!=(n=null==V?void 0:V.width)?n:a,s=null!=(r=null==V?void 0:V.height)?r:u,f.top=t.scrollTop||e.scrollTop,f.left=t.scrollLeft||e.scrollLeft,V&&(c=V.offsetTop,d=V.offsetLeft)}else({width:o,height:s,top:c,left:d}=X(e,!1)),f.top=e.scrollTop,f.left=e.scrollLeft,a=o,u=s;return(0,A.isWebKit)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&p&&(f.top=0,f.left=0,c=null!=(l=null==V?void 0:V.pageTop)?l:0,d=null!=(i=null==V?void 0:V.pageLeft)?i:0),{width:o,height:s,totalWidth:a,totalHeight:u,scroll:f,top:c,left:d}}function U(e,t,n,r,l,i,o){var s;let a=null!=(s=l.scroll[e])?s:0,u=r[B[e]],c=r.scroll[F[e]]+i,d=u+r.scroll[F[e]]-i,f=t-a+o[e]-r[F[e]],p=t-a+n+o[e]-r[F[e]];return f<c?c-f:p>d?Math.max(d-p,c-f):0}function $(e){if(W[e])return W[e];let[t,n]=e.split(" "),r=F[t]||"right",l=j[r];F[n]||(n="center");let i=B[r],o=B[l];return W[e]={placement:t,crossPlacement:n,axis:r,crossAxis:l,size:i,crossSize:o},W[e]}function G(e,t,n,r,l,i,o,s,a,u){var c,d,f,p,h;let{placement:g,crossPlacement:m,axis:v,crossAxis:y,size:b,crossSize:w}=r,E={};E[y]=null!=(c=e[y])?c:0,"center"===m?E[y]+=((null!=(d=e[w])?d:0)-(null!=(f=n[w])?f:0))/2:m!==y&&(E[y]+=(null!=(p=e[w])?p:0)-(null!=(h=n[w])?h:0)),E[y]+=i;let S=e[y]-n[w]+a+u,x=e[y]+e[w]-a-u;if(E[y]=O(E[y],S,x),g===v){let n=s?o[b]:t[_[b]];E[z[v]]=Math.floor(n-e[v]+l)}else E[v]=Math.floor(e[v]+e[b]+l);return E}function q(e,t,n,r,l,i){var o,s,a;let{placement:u,axis:c,size:d}=i;return u===c?Math.max(0,n[c]-e[c]-(null!=(o=e.scroll[c])?o:0)+t[c]-(null!=(s=r[c])?s:0)-r[z[c]]-l):Math.max(0,e[d]+e[c]+e.scroll[c]-t[c]-n[c]-n[d]-(null!=(a=r[c])?a:0)-r[z[c]]-l)}function Y(e,t){let{top:n,left:r,width:l,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(l=e.offsetWidth,i=e.offsetHeight),{top:n,left:r,width:l,height:i}}function X(e,t){let{top:n,left:r,width:l,height:i}=Y(e,t),{scrollTop:o,scrollLeft:s,clientTop:a,clientLeft:u}=document.documentElement;return{top:n+o-a,left:r+s-u,width:l,height:i}}function Z(e,t,n){let r,l=window.getComputedStyle(e);
4if("fixed"===l.position)r=Y(e,n);else{r=X(e,n);let l=X(t,n),i=window.getComputedStyle(t);l.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,l.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=l.top,r.left-=l.left}return r.top-=parseInt(l.marginTop,10)||0,r.left-=parseInt(l.marginLeft,10)||0,r}function J(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}var Q=e.i(569977),ee=e.i(383142);function et(e){let{ref:t,box:n,onResize:r}=e;(0,l.useEffect)(()=>{let e=null==t?void 0:t.current;if(e)if(void 0===window.ResizeObserver)return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};else{let t=new window.ResizeObserver(e=>{e.length&&r()});return t.observe(e,{box:n}),()=>{e&&t.unobserve(e)}}},[r,t,n])}var en=e.i(890036);let er="u">typeof document?window.visualViewport:null;var el=e.i(583513),ei=e.i(241780),eo=e.i(416173),es=e.i(514476),ea=e.i(391827);function eu(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return!!t.current&&!e.composedPath().includes(t.current)}var ec=[],ed=e.i(676e3),ef=e.i(115318),ep=e.i(749855),eh=e.i(409750),eg=e.i(464095),em=e.i(759732);e.s(["usePopover",0,function(e){var t,n,r;let s=(0,eg.useProviderContext)(),[a,u]=(0,i.mapPropsVariants)(e,em.popover.variantKeys),{as:c,ref:d,children:f,state:p,triggerRef:h,scrollRef:g,defaultOpen:m,onOpenChange:v,isOpen:y,isNonModal:b=!0,shouldFlip:w=!0,containerPadding:E=12,shouldBlockScroll:S=!1,isDismissable:x=!0,shouldCloseOnBlur:P,portalContainer:C,updatePositionDeps:M,dialogProps:k,placement:K="top",triggerType:A="dialog",showArrow:j=!1,offset:B=7,crossOffset:W=0,boundaryElement:V,isKeyboardDismissDisabled:ev,shouldCloseOnInteractOutside:ey,shouldCloseOnScroll:eb,triggerAnchorPoint:ew,motionProps:eE,className:eS,classNames:ex,onClose:eP,...eC}=a,eT=(0,T.useDOMRef)(d),eM=(0,l.useRef)(null),ek=(0,l.useRef)(!1),eK=h||eM,eL=null!=(n=null!=(t=e.disableAnimation)?t:null==s?void 0:s.disableAnimation)&&n,eN=(0,ed.useOverlayTriggerState)({isOpen:y,defaultOpen:m,onOpenChange:e=>{null==v||v(e),e||null==eP||eP()}}),eI=p||eN,{popoverProps:eD,underlayProps:eR,placement:eA}=function(e,t){let{groupRef:n,triggerRef:r,popoverRef:i,showArrow:s,offset:a=7,crossOffset:u=0,scrollRef:c,shouldFlip:d,boundaryElement:f,isDismissable:p=!0,shouldCloseOnBlur:h=!0,shouldCloseOnScroll:g=!0,placement:m="top",containerPadding:v,shouldCloseOnInteractOutside:y,isNonModal:b,isKeyboardDismissDisabled:w,updatePositionDeps:E=[],...S}=e,x=null==b||b,P="SubmenuTrigger"===S.trigger,{overlayProps:C,underlayProps:T}=function(e,t){let{disableOutsideEvents:n=!0,isDismissable:r=!1,isKeyboardDismissDisabled:i=!1,isOpen:o,onClose:s,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:u}=e;(0,l.useEffect)(()=>{if(o&&!ec.includes(t))return ec.push(t),()=>{let e=ec.indexOf(t);e>=0&&ec.splice(e,1)}},[o,t]);let c=()=>{ec[ec.length-1]===t&&s&&s()};!function(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,o=(0,l.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=(0,es.useEffectEvent)(e=>{n&&eu(e,t)&&(i&&i(e),o.current.isPointerDown=!0)}),a=(0,es.useEffectEvent)(e=>{n&&n(e)});(0,l.useEffect)(()=>{let e=o.current;if(r)return;let n=t.current,l=(0,ea.getOwnerDocument)(n);if("u">typeof PointerEvent){let n=n=>{e.isPointerDown&&eu(n,t)&&a(n),e.isPointerDown=!1};return l.addEventListener("pointerdown",s,!0),l.addEventListener("click",n,!0),()=>{l.removeEventListener("pointerdown",s,!0),l.removeEventListener("click",n,!0)}}},[t,r,s,a])}({isDisabled:!(r&&o),onInteractOutside:r&&o?e=>{(!u||u(e.target))&&(ec[ec.length-1]===t&&n&&(e.stopPropagation(),e.preventDefault()),c())}:void 0,onInteractOutsideStart:e=>{(!u||u(e.target))&&(ec[ec.length-1]===t&&n&&(e.stopPropagation(),e.preventDefault()),"pressEnd"!==function(e){let t=e.current;if(!t)return"unknown";let n=(t.getAttribute("role")||"").toLowerCase(),r=t.getAttribute("aria-modal");return("dialog"===n||"alertdialog"===n)&&(null===r||"true"===r.toLowerCase())?"pressEnd":["listbox","menu","tree","grid","combobox"].includes(n)?"pressStart":"unknown"}(t)&&c())},ref:t});let{focusWithinProps:d}=(0,eo.useFocusWithin)({isDisabled:!a,onBlurWithin:e=>{!(!e.relatedTarget||(0,ei.isElementInChildOfActiveScope)(e.relatedTarget))&&(!u||u(e.relatedTarget))&&c()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||i||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),c())},...d},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}
4({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:h,isDismissable:p||P,isKeyboardDismissDisabled:w,shouldCloseOnInteractOutside:y||(e=>{var t;return!(null==(t=r.current)?void 0:t.contains(e))}),disableOutsideEvents:!x},i),{overlayProps:M,arrowProps:k,placement:K,updatePosition:D,triggerAnchorPoint:R}=function(e){var t,n,r,i;let{direction:o}=(0,en.useLocale)(),{arrowSize:s,targetRef:a,overlayRef:u,arrowRef:c,scrollRef:d=u,placement:f="bottom",containerPadding:p=12,shouldFlip:h=!0,boundaryElement:g="u">typeof document?document.body:null,offset:m=0,crossOffset:v=0,shouldUpdatePosition:y=!0,isOpen:b=!0,onClose:w,maxHeight:E,arrowBoundaryOffset:S=0}=e,[x,P]=(0,l.useState)(null),C=[y,f,u.current,a.current,null==c?void 0:c.current,d.current,p,h,g,m,v,b,o,E,S,s],T=(0,l.useRef)(null==er?void 0:er.scale);(0,l.useEffect)(()=>{b&&(T.current=null==er?void 0:er.scale)},[b]);let M=(0,l.useCallback)(()=>{var e,t,n,r,l,i;if(!1===y||!b||!u.current||!a.current||!g||(null==er?void 0:er.scale)!==T.current)return;let w=null;if(d.current&&d.current.contains(document.activeElement)){let r=null==(e=document.activeElement)?void 0:e.getBoundingClientRect(),l=d.current.getBoundingClientRect();(w={type:"top",offset:(null!=(t=null==r?void 0:r.top)?t:0)-l.top}).offset>l.height/2&&(w.type="bottom",w.offset=(null!=(n=null==r?void 0:r.bottom)?n:0)-l.bottom)}let x=u.current;!E&&u.current&&(x.style.top="0px",x.style.bottom="",x.style.maxHeight=(null!=(l=null==(r=window.visualViewport)?void 0:r.height)?l:window.innerHeight)+"px");let C=function(e){var t,n,r,l;let i,{placement:o,targetNode:s,overlayNode:a,scrollNode:u,padding:c,shouldFlip:d,boundaryElement:f,offset:p,crossOffset:h,maxHeight:g,arrowSize:m=0,arrowBoundaryOffset:v=0}=e,y=a instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!J(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!J(t);)t=t.parentElement;return t||document.documentElement}(a):document.documentElement,b=y===document.documentElement,w=window.getComputedStyle(y).position,E=b?X(s,!1):Z(s,y,!1);if(!b){let{marginTop:e,marginLeft:t}=window.getComputedStyle(s);E.top+=parseInt(e,10)||0,E.left+=parseInt(t,10)||0}let S=X(a,!0),x={top:parseInt((i=window.getComputedStyle(a)).marginTop,10)||0,bottom:parseInt(i.marginBottom,10)||0,left:parseInt(i.marginLeft,10)||0,right:parseInt(i.marginRight,10)||0};S.width+=(null!=(t=x.left)?t:0)+(null!=(n=x.right)?n:0),S.height+=(null!=(r=x.top)?r:0)+(null!=(l=x.bottom)?l:0);let P={top:u.scrollTop,left:u.scrollLeft,width:u.scrollWidth,height:u.scrollHeight},C=H(f),T=H(y),M="BODY"===f.tagName?X(y,!1):Z(y,f,!1);return"HTML"===y.tagName&&"BODY"===f.tagName&&(T.scroll.top=0,T.scroll.left=0),function(e,t,n,r,l,i,o,s,a,u,c,d,f,p,h,g){var m,v,y,b,w,E,S,x,P,C,T,M,k,K;let L,N,I,D=$(e),{size:R,crossAxis:A,crossSize:j,placement:B,crossPlacement:W}=D,V=G(t,s,n,D,c,d,u,f,h,g),H=c,Y=q(s,u,t,l,i+c,D);if(o&&r[R]>Y){let e=$(`${z[B]} ${W}`),r=G(t,s,n,e,c,d,u,f,h,g);q(s,u,t,l,i+c,e)>Y&&(D=e,V=r,H=c)}let X="bottom";"top"===D.axis?"top"===D.placement?X="top":"bottom"===D.placement&&(X="bottom"):"top"===D.crossAxis&&("top"===D.crossPlacement?X="bottom":"bottom"===D.crossPlacement&&(X="top"));let Z=U(A,V[A],n[j],s,a,i,u);V[A]+=Z;let J=(w=V,E=n.height,S=X,L=f?u.height:s[_.height],N=null!=w.top?u.top+w.top:u.top+(L-(null!=(x=w.bottom)?x:0)-E),I="top"!==S?Math.max(0,s.height+s.top+(null!=(P=s.scroll.top)?P:0)-N-((null!=(C=l.top)?C:0)+(null!=(T=l.bottom)?T:0)+i)):Math.max(0,N+E-(s.top+(null!=(M=s.scroll.top)?M:0))-((null!=(k=l.top)?k:0)+(null!=(K=l.bottom)?K:0)+i)),Math.min(s.height-2*i,I));p&&p<J&&(J=p),n.height=Math.min(n.height,J),Z=U(A,(V=G(t,s,n,D,H,d,u,f,h,g))[A],n[j],s,a,i,u),V[A]+=Z;let Q={},ee=t[A]-V[A]-l[F[A]],et=ee+.5*t[j],en=h/2+g,er="left"===F[A]?(null!=(m=l.left)?m:0)+(null!=(v=l.right)?v:0):(null!=(y=l.top)?y:0)+(null!=(b=l.bottom)?b:0),el=n[j]-er-h/2-g,ei=O(et,t[A]+h/2-(V[A]+l[F[A]]),t[A]+t[j]-h/2-(V[A]+l[F[A]]));Q[A]=O(ei,en,el),({placement:B,crossPlacement:W}=D),h?ee=Q[A]:"right"===W?ee+=t[j]:"center"===W&&(ee+=t[j]/2);let eo="left"===B||"top"===B?n[R]:0,es={x:"top"===B||"bottom"===B?ee:eo,y:"left"===B||"right"===B?ee:eo};return{position:V,maxHeight:J,arrowOffsetLeft:Q.left,arrowOffsetTop:Q.top,placement:B,triggerAnchorPoint:es}}(o,E,S,P,x,c,d,C,T,M,p,h,!!w&&"static"!==w,g,m,v)}({placement:(i=f,"rtl"===o?i.replace("start","right").replace("end","left"):i.replace("start","left").replace("end","right")),overlayNode:u.current,targetNode:a.current,scrollNode:d.current||u.current,padding:p,shouldFlip:h,boundaryElement:g,offset:m,crossOffset:v,maxHeight:E,arrowSize:null!=s?s:(null==c?void 0:c.current)?Y(c.current,!0).width:0,arrowBoundaryOffset:S});if(C.position){if(x.style.top="",x.style.bottom="",x.style.left="",x.style.right="",Object.keys(C.position).forEac
4h(e=>x.style[e]=C.position[e]+"px"),x.style.maxHeight=null!=C.maxHeight?C.maxHeight+"px":"",w&&document.activeElement&&d.current){let e=document.activeElement.getBoundingClientRect(),t=d.current.getBoundingClientRect(),n=e[w.type]-t[w.type];d.current.scrollTop+=n-w.offset}P(C)}},C);(0,ee.useLayoutEffect)(M,C),i=M,(0,ee.useLayoutEffect)(()=>(window.addEventListener("resize",i,!1),()=>{window.removeEventListener("resize",i,!1)}),[i]),et({ref:u,onResize:M}),et({ref:a,onResize:M});let k=(0,l.useRef)(!1);(0,ee.useLayoutEffect)(()=>{let e,t=()=>{k.current=!0,clearTimeout(e),e=setTimeout(()=>{k.current=!1},500),M()},n=()=>{k.current&&t()};return null==er||er.addEventListener("resize",t),null==er||er.addEventListener("scroll",n),()=>{null==er||er.removeEventListener("resize",t),null==er||er.removeEventListener("scroll",n)}},[M]);let K=(0,l.useCallback)(()=>{k.current||null==w||w()},[w,k]);return(0,Q.useCloseOnScroll)({triggerRef:a,isOpen:b,onClose:w&&K}),{overlayProps:{style:{position:x?"absolute":"fixed",top:x?void 0:0,left:x?void 0:0,zIndex:1e5,...null==x?void 0:x.position,maxHeight:null!=(t=null==x?void 0:x.maxHeight)?t:"100vh"}},placement:null!=(n=null==x?void 0:x.placement)?n:null,triggerAnchorPoint:null!=(r=null==x?void 0:x.triggerAnchorPoint)?r:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:null==x?void 0:x.arrowOffsetLeft,top:null==x?void 0:x.arrowOffsetTop}},updatePosition:M}}({...S,shouldFlip:d,crossOffset:u,targetRef:r,overlayRef:i,isOpen:t.isOpen,scrollRef:c,boundaryElement:f,containerPadding:v,placement:I(m),offset:s?a+3:a,onClose:x&&!P&&g?t.close:()=>{}});return(0,el.useSafeLayoutEffect)(()=>{E.length&&D()},E),(0,l.useEffect)(()=>{var e,r;if(t.isOpen&&i.current)if(!x)return function(e,t=document.body){let n=new Set(e),r=new Set,l=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let t=e=>{if(n.has(e)||e.parentElement&&r.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},l=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),o=t(e);if(o===NodeFilter.FILTER_ACCEPT&&i(e),o!==NodeFilter.FILTER_REJECT){let e=l.nextNode();for(;null!=e;)i(e),e=l.nextNode()}},i=e=>{var t;let n=null!=(t=L.get(e))?t:0;("true"!==e.getAttribute("aria-hidden")||0!==n)&&(0===n&&e.setAttribute("aria-hidden","true"),r.add(e),L.set(e,n+1))};N.length&&N[N.length-1].disconnect(),l(t);let o=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...r].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),r.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?n.add(e):e instanceof Element&&l(e)}});o.observe(t,{childList:!0,subtree:!0});let s={visibleNodes:n,hiddenNodes:r,observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return N.push(s),()=>{for(let e of(o.disconnect(),r)){let t=L.get(e);null!=t&&(1===t?(e.removeAttribute("aria-hidden"),L.delete(e)):L.set(e,t-1))}s===N[N.length-1]?(N.pop(),N.length&&N[N.length-1].observe()):N.splice(N.indexOf(s),1)}}([null!=(r=null==n?void 0:n.current)?r:i.current]);else{var l=null!=(e=null==n?void 0:n.current)?e:i.current;let t=N[N.length-1];return t&&!t.visibleNodes.has(l)?(t.visibleNodes.add(l),()=>{t.visibleNodes.delete(l)}):void 0}},[x,t.isOpen,i,n]),{popoverProps:(0,o.mergeProps)(C,M),arrowProps:k,underlayProps:T,placement:K,triggerAnchorPoint:R}}({triggerRef:eK,isNonModal:b,popoverRef:eT,placement:K,offset:B,scrollRef:g,isDismissable:x,shouldCloseOnBlur:P,boundaryElement:V,crossOffset:W,shouldFlip:w,containerPadding:E,updatePositionDeps:M,isKeyboardDismissDisabled:ev,shouldCloseOnScroll:eb,shouldCloseOnInteractOutside:ey,triggerAnchorPoint:ew},eI),eO=(0,l.useMemo)(()=>eA?D(eA,K)?eA:K:null,[eA,K]),{triggerProps:eF}=(0,ep.useOverlayTrigger)({type:A},eI,eK),{isFocusVisible:ez,isFocused:ej,focusProps:eB}=(0,ef.useFocusRing)(),e_=(0,l.useMemo)(()=>(0,em.popover)({...u}),[(0,o.objectToDeps)(u)]),eW=(0,o.clsx)(null==ex?void 0:ex.base,eS),eV={"--trigger-anchor-point":ew?`${ew.x}px ${ew.y}px`:void 0};(0,eh.usePreventScroll)({isDisabled:!(S&&eI.isOpen)});let eH=(0,l.useCallback)((e={})=>({"data-slot":"content","data-open":(0,o.dataAttr)(eI.isOpen),"data-arrow":(0,o.dataAttr)(j),"data-placement":eA?R(eA,K):void 0,className:e_.content({class:(0,o.clsx)(null==ex?void 0:ex.content,e.className)})}),[e_,eI.isOpen,j,eO,K,ex,eA]),eU=(0,l.useCallback)(t=>{var n;let r;return"touch"===t.pointerType&&((null==e?void 0:e.backdrop)==="blur"||(null==e?void 0:e.backdrop)==="opaque")?r=setTimeout(()=>{ek.current=!0},100):ek.current=!0,null==(n=eF.onPress)||n.call(eF,t),()=>{clearTimeout(r)}},[null==eF?void 0:eF.onPress]),e$=(0,l.useCallback)((e={},t=null)=>{let{isDisabled:n,...r}=e;return{"data-slot":"trigger",...(0,o.mergeProps)({"aria-haspopup":"dialog"},eF,r),onPress:eU,isDisabled:n,className:e_.trigger({class:(0,o.clsx)(null==ex?void 0:ex.trigger,e.className),isTriggerDisabled:n}),ref:(0,o.mergeRefs)(t,eK)}},[eI,eF,eU,eK]),eG=(0,l.useCallback)((e={})=>({"data-slot":"backdrop",className:e_.backdrop({class:null==ex?void 0:ex.backdrop}),onClick:e=>{ek.current?(eI.close(),ek.current=!1):e.preventDefault()},...eR,...e}),[e_,eI.isOpen,ex,eR]);return{state:eI,Component:c||"div",children:f,classNames:ex,showArrow:j,triggerRef:eK,placement:eO,isNonModal:b,popoverRef:eT,portalContainer:C,isOpen:eI.isOpen,onClose:eI.close,disableAnimation:eL,shouldBlockScroll:S,backdrop:null!=(r=e.backdrop)?r:"transparent",motionProps:eE,getBackdropProps:eG,getPopoverProps:(e={})=>({ref:eT,...(0,o.mergeProps)(eD,eC,e),style:(0,o.mergeProps)(eD.style,eC.style,e.style)}),getTriggerProps:e$,getDialogProps:(e={})=>({"data-slot":"base","data-open":(0,o.dataAttr)(eI.isOpen),"data-focus":(0,o.dataAttr)(ej),"data-arrow":(0,o.dataAttr)(j),"data-focus-visible":(0,o.dataAttr)(ez),"data-placement":eA?R(eA,K):void 0,...(0,o.mergeProps)(eB,k,e),className:e_.base({class:(0,o.clsx)(eW)}),style:{outline:"none",...eV}}),getContentProps:eH}}],362660);var ev={};ev={"ar-AE":{dismiss:"تجاهل"},"bg-BG":{dismiss:"Отхвърляне"},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:"Schließen"},"el-GR":{dismiss:"Απόρριψη"},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:"Lõpeta"},"fi-FI":{dismiss:"Hylkää"},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:"התעלם"},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:"Elutasítás"},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:"閉じる"},"ko-KR":{dismiss:"무시"},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:"Nerādīt"},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:"Пропустить"},"sk-SK":{dismiss:"Zrušiť"},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:"Скасувати"},"zh-CN":{dismiss:"取消"},"zh-TW":{dismiss:"關閉"}};var ey=e.i(781482),eb=e.i(550040),ew=e.i(644855);e.s(["DismissButton",0,function(e){var t;let{onDismiss:n,...r}=e,i=(0,eb.useLocalizedStringFormatter)((t=ev)&&t.__esModule?t.default:t,"@react-aria/overlays"),o=(0,ey.useLabels)(r,i.format("dismiss"));return l.default.createElement(ew.VisuallyHidden,null,l.default.createElement("button",{...o,tabIndex:-1,onClick:()=>{n&&n()},style:{width:1,height:1}}))}],560199);let eE=(0,l.createContext)({});function eS(){var e;return null!=(e=(0,l.useContext)(eE))?e:{}}e.s(["useUNSAFE_PortalContext",0,eS],407128);var ex=e.i(763340),eP=e.i(324681),eC=e.i(962010),eT=e.i(473682);function eM({children:e}){let t=(0,l.useMemo)(()=>({register:()=>{}}),[]);return l.default.createElement(ex.PressResponderContext.Provider,{value:t},e)}l.default.forwardRef(({children:e,...t},n)=>{let r=(0,l.useRef)(!1),i=(0,l.useContext)(ex.PressResponderContext);n=(0,eP.useObjectRef)(n||(null==i?void 0:i.ref));let o=(0,eC.mergeProps)(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return(0,eT.useSyncRef)(i,n),(0,l.useEffect)(()=>{r.current||(r.current=!0)},[]),l.default.createElement(ex.PressResponderContext.Provider,{value:o},e)});var ek=e.i(611782);let eK=l.default.createContext(null);e.s(["Overlay",0,function(e){let t=(0,ek.useIsSSR)(),{portalContainer:n=t?null:d
4ocument.body,isExiting:r}=e,[i,o]=(0,l.useState)(!1),s=(0,l.useMemo)(()=>({contain:i,setContain:o}),[i,o]),{getContainer:a}=eS();if(!e.portalContainer&&a&&(n=a()),!n)return null;let u=e.children;return e.disableFocusManagement||(u=l.default.createElement(ei.FocusScope,{restoreFocus:!0,contain:(e.shouldContainFocus||i)&&!r},u)),u=l.default.createElement(eK.Provider,{value:s},l.default.createElement(eM,null,u)),d.default.createPortal(u,n)},"useOverlayFocusContain",0,function(){let e=(0,l.useContext)(eK),t=null==e?void 0:e.setContain;(0,ee.useLayoutEffect)(()=>{null==t||t(!0)},[t])}],701290)},618340,646540,54087,270678,380004,e=>{"use strict";var t=e.i(122190),n=e.i(556460),r=e.i(19103),l=e.i(962010),i=e.i(416173),o=e.i(127984),s=e.i(472325),a=e.i(464095),u=e.i(759732),u=u,c=e.i(103811),d=e.i(998154),f=e.i(399228),p=e.i(406911),h=e.i(102121);e.s(["useListbox",0,function(e){var g;let m=(0,a.useProviderContext)(),{ref:v,as:y,state:b,variant:w,color:E,onAction:S,children:x,onSelectionChange:P,disableAnimation:C=null!=(g=null==m?void 0:m.disableAnimation)&&g,itemClasses:T,className:M,topContent:k,bottomContent:K,emptyContent:L="No items.",hideSelectedIcon:N=!1,hideEmptyContent:I=!1,shouldHighlightOnFocus:D=!1,classNames:R,...A}=e,O=y||"ul",F="string"==typeof O,z=(0,f.useDOMRef)(v),j=(0,c.useListState)({...e,children:x,onSelectionChange:P}),B=b||j,{listBoxProps:_}=function(e,a,u){let c=(0,n.filterDOMProps)(e,{labelable:!0}),d=e.selectionBehavior||"toggle",f=e.linkBehavior||("replace"===d?"action":"override");"toggle"===d&&"action"===f&&(f="override");let{listProps:p}=(0,s.useSelectableList)({...e,ref:u,selectionManager:a.selectionManager,collection:a.collection,disabledKeys:a.disabledKeys,linkBehavior:f}),{focusWithinProps:h}=(0,i.useFocusWithin)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),g=(0,r.useId)(e.id);t.listData.set(a,{id:g,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:f,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:m,fieldProps:v}=(0,o.useLabel)({...e,id:g,labelElementType:"span"});return{labelProps:m,listBoxProps:(0,l.mergeProps)(c,h,"multiple"===a.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,l.mergeProps)(v,p)})}}({...e,onAction:S},B,z),W=(0,p.useMemo)(()=>(0,u.menu)(),[]),V=(0,h.clsx)(null==R?void 0:R.base,M);return{Component:O,state:B,variant:w,color:E,slots:W,classNames:R,topContent:k,bottomContent:K,emptyContent:L,hideEmptyContent:I,shouldHighlightOnFocus:D,hideSelectedIcon:N,disableAnimation:C,className:M,itemClasses:T,getBaseProps:(e={})=>({ref:z,"data-slot":"base",className:W.base({class:V}),...(0,d.filterDOMProps)(A,{enabled:F}),...e}),getListProps:(e={})=>({"data-slot":"list",className:W.list({class:null==R?void 0:R.list}),..._,...e}),getEmptyContentProps:(e={})=>({"data-slot":"empty-content",children:L,className:W.emptyContent({class:null==R?void 0:R.emptyContent}),...e})}}],618340);var g=e.i(248406);function m(e){let{isSelected:t,disableAnimation:n,...r}=e;return(0,g.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...r,children:(0,g.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:n?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var v=u,y=e.i(872890),b=e.i(115318),w=e.i(957968),E=e.i(188443),S=e.i(278096);let x=new WeakMap;function P(e){let t=x.get(e);if(null!=t)return t;let n=0,r=t=>{for(let l of t)if("section"===l.type)r("function"==typeof e.getChildren?e.getChildren(l.key):l.childNodes);else"item"===l.type&&n++};return r(e),x.set(e,n),n}e.s(["getItemCount",0,P],646540);var C=e.i(299550),T=e.i(160990),M=e.i(637506),k=e.i(389818),K=e.i(611782);function L(){return!((0,K.useIsSSR)()||"u"<typeof window)&&window.screen.width<=700}e.s(["useIsMobile",0,L],54087);var N=e=>{let{Component:i,rendered:o,description:s,isSelectable:u,isSelected:c,isDisabled:f,selectedIcon:x,startContent:K,endContent:N,hideSelectedIcon:I,disableAnimation:D,getItemProps:R,getLabelProps:A,getWrapperProps:O,getDescriptionProps:F,getSelectedIconProps:z}=function(e){var i,o;let s=(0,a.useProviderContext)(),[u,c]=(0,y.mapPropsVariants)(e,v.menuItem.variantKeys),{as:f,item:g,state:m,description:x,startContent:K,endContent:N,isVirtualized:I,selectedIcon:D,className:R,classNames:A,autoFocus:O,onPress:F,onPressUp:z,onPressStart:j,onPressEnd:B,onPressChange:_,onClick:W,shouldHighlightOnFocus:V,hideSelectedIcon:H=!1,isReadOnly:U=!1,...$}=u,G=null!=(o=null!=(i=e.disableAnimation)?i:null==s?void 0:s.disableAnimation)&&o,q=(0,p.useRef)(null),Y=f||(e.href?"a":"li"),X="string"==typeof Y,{rendered:Z,key:J}=g,Q=m.disabledKeys.has(J)||e.isDisabled,ee="none"!==m.selectionManager.selectionMode,et=L(),{pressProps:en,isPressed:er}=(0,k.usePress)({ref:q,isDisabled:Q,onClick:W,onPress:F,onPressUp:z,onPressStart:j,onPressEnd:B,onPressChange:_}),{isHovered:el,hoverProps:ei}=(0,C.useHover)({isDisabled:Q}),{isFocusVisible:eo,focusProps:es}=(0,b.useFocusRing)({autoFocus:O}),{isFocused:ea,isSelected:eu,optionProps:ec,labelProps:ed,descriptionProps:ef}=function(e,i,o){var s,a,u,c,d,f,p,h;let{key:g}=e,m=t.listData.get(i),v=null!=(u=e.isDisabled)?u:i.selectionManager.isDisabled(g),y=null!=(c=e.isSelected)?c:i.selectionManager.isSelected(g),b=null!=(d=e.shouldSelectOnPressUp)?d:null==m?void 0:m.shouldSelectOnPressUp,x=null!=(f=e.shouldFocusOnHover)?f:null==m?void 0:m.shouldFocusOnHover,k=null!=(p=e.shouldUseVirtualFocus)?p:null==m?void 0:m.shouldUseVirtualFocus,K=null!=(h=e.isVirtualized)?h:null==m?void 0:m.isVirtualized,L=(0,r.useSlotId)(),N=(0,r.useSlotId)(),I={role:"option","aria-disabled":v||void 0,"aria-selected":"none"!==i.selectionManager.selectionMode?y:void 0};(0,w.isMac)()&&(0,w.isWebKit)()||(I["aria-label"]=e["aria-label"],I["aria-labelledby"]=L,I["aria-describedby"]=N);let D=i.collection.getItem(g);if(K){let e=Number(null==D?void 0:D.index);I["aria-posinset"]=Number.isNaN(e)?void 0:e+1,I["aria-setsize"]=P(i.collection)}let R=(null==m?void 0:m.onAction)?()=>{var e;return null==m||null==(e=m.onAction)?void 0:e.call(m,g)}:void 0,A=(0,t.getItemId)(i,g),{itemProps:O,isPressed:F,isFocused:z,hasAction:j,allowsSelection:B}=(0,M.useSelectableItem)({selectionManager:i.selectionManager,key:g,ref:o,shouldSelectOnPressUp:b,allowsDifferentPressOrigin:b&&x,isVirtualized:K,shouldUseVirtualFocus:k,isDisabled:v,onAction:R||(null==D||null==(s=D.props)?void 0:s.onAction)?(0,E.chain)(null==D||null==(a=D.props)?void 0:a.onAction,R):void 0,linkBehavior:null==m?void 0:m.linkBehavior,UNSTABLE_itemBehavior:null==m?void 0:m.UNSTABLE_itemBehavior,id:A}),{hoverProps:_}=(0,C.useHover)({isDisabled:v||!x,onHoverStart(){(0,T.isFocusVisible)()||(i.selectionManager.setFocused(!0),i.selectionManager.setFocusedKey(g))}}),W=(0,n.filterDOMProps)(null==D?void 0:D.props);delete W.id;let V=(0,S.useLinkProps)(null==D?void 0:D.props);return{optionProps:{...I,...(0,l.mergeProps)(W,O,_,V),id:A},labelProps:{id:L},descriptionProps:{id:N},isFocused:z,isFocusVisible:z&&i.selectionManager.isFocused&&(0,T.isFocusVisible)(),isSelected:y,isDisabled:v,isPressed:F,allowsSelection:B,hasAction:j}}({key:J,isDisabled:Q,"aria-label":u["aria-label"],isVirtualized:I},m,q),ep=ec,eh=(0,p.useMemo)(()=>(0,v.menuItem)({...c,isDisabled:Q,disableAnimation:G,hasTitleTextChild:"string"==typeof Z,hasDescriptionTextChild:"string"==typeof x}),[(0,h.objectToDeps)(c),Q,G,Z,x]),eg=(0,h.clsx)(null==A?void 0:A.base,R);U&&(ep=(0,h.removeEvents)(ep));let em=V&&ea||(et?el||er:el||ea&&!eo),ev=(0,p.useCallback)((e={})=>({"aria-hidden":(0,h.dataAttr)(!0),"data-disabled":(0,h.dataAttr)(Q),className:eh.selectedIcon({class:null==A?void 0:A.selectedIcon}),...e}),[Q,eh,A]);return{Component:Y,domRef:q,slots:eh,classNames:A,isSelectable:ee,isSelected:eu,isDisabled:Q,rendered:Z,description:x,startContent:K,endContent:N,selectedIcon:D,hideSelectedIcon:H,disableAnimation:G,getItemProps:(e={})=>({ref:q,...(0,h.mergeProps)(ep,U?{}:(0,h.mergeProps)(es,en),ei,(0,d.filterDOMProps)($,{enabled:X}),e),"data-selectable":(0,h.dataAttr)(ee),"data-focus":(0,h.dataAttr)(ea),"data-hover":(0,h.dataAttr)(em),"data-disabled":(0,h.dataAttr)(Q),"data-selected":(0,h.dataAttr)(eu),"data-pressed":(0,h.dataAttr)(er),"data-focus-visible":(0,h.dataAttr)(eo),className:eh.base({class:(0,h.clsx)(eg,e.className)})}),getLabelProps:(e={})=>({...(0,h.mergeProps)(ed,e),"data-label":(0,h.dataAttr)(!0),className:eh.title({class:null==A?void 0:A.title})}),getWrapperProps:(e={})=>({...(0,h.mergeProps)(e),className:eh.wrapper({class:null==A?void 0:A.wrapper})}),getDescriptionProps:(e={})=>({...(0,h.mergeProps)(ef,e),className:eh.description({class:null==A?void 0:A.description})}),getSelectedIconProps:ev}}(e),j=(0,p.useMemo)(()=>{let e=(0,g.jsx)(m,{disableAnimation:D,isSelected:c});return"function"==typeof x?x({icon:e,isSelected:c,isDisabled:f}):x||e},[x,c,f,D]);return(0,g.jsxs)(i,{...R(),children:[K,s?(0,g.jsxs)("div",{...O(),children:[(0,g.jsx)("span",{...A(),children:o}),(0,g.jsx)("span",{...F(),children:s})]}):(0,g.jsx)("span",{...A(),children:o}),u&&!I&&(0,g.jsx)("span",{...z(),children:j}),N]})};N.displayName="HeroUI.ListboxItem",e.s(["listbox_item_default",0,N],270678);var I=u;e.s(["listboxSection",()=>I.menuSection],380004)},389996,e=>{"use strict";var t=e.i(102121);e.s(["mergeRefs",0,function(...e){return n=>
4{e.forEach(e=>(function(e,n){if(null!=e){if((0,t.isFunction)(e))return void e(n);try{e.current=n}catch{throw Error(`Cannot assign value '${n}' to ref '${e}'`)}}})(e,n))}}])},954901,676e3,943609,409750,68121,644855,122190,e=>{"use strict";let t;var n=e.i(872890),r=e.i(766108),l=e.i(464095),i=e.i(759732),o=e.i(399228),s=e.i(998154),a=e.i(406911),u=e.i(393753),c=e.i(115318),d=e.i(102121),f=e.i(299550),p=e.i(389818),h=e.i(988367),g=e.i(160990),m=e.i(428001),v=e.i(812351),y=e.i(7623),b=e.i(11505),w=e.i(188443),E=e.i(556460),S=e.i(962010),x=e.i(19103),P=e.i(103811),C=e.i(303157);function T(e){let[t,n]=(0,C.useControlledState)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),r=(0,a.useCallback)(()=>{n(!0)},[n]),l=(0,a.useCallback)(()=>{n(!1)},[n]),i=(0,a.useCallback)(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:l,toggle:i}}function M(e){let t=T(e),[n,r]=(0,a.useState)(null),[l,i]=(0,a.useState)([]);return{focusStrategy:n,...t,open(e=null){r(e),t.open()},toggle(e=null){r(e),t.toggle()},close(){i([]),t.close()},expandedKeysStack:l,openSubmenu:(e,t)=>{i(n=>t>n.length?n:[...n.slice(0,t),e])},closeSubmenu:(e,t)=>{i(n=>n[t]===e?n.slice(0,t):n)}}}e.s(["useOverlayTriggerState",0,T],676e3),e.s(["useMenuTriggerState",0,M],943609);var k=e.i(607480),K=e.i(583513),L=e.i(16959),N=e.i(627676),I=e.i(383142),D=e.i(957968);function R(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function A(e,t){let n=e;for(R(n,t)&&(n=n.parentElement);n&&!R(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}let O=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function F(e){return e instanceof HTMLInputElement&&!O.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let z="u">typeof document&&window.visualViewport,j=0;function B(e={}){let{isDisabled:n}=e;(0,I.useLayoutEffect)(()=>{if(!n){let e,n,r,l,i,o;return 1==++j&&(t=(0,D.isIOS)()?(n=!1,(r=document.createElement("style")).textContent=`
5@layer {
6  * {
7    overscroll-behavior: contain;
8  }
9}`.trim(),document.head.prepend(r),l=HTMLElement.prototype.focus,HTMLElement.prototype.focus=function(e){let t=null!=document.activeElement&&F(document.activeElement);l.call(this,{...e,preventScroll:!0}),e&&e.preventScroll||V(this,t)},i=(0,w.chain)(W(document,"touchstart",t=>{let r=t.target;e=R(r)?r:A(r,!0),n=!1;let l=r.ownerDocument.defaultView.getSelection();l&&!l.isCollapsed&&l.containsNode(r,!0)&&(n=!0),"selectionStart"in r&&"selectionEnd"in r&&r.selectionStart<r.selectionEnd&&r.ownerDocument.activeElement===r&&(n=!0)},{passive:!1,capture:!0}),W(document,"touchmove",t=>{if(2!==t.touches.length&&!n){if(!e||e===document.documentElement||e===document.body)return void t.preventDefault();e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()}},{passive:!1,capture:!0}),W(document,"blur",e=>{let t=e.target,n=e.relatedTarget;if(n&&F(n))n.focus({preventScroll:!0}),V(n,F(t));else if(!n){var r;let e=null==(r=t.parentElement)?void 0:r.closest("[tabindex]");null==e||e.focus({preventScroll:!0})}},!0)),()=>{i(),r.remove(),HTMLElement.prototype.focus=l}):(o=window.innerWidth-document.documentElement.clientWidth,(0,w.chain)(o>0&&("scrollbarGutter"in document.documentElement.style?_(document.documentElement,"scrollbarGutter","stable"):_(document.documentElement,"paddingRight",`${o}px`)),_(document.documentElement,"overflow","hidden")))),()=>{0==--j&&t()}}},[n])}function _(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function W(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function V(e,t){t||!z?H(e):z.addEventListener("resize",()=>H(e),{once:!0})}function H(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=A(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect(),r=n.getBoundingClientRect();if(r.top<t.top||r.bottom>t.top+n.clientHeight){let n=t.bottom;z&&(n=Math.min(n,z.offsetTop+z.height));
9let l=r.top-t.top-((n-t.top)/2-r.height/2);e.scrollTo({top:Math.max(0,Math.min(e.scrollHeight-e.clientHeight,e.scrollTop+l)),behavior:"smooth"})}}n=e.parentElement}}e.s(["usePreventScroll",0,B],409750);var U=new WeakMap;e.s(["selectData",0,U,"useSelect",0,function(e){var t,C,T,I,D,R;let A=(0,l.useProviderContext)(),{validationBehavior:O}=(0,N.useSlottedContext)(L.FormContext)||{},[F,z]=(0,n.mapPropsVariants)(e,i.select.variantKeys),j=null!=(C=null!=(t=e.disableAnimation)?t:null==A?void 0:A.disableAnimation)&&C,{ref:_,as:W,label:V,name:H,isLoading:$,selectorIcon:G,isOpen:q,defaultOpen:Y,onOpenChange:X,startContent:Z,endContent:J,description:Q,renderValue:ee,onSelectionChange:et,placeholder:en,isVirtualized:er,itemHeight:el=36,maxListboxHeight:ei=256,children:eo,disallowEmptySelection:es=!1,selectionMode:ea="single",spinnerRef:eu,scrollRef:ec,popoverProps:ed={},scrollShadowProps:ef={},listboxProps:ep={},spinnerProps:eh={},validationState:eg,onChange:em,onClose:ev,className:ey,classNames:eb,validationBehavior:ew=null!=(T=null!=O?O:null==A?void 0:A.validationBehavior)?T:"native",hideEmptyContent:eE=!1,onClear:eS,...ex}=F,eP=(0,o.useDOMRef)(ec),eC={popoverProps:(0,d.mergeProps)({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:j},ed),scrollShadowProps:(0,d.mergeProps)({ref:eP,isEnabled:null==(I=e.showScrollIndicators)||I,hideScrollBar:!0,offset:15},ef),listboxProps:(0,d.mergeProps)({disableAnimation:j},ep)},eT=W||"button",eM="string"==typeof eT,ek=(0,o.useDOMRef)(_),eK=(0,a.useRef)(null),eL=(0,a.useRef)(null),eN=(0,a.useRef)(null),eI=function({validate:e,validationBehavior:t,...n}){let[r,l]=(0,a.useState)(!1),[i,o]=(0,a.useState)(null),s=M(n),u=function(e){let{collection:t,disabledKeys:n,selectionManager:r,selectionManager:{setSelectedKeys:l,selectedKeys:i,selectionMode:o}}=(0,P.useListState)(e),s=(0,a.useMemo)(()=>e.isLoading||0===i.size?[]:Array.from(i).filter(Boolean).filter(e=>!t.getItem(e)),[i,t]),u=0!==i.size?Array.from(i).map(e=>t.getItem(e)).filter(Boolean):null;return s.length&&console.warn(`Select: Keys "${s.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:n,selectionManager:r,selectionMode:o,selectedKeys:i,setSelectedKeys:l.bind(r),selectedItems:u}}({...n,onSelectionChange:e=>{null!=n.onSelectionChange&&("all"===e?n.onSelectionChange(new Set(u.collection.getKeys())):n.onSelectionChange(e)),"single"===n.selectionMode&&s.close()}}),c=(0,k.useFormValidationState)({...n,validationBehavior:t,validate:t=>{if(!e)return;let r=Array.from(t);return e("single"===n.selectionMode?r[0]:r)},value:u.selectedKeys}),d=0===u.collection.size&&n.hideEmptyContent;return{...c,...u,...s,focusStrategy:i,close(){s.close()},open(e=null){d||(o(e),s.open())},toggle(e=null){d||(o(e),s.toggle())},isFocused:r,setFocused:l}}({...F,isOpen:q,selectionMode:ea,disallowEmptySelection:es,validationBehavior:ew,children:eo,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:Y,hideEmptyContent:eE,onOpenChange:e=>{null==X||X(e),e||null==ev||ev()},onSelectionChange:e=>{null==et||et(e),em&&"function"==typeof em&&em({target:{...ek.current&&{...ek.current,name:ek.current.name},value:Array.from(e).join(",")}}),eI.commitValidation()}});eI={...eI,...e.isDisabled&&{disabledKeys:new Set([...eI.collection.getKeys()])}},(0,K.useSafeLayoutEffect)(()=>{var e;(null==(e=ek.current)?void 0:e.value)&&eI.setSelectedKeys(new Set([...eI.selectedKeys,ek.current.value]))},[ek.current]);let{labelProps:eD,triggerProps:eR,valueProps:eA,menuProps:eO,descriptionProps:eF,errorMessageProps:ez,isInvalid:ej,validationErrors:eB,validationDetails:e_}=function(e,t,n){let{disallowEmptySelection:r,isDisabled:l}=e,i=(0,h.useCollator)({usage:"search",sensitivity:"base"}),o=(0,a.useMemo)(()=>new y.ListKeyboardDelegate(t.collection,t.disabledKeys,null,i),[t.collection,t.disabledKeys,i]),{menuTriggerProps:s,menuProps:u}=(0,v.useMenuTrigger)({isDisabled:l,type:"listbox"},t,n),{typeSelectProps:c}=(0,b.useTypeSelect)({keyboardDelegate:o,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKeys([e])}}
9),{isInvalid:d,validationErrors:f,validationDetails:p}=t.displayValidation,{labelProps:P,fieldProps:C,descriptionProps:T,errorMessageProps:M}=(0,m.useField)({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||f});c.onKeyDown=c.onKeyDownCapture,delete c.onKeyDownCapture,s.onPressStart=e=>{"touch"===e.pointerType||"keyboard"===e.pointerType||l||t.toggle("virtual"===e.pointerType?"first":null)};let k=(0,E.filterDOMProps)(e,{labelable:!0}),K=(0,S.mergeProps)(c,s,C),L=(0,x.useId)();return{labelProps:{...P,onClick:()=>{var t;e.isDisabled||(null==(t=n.current)||t.focus(),(0,g.setInteractionModality)("keyboard"))}},triggerProps:(0,S.mergeProps)(k,{...K,onKeyDown:(0,w.chain)(K.onKeyDown,e=>{if("single"===t.selectionMode)switch(e.key){case"ArrowLeft":{e.preventDefault();let n=t.selectedKeys.size>0?o.getKeyAbove(t.selectedKeys.values().next().value):o.getFirstKey();n&&t.setSelectedKeys([n]);break}case"ArrowRight":{e.preventDefault();let n=t.selectedKeys.size>0?o.getKeyBelow(t.selectedKeys.values().next().value):o.getFirstKey();n&&t.setSelectedKeys([n])}}},e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[L,K["aria-labelledby"],K["aria-label"]&&!K["aria-labelledby"]?K.id:null].join(" "),onFocus(n){t.isFocused||(e.onFocus&&e.onFocus(n),t.setFocused(!0))},onBlur(n){t.isOpen||(e.onBlur&&e.onBlur(n),t.setFocused(!1))}}),valueProps:{id:L},menuProps:{...u,disallowEmptySelection:r,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:n=>{n.currentTarget.contains(n.relatedTarget)||(e.onBlur&&e.onBlur(n),t.setFocused(!1))},onFocus:null==u?void 0:u.onFocus,"aria-labelledby":[C["aria-labelledby"],K["aria-label"]&&!C["aria-labelledby"]?K.id:null].filter(Boolean).join(" ")},descriptionProps:T,errorMessageProps:M,isInvalid:d,validationErrors:f,validationDetails:p}}({...F,disallowEmptySelection:es,isDisabled:e.isDisabled},eI,eK),eW=(0,a.useCallback)(()=>{var e;eI.setSelectedKeys(new Set([])),null==eS||eS(),null==(e=eK.current)||e.focus()},[eS,eI]),{pressProps:eV}=(0,p.usePress)({isDisabled:!!(null==e?void 0:e.isDisabled),onPress:eW}),eH=e.isInvalid||"invalid"===eg||ej,{isPressed:eU,buttonProps:e$}=(0,u.useAriaButton)(eR,eK),{focusProps:eG,isFocused:eq,isFocusVisible:eY}=(0,c.useFocusRing)(),{focusProps:eX,isFocusVisible:eZ}=(0,c.useFocusRing)(),{isHovered:eJ,hoverProps:eQ}=(0,f.useHover)({isDisabled:e.isDisabled}),e0=(0,r.useLabelPlacement)({labelPlacement:e.labelPlacement,label:V}),e1=!!en,e2="outside-left"===e0||"outside"===e0,e4="inside"===e0,e6="outside-left"===e0,e9=e.isClearable,e8=eI.isOpen||e1||!!(null==(D=eI.selectedItems)?void 0:D.length)||!!Z||!!J||!!e.isMultiline,e5=!!(null==(R=eI.selectedItems)?void 0:R.length),e3=!!V,e7=e3&&(e6||e2&&e1),te=(0,d.clsx)(null==eb?void 0:eb.base,ey),tt=(0,a.useMemo)(()=>(0,i.select)({...z,isInvalid:eH,isClearable:e9,labelPlacement:e0,disableAnimation:j}),[(0,d.objectToDeps)(z),eH,e0,j]);B({isDisabled:!eI.isOpen});let tn="function"==typeof F.errorMessage?F.errorMessage({isInvalid:eH,validationErrors:eB,validationDetails:e_}):F.errorMessage||(null==eB?void 0:eB.join(" ")),tr=!!Q||!!tn,tl=!!J;(0,a.useEffect)(()=>{if(eI.isOpen&&eN.current&&eK.current){let e=eK.current.getBoundingClientRect();eN.current.style.width=e.width+"px"}},[eI.isOpen]);let ti=(0,a.useCallback)((e={})=>({"data-slot":"base","data-filled":(0,d.dataAttr)(e8),"data-has-value":(0,d.dataAttr)(e5),"data-has-label":(0,d.dataAttr)(e3),"data-has-helper":(0,d.dataAttr)(tr),"data-has-end-content":(0,d.dataAttr)(tl),"data-invalid":(0,d.dataAttr)(eH),"data-has-label-outside":(0,d.dataAttr)(e7),className:tt.base({class:(0,d.clsx)(te,e.className)}),...e}),[tt,tr,e5,e3,e7,e8,te]),to=(0,a.useCallback)((t={})=>({ref:eK,"data-slot":"trigger","data-open":(0,d.dataAttr)(eI.isOpen),"data-disabled":(0,d.dataAttr)(null==e?void 0:e.isDisabled),"data-focus":(0,d.dataAttr)(eq),"data-pressed":(0,d.dataAttr)(eU),"data-focus-visible":(0,d.dataAttr)(eY),"data-hover":(0,d.dataAttr)(eJ),className:tt.trigger({class:null==eb?void 0:eb.trigger}),...(0,d.mergeProps)(e$,eG,eQ,(0,s.filterDOMProps)(ex,{enabled:eM}),(0,s.filterDOMProps)(t))}),[tt,eK,eI.isOpen,null==eb?void 0:eb.trigger,null==e?void 0:e.isDisabled,eq,eU,eY,eJ,e$,eG,eQ,ex,eM]),ts=(0,a.useCallback)((t={})=>({state:eI,triggerRef:eK,selectRef:ek,selectionMode:ea,label:null==e?void 0:e.label,name:null==e?void 0:e.name,isRequired:null==e?void 0:e.isRequired,autoComplete:null==e?void 0:e.autoComplete,isDisabled:null==e?void 0:e.isDisabled,form:null==e?void 0:e.form,onChange:em,...t}),[eI,ea,null==e?void 0:e.label,null==e?void 0:e.autoComplete,null==e?void 0:e.name,null==e?void 0:e.isDisabled,eK]),ta=(0,a.useCallback)((e={})=>({"data-slot":"label",className:tt.label({class:(0,d.clsx)(null==eb?void 0:eb.label,e.className)}),...eD,...e}),[tt,null==eb?void 0:eb.label,eD]),tu=(0,a.useCallback)((e={})=>({"data-slot":"value",className:tt.value({class:(0,d.clsx)(null==eb?void 0:eb.value,e.className)}),...eA,...e}),[tt,null==eb?void 0:eb.value,eA]),tc=(0,a.useCallback)((e={})=>({"data-slot":"listboxWrapper",className:tt.listboxWrapper({class:(0,d.clsx)(null==eb?void 0:eb.listboxWrapper,null==e?void 0:e.className)}),style:{maxHeight:null!=ei?ei:256,...e.style},...(0,d.mergeProps)(eC.scrollShadowProps,e)}),[tt.listboxWrapper,null==eb?void 0:eb.listboxWrapper,eC.scrollShadowProps,ei]),td=(0,a.useCallback)((e={})=>{var t,n;let r=(0,d.mergeProps)(eC.popoverProps,e);return{state:eI,triggerRef:eK,ref:eN,"data-slot":"popover",scrollRef:eL,triggerType:"listbox",classNames:{content:tt.popoverContent({class:(0,d.clsx)(null==eb?void 0:eb.popoverContent,e.className)})},...r,offset:eI.selectedItems&&eI.selectedItems.length>0?1e-8*eI.selectedItems.length+((null==(t=eC.popoverProps)?void 0:t.offset)||0):null==(n=eC.popoverProps)?void 0:n.offset}},[tt,null==eb?void 0:eb.popoverContent,eC.popoverProps,eK,eI,eI.selectedItems]),tf=(0,a.useCallback)(()=>({"data-slot":"selectorIcon","aria-hidden":(0,d.dataAttr)(!0),"data-open":(0,d.dataAttr)(eI.isOpen),className:tt.selectorIcon({class:null==eb?void 0:eb.selectorIcon})}),[tt,null==eb?void 0:eb.selectorIcon,eI.isOpen]),tp=(0,a.useCallback)((e={})=>({...e,"data-slot":"innerWrapper",className:tt.innerWrapper({class:(0,d.clsx)(null==eb?void 0:eb.innerWrapper,null==e?void 0:e.className)})}),[tt,null==eb?void 0:eb.innerWrapper]),th=(0,a.useCallback)((e={})=>({...e,"data-slot":"helperWrapper",className:tt.helperWrapper({class:(0,d.clsx)(null==eb?void 0:eb.helperWrapper,null==e?void 0:e.className)})}),[tt,null==eb?void 0:eb.helperWrapper]),tg=(0,a.useCallback)((e={})=>({...e,...eF,"data-slot":"description",className:tt.description({class:(0,d.clsx)(null==eb?void 0:eb.description,null==e?void 0:e.className)})}),[tt,null==eb?void 0:eb.description]),tm=(0,a.useCallback)((e={})=>({...e,"data-slot":"mainWrapper",className:tt.mainWrapper({class:(0,d.clsx)(null==eb?void 0:eb.mainWrapper,null==e?void 0:e.className)})}),[tt,null==eb?void 0:eb.mainWrapper]),tv=(0,a.useCallback)((e={})=>({...e,"data-slot":"end-wrapper",className:tt.endWrapper({class:(0,d.clsx)(null==eb?void 0:eb.endWrapper,null==e?void 0:e.className)})}),[tt,null==eb?void 0:eb.endWrapper]),ty=(0,a.useCallback)((e={})=>({...e,"data-slot":"end-content",className:tt.endContent({class:(0,d.clsx)(null==eb?void 0:eb.endContent,null==e?void 0:e.className)})}),[tt,null==eb?void 0:eb.endContent]),tb=(0,a.useCallback)((e={})=>({...e,...ez,"data-slot":"error-message",className:tt.errorMessage({class:(0,d.clsx)(null==eb?void 0:eb.errorMessage,null==e?void 0:e.className)})}),[tt,ez,null==eb?void 0:eb.errorMessage]),tw=(0,a.useCallback)((e={})=>({"aria-hidden":(0,d.dataAttr)(!0),"data-slot":"spinner",color:"current",size:"sm",...eh,...e,ref:eu,className:tt.spinner({class:(0,d.clsx)(null==eb?void 0:eb.spinner,null==e?void 0:e.className)})}),[tt,eu,eh,null==eb?void 0:eb.spinner]),tE=(0,a.useCallback)((e={})=>({...e,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":(0,d.dataAttr)(eZ),className:tt.clearButton({class:(0,d.clsx)(null==eb?void 0:eb.clearButton,null==e?void 0:e.className)}),...(0,d.mergeProps)(eV,eX)}),[tt,eZ,eV,eX,null==eb?void 0:eb.clearButton]);return U.set(eI,{isDisabled:null==e?void 0:e.isDisabled,isRequired:null==e?void 0:e.isRequired,name:null==e?void 0:e.name,isInvalid:eH,validationBehavior:ew}),{Component:eT,domRef:ek,state:eI,label:V,name:H,triggerRef:eK,isLoading:$,placeholder:en,startContent:Z,endContent:J,description:Q,selectorIcon:G,hasHelper:tr,labelPlacement:e0,hasPlaceholder:e1,renderValue:ee,selectionMode:ea,disableAnimation:j,isOutsideLeft:e6,shouldLabelBeOutside:e2,shouldLabelBeInside:e4,isInvalid:eH,errorMessage:tn,isClearable:e9,getClearButtonProps:tE,getBaseProps:ti,getTriggerProps:to,getLabelProps:ta,getValueProps:tu,getListboxProps:(e={})=>{let t=null!=er?er:eI.collection.size>50;return{state:eI,ref:eL,isVirtualized:t,virtualization:t?{maxListboxHeight:ei,itemHeight:el}:void 0,"data-slot":"listbox",className:tt.listbox({class:(0,d.clsx)(null==eb?void 0:eb.listbox,null==e?void 0:e.className)}),scrollShadowProps:eC.scrollShadowProps,...(0,d.mergeProps)(eC.listboxProps,e,eO)}},getPopoverProps:td,getSpinnerProps:tw,getMainWrapperProps:tm,getListboxWrapperProps:tc,getHiddenSelectProps:ts,getInnerWrapperProps:tp,getHelperWrapperProps:th,getDescriptionProps:tg,getErrorMessageProps:tb,getSelectorIconProps:tf,getEndWrapperProps:tv,getEndContentProps:ty}}],68121);var $="u">typeof document?a.default.useLayoutEffect:()=>{},G=e.i(416173);let q={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Y(e={}){let{style:t,isFocusable:n}=e,[r,l]=(0,a.useState)(!1),{focusWithinProps:i}=(0,G.useFocusWithin)({isDisabled:!n,onFocusWithinChange:e=>l(e)}),o=(0,a.useMemo)(()=>r?t:t?{...q,...t}:q,[r]);return{visuallyHiddenProps:{...i,style:o}}}e.s(["VisuallyHidden",0,function(e){let{children:t,elementType:n="div",isFocusable:r,style:l,...i}=e,{visuallyHiddenProps:o}=Y(e);return a.default.createElement(n,(0,S.mergeProps)(i,o),t)},"useVisuallyHidden",0,Y],644855);var X=e.i(844824),Z=e.i(248406);e.s(["HiddenSelect",0,function(e){var t;let{state:n,triggerRef:r,selectRef:l,label:i,name:o,isDisabled:s,form:u}=e,{containerProps:c,selectProps:d}=function(e,t,n){var r,l,i,o,s;let u,c,d,f=U.get(t)||{},{autoComplete:p,name:h=f.name,isDisabled:g=f.isDisabled,selectionMode:m,onCh
9ange:v,form:y}=e,{validationBehavior:b,isRequired:w,isInvalid:E}=f,{visuallyHiddenProps:S}=Y();return l=e.selectRef,i=t.selectedKeys,o=t.setSelectedKeys,u=(0,a.useRef)(i),s=()=>{o&&o(u.current)},c=(0,a.useRef)(null),$(()=>{c.current=s},[s]),d=(0,a.useCallback)((...e)=>{let t=c.current;return null==t?void 0:t(...e)},[]),(0,a.useEffect)(()=>{var e;let t=null==(e=null==l?void 0:l.current)?void 0:e.form;return null==t||t.addEventListener("reset",d),()=>{null==t||t.removeEventListener("reset",d)}},[l,d]),(0,X.useFormValidation)({validationBehavior:b,focus:()=>{var e;return null==(e=n.current)?void 0:e.focus()}},t,e.selectRef),{containerProps:{...S,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:y,autoComplete:p,disabled:g,"aria-invalid":E||void 0,"aria-required":w&&"aria"===b||void 0,required:w&&"native"===b,name:h,tabIndex:-1,value:"multiple"===m?[...t.selectedKeys].map(e=>String(e)):null!=(r=[...t.selectedKeys][0])?r:"",multiple:"multiple"===m,onChange:e=>{t.setSelectedKeys(e.target.value),null==v||v(e)}}}}({...e,selectRef:l},n,r);return n.collection.size<=300?(0,Z.jsx)("div",{...c,"data-testid":"hidden-select-container",children:(0,Z.jsxs)("label",{children:[i,(0,Z.jsxs)("select",{...d,ref:l,children:[(0,Z.jsx)("option",{}),[...n.collection.getKeys()].map(e=>{let t=n.collection.getItem(e);if((null==t?void 0:t.type)==="item")return(0,Z.jsx)("option",{value:t.key,children:t.textValue},t.key)})]})]})}):o?(0,Z.jsx)("input",{autoComplete:d.autoComplete,disabled:s,form:u,name:o,type:"hidden",value:null!=(t=[...n.selectedKeys].join(","))?t:""}):null}],954901);let J=new WeakMap;e.s(["getItemId",0,function(e,t){let n=J.get(e);if(!n)throw Error("Unknown list");return`${n.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`},"listData",0,J],122190)},683558,608308,779720,e=>{"use strict";var t=e.i(954901),n=e.i(68121),r=e.i(219987),l=e.i(362660),i=e.i(406911),o=e.i(560199),s=e.i(701290),a=e.i(872890),u=e.i(257529),c=e.i(854803),d=e.i(102121),f=e.i(902754),p=e.i(21508),h=e.i(19103),g=e.i(556460),m=e.i(562292);function v(e,t){let{role:n="dialog"}=e,r=(0,h.useSlotId)();r=e["aria-label"]?void 0:r;let l=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,m.focusSafely)(t.current);let e=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(l.current=!0,t.current&&(t.current.blur(),(0,m.focusSafely)(t.current)),l.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,s.useOverlayFocusContain)(),{dialogProps:{...(0,g.filterDOMProps)(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:e=>{l.current&&e.stopPropagation()}},titleProps:{id:r}}}e.s(["useDialog",0,v],608308);var y=e.i(248406),b=()=>e.A(156576).then(e=>e.default),w=(0,a.forwardRef)(({children:e,motionProps:t,placement:n,disableAnimation:r,style:l={},transformOrigin:i={},...o},s)=>{let a=l;return void 0!==i.originX||void 0!==i.originY?a={...a,transformOrigin:i}:n&&(a={...a,...(0,f.getTransformOrigins)("center"===n?"top":n)}),r?(0,y.jsx)("div",{...o,ref:s,children:e}):(0,y.jsx)(u.LazyMotion,{features:b,children:(0,y.jsx)(c.m.div,{ref:s,animate:"enter",exit:"exit",initial:"initial",style:a,variants:p.TRANSITION_VARIANTS.scaleSpringOpacity,...(0,d.mergeProps)(o,t),children:e})})});w.displayName="HeroUI.FreeSoloPopoverWrapper";var E=(0,a.forwardRef)(({children:e,transformOrigin:t,disableDialogFocus:n=!1,...r},a)=>{let{Component:d,state:f,placement:h,backdrop:g,portalContainer:m,disableAnimation:E,motionProps:S,isNonModal:x,getPopoverProps:P,getBackdropProps:C,getDialogProps:T,getContentProps:M}=(0,l.usePopover)({...r,ref:a}),k=i.useRef(null),{dialogProps:K,titleProps:L}=v({},k),N=T({...!n&&{ref:k},...K}),I=i.useMemo(()=>"transparent"===g?null:E?(0,y.jsx)("div",{...C()}):(0,y.jsx)(u.LazyMotion,{features:b,children:(0,y.jsx)(c.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:p.TRANSITION_VARIANTS.fade,...C()})}),[g,E,C]);return(0,y.jsxs)(s.Overlay,{portalContainer:m,children:[!x&&I,(0,y.jsx)(d,{...P(),children:(0,y.jsxs)(w,{disableAnimation:E,motionProps:S,placement:h,tabIndex:-1,transformOrigin:t,...N,children:[!x&&(0,y.jsx)(o.DismissButton,{onDismiss:f.close}),(0,y.jsx)("div",{...M(),children:"function"==typeof e?e(L):e}),(0,y.jsx)(o.DismissButton,{onDismiss:f.close})]})})]})});E.displayName="HeroUI.FreeSoloPopover";var S=({strokeWidth:e=1.5,...t})=>
9(0,y.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,y.jsx)("path",{d:"m6 9 6 6 6-6"})}),x=e.i(610996),P=e.i(940201),C=e.i(915697),T=e.i(644855),M=e.i(269493),k=(0,a.forwardRef)(function(e,l){var o;let{Component:s,state:a,label:u,hasHelper:c,isLoading:d,triggerRef:f,selectorIcon:p=(0,y.jsx)(S,{}),description:h,errorMessage:g,isInvalid:m,startContent:v,endContent:b,placeholder:w,renderValue:k,shouldLabelBeOutside:K,disableAnimation:L,getBaseProps:N,getLabelProps:I,getTriggerProps:D,getValueProps:R,getListboxProps:A,getPopoverProps:O,getSpinnerProps:F,getMainWrapperProps:z,getInnerWrapperProps:j,getHiddenSelectProps:B,getHelperWrapperProps:_,getListboxWrapperProps:W,getDescriptionProps:V,getErrorMessageProps:H,getSelectorIconProps:U,isClearable:$,getClearButtonProps:G,getEndWrapperProps:q,getEndContentProps:Y}=(0,n.useSelect)({...e,ref:l}),X=u?(0,y.jsx)("label",{...I(),children:u}):null,Z=(0,i.cloneElement)(p,U()),J=(0,i.useMemo)(()=>{var e;return $&&(null==(e=a.selectedItems)?void 0:e.length)?(0,y.jsx)("span",{...G(),children:(0,y.jsx)(x.CloseFilledIcon,{})}):null},[$,G,null==(o=a.selectedItems)?void 0:o.length]),Q=(0,i.useMemo)(()=>J?(0,y.jsxs)("div",{...q(),children:[J,b&&(0,y.jsx)("span",{...Y(),children:b})]}):b&&(0,y.jsx)("span",{...Y(),children:b}),[J,b,q,Y]),ee=(0,i.useMemo)(()=>{let e=m&&g,t=e||h;return c&&t?(0,y.jsx)("div",{..._(),children:e?(0,y.jsx)("div",{...H(),children:g}):(0,y.jsx)("div",{...V(),children:h})}):null},[c,m,g,h,_,H,V]),et=(0,i.useMemo)(()=>{var e;return(null==(e=a.selectedItems)?void 0:e.length)?k&&"function"==typeof k?k([...a.selectedItems].map(e=>({key:e.key,data:e.value,type:e.type,props:e.props,textValue:e.textValue,rendered:e.rendered,"aria-label":e["aria-label"]}))):a.selectedItems.map(e=>e.textValue).join(", "):w},[a.selectedItems,k,w]),en=(0,i.useMemo)(()=>d?(0,y.jsx)(P.Spinner,{...F()}):Z,[d,Z,F]),er=(0,i.useMemo)(()=>a.isOpen?(0,y.jsx)(E,{...O(),children:(0,y.jsx)(C.ScrollShadow,{...W(),children:(0,y.jsx)(r.Listbox,{...A()})})}):null,[a.isOpen,O,a,f,W,A]);return(0,y.jsxs)("div",{...N(),children:[(0,y.jsx)(t.HiddenSelect,{...B()}),K?X:null,(0,y.jsxs)("div",{...z(),children:[(0,y.jsxs)(s,{...D(),children:[K?null:X,(0,y.jsxs)("div",{...j(),children:[v,(0,y.jsx)("span",{...R(),children:et}),b&&a.selectedItems&&(0,y.jsx)(T.VisuallyHidden,{elementType:"span",children:","}),Q]}),en]}),ee]}),L?er:(0,y.jsx)(M.AnimatePresence,{children:er})]})});e.s(["Select",0,k],683558);var K=e.i(709181).BaseItem;e.s(["SelectItem",0,K],779720)},940201,e=>{"use strict";var t=e.i(872890),n=(0,e.i(535487).tv)({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],
9circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),r=e.i(102121),l=e.i(406911),i=e.i(464095),o=e.i(248406),s=(0,t.forwardRef)((e,s)=>{let{slots:a,classNames:u,label:c,variant:d,getSpinnerProps:f}=function(e){var o,s;let[a,u]=(0,t.mapPropsVariants)(e,n.variantKeys),c=(0,i.useProviderContext)(),d=null!=(s=null!=(o=null==e?void 0:e.variant)?o:null==c?void 0:c.spinnerVariant)?s:"default",{children:f,className:p,classNames:h,label:g,...m}=a,v=(0,l.useMemo)(()=>n({...u}),[(0,r.objectToDeps)(u)]),y=(0,r.clsx)(null==h?void 0:h.base,p),b=g||f,w=(0,l.useMemo)(()=>b&&"string"==typeof b?b:m["aria-label"]?"":"Loading",[f,b,m["aria-label"]]),E=(0,l.useCallback)(()=>({"aria-label":w,className:v.base({class:y}),...m}),[w,v,y,m]);return{label:b,slots:v,classNames:h,variant:d,getSpinnerProps:E}}({...e});return"wave"===d||"dots"===d?(0,o.jsxs)("div",{ref:s,...f(),children:[(0,o.jsx)("div",{className:a.wrapper({class:null==u?void 0:u.wrapper}),children:[void 0,void 0,void 0].map((e,t)=>(0,o.jsx)("i",{className:a.dots({class:null==u?void 0:u.dots}),style:{"--dot-index":t}},`dot-${t}`))}),c&&(0,o.jsx)("span",{className:a.label({class:null==u?void 0:u.label}),children:c})]}):"simple"===d?(0,o.jsxs)("div",{ref:s,...f(),children:[(0,o.jsxs)("svg",{className:a.wrapper({class:null==u?void 0:u.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[(0,o.jsx)("circle",{className:a.circle1({class:null==u?void 0:u.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,o.jsx)("path",{className:a.circle2({class:null==u?void 0:u.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"})]}),c&&(0,o.jsx)("span",{className:a.label({class:null==u?void 0:u.label}),children:c})]}):"spinner"===d?(0,o.jsxs)("div",{ref:s,...f(),children:[(0,o.jsx)("div",{className:a.wrapper({class:null==u?void 0:u.wrapper}),children:[...Array(12)].map((e,t)=>(0,o.jsx)("i",{className:a.spinnerBars({class:null==u?void 0:u.spinnerBars}),style:{"--bar-index":t}},`star-${t}`))}),c&&(0,o.jsx)("span",{className:a.label({class:null==u?void 0:u.label}),children:c})]}):(0,o.jsxs)("div",{ref:s,...f(),children:[(0,o.jsxs)("div",{className:a.wrapper({class:null==u?void 0:u.wrapper}),children:[(0,o.jsx)("i",{className:a.circle1({class:null==u?void 0:u.circle1})}),(0,o.jsx)("i",{className:a.circle2({class:null==u?void 0:u.circle2})})]}),c&&(0,o.jsx)("span",{className:a.label({class:null==u?void 0:u.label}),children:c})]})});s.displayName="HeroUI.Spinner",e.s(["Spinner",0,s],940201)},393753,e=>{"use strict";var t=e.i(556460),n=e.i(962010),r=e.i(243861),l=e.i(389818);e.s(["useAriaButton",0,function(e,i){let o,{elementType:s="button",isDisabled:a,onPress:u,onPressStart:c,onPressEnd:d,onPressUp:f,onPressChange:p,preventFocusOnPress:h,allowFocusWhenDisabled:g,onClick:m,href:v,target:y,rel:b,type:w="button",allowTextSelectionOnPress:E}=e;o="button"===s?{type:w,disabled:a}:{role:"button",href:"a"!==s||a?void 0:v,target:"a"===s?y:void 0,type:"input"===s?w:void 0,disabled:"input"===s?a:void 0,"aria-disabled":a&&"input"!==s?a:void 0,rel:"a"===s?b:void 0};let{pressProps:S,isPressed:x}=(0,l.usePress)({onClick:m,onPressStart:c,onPressEnd:d,onPressUp:f,onPressChange:p,onPress:u,isDisabled:a,preventFocusOnPress:h,allowTextSelectionOnPress:E,ref:i}
9),{focusableProps:P}=(0,r.useFocusable)(e,i);g&&(P.tabIndex=a?-1:P.tabIndex);let C=(0,n.mergeProps)(P,S,(0,t.filterDOMProps)(e,{labelable:!0}));return{isPressed:x,buttonProps:(0,n.mergeProps)(o,C,{"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"]})}}])},241780,e=>{"use strict";var t=e.i(383142),n=e.i(135191),r=e.i(391827),l=e.i(957968),i=e.i(973244),o=e.i(221425);class s{get currentNode(){return this._currentNode}set currentNode(e){if(!(0,n.nodeContains)(this.root,e))throw Error("Cannot set currentNode to a node that is not contained by the root node.");let t=[],r=e,l=e;for(this._currentNode=e;r&&r!==this.root;)if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=r,n=this._doc.createTreeWalker(e,this.whatToShow,{acceptNode:this._acceptNode});t.push(n),n.currentNode=l,this._currentSetFor.add(n),r=l=e.host}else r=r.parentNode;let i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});t.push(i),i.currentNode=l,this._currentSetFor.add(i),this._walkerStack=t}get doc(){return this._doc}firstChild(){let e=this.currentNode,t=this.nextNode();return(0,n.nodeContains)(e,t)?(t&&(this.currentNode=t),t):(this.currentNode=e,null)}lastChild(){let e=this._walkerStack[0].lastChild();return e&&(this.currentNode=e),e}nextNode(){let e=this._walkerStack[0].nextNode();if(e){if(e.shadowRoot){var t;let n;if("function"==typeof this.filter?n=this.filter(e):(null==(t=this.filter)?void 0:t.acceptNode)&&(n=this.filter.acceptNode(e)),n===NodeFilter.FILTER_ACCEPT)return this.currentNode=e,e;let r=this.nextNode();return r&&(this.currentNode=r),r}return e&&(this.currentNode=e),e}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.nextNode();return e&&(this.currentNode=e),e}}previousNode(){let e=this._walkerStack[0];if(e.currentNode===e.root){if(this._currentSetFor.has(e)&&(this._currentSetFor.delete(e),this._walkerStack.length>1)){this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}return null}let t=e.previousNode();if(t){if(t.shadowRoot){var n;let e;if("function"==typeof this.filter?e=this.filter(t):(null==(n=this.filter)?void 0:n.acceptNode)&&(e=this.filter.acceptNode(t)),e===NodeFilter.FILTER_ACCEPT)return t&&(this.currentNode=t),t;let r=this.lastChild();return r&&(this.currentNode=r),r}return t&&(this.currentNode=t),t}if(!(this._walkerStack.length>1))return null;{this._walkerStack.shift();let e=this.previousNode();return e&&(this.currentNode=e),e}}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(e,t,n,r){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=e=>{if(e.nodeType===Node.ELEMENT_NODE){var t;let n=e.shadowRoot;if(n){let e=this._doc.createTreeWalker(n,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(e),NodeFilter.FILTER_ACCEPT}if("function"==typeof this.filter)return this.filter(e);if(null==(t=this.filter)?void 0:t.acceptNode)return this.filter.acceptNode(e);if(null===this.filter)return NodeFilter.FILTER_ACCEPT}return NodeFilter.FILTER_SKIP},this._doc=e,this.root=t,this.filter=null!=r?r:null,this.whatToShow=null!=n?n:NodeFilter.SHOW_ALL,this._currentNode=t,this._walkerStack.unshift(e.createTreeWalker(t,n,this._acceptNode));const l=t.shadowRoot;if(l){const e=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(e)}}}var a=e.i(160990),u=e.i(562292),c=e.i(406911);let d=c.default.createContext(null),f="react-aria-focus-scope-restore",p=null;function h(e){return e[0].parentElement}function g(e){let t=T.getTreeNode(p);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function m(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function v(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of T.traverse(T.getTreeNode(t)))if(n&&m(e,n.current))return!0;return!1}function y(e,t){var n;let r=null==(n=T.getTreeNode(t))?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function b(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch{}}else try{(0,u.focusSafely)(e)}catch{}}function w(e,t=!0){let n=e[0].previousElementSibling,r=h(e),l=P(r,{tabbable:t},e);l.currentNode=n;let i=l.nextNode();return t&&!i&&((l=P(r=h(e),{tabbable:!1},e)).currentNode=n,i=l.nextNode()),i}function E(e,t=!0){b(w(e,t))}function S(e){let t=T.getTreeNode(p);for(;t&&t.scopeRef!==e;
9){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}function x(e){e.dispatchEvent(new CustomEvent(f,{bubbles:!0,cancelable:!0}))&&b(e)}function P(e,t,n){var l,a,u;let c=(null==t?void 0:t.tabbable)?i.isTabbable:i.isFocusable,d=(null==e?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,f=(0,r.getOwnerDocument)(d),p=(l=e||f,a=NodeFilter.SHOW_ELEMENT,u={acceptNode(e){var l;return(null==t||null==(l=t.from)?void 0:l.contains(e))||(null==t?void 0:t.tabbable)&&"INPUT"===e.tagName&&"radio"===e.getAttribute("type")&&(!function(e){if(e.checked)return!0;let t=[];if(e.form){var n,l;let r=null==(l=e.form)||null==(n=l.elements)?void 0:n.namedItem(e.name);t=[...null!=r?r:[]]}else t=[...(0,r.getOwnerDocument)(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(e=>!e.form);return!!t&&!t.some(e=>e.checked)}(e)||"INPUT"===p.currentNode.tagName&&"radio"===p.currentNode.type&&p.currentNode.name===e.name)?NodeFilter.FILTER_REJECT:c(e)&&(!n||m(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}},(0,o.shadowDOM)()?new s(f,l,a,u):f.createTreeWalker(l,a,u));return(null==t?void 0:t.from)&&(p.currentNode=t.from),p}class C{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 T=new class e{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let r=this.fastMap.get(null!=t?t:null);if(!r)return;let l=new C({scopeRef:e});r.addChild(l),l.parent=r,this.fastMap.set(e,l),n&&(l.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&m(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let r=t.children;n&&(n.removeChild(t),r.size>0&&r.forEach(e=>n&&n.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 t,n;let r=new e;for(let e of this.traverse())r.addTreeNode(e.scopeRef,null!=(n=null==(t=e.parent)?void 0:t.scopeRef)?n:null,e.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new C({scopeRef:null}),this.fastMap.set(null,this.root)}};e.s(["FocusScope",0,function(e){var i,o,s,u,M,k,K,L,N,I;let D,R,A,O,{children:F,contain:z,restoreFocus:j,autoFocus:B}=e,_=(0,c.useRef)(null),W=(0,c.useRef)(null),V=(0,c.useRef)([]),{parentNode:H}=(0,c.useContext)(d)||{},U=(0,c.useMemo)(()=>new C({scopeRef:V}),[V]);(0,t.useLayoutEffect)(()=>{let e=H||T.root;if(T.getTreeNode(e.scopeRef)&&p&&!y(p,e.scopeRef)){let t=T.getTreeNode(p);t&&(e=t)}e.addChild(U),T.addNode(U)},[U,H]),(0,t.useLayoutEffect)(()=>{let e=T.getTreeNode(V);e&&(e.contain=!!z)},[z]),(0,t.useLayoutEffect)(()=>{var e;let t=null==(e=_.current)?void 0:e.nextSibling,n=[],r=e=>e.stopPropagation();for(;t&&t!==W.current;)n.push(t),t.addEventListener(f,r),t=t.nextSibling;return V.current=n,()=>{for(let e of n)e.removeEventListener(f,r)}},[F]),i=V,o=j,s=z,(0,t.useLayoutEffect)(()=>{if(o||s)return;let e=i.current,t=(0,r.getOwnerDocument)(e?e[0]:void 0),l=e=>{let t=(0,n.getEventTarget)(e);m(t,i.current)?p=i:v(t)||(p=null)};return t.addEventListener("focusin",l,!1),null==e||e.forEach(e=>e.addEventListener("focusin",l,!1)),()=>{t.removeEventListener("focusin",l,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",l,!1))}},[i,o,s]),u=V,M=z,D=(0,c.useRef)(void 0),R=(0,c.useRef)(void 0),(0,t.useLayoutEffect)(()=>{let e=u.current;if(!M){R.current&&(cancelAnimationFrame(R.current),R.current=void 0);return}let t=(0,r.getOwnerDocument)(e?e[0]:void 0),i=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!g(u)||e.isComposing)return;let r=(0,n.getActiveElement)(t),l=u.current;if(!l||!m(r,l))return;let i=P(h(l),{tabbable:!0},l);if(!r)return;i.currentNode=r;let o=e.shiftKey?i.previousNode():i.nextNode();o||(i.currentNode=e.shiftKey?l[l.length-1].nextElementSibling:l[0].previousElementSibling,o=e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),o&&b(o,!0)},o=e=>{(!p||y(p,u))&&m((0,n.getEventTarget)(e),u.current)?(p=u,D.current=(0,n.getEventTarget)(e)):g(u)&&!v((0,n.getEventTarget)(e),u)?D.
9current?D.current.focus():p&&p.current&&E(p.current):g(u)&&(D.current=(0,n.getEventTarget)(e))},s=e=>{R.current&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>{let r=(0,a.getInteractionModality)(),i=("virtual"===r||null===r)&&(0,l.isAndroid)()&&(0,l.isChrome)(),o=(0,n.getActiveElement)(t);if(!i&&o&&g(u)&&!v(o,u)){p=u;let t=(0,n.getEventTarget)(e);if(t&&t.isConnected){var s;D.current=t,null==(s=D.current)||s.focus()}else p.current&&E(p.current)}})};return t.addEventListener("keydown",i,!1),t.addEventListener("focusin",o,!1),null==e||e.forEach(e=>e.addEventListener("focusin",o,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",s,!1)),()=>{t.removeEventListener("keydown",i,!1),t.removeEventListener("focusin",o,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",o,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",s,!1))}},[u,M]),(0,t.useLayoutEffect)(()=>()=>{R.current&&cancelAnimationFrame(R.current)},[R]),k=V,K=j,L=z,A=(0,c.useRef)("u">typeof document?(0,n.getActiveElement)((0,r.getOwnerDocument)(k.current?k.current[0]:void 0)):null),(0,t.useLayoutEffect)(()=>{let e=k.current,t=(0,r.getOwnerDocument)(e?e[0]:void 0);if(!K||L)return;let l=()=>{(!p||y(p,k))&&m((0,n.getActiveElement)(t),k.current)&&(p=k)};return t.addEventListener("focusin",l,!1),null==e||e.forEach(e=>e.addEventListener("focusin",l,!1)),()=>{t.removeEventListener("focusin",l,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",l,!1))}},[k,L]),(0,t.useLayoutEffect)(()=>{let e=(0,r.getOwnerDocument)(k.current?k.current[0]:void 0);if(!K)return;let t=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!g(k)||t.isComposing)return;let n=e.activeElement;if(!v(n,k)||!S(k))return;let r=T.getTreeNode(k);if(!r)return;let l=r.nodeToRestore,i=P(e.body,{tabbable:!0});i.currentNode=n;let o=t.shiftKey?i.previousNode():i.nextNode();if(l&&l.isConnected&&l!==e.body||(l=void 0,r.nodeToRestore=void 0),(!o||!v(o,k))&&l){i.currentNode=l;do o=t.shiftKey?i.previousNode():i.nextNode();while(v(o,k))(t.preventDefault(),t.stopPropagation(),o)?b(o,!0):v(l)?b(l,!0):n.blur()}};return L||e.addEventListener("keydown",t,!0),()=>{L||e.removeEventListener("keydown",t,!0)}},[k,K,L]),(0,t.useLayoutEffect)(()=>{var e;let t=(0,r.getOwnerDocument)(k.current?k.current[0]:void 0);if(!K)return;let l=T.getTreeNode(k);if(l)return l.nodeToRestore=null!=(e=A.current)?e:void 0,()=>{let e=T.getTreeNode(k);if(!e)return;let r=e.nodeToRestore,l=(0,n.getActiveElement)(t);
9if(K&&r&&(l&&v(l,k)||l===t.body&&S(k))){let e=T.clone();requestAnimationFrame(()=>{if(t.activeElement===t.body){let t=e.getTreeNode(k);for(;t;){if(t.nodeToRestore&&t.nodeToRestore.isConnected)return void x(t.nodeToRestore);t=t.parent}for(t=e.getTreeNode(k);t;){if(t.scopeRef&&t.scopeRef.current&&T.getTreeNode(t.scopeRef))return void x(w(t.scopeRef.current,!0));t=t.parent}}})}}},[k,K]),N=V,I=B,O=c.default.useRef(I),(0,c.useEffect)(()=>{if(O.current){p=N;let e=(0,r.getOwnerDocument)(N.current?N.current[0]:void 0);!m((0,n.getActiveElement)(e),p.current)&&N.current&&E(N.current)}O.current=!1},[N]),(0,c.useEffect)(()=>{let e=(0,n.getActiveElement)((0,r.getOwnerDocument)(V.current?V.current[0]:void 0)),t=null;if(m(e,V.current)){for(let n of T.traverse())n.scopeRef&&m(e,n.scopeRef.current)&&(t=n);t===T.getTreeNode(V)&&(p=t.scopeRef)}},[V]),(0,t.useLayoutEffect)(()=>()=>{var e,t,n;let r=null!=(n=null==(t=T.getTreeNode(V))||null==(e=t.parent)?void 0:e.scopeRef)?n:null;(V===p||y(V,p))&&(!r||T.getTreeNode(r))&&(p=r),T.removeTreeNode(V)},[V]);let $=(0,c.useMemo)(()=>{var e;return e=V,{focusNext(t={}){var l;let i=e.current,{from:o,tabbable:s,wrap:a,accept:u}=t,c=o||(0,n.getActiveElement)((0,r.getOwnerDocument)(null!=(l=i[0])?l:void 0)),d=i[0].previousElementSibling,f=P(h(i),{tabbable:s,accept:u},i);f.currentNode=m(c,i)?c:d;let p=f.nextNode();return!p&&a&&(f.currentNode=d,p=f.nextNode()),p&&b(p,!0),p},focusPrevious(t={}){var l;let i=e.current,{from:o,tabbable:s,wrap:a,accept:u}=t,c=o||(0,n.getActiveElement)((0,r.getOwnerDocument)(null!=(l=i[0])?l:void 0)),d=i[i.length-1].nextElementSibling,f=P(h(i),{tabbable:s,accept:u},i);f.currentNode=m(c,i)?c:d;let p=f.previousNode();return!p&&a&&(f.currentNode=d,p=f.previousNode()),p&&b(p,!0),p},focusFirst(t={}){let n=e.current,{tabbable:r,accept:l}=t,i=P(h(n),{tabbable:r,accept:l},n);i.currentNode=n[0].previousElementSibling;let o=i.nextNode();return o&&b(o,!0),o},focusLast(t={}){let n=e.current,{tabbable:r,accept:l}=t,i=P(h(n),{tabbable:r,accept:l},n);i.currentNode=n[n.length-1].nextElementSibling;let o=i.previousNode();return o&&b(o,!0),o}}},[]),G=(0,c.useMemo)(()=>({focusManager:$,parentNode:U}),[U,$]);return c.default.createElement(d.Provider,{value:G},c.default.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:_}),F,c.default.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:W}))},"getFocusableTreeWalker",0,P,"isElementInChildOfActiveScope",0,function(e){return v(e,p)}],241780)},990067,e=>{"use strict";var t=e.i(391827),n=e.i(135191);function r(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}e.s(["dispatchVirtualFocus",0,r,"moveVirtualFocus",0,function(e){var l,i,o;let s,a,u=(l=(0,t.getOwnerDocument)(e),(a=null==(s=(0,n.getActiveElement)(l))?void 0:s.getAttribute("aria-activedescendant"))&&l.getElementById(a)||s);u!==e&&(u&&(i=u,o=e,i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))),e&&r(e,u))}])},890036,e=>{"use strict";let t=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),n=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function r(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r="function"==typeof n.getTextInfo?n.getTextInfo():n.textInfo;if(r)return"rtl"===r.direction;if(n.script)return t.has(n.script)}let r=e.split("-")[0];return n.has(r)}var l=e.i(406911),i=e.i(611782);let o=Symbol.for("react-aria.i18n.locale");function s(){let e="u">typeof window&&window[o]||"u">typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:r(e)?"rtl":"ltr"}}let a=s(),u=new Set;function c(){for(let e of(a=s(),u))e(a)}function d(){let e=(0,i.useIsSSR)(),[t,n]=(0,l.useState)(a);return((0,l.useEffect)(()=>(0===u.size&&window.addEventListener("languagechange",c),u.add(n),()=>{u.delete(n),0===u.size&&window.removeEventListener("languagechange",c)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let f=l.default.createContext(null);function p(e){let{locale:t,children:n}=e,i=l.default.useMemo(()=>({locale:t,direction:r(t)?"rtl":"ltr"}),[t]);return l.default.createElement(f.Provider,{value:i},n)}function h(e){let{children:t}=e,n=d();return l.default.createElement(f.Provider,{value:n},t)}e.s(["I18nProvider",0,function(e){let{locale:t,children:n}=e;return t?l.default.createElement(p,{locale:t,children:n}):l.default.createElement(h,{children:n})},"useLocale",0,function(){let e=d();return(0,l.useContext)(f)||e}],890036)},988367,e=>{"use strict";var t=e.i(890036);let n=new Map;e.s(["useCollator",0,function(e){let{locale:r}=(0,t.useLocale)(),l=r+(e?Object.entries(e).sort((e,t)=>
9e[0]<t[0]?-1:1).join():"");if(n.has(l))return n.get(l);let i=new Intl.Collator(r,e);return n.set(l,i),i}])},550040,752447,915697,e=>{"use strict";let t;var n=e.i(890036);let r=Symbol.for("react-aria.i18n.locale"),l=Symbol.for("react-aria.i18n.strings");class i{getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,n="en-US"){var r;if(t[e])return t[e];let l=(r=e,Intl.Locale?new Intl.Locale(r).language:r.split("-")[0]);if(t[l])return t[l];for(let e in t)if(e.startsWith(l+"-"))return t[e];return t[n]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("u"<typeof window)return null;let n=window[r];if(void 0===t){let e=window[l];if(!e)return null;for(let r in t={},e)t[r]=new i({[n]:e[r]},n)}let o=null==t?void 0:t[e];if(!o)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return o}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}let o=new Map,s=new Map;class a{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let r=t["="+e];if(r)return"function"==typeof r?r():r;let l=this.locale+":"+n,i=o.get(l);return i||(i=new Intl.PluralRules(this.locale,{type:n}
9),o.set(l,i)),"function"==typeof(r=t[i.select(e)]||t.other)?r():r}number(e){let t=s.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),s.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}}var u=e.i(406911);let c=new WeakMap;e.s(["useLocalizedStringFormatter",0,function(e,t){let r,{locale:l}=(0,n.useLocale)(),o=t&&i.getGlobalDictionaryForPackage(t)||((r=c.get(e))||(r=new i(e),c.set(e,r)),r);return(0,u.useMemo)(()=>new a(l,o),[l,o])}],550040);var d=e.i(872890),f=(0,e.i(535487).tv)({base:[],variants:{orientation:{vertical:["overflow-y-auto","data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],horizontal:["overflow-x-auto","data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}});e.s(["scrollShadow",0,f],752447);var p=e.i(399228),h=e.i(102121),g=e.i(248406),m=(0,d.forwardRef)((e,t)=>{let{Component:n,children:r,getBaseProps:l}=function(e){var t;let[n,r]=(0,d.mapPropsVariants)(e,f.variantKeys),{ref:l,as:i,children:o,className:s,style:a,size:c=40,offset:g=0,visibility:m="auto",isEnabled:v=!0,onVisibilityChange:y,...b}=n,w=(0,p.useDOMRef)(l);!function(e={}){let{domRef:t,isEnabled:n=!0,overflowCheck:r="vertical",visibility:l="auto",offset:i=0,onVisibilityChange:o,updateDeps:s=[]}=e,a=(0,u.useRef)(l);(0,u.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!n)return;let s=(t,n,r,i,s)=>{if("auto"===l){let t=`${i}${(0,h.capitalize)(s)}Scroll`;n&&r?(e.dataset[t]="true",e.removeAttribute(`data-${i}-scroll`),e.removeAttribute(`data-${s}-scroll`)):(e.dataset[`${i}Scroll`]=n.toString(),e.dataset[`${s}Scroll`]=r.toString(),e.removeAttribute(`data-${i}-${s}-scroll`))}else{let e=n&&r?"both":n?i:r?s:"none";e!==a.current&&(null==o||o(e),a.current=e)}},u=()=>{var t,n;let l=e.querySelector('ul[data-slot="list"]'),o=+(null!=(t=null==l?void 0:l.getAttribute("data-virtual-scroll-height"))?t:e.scrollHeight),a=+(null!=(n=null==l?void 0:l.getAttribute("data-virtual-scroll-top"))?n:e.scrollTop);for(let{type:t,prefix:n,suffix:l}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(r===t||"both"===r){let r="vertical"===t?a>i:e.scrollLeft>i,u="vertical"===t?a+e.clientHeight+i<o:e.scrollLeft+e.clientWidth+i<e.scrollWidth;s(t,r,u,n,l)}},c=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return u(),e.addEventListener("scroll",u,!0),"auto"!==l&&(c(),"both"===l?(e.dataset.topBottomScroll=String("vertical"===r),e.dataset.leftRightScroll=String("horizontal"===r)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(l===t)}))),()=>{e.removeEventListener("scroll",u,!0),c()}},[...s,n,l,r,o,t])}({domRef:w,offset:g,visibility:m,isEnabled:v,onVisibilityChange:y,updateDeps:[o],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let E=(0,u.useMemo)(()=>f({...r,className:s}),[(0,h.objectToDeps)(r),s]);return{Component:i||"div",styles:E,domRef:w,children:o,getBaseProps:(t={})=>{var n;return{ref:w,className:E,"data-orientation":null!=(n=e.orientation)?n:"vertical",style:{"--scroll-shadow-size":`${c}px`,...a,...t.style},...b,...t}}}}({...e,ref:t});return(0,g.jsx)(n,{...l(),children:r})});m.displayName="HeroUI.ScrollShadow",e.s(["ScrollShadow",0,m],915697)},658164,e=>{"use strict";var t=e.i(389818),n=e.i(639199),r=e.i(391827),l=e.i(708933),i=e.i(383142),o=e.i(406911);let s=0,a=new Map;var u=e.i(962010);e.s(["useLongPress",0,function(e){let{isDisabled:c,onLongPressStart:d,onLongPressEnd:f,onLongPress:p,threshold:h=500,accessibilityDescription:g}=e,m=(0,o.useRef)(void 0),{addGlobalListener:v,removeGlobalListener:y}=(0,n.useGlobalListeners)(),{pressProps:b}=(0,t.usePress)({isDisabled:c,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(d&&d({...e,type:"longpressstart"}),m.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),(0,r.getOwnerDocument)(e.target).activeElement!==e.target&&(0,l.focusWithoutScrolling)(e.target),p&&p({...e,type:"longpress"}),m.current=void 0},h),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};v(e.target,"contextmenu",t,{once:!0}),v(window,"pointerup",()=>{setTimeout(()=>{y(e.target,"contextmenu",t)}
9,30)},{once:!0})}},onPressEnd(e){m.current&&clearTimeout(m.current),f&&("mouse"===e.pointerType||"touch"===e.pointerType)&&f({...e,type:"longpressend"})}}),w=function(e){let[t,n]=(0,o.useState)();return(0,i.useLayoutEffect)(()=>{if(!e)return;let t=a.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${s++}`;n(r);let l=document.createElement("div");l.id=r,l.style.display="none",l.textContent=e,document.body.appendChild(l),t={refCount:0,element:l},a.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),a.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}(p&&!c?g:void 0);return{longPressProps:(0,u.mergeProps)(b,w)}}],658164)},812351,569977,749855,e=>{"use strict";var t={};t={"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+向下鍵以開啟功能表"}};var n=e.i(19103),r=e.i(708933),l=e.i(658164),i=e.i(550040),o=e.i(406911);let s=new WeakMap;function a(e,t,r){let l,{type:i}=e,{isOpen:a}=t;(0,o.useEffect)(()=>{r&&r.current&&s.set(r.current,t.close)}),"menu"===i?l=!0:"listbox"===i&&(l="listbox");let u=(0,n.useId)();return{triggerProps:{"aria-haspopup":l,"aria-expanded":a,"aria-controls":a?u:void 0,onPress:t.toggle},overlayProps:{id:u}}}e.s(["onCloseMap",0,s,"useCloseOnScroll",0,function(e){let{triggerRef:t,isOpen:n,onClose:r}=e;(0,o.useEffect)(()=>
9{if(!n||null===r)return;let e=e=>{let n=e.target;if(!t.current||n instanceof Node&&!n.contains(t.current)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement)return;let l=r||s.get(t.current);l&&l()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[n,r,t])}],569977),e.s(["useOverlayTrigger",0,a],749855),e.s(["useMenuTrigger",0,function(e,o,s){var u;let{type:c="menu",isDisabled:d,trigger:f="press"}=e,p=(0,n.useId)(),{triggerProps:h,overlayProps:g}=a({type:c},o,s),m=(0,i.useLocalizedStringFormatter)((u=t)&&u.__esModule?u.default:u,"@react-aria/menu"),{longPressProps:v}=(0,l.useLongPress)({isDisabled:d||"longPress"!==f,accessibilityDescription:m.format("longPressMessage"),onLongPressStart(){o.close()},onLongPress(){o.open("first")}});return delete h.onPress,{menuTriggerProps:{...h,..."press"===f?{preventFocusOnPress:!0,onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||d||((0,r.focusWithoutScrolling)(e.target),o.open("virtual"===e.pointerType?"first":null))},onPress(e){"touch"!==e.pointerType||d||((0,r.focusWithoutScrolling)(e.target),o.toggle())}}:v,id:p,onKeyDown:e=>{if(!d&&("longPress"!==f||e.altKey)&&s&&s.current)switch(e.key){case"Enter":case" ":if("longPress"===f||e.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),o.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),o.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...g,"aria-labelledby":p,autoFocus:o.focusStrategy||!0,onClose:o.close}}}],812351)},7623,e=>{"use strict";var t=e.i(325111);class n{getItemRect(e){let n=this.ref.current;if(!n)return null;let r=null!=e?(0,t.getItemElement)(this.ref,e):null;if(!r)return null;let l=n.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-l.left-n.clientLeft+n.scrollLeft,y:i.top-l.top-n.clientTop+n.scrollTop,width:i.width,height:i.height}}getContentSize(){var e,t;let n=this.ref.current;return{width:null!=(e=null==n?void 0:n.scrollWidth)?e:0,height:null!=(t=null==n?void 0:n.scrollHeight)?t:0}}getVisibleRect(){var e,t,n,r;let l=this.ref.current;return{x:null!=(e=null==l?void 0:l.scrollLeft)?e:0,y:null!=(t=null==l?void 0:l.scrollTop)?t:0,width:null!=(n=null==l?void 0:l.clientWidth)?n:0,height:null!=(r=null==l?void 0:l.clientHeight)?r:0}}constructor(e){this.ref=e}}var r=e.i(194388);e.s(["ListKeyboardDelegate",0,class{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null==(t=e.props)?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let n=e;for(;null!=n;){let e=this.collection.getItem(n);if((null==e?void 0:e.type)==="item"&&!this.isDisabled(e))return n;n=t(n)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,n){let r=e,l=this.layoutDelegate.getItemRect(r);if(!l||null==r)return null;let i=l;do{if(null==(r=t(r)))break;l=this.layoutDelegate.getItemRect(r)}while(l&&n(i,l)&&null!=r)return r}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}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){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";if(this.layoutDelegate[t])return e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e));if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"rtl"===this.direction);else return this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";if(this.layoutDelegate[t])return e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e));if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"ltr"===this.direction);else return this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);
9if(!n)return null;if(t&&!(0,r.isScrollable)(t))return this.getFirstKey();let l=e;if("horizontal"===this.orientation){let e=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>e&&null!=l;)n=null==(l=this.getKeyAbove(l))?null:this.layoutDelegate.getItemRect(l)}else{let e=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>e&&null!=l;)n=null==(l=this.getKeyAbove(l))?null:this.layoutDelegate.getItemRect(l)}return null!=l?l:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,n=this.layoutDelegate.getItemRect(e);if(!n)return null;if(t&&!(0,r.isScrollable)(t))return this.getLastKey();let l=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<e&&null!=l;)n=null==(l=this.getKeyBelow(l))?null:this.layoutDelegate.getItemRect(l)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<e&&null!=l;)n=null==(l=this.getKeyBelow(l))?null:this.layoutDelegate.getItemRect(l)}return null!=l?l:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let n=this.collection,r=t||this.getFirstKey();for(;null!=r;){let t=n.getItem(r);if(!t)break;let l=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(l,e))return r;r=this.getNextKey(r)}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.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new n(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new n(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}],7623)},242319,e=>{"use strict";var t=e.i(325111),n=e.i(11505),r=e.i(465337),l=e.i(422236),i=e.i(550127),o=e.i(780994),s=e.i(135603),a=e.i(553184),u=e.i(100664),c=e.i(973243),d=e.i(542777),f=e.i(229945),p=e.i(241780),h=e.i(990067),g=e.i(606100),m=e.i(406911),v=e.i(160990),y=e.i(562292),b=e.i(890036);e.s(["useSelectableCollection",0,function(e){let w,{selectionManager:E,keyboardDelegate:S,ref:x,autoFocus:P=!1,shouldFocusWrap:C=!1,disallowEmptySelection:T=!1,disallowSelectAll:M=!1,escapeKeyBehavior:k="clearSelection",selectOnFocus:K="replace"===E.selectionBehavior,disallowTypeAhead:L=!1,shouldUseVirtualFocus:N,allowsTabNavigation:I=!1,isVirtualized:D,scrollRef:R=x,linkBehavior:A="action"}=e,{direction:O}=(0,b.useLocale)(),F=(0,r.useRouter)(),z=(0,m.useRef)({top:0,left:0});(0,o.useEvent)(R,"scroll",D?void 0:()=>{var e,t,n,r;z.current={top:null!=(n=null==(e=R.current)?void 0:e.scrollTop)?n:0,left:null!=(r=null==(t=R.current)?void 0:t.scrollLeft)?r:0}});let j=(0,m.useRef)(!1);(0,o.useEvent)(x,a.FOCUS_EVENT,N?e=>{let{detail:t}=e;e.stopPropagation(),E.setFocused(!0),(null==t?void 0:t.focusStrategy)==="first"&&(j.current=!0)}:void 0);let B=(0,u.useEffectEvent)(()=>{var e,t;let n=null!=(t=null==(e=S.getFirstKey)?void 0:e.call(S))?t:null;if(null==n){let e=(0,c.getActiveElement)();(0,h.moveVirtualFocus)(x.current),(0,h.dispatchVirtualFocus)(e,null),E.collection.size>0&&(j.current=!1)}else E.setFocusedKey(n),j.current=!1});(0,d.useUpdateLayoutEffect)(()=>{j.current&&B()},[E.collection,B]);let _=(0,u.useEffectEvent)(()=>{E.collection.size>0&&(j.current=!1)});(0,d.useUpdateLayoutEffect)(()=>{_()},[E.focusedKey,_]),(0,o.useEvent)(x,a.CLEAR_FOCUS_EVENT,N?e=>{var t;e.stopPropagation(),E.setFocused(!1),(null==(t=e.detail)?void 0:t.clearFocusKey)&&E.setFocusedKey(null)}:void 0);let W=(0,m.useRef)(P),V=(0,m.useRef)(!1);(0,m.useEffect)(()=>{if(W.current){var e,t,n,r;let l=null;"first"===P&&(l=null!=(n=null==(e=S.getFirstKey)?void 0:e.call(S))?n:null),"last"===P&&(l=null!=(r=null==(t=S.getLastKey)?void 0:t.call(S))?r:null);let i=E.selectedKeys;if(i.size){for(let e of i)if(E.canSelectItem(e)){l=e;break}}E.setFocused(!0),E.setFocusedKey(l),null==l&&!N&&x.current&&(0,y.focusSafely)(x.current),E.collection.size>0&&(W.current=!1,V.current=!0)}});let H=(0,m.useRef)(E.focusedKey),U=(0,m.useRef)(null);(0,m.useEffect)(()=>
9{if(E.isFocused&&null!=E.focusedKey&&(E.focusedKey!==H.current||V.current)&&R.current&&x.current){let e=(0,v.getInteractionModality)(),n=(0,t.getItemElement)(x,E.focusedKey);if(!(n instanceof HTMLElement))return;("keyboard"===e||V.current)&&(U.current&&cancelAnimationFrame(U.current),U.current=requestAnimationFrame(()=>{R.current&&((0,s.scrollIntoView)(R.current,n),"virtual"!==e&&(0,s.scrollIntoViewport)(n,{containingElement:x.current}))}))}!N&&E.isFocused&&null==E.focusedKey&&null!=H.current&&x.current&&(0,y.focusSafely)(x.current),H.current=E.focusedKey,V.current=!1}),(0,m.useEffect)(()=>()=>{U.current&&cancelAnimationFrame(U.current)},[]),(0,o.useEvent)(x,"react-aria-focus-scope-restore",e=>{e.preventDefault(),E.setFocused(!0)});let $={onKeyDown:e=>{var n,r,o,s,a,u,c,d,f,h,m,v,y;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!(null==(n=x.current)?void 0:n.contains(e.target)))return;let b=(n,r)=>{if(null!=n){if(E.isLink(n)&&"selection"===A&&K&&!(0,t.isNonContiguousSelectionModifier)(e)){(0,g.flushSync)(()=>{E.setFocusedKey(n,r)});let l=(0,t.getItemElement)(x,n),i=E.getItemProps(n);l&&F.open(l,e,i.href,i.routerOptions);return}E.setFocusedKey(n,r),E.isLink(n)&&"override"===A||(e.shiftKey&&"multiple"===E.selectionMode?E.extendSelection(n):K&&!(0,t.isNonContiguousSelectionModifier)(e)&&E.replaceSelection(n))}};switch(e.key){case"ArrowDown":if(S.getKeyBelow){let t=null!=E.focusedKey?null==(r=S.getKeyBelow)?void 0:r.call(S,E.focusedKey):null==(o=S.getFirstKey)?void 0:o.call(S);null==t&&C&&(t=null==(s=S.getFirstKey)?void 0:s.call(S,E.focusedKey)),null!=t&&(e.preventDefault(),b(t))}break;case"ArrowUp":if(S.getKeyAbove){let t=null!=E.focusedKey?null==(a=S.getKeyAbove)?void 0:a.call(S,E.focusedKey):null==(u=S.getLastKey)?void 0:u.call(S);null==t&&C&&(t=null==(c=S.getLastKey)?void 0:c.call(S,E.focusedKey)),null!=t&&(e.preventDefault(),b(t))}break;case"ArrowLeft":if(S.getKeyLeftOf){let t=null!=E.focusedKey?null==(d=S.getKeyLeftOf)?void 0:d.call(S,E.focusedKey):null;null==t&&C&&(t="rtl"===O?null==(f=S.getFirstKey)?void 0:f.call(S,E.focusedKey):null==(h=S.getLastKey)?void 0:h.call(S,E.focusedKey)),null!=t&&(e.preventDefault(),b(t,"rtl"===O?"first":"last"))}break;case"ArrowRight":if(S.getKeyRightOf){let t=null!=E.focusedKey?null==(m=S.getKeyRightOf)?void 0:m.call(S,E.focusedKey):null;null==t&&C&&(t="rtl"===O?null==(v=S.getLastKey)?void 0:v.call(S,E.focusedKey):null==(y=S.getFirstKey)?void 0:y.call(S,E.focusedKey)),null!=t&&(e.preventDefault(),b(t,"rtl"===O?"last":"first"))}break;case"Home":if(S.getFirstKey){if(null===E.focusedKey&&e.shiftKey)return;e.preventDefault();let t=S.getFirstKey(E.focusedKey,(0,l.isCtrlKeyPressed)(e));E.setFocusedKey(t),null!=t&&((0,l.isCtrlKeyPressed)(e)&&e.shiftKey&&"multiple"===E.selectionMode?E.extendSelection(t):K&&E.replaceSelection(t))}break;case"End":if(S.getLastKey){if(null===E.focusedKey&&e.shiftKey)return;e.preventDefault();let t=S.getLastKey(E.focusedKey,(0,l.isCtrlKeyPressed)(e));E.setFocusedKey(t),null!=t&&((0,l.isCtrlKeyPressed)(e)&&e.shiftKey&&"multiple"===E.selectionMode?E.extendSelection(t):K&&E.replaceSelection(t))}break;case"PageDown":if(S.getKeyPageBelow&&null!=E.focusedKey){let t=S.getKeyPageBelow(E.focusedKey);null!=t&&(e.preventDefault(),b(t))}break;case"PageUp":if(S.getKeyPageAbove&&null!=E.focusedKey){let t=S.getKeyPageAbove(E.focusedKey);null!=t&&(e.preventDefault(),b(t))}break;case"a":(0,l.isCtrlKeyPressed)(e)&&"multiple"===E.selectionMode&&!0!==M&&(e.preventDefault(),E.selectAll());break;case"Escape":"clearSelection"!==k||T||0===E.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),E.clearSelection());break;case"Tab":if(!I)if(e.shiftKey)x.current.focus();else{let e,t,n=(0,p.getFocusableTreeWalker)(x.current,{tabbable:!0});do(t=n.lastChild())&&(e=t);while(t)e&&!e.contains(document.activeElement)&&(0,i.focusWithoutScrolling)(e)}}},onFocus:e=>{if(E.isFocused){e.currentTarget.contains(e.target)||E.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(E.setFocused(!0),null==E.focusedKey){var n,r,l,o;let t=e=>{null!=e&&(E.setFocusedKey(e),K&&!E.isSelected(e)&&E.replaceSelection(e))},i=e.relatedTarget;
9i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?t(null!=(l=E.lastSelectedKey)?l:null==(n=S.getLastKey)?void 0:n.call(S)):t(null!=(o=E.firstSelectedKey)?o:null==(r=S.getFirstKey)?void 0:r.call(S))}else!D&&R.current&&(R.current.scrollTop=z.current.top,R.current.scrollLeft=z.current.left);if(null!=E.focusedKey&&R.current){let e=(0,t.getItemElement)(x,E.focusedKey);e instanceof HTMLElement&&(e.contains(document.activeElement)||N||(0,i.focusWithoutScrolling)(e),"keyboard"===(0,v.getInteractionModality)()&&(0,s.scrollIntoViewport)(e,{containingElement:x.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||E.setFocused(!1)},onMouseDown(e){R.current===e.target&&e.preventDefault()}},{typeSelectProps:G}=(0,n.useTypeSelect)({keyboardDelegate:S,selectionManager:E});L||($=(0,f.mergeProps)(G,$)),N||(w=null==E.focusedKey?0:-1);let q=(0,t.useCollectionId)(E.collection);return{collectionProps:(0,f.mergeProps)($,{tabIndex:w,"data-collection":q})}}])},637506,e=>{"use strict";var t=e.i(325111),n=e.i(465337),r=e.i(871158),l=e.i(422236),i=e.i(229945),o=e.i(334178),s=e.i(562292),a=e.i(389818),u=e.i(658164),c=e.i(990067),d=e.i(406911);function f(){let e=window.event;return(null==e?void 0:e.key)==="Enter"}function p(){let e=window.event;return(null==e?void 0:e.key)===" "||(null==e?void 0:e.code)==="Space"}e.s(["useSelectableItem",0,function(e){let{id:h,selectionManager:g,key:m,ref:v,shouldSelectOnPressUp:y,shouldUseVirtualFocus:b,focus:w,isDisabled:E,onAction:S,allowsDifferentPressOrigin:x,linkBehavior:P="action"}=e,C=(0,n.useRouter)();h=(0,r.useId)(h);let T=e=>{if("keyboard"===e.pointerType&&(0,t.isNonContiguousSelectionModifier)(e))g.toggleSelection(m);else{if("none"===g.selectionMode)return;if(g.isLink(m)){if("selection"===P&&v.current){let t=g.getItemProps(m);C.open(v.current,e,t.href,t.routerOptions),g.setSelectedKeys(g.selectedKeys);return}else if("override"===P||"none"===P)return}"single"===g.selectionMode?g.isSelected(m)&&!g.disallowEmptySelection?g.toggleSelection(m):g.replaceSelection(m):e&&e.shiftKey?g.extendSelection(m):"toggle"===g.selectionBehavior||e&&((0,l.isCtrlKeyPressed)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?g.toggleSelection(m):g.replaceSelection(m)}};(0,d.useEffect)(()=>{m===g.focusedKey&&g.isFocused&&(b?(0,c.moveVirtualFocus)(v.current):w?w():document.activeElement!==v.current&&v.current&&(0,s.focusSafely)(v.current))},[v,m,g.focusedKey,g.childFocusStrategy,g.isFocused,b]),E=E||g.isDisabled(m);let M={};b||E?E&&(M.onMouseDown=e=>{e.preventDefault()}):M={tabIndex:m===g.focusedKey?0:-1,onFocus(e){e.target===v.current&&g.setFocusedKey(m)}};let k=g.isLink(m)&&"override"===P,K=S&&"action"===e.UNSTABLE_itemBehavior,L=g.isLink(m)&&"selection"!==P&&"none"!==P,N=!E&&g.canSelectItem(m)&&!k&&!K,I=(S||L)&&!E,D=I&&("replace"===g.selectionBehavior?!N:!N||g.isEmpty),R=I&&N&&"replace"===g.selectionBehavior,A=D||R,O=(0,d.useRef)(null),F=A&&N,z=(0,d.useRef)(!1),j=(0,d.useRef)(!1),B=g.getItemProps(m),_=e=>{if(S){var t;S(),null==(t=v.current)||t.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}L&&v.current&&C.open(v.current,e,B.href,B.routerOptions)},W={ref:v};if(y?(W.onPressStart=e=>{O.current=e.pointerType,z.current=F,"keyboard"===e.pointerType&&(!A||p())&&T(e)},x?(W.onPressUp=D?void 0:e=>{"mouse"===e.pointerType&&N&&T(e)},W.onPress=D?_:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&N&&T(e)}):W.onPress=e=>{D||R&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||f())&&_(e):"keyboard"!==e.pointerType&&N&&T(e)}):(W.onPressStart=e=>{O.current=e.pointerType,z.current=F,j.current=D,N&&("mouse"===e.pointerType&&!D||"keyboard"===e.pointerType&&(!I||p()))&&T(e)},W.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&A&&f()||"mouse"===e.pointerType&&j.current)&&(A?_(e):N&&T(e))}),M["data-collection"]=(0,t.getCollectionId)(g.collection),M["data-key"]=m,W.preventFocusOnPress=b,b&&(W=(0,i.mergeProps)(W,{onPressStart(e){"touch"!==e.pointerType&&(g.setFocused(!0),g.setFocusedKey(m))},onPress(e){"touch"===e.pointerType&&(g.setFocused(!0),g.setFocusedKey(m))}})),B)for(let e of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])B[e]&&(W[e]=(0,o.chain)(W[e],B[e]));let{pressProps:V,isPressed:H}=(0,a.usePress)(W),U=R?e=>{"mouse"===O.current&&(e.stopPropagation(),e.preventDefault(),_(e))}:void 0,{longPressProps:$}=(0,u.useLongPress)({isDisabled:!F,onLongPress(e){"touch"===e.pointerType&&(T(e),g.setSelectionBehavior("toggle"))}}),G="none"!==P&&g.isLink(m)?e=>{n.openLink.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,i.mergeProps)(M,N||D||b&&!E?V:{},F?$:{},{onDoubleClick:U,onDragStartCapture:e=>{"touch"===O.current&&z.current&&e.preventDefault()},onClick:G,id:h},b?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:H,isSelected:g.isSelected(m),isFocused:g.isFocused&&g.focusedKey===m,isDisabled:E,allowsSelection:N,hasAction:A}}])},472325,e=>{"use strict";var t=e.i(242319),n=e.i(7623),r=e.i(988367),l=e.i(406911);e.s(["useSelectableList",0,function(e){let{selectionManager:i,collection:o,disabledKeys:s,ref:a,keyboardDelegate:u,layoutDelegate:c}=e,d=(0,r.useCollator)({usage:"search",sensitivity:"base"}),f=i.disabledBehavior,p=(0,l.useMemo)(()=>u||new(0,n.ListKeyboardDelegate)({collection:o,disabledKeys:s,disabledBehavior:f,ref:a,collator:d,layoutDelegate:c}),[u,c,o,s,a,d,f]),{collectionProps:h}=(0,t.useSelectableCollection)({...e,ref:a,selectionManager:i,keyboardDelegate:p});return{listProps:h}}])},11505,e=>{"use strict";var t=e.i(406911);e.s(["useTypeSelect",0,function(e){let{keyboardDelegate:n,selectionManager:r,onTypeSelect:l}=e,i=(0,t.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:n.getKeyForSearch?e=>{var t;let o=1!==(t=e.key).length&&/^[A-Z]/i.test(t)?"":t;if(o&&!e.ctrlKey&&!e.metaKey&&e.currentTarget.contains(e.target)&&(0!==i.search.length||" "!==o)){if(" "===o&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=o,null!=n.getKeyForSearch){let e=n.getKeyForSearch(i.search,r.focusedKey);null==e&&(e=n.getKeyForSearch(i.search)),null!=e&&(r.setFocusedKey(e),l&&l(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},1e3)}}:void 0}}}])},325111,340801,224651,871158,e=>{"use strict";let t;function n(e){var t;if("u"<typeof window||null==window.navigator)return!1;let n=null==(t=window.navigator.userAgentData)?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function r(e){var t;return"u">typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function l(e){let t=null;return()=>(null==t&&(t=e()),t)}let i=l(function(){return r(/^Mac/i)}),o=l(function(){return r(/^iPhone/i)}),s=l(function(){return r(/^iPad/i)||i()&&navigator.maxTouchPoints>1}),a=l(function(){return o()||s()}),u=l(function(){return i()||a()}
9),c=l(function(){return n(/AppleWebKit/i)&&!d()}),d=l(function(){return n(/Chrome/i)});l(function(){return n(/Android/i)});let f=l(function(){return n(/Firefox/i)});e.s(["isAppleDevice",0,u,"isFirefox",0,f,"isIPad",0,s,"isMac",0,i,"isWebKit",0,c],340801);var p=e.i(406911);let h="u">typeof document?p.default.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,h],224651);var g=e.i(611782);let m=!!("u">typeof window&&window.document&&window.document.createElement),v=new Map;function y(e){let[n,r]=(0,p.useState)(e),l=(0,p.useRef)(null),i=(0,g.useSSRSafeId)(n),o=(0,p.useRef)(null);if(t&&t.register(o,i),m){let e=v.get(i);e&&!e.includes(l)?e.push(l):v.set(i,[l])}return h(()=>()=>{t&&t.unregister(o),v.delete(i)},[i]),(0,p.useEffect)(()=>{let e=l.current;return e&&r(e),()=>{e&&(l.current=null)}}),i}"u">typeof FinalizationRegistry&&(t=new FinalizationRegistry(e=>{v.delete(e)})),e.s(["mergeIds",0,function(e,t){if(e===t)return e;let n=v.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=v.get(t);return r?(r.forEach(t=>t.current=e),e):t},"useId",0,y],871158);let b=new WeakMap;e.s(["getCollectionId",0,function(e){return b.get(e)},"getItemElement",0,function(e,t){var n,r;let l=`[data-key="${CSS.escape(String(t))}"]`,i=null==(n=e.current)?void 0:n.dataset.collection;return i&&(l=`[data-collection="${CSS.escape(i)}"]${l}`),null==(r=e.current)?void 0:r.querySelector(l)},"isNonContiguousSelectionModifier",0,function(e){return u()?e.altKey:e.ctrlKey},"useCollectionId",0,function(e){let t=y();return b.set(e,t),t}],325111)},194388,e=>{"use strict";e.s(["isScrollable",0,function(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}])},229945,334178,e=>{"use strict";function t(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}e.s(["chain",0,t],334178);var n=e.i(871158);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var l=e.i(987762);e.s(["mergeProps",0,function(...e){let i={...e[0]};for(let o=1;o<e.length;o++){let s=e[o];for(let e in s){let o=i[e],a=s[e];"function"==typeof o&&"function"==typeof a&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?i[e]=t(o,a):("className"===e||"UNSAFE_className"===e)&&"string"==typeof o&&"string"==typeof a?i[e]=(0,l.default)(o,a):"id"===e&&o&&a?i.id=(0,n.mergeIds)(o,a):"ref"===e&&o&&a?i.ref=function(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1,l=e.map(e=>{let l=r(e,t);return n||(n="function"==typeof l),l});if(n)return()=>{l.forEach((t,n)=>{"function"==typeof t?t():r(e[n],null)})}}}(o,a):i[e]=void 0!==a?a:o}}return i}],229945)},465337,550127,422236,e=>{"use strict";function t(e){if(function(){if(null==n){n=!1;try{document.createElement("div").focus({get preventScroll(){return n=!0,!0}})}catch{}}return n}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}let n=null;e.s(["focusWithoutScrolling",0,t],550127);var r=e.i(340801),l=e.i(406911);let i=(0,l.createContext)({isNative:!0,open:function(e,t){if(e instanceof HTMLAnchorElement)o(e,t);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),o(n,t),e.removeChild(n)}},useHref:e=>e});function o(e,n,l=!0){var i,s;let{metaKey:a,ctrlKey:u,altKey:c,shiftKey:d}=n;(0,r.isFirefox)()&&(null==(s=window.event)||null==(i=s.type)?void 0:i.startsWith("key"))&&"_blank"===e.target&&((0,r.isMac)()?a=!0:u=!0);let f=(0,r.isWebKit)()&&(0,r.isMac)()&&!(0,r.isIPad)()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:u,altKey:c,shiftKey:d}):new MouseEvent("click",{metaKey:a,ctrlKey:u,altKey:c,shiftKey:d,detail:1,bubbles:!0,cancelable:!0});o.isOpening=l,t(e),e.dispatchEvent(f),o.isOpening=!1}o.isOpening=!1,e.s(["openLink",0,o,"useRouter",0,function(){return(0,l.useContext)(i)}],465337),e.s(["isCtrlKeyPressed",0,function(e){return(0,r.isMac)()?e.metaKey:e.ctrlKey}],422236)},135603,973243,553184,542777,e=>{"use strict";var t=e.i(194388),n=e.i(221425);function r(e,t){if(!(0,n.shadowDOM)())return!!t&&!!e&&e.contains(t);if(!e||!t)return!1;let r=t;for(;null!==r;){if(r===e)return!0;r="SLOT"===r.tagName&&r.assignedSlot?r.assignedSlot.parentNode:!function(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}(r)?r.parentNode:r.host}return!1}function l(e,t){let n=i(e,t,"left"),r=i(e,t,"top"),l=t.offsetWidth,o=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,{borderTopWidth:u,borderLeftWidth:c,scrollPaddingTop:d,scrollPaddingRight:f,scrollPaddingBottom:p,scrollPaddingLeft:h}=getComputedStyle(e),g=s+parseInt(c,10),m=a+parseInt(u,10),v=g+e.clientWidth,y=m+e.clientHeight,b=parseInt(d,10)||0,w=parseInt(p,10)||0,E=parseInt(f,10)||0,S=parseInt(h,10)||0;n<=s+S?s=n-parseInt(c,10)-S:n+l>v-E&&(s+=n+l-v+E),r<=m+b?a=r-parseInt(u,10)-b:r+o>y-w&&(a+=r+o-y+w),e.scrollLeft=s,e.scrollTop=a}
9function i(e,t,n){let l="left"===n?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[l],t.offsetParent!==e);){if(r(t.offsetParent,e)){i-=e[l];break}t=t.offsetParent}return i}e.s(["getActiveElement",0,(e=document)=>{var t;if(!(0,n.shadowDOM)())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(null==(t=r.shadowRoot)?void 0:t.activeElement);)r=r.shadowRoot.activeElement;return r},"nodeContains",0,r],973243),e.s(["scrollIntoView",0,l,"scrollIntoViewport",0,function(e,n){if(e&&r(document,e)){let r=document.scrollingElement||document.documentElement,u="hidden"===window.getComputedStyle(r).overflow;if(u){let n=function(e){let n=[];for(;e&&e!==document.documentElement;)(0,t.isScrollable)(e,void 0)&&n.push(e),e=e.parentElement;return n}(e);for(let t of(u||n.push(r),n))l(t,e)}else{var i,o,s,a;let{left:t,top:r}=e.getBoundingClientRect();null==e||null==(i=e.scrollIntoView)||i.call(e,{block:"nearest"});let{left:l,top:u}=e.getBoundingClientRect();(Math.abs(t-l)>1||Math.abs(r-u)>1)&&(null==n||null==(s=n.containingElement)||null==(o=s.scrollIntoView)||o.call(s,{block:"center",inline:"center"}),null==(a=e.scrollIntoView)||a.call(e,{block:"nearest"}))}}}],135603),e.s(["CLEAR_FOCUS_EVENT",0,"react-aria-clear-focus","FOCUS_EVENT",0,"react-aria-focus"],553184);var o=e.i(224651),s=e.i(406911);e.s(["useUpdateLayoutEffect",0,function(e,t){let n=(0,s.useRef)(!0),r=(0,s.useRef)(null);(0,o.useLayoutEffect)(()=>(n.current=!0,()=>{n.current=!1}),[]),(0,o.useLayoutEffect)(()=>{n.current?n.current=!1:(!r.current||t.some((e,t)=>!Object.is(e,r[t])))&&e(),r.current=t},t)}],542777)},780994,100664,e=>{"use strict";var t,n=e.i(224651),r=e.i(406911);let l=null!=(t=r.default.useInsertionEffect)?t:n.useLayoutEffect;function i(e){let t=(0,r.useRef)(null);return l(()=>{t.current=e},[e]),(0,r.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}e.s(["useEffectEvent",0,i],100664),e.s(["useEvent",0,function(e,t,n,l){let o=i(n),s=null==n;(0,r.useEffect)(()=>{if(s||!e.current)return;let n=e.current;return n.addEventListener(t,o,l),()=>{n.removeEventListener(t,o,l)}},[e,t,l,s])}],780994)},47898,e=>{"use strict";let t;function n(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}var r,l=e.i(406911);let i="u">typeof document?l.default.useLayoutEffect:()=>{};e.i(611782),"u">typeof window&&window.document&&window.document.createElement;let o=new Map;"u">typeof FinalizationRegistry&&new FinalizationRegistry(e=>{o.delete(e)});function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var a=e.i(987762);function u(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let l=e[r];for(let e in l){let r=t[e],i=l[e];"function"==typeof r&&"function"==typeof i&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=n(r,i):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof i?t[e]=(0,a.default)(r,i):"id"===e&&r&&i?t.id=function(e,t){if(e===t)return e;let n=o.get(e);if(n)return n.forEach(e=>e.current=t),t;let r=o.get(t);return r?(r.forEach(t=>t.current=e),e):t}(r,i):"ref"===e&&r&&i?t.ref=function(...e){return 1===e.length&&e[0]?e[0]:t=>{let n=!1,r=e.map(e=>{let r=s(e,t);return n||(n="function"==typeof r),r});if(n)return()=>{r.forEach((t,n)=>{"function"==typeof t?t():s(e[n],null)})}}}(r,i):t[e]=void 0!==i?i:r}}return t}let c=new Set(["id"]),d=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),f=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),p=new Set(["dir","lang","hidden","inert","translate"]),h=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),g=/^(data-.*)$/,m=null!=(r=l.default.useInsertionEffect)?r:i;function v(e){let t=(0,l.useRef)(null);return m(()=>{t.current=e},[e]),(0,l.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)}
9,[])}let y=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},b=e=>e&&"window"in e&&e.window===e?e:y(e).defaultView||window,w="u">typeof Element&&"checkVisibility"in Element.prototype,E=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],S=E.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";function x(e){if(function(){if(null==P){P=!1;try{document.createElement("div").focus({get preventScroll(){return P=!0,!0}})}catch{}}return P}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}E.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),E.join(':not([hidden]):not([tabindex="-1"]),');let P=null;function C(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}let T=!1;function M(e){var t;if("u"<typeof window||null==window.navigator)return!1;let n=null==(t=window.navigator.userAgentData)?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function k(e){var t;return"u">typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function K(e){let t=null;return()=>(null==t&&(t=e()),t)}let L=K(function(){return k(/^Mac/i)}),N=K(function(){return k(/^iPhone/i)}),I=K(function(){return k(/^iPad/i)||L()&&navigator.maxTouchPoints>1}),D=K(function(){return N()||I()});K(function(){return L()||D()});let R=K(function(){return M(/AppleWebKit/i)&&!A()}),A=K(function(){return M(/Chrome/i)}),O=K(function(){return M(/Android/i)}),F=K(function(){return M(/Firefox/i)}),z=new Map,j=new Set;function B(){if("u"<typeof window)return;function e(e){return"propertyName"in e}let t=n=>{if(!e(n)||!n.target)return;let r=z.get(n.target);if(r&&(r.delete(n.propertyName),0===r.size&&(n.target.removeEventListener("transitioncancel",t),z.delete(n.target)),0===z.size)){for(let e of j)e();j.clear()}};document.body.addEventListener("transitionrun",n=>{if(!e(n)||!n.target)return;let r=z.get(n.target);r||(r=new Set,z.set(n.target,r),n.target.addEventListener("transitioncancel",t,{once:!0})),r.add(n.propertyName)}),document.body.addEventListener("transitionend",t)}function _(e){requestAnimationFrame(()=>{for(let[e]of z)"isConnected"in e&&!e.isConnected&&z.delete(e);0===z.size?e():j.add(e)})}"u">typeof document&&("loading"!==document.readyState?B():document.addEventListener("DOMContentLoaded",B));let W="default",V="",H=new WeakMap;function U(e){if(D())"disabled"===W&&(W="restoring",setTimeout(()=>{_(()=>{if("restoring"===W){let t=y(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=V||""),V="",W="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&H.has(e)){let t=H.get(e),n="userSelect"in e.style?"userSelect":"webkitUserSelect";"none"===e.style[n]&&(e.style[n]=t),""===e.getAttribute("style")&&e.removeAttribute("style"),H.delete(e)}}let $=l.default.createContext({register:()=>{}});$.displayName="PressResponderContext";var G=e.i(150133),q=e.i(598324),Y=e.i(77487);function X(e,t){i(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}var Z=e.i(221425);function J(e,t){if(!(0,Z.shadowDOM)())return!!t&&!!e&&e.contains(t);if(!e||!t)return!1;let n=t;for(;null!==n;){if(n===e)return!0;n="SLOT"===n.tagName&&n.assignedSlot?n.assignedSlot.parentNode:!function(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}(n)?n.parentNode:n.host}return!1}let Q=(e=document)=>{var t;if(!(0,Z.shadowDOM)())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(null==(t=n.shadowRoot)?void 0:t.activeElement);)n=n.shadowRoot.activeElement;return n};function ee(e){return(0,Z.shadowDOM)()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function et(e,t,n=!0){var r,l;let{metaKey:i,ctrlKey:o,altKey:s,shiftKey:a}=t;F()&&(null==(l=window.event)||null==(r=l.type)?void 0:r.startsWith("key"))&&"_blank"===e.target&&(L()?i=!0:o=!0);let u=R()&&L()&&!I()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:o,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:i,ctrlKey:o,altKey:s,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});et.isOpening=n,x(e),e.dispatchEvent(u),et.isOpening=!1}function en(e){return""===e.pointerType&&!!e.isTrusted||(O()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}et.isOpening=!1,e.i(606100);var er=new WeakMap;
9class el{continuePropagation(){(0,Y._)(this,er,!1)}get shouldStopPropagation(){return(0,G._)(this,er)}constructor(e,t,n,r){var l;(0,q._)(this,er,{writable:!0,value:void 0}),(0,Y._)(this,er,!0);let i=null!=(l=null==r?void 0:r.target)?l:n.currentTarget;const o=null==i?void 0:i.getBoundingClientRect();let s,a=0,u,c=null;null!=n.clientX&&null!=n.clientY&&(u=n.clientX,c=n.clientY),o&&(null!=u&&null!=c?(s=u-o.left,a=c-o.top):(s=o.width/2,a=o.height/2)),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=s,this.y=a,this.key=n.key}}let ei=Symbol("linkClicked"),eo="react-aria-pressable-style",es="data-react-aria-pressable";function ea(e){let t,r,o,s,{onPress:a,onPressChange:c,onPressStart:d,onPressEnd:f,onPressUp:p,onClick:h,isDisabled:g,isPressed:m,preventFocusOnPress:E,shouldCancelOnPointerExit:P,allowTextSelectionOnPress:M,ref:k,...K}=function(e){let t=(0,l.useContext)($);if(t){let{register:n,ref:r,...l}=t;e=u(l,e),n()}return X(t,e.ref),e}(e),[N,I]=(0,l.useState)(!1),R=(0,l.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:A,removeAllGlobalListeners:F,removeGlobalListener:z}=(t=(0,l.useRef)(new Map),r=(0,l.useCallback)((e,n,r,l)=>{let i=(null==l?void 0:l.once)?(...e)=>{t.current.delete(r),r(...e)}:r;t.current.set(r,{type:n,eventTarget:e,fn:i,options:l}),e.addEventListener(n,i,l)},[]),o=(0,l.useCallback)((e,n,r,l)=>{var i;let o=(null==(i=t.current.get(r))?void 0:i.fn)||r;e.removeEventListener(n,o,l),t.current.delete(r)},[]),s=(0,l.useCallback)(()=>{t.current.forEach((e,t)=>{o(e.eventTarget,e.type,t,e.options)})},[o]),(0,l.useEffect)(()=>s,[s]),{addGlobalListener:r,removeGlobalListener:o,removeAllGlobalListeners:s}),j=(0,l.useCallback)((e,t)=>{let n=R.current;if(g||n.didFirePressStart)return!1;let r=!0;if(n.isTriggeringEvent=!0,d){let n=new el("pressstart",t,e);d(n),r=n.shouldStopPropagation}return c&&c(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,I(!0),r},[g,d,c]),B=(0,l.useCallback)((e,t,n=!0)=>{let r=R.current;if(!r.didFirePressStart)return!1;r.didFirePressStart=!1,r.isTriggeringEvent=!0;let l=!0;if(f){let n=new el("pressend",t,e);f(n),l=n.shouldStopPropagation}if(c&&c(!1),I(!1),a&&n&&!g){let n=new el("press",t,e);a(n),l&&(l=n.shouldStopPropagation)}return r.isTriggeringEvent=!1,l},[g,f,c,a]),_=v(B),G=(0,l.useCallback)((e,t)=>{let n=R.current;if(g)return!1;if(p){n.isTriggeringEvent=!0;let r=new el("pressup",t,e);return p(r),n.isTriggeringEvent=!1,r.shouldStopPropagation}return!0},[g,p]),q=v(G),Y=(0,l.useCallback)(e=>{let t=R.current;if(t.isPressed&&t.target){for(let n of(t.didFirePressStart&&null!=t.pointerType&&B(ed(t.target,e),t.pointerType,!1),t.isPressed=!1,ev(null),t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,F(),M||U(t.target),t.disposables))n();t.disposables=[]}},[M,F,B]),Z=v(Y),Q=(0,l.useCallback)(e=>{P&&Y(e)},[P,Y]),er=(0,l.useCallback)(e=>{g||null==h||h(e)},[g,h]),ea=(0,l.useCallback)((e,t)=>{if(!g&&h){let n=new MouseEvent("click",e);Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t}),h(C(n))}},[g,h]),ep=v(ea),[eh,eg]=(0,l.useState)(!1);i(()=>{let e=R.current;if(eh){let t=e.target,r=n(n=>{t&&ec(n,t)&&!n.repeat&&J(t,ee(n))&&e.target&&q(ed(e.target,n),"keyboard")},t=>{var n,r,l;if(e.isPressed&&e.target&&ec(t,e.target)){ef(ee(t),t.key)&&t.preventDefault();let n=ee(t),l=J(e.target,ee(t));_(ed(e.target,t),"keyboard",l),l&&ep(t,e.target),F(),"Enter"!==t.key&&eu(e.target)&&J(e.target,n)&&!t[ei]&&(t[ei]=!0,et(e.target,t,!1)),e.isPressed=!1,eg(!1),null==(r=e.metaKeyEvents)||r.delete(t.key)}else if("Meta"===t.key&&(null==(n=e.metaKeyEvents)?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null==(l=e.target)||l.dispatchEvent(new KeyboardEvent("keyup",n))}});return A(y(e.target),"keyup",r,!0),()=>{z(y(e.target),"keyup",r,!0)}}},[eh,A,F,z]);let[em,ev]=(0,l.useState)(null);i(()=>{let e=R.current;if("pointer"===em){let t=t=>{if(t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target){if(J(e.target,ee(t))&&null!=e.pointerType){let n=!1,r=setTimeout(()=>{e.isPressed&&e.target instanceof HTMLElement&&(n?Z(t):(x(e.target),e.target.click()))},80);A(t.currentTarget,"click",()=>n=!0,!0),e.disposables.push(()=>clearTimeout(r))}else Z(t);e.isOverTarget=!1}},n=e=>{Z(e)};return A(y(e.target),"pointerup",t,!1),A(y(e.target),"pointercancel",n,!1),()=>{z(y(e.target),"pointerup",t,!1),z(y(e.target),"pointercancel",n,!1)}}},[em,A,z]);let ey=(0,l.useMemo)(()=>{let e=R.current,t={onKeyDown(t){if(ec(t.nativeEvent,t.currentTarget)&&J(t.currentTarget,ee(t.nativeEvent))){var n;ef(ee(t.nativeEvent),t.key)&&t.preventDefault();let r=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,eg(!0),e.pointerType="keyboard",r=j(t,"keyboard")),r&&t.stopPropagation(),t.metaKey&&L()&&(null==(n=e.metaKeyEvents)||n.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||J(t.currentTarget,ee(t.nativeEvent)))&&t&&0===t.button&&!e.isTriggeringEvent&&!et.isOpening){let n=!0;if(g&&t.preventDefault(),!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||en(t.nativeEvent))){let e=j(t,"virtual"),r=G(t,"virtual"),l=B(t,"virtual");er(t),n=e&&r&&l}else if(e.isPressed&&"keyboard"!==e.pointerType){let r=e.pointerType||t.nativeEvent.pointerType||"virtual",l=G(ed(t.currentTarget,t),r),i=B(ed(t.currentTarget,t),r,!0);n=l&&i,e.isOverTarget=!1,er(t),Y(t)}e.ignoreEmulatedMouseEvents=!1,n&&t.stopPropagation()}}};return"u">typeof PointerEvent&&(t.onPointerDown=t=>{var n;if(0!==t.button||!J(t.currentTarget,ee(t.nativeEvent)))return;if(n=t.nativeEvent,!O()&&0===n.width&&0===n.height||1===n.width&&1===n.height&&0===n.pressure&&0===n.detail&&"mouse"===n.pointerType){e.pointerType="virtual";return}e.pointerType=t.pointerType;let r=!0;if(!e.isPressed){e.isPressed=!0,ev("pointer"),e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,M||function(e){if(D()){if("default"===W){let t=y(e);V=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}W="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";H.set(e,e.style[t]),e.style[t]="none"}}(e.target),r=j(t,e.pointerType);let n=ee(t.nativeEvent);"releasePointerCapture"in n&&("hasPointerCapture"in n?n.hasPointerCapture(t.pointerId)&&n.releasePointerCapture(t.pointerId):n.releasePointerCapture(t.pointerId))}r&&t.stopPropagation()},t.onMouseDown=t=>{if(J(t.currentTarget,ee(t.nativeEvent))&&0===t.button){if(E){let n=function(e){for(var t;e&&!((t=e).matches(S)&&function e(t,n){return w?t.checkVisibility({visibilityProperty:!0})&&!t.closest("[data-react-aria-prevent-focus]"):"#comment"!==t.nodeName&&function(e){let t=b(e);
9if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,l="none"!==n&&"hidden"!==r&&"collapse"!==r;if(l){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:r}=t(e);l="none"!==n&&"hidden"!==r&&"collapse"!==r}return l}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!n||"SUMMARY"===n.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(t)&&!function(e){let t=e;for(;null!=t;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}(t));)e=e.parentElement;let n=b(e),r=n.document.activeElement;if(!r||r===e)return;T=!0;let l=!1,i=e=>{(e.target===r||l)&&e.stopImmediatePropagation()},o=t=>{(t.target===r||l)&&(t.stopImmediatePropagation(),e||l||(l=!0,x(r),u()))},s=t=>{(t.target===e||l)&&t.stopImmediatePropagation()},a=t=>{(t.target===e||l)&&(t.stopImmediatePropagation(),l||(l=!0,x(r),u()))};n.addEventListener("blur",i,!0),n.addEventListener("focusout",o,!0),n.addEventListener("focusin",a,!0),n.addEventListener("focus",s,!0);let u=()=>{cancelAnimationFrame(c),n.removeEventListener("blur",i,!0),n.removeEventListener("focusout",o,!0),n.removeEventListener("focusin",a,!0),n.removeEventListener("focus",s,!0),T=!1,l=!1},c=requestAnimationFrame(u);return u}(t.target);n&&e.disposables.push(n)}t.stopPropagation()}},t.onPointerUp=t=>{J(t.currentTarget,ee(t.nativeEvent))&&"virtual"!==e.pointerType&&(0!==t.button||e.isPressed||G(t,e.pointerType||t.pointerType))},t.onPointerEnter=t=>{t.pointerId===e.activePointerId&&e.target&&!e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!0,j(ed(e.target,t),e.pointerType))},t.onPointerLeave=t=>{t.pointerId===e.activePointerId&&e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,B(ed(e.target,t),e.pointerType,!1),Q(t))},t.onDragStart=e=>{J(e.currentTarget,ee(e.nativeEvent))&&Y(e)}),t},[g,E,F,M,Y,Q,B,j,G,er,ea]);return(0,l.useEffect)(()=>{if(!k)return;let e=y(k.current);if(!e||!e.head||e.getElementById(eo))return;let t=e.createElement("style");t.id=eo,t.textContent=`
10@layer {
11  [${es}] {
12    touch-action: pan-x pan-y pinch-zoom;
13  }
14}
15    `.trim(),e.head.prepend(t)},[k]),(0,l.useEffect)(()=>{let e=R.current;return()=>{var t;for(let n of(M||U(null!=(t=e.target)?t:void 0),e.disposables))n();e.disposables=[]}},[M]),{isPressed:m||N,pressProps:u(K,ey,{[es]:!0})}}function eu(e){return"A"===e.tagName&&e.hasAttribute("href")}function ec(e,t){let{key:n,code:r}=e,l=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===r)&&!(t instanceof b(t).HTMLInputElement&&!eh(t,n)||t instanceof b(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===l||!l&&eu(t))&&"Enter"!==n)}function ed(e,t){let n=t.clientX,r=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:n,clientY:r,key:t.key}}function ef(e,t){return e instanceof HTMLInputElement?!eh(e,t):!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!eu(e))}let ep=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function eh(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:ep.has(e.type)}let eg=null,em=new Set,ev=new Map,ey=!1,eb=!1;function ew(e,t){for(let n of em)n(e,t)}function eE(e){ey=!0,et.isOpening||e.metaKey||!L()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(eg="keyboard",ew("keyboard",e))}function eS(e){eg="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(ey=!0,ew("pointer",e))}function ex(e){!et.isOpening&&en(e)&&(ey=!0,eg="virtual")}function eP(e){e.target!==window&&e.target!==document&&!T&&e.isTrusted&&(ey||eb||(eg="virtual",ew("virtual",e)),ey=!1,eb=!1)}function eC(){T||(ey=!1,eb=!0)}function eT(e){if("u"<typeof window||"u"<typeof document||ev.get(b(e)))return;let t=b(e),n=y(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){ey=!0,r.apply(this,arguments)},n.addEventListener("keydown",eE,!0),n.addEventListener("keyup",eE,!0),n.addEventListener("click",ex,!0),t.addEventListener("focus",eP,!0),t.addEventListener("blur",eC,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",eS,!0),n.addEventListener("pointermove",eS,!0),n.addEventListener("pointerup",eS,!0)),t.addEventListener("beforeunload",()=>{eM(e)},{once:!0}),ev.set(t,{focus:r})}let eM=(e,t)=>{let n=b(e),r=y(e);t&&r.removeEventListener("DOMContentLoaded",t),ev.has(n)&&(n.HTMLElement.prototype.focu
15s=ev.get(n).focus,r.removeEventListener("keydown",eE,!0),r.removeEventListener("keyup",eE,!0),r.removeEventListener("click",ex,!0),n.removeEventListener("focus",eP,!0),n.removeEventListener("blur",eC,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",eS,!0),r.removeEventListener("pointermove",eS,!0),r.removeEventListener("pointerup",eS,!0)),ev.delete(n))};function ek(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){t=!0},continuePropagation(){t=!1},isPropagationStopped:()=>t}),t&&n.stopPropagation()}}"u">typeof document&&("loading"!==(t=y(void 0)).readyState?eT(void 0):t.addEventListener("DOMContentLoaded",()=>{eT(void 0)}));let eK=l.default.createContext(null);l.default.forwardRef(function(e,t){var n;let r,i,o,{children:s,...a}=e,u=(n=t,r=(0,l.useRef)(null),i=(0,l.useRef)(void 0),o=(0,l.useCallback)(e=>{if("function"==typeof n){let t=n(e);return()=>{"function"==typeof t?t():n(null)}}if(n)return n.current=e,()=>{n.current=null}},[n]),(0,l.useMemo)(()=>({get current(){return r.current},set current(value){r.current=value,i.current&&(i.current(),i.current=void 0),null!=value&&(i.current=o(value))}}),[o])),c={...a,ref:u};return l.default.createElement(eK.Provider,{value:c},s)}),e.s(["useToggle",0,function(e,t,n){var r,o;let s,{isDisabled:a=!1,isReadOnly:m=!1,value:b,name:w,form:E,children:S,"aria-label":P,"aria-labelledby":T,validationState:M="valid",isInvalid:k,onPressStart:K,onPressEnd:L,onPressChange:N,onPress:I,onPressUp:D,onClick:R}=e,{pressProps:A,isPressed:O}=ea({onPressStart:K,onPressEnd:L,onPressChange:N,onPress:I,onPressUp:D,onClick:R,isDisabled:a}),{pressProps:F,isPressed:z}=ea({onPressStart:K,onPressEnd:L,onPressChange:N,onPressUp:D,onClick:R,onPress(e){var r;null==I||I(e),t.toggle(),null==(r=n.current)||r.focus()},isDisabled:a||m}),{focusableProps:j}=function(e,t){let{focusProps:n}=function(e){let t,{isDisabled:n,onFocus:r,onBlur:o,onFocusChange:s}=e,a=(0,l.useCallback)(e=>{if(e.target===e.currentTarget)return o&&o(e),s&&s(!1),!0},[o,s]),u=(t=(0,l.useRef)({isFocused:!1,observer:null}),i(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,l.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target;n.addEventListener("focusout",e=>{if(t.current.isFocused=!1,n.disabled){let t=C(e);null==a||a(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null==(e=t.current.observer)||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[a])),c=(0,l.useCallback)(e=>{let t=y(e.target),n=t?Q(t):Q();e.target===e.currentTarget&&n===ee(e.nativeEvent)&&(r&&r(e),s&&s(!0),u(e))},[s,r,u]);return{focusProps:{onFocus:!n&&(r||s||o)?c:void 0,onBlur:!n&&(o||s)?a:void 0}}}(e),{keyboardProps:r}={keyboardProps:e.isDisabled?{}:{onKeyDown:ek(e.onKeyDown),onKeyUp:ek(e.onKeyUp)}},o=u(n,r),s=function(e){let t=(0,l.useContext)(eK)||{};X(t,e);let{ref:n,...r}=t;return r}(t),a=e.isDisabled?{}:s,c=(0,l.useRef)(e.autoFocus);(0,l.useEffect)(()=>{c.current&&t.current&&function(e){let t=y(e);if("virtual"===eg){let n=Q(t);_(()=>{let r=Q(t);(r===n||r===t.body)&&e.isConnected&&x(e)})}else x(e)}(t.current),c.current=!1},[t]);let d=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(d=void 0),{focusableProps:u({...o,tabIndex:d},a)}}(e,n),B=u(A,j),W=function(e,t={}){let{labelable:n,isLink:r,global:l,events:i=l,propNames:o}=t,s={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(c.has(t)||n&&d.has(t)||r&&f.has(t)||l&&p.has(t)||i&&(h.has(t)||t.endsWith("Capture")&&h.has(t.slice(0,-7)))||(null==o?void 0:o.has(t))||g.test(t))&&(s[t]=e[t]);return s}(e,{labelable:!0});return r=t.defaultSelected,o=t.setSelected,s=v(()=>{o&&o(r)}),(0,l.useEffect)(()=>{var e;let t=null==n||null==(e=n.current)?void 0:e.form;
15return null==t||t.addEventListener("reset",s),()=>{null==t||t.removeEventListener("reset",s)}},[n]),{labelProps:u(F,{onClick:e=>e.preventDefault()}),inputProps:u(W,{"aria-invalid":k||"invalid"===M||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":m||void 0,onChange:e=>{e.stopPropagation(),t.setSelected(e.target.checked)},disabled:a,...null==b?{}:{value:b},name:w,form:E,type:"checkbox",...B}),isSelected:t.isSelected,isPressed:O||z,isDisabled:a,isReadOnly:m,isInvalid:k||"invalid"===M}}],47898)},781482,e=>{"use strict";var t=e.i(19103);e.s(["useLabels",0,function(e,n){let{id:r,"aria-label":l,"aria-labelledby":i}=e;return r=(0,t.useId)(r),i&&l?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),l||i||!n||(l=n),{id:r,"aria-label":l,"aria-labelledby":i}}])},709181,e=>{"use strict";var t=e.i(406911);function n(e){return null}n.getCollectionNode=function*(e,n){var r;let{childItems:l,title:i,children:o}=e,s=e.title||e.children,a=e.textValue||("string"==typeof s?s:"")||e["aria-label"]||"";yield{type:"item",props:e,rendered:s,textValue:a,"aria-label":e["aria-label"],hasChildNodes:null!=(r=e).hasChildItems?r.hasChildItems:!!(r.childItems||r.title&&t.default.Children.count(r.children)>0),*childNodes(){if(l)for(let e of l)yield{type:"item",value:e};else if(i){let e=[];t.default.Children.forEach(o,t=>{e.push({type:"item",element:t})}),yield*e}}}},e.s(["BaseItem",0,n],709181)},530734,e=>{"use strict";class t{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let n=this.keyMap.get(e);return n&&null!=(t=n.prevKey)?t:null}getKeyAfter(e){var t;let n=this.keyMap.get(e);return n&&null!=(t=n.nextKey)?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!=(t=this.keyMap.get(e))?t:null}at(e){let 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){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)n(t)};for(let t of e)n(t);let r=null,l=0,i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=l++),("section"===t.type||"item"===t.type)&&i++,(r=t).nextKey=void 0;this._size=i,this.lastKey=null!=(t=null==r?void 0:r.key)?t:null}}e.s(["ListCollection",0,t])},103811,e=>{"use strict";var t=e.i(530734),n=e.i(481959),r=e.i(424901),l=e.i(406911),i=e.i(679601);e.s(["useListState",0,function(e){var o,s;let a,{filter:u,layoutDelegate:c}=e,d=(0,n.useMultipleSelectionState)(e),f=(0,l.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),p=(0,l.useCallback)(e=>new(0,t.ListCollection)(u?u(e):e),[u]),h=(0,l.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),g=(0,i.useCollection)(e,p,h),m=(0,l.useMemo)(()=>new(0,r.SelectionManager)(g,d,{layoutDelegate:c}),[g,d,c]);return o=g,s=m,a=(0,l.useRef)(null),(0,l.useEffect)(()=>{if(null!=s.focusedKey&&!o.getItem(s.focusedKey)&&a.current){var e,t,n,r,l,i,u;let c=a.current.getItem(s.focusedKey),d=[...a.current.getKeys()].map(e=>{let t=a.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),f=[...o.getKeys()].map(e=>{let t=o.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),p=(null!=(e=null==d?void 0:d.length)?e:0)-(null!=(t=null==f?void 0:f.length)?t:0),h=Math.min(p>1?Math.max((null!=(n=null==c?void 0:c.index)?n:0)-p+1,0):null!=(r=null==c?void 0:c.index)?r:0,(null!=(l=null==f?void 0:f.length)?l:0)-1),g=null,m=!1;for(;h>=0;){if(!s.isDisabled(f[h].key)){g=f[h];break}h<f.length-1&&!m?h++:(m=!0,h>(null!=(i=null==c?void 0:c.index)?i:0)&&(h=null!=(u=null==c?void 0:c.index)?u:0),h--)}s.setFocusedKey(g?g.key:null)}a.current=o},[o,s]),{collection:g,disabledKeys:f,selectionManager:m}}])},481959,424901,679601,e=>{"use strict";class t extends Set{constructor(e,n,r){super(e),e instanceof t?(this.anchorKey=null!=n?n:e.anchorKey,this.currentKey=null!=r?r:e.currentKey):(this.anchorKey=null!=n?n:null,this.currentKey=null!=r?r:null)}}var n,r=e.i(406911);let l="u">typeof document?null!=(n=r.default.useInsertionEffect)?n:r.default.useLayoutEffect:()=>{};function i(e,n){return e?"all"===e?"all":new t(e):n}function o(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...s(e,t),t],l=[...s(e,n),n],i=r.slice(0,l.length).findIndex((e,t)=>e!==l[t]);return -1!==i?(t=r[i],n=l[i],t.index-n.index):r.findIndex(e=>e===n)>=0?1:(l.findIndex(e=>e===t),-1)}function s(e,t){let n=[],r=t;for(;(null==r?void 0:r.parentKey)!=null;)(r=e.getItem(r.parentKey))&&n.unshift(r);return n}e.s(["useMultipleSelectionState",0,function(e){let{selectionMode:n="none",disallowEmptySelection:o=!1,allowDuplicateSelectionEvents:s,selectionBehavior:a="toggle",disabledBehavior:u="all"}=e,c=(0,r.useRef)(!1),[,d]=(0,r.useState)(!1),f=(0,r.useRef)(null),p=(0,r.useRef)(null),[,h]=(0,r.useState)(null),[g,m]=function(e,t,n){let[i,o]=(0,r.useState)(e||t),s=(0,r.useRef)(i),a=(0,r.useRef)(void 0!==e),u=void 0!==e;(0,r.useEffect)(()=>{a.current,a.current=u},[u]);let c=u?e:i;l(()=>{s.current=c});let[,d]=(0,r.useReducer)(()=>({}),{});return[c,(0,r.useCallback)((e,...t)=>{let r="function"==typeof e?e(s.current):e;Object.is(s.current,r)||(s.current=r,o(r),d(),null==n||n(r,...t))},[n])]}((0,r.useMemo)(()=>i(e.selectedKeys),[e.selectedKeys]),(0,r.useMemo)(()=>i(e.defaultSelectedKeys,new t),[e.defaultSelectedKeys]),e.onSelectionChange),v=(0,r.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[y,b]=(0,r.useState)(a);"replace"===a&&"toggle"===y&&"object"==typeof g&&0===g.size&&b("replace");let w=(0,r.useRef)(a);return(0,r.useEffect)(()=>{a!==w.current&&(b(a),w.current=a)},[a]),{selectionMode:n,disallowEmptySelection:o,selectionBehavior:y,setSelectionBehavior:b,get isFocused(){return c.current},setFocused(e){c.current=e,d(e)},get focusedKey(){return f.current},get childFocusStrategy(){return p.current},setFocusedKey(e,t="first"){f.current=e,p.current=t,h(e)},selectedKeys:g,setSelectedKeys(e){(s||!function(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}(e,g))&&m(e)},disabledKeys:v,disabledBehavior:u}}],481959),e.s(["SelectionManager",0,class e{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){if("none"===this.state.selectionMode)return!1;let t=this.getKey(e);return null!=t&&("all"===this.state.selectedKeys?this.canSelectItem(t):this.state.selectedKeys.has(t))}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;
15if(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(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||n&&0>o(this.collection,n,t))&&(t=n)}return null!=(e=null==t?void 0:t.key)?e:null}get lastSelectedKey(){var e;let t=null;for(let e of this.state.selectedKeys){let n=this.collection.getItem(e);(!t||n&&o(this.collection,n,t)>0)&&(t=n)}return null!=(e=null==t?void 0:t.key)?e:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let n;if("none"===this.selectionMode)return;if("single"===this.selectionMode)return void this.replaceSelection(e);let r=this.getKey(e);if(null!=r){if("all"===this.state.selectedKeys)n=new t([r],r,r);else{var l,i;let e=this.state.selectedKeys,o=null!=(l=e.anchorKey)?l:r;for(let l of(n=new t(e,o,r),this.getKeyRange(o,null!=(i=e.currentKey)?i:r)))n.delete(l);for(let e of this.getKeyRange(r,o))this.canSelectItem(e)&&n.add(e)}this.state.setSelectedKeys(n)}}getKeyRange(e,t){let n=this.collection.getItem(e),r=this.collection.getItem(t);return n&&r?0>=o(this.collection,n,r)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var n;if(null==(n=this.layoutDelegate)?void 0:n.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let r=[],l=e;for(;null!=l;){let e=this.collection.getItem(l);if(e&&("item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(l),l===t)return r;l=this.collection.getKeyAfter(l)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;t&&"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);let n=this.getKey(e);if(null==n)return;let r=new t("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);r.has(n)?r.delete(n):this.canSelectItem(n)&&(r.add(n),r.anchorKey=n,r.currentKey=n),this.disallowEmptySelection&&0===r.size||this.state.setSelectedKeys(r)}replaceSelection(e){if("none"===this.selectionMode)return;let n=this.getKey(e);if(null==n)return;let r=this.canSelectItem(n)?new t([n],n,n):new t;this.state.setSelectedKeys(r)}setSelectedKeys(e){if("none"===this.selectionMode)return;let n=new t;for(let t of e){let e=this.getKey(t);if(null!=e&&(n.add(e),"single"===this.selectionMode))break}this.state.setSelectedKeys(n)}getSelectAllKeys(){let e=[],t=n=>{for(;null!=n;){if(this.canSelectItem(n)){var r,l,i;let o=this.collection.getItem(n);(null==o?void 0:o.type)==="item"&&e.push(n),(null==o?void 0:o.hasChildNodes)&&(this.allowsCellSelection||"item"!==o.type)&&t(null!=(l=null==(r=function(e){!1;let t=0;for(let n of e){if(0===t)return n;t++}}("function"==typeof(i=this.collection).getChildren?i.getChildren(o.key):o.childNodes))?void 0:r.key)?l:null)}n=this.collection.getKeyAfter(n)}};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 t)}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 n of e)if(!t.has(n))return!1;for(let n of t)if(!e.has(n))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let n=this.collection.getItem(e);return!!n&&(null==n||null==(t=n.props)||!t.isDisabled)&&("cell"!==n.type||!!this.allowsCellSelection)}isDisabled(e){var t,n;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null==(n=this.collection.getItem(e))||null==(t=n.props)?void 0:t.isDisabled))}isLink(e){var t,n;return!!(null==(n=this.collection.getItem(e))||null==(t=n.props)?void 0:t.href)}getItemProps(e){var t;return null==(t=this.collection.getItem(e))?void 0:t.props}withCollection(t){return new e(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,n){var r;this.collection=e,this.state=t,this.allowsCellSelection=null!=(r=null==n?void 0:n.allowsCellSelection)&&r,this._isSelectAll=null,this.layoutDelegate=(null==n?void 0:n.layoutDelegate)||null}}],424901);class a{build(e,t){return this.context=t,u(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:n}=e;if(r.default.isValidElement(t)&&t.type===r.default.Fragment)yield*this.iterateCollection({children:t.props.children,items:n});else if("function"==typeof t){if(!n)throw Error("props.children was a function but props.items is missing");let e=0;for(let r of n)yield*this.getFullNode({value:r,index:e},{renderer:t}),e++}else{let e=[];
15r.default.Children.forEach(t,t=>{t&&e.push(t)});let n=0;for(let t of e)for(let e of this.getFullNode({element:t,index:n},{}))n++,yield e}}getKey(e,t,n,r){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${r}${t.key}`;let l=t.value;if(null!=l){var i;let e=null!=(i=l.key)?i:l.id;if(null==e)throw Error("No key found for item");return e}return r?`${r}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,n,l){var i,o,s,a,d,f,p,h;if(r.default.isValidElement(e.element)&&e.element.type===r.default.Fragment){let o=[];r.default.Children.forEach(e.element.props.children,e=>{o.push(e)});let s=null!=(i=e.index)?i:0;for(let e of o)yield*this.getFullNode({element:e,index:s++},t,n,l);return}let g=e.element;if(!g&&e.value&&t&&t.renderer){let n=this.cache.get(e.value);if(n&&(!n.shouldInvalidate||!n.shouldInvalidate(this.context))){n.index=e.index,n.parentKey=l?l.key:null,yield n;return}g=t.renderer(e.value)}if(r.default.isValidElement(g)){let r=g.type;if("function"!=typeof r&&"function"!=typeof r.getCollectionNode){let e=g.type;throw Error(`Unknown element <${e}> in collection.`)}let i=r.getCollectionNode(g.props,this.context),u=null!=(o=e.index)?o:0,p=i.next();for(;!p.done&&p.value;){let r=p.value;e.index=u;let o=null!=(s=r.key)?s:null;null==o&&(o=r.element?null:this.getKey(g,e,t,n));let h=[...this.getFullNode({...r,key:o,index:u,wrapper:function(e,t){return e&&t?n=>e(t(n)):e||t||void 0}(e.wrapper,r.wrapper)},this.getChildState(t,r),n?`${n}${g.key}`:g.key,l)];for(let t of h){if(t.value=null!=(d=null!=(a=r.value)?a:e.value)?d:null,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${c(t.type)}> in <${c(null!=(f=null==l?void 0:l.type)?f:"unknown parent type")}>. Only <${c(e.type)}> is supported.`);u++,yield t}p=i.next(h)}return}if(null==e.key||null==e.type)return;let m=this,v={type:e.type,props:e.props,key:e.key,parentKey:l?l.key:null,value:null!=(p=e.value)?p:null,level:l?l.level+1:0,index:e.index,rendered:e.rendered,textValue:null!=(h=e.textValue)?h:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:u(function*(){if(!e.hasChildNodes||!e.childNodes)return;let n=0;for(let r of e.childNodes())for(let e of(null!=r.key&&(r.key=`${v.key}${r.key}`),m.getFullNode({...r,index:n},m.getChildState(t,r),v.key,v)))n++,yield e})};yield v}constructor(){this.cache=new WeakMap}}function u(e){let t=[],n=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let r of(n||(n=e()),n))t.push(r),yield r}}}function c(e){return e[0].toUpperCase()+e.slice(1)}e.s(["useCollection",0,function(e,t,n){let l=(0,r.useMemo)(()=>new a,[]),{children:i,items:o,collection:s}=e;return(0,r.useMemo)(()=>s||t(l.build({children:i,items:o},n)),[l,i,o,s,n,t])}],679601)},777088,e=>{"use strict";var t=e.i(303157),n=e.i(406911);e.s(["useToggleState",0,function(e={}){var r;let{isReadOnly:l}=e,[i,o]=(0,t.useControlledState)(e.isSelected,e.defaultSelected||!1,e.onChange),[s]=(0,n.useState)(i);return{isSelected:i,defaultSelected:null!=(r=e.defaultSelected)?r:s,setSelected:function(e){l||o(e)},toggle:function(){l||o(!i)}}}])},181428,e=>{"use strict";var t=e.i(248406),n=e.i(406911),r=e.i(74642),l=e.i(466),i=n,o=e.i(887301);class s extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function a({children:e,isPresent:n}){let r=(0,i.useId)(),l=(0,i.useRef)(null),u=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,i.useContext)(o.MotionConfigContext);return(0,i.useInsertionEffect)(()=>{let{width:e,height:t,top:i,left:o}=u.current;if(n||!l.current||!e||!t)return;l.current.dataset.motionPopId=r;let s=document.createElement("style");return c&&(s.nonce=c),document.head.appendChild(s),s.sheet&&s.sheet.insertRule(`
16          [data-motion-pop-id="${r}"] {
17            position: absolute !important;
18            width: ${e}px !important;
19            height: ${t}px !important;
20            top: ${i}px !important;
21            left: ${o}px !important;
22          }
23        `),()=>{document.head.removeChild(s)}},[n]),(0,t.jsx)(s,{isPresent:n,childRef:l,sizeRef:u,children:i.cloneElement(e,{ref:l})})}function u(){return new Map}e.s(["PresenceChild",0,({children:e,initial:i,isPresent:o,onExitComplete:s,custom:c,presenceAffectsLayout:d,mode:f})=>{let p=(0,l.useConstant)(u),h=(0,n.useId)(),g=(0,n.useCallback)(e=>
23{for(let t of(p.set(e,!0),p.values()))if(!t)return;s&&s()},[p,s]),m=(0,n.useMemo)(()=>({id:h,initial:i,isPresent:o,custom:c,onExitComplete:g,register:e=>(p.set(e,!1),()=>p.delete(e))}),d?[Math.random(),g]:[o,g]);return(0,n.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[o]),n.useEffect(()=>{o||p.size||!s||s()},[o]),"popLayout"===f&&(e=(0,t.jsx)(a,{isPresent:o,children:e})),(0,t.jsx)(r.PresenceContext.Provider,{value:m,children:e})}],181428)},269493,e=>{"use strict";e.i(10268);var t=e.i(248406),n=e.i(406911),r=e.i(65839),l=e.i(466),i=e.i(181428),o=e.i(10328),s=e.i(899439),a=e.i(861620);e.s(["AnimatePresence",0,({children:e,custom:u,initial:c=!0,onExitComplete:d,presenceAffectsLayout:f=!0,mode:p="sync",propagate:h=!1})=>{let[g,m]=(0,o.usePresence)(h),v=(0,n.useMemo)(()=>(0,s.onlyElements)(e),[e]),y=h&&!g?[]:v.map(s.getChildKey),b=(0,n.useRef)(!0),w=(0,n.useRef)(v),E=(0,l.useConstant)(()=>new Map),[S,x]=(0,n.useState)(v),[P,C]=(0,n.useState)(v);(0,a.useIsomorphicLayoutEffect)(()=>{b.current=!1,w.current=v;for(let e=0;e<P.length;e++){let t=(0,s.getChildKey)(P[e]);y.includes(t)?E.delete(t):!0!==E.get(t)&&E.set(t,!1)}},[P,y.length,y.join("-")]);let T=[];if(v!==S){let e=[...v];for(let t=0;t<P.length;t++){let n=P[t],r=(0,s.getChildKey)(n);y.includes(r)||(e.splice(t,0,n),T.push(n))}"wait"===p&&T.length&&(e=T),C((0,s.onlyElements)(e)),x(v);return}let{forceRender:M}=(0,n.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:P.map(e=>{let n=(0,s.getChildKey)(e),r=(!h||!!g)&&(v===P||y.includes(n));return(0,t.jsx)(i.PresenceChild,{isPresent:r,initial:(!b.current||!!c)&&void 0,custom:r?void 0:u,presenceAffectsLayout:f,mode:p,onExitComplete:r?void 0:()=>{if(!E.has(n))return;E.set(n,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(null==M||M(),C(w.current),h&&(null==m||m()),d&&d())},children:e},n)})})}])},10328,e=>{"use strict";var t=e.i(406911),n=e.i(74642);e.s(["usePresence",0,function(e=!0){let r=(0,t.useContext)(n.PresenceContext);if(null===r)return[!0,null];let{isPresent:l,onExitComplete:i,register:o}=r,s=(0,t.useId)();(0,t.useEffect)(()=>{e&&o(s)},[e]);let a=(0,t.useCallback)(()=>e&&i&&i(s),[s,i,e]);return!l&&i?[!1,a]:[!0]}])},899439,e=>{"use strict";var t=e.i(406911);e.s(["getChildKey",0,e=>e.key||"","onlyElements",0,function(e){let n=[];return t.Children.forEach(e,e=>{(0,t.isValidElement)(e)&&n.push(e)}),n}])},257529,e=>{"use strict";var t=e.i(248406),n=e.i(406911),r=e.i(711250),l=e.i(647005);function i(e){return"function"==typeof e}e.s(["LazyMotion",0,function({children:e,features:o,strict:s=!1}){let[,a]=(0,n.useState)(!i(o)),u=(0,n.useRef)(void 0);if(!i(o)){let{renderer:e,...t}=o;u.current=e,(0,l.loadFeatures)(t)}return(0,n.useEffect)(()=>{i(o)&&o().then(({renderer:e,...t})=>{(0,l.loadFeatures)(t),u.current=e,a(!0)})},[]),(0,t.jsx)(r.LazyContext.Provider,{value:{renderer:u.current,strict:s},children:e})}])},65839,e=>{"use strict";let t=(0,e.i(406911).createContext)({});e.s(["LayoutGroupContext",0,t])},711250,e=>{"use strict";let t=(0,e.i(406911).createContext)({strict:!1});e.s(["LazyContext",0,t])},887301,e=>{"use strict";let t=(0,e.i(406911).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});e.s(["MotionConfigContext",0,t])},390111,862171,e=>{"use strict";var t=e.i(406911);let n=(0,t.createContext)({});e.s(["MotionContext",0,n],390111);var r=e.i(217473),l=e.i(447637);function i(e){return Array.isArray(e)?e.join(" "):e}e.s(["useCreateMotionContext",0,function(e){let{initial:o,animate:s}=function(e,t){if((0,l.isControllingVariants)(e)){let{initial:t,animate:n}=e;return{initial:!1===t||(0,r.isVariantLabel)(t)?t:void 0,animate:(0,r.isVariantLabel)(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(n));return(0,t.useMemo)(()=>({initial:o,animate:s}),[i(o),i(s)])}],862171)},74642,e=>{"use strict";let t=(0,e.i(406911).createContext)(null);e.s(["PresenceContext",0,t])},819596,e=>{"use strict";let t=(0,e.i(406911).createContext)({});e.s(["SwitchLayoutGroupContext",0,t])},149438,e=>{"use strict";let{schedule:t,cancel:n}=(0,e.i(413759).createRenderBatcher)(queueMicrotask,!1);e.s(["microtask",0,t])},647005,e=>{"use strict";var t=e.i(378064);e.s(["loadFeatures",0,function(e){for(let n in e)t.featureDefinitions[n]={...t.featureDefinitions[n],...e[n]}}])},353574,e=>{"use strict";var t=e.i(248406);e.i(246149);var n=e.i(406911),r=e.i(65839),l=e.i(711250),i=e.i(887301),o=e.i(390111),s=e.i(862171),a=e.i(592789),u=e.i(378064),c=e.i(647005),d=e.i(66337),f=e.i(460675),p=e.i(74642),h=e.i(861620),g=e.i(159537),m=e.i(149438),v=e.i(491326),y=e.i(819596);e.s(["createRendererMotionComponent",0,function({preloadedFeatures:e,createVisualElement:b,useRender:w,useVisualState:E,Component:S}){var x,P;function C(e,c){let d,x={...(0,n.useContext)(i.MotionConfigContext),...e,layoutId:function({layoutId:e}){let t=(0,n.useContext)(r.LayoutGroupContext).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:P}=x,C=(0,s.useCreateMotionContext)(e),T=E(e,P);if(!P&&a.isBrowser){(0,n.useContext)(l.LazyContext).strict;let e=function(e){let{drag:t,layout:n}=u.featureDefinitions;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
23(x);d=e.MeasureLayout,C.visualElement=function(e,t,r,s,a){var u,c;let{visualElement:d}=(0,n.useContext)(o.MotionContext),f=(0,n.useContext)(l.LazyContext),b=(0,n.useContext)(p.PresenceContext),w=(0,n.useContext)(i.MotionConfigContext).reducedMotion,E=(0,n.useRef)(null);s=s||f.renderer,!E.current&&s&&(E.current=s(e,{visualState:t,parent:d,props:r,presenceContext:b,blockInitialAnimation:!!b&&!1===b.initial,reducedMotionConfig:w}));let S=E.current,x=(0,n.useContext)(y.SwitchLayoutGroupContext);S&&!S.projection&&a&&("html"===S.type||"svg"===S.type)&&function(e,t,n,r){let{layoutId:l,layout:i,drag:o,dragConstraints:s,layoutScroll:a,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:l,layout:i,alwaysMeasureLayout:!!o||s&&(0,v.isRefObject)(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}(E.current,r,a,x);let P=(0,n.useRef)(!1);(0,n.useInsertionEffect)(()=>{S&&P.current&&S.update(r,b)});let C=r[g.optimizedAppearDataAttribute],T=(0,n.useRef)(!!C&&!(null==(u=window.MotionHandoffIsComplete)?void 0:u.call(window,C))&&(null==(c=window.MotionHasOptimisedAnimation)?void 0:c.call(window,C)));return(0,h.useIsomorphicLayoutEffect)(()=>{S&&(P.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),m.microtask.render(S.render),T.current&&S.animationState&&S.animationState.animateChanges())}),(0,n.useEffect)(()=>{S&&(!T.current&&S.animationState&&S.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,C)}),T.current=!1))}),S}(S,T,x,b,e.ProjectionNode)}return(0,t.jsxs)(o.MotionContext.Provider,{value:C,children:[d&&C.visualElement?(0,t.jsx)(d,{visualElement:C.visualElement,...x}):null,w(S,e,(0,f.useMotionRef)(T,C.visualElement,c),T,P,C.visualElement)]})}e&&(0,c.loadFeatures)(e),C.displayName=`motion.${"string"==typeof S?S:`create(${null!=(P=null!=(x=S.displayName)?x:S.name)?P:""})`}`;let T=(0,n.forwardRef)(C);return T[d.motionComponentSymbol]=S,T}],353574)},66337,e=>{"use strict";let t=Symbol.for("motionComponentSymbol");e.s(["motionComponentSymbol",0,t])},460675,e=>{"use strict";var t=e.i(406911),n=e.i(491326);e.s(["useMotionRef",0,function(e,r,l){return(0,t.useCallback)(t=>{t&&e.onMount&&e.onMount(t),r&&(t?r.mount(t):r.unmount()),l&&("function"==typeof l?l(t):(0,n.isRefObject)(l)&&(l.current=t))},[r])}])},476493,577898,e=>{"use strict";var t=e.i(353574),n=e.i(260366),r=e.i(861519),l=e.i(406911),i=e.i(503080),o=e.i(390111),s=e.i(74642),a=e.i(447637),u=e.i(269677),c=e.i(466),d=e.i(297644);let f=e=>(t,n)=>{let r=(0,l.useContext)(o.MotionContext),f=(0,l.useContext)(s.PresenceContext),p=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,l,o){let s={latestValues:function(e,t,n,r){let l={},o=r(e,{});for(let e in o)l[e]=(0,d.resolveMotionValue)(o[e]);let{initial:s,animate:c}=e,f=(0,a.isControllingVariants)(e),p=(0,a.isVariantNode)(e);t&&p&&!f&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===c&&(c=t.animate));let h=!!n&&!1===n.initial,g=(h=h||!1===s)?c:s;if(g&&"boolean"!=typeof g&&!(0,i.isAnimationControls)(g)){let t=Array.isArray(g)?g:[g];for(let n=0;n<t.length;n++){let r=(0,u.resolveVariantFromProps)(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=h?t.length-1:0;t=t[e]}null!==t&&(l[e]=t)}for(let t in e)l[t]=e[t]}}}return l}(r,l,o,e),renderState:t()};return n&&(s.onMount=e=>n({props:r,current:e,...s}),s.onUpdate=e=>n(e)),s})(e,t,r,f);return n?p():(0,c.useConstant)(p)};var p=e.i(764322),h=e.i(368554);let g=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),m=()=>({...g(),attrs:{}});var v=e.i(121380),y=e.i(358840),b=e.i(71285);let w=["x","y","width","height","cx","cy","r"],E={useVisualState:f({scrapeMotionValuesFromProps:b.scrapeMotionValuesFromProps,createRenderState:m,onUpdate:({props:e,prevProps:t,current:n,renderState:l,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(let e in i)if(p.transformProps.has(e)){o=!0;break}}if(!o)return;let s=!t;if(t)for(let n=0;n<w.length;n++){let r=w[n];e[r]!==t[r]&&(s=!0)}s&&r.frame.read(()=>{try{l.dimensions="function"==typeof n.getBBox?n.getBBox():n.getBoundingClientRect()}catch(e){l.dimensions={x:0,y:0,width:0,height:0}}r.frame.render(()=>{(0,h.buildSVGAttrs)(l,i,(0,v.isSVGTag)(n.tagName),e.transformTemplate),(0,y.renderSVG)(n,l)})})}})},S={useVisualState:f({scrapeMotionValuesFromProps:e.i(351764).scrapeMotionValuesFromProps,createRenderState:g})};var x=e.i(126124),P=e.i(575283),C=e.i(761353);function T(e,t,n){for(let r in t)(0,P.isMotionValue)(t[r])||(0,x.isForcedMotionValue)(r,n)||(e[r]=t[r])}let M=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function k(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||M.has(e)}let K=e=>!k(e);function L(e){e&&(K=t=>t.startsWith("on")?!k(t):e(t))}try{L((()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default)}catch(e){}function N(e,t,n){let r={};for(let l in e)("values"!==l||"object"!=typeof e.values)&&(K(l)||!0===n&&k(l)||!t&&!k(l)||e.draggable&&l.startsWith("onDrag"))&&(r[l]=e[l]);return r}e.s(["filterProps",0,N,"loadExternalIsValidProp",0,L],577898);
23e.s(["createMotionComponentFactory",0,function(e,r){return function(i,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...(0,n.isSVGComponent)(i)?E:S,preloadedFeatures:e,useRender:function(e=!1){return(t,r,i,{latestValues:o},s)=>{let a=((0,n.isSVGComponent)(t)?function(e,t,n,r){let i=(0,l.useMemo)(()=>{let n=m();return(0,h.buildSVGAttrs)(n,t,(0,v.isSVGTag)(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};T(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},o=(n=e.style||{},T(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,l.useMemo)(()=>{let n=g();return(0,C.buildHTMLStyles)(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(r,o,s,t),u=N(r,"string"==typeof t,e),c=t!==l.Fragment?{...u,...a,ref:i}
23:{},{children:d}=r,f=(0,l.useMemo)(()=>(0,P.isMotionValue)(d)?d.get():d,[d]);return(0,l.createElement)(t,{...c,children:f})}}(o),createVisualElement:r,Component:i};return(0,t.createRendererMotionComponent)(s)}}],476493)},338827,e=>{"use strict";e.i(10268),e.s(["createDOMMotionComponentProxy",0,function(e){if("u"<typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}])},854803,e=>{"use strict";var t=e.i(338827);let n=(0,e.i(476493).createMotionComponentFactory)(),r=(0,t.createDOMMotionComponentProxy)(n);e.s(["m",0,r],854803)},491326,e=>{"use strict";e.s(["isRefObject",0,function(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}])},466,e=>{"use strict";var t=e.i(406911);e.s(["useConstant",0,function(e){let n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}])},861620,e=>{"use strict";var t=e.i(406911);let n=e.i(592789).isBrowser?t.useLayoutEffect:t.useEffect;e.s(["useIsomorphicLayoutEffect",0,n])},297644,e=>{"use strict";var t=e.i(735418),n=e.i(575283);e.s(["resolveMotionValue",0,function(e){let r=(0,n.isMotionValue)(e)?e.get():e;return(0,t.isCustomValue)(r)?r.toValue():r}])}]);

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.