1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5f03e374-0a38-4c24-a86e-fc2ae037d99d",e._sentryDebugIdIdentifier="sentry-dbid-5f03e374-0a38-4c24-a86e-fc2ae037d99d")}()}catch(e){}try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5f03e374-0a38-4c24-a86e-fc2ae037d99d",e._sentryDebugIdIdentifier="sentry-dbid-5f03e374-0a38-4c24-a86e-fc2ae037d99d")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1319],{1528:(e,t,n)=>{n.d(t,{z6:()=>B});var r=n(7974),o=n(22459),i=n(42584);function a(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}var l=n(98946),u=n(6954),s=n(55583),c=n(88389),d=n(68206),f=n(20707),p=n(33396),v=n(99329),m=n(72597),h=n(6983);let g=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(","),y=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var w=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(w||{}),b=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(b||{}),x=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(x||{}),E=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(E||{}),C=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(C||{});function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function S(e,t){var n,r,o;let{sorted:i=!0,relativeTo:a=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?i?R(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(y)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(g)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);l.length>0&&s.length>1&&(s=s.filter(e=>!l.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),a=null!=a?a:u.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(a))-1;if(4&t)return Math.max(0,s.indexOf(a))+1;if(8&t)return s.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},p=0,v=s.length,m;do{if(p>=v||p+v<=0)return 0;let e=d+p;if(16&t)e=(e+v)%v;else{if(e<0)return 3;if(e>=v)return 1}null==(m=s[e])||m.focus(f),p+=c}while(m!==u.activeElement);return 6&t&&null!=(o=null==(r=null==(n=m)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&m.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var T=n(81054),A=n(67597),P=n(19795),D=n(55597),k=n(91326),j=n(82182),N=n(58246),L=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(L||{});let M={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:R(n,e=>e.element.current)}},1(e,t){let n=e.options.slice(),r=e.options.findIndex(e=>e.id===t.id);return -1===r?e:(n.splice(r,1),{...e,options:n})}},O=(0,i.createContext)(null);function I(e){let t=(0,i.useContext)(O);if(null===t){let t=Error("<".concat(e," /> is missing a parent <RadioGroup /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,I),t}return t}O.displayName="RadioGroupDataContext";let _=(0,i.createContext)(null);function F(e){let t=(0,i.useContext)(_);if(null===t){let t=Error("<".concat(e," /> is missing a parent <RadioGroup /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,F),t}return t}function U(e,t){return(0,A.Y)(t.type,M,e,t)}
1_.displayName="RadioGroupActionsContext";let B=Object.assign((0,D.FX)(function(e,t){let n=(0,i.useId)(),r=(0,p._)(),{id:o="headlessui-radiogroup-".concat(n),value:c,form:d,name:m,onChange:h,by:g,disabled:y=r||!1,defaultValue:x,tabIndex:E=0,...C}=e,R=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return(0,i.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(g),[A,L]=(0,i.useReducer)(U,{options:[]}),M=A.options,[I,F]=(0,N.b0)(),[B,W]=(0,k.rU)(),H=(0,i.useRef)(null),G=(0,f.P)(H,t),K=(0,u.K)(x),[V,z]=(0,l.P)(c,h,K),q=(0,i.useMemo)(()=>M.find(e=>!e.propsRef.current.disabled),[M]),$=(0,i.useMemo)(()=>M.some(e=>R(e.propsRef.current.value,V)),[M,V]),X=(0,s._)(e=>{var t;if(y||R(e,V))return!1;let n=null==(t=M.find(t=>R(t.propsRef.current.value,e)))?void 0:t.propsRef.current;return(null==n||!n.disabled)&&(null==z||z(e),!0)}),Y=(0,s._)(e=>{let t=H.current;if(!t)return;let n=(0,P.T)(t),r=M.filter(e=>!1===e.propsRef.current.disabled).map(e=>e.element.current);switch(e.key){case j.D.Enter:(0,T.q)(e.currentTarget);break;case j.D.ArrowLeft:case j.D.ArrowUp:if(e.preventDefault(),e.stopPropagation(),S(r,w.Previous|w.WrapAround)===b.Success){let e=M.find(e=>e.element.current===(null==n?void 0:n.activeElement));e&&X(e.propsRef.current.value)}break;case j.D.ArrowRight:case j.D.ArrowDown:if(e.preventDefault(),e.stopPropagation(),S(r,w.Next|w.WrapAround)===b.Success){let e=M.find(e=>e.element.current===(null==n?void 0:n.activeElement));e&&X(e.propsRef.current.value)}break;case j.D.Space:{e.preventDefault(),e.stopPropagation();let t=M.find(e=>e.element.current===(null==n?void 0:n.activeElement));t&&X(t.propsRef.current.value)}}}),Z=(0,s._)(e=>(L({type:0,...e}),()=>L({type:1,id:e.id}))),J=(0,i.useMemo)(()=>({value:V,firstOption:q,containsCheckedOption:$,disabled:y,compare:R,tabIndex:E,...A}),[V,q,$,y,R,E,A]),Q=(0,i.useMemo)(()=>({registerOption:Z,change:X}),[Z,X]),ee=(0,i.useMemo)(()=>({value:V}),[V]),et=(0,i.useCallback)(()=>{if(void 0!==K)return X(K)},[X,K]),en=(0,D.Ci)();return i.createElement(W,{name:"RadioGroup.Description"},i.createElement(F,{name:"RadioGroup.Label"},i.createElement(_.Provider,{value:Q},i.createElement(O.Provider,{value:J},null!=m&&i.createElement(v.CL,{disabled:y,data:{[m]:V||"on"},overrides:{type:"radio",checked:null!=V},form:d,onReset:et}),en({ourProps:{ref:G,id:o,role:"radiogroup","aria-labelledby":I,"aria-describedby":B,onKeyDown:Y},theirProps:C,slot:ee,defaultTag:"div",name:"RadioGroup"})))))}),{Option:(0,D.FX)(function(e,t){var n;let a=I("RadioGroup.Option"),l=F("RadioGroup.Option"),u=(0,i.useId)(),{id:p="headlessui-radiogroup-option-".concat(u),value:v,disabled:m=a.disabled||!1,autoFocus:g=!1,...y}=e,w=(0,i.useRef)(null),b=(0,f.P)(w,t),[x,E]=(0,N.b0)(),[C,R]=(0,k.rU)(),S=(0,d.Y)({value:v,disabled:m});(0,c.s)(()=>l.registerOption({id:p,element:w,propsRef:S}),[p,l,w,S]);let T=(0,s._)(e=>{var t;if((0,h.l)(e.currentTarget))return e.preventDefault();l.change(v)&&(null==(t=w.current)||t.focus())}),A=(null==(n=a.firstOption)?void 0:n.id)===p,{isFocusVisible:P,focusProps:j}=(0,r.o)({autoFocus:g}),{isHovered:L,hoverProps:M}=(0,o.M)({isDisabled:m}),O=a.compare(a.value,v),_=(0,D.v6)({ref:b,id:p,role:"radio","aria-checked":O?"true":"false","aria-labelledby":x,"aria-describedby":C,"aria-disabled":!!m||void 0,tabIndex:m?-1:O||!a.containsCheckedOption&&A?a.tabIndex:-1,onClick:m?void 0:T,autoFocus:g},j,M),U=(0,i.useMemo)(()=>({checked:O,disabled:m,active:P,hover:L,focus:P,autofocus:g}),[O,m,L,P,g]),B=(0,D.Ci)();return i.createElement(R,{name:"RadioGroup.Description"},i.createElement(E,{name:"RadioGroup.Label"},B({ourProps:_,theirProps:y,slot:U,defaultTag:"div",name:"RadioGroup.Option"})))}),Radio:(0,D.FX)(function(e,t){var n;let a=I("Radio"),l=F("Radio"),u=(0,i.useId)(),v=(0,m.q)(),g=(0,p._)(),{id:y=v||"headlessui-radio-".concat(u),value:w,disabled:b=a.disabled||g||!1,autoFocus:x=!1,...E}=e,C=(0,i.useRef)(null),R=(0,f.P)(C,t),S=(0,N.o2)(),T=(0,k.MM)(),A=(0,d.Y)({value:w,disabled:b});(0,c.s)(()=>l.registerOption({id:y,element:C,propsRef:A}),[y,l,C,A]);let P=(0,s._)(e=>{var t;if((0,h.l)(e.currentTarget))return e.preventDefault();
1l.change(w)&&(null==(t=C.current)||t.focus())}),{isFocusVisible:j,focusProps:L}=(0,r.o)({autoFocus:x}),{isHovered:M,hoverProps:O}=(0,o.M)({isDisabled:b}),_=(null==(n=a.firstOption)?void 0:n.id)===y,U=a.compare(a.value,w),B=(0,D.v6)({ref:R,id:y,role:"radio","aria-checked":U?"true":"false","aria-labelledby":S,"aria-describedby":T,"aria-disabled":!!b||void 0,tabIndex:b?-1:U||!a.containsCheckedOption&&_?a.tabIndex:-1,autoFocus:x,onClick:b?void 0:P},L,O),W=(0,i.useMemo)(()=>({checked:U,disabled:b,hover:M,focus:j,autofocus:x}),[U,b,M,j,x]);return(0,D.Ci)()({ourProps:B,theirProps:E,slot:W,defaultTag:"span",name:"Radio"})}),Label:N.JU,Description:k.VY})},3178:(e,t,n)=>{n.d(t,{i:()=>l});var r,o=n(42584),i=n(32844),a=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.N;function l({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,l,u]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),l=o.useRef(t);return a(()=>{l.current=t},[t]),o.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==s){let t=s?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=s},[s,r])}return[c,o.useCallback(t=>{if(s){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else l(t)},[s,e,l,u])]}Symbol("RADIX:SYNC_STATE")},3729:(e,t,n)=>{n.d(t,{q:()=>r});function r(e,[t,n]){return Math.min(n,Math.max(t,e))}},6954:(e,t,n)=>{n.d(t,{K:()=>o});var r=n(42584);function o(e){let[t]=(0,r.useState)(e);return t}},6983:(e,t,n)=>{n.d(t,{l:()=>o});var r=n(80020);function o(e){let t=e.parentElement,n=null;for(;t&&!r.Er(t);)r.Jb(t)&&(n=t),t=t.parentElement;let o=(null==t?void 0:t.getAttribute("disabled"))==="";return!(o&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(r.Jb(t))return!1;t=t.previousElementSibling}return!0}(n))&&o}},7974:(e,t,n)=>{n.d(t,{o:()=>O});var r=n(42584);let o="undefined"!=typeof document?r.useLayoutEffect:()=>{};function i(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function a(e){let t=(0,r.useRef)({isFocused:!1,observer:null});o(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,r.useRef)(null);return o(()=>{t.current=e},[e]),(0,r.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,r.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(i(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null==(e=t.current.observer)||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function l(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null==(t=window.navigator.userAgentData)?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function u(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function s(e){let t=null;return()=>(null==t&&(t=e()),t)}let c=s(function(){return u(/^Mac/i)}),d=s(function(){return u(/^iPhone/i)}),f=s(function(){return u(/^iPad/i)||c()&&navigator.maxTouchPoints>1}),p=s(function(){return d()||f()});s(function(){return c()||p()}
1),s(function(){return l(/AppleWebKit/i)&&!v()});let v=s(function(){return l(/Chrome/i)}),m=s(function(){return l(/Android/i)});s(function(){return l(/Firefox/i)});var h=n(11001);let g=null,y=new Set,w=new Map,b=!1,x=!1,E={Tab:!0,Escape:!0};function C(e,t){for(let n of y)n(e,t)}function R(e){b=!0,e.metaKey||!c()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(g="keyboard",C("keyboard",e))}function S(e){g="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(b=!0,C("pointer",e))}function T(e){(0===e.mozInputSource&&e.isTrusted||(m()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(b=!0,g="virtual")}function A(e){e.target!==window&&e.target!==document&&e.isTrusted&&(b||x||(g="virtual",C("virtual",e)),b=!1,x=!1)}function P(){b=!1,x=!0}function D(e){if("undefined"==typeof window||"undefined"==typeof document||w.get((0,h.mD)(e)))return;let t=(0,h.mD)(e),n=(0,h.TW)(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){b=!0,r.apply(this,arguments)},n.addEventListener("keydown",R,!0),n.addEventListener("keyup",R,!0),n.addEventListener("click",T,!0),t.addEventListener("focus",A,!0),t.addEventListener("blur",P,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",S,!0),n.addEventListener("pointermove",S,!0),n.addEventListener("pointerup",S,!0)),t.addEventListener("beforeunload",()=>{k(e)},{once:!0}),w.set(t,{focus:r})}let k=(e,t)=>{let n=(0,h.mD)(e),r=(0,h.TW)(e);t&&r.removeEventListener("DOMContentLoaded",t),w.has(n)&&(n.HTMLElement.prototype.focus=w.get(n).focus,r.removeEventListener("keydown",R,!0),r.removeEventListener("keyup",R,!0),r.removeEventListener("click",T,!0),n.removeEventListener("focus",A,!0),n.removeEventListener("blur",P,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",S,!0),r.removeEventListener("pointermove",S,!0),r.removeEventListener("pointerup",S,!0)),w.delete(n))};function j(){return"pointer"!==g}"undefined"!=typeof document&&function(e){let t,n=(0,h.TW)(void 0);"loading"!==n.readyState?D(void 0):(t=()=>{D(e)},n.addEventListener("DOMContentLoaded",t)),()=>k(e,t)}();let N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var L=n(22562),M=n(18825);function O(e={}){var t;let{autoFocus:n=!1,isTextInput:o,within:l}=e,u=(0,r.useRef)({isFocused:!1,isFocusVisible:n||j()}),[s,c]=(0,r.useState)(!1),[d,f]=(0,r.useState)(()=>u.current.isFocused&&u.current.isFocusVisible),p=(0,r.useCallback)(()=>f(u.current.isFocused&&u.current.isFocusVisible),[]),v=(0,r.useCallback)(e=>{u.current.isFocused=e,c(e),p()},[p]);t={isTextInput:o},D(),(0,r.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){let r=(0,h.TW)(null==n?void 0:n.target),o="undefined"!=typeof window?(0,h.mD)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?(0,h.mD)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?(0,h.mD)(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,h.mD)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!N.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof a&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof l&&!E[n.key])})(!!(null==t?void 0:t.isTextInput),e,n)&&(e=>{u.current.isFocusVisible=e,p()})(j())};return y.add(e),()=>{y.delete(e)}},[]);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:o,onFocusChange:i}=e,l=(0,r.useCallback)(e=>{if(e.target===e.currentTarget)return o&&o(e),i&&i(!1),!0},[o,i]),u=a(l),s=(0,r.useCallback)(e=>{let t=(0,h.TW)(e.target),r=t?(0,L.bq)(t):(0,L.bq)();e.target===e.currentTarget&&r===(0,L.wt)(e.nativeEvent)&&(n&&n(e),i&&i(!0),u(e))},[i,n,u]);return{focusProps:{onFocus:!t&&(n||i||o)?s:void 0,onBlur:!t&&(o||i)?l:void 0}}}({isDisabled:l,onFocusChange:v}),{focusWithinProps:g}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:o,onFocusWithinChange:l}=e,u=(0,r.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:c}=(0,M.A)(),d=(0,r.useCallback)(e=>{e.currentTarget.contains(e.target)&&u.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(u.current.isFocusWithin=!1,c(),n&&n(e),l&&l(!1))},[n,l,u,c]),f=a(d),p=(0,r.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=(0,h.TW)(e.target),n=(0,L.bq)(t);if(!u.current.isFocusWithin&&n===(0,L.wt)(e.nativeEvent)){o&&o(e),l&&l(!0),u.current.isFocusWithin=!0,f(e);let n=e.currentTarget;s(t,"focus",e=>{if(u.current.isFocusWithin&&!(0,L.sD)(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(r,"target",{value:n}),Object.defineProperty(r,"currentTarget",{value:n}),d(i(r))}},{capture:!0})}},[o,l,f,s,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}
1:{focusWithinProps:{onFocus:p,onBlur:d}}}({isDisabled:!l,onFocusWithinChange:v});return{isFocused:s,isFocusVisible:d,focusProps:l?g:m}}},8164:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(75812);let o=(0,n(63396).Ht)(r.Ay,e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)))},8306:(e,t,n)=>{n.d(t,{Ay:()=>R});var r=n(42584);function o(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var a=n(19302),l=n(38049),u=n(53322),s=n(78014),c=n.n(s),d=r.createContext(),f={initialChunks:{}},p="PENDING",v="REJECTED",m=function(e){var t=function(t){return r.createElement(d.Consumer,null,function(n){return r.createElement(e,Object.assign({__chunkExtractor:n},t))})};return e.displayName&&(t.displayName=e.displayName+"WithChunkExtractor"),t},h=function(e){return e};function g(e){var t=e.defaultResolveComponent,n=void 0===t?h:t,s=e.render,d=e.onLoad;function g(e,t){void 0===t&&(t={});var h="function"==typeof e?{requireAsync:e,resolve:function(){},chunkName:function(){}}:e,g={};function y(e){return t.cacheKey?t.cacheKey(e):h.resolve?h.resolve(e):"static"}function w(e,r,o){var i=t.resolveComponent?t.resolveComponent(e,r):n(e);if(t.resolveComponent&&!(0,u.isValidElementType)(i))throw Error("resolveComponent returned something that is not a React component!");return c()(o,i,{preload:!0}),i}var b=function(e){var t=y(e),n=g[t];return n&&n.status!==v||((n=h.requireAsync(e)).status=p,g[t]=n,n.then(function(){n.status="RESOLVED"},function(t){console.error("loadable-components: failed to asynchronously load component",{fileName:h.resolve(e),chunkName:h.chunkName(e),error:t?t.message:t}),n.status=v})),n},x=m(function(e){function n(n){var r;if((r=e.call(this,n)||this).state={result:null,error:null,loading:!0,cacheKey:y(n)},!(!n.__chunkExtractor||h.requireSync)){var o=Error("loadable: SSR requires `@loadable/babel-plugin`, please install it");throw o.framesToPop=1,o.name="Invariant Violation",o}return n.__chunkExtractor?(!1===t.ssr||(h.requireAsync(n).catch(function(){return null}),r.loadSync(),n.__chunkExtractor.addChunk(h.chunkName(n))),(0,a.A)(r)):(!1!==t.ssr&&(h.isReady&&h.isReady(n)||h.chunkName&&f.initialChunks[h.chunkName(n)])&&r.loadSync(),r)}n.prototype=Object.create(e.prototype),n.prototype.constructor=n,(0,l.A)(n,e),n.getDerivedStateFromProps=function(e,t){var n=y(e);return i({},t,{cacheKey:n,loading:t.loading||t.cacheKey!==n})};var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0;var e=this.getCache();e&&e.status===v&&this.setCache(),this.state.loading&&this.loadAsync()},r.componentDidUpdate=function(e,t){t.cacheKey!==this.state.cacheKey&&this.loadAsync()},r.componentWillUnmount=function(){this.mounted=!1},r.safeSetState=function(e,t){this.mounted&&this.setState(e,t)},r.getCacheKey=function(){return y(this.props)},r.getCache=function(){return g[this.getCacheKey()]},r.setCache=function(e){void 0===e&&(e=void 0),g[this.getCacheKey()]=e},r.triggerOnLoad=function(){var e=this;d&&setTimeout(function(){d(e.state.result,e.props)})},r.loadSync=function(){if(this.state.loading)try{var e=h.requireSync(this.props),t=w(e,this.props,E);this.state.result=t,this.state.loading=!1}catch(e){console.error("loadable-components: failed to synchronously load component, which expected to be available",{fileName:h.resolve(this.props),chunkName:h.chunkName(this.props),error:e?e.message:e}),this.state.error=e}},r.loadAsync=function(){var e=this,t=this.resolveAsync();return t.then(function(t){var n=w(t,e.props,E);e.safeSetState({result:n,loading:!1},function(){return e.triggerOnLoad()})}).catch(function(t){return e.safeSetState({error:t,loading:!1})}),t},r.resolveAsync=function(){var e=this.props;return b((e.__chunkExtractor,e.forwardedRef,o(e,["__chunkExtractor","forwardedRef"])))},r.render=function(){var e=this.props,n=e.forwardedRef,r=e.fallback,a=(e.__chunkExtractor,o(e,["forwardedRef","fallback","__chunkExtractor"])),l=this.state,u=l.error,c=l.loading,d=l.result;if(t.suspense&&(this.getCache()||this.loadAsync()).status===p)throw this.loadAsync();if(u)throw u;var f=r||t.fallback||null;return c?f:s({fallback:f,result:d,options:t,props:i({},a,{ref:n})})},n}(r.Component)),E=r.forwardRef(function(e,t){return r.createElement(x,Object.assign({forwardedRef:t},e))});return E.displayName="Loadable",E.preload=function(e){E.load(e)},E.load=function(e){return b(e)},E}return{loadable:g,lazy:function(e,t){return g(e,i({},t,{suspense:!0}))}}}
1var y=g({defaultResolveComponent:function(e){return e.__esModule?e.default:e.default||e},render:function(e){var t=e.result,n=e.props;return r.createElement(t,n)}}),w=y.loadable,b=y.lazy,x=g({onLoad:function(e,t){e&&t.forwardedRef&&("function"==typeof t.forwardedRef?t.forwardedRef(e):t.forwardedRef.current=e)},render:function(e){var t=e.result,n=e.props;return n.children?n.children(t):null}}),E=x.loadable,C=x.lazy;w.lib=E,b.lib=C;let R=w},8513:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>l});var r=n(42584),o=n(4665),i=n(26121),a=n(69140),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},9213:(e,t,n)=>{n.d(t,{CC:()=>G,Q6:()=>K,bL:()=>H,zi:()=>V});var r=n(42584),o=n(3729),i=n(77518),a=n(41925),l=n(63965),u=n(3178),s=n(98636),c=n(23498),d=n(34306),f=n(8513),p=n(96382),v=n(69140),m=["PageUp","PageDown"],h=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],g={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},y="Slider",[w,b,x]=(0,p.N)(y),[E,C]=(0,l.A)(y,[x]),[R,S]=E(y),T=r.forwardRef((e,t)=>{let{name:n,min:a=0,max:l=100,step:s=1,orientation:c="horizontal",disabled:d=!1,minStepsBetweenThumbs:f=0,defaultValue:p=[a],value:g,onValueChange:y=()=>{},onValueCommit:b=()=>{},inverted:x=!1,form:E,...C}=e,S=r.useRef(new Set),T=r.useRef(0),A="horizontal"===c,[P=[],j]=(0,u.i)({prop:g,defaultProp:p,onChange:e=>{var t;null==(t=[...S.current][T.current])||t.focus(),y(e)}}),N=r.useRef(P);function L(e,t){let{commit:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{commit:!1},r=(String(s).split(".")[1]||"").length,i=function(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}(Math.round((e-a)/s)*s+a,r),u=(0,o.q)(i,[a,l]);j(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}(e,u,t);if(!function(e,t){if(t>0)return Math.min(...e.slice(0,-1).map((t,n)=>e[n+1]-t))>=t;return!0}(r,f*s))return e;{T.current=r.indexOf(u);let t=String(r)!==String(e);return t&&n&&b(r),t?r:e}})}return(0,v.jsx)(R,{scope:e.__scopeSlider,name:n,disabled:d,min:a,max:l,valueIndexToChangeRef:T,thumbs:S.current,values:P,orientation:c,form:E,children:(0,v.jsx)(w.Provider,{scope:e.__scopeSlider,children:(0,v.jsx)(w.Slot,{scope:e.__scopeSlider,children:(0,v.jsx)(A?D:k,{"aria-disabled":d,"data-disabled":d?"":void 0,...C,ref:t,onPointerDown:(0,i.m)(C.onPointerDown,()=>{d||(N.current=P)}),min:a,max:l,inverted:x,onSlideStart:d?void 0:function(e){let t=function(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}(P,e);L(e,t)},onSlideMove:d?void 0:function(e){L(e,T.current)},onSlideEnd:d?void 0:function(){let e=N.current[T.current];P[T.current]!==e&&b(P)},onHomeKeyDown:()=>!d&&L(a,0,{commit:!0}),onEndKeyDown:()=>!d&&L(l,P.length-1,{commit:!0}),onStepKeyDown:e=>{let{event:t,direction:n}=e;if(!d){let e=m.includes(t.key)||t.shiftKey&&h.includes(t.key),r=T.current;L(P[r]+s*(e?10:1)*n,r,{commit:!0})}}})})})})});T.displayName=y;var[A,P]=E(y,{startEdge:"left",endEdge:"right",size:"width",direction:1}),D=r.forwardRef((e,t)=>{let{min:n,max:o,dir:i,inverted:l,onSlideStart:u,onSlideMove:c,onSlideEnd:d,onStepKeyDown:f,...p}=e,[m,h]=r.useState(null),y=(0,a.s)(t,e=>h(e)),w=r.useRef(void 0),b=(0,s.jH)(i),x="ltr"===b,E=x&&!l||!x&&l;function C(e){let t=w.current||m.getBoundingClientRect(),r=W([0,t.width],E?[n,o]:[o,n]);return w.current=t,r(e-t.left)}return(0,v.jsx)(A,{scope:e.__scopeSlider,startEdge:E?"left":"right",endEdge:E?"right":"left",direction:E?1:-1,size:"width",children:(0,v.jsx)(j,{dir:b,"data-orientation":"horizontal",...p,ref:y,style:{...p.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=C(e.clientX);null==u||u(t)},onSlideMove:e=>{let t=C(e.clientX);null==c||c(t)},onSlideEnd:()=>{w.current=void 0,null==d||d()},onStepKeyDown:e=>
1{let t=g[E?"from-left":"from-right"].includes(e.key);null==f||f({event:e,direction:t?-1:1})}})})}),k=r.forwardRef((e,t)=>{let{min:n,max:o,inverted:i,onSlideStart:l,onSlideMove:u,onSlideEnd:s,onStepKeyDown:c,...d}=e,f=r.useRef(null),p=(0,a.s)(t,f),m=r.useRef(void 0),h=!i;function y(e){let t=m.current||f.current.getBoundingClientRect(),r=W([0,t.height],h?[o,n]:[n,o]);return m.current=t,r(e-t.top)}return(0,v.jsx)(A,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:(0,v.jsx)(j,{"data-orientation":"vertical",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=y(e.clientY);null==l||l(t)},onSlideMove:e=>{let t=y(e.clientY);null==u||u(t)},onSlideEnd:()=>{m.current=void 0,null==s||s()},onStepKeyDown:e=>{let t=g[h?"from-bottom":"from-top"].includes(e.key);null==c||c({event:e,direction:t?-1:1})}})})}),j=r.forwardRef((e,t)=>{let{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:a,onHomeKeyDown:l,onEndKeyDown:u,onStepKeyDown:s,...c}=e,d=S(y,n);return(0,v.jsx)(f.sG.span,{...c,ref:t,onKeyDown:(0,i.m)(e.onKeyDown,e=>{"Home"===e.key?(l(e),e.preventDefault()):"End"===e.key?(u(e),e.preventDefault()):m.concat(h).includes(e.key)&&(s(e),e.preventDefault())}),onPointerDown:(0,i.m)(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),d.thumbs.has(t)?t.focus():r(e)}),onPointerMove:(0,i.m)(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&o(e)}),onPointerUp:(0,i.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),a(e))})})}),N="SliderTrack",L=r.forwardRef((e,t)=>{let{__scopeSlider:n,...r}=e,o=S(N,n);return(0,v.jsx)(f.sG.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});L.displayName=N;var M="SliderRange",O=r.forwardRef((e,t)=>{let{__scopeSlider:n,...o}=e,i=S(M,n),l=P(M,n),u=r.useRef(null),s=(0,a.s)(t,u),c=i.values.length,d=i.values.map(e=>B(e,i.min,i.max)),p=c>1?Math.min(...d):0,m=100-Math.max(...d);return(0,v.jsx)(f.sG.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...o,ref:s,style:{...e.style,[l.startEdge]:p+"%",[l.endEdge]:m+"%"}})});O.displayName=M;var I="SliderThumb",_=r.forwardRef((e,t)=>{let n=b(e.__scopeSlider),[o,i]=r.useState(null),l=(0,a.s)(t,e=>i(e)),u=r.useMemo(()=>o?n().findIndex(e=>e.ref.current===o):-1,[n,o]);return(0,v.jsx)(F,{...e,ref:l,index:u})}),F=r.forwardRef((e,t)=>{let{__scopeSlider:n,index:o,name:l,...u}=e,s=S(I,n),c=P(I,n),[p,m]=r.useState(null),h=(0,a.s)(t,e=>m(e)),g=!p||s.form||!!p.closest("form"),y=(0,d.X)(p),b=s.values[o],x=void 0===b?0:B(b,s.min,s.max),E=function(e,t){return t>2?"Value ".concat(e+1," of ").concat(t):2===t?["Minimum","Maximum"][e]:void 0}(o,s.values.length),C=null==y?void 0:y[c.size],R=C?function(e,t,n){let r=e/2,o=W([0,50],[0,r]);return(r-o(t)*n)*n}(C,x,c.direction):0;return r.useEffect(()=>{if(p)return s.thumbs.add(p),()=>{s.thumbs.delete(p)}},[p,s.thumbs]),(0,v.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:"calc(".concat(x,"% + ").concat(R,"px)")},children:[(0,v.jsx)(w.ItemSlot,{scope:e.__scopeSlider,children:(0,v.jsx)(f.sG.span,{role:"slider","aria-label":e["aria-label"]||E,"aria-valuemin":s.min,"aria-valuenow":b,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...u,ref:h,style:void 0===b?{display:"none"}:e.style,onFocus:(0,i.m)(e.onFocus,()=>{s.valueIndexToChangeRef.current=o})})}),g&&(0,v.jsx)(U,{name:null!=l?l:s.name?s.name+(s.values.length>1?"[]":""):void 0,form:s.form,value:b},o)]})});_.displayName=I;var U=r.forwardRef((e,t)=>{let{__scopeSlider:n,value:o,...i}=e,l=r.useRef(null),u=(0,a.s)(l,t),s=(0,c.Z)(o);return r.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(s!==o&&t){let n=new Event("input",{bubbles:!0});t.call(e,o),e.dispatchEvent(n)}},[s,o]),(0,v.jsx)(f.sG.input,{style:{display:"none"},...i,ref:u,defaultValue:o})});function B(e,t,n){return(0,o.q)(100/(n-t)*(e-t),[0,100])}function W(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}U.displayName="RadioBubbleInput";var H=T,G=L,K=O,V=_},11001:(e,t,n)=>{n.d(t,{Ng:()=>i,TW:()=>r,mD:()=>o});let r=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},o=e=>e&&"window"in e&&e.window===e?e:r(e).defaultView||window;function i(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}}
1,11823:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(42584),o=n(4665),i=n(8513),a=n(32844),l=n(69140),u=r.forwardRef((e,t)=>{var n,u;let{container:s,...c}=e,[d,f]=r.useState(!1);(0,a.N)(()=>f(!0),[]);let p=s||d&&(null==(u=globalThis)||null==(n=u.document)?void 0:n.body);return p?o.createPortal((0,l.jsx)(i.sG.div,{...c,ref:t}),p):null});u.displayName="Portal"},18329:(e,t,n)=>{n.d(t,{n:()=>d});var r=n(42584),o=n(41925),i=n(8513),a=n(58498),l=n(69140),u="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:h,onUnmountAutoFocus:g,...y}=e,[w,b]=r.useState(null),x=(0,a.c)(h),E=(0,a.c)(g),C=r.useRef(null),R=(0,o.s)(t,e=>b(e)),S=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(S.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:v(C.current,{select:!0})},t=function(e){if(S.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||v(C.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&v(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,w,S.paused]),r.useEffect(()=>{if(w){m.add(S);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(u,c);w.addEventListener(u,x),w.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(v(r,{select:t}),document.activeElement!==n)return}(f(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&v(w))}return()=>{w.removeEventListener(u,x),setTimeout(()=>{let t=new CustomEvent(s,c);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||v(null!=e?e:document.body,{select:!0}),w.removeEventListener(s,E),m.remove(S)},0)}}},[w,x,E,S]);let T=r.useCallback(e=>{if(!n&&!d||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,i]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&v(i,{select:!0})):(e.preventDefault(),n&&v(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,S.paused]);return(0,l.jsx)(i.sG.div,{tabIndex:-1,...y,ref:R,onKeyDown:T})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function v(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var m=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=h(e,t)).unshift(t)},remove(t){var n;null==(n=(e=h(e,t))[0])||n.resume()}}}();function h(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},18825:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(42584);function o(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,r.useCallback)((t,n,r,o)=>{var i;let a=(null==(i=e.current.get(r))?void 0:i.fn)||r;t.removeEventListener(n,a,o),e.current.delete(r)},[]),o=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}},19795:(e,t,n)=>{n.d(t,{T:()=>
1o});var r=n(29075);function o(e){var t,n;return r._.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(n=null==(t=e.current)?void 0:t.ownerDocument)?n:document:null:document}},20707:(e,t,n)=>{n.d(t,{P:()=>a});var r=n(42584),o=n(55583);let i=Symbol();function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let a=(0,r.useRef)(t);(0,r.useEffect)(()=>{a.current=t},[t]);let l=(0,o._)(e=>{for(let t of a.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[i]))?void 0:l}},22459:(e,t,n)=>{n.d(t,{M:()=>d});var r=n(18825),o=n(11001),i=n(22562),a=n(42584);let l=!1,u=0;function s(e){"touch"===e.pointerType&&(l=!0,setTimeout(()=>{l=!1},50))}function c(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",s),u++,()=>{--u>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",s)}}function d(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:u,isDisabled:s}=e,[d,f]=(0,a.useState)(!1),p=(0,a.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,a.useEffect)(c,[]);let{addGlobalListener:v,removeAllGlobalListeners:m}=(0,r.A)(),{hoverProps:h,triggerHoverEnd:g}=(0,a.useMemo)(()=>{let e=(e,t)=>{let r=p.target;p.pointerType="",p.target=null,"touch"!==t&&p.isHovered&&r&&(p.isHovered=!1,m(),u&&u({type:"hoverend",target:r,pointerType:t}),n&&n(!1),f(!1))},r={};return"undefined"!=typeof PointerEvent&&(r.onPointerEnter=r=>{l&&"mouse"===r.pointerType||((r,a)=>{if(p.pointerType=a,s||"touch"===a||p.isHovered||!r.currentTarget.contains(r.target))return;p.isHovered=!0;let l=r.currentTarget;p.target=l,v((0,o.TW)(r.target),"pointerover",t=>{p.isHovered&&p.target&&!(0,i.sD)(p.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:l,pointerType:a}),n&&n(!0),f(!0)})(r,r.pointerType)},r.onPointerLeave=t=>{!s&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:r,triggerHoverEnd:e}},[t,n,u,s,p,v,m]);return(0,a.useEffect)(()=>{s&&g({currentTarget:p.target},p.pointerType)},[s]),{hoverProps:h,isHovered:d}}},22562:(e,t,n)=>{n.d(t,{bq:()=>o,wt:()=>i,sD:()=>r}),n(11001);function r(e,t){return!!t&&!!e&&e.contains(t)}let o=(e=document)=>e.activeElement;function i(e){return e.target}},23498:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(42584);function o(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},26121:(e,t,n)=>{n.d(t,{TL:()=>a});var r=n(42584),o=n(41925),i=n(69140);function a(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var a;let e,l,u=(a=n,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),s=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(s.ref=t?(0,o.t)(t,u):u),r.cloneElement(n,s)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...a}=e,l=r.Children.toArray(o),s=l.find(u);if(s){let e=s.props.children,o=l.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...a,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var l=Symbol("radix.slottable");function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},29075:(e,t,n)=>{n.d(t,{_:()=>a});var r=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n);
1class i{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(this,"currentId",0)}}let a=new i},32512:(e,t,n)=>{n.d(t,{C:()=>a});var r=n(42584),o=n(41925),i=n(32844),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[o,a]=r.useState(),u=r.useRef(null),s=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(u.current);c.current="mounted"===d?e:"none"},[d]),(0,i.N)(()=>{let t=u.current,n=s.current;if(n!==e){let r=c.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,i.N)(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=l(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=l(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{u.current=e?getComputedStyle(e):null,a(e)},[])}}(t),u="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),s=(0,o.s)(a.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||a.isPresent?r.cloneElement(u,{ref:s}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},32844:(e,t,n)=>{n.d(t,{N:()=>o});var r=n(42584),o=globalThis?.document?r.useLayoutEffect:()=>{}},33396:(e,t,n)=>{n.d(t,{S:()=>a,_:()=>i});var r=n(42584);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}function a(e){let{value:t,children:n}=e;return r.createElement(o.Provider,{value:t},n)}},34306:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(42584),o=n(32844);function i(e){let[t,n]=r.useState(void 0);return(0,o.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}},34803:(e,t,n)=>{n.d(t,{B8:()=>ef,N_:()=>em,UC:()=>eh,bL:()=>ed,l9:()=>ev,q7:()=>ep});var r=n(42584),o=n(4665),i=n(63965),a=n(77518),l=n(8513),u=n(3178),s=n(41925),c=n(98636),d=n(32512),f=n(81154),p=n(96382),v=n(78176),m=n(23498),h=n(32844),g=n(58498),y=n(78468),w=n(69140),b="NavigationMenu",[x,E,C]=(0,p.N)(b),[R,S,T]=(0,p.N)(b),[A,P]=(0,i.A)(b,[C,T]),[D,k]=A(b),[j,N]=A(b),L=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:a,delayDuration:d=200,skipDelayDuration:f=300,orientation:p="horizontal",dir:v,...m}=e,[h,g]=r.useState(null),y=(0,s.s)(t,e=>g(e)),x=(0,c.jH)(v),E=r.useRef(0),C=r.useRef(0),R=r.useRef(0),[S,T]=r.useState(!0),[A,P]=(0,u.i)({prop:o,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(R.current),t&&T(!1)):(window.clearTimeout(R.current),R.current=window.setTimeout(()=>T(!0),f)),null==i||i(e)},defaultProp:null!=a?a:"",caller:b}),D=r.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>P(""),150)},[P]),k=r.useCallback(e=>{window.clearTimeout(C.current),P(e)},[P]),j=r.useCallback(e=>{A===e?window.clearTimeout(C.current):E.current=window.setTimeout(()=>{window.clearTimeout(C.current),P(e)},d)},[A,P,d]);return r.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(C.current),window.clearTimeout(R.current)},[]),(0,w.jsx)(O,{scope:n,isRootMenu:!0,value:A,dir:x,orientation:p,rootNavigationMenu:h,onTriggerEnter:e=>{window.clearTimeout(E.current),S?j(e):k(e)},onTriggerLeave:()=>{window.clearTimeout(E.current),D()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:D,onItemSelect:e=>{P(t=>t===e?"":e)},onItemDismiss:()=>P(""),children:(0,w.jsx)(l.sG.nav,{"aria-label":"Main","data-orientation":p,dir:x,...m,ref:y})})});L.displayName=b;var M="NavigationMenuSub";r.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...s}=e,c=k(M,n),[d,f]=(0,u.i)({prop:r,onChange:o,defaultProp:null!=i?i:"",caller:M});return(0,w.jsx)(O,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:a,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,w.jsx)(l.sG.div,{"data-orientation":a,...s,ref:t})})}).displayName=M;var O=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:i,orientation:a,children:l,value:u,onItemSelect:s,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:p,onContentEnter:v,onContentLeave:h}=e,[y,b]=r.useState(null),[E,C]=r.useState(new Map),[R,S]=r.useState(null);return(0,w.jsx)(D,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:u,previousValue:(0,m.Z)(u),baseId:(0,f.B)(),dir:i,orientation:a,viewport:y,onViewportChange:b,indicatorTrack:R,onIndicatorTrackChange:S,onTriggerEnter:(0,g.c)(d),onTriggerLeave:(0,g.c)(p),onContentEnter:(0,g.c)(v),onContentLeave:(0,g.c)(h),onItemSelect:(0,g.c)(s),onItemDismiss:(0,g.c)(c),onViewportContentChange:r.useCallback((e,t)=>{C(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:r.useCallback(e=>{C(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,w.jsx)(x.Provider,{scope:t,children:(0,w.jsx)(j,{scope:t,items:E,children:l})})})},I="NavigationMenuList",_=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=k(I,n),i=(0,w.jsx)(l.sG.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,w.jsx)(l.sG.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,w.jsx)(x.Slot,{scope:n,children:o.isRootMenu?(0,w.jsx)(et,{asChild:!0,children:i}):i})})});_.displayName=I;var F="NavigationMenuItem",[U,B]=A(F),W=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,...i}=e,a=(0,f.B)(),u=r.useRef(null),s=r.useRef(null),c=r.useRef(null),d=r.useRef(()=>{}),p=r.useRef(!1),v=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(u.current){d.current();let t=eo(u.current);t.length&&ei("start"===e?t:t.reverse())}},[]),m=r.useCallback(()=>{if(u.current){let e=eo(u.current);e.length&&(d.current=function(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}(e))}},[]);return(0,w.jsx)(U,{scope:n,value:o||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:u,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:v,onFocusProxyEnter:v,onRootContentClose:m,onContentFocusOutside:m,children:(0,w.jsx)(l.sG.li,{...i,ref:t})})});W.displayName=F;var H="NavigationMenuTrigger",G=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:o,...i}=e,u=k(H,e.__scopeNavigationMenu),c=B(H,e.__scopeNavigationMenu),d=r.useRef(null),f=(0,s.s)(d,c.triggerRef,t),p=eu(u.baseId,c.value),v=es(u.baseId,c.value),m=r.useRef(!1),h=r.useRef(!1),g=c.value===u.value;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(x.ItemSlot,{scope:n,value:c.value,children:(0,w.jsx)(er,{asChild:!0,children:(0,w.jsx)(l.sG.button,{id:p,disabled:o,"data-disabled":o?"":void 0,"data-state":el(g),"aria-expanded":g,"aria-controls":v,...i,ref:f,onPointerEnter:(0,a.m)(e.onPointerEnter,()=>{h.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,a.m)(e.onPointerMove,ec(()=>{o||h.current||c.wasEscapeCloseRef.current||m.current||(u.onTriggerEnter(c.value),m.current=!0)})),onPointerLeave:(0,a.m)(e.onPointerLeave,ec(()=>{o||(u.onTriggerLeave(),m.current=!1)})),onClick:(0,a.m)(e.onClick,()=>{u.onItemSelect(c.value),h.current=g}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===u.dir?"ArrowLeft":"ArrowRight"}[u.orientation];g&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),g&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(y.bL,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,r=n===d.current,o=null==t?void 0:t.contains(n);(r||!o)&&c.onFocusProxyEnter(r?"start":"end")}}),u.viewport&&(0,w.jsx)("span",{"aria-owns":v})]})]})});G.displayName=H;var K="navigationMenu.linkSelect",V=r.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return(0,w.jsx)(er,{asChild:!0,children:(0,w.jsx)(l.sG.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:(0,a.m)(e.onClick,e=>{let t=e.target,n=new CustomEvent(K,{bubbles:!0,cancelable:!0});if(t.addEventListener(K,e=>null==o?void 0:o(e),{once:!0}),(0,l.hO)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Z,{bubbles:!0,cancelable:!0});(0,l.hO)(t,e)}},{checkForDefaultPrevented:!1})})})});V.displayName="NavigationMenuLink";var z="NavigationMenuIndicator";r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=k(z,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?o.createPortal((0,w.jsx)(d.C,{present:n||a,children:(0,w.jsx)(q,{...r,ref:t})}),i.indicatorTrack):null}).displayName=z;var q=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...o}=e,i=k(z,n),a=E(n),[u,s]=r.useState(null),[c,d]=r.useState(null),f="horizontal"===i.orientation,p=!!i.value;r.useEffect(()=>{var e;let t=null==(e=a().find(e=>e.value===i.value))?void 0:e.ref.current;t&&s(t)},[a,i.value]);let v=()=>{u&&d({size:f?u.offsetWidth:u.offsetHeight,offset:f?u.offsetLeft:u.offsetTop})};return ea(u,v),ea(i.indicatorTrack,v),c?(0,w.jsx)(l.sG.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":i.orientation,...o,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:"translateX(".concat(c.offset,"px)")}:{top:0,height:c.size+"px",transform:"translateY(".concat(c.offset,"px)")},...o.style}}):null}),$="NavigationMenuContent",X=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=k($,e.__scopeNavigationMenu),i=B($,e.__scopeNavigationMenu),l=(0,s.s)(i.contentRef,t),u=i.value===o.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?(0,w.jsx)(Y,{forceMount:n,...c,ref:l}):(0,w.jsx)(d.C,{present:n||u,children:(0,w.jsx)(J,{"data-state":el(u),...c,ref:l,onPointerEnter:(0,a.m)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,a.m)(e.onPointerLeave,ec(o.onContentLeave)),style:{pointerEvents:!u&&o.isRootMenu?"none":void 0,...c.style}})})});X.displayName=$;var Y=r.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=k($,e.__scopeNavigationMenu);return(0,h.N)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,h.N)(()=>()=>r(e.value),[e.value,r]),null}),Z="navigationMenu.rootContentDismiss",J=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,triggerRef:i,focusProxyRef:l,wasEscapeCloseRef:u,onRootContentClose:c,onContentFocusOutside:d,...f}=e,p=k($,n),m=r.useRef(null),h=(0,s.s)(m,t),g=eu(p.baseId,o),y=es(p.baseId,o),b=E(n),x=r.useRef(null),{onItemDismiss:C}=p;r.useEffect(()=>{let e=m.current;if(p.isRootMenu&&e){let t=()=>{var t;C(),c(),e.contains(document.activeElement)&&(null==(t=i.current)||t.focus())};return e.addEventListener(Z,t),()=>e.removeEventListener(Z,t)}},[p.isRootMenu,e.value,i,C,c]);let R=r.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===p.dir&&e.reverse();let t=e.indexOf(p.value),n=e.indexOf(p.previousValue),r=o===p.value,i=n===e.indexOf(o);if(!r&&!i)return x.current;let a=(()=>{if(t!==n){if(r&&-1!==n)return t>n?"from-end":"from-start";if(i&&-1!==t)return t>n?"to-start":"to-end"}return null})();return x.current=a,a},[p.previousValue,p.value,p.dir,b,o]);return(0,w.jsx)(et,{asChild:!0,children:(0,w.jsx)(v.qW,{id:y,"aria-labelledby":g,"data-motion":R,"data-orientation":p.orientation,...f,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(Z,{bubbles:!0,cancelable:!0});null==(e=m.current)||e.dispatchEvent(t)},onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{var t;d();let n=e.target;(null==(t=p.rootNavigationMenu)?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,e=>{var t;let n=e.target,r=b().some(e=>{var t;return null==(t=e.ref.current)?void 0:t.contains(n)}),o=p.isRootMenu&&(null==(t=p.viewport)?void 0:t.contains(n));(r||o||!p.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=eo(e.currentTarget),r=document.activeElement,o=t.findIndex(e=>e===r);if(ei(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var n;null==(n=l.current)||n.focus()}}}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{u.current=!0})})})}),Q="NavigationMenuViewport";r.forwardRef((e,t)=>
1{let{forceMount:n,...r}=e,o=!!k(Q,e.__scopeNavigationMenu).value;return(0,w.jsx)(d.C,{present:n||o,children:(0,w.jsx)(ee,{...r,ref:t})})}).displayName=Q;var ee=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:o,...i}=e,u=k(Q,n),c=(0,s.s)(t,u.onViewportChange),f=N($,e.__scopeNavigationMenu),[p,v]=r.useState(null),[m,h]=r.useState(null),g=p?(null==p?void 0:p.width)+"px":void 0,y=p?(null==p?void 0:p.height)+"px":void 0,b=!!u.value,x=b?u.value:u.previousValue;return ea(m,()=>{m&&v({width:m.offsetWidth,height:m.offsetHeight})}),(0,w.jsx)(l.sG.div,{"data-state":el(b),"data-orientation":u.orientation,...i,ref:c,style:{pointerEvents:!b&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":g,"--radix-navigation-menu-viewport-height":y,...i.style},onPointerEnter:(0,a.m)(e.onPointerEnter,u.onContentEnter),onPointerLeave:(0,a.m)(e.onPointerLeave,ec(u.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:n,forceMount:r,...o}]=e,i=x===t;return(0,w.jsx)(d.C,{present:r||i,children:(0,w.jsx)(J,{...o,ref:(0,s.t)(n,e=>{i&&e&&h(e)})})},t)})})}),et=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=k("FocusGroup",n);return(0,w.jsx)(R.Provider,{scope:n,children:(0,w.jsx)(R.Slot,{scope:n,children:(0,w.jsx)(l.sG.div,{dir:o.dir,...r,ref:t})})})}),en=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],er=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=S(n),i=k("FocusGroupItem",n);return(0,w.jsx)(R.ItemSlot,{scope:n,children:(0,w.jsx)(l.sG.button,{...r,ref:t,onKeyDown:(0,a.m)(e.onKeyDown,e=>{if(["Home","End",...en].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===i.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),en.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>ei(t)),e.preventDefault()}})})})});function eo(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ei(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ea(e,t){let n=(0,g.c)(t);(0,h.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function el(e){return e?"open":"closed"}function eu(e,t){return"".concat(e,"-trigger-").concat(t)}function es(e,t){return"".concat(e,"-content-").concat(t)}function ec(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ed=L,ef=_,ep=W,ev=G,em=V,eh=X},35008:(e,t,n)=>{var r=n(42584),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,u=r.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return l(function(){o.value=n,o.getSnapshot=t,s(o)&&c({inst:o})},[e,n,t]),a(function(){return s(o)&&c({inst:o}),e(function(){s(o)&&c({inst:o})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},38172:(e,t,n)=>{n.d(t,{Br:()=>x,FK:()=>w,IP:()=>_,LM:()=>$,OK:()=>Z,VM:()=>C,Ze:()=>X,bL:()=>q,lr:()=>M,zi:()=>Y});var r=n(42584),o=n(8513),i=n(32512),a=n(63965),l=n(41925),u=n(58498),s=n(98636),c=n(32844),d=n(3729),f=n(77518),p=n(69140),v="ScrollArea",[m,h]=(0,a.A)(v),[g,y]=m(v),w=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:i="hover",dir:a,scrollHideDelay:u=600,...c}=e,[d,f]=r.useState(null),[v,m]=r.useState(null),[h,y]=r.useState(null),[w,b]=r.useState(null),[x,E]=r.useState(null),[C,R]=r.useState(0),[S,T]=r.useState(0),[A,P]=r.useState(!1),[D,k]=r.useState(!1),j=(0,l.s)(t,e=>f(e)),N=(0,s.jH)(a);return(0,p.jsx)(g,{scope:n,type:i,dir:N,scrollHideDelay:u,scrollArea:d,viewport:v,onViewportChange:m,content:h,onContentChange:y,scrollbarX:w,onScrollbarXChange:b,scrollbarXEnabled:A,onScrollbarXEnabledChange:P,scrollbarY:x,onScrollbarYChange:E,scrollbarYEnabled:D,onScrollbarYEnabledChange:k,onCornerWidthChange:R,onCornerHeight
1Change:T,children:(0,p.jsx)(o.sG.div,{dir:N,...c,ref:j,style:{position:"relative","--radix-scroll-area-corner-width":C+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})});w.displayName=v;var b="ScrollAreaViewport",x=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:i,nonce:a,...u}=e,s=y(b,n),c=r.useRef(null),d=(0,l.s)(t,c,s.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),(0,p.jsx)(o.sG.div,{"data-radix-scroll-area-viewport":"",...u,ref:d,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:(0,p.jsx)("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});x.displayName=b;var E="ScrollAreaScrollbar",C=r.forwardRef((e,t)=>{let{forceMount:n,...o}=e,i=y(E,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:l}=i,u="horizontal"===e.orientation;return r.useEffect(()=>(u?a(!0):l(!0),()=>{u?a(!1):l(!1)}),[u,a,l]),"hover"===i.type?(0,p.jsx)(R,{...o,ref:t,forceMount:n}):"scroll"===i.type?(0,p.jsx)(S,{...o,ref:t,forceMount:n}):"auto"===i.type?(0,p.jsx)(T,{...o,ref:t,forceMount:n}):"always"===i.type?(0,p.jsx)(A,{...o,ref:t}):null});C.displayName=E;var R=r.forwardRef((e,t)=>{let{forceMount:n,...o}=e,a=y(E,e.__scopeScrollArea),[l,u]=r.useState(!1);return r.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),u(!0)},r=()=>{t=window.setTimeout(()=>u(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",r),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",r)}}},[a.scrollArea,a.scrollHideDelay]),(0,p.jsx)(i.C,{present:n||l,children:(0,p.jsx)(T,{"data-state":l?"visible":"hidden",...o,ref:t})})}),S=r.forwardRef((e,t)=>{var n;let{forceMount:o,...a}=e,l=y(E,e.__scopeScrollArea),u="horizontal"===e.orientation,s=V(()=>d("SCROLL_END"),100),[c,d]=(n={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},"hidden"));return r.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>d("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,l.scrollHideDelay,d]),r.useEffect(()=>{let e=l.viewport,t=u?"scrollLeft":"scrollTop";if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(d("SCROLL"),s()),n=r};return e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[l.viewport,u,d,s]),(0,p.jsx)(i.C,{present:o||"hidden"!==c,children:(0,p.jsx)(A,{"data-state":"hidden"===c?"hidden":"visible",...a,ref:t,onPointerEnter:(0,f.m)(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:(0,f.m)(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),T=r.forwardRef((e,t)=>{let n=y(E,e.__scopeScrollArea),{forceMount:o,...a}=e,[l,u]=r.useState(!1),s="horizontal"===e.orientation,c=V(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;u(s?e:t)}},10);return z(n.viewport,c),z(n.content,c),(0,p.jsx)(i.C,{present:o||l,children:(0,p.jsx)(A,{"data-state":l?"visible":"hidden",...a,ref:t})})}),A=r.forwardRef((e,t)=>{let{orientation:n="vertical",...o}=e,i=y(E,e.__scopeScrollArea),a=r.useRef(null),l=r.useRef(0),[u,s]=r.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=B(u.viewport,u.content),d={...o,sizes:u,onSizesChange:s,hasThumb:!!(c>0&&c<1),onThumbChange:e=>a.current=e,onThumbPointerUp:()=>l.current=0,onThumbPointerDown:e=>l.current=e};function f(e,t){return function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=W(n),i=t||o/2,a=n.scrollbar.paddingStart+i,l=n.scrollbar.size-n.scrollbar.paddingEnd-(o-i),u=n.content-n.viewport;return G([a,l],"ltr"===r?[0,u]:[-1*u,0])(e)}(e,l.current,u,t)}return"horizontal"===n?(0,p.jsx)(P,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=H(i.viewport.scrollLeft,u,i.dir);a.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=f(e,i.dir))}}):"vertical"===n?(0,p.jsx)(D,{...d,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=H(i.viewport.scrollTop,u);a.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=f(e))}}):null}),P=r.forwardRef((e,t)=>
1{let{sizes:n,onSizesChange:o,...i}=e,a=y(E,e.__scopeScrollArea),[u,s]=r.useState(),c=r.useRef(null),d=(0,l.s)(t,c,a.onScrollbarXChange);return r.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,p.jsx)(N,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{bottom:0,left:"rtl"===a.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===a.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":W(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&u&&o({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:U(u.paddingLeft),paddingEnd:U(u.paddingRight)}})}})}),D=r.forwardRef((e,t)=>{let{sizes:n,onSizesChange:o,...i}=e,a=y(E,e.__scopeScrollArea),[u,s]=r.useState(),c=r.useRef(null),d=(0,l.s)(t,c,a.onScrollbarYChange);return r.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),(0,p.jsx)(N,{"data-orientation":"vertical",...i,ref:d,sizes:n,style:{top:0,right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":W(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),function(e,t){return e>0&&e<t}(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&u&&o({content:a.viewport.scrollHeight,viewport:
1a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:U(u.paddingTop),paddingEnd:U(u.paddingBottom)}})}})}),[k,j]=m(E),N=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:i,hasThumb:a,onThumbChange:s,onThumbPointerUp:c,onThumbPointerDown:d,onThumbPositionChange:v,onDragScroll:m,onWheelScroll:h,onResize:g,...w}=e,b=y(E,n),[x,C]=r.useState(null),R=(0,l.s)(t,e=>C(e)),S=r.useRef(null),T=r.useRef(""),A=b.viewport,P=i.content-i.viewport,D=(0,u.c)(h),j=(0,u.c)(v),N=V(g,10);function L(e){S.current&&m({x:e.clientX-S.current.left,y:e.clientY-S.current.top})}return r.useEffect(()=>{let e=e=>{let t=e.target;(null==x?void 0:x.contains(t))&&D(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[A,x,P,D]),r.useEffect(j,[i,j]),z(x,N),z(b.content,N),(0,p.jsx)(k,{scope:n,scrollbar:x,hasThumb:a,onThumbChange:(0,u.c)(s),onThumbPointerUp:(0,u.c)(c),onThumbPositionChange:j,onThumbPointerDown:(0,u.c)(d),children:(0,p.jsx)(o.sG.div,{...w,ref:R,style:{position:"absolute",...w.style},onPointerDown:(0,f.m)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),S.current=x.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",b.viewport&&(b.viewport.style.scrollBehavior="auto"),L(e))}),onPointerMove:(0,f.m)(e.onPointerMove,L),onPointerUp:(0,f.m)(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=T.current,b.viewport&&(b.viewport.style.scrollBehavior=""),S.current=null})})})}),L="ScrollAreaThumb",M=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=j(L,e.__scopeScrollArea);return(0,p.jsx)(i.C,{present:n||o.hasThumb,children:(0,p.jsx)(O,{ref:t,...r})})}),O=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:i,...a}=e,u=y(L,n),s=j(L,n),{onThumbPositionChange:c}=s,d=(0,l.s)(t,e=>s.onThumbChange(e)),v=r.useRef(void 0),m=V(()=>{v.current&&(v.current(),v.current=void 0)},100);return r.useEffect(()=>{let e=u.viewport;if(e){let t=()=>{m(),v.current||(v.current=K(e,c),c())};return c(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[u.viewport,m,c]),(0,p.jsx)(o.sG.div,{"data-state":s.hasThumb?"visible":"hidden",...a,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:(0,f.m)(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;s.onThumbPointerDown({x:n,y:r})}),onPointerUp:(0,f.m)(e.onPointerUp,s.onThumbPointerUp)})});M.displayName=L;var I="ScrollAreaCorner",_=r.forwardRef((e,t)=>{let n=y(I,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&r?(0,p.jsx)(F,{...e,ref:t}):null});_.displayName=I;var F=r.forwardRef((e,t)=>{let{__scopeScrollArea:n,...i}=e,a=y(I,n),[l,u]=r.useState(0),[s,c]=r.useState(0),d=!!(l&&s);return z(a.scrollbarX,()=>{var e;let t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),c(t)}),z(a.scrollbarY,()=>{var e;let t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),u(t)}),d?(0,p.jsx)(o.sG.div,{...i,ref:t,style:{width:l,height:s,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function U(e){return e?parseInt(e,10):0}function B(e,t){let n=e/t;return isNaN(n)?0:n}function W(e){let t=B(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",r=W(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,a=t.content-t.viewport,l=(0,d.q)(e,"ltr"===n?[0,a]:[-1*a,0]);return G([0,a],[0,i-r])(l)}function G(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}var K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n={left:e.scrollLeft,top:e.scrollTop},r=0;return!function o(){let i={left:e.scrollLeft,top:e.scrollTop},a=n.left!==i.left,l=n.top!==i.top;(a||l)&&t(),n=i,r=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(r)};function V(e,t){let n=(0,u.c)(e),o=r.useRef(0);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),r.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,t)},[n,t])}function z(e,t){let n=(0,u.c)(t);(0,c.N)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var q=w,$=x,X=C,Y=M,Z=_}
1,38404:(e,t,n)=>{n.d(t,{A:()=>z});var r,o,i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}Object.create,Object.create;var l=n(42584),u="right-scroll-bar-position",s="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,f=new WeakMap;function p(e){return e}var v=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=p),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return o.options=i({async:!0,ssr:!1},e),o}(),m=function(){},h=l.forwardRef(function(e,t){var n,r,o,u,s=l.useRef(null),p=l.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),h=p[0],g=p[1],y=e.forwardProps,w=e.children,b=e.className,x=e.removeScrollBar,E=e.enabled,C=e.shards,R=e.sideCar,S=e.noRelative,T=e.noIsolation,A=e.inert,P=e.allowPinchZoom,D=e.as,k=e.gapMode,j=a(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=(n=[s,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(o=(0,l.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,u=o.facade,d(function(){var e=f.get(u);if(e){var t=new Set(e),r=new Set(n),o=u.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,o)})}f.set(u,n)},[n]),u),L=i(i({},j),h);return l.createElement(l.Fragment,null,E&&l.createElement(R,{sideCar:v,removeScrollBar:x,shards:C,noRelative:S,noIsolation:T,inert:A,setCallbacks:g,allowPinchZoom:!!P,lockRef:s,gapMode:k}),y?l.cloneElement(l.Children.only(w),i(i({},L),{ref:N})):l.createElement(void 0===D?"div":D,i({},L,{className:b,ref:N}),w))});h.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h.classNames={fullWidth:s,zeroRight:u};var g=function(e){var t=e.sideCar,n=a(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,i({},n))};g.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},w=function(){var e=y();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[E(n),E(r),E(o)]},R=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}
1,S=b(),T="data-scroll-locked",A=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(T,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(u," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(s," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n right: 0 ").concat(r,";\n }\n \n .").concat(s," .").concat(s," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(T,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},P=function(){var e=parseInt(document.body.getAttribute(T)||"0",10);return isFinite(e)?e:0},D=function(){l.useEffect(function(){return document.body.setAttribute(T,(P()+1).toString()),function(){var e=P()-1;e<=0?document.body.removeAttribute(T):document.body.setAttribute(T,e.toString())}},[])},k=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;D();var i=l.useMemo(function(){return R(o)},[o]);return l.createElement(S,{styles:A(i,!t,o,n?"":"!important")})},j=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){return j=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(e){j=!1}var L=!!j&&{passive:!1},M=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},O=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),I(e,r)){var o=_(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},I=function(e,t){return"v"===e?M(t,"overflowY"):M(t,"overflowX")},_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},F=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,u=n.target,s=t.contains(u),c=!1,d=l>0,f=0,p=0;do{if(!u)break;var v=_(e,u),m=v[0],h=v[1]-v[2]-a*m;(m||h)&&I(e,u)&&(f+=h,p+=m);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!s&&u!==document.body||s&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},U=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B=function(e){return[e.deltaX,e.deltaY]},W=function(e){return e&&"current"in e?e.current:e},H=0,G=[];let K=(o=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(H++)[0],i=l.useState(b)[0],a=l.useRef(e);l.useEffect(function(){a.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(W),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=U(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-i[0],s="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=O(d,c);if(!f)return!0;
1if(f?o=d:(o="v"===d?"h":"v",f=O(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return F(p,t,e,"h"===p?u:s,!0)},[]),s=l.useCallback(function(e){if(G.length&&G[G.length-1]===i){var n="deltaY"in e?B(e):U(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(W).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=l.useCallback(function(e){n.current=U(e),r.current=void 0},[]),f=l.useCallback(function(t){c(t.type,B(t),t.target,u(t,e.lockRef.current))},[]),p=l.useCallback(function(t){c(t.type,U(t),t.target,u(t,e.lockRef.current))},[]);l.useEffect(function(){return G.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,L),document.addEventListener("touchmove",s,L),document.addEventListener("touchstart",d,L),function(){G=G.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,L),document.removeEventListener("touchmove",s,L),document.removeEventListener("touchstart",d,L)}},[]);var v=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?l.createElement(k,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},v.useMedium(o),g);var V=l.forwardRef(function(e,t){return l.createElement(h,i({},e,{ref:t,sideCar:K}))});V.classNames=h.classNames;let z=V},41925:(e,t,n)=>{n.d(t,{s:()=>a,t:()=>i});var r=n(42584);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function a(...e){return r.useCallback(i(...e),e)}},41934:(e,t,n)=>{n.d(t,{D:()=>c});var r=n(42584),o=n(33396),i=n(99329),a=n(72597),l=n(55597),u=n(91326),s=n(58246);let c=(0,l.FX)(function(e,t){let n="headlessui-control-".concat((0,r.useId)()),[c,d]=(0,s.b0)(),[f,p]=(0,u.rU)(),v=(0,o._)(),{disabled:m=v||!1,...h}=e,g=(0,r.useMemo)(()=>({disabled:m}),[m]),y=(0,l.Ci)();return r.createElement(o.S,{value:m},r.createElement(d,{value:c},r.createElement(p,{value:f},r.createElement(a.J,{id:n},y({ourProps:{ref:t,disabled:m||void 0,"aria-disabled":m||void 0},theirProps:{...h,children:r.createElement(i.PC,null,"function"==typeof h.children?h.children(g):h.children)},slot:g,defaultTag:"div",name:"Field"})))))})},42799:(e,t,n)=>{n.d(t,{_6:()=>g}),"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}}),"setBigUint64"in DataView.prototype||Object.defineProperty(DataView.prototype,"setBigUint64",{value(e,t,n){let r=Number(4294967295n&t),o=Number(t>>32n);this.setUint32(e+4*!n,r,n),this.setUint32(e+4*!!n,o,n)}});var r=e=>new DataView(new ArrayBuffer(e)),o=e=>new Uint8Array(e.buffer||e),i=e=>(new TextEncoder).encode(String(e)),a=e=>Math.min(0xffffffff,Number(e)),l=e=>Math.min(65535,Number(e));function u(e,t=e){return new ReadableStream({async pull(t){let n=0;for(;t.desiredSize>n;){let a=await e.next();if(!a.value){t.close();break}{var r;let e="string"==typeof(r=a.value)?i(r):r instanceof Uint8Array?r:o(r);t.enqueue(e),n+=e.byteLength}}},cancel(e){t.throw?.(e)}})}function s(e,t,n){var r,a;let[l,u]=t?t instanceof Uint8Array?[t,1]:ArrayBuffer.isView(t)||t instanceof ArrayBuffer?[o(t),1]:[i(t),0]:[void 0,0];if(e instanceof File)return{i:c(l||i(e.name)),o:BigInt(e.size),u:u};if(e instanceof Response){let t=e.headers.get("content-disposition"),r=t&&t.match(/;\s*filename\*?\s*=\s*(?:UTF-\d+''|)["']?([^;"'\r\n]*)["']?(?:;|$)/i),o=r&&r[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),a=o&&decodeURIComponent(o),s=n||+e.headers.get("content-length");
1return{i:c(l||i(a)),o:BigInt(s),u:u}}return l=c(l,void 0!==e||void 0!==n),"string"==typeof e?{i:l,o:BigInt(i(e).length),u:u}:e instanceof Blob?{i:l,o:BigInt(e.size),u:u}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{i:l,o:BigInt(e.byteLength),u:u}:{i:l,o:(r=e,(a=n)>-1?BigInt(a):r?void 0:0n),u:u}}function c(e,t=1){if(!e||e.every(e=>47===e))throw Error("The file must have a name.");if(t)for(;47===e[e.length-1];)e=e.subarray(0,-1);else 47!==e[e.length-1]&&(e=new Uint8Array([...e,47]));return e}var d=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let e=0;e<8;++e)t=t>>>1^(1&t&&0xedb88320);d[e]=t}function f(e,t=0){t=~t;for(var n=0,r=e.length;n<r;n++)t=t>>>8^d[255&t^e[n]];return~t>>>0}function p(e,t,n=0){let r=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,o=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;t.setUint16(n,r,1),t.setUint16(n+2,o,1)}var v=new TextDecoder("utf8",{fatal:1});async function*m(e){let{bytes:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.l=f(t,0),e.o=BigInt(t.length);else{e.o=0n;let n=t.getReader();for(;;){let{value:t,done:r}=await n.read();if(r)break;e.l=f(t,e.l),e.o+=BigInt(t.length),yield t}}}function h(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified,e.mode]]}function g(e,t={}){let n={"Content-Type":"application/zip","Content-Disposition":"attachment"};return("bigint"==typeof t.length||Number.isInteger(t.length))&&t.length>0&&(n["Content-Length"]=String(t.length)),t.metadata&&(n["Content-Length"]=String(function(e){let t=BigInt(22),n=0n,r=0;for(let o of e){if(!o.i)throw Error("Every file must have a non-empty name.");if(void 0===o.o)throw Error(`Missing size for file "${(new TextDecoder).decode(o.i)}".`);let e=o.o>=4294967295n,i=n>=4294967295n;n+=BigInt(46+o.i.length+(e&&8))+o.o,t+=BigInt(o.i.length+46+(12*i|28*e)),r||(r=e)}return(r||n>=4294967295n)&&(t+=BigInt(76)),t+n}(function*(e){for(let t of e)yield s(...h(t)[0])}(t.metadata)))),new Response(function(e,t={}){let n=function(e){let t=e[Symbol.iterator in e?Symbol.iterator:Symbol.asyncIterator]();return{async next(){let e=await t.next();if(e.done)return e;let[n,r]=h(e.value);return{done:0,value:Object.assign(function(e,t,n){void 0===t||t instanceof Date||(t=new Date(t));let r=void 0!==e;if(n||(n=r?436:509),e instanceof File)return{isFile:r,t:t||new Date(e.lastModified),bytes:e.stream(),mode:n};if(e instanceof Response)return{isFile:r,t:t||new Date(e.headers.get("Last-Modified")||Date.now()),bytes:e.body,mode:n};if(void 0===t)t=new Date;else if(isNaN(t))throw Error("Invalid modification date.");if(!r)return{isFile:r,t:t,mode:n};if("string"==typeof e)return{isFile:r,t:t,bytes:i(e),mode:n};if(e instanceof Blob)return{isFile:r,t:t,bytes:e.stream(),mode:n};if(e instanceof Uint8Array||e instanceof ReadableStream)return{isFile:r,t:t,bytes:e,mode:n};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{isFile:r,t:t,bytes:o(e),mode:n};if(Symbol.asyncIterator in e)return{isFile:r,t:t,bytes:u(e[Symbol.asyncIterator]()),mode:n};throw TypeError("Unsupported input format.")}(...r),s(...n))}},throw:t.throw?.bind(t),[Symbol.asyncIterator](){return this}}}(e);return u(async function*(e,t){let n=[],i=0n,u=0n,s=0;for await(let l of e){let e=function({i:e,u:t},n){return 8*(!t||(n??function(e){try{v.decode(e)}catch{return 0}return 1}(e)))}(l,t.buffersAreUTF8);yield function(e,t=0){let n=r(30);return n.setUint32(0,0x504b0304),n.setUint32(4,0x2d000800|t),p(e.t,n,10),n.setUint16(26,e.i.length,1),o(n)}(l,e),yield new Uint8Array(l.i),l.isFile&&(yield*m(l));let c=l.o>=4294967295n,d=12*(i>=4294967295n)|28*c;yield function(e,t){let n=r(16+8*!!t);return n.setUint32(0,0x504b0708),n.setUint32(4,e.isFile?e.l:0,1),t?(n.setBigUint64(8,e.o,1),n.setBigUint64(16,e.o,1)):(n.setUint32(8,a(e.o),1),n.setUint32(12,a(e.o),1)),o(n)}(l,c),n.push(function(e,t,n=0,i=0){let l=r(46);return l.setUint32(0,0x504b0102),l.setUint32(4,0x2d032d00),l.setUint16(8,2048|n),p(e.t,l,12),l.setUint32(16,e.isFile?e.l:0,1),l.setUint32(20,a(e.o),1),l.setUint32(24,a(e.o),1),l.setUint16(28,e.i.length,1),l.setUint16(30,i,1),l.setUint16(40,e.mode|(e.isFile?32768:16384),1),l.setUint32(42,a(t),1),o(l)}(l,i,e,d)),n.push(l.i),d&&n.push(function(e,t,n){let i=r(n);return i.setUint16(0,1,1),i.setUint16(2,n-4,1),16&n&&(i.setBigUint64(4,e.o,1),i.setBigUint64(12,e.o,1)),i.setBigUint64(n-8,t,1),o(i)}(l,i,d)),c&&(i+=8n),u++,i+=BigInt(46+l.i.length)+l.o,s||(s=c)}let c=0n;for(let e of n)yield e,c+=BigInt(e.length);if(s||i>=4294967295n){let e=r(76);e.setUint32(0,0x504b0606),e.setBigUint64(4,BigInt(44),1),e.setUint32(12,0x2d032d00),e.setBigUint64(24,u,1),e.setBigUint64(32,u,1),e.setBigUint64(40,c,1),e.setBigUint64(48,i,1),e.setUint32(56,0x504b0607),e.setBigUint64(64,i+c,1),e.setUint32(72,1,1),yield o(e)}let d=r(22);d.setUint32(0,0x504b0506),d.setUint16(8,l(u),1),d.setUint16(10,l(u),1),d.setUint32(12,a(c),1),d.setUint32(16,a(i),1),yield o(d)}(n,t),n)}(e,t),{headers:n})}}
1,44433:(e,t,n)=>{n.d(t,{C1:()=>x,bL:()=>b});var r=n(42584),o=n(63965),i=n(8513),a=n(69140),l="Progress",[u,s]=(0,o.A)(l),[c,d]=u(l),f=r.forwardRef((e,t)=>{var n,r,o,l;let{__scopeProgress:u,value:s=null,max:d,getValueLabel:f=m,...p}=e;(d||0===d)&&!y(d)&&console.error((n="".concat(d),r="Progress","Invalid prop `max` of value `".concat(n,"` supplied to `").concat(r,"`. Only numbers greater than 0 are valid max values. Defaulting to `").concat(100,"`.")));let v=y(d)?d:100;null===s||w(s,v)||console.error((o="".concat(s),l="Progress","Invalid prop `value` of value `".concat(o,"` supplied to `").concat(l,"`. The `value` prop must be:\n - a positive number\n - less than the value passed to `max` (or ").concat(100," if no `max` prop is set)\n - `null` or `undefined` if the progress is indeterminate.\n\nDefaulting to `null`.")));let b=w(s,v)?s:null,x=g(b)?f(b,v):void 0;return(0,a.jsx)(c,{scope:u,value:b,max:v,children:(0,a.jsx)(i.sG.div,{"aria-valuemax":v,"aria-valuemin":0,"aria-valuenow":g(b)?b:void 0,"aria-valuetext":x,role:"progressbar","data-state":h(b,v),"data-value":null!=b?b:void 0,"data-max":v,...p,ref:t})})});f.displayName=l;var p="ProgressIndicator",v=r.forwardRef((e,t)=>{var n;let{__scopeProgress:r,...o}=e,l=d(p,r);return(0,a.jsx)(i.sG.div,{"data-state":h(l.value,l.max),"data-value":null!=(n=l.value)?n:void 0,"data-max":l.max,...o,ref:t})});function m(e,t){return"".concat(Math.round(e/t*100),"%")}function h(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function g(e){return"number"==typeof e}function y(e){return g(e)&&!isNaN(e)&&e>0}function w(e,t){return g(e)&&!isNaN(e)&&e<=t&&e>=0}v.displayName=p;var b=f,x=v},44603:(e,t,n)=>{n.d(t,{UC:()=>Q,ZL:()=>Z,bL:()=>Y,bm:()=>et,hE:()=>ee,hJ:()=>J});var r=n(42584),o=n(77518),i=n(41925),a=n(63965),l=n(81154),u=n(3178),s=n(78176),c=n(18329),d=n(11823),f=n(32512),p=n(8513),v=n(63109),m=n(38404),h=n(70491),g=n(26121),y=n(69140),w="Dialog",[b,x]=(0,a.A)(w),[E,C]=b(w),R=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,c=r.useRef(null),d=r.useRef(null),[f,p]=(0,u.i)({prop:o,defaultProp:null!=i&&i,onChange:a,caller:w});return(0,y.jsx)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:s,children:n})};R.displayName=w;var S="DialogTrigger";r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=C(S,n),l=(0,i.s)(t,a.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":K(a.open),...r,ref:l,onClick:(0,o.m)(e.onClick,a.onOpenToggle)})}).displayName=S;var T="DialogPortal",[A,P]=b(T,{forceMount:void 0}),D=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,a=C(T,t);return(0,y.jsx)(A,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:n||a.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:i,children:e})}))})};D.displayName=T;var k="DialogOverlay",j=r.forwardRef((e,t)=>{let n=P(k,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(k,e.__scopeDialog);return i.modal?(0,y.jsx)(f.C,{present:r||i.open,children:(0,y.jsx)(L,{...o,ref:t})}):null});j.displayName=k;var N=(0,g.TL)("DialogOverlay.RemoveScroll"),L=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(k,n);return(0,y.jsx)(m.A,{as:N,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":K(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),M="DialogContent",O=r.forwardRef((e,t)=>{let n=P(M,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=C(M,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||i.open,children:i.modal?(0,y.jsx)(I,{...o,ref:t}):(0,y.jsx)(_,{...o,ref:t})})});O.displayName=M;var I=r.forwardRef((e,t)=>{let n=C(M,e.__scopeDialog),a=r.useRef(null),l=(0,i.s)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,h.Eq)(e)},[]),(0,y.jsx)(F,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;
1e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),_=r.forwardRef((e,t)=>{let n=C(M,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(o.current||null==(a=n.triggerRef.current)||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,a;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let l=t.target;(null==(a=n.triggerRef.current)?void 0:a.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),F=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,d=C(M,n),f=r.useRef(null),p=(0,i.s)(t,f);return(0,v.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,y.jsx)(s.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":K(d.open),...u,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)($,{titleId:d.titleId}),(0,y.jsx)(X,{contentRef:f,descriptionId:d.descriptionId})]})]})}),U="DialogTitle",B=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(U,n);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});B.displayName=U;var W="DialogDescription";r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=C(W,n);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})}).displayName=W;var H="DialogClose",G=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=C(H,n);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>i.onOpenChange(!1))})});function K(e){return e?"open":"closed"}G.displayName=H;var V="DialogTitleWarning",[z,q]=(0,a.q)(V,{contentName:M,titleName:U,docsSlug:"dialog"}),$=e=>{let{titleId:t}=e,n=q(V),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},X=e=>{let{contentRef:t,descriptionId:n}=e,o=q("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(i))},[i,t,n]),null},Y=R,Z=D,J=j,Q=O,ee=B,et=G},46229:(e,t,n)=>{n.d(t,{Mz:()=>e1,i3:()=>e4,UC:()=>e2,bL:()=>e0,Bk:()=>eF});var r=n(42584);let o=["top","right","bottom","left"],i=Math.min,a=Math.max,l=Math.round,u=Math.floor,s=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}let g=new Set(["top","bottom"]);function y(e){return g.has(p(e))?"y":"x"}function w(e){return e.replace(/start|end/g,e=>d[e])}let b=["left","right"],x=["right","left"],E=["top","bottom"],C=["bottom","top"];function R(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function S(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function T(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function A(e,t,n){let r,{reference:o,floating:i}=e,a=y(t),l=m(y(t)),u=h(l),s=p(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,g=o[u]/2-i[u]/2;switch(s){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(v(t)){case"start":r[l]-=g*(n&&c?-1:1);break;case"end":r[l]+=g*(n&&c?-1:1)}return r}let P=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}
1=n,l=i.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),s=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=A(s,r,u),f=r,p={},v=0;for(let n=0;n<l.length;n++){let{name:i,fn:m}=l[n],{x:h,y:g,data:y,reset:w}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:a,elements:{reference:e,floating:t}});c=null!=h?h:c,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&v<=50&&(v++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(s=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=A(s,f,u)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function D(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:v=0}=f(t,e),m=S(v),h=l[p?"floating"===d?"reference":"floating":d],g=T(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:c,strategy:u})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),b=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=T(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:w,strategy:u}):y);return{top:(g.top-x.top+m.top)/b.y,bottom:(x.bottom-g.bottom+m.bottom)/b.y,left:(g.left-x.left+m.left)/b.x,right:(x.right-g.right+m.right)/b.x}}function k(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j(e){return o.some(t=>e[t]>=0)}let N=new Set(["left","top"]);async function L(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=p(n),l=v(n),u="y"===y(n),s=N.has(a)?-1:1,c=i&&u?-1:1,d=f(t,e),{mainAxis:m,crossAxis:h,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof g&&(h="end"===l?-1*g:g),u?{x:h*c,y:m*s}:{x:m*s,y:h*c}}function M(){return"undefined"!=typeof window}function O(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function I(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function _(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!M()&&(e instanceof Node||e instanceof I(e).Node)}function U(e){return!!M()&&(e instanceof Element||e instanceof I(e).Element)}function B(e){return!!M()&&(e instanceof HTMLElement||e instanceof I(e).HTMLElement)}function W(e){return!!M()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof I(e).ShadowRoot)}let H=new Set(["inline","contents"]);function G(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ee(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!H.has(o)}let K=new Set(["table","td","th"]),V=[":popover-open",":modal"];function z(e){return V.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let q=["transform","translate","scale","rotate","perspective"],$=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function Y(e){let t=Z(),n=U(e)?ee(e):e;return q.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||$.some(e=>(n.willChange||"").includes(e))||X.some(e=>(n.contain||"").includes(e))}function Z(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let J=new Set(["html","body","#document"]);function Q(e){return J.has(O(e))}function ee(e){return I(e).getComputedStyle(e)}function et(e){return U(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function en(e){if("html"===O(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||_(e);return W(t)?t.host:t}function er(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=en(t);return Q(n)?t.ownerDocument?t.ownerDocument.body:t.body:B(n)&&G(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=I(o);if(i){let e=eo(a);
1return t.concat(a,a.visualViewport||[],G(o)?o:[],e&&n?er(e):[])}return t.concat(o,er(o,[],n))}function eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ei(e){let t=ee(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=B(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function ea(e){return U(e)?e:e.contextElement}function el(e){let t=ea(e);if(!B(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ei(t),a=(i?l(n.width):n.width)/r,u=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let eu=s(0);function es(e){let t=I(e);return Z()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eu}function ec(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=ea(e),l=s(1);t&&(r?U(r)&&(l=el(r)):l=el(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===I(a))&&o)?es(a):s(0),c=(i.left+u.x)/l.x,d=(i.top+u.y)/l.y,f=i.width/l.x,p=i.height/l.y;if(a){let e=I(a),t=r&&U(r)?I(r):r,n=e,o=eo(n);for(;o&&r&&t!==n;){let e=el(o),t=o.getBoundingClientRect(),r=ee(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,d*=e.y,f*=e.x,p*=e.y,c+=i,d+=a,o=eo(n=I(o))}}return T({width:f,height:p,x:c,y:d})}function ed(e,t){let n=et(e).scrollLeft;return t?t.left+n:ec(_(e)).left+n}function ef(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ed(e,r)),y:r.top+t.scrollTop}}let ep=new Set(["absolute","fixed"]);function ev(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=I(e),r=_(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;let e=Z();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l,y:u}}(e,n);else if("document"===t)r=function(e){let t=_(e),n=et(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+ed(e),u=-n.scrollTop;return"rtl"===ee(r).direction&&(l+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:u}}(_(e));else if(U(t))r=function(e,t){let n=ec(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=B(e)?el(e):s(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y;return{width:a,height:l,x:o*i.x,y:r*i.y}}(t,n);else{let n=es(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return T(r)}function em(e){return"static"===ee(e).position}function eh(e,t){if(!B(e)||"fixed"===ee(e).position)return null;if(t)return t(e);let n=e.offsetParent;return _(e)===n&&(n=n.ownerDocument.body),n}function eg(e,t){var n;let r=I(e);if(z(e))return r;if(!B(e)){let t=en(e);for(;t&&!Q(t);){if(U(t)&&!em(t))return t;t=en(t)}return r}let o=eh(e,t);for(;o&&(n=o,K.has(O(n)))&&em(o);)o=eh(o,t);return o&&Q(o)&&em(o)&&!Y(o)?r:o||function(e){let t=en(e);for(;B(t)&&!Q(t);){if(Y(t))return t;if(z(t))break;t=en(t)}return null}(e)||r}let ey=async function(e){let t=this.getOffsetParent||eg,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=B(t),o=_(t),i="fixed"===n,a=ec(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!i)if(("body"!==O(t)||G(o))&&(l=et(t)),r){let e=ec(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ed(o));i&&!r&&o&&(u.x=ed(o));let c=!o||r||i?s(0):ef(o,l);return{x:a.left+l.scrollLeft-u.x-c.x,y:a.top+l.scrollTop-u.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=_(r),l=!!t&&z(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=s(1),d=s(0),f=B(r);if((f||!f&&!i)&&(("body"!==O(r)||G(a))&&(u=et(r)),B(r))){let e=ec(r);c=el(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=!a||f||i?s(0):ef(a,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}},getDocumentElement:_,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,l=[..."clippingAncestors"===n?z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(e=>U(e)&&"body"!==O(e)),o=null,i="fixed"===ee(e).position,a=i?en(e):e;for(;U(a)&&!Q(a);){let t=ee(a),n=Y(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&ep.has(o.position)||G(a)&&!n&&function e(t,n){let r=en(t);return!(r===n||!U(r)||Q(r))&&("fixed"===ee(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=en(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=l[0],s=l.reduce((e,n)=>{let r=ev(t,n,o);return e.top=a(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=a(r.left,e.left),e},ev(t,u,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eg,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ei(e);return{width:t,height:n}},getScale:el,isElement:U,isRTL:function(e){return"rtl"===ee(e).direction}};function eb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ex=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:l,platform:u,elements:s,middlewareData:c}=t,{element:d,padding:p=0}=f(e,t)||{};if(null==d)return{};
1let g=S(p),w={x:n,y:r},b=m(y(o)),x=h(b),E=await u.getDimensions(d),C="y"===b,R=C?"clientHeight":"clientWidth",T=l.reference[x]+l.reference[b]-w[b]-l.floating[x],A=w[b]-l.reference[b],P=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),D=P?P[R]:0;D&&await (null==u.isElement?void 0:u.isElement(P))||(D=s.floating[R]||l.floating[x]);let k=D/2-E[x]/2-1,j=i(g[C?"top":"left"],k),N=i(g[C?"bottom":"right"],k),L=D-E[x]-N,M=D/2-E[x]/2+(T/2-A/2),O=a(j,i(M,L)),I=!c.arrow&&null!=v(o)&&M!==O&&l.reference[x]/2-(M<j?j:N)-E[x]/2<0,_=I?M<j?M-j:M-L:0;return{[b]:w[b]+_,data:{[b]:O,centerOffset:M-O-_,...I&&{alignmentOffset:_}},reset:I}}});var eE=n(4665),eC="undefined"!=typeof document?r.useLayoutEffect:function(){};function eR(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eR(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eR(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eS(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eT(e,t){let n=eS(e);return Math.round(t*n)/n}function eA(e){let t=r.useRef(e);return eC(()=>{t.current=e}),t}var eP=n(8513),eD=n(69140),ek=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eD.jsx)(eP.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eD.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ek.displayName="Arrow";var ej=n(41925),eN=n(63965),eL=n(58498),eM=n(32844),eO=n(34306),eI="Popper",[e_,eF]=(0,eN.A)(eI),[eU,eB]=e_(eI),eW=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,eD.jsx)(eU,{scope:t,anchor:o,onAnchorChange:i,children:n})};eW.displayName=eI;var eH="PopperAnchor",eG=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,a=eB(eH,n),l=r.useRef(null),u=(0,ej.s)(t,l);return r.useEffect(()=>{a.onAnchorChange((null==o?void 0:o.current)||l.current)}),o?null:(0,eD.jsx)(eP.sG.div,{...i,ref:u})});eG.displayName=eH;var eK="PopperContent",[eV,ez]=e_(eK),eq=r.forwardRef((e,t)=>{var n,o,l,s,c,d,g,S;let{__scopePopper:T,side:A="bottom",sideOffset:M=0,align:O="center",alignOffset:I=0,arrowPadding:F=0,avoidCollisions:U=!0,collisionBoundary:B=[],collisionPadding:W=0,sticky:H="partial",hideWhenDetached:G=!1,updatePositionStrategy:K="optimized",onPlaced:V,...z}=e,q=eB(eK,T),[$,X]=r.useState(null),Y=(0,ej.s)(t,e=>X(e)),[Z,J]=r.useState(null),Q=(0,eO.X)(Z),ee=null!=(g=null==Q?void 0:Q.width)?g:0,et=null!=(S=null==Q?void 0:Q.height)?S:0,en="number"==typeof W?W:{top:0,right:0,bottom:0,left:0,...W},eo=Array.isArray(B)?B:[B],ei=eo.length>0,el={padding:en,boundary:eo.filter(eZ),altBoundary:ei},{refs:eu,floatingStyles:es,placement:ed,isPositioned:ef,middlewareData:ep}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:s,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=r.useState(o);eR(p,o)||v(o);let[m,h]=r.useState(null),[g,y]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),b=r.useCallback(e=>{e!==R.current&&(R.current=e,y(e))},[]),x=a||m,E=l||g,C=r.useRef(null),R=r.useRef(null),S=r.useRef(d),T=null!=s,A=eA(s),D=eA(i),k=eA(c),j=r.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};D.current&&(e.platform=D.current),((e,t,n)=>{let r=new Map,o={platform:ew,...n},i={...o.platform,_c:r};return P(e,t,{...o,platform:i})})(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==k.current};N.current&&!eR(S.current,t)&&(S.current=t,eE.flushSync(()=>{f(t)}))})},[p,t,n,D,k]);eC(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let N=r.useRef(!1);eC(()=>(N.current=!0,()=>{N.current=!1}),[]),eC(()=>
1{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(A.current)return A.current(x,E,j);j()}},[x,E,j,A,T]);let L=r.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:b}),[w,b]),M=r.useMemo(()=>({reference:x,floating:E}),[x,E]),O=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=eT(M.floating,d.x),r=eT(M.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eS(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,M.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:j,refs:L,elements:M,floatingStyles:O}),[d,j,L,M,O])}({strategy:"fixed",placement:A+("center"!==O?"-"+O:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=ea(e),v=l||s?[...p?er(p):[],...er(t)]:[];v.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let m=p&&d?function(e,t){let n,r=null,o=_(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let f=e.getBoundingClientRect(),{left:p,top:v,width:m,height:h}=f;if(c||t(),!m||!h)return;let g=u(v),y=u(o.clientWidth-(p+m)),w={rootMargin:-g+"px "+-y+"px "+-u(o.clientHeight-(v+h))+"px "+-u(p)+"px",threshold:a(0,i(1,d))||1},b=!0;function x(t){let r=t[0].intersectionRatio;if(r!==d){if(!b)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||eb(f,e.getBoundingClientRect())||s(),b=!1}try{r=new IntersectionObserver(x,{...w,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(x,w)}r.observe(e)}(!0),l}(p,n):null,h=-1,g=null;c&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!f&&g.observe(p),g.observe(t));let y=f?ec(e):null;return f&&function t(){let r=ec(e);y&&!eb(y,r)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;v.forEach(e=>{l&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,f&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===K})},elements:{reference:q.anchor},middleware:[((e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:a,middlewareData:l}=t,u=await L(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}}(e),options:[e,t]}))({mainAxis:M+et,alignmentAxis:I}),U&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=f(e,t),d={x:n,y:r},v=await D(t,c),h=y(p(o)),g=m(h),w=d[g],b=d[h];if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=w+v[e],r=w-v[t];w=a(n,i(w,r))}if(u){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=b+v[e],r=b-v[t];b=a(n,i(b,r))}let x=s.fn({...t,[g]:w,[h]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[g]:l,[h]:u}}}}}}(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===H?((e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:u=!0,crossAxis:s=!0}=f(e,t),c={x:n,y:r},d=y(o),v=m(d),h=c[v],g=c[d],w=f(l,t),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===v?"height":"width",t=i.reference[v]-i.floating[e]+b.mainAxis,n=i.reference[v]+i.reference[e]-b.mainAxis;h<t?h=t:h>n&&(h=n)}if(s){var x,E;let e="y"===v?"width":"height",t=N.has(p(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(x=a.offset)?void 0:x[d])||0)+(t?0:b.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[d])||0)-(t?b.crossAxis:0);g<n?g=n:g>r&&(g=r)}return{[v]:h,[d]:g}}}}(e),options:[e,t]}))():void 0,...el}),U&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,a;let{placement:l,middlewareData:u,rects:s,initialPlacement:c,platform:d,elements:g}=t,{mainAxis:S=!0,crossAxis:T=!0,fallbackPlacements:A,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:j=!0,...
1N}=f(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let L=p(l),M=y(c),O=p(c)===c,I=await (null==d.isRTL?void 0:d.isRTL(g.floating)),_=A||(O||!j?[R(c)]:function(e){let t=R(e);return[w(e),t,w(t)]}(c)),F="none"!==k;!A&&F&&_.push(...function(e,t,n,r){let o=v(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:b;return t?b:x;case"left":case"right":return t?E:C;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}(c,j,k,I));let U=[c,..._],B=await D(t,N),W=[],H=(null==(r=u.flip)?void 0:r.overflows)||[];if(S&&W.push(B[L]),T){let e=function(e,t,n){void 0===n&&(n=!1);let r=v(e),o=m(y(e)),i=h(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=R(a)),[a,R(a)]}(l,s,I);W.push(B[e[0]],B[e[1]])}if(H=[...H,{placement:l,overflows:W}],!W.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=U[e];if(t&&("alignment"!==T||M===y(t)||H.every(e=>e.overflows[0]>0&&y(e.placement)===M)))return{data:{index:e,overflows:H},reset:{placement:t}};let n=null==(i=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(P){case"bestFit":{let e=null==(a=H.filter(e=>{if(F){let t=y(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(l!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}))({...el}),((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,l,{placement:u,rects:s,platform:c,elements:d}=t,{apply:m=()=>{},...h}=f(e,t),g=await D(t,h),w=p(u),b=v(u),x="y"===y(u),{width:E,height:C}=s.floating;"top"===w||"bottom"===w?(o=w,l=b===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(l=w,o="end"===b?"top":"bottom");let R=C-g.top-g.bottom,S=E-g.left-g.right,T=i(C-g[o],R),A=i(E-g[l],S),P=!t.middlewareData.shift,k=T,j=A;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(j=S),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=R),P&&!b){let e=a(g.left,0),t=a(g.right,0),n=a(g.top,0),r=a(g.bottom,0);x?j=E-2*(0!==e||0!==t?e+t:a(g.left,g.right)):k=C-2*(0!==n||0!==r?n+r:a(g.top,g.bottom))}await m({...t,availableWidth:j,availableHeight:k});let N=await c.getDimensions(d.floating);return E!==N.width||C!==N.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}))({...el,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:a}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),Z&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?ex({element:n.current,padding:r}).fn(t):{}:n?ex({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:Z,padding:F}),eJ({arrowWidth:ee,arrowHeight:et}),G&&((e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=f(e,t);switch(r){case"referenceHidden":{let e=k(await D(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:j(e)}}}case"escaped":{let e=k(await D(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:j(e)}}}default:return{}}}}}(e),options:[e,t]}))({strategy:"referenceHidden",...el})]}),[ev,em]=eQ(ed),eh=(0,eL.c)(V);(0,eM.N)(()=>{ef&&(null==eh||eh())},[ef,eh]);let eg=null==(n=ep.arrow)?void 0:n.x,ey=null==(o=ep.arrow)?void 0:o.y,ek=(null==(l=ep.arrow)?void 0:l.centerOffset)!==0,[eN,eI]=r.useState();return(0,eM.N)(()=>{$&&eI(window.getComputedStyle($).zIndex)},[$]),(0,eD.jsx)("div",{ref:eu.setFloating,"data-radix-popper-content-wrapper":"",style:{...es,transform:ef?es.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eN,"--radix-popper-transform-origin":[null==(s=ep.transformOrigin)?void 0:s.x,null==(c=ep.transformOrigin)?void 0:c.y].join(" "),...(null==(d=ep.hide)?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eD.jsx)(eV,{scope:T,placedSide:ev,onArrowChange:J,arrowX:eg,arrowY:ey,shouldHideArrow:ek,children:(0,eD.jsx)(eP.sG.div,{"data-side":ev,"data-align":em,...z,ref:Y,style:{...z.style,animation:ef?void 0:"none"}})})})});eq.displayName=eK;var e$="PopperArrow",eX={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eY=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=ez(e$,n),i=eX[o.placedSide];return(0,eD.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eD.jsx)(ek,{...r,ref:t,style:{...r.style,display:"block"}})})});function eZ(e){return null!==e}eY.displayName=e$;var eJ=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:l,rects:u,middlewareData:s}=t,c=(null==(n=s.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,v]=eQ(l),m={start:"0%",center:"50%",end:"100%"}[v],h=(null!=(i=null==(r=s.arrow)?void 0:r.x)?i:0)+d/2,g=(null!=(a=null==(o=s.arrow)?void 0:o.y)?a:0)+f/2,y="",w="";return"bottom"===p?(y=c?m:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=c?m:"".concat(h,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=c?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=c?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function eQ(e){let[t,n="center"]=e.split("-");return[t,n]}var e0=eW,e1=eG,e2=eq,e4=eY},46633:(e,t,n)=>{n.d(t,{UC:()=>V,bL:()=>H,l9:()=>K,q7:()=>G});var r=n(42584),o=n(63965),i=n(96382),a=n(41925),l=n(77518),u=n(3178),s=n(8513),c=n(72012),d=n(81154),f=n(98636),p=n(69140),v="Accordion",m=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[h,g,y]=(0,i.N)(v),[w,b]=(0,o.A)(v,[y,c.z3]),x=(0,c.z3)(),E=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,p.jsx)(h.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,p.jsx)(P,{...r,ref:t}):(0,p.jsx)(A,{...r,ref:t})})});E.displayName=v;var[C,R]=w(v),[S,T]=w(v,{collapsible:!1}),A=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},collapsible:a=!1,...l}=e,[s,c]=(0,u.i)({prop:n,defaultProp:null!=o?o:"",onChange:i,caller:v});return(0,p.jsx)(C,{scope:e.__scopeAccordion,value:r.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:r.useCallback(()=>a&&c(""),[a,c]),children:(0,p.jsx)(S,{scope:e.__scopeAccordion,collapsible:a,children:(0,p.jsx)(j,{...l,ref:t})})})}),P=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:i=()=>{},...a}=e,[l,s]=(0,u.i)({prop:n,defaultProp:null!=o?o:[],onChange:i,caller:v}),c=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),d=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,p.jsx)(C,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:d,children:(0,p.jsx)(S,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(j,{...a,ref:t})})})}),[D,k]=w(v),j=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:i,orientation:u="vertical",...c}=e,d=r.useRef(null),v=(0,a.s)(d,t),y=g(n),w="ltr"===(0,f.jH)(i),b=(0,l.m)(e.onKeyDown,e=>{var t;if(!m.includes(e.key))return;let n=e.target,r=y().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),i=r.length;if(-1===o)return;e.preventDefault();let a=o,l=i-1,s=()=>{(a=o+1)>l&&(a=0)},c=()=>{(a=o-1)<0&&(a=l)};switch(e.key){case"Home":a=0;break;case"End":a=l;break;case"ArrowRight":"horizontal"===u&&(w?s():c());break;case"ArrowDown":"vertical"===u&&s();break;case"ArrowLeft":"horizontal"===u&&(w?c():s());break;case"ArrowUp":"vertical"===u&&c()}null==(t=r[a%i].ref.current)||t.focus()});return(0,p.jsx)(D,{scope:n,disabled:o,direction:i,orientation:u,children:(0,p.jsx)(h.Slot,{scope:n,children:(0,p.jsx)(s.sG.div,{...c,"data-orientation":u,ref:v,onKeyDown:o?void 0:b})})})}),N="AccordionItem",[L,M]=w(N),O=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,i=k(N,n),a=R(N,n),l=x(n),u=(0,d.B)(),s=r&&a.value.includes(r)||!1,f=i.disabled||e.disabled;return(0,p.jsx)(L,{scope:n,open:s,disabled:f,triggerId:u,children:(0,p.jsx)(c.bL,{"data-orientation":i.orientation,"data-state":W(s),...l,...o,ref:t,disabled:f,open:s,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})})});O.displayName=N;var I="AccordionHeader";r.forwardRef((e,t)=>
1{let{__scopeAccordion:n,...r}=e,o=k(v,n),i=M(I,n);return(0,p.jsx)(s.sG.h3,{"data-orientation":o.orientation,"data-state":W(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})}).displayName=I;var _="AccordionTrigger",F=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=k(v,n),i=M(_,n),a=T(_,n),l=x(n);return(0,p.jsx)(h.ItemSlot,{scope:n,children:(0,p.jsx)(c.l9,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...l,...r,ref:t})})});F.displayName=_;var U="AccordionContent",B=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=k(v,n),i=M(U,n),a=x(n);return(0,p.jsx)(c.UC,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function W(e){return e?"open":"closed"}B.displayName=U;var H=E,G=O,K=F,V=B},53322:(e,t,n)=>{e.exports=n(74022)},55583:(e,t,n)=>{n.d(t,{_:()=>i});var r=n(42584),o=n(68206);let i=function(e){let t=(0,o.Y)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current(...n)},[t])}},55597:(e,t,n)=>{n.d(t,{oE:()=>v,FX:()=>p,v6:()=>f,Ci:()=>u});var r=n(42584);function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var i=n(67597),a=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(a||{}),l=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(l||{});function u(){let e,t,n=(e=(0,r.useRef)([]),t=(0,r.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!r.every(e=>null==e))return e.current=r,t});return(0,r.useCallback)(e=>(function(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:a,visible:l=!0,name:u,mergeRefs:f}=e;f=null!=f?f:c;let p=d(n,t);if(l)return s(p,r,o,u,f);let v=null!=a?a:0;if(2&v){let{static:e=!1,...t}=p;if(e)return s(t,r,o,u,f)}if(1&v){let{unmount:e=!0,...t}=p;return(0,i.Y)(+!e,{0:()=>null,1:()=>s({...t,hidden:!0,style:{display:"none"}},r,o,u,f)})}return s(p,r,o,u,f)})({mergeRefs:n,...e}),[n])}function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,{as:l=n,children:u,refName:s="ref",...c}=m(e,["unmount","static"]),f=void 0!==e.ref?{[s]:e.ref}:{},p="function"==typeof u?u(t):u;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let h={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(h["data-headlessui-state"]=n.join(" "),n))h["data-".concat(e)]=""}if(l===r.Fragment&&(Object.keys(v(c)).length>0||Object.keys(v(h)).length>0))if(!(0,r.isValidElement)(p)||Array.isArray(p)&&p.length>1){if(Object.keys(v(c)).length>0)throw Error(['Passing props on "Fragment"!\n',"The current component <".concat(i,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(v(c)).concat(Object.keys(v(h))).map(e=>" - ".concat(e)).join("\n"),"\nYou can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>" - ".concat(e)).join("\n")].join("\n"))}else{var g;let e=p.props,t=null==e?void 0:e.className,n="function"==typeof t?function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return o(t(...n),c.className)}:o(t,c.className),i=d(p.props,v(m(c,["ref"])));for(let e in h)e in i&&delete h[e];return(0,r.cloneElement)(p,Object.assign({},i,h,f,{ref:a((g=p,r.version.split(".")[0]>="19"?g.props.ref:g.ref),f.ref)},n?{className:n}:{}))}return(0,r.createElement)(l,Object.assign({},m(c,["ref"]),l!==r.Fragment&&f,l!==r.Fragment&&h),p)}function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(e=>null==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function d(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):r[t]=e[t];if(r.disabled||r["aria-disabled"])for(let e in o)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(o[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n of o[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;n(t,...r)}}});return r}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):r[t]=e[t];for(let e in o)Object.assign(r,{[e](){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(let t of o[e])null==t||t(...n)}});return r}function p(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function v(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},56695:(e,t,n)=>{n.d(t,{In:()=>ej,LM:()=>eM,PP:()=>eF,UC:()=>eL,VF:()=>e_,WT:()=>ek,ZL:()=>eN,bL:()=>eP,l9:()=>eD,p4:()=>eI,q7:()=>eO,wn:()=>eU,wv:()=>eB});var r=n(42584),o=n(4665),i=n(3729),a=n(77518),l=n(96382),u=n(41925),s=n(63965),c=n(98636),d=n(78176),f=n(63109),p=n(18329),v=n(81154),m=n(46229),h=n(11823),g=n(8513),y=n(26121),w=n(58498),b=n(3178),x=n(32844),E=n(23498),C=n(78468),R=n(70491),S=n(38404),T=n(69140),A=[" ","Enter","ArrowUp","ArrowDown"],P=[" ","Enter"],D="Select",[k,j,N]=(0,l.N)(D),[L,M]=(0,s.A)(D,[N,m.Bk]),O=(0,m.Bk)(),[I,_]=L(D),[F,U]=L(D),B=e=>{let{__scopeSelect:t,children:n,open:o,defaultOpen:i,onOpenChange:a,value:l,defaultValue:u,onValueChange:s,dir:d,name:f,autoComplete:p,disabled:h,required:g,form:y}=e,w=O(t),[x,E]=r.useState(null),[C,R]=r.useState(null),[S,A]=r.useState(!1),P=(0,c.jH)(d),[j,N]=(0,b.i)({prop:o,defaultProp:null!=i&&i,onChange:a,caller:D}),[L,M]=(0,b.i)({prop:l,defaultProp:u,onChange:s,caller:D}),_=r.useRef(null),U=!x||y||!!x.closest("form"),[B,W]=r.useState(new Set),H=Array.from(B).map(e=>e.props.value).join(";");return(0,T.jsx)(m.bL,{...w,children:(0,T.jsxs)(I,{required:g,scope:t,trigger:x,onTriggerChange:E,valueNode:C,onValueNodeChange:R,valueNodeHasChildren:S,onValueNodeHasChildrenChange:A,contentId:(0,v.B)(),value:L,onValueChange:M,open:j,onOpenChange:N,dir:P,triggerPointerDownPosRef:_,disabled:h,children:[(0,T.jsx)(k.Provider,{scope:t,children:(0,T.jsx)(F,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{W(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{W(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),U?(0,T.jsxs)(eR,{"aria-hidden":!0,required:g,tabIndex:-1,name:f,autoComplete:p,value:L,onChange:e=>M(e.target.value),disabled:h,form:y,children:[void 0===L?(0,T.jsx)("option",{value:""}):null,Array.from(B)]},H):null]})})};B.displayName=D;var W="SelectTrigger",H=r.forwardRef((e,t)=>
1{let{__scopeSelect:n,disabled:o=!1,...i}=e,l=O(n),s=_(W,n),c=s.disabled||o,d=(0,u.s)(t,s.onTriggerChange),f=j(n),p=r.useRef("touch"),[v,h,y]=eT(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=eA(t,e,n);void 0!==r&&s.onValueChange(r.value)}),w=e=>{c||(s.onOpenChange(!0),y()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,T.jsx)(m.Mz,{asChild:!0,...l,children:(0,T.jsx)(g.sG.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eS(s.value)?"":void 0,...i,ref:d,onClick:(0,a.m)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&w(e)}),onPointerDown:(0,a.m)(i.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(w(e),e.preventDefault())}),onKeyDown:(0,a.m)(i.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),(!t||" "!==e.key)&&A.includes(e.key)&&(w(),e.preventDefault())})})})});H.displayName=W;var G="SelectValue",K=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:o,children:i,placeholder:a="",...l}=e,s=_(G,n),{onValueNodeHasChildrenChange:c}=s,d=void 0!==i,f=(0,u.s)(t,s.onValueNodeChange);return(0,x.N)(()=>{c(d)},[c,d]),(0,T.jsx)(g.sG.span,{...l,ref:f,style:{pointerEvents:"none"},children:eS(s.value)?(0,T.jsx)(T.Fragment,{children:a}):i})});K.displayName=G;var V=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...o}=e;return(0,T.jsx)(g.sG.span,{"aria-hidden":!0,...o,ref:t,children:r||"â¼"})});V.displayName="SelectIcon";var z=e=>(0,T.jsx)(h.Z,{asChild:!0,...e});z.displayName="SelectPortal";var q="SelectContent",$=r.forwardRef((e,t)=>{let n=_(q,e.__scopeSelect),[i,a]=r.useState();return((0,x.N)(()=>{a(new DocumentFragment)},[]),n.open)?(0,T.jsx)(J,{...e,ref:t}):i?o.createPortal((0,T.jsx)(X,{scope:e.__scopeSelect,children:(0,T.jsx)(k.Slot,{scope:e.__scopeSelect,children:(0,T.jsx)("div",{children:e.children})})}),i):null});$.displayName=q;var[X,Y]=L(q),Z=(0,y.TL)("SelectContent.RemoveScroll"),J=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:o="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:s,side:c,sideOffset:v,align:m,alignOffset:h,arrowPadding:g,collisionBoundary:y,collisionPadding:w,sticky:b,hideWhenDetached:x,avoidCollisions:E,...C}=e,A=_(q,n),[P,D]=r.useState(null),[k,N]=r.useState(null),L=(0,u.s)(t,e=>D(e)),[M,O]=r.useState(null),[I,F]=r.useState(null),U=j(n),[B,W]=r.useState(!1),H=r.useRef(!1);r.useEffect(()=>{if(P)return(0,R.Eq)(P)},[P]),(0,f.Oh)();let G=r.useCallback(e=>{let[t,...n]=U().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(let n of e)if(n===o||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&k&&(k.scrollTop=0),n===r&&k&&(k.scrollTop=k.scrollHeight),null==n||n.focus(),document.activeElement!==o))return},[U,k]),K=r.useCallback(()=>G([M,P]),[G,M,P]);r.useEffect(()=>{B&&K()},[B,K]);let{onOpenChange:V,triggerPointerDownPosRef:z}=A;r.useEffect(()=>{if(P){let e={x:0,y:0},t=t=>{var n,r,o,i;e={x:Math.abs(Math.round(t.pageX)-(null!=(o=null==(n=z.current)?void 0:n.x)?o:0)),y:Math.abs(Math.round(t.pageY)-(null!=(i=null==(r=z.current)?void 0:r.y)?i:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():P.contains(n.target)||V(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[P,V,z]),r.useEffect(()=>{let e=()=>V(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[V]);let[$,Y]=eT(e=>{let t=U().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eA(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),J=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==A.value&&A.value===t||r)&&(O(e),r&&(H.current=!0))},[A.value]),et=r.useCallback(()=>null==P?void 0:P.focus(),[P]),en=r.useCallback((e,t,n)=>{let r=!H.current&&!n;(void 0!==A.value&&A.value===t||r)&&F(e)},[A.value]),er="popper"===o?ee:Q,eo=er===ee?{side:c,sideOffset:v,align:m,alignOffset:h,arrowPadding:g,collisionBoundary:y,collisionPadding:w,sticky:b,hideWhenDetached:x,avoidCollisions:E}:{};return(0,T.jsx)(X,{scope:n,content:P,viewport:k,onViewportChange:N,itemRefCallback:J,selectedItem:M,onItemLeave:et,itemTextRefCallback:en,focusSelectedItem:K,selectedItemText:I,position:o,isPositioned:B,searchRef:$,children:(0,T.jsx)(S.A,{as:Z,allowPinchZoom:!0,children:(0,T.jsx)(p.n,{asChild:!0,trapped:A.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,a.m)(i,e=>{var t;
1null==(t=A.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,T.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:(0,T.jsx)(er,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:e=>e.preventDefault(),...C,...eo,onPlaced:()=>W(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,a.m)(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Y(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=U().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>G(t)),e.preventDefault()}})})})})})})});J.displayName="SelectContentImpl";var Q=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:o,...a}=e,l=_(q,n),s=Y(q,n),[c,d]=r.useState(null),[f,p]=r.useState(null),v=(0,u.s)(t,e=>p(e)),m=j(n),h=r.useRef(!1),y=r.useRef(!0),{viewport:w,selectedItem:b,selectedItemText:E,focusSelectedItem:C}=s,R=r.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&f&&w&&b&&E){let e=l.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),r=E.getBoundingClientRect();if("rtl"!==l.dir){let o=r.left-t.left,a=n.left-o,l=e.left-a,u=e.width+l,s=Math.max(u,t.width),d=window.innerWidth-10,f=(0,i.q)(a,[10,Math.max(10,d-s)]);c.style.minWidth=u+"px",c.style.left=f+"px"}else{let o=t.right-r.right,a=window.innerWidth-n.right-o,l=window.innerWidth-e.right-a,u=e.width+l,s=Math.max(u,t.width),d=window.innerWidth-10,f=(0,i.q)(a,[10,Math.max(10,d-s)]);c.style.minWidth=u+"px",c.style.right=f+"px"}let a=m(),u=window.innerHeight-20,s=w.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),y=p+v+s+parseInt(d.paddingBottom,10)+g,x=Math.min(5*b.offsetHeight,y),C=window.getComputedStyle(w),R=parseInt(C.paddingTop,10),S=parseInt(C.paddingBottom,10),T=e.top+e.height/2-10,A=b.offsetHeight/2,P=p+v+(b.offsetTop+A);if(P<=T){let e=a.length>0&&b===a[a.length-1].ref.current;c.style.bottom="0px";let t=Math.max(u-T,A+(e?S:0)+(f.clientHeight-w.offsetTop-w.offsetHeight)+g);c.style.height=P+t+"px"}else{let e=a.length>0&&b===a[0].ref.current;c.style.top="0px";let t=Math.max(T,p+w.offsetTop+(e?R:0)+A);c.style.height=t+(y-P)+"px",w.scrollTop=P-T+w.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=x+"px",c.style.maxHeight=u+"px",null==o||o(),requestAnimationFrame(()=>h.current=!0)}},[m,l.trigger,l.valueNode,c,f,w,b,E,l.dir,o]);(0,x.N)(()=>R(),[R]);let[S,A]=r.useState();(0,x.N)(()=>{f&&A(window.getComputedStyle(f).zIndex)},[f]);let P=r.useCallback(e=>{e&&!0===y.current&&(R(),null==C||C(),y.current=!1)},[R,C]);return(0,T.jsx)(et,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:P,children:(0,T.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:(0,T.jsx)(g.sG.div,{...a,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Q.displayName="SelectItemAlignedPosition";var ee=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:o=10,...i}=e,a=O(n);return(0,T.jsx)(m.UC,{...a,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ee.displayName="SelectPopperPosition";var[et,en]=L(q,{}),er="SelectViewport",eo=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:o,...i}=e,l=Y(er,n),s=en(er,n),c=(0,u.s)(t,l.onViewportChange),d=r.useRef(0);return(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),(0,T.jsx)(k.Slot,{scope:n,children:(0,T.jsx)(g.sG.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,a.m)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if((null==r?void 0:r.current)&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,o=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(o<r){let i=o+e,a=Math.min(r,i),l=i-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});eo.displayName=er;var ei="SelectGroup",[ea,el]=L(ei);r.forwardRef((e,t)=>
1{let{__scopeSelect:n,...r}=e,o=(0,v.B)();return(0,T.jsx)(ea,{scope:n,id:o,children:(0,T.jsx)(g.sG.div,{role:"group","aria-labelledby":o,...r,ref:t})})}).displayName=ei;var eu="SelectLabel";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=el(eu,n);return(0,T.jsx)(g.sG.div,{id:o.id,...r,ref:t})}).displayName=eu;var es="SelectItem",[ec,ed]=L(es),ef=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,disabled:i=!1,textValue:l,...s}=e,c=_(es,n),d=Y(es,n),f=c.value===o,[p,m]=r.useState(null!=l?l:""),[h,y]=r.useState(!1),w=(0,u.s)(t,e=>{var t;return null==(t=d.itemRefCallback)?void 0:t.call(d,e,o,i)}),b=(0,v.B)(),x=r.useRef("touch"),E=()=>{i||(c.onValueChange(o),c.onOpenChange(!1))};if(""===o)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,T.jsx)(ec,{scope:n,value:o,disabled:i,textId:b,isSelected:f,onItemTextChange:r.useCallback(e=>{m(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,T.jsx)(k.ItemSlot,{scope:n,value:o,disabled:i,textValue:p,children:(0,T.jsx)(g.sG.div,{role:"option","aria-labelledby":b,"data-highlighted":h?"":void 0,"aria-selected":f&&h,"data-state":f?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:w,onFocus:(0,a.m)(s.onFocus,()=>y(!0)),onBlur:(0,a.m)(s.onBlur,()=>y(!1)),onClick:(0,a.m)(s.onClick,()=>{"mouse"!==x.current&&E()}),onPointerUp:(0,a.m)(s.onPointerUp,()=>{"mouse"===x.current&&E()}),onPointerDown:(0,a.m)(s.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:(0,a.m)(s.onPointerMove,e=>{if(x.current=e.pointerType,i){var t;null==(t=d.onItemLeave)||t.call(d)}else"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,a.m)(s.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=d.onItemLeave)||t.call(d)}}),onKeyDown:(0,a.m)(s.onKeyDown,e=>{var t;((null==(t=d.searchRef)?void 0:t.current)===""||" "!==e.key)&&(P.includes(e.key)&&E()," "===e.key&&e.preventDefault())})})})})});ef.displayName=es;var ep="SelectItemText",ev=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:a,...l}=e,s=_(ep,n),c=Y(ep,n),d=ed(ep,n),f=U(ep,n),[p,v]=r.useState(null),m=(0,u.s)(t,e=>v(e),d.onItemTextChange,e=>{var t;return null==(t=c.itemTextRefCallback)?void 0:t.call(c,e,d.value,d.disabled)}),h=null==p?void 0:p.textContent,y=r.useMemo(()=>(0,T.jsx)("option",{value:d.value,disabled:d.disabled,children:h},d.value),[d.disabled,d.value,h]),{onNativeOptionAdd:w,onNativeOptionRemove:b}=f;return(0,x.N)(()=>(w(y),()=>b(y)),[w,b,y]),(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(g.sG.span,{id:d.textId,...l,ref:m}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?o.createPortal(l.children,s.valueNode):null]})});ev.displayName=ep;var em="SelectItemIndicator",eh=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return ed(em,n).isSelected?(0,T.jsx)(g.sG.span,{"aria-hidden":!0,...r,ref:t}):null});eh.displayName=em;var eg="SelectScrollUpButton",ey=r.forwardRef((e,t)=>{let n=Y(eg,e.__scopeSelect),o=en(eg,e.__scopeSelect),[i,a]=r.useState(!1),l=(0,u.s)(t,o.onScrollButtonChange);return(0,x.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,T.jsx)(ex,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ey.displayName=eg;var ew="SelectScrollDownButton",eb=r.forwardRef((e,t)=>{let n=Y(ew,e.__scopeSelect),o=en(ew,e.__scopeSelect),[i,a]=r.useState(!1),l=(0,u.s)(t,o.onScrollButtonChange);return(0,x.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,T.jsx)(ex,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});
1eb.displayName=ew;var ex=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:o,...i}=e,l=Y("SelectScrollButton",n),u=r.useRef(null),s=j(n),c=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>c(),[c]),(0,x.N)(()=>{var e;let t=s().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[s]),(0,T.jsx)(g.sG.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,a.m)(i.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(o,50))}),onPointerMove:(0,a.m)(i.onPointerMove,()=>{var e;null==(e=l.onItemLeave)||e.call(l),null===u.current&&(u.current=window.setInterval(o,50))}),onPointerLeave:(0,a.m)(i.onPointerLeave,()=>{c()})})}),eE=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,T.jsx)(g.sG.div,{"aria-hidden":!0,...r,ref:t})});eE.displayName="SelectSeparator";var eC="SelectArrow";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,o=O(n),i=_(eC,n),a=Y(eC,n);return i.open&&"popper"===a.position?(0,T.jsx)(m.i3,{...o,...r,ref:t}):null}).displayName=eC;var eR=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:o,...i}=e,a=r.useRef(null),l=(0,u.s)(t,a),s=(0,E.Z)(o);return r.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==o&&t){let n=new Event("change",{bubbles:!0});t.call(e,o),e.dispatchEvent(n)}},[s,o]),(0,T.jsx)(g.sG.select,{...i,style:{...C.Qg,...i.style},ref:l,defaultValue:o})});function eS(e){return""===e||void 0===e}function eT(e){let t=(0,w.c)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),a=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,a]}function eA(e,t,n){var r,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,l=(r=e,o=Math.max(a,0),r.map((e,t)=>r[(o+t)%r.length]));1===i.length&&(l=l.filter(e=>e!==n));let u=l.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return u!==n?u:void 0}eR.displayName="SelectBubbleInput";var eP=B,eD=H,ek=K,ej=V,eN=z,eL=$,eM=eo,eO=ef,eI=ev,e_=eh,eF=ey,eU=eb,eB=eE},57805:(e,t,n)=>{n.d(t,{_:()=>s});var r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.map(e=>"".concat(e)).join(" ".concat(e," ")).replace(/calc/g,"")},o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc(".concat(r("+",...t),")")},i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc(".concat(r("-",...t),")")},a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc(".concat(r("*",...t),")")},l=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return"calc(".concat(r("/",...t),")")},u=e=>a(e,-1),s=Object.assign(e=>({add:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(o(e,...n))},subtract:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(i(e,...n))},multiply:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(a(e,...n))},divide:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return s(l(e,...n))},negate:()=>s(u(e)),toString:()=>e.toString()}),{add:o,subtract:i,multiply:a,divide:l,negate:u})},58246:(e,t,n)=>{n.d(t,{JU:()=>v,b0:()=>p,o2:()=>f});var r=n(42584),o=n(55583),i=n(88389),a=n(20707),l=n(33396),u=n(72597),s=n(80020),c=n(55597);let d=(0,r.createContext)(null);function f(e){var t,n,o;let i=null!=(n=null==(t=(0,r.useContext)(d))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}function p(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
1,t=f(),[n,i]=(0,r.useState)([]),a=e?[t,...n].filter(Boolean):n;return[a.length>0?a.join(" "):void 0,(0,r.useMemo)(()=>function(e){let t=(0,o._)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,r.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return r.createElement(d.Provider,{value:n},e.children)},[i])]}d.displayName="LabelContext";let v=Object.assign((0,c.FX)(function(e,t){var n;let f=(0,r.useId)(),p=function e(){let t=(0,r.useContext)(d);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),v=(0,u.q)(),m=(0,l._)(),{id:h="headlessui-label-".concat(f),htmlFor:g=null!=v?v:null==(n=p.props)?void 0:n.htmlFor,passive:y=!1,...w}=e,b=(0,a.P)(t);(0,i.s)(()=>p.register(h),[h,p.register]);let x=(0,o._)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&s.H5(e.target))&&(s.kS(t)&&e.preventDefault(),p.props&&"onClick"in p.props&&"function"==typeof p.props.onClick&&p.props.onClick(e),s.kS(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(s.A3(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),E=m||!1,C=(0,r.useMemo)(()=>({...p.slot,disabled:E}),[p.slot,E]),R={ref:b,...p.props,id:h,htmlFor:g,onClick:x};return y&&("onClick"in R&&(delete R.htmlFor,delete R.onClick),"onClick"in w&&delete w.onClick),(0,c.Ci)()({ourProps:R,theirProps:w,slot:C,defaultTag:g?"label":"div",name:p.name||"Label"})}),{})},58498:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(42584);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},63109:(e,t,n)=>{n.d(t,{Oh:()=>i});var r=n(42584),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:a()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},63157:(e,t,n)=>{n.d(t,{A:()=>l,B:()=>p,I:()=>S,O:()=>s,S:()=>V,U:()=>u,a:()=>d,b:()=>a,c:()=>W,d:()=>G,e:()=>c,f:()=>K,g:()=>z,i:()=>g,m:()=>f,n:()=>F,o:()=>_,r:()=>T,s:()=>O,t:()=>A,u:()=>P,z:()=>b});var r=n(42584),o=n(88573),i=Object.prototype.hasOwnProperty;let a=new WeakMap,l=()=>{},u=l(),s=Object,c=e=>e===u,d=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),p=e=>d(e.then),v={},m={},h="undefined",g=typeof window!=h,y=typeof document!=h,w=g&&"Deno"in window,b=(e,t)=>{let n=a.get(e);return[()=>!c(t)&&e.get(t)||v,r=>{if(!c(t)){let o=e.get(t);t in m||(m[t]=o),n[5](t,f(o,r),o||v)}},n[6],()=>!c(t)&&t in m?m[t]:!c(t)&&e.get(t)||v]},x=!0,[E,C]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],R={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),E("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{let t=()=>{x=!0,e()},n=()=>{x=!1};
1return E("online",t),E("offline",n),()=>{C("online",t),C("offline",n)}}},S=!r.useId,T=!g||w,A=e=>g&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1),P=T?r.useEffect:r.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,k=!T&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),j=new WeakMap,N=(e,t)=>e==="[object ".concat(t,"]"),L=0,M=e=>{let t,n,r=typeof e,o=s.prototype.toString.call(e),i=N(o,"Date"),a=N(o,"RegExp"),l=N(o,"Object");if(s(e)!==e||i||a)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=j.get(e))return t;if(t=++L+"~",j.set(e,t),Array.isArray(e)){for(n=0,t="@";n<e.length;n++)t+=M(e[n])+",";j.set(e,t)}if(l){t="#";let r=s.keys(e).sort();for(;!c(n=r.pop());)c(e[n])||(t+=n+":"+M(e[n])+",");j.set(e,t)}}return t},O=e=>{if(d(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?M(e):"",t]},I=0,_=()=>++I;async function F(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i,l,s]=t,v=f({populateCache:!0,throwOnError:!0},"boolean"==typeof s?{revalidate:s}:s||{}),m=v.populateCache,h=v.rollbackOnError,g=v.optimisticData,y=v.throwOnError;if(d(i)){let e=[];for(let t of r.keys())!/^\$(inf|sub)\$/.test(t)&&i(r.get(t)._k)&&e.push(t);return Promise.all(e.map(w))}return w(i);async function w(e){let n,[i]=O(e);if(!i)return;let[s,f]=b(r,i),[w,x,E,C]=a.get(r),R=()=>{let t=w[i];return(d(v.revalidate)?v.revalidate(s().data,e):!1!==v.revalidate)&&(delete E[i],delete C[i],t&&t[0])?t[0](o.q2).then(()=>s().data):s().data};if(t.length<3)return R();let S=l,T=!1,A=_();x[i]=[A,0];let P=!c(g),D=s(),k=D.data,j=D._c,N=c(j)?k:j;
1if(P&&f({data:g=d(g)?g(N,k):g,_c:N}),d(S))try{S=S(N)}catch(e){n=e,T=!0}if(S&&p(S)){let e;if(S=await S.catch(e=>{n=e,T=!0}),A!==x[i][0]){if(T)throw n;return S}T&&P&&(e=n,"function"==typeof h?h(e):!1!==h)&&(m=!0,f({data:N,_c:u}))}if(m&&!T&&(d(m)?f({data:m(S,N),error:u,_c:u}):f({data:S,error:u,_c:u})),x[i][1]=_(),Promise.resolve(R()).then(()=>{f({_c:u})}),T){if(y)throw n;return}return S}}let U=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},B=(e,t)=>{if(!a.has(e)){let n=f(R,t),r=Object.create(null),i=F.bind(u,e),s=l,c=Object.create(null),d=(e,t)=>{let n=c[e]||[];return c[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},p=(t,n,r)=>{e.set(t,n);let o=c[t];if(o)for(let e of o)e(n,r)},v=()=>{if(!a.has(e)&&(a.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,p,d]),!T)){let t=n.initFocus(setTimeout.bind(u,U.bind(u,r,o.CC))),i=n.initReconnect(setTimeout.bind(u,U.bind(u,r,o.jB)));s=()=>{t&&t(),i&&i(),a.delete(e)}}};return v(),[e,i,v,s]}return[e,a.get(e)[4]]},[W,H]=B(new Map),G=f({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,n,r,o)=>{let i=n.errorRetryCount,a=o.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;(c(i)||!(a>i))&&setTimeout(r,l,o)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:function e(t,n){var r,o;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((o=t.length)===n.length)for(;o--&&e(t[o],n[o]););return -1===o}if(!r||"object"==typeof t){for(r in o=0,t)if(i.call(t,r)&&++o&&!i.call(n,r)||!(r in n)||!e(t[r],n[r]))return!1;return Object.keys(n).length===o}}return t!=t&&n!=n},isPaused:()=>!1,cache:W,mutate:H,fallback:{}},{isOnline:()=>x,isVisible:()=>{let e=y&&document.visibilityState;return c(e)||"hidden"!==e}}),K=(e,t)=>{let n=f(e,t);if(t){let{use:r,fallback:o}=e,{use:i,fallback:a}=t;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=f(o,a))}return n},V=(0,r.createContext)({}),z=e=>{let{value:t}=e,n=(0,r.useContext)(V),o=d(t),i=(0,r.useMemo)(()=>o?t(n):t,[o,n,t]),a=(0,r.useMemo)(()=>o?i:K(n,i),[o,n,i]),l=i&&i.provider,s=(0,r.useRef)(u);l&&!s.current&&(s.current=B(l(a.cache||W),i));let c=s.current;return c&&(a.cache=c[0],a.mutate=c[1]),P(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,r.createElement)(V.Provider,f(e,{value:a}))}},63396:(e,t,n)=>{n.d(t,{Ht:()=>p,aw:()=>f,iX:()=>s,qm:()=>d});var r=n(63157),o=n(92955),i=n(42584);let a=r.i&&window.__SWR_DEVTOOLS_USE__,l=a?window.__SWR_DEVTOOLS_USE__:[],u=e=>(0,r.a)(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],s=()=>{let e=(0,i.useContext)(r.S);return(0,i.useMemo)(()=>(0,r.m)(r.d,e),[e])},c=l.concat(e=>(t,n,i)=>{let a=n&&((...e)=>{let[i]=(0,r.s)(t),[,,,a]=r.b.get(r.c);if(i.startsWith(o.q))return n(...e);let l=a[i];return(0,r.e)(l)?n(...e):(delete a[i],l)});return e(t,a,i)}),d=e=>function(...t){let n=s(),[o,i,a]=u(t),l=(0,r.f)(n,a),d=e,{use:f}=l,p=(f||[]).concat(c);for(let e=p.length;e--;)d=p[e](d);return d(o,i||l.fetcher||null,l)},f=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},p=(e,t)=>(...n)=>{let[r,o,i]=u(n),a=(i.use||[]).concat(t);return e(r,o,{...i,use:a})};a&&(window.__SWR_DEVTOOLS_REACT__=i)},63965:(e,t,n)=>{n.d(t,{A:()=>a,q:()=>i});var r=n(42584),o=n(69140);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,a=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:a,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let a=r.createContext(i),l=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,s=n?.[e]?.[l]||a,c=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(s.Provider,{value:c,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[l]||a,s=r.useContext(u);if(s)return s;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},66253:(e,t,n)=>{n.d(t,{S:()=>b});var r=n(7974),o=n(22459),i=n(42584),a=n(19795),l=n(99462),u=n(55583),s=n(98946),c=n(6954),d=n(33396),f=n(99329),p=n(72597),v=n(6983),m=n(81054),h=n(55597),g=n(91326),y=n(82182),w=n(58246);let b=(0,h.FX)(function(e,t){let n=(0,i.useId)(),b=(0,p.q)(),x=(0,d._)(),{id:E=b||"headlessui-checkbox-".concat(n),disabled:C=x||!1,autoFocus:R=!1,checked:S,defaultChecked:T,onChange:A,name:P,value:D,form:k,indeterminate:j=!1,tabIndex:N=0,...L}=e,M=(0,c.K)(T),[O,I]=(0,s.P)(S,A,null!=M&&M),_=(0,w.o2)(),F=(0,g.MM)(),U=(0,l.L)(),[B,W]=(0,i.useState)(!1),H=(0,u._)(()=>{W(!0),null==I||I(!O),U.nextFrame(()=>{W(!1)})}),G=(0,u._)(e=>{if((0,v.l)(e.currentTarget))return e.preventDefault();e.preventDefault(),H()}),K=(0,u._)(e=>{e.key===y.D.Space?(e.preventDefault(),H()):e.key===y.D.Enter&&(0,m.q)(e.currentTarget)}),V=(0,u._)(e=>e.preventDefault()),{isFocusVisible:z,focusProps:q}=(0,r.o)({autoFocus:R}),{isHovered:$,hoverProps:X}=(0,o.M)({isDisabled:C}),{pressed:Y,pressProps:Z}=function(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.useRef)(null),[n,r]=(0,i.useState)(!1),o=(0,l.L)(),s=(0,u._)(()=>{t.current=null,r(!1),o.dispose()}),c=(0,u._)(e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=(0,a.T)(e.currentTarget);o.addEventListener(n,"pointerup",s,!1),o.addEventListener(n,"pointermove",e=>{if(t.current){var n,o;let i,a;r((i=e.width/2,a=e.height/2,n={top:e.clientY-a,right:e.clientX+i,bottom:e.clientY+a,left
1:e.clientX-i},o=t.current.getBoundingClientRect(),!(!n||!o||n.right<o.left||n.left>o.right||n.bottom<o.top||n.top>o.bottom)))}},!1),o.addEventListener(n,"pointercancel",s,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:c,onPointerUp:s,onClick:s}}}({disabled:C}),J=(0,h.v6)({ref:t,id:E,role:"checkbox","aria-checked":j?"mixed":O?"true":"false","aria-labelledby":_,"aria-describedby":F,"aria-disabled":!!C||void 0,indeterminate:j?"true":void 0,tabIndex:C?void 0:N,onKeyUp:C?void 0:K,onKeyPress:C?void 0:V,onClick:C?void 0:G},q,X,Z),Q=(0,i.useMemo)(()=>({checked:O,disabled:C,hover:$,focus:z,active:Y,indeterminate:j,changing:B,autofocus:R}),[O,j,C,$,z,Y,B,R]),ee=(0,i.useCallback)(()=>{if(void 0!==M)return null==I?void 0:I(M)},[I,M]),et=(0,h.Ci)();return i.createElement(i.Fragment,null,null!=P&&i.createElement(f.CL,{disabled:C,data:{[P]:D||"on"},overrides:{type:"checkbox",checked:O},form:k,onReset:ee}),et({ourProps:J,theirProps:L,slot:Q,defaultTag:"span",name:"Checkbox"}))})},67597:(e,t,n)=>{n.d(t,{Y:()=>r});function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(e in t){let n=t[e];return"function"==typeof n?n(...o):n}let a=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(a,r),a}},68206:(e,t,n)=>{n.d(t,{Y:()=>i});var r=n(42584),o=n(88389);function i(e){let t=(0,r.useRef)(e);return(0,o.s)(()=>{t.current=e},[e]),t}},68965:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(42584);let o="undefined"==typeof window?r.useEffect:r.useLayoutEffect,i={breakpoint:void 0,minWidth:void 0,maxWidth:void 0},a=(e,t,n=!0)=>{let a=(0,r.useMemo)(()=>(e=>{let t=Object.keys(e).sort((t,n)=>e[n]-e[t]);return t.map((n,r)=>{let o="",i=e[n],a=t[r-1],l=a?e[a]:null;return i>=0&&(o=`(min-width: ${i}px)`),null!==l&&(o&&(o+=" and "),o+=`(max-width: ${l-1}px)`),{breakpoint:n,maxWidth:l?l-1:null,minWidth:i,query:o}})})(e),[e]),[l,u]=(0,r.useState)(()=>{for(let{query:e,...r}of a)if("undefined"==typeof window||t&&n){if(r.breakpoint===t)return r}else if(window.matchMedia(e).matches)return r;return i}),s=(0,r.useCallback)(({matches:e},t)=>{e&&u(t)},[]);return o(()=>{let e=a.map(({query:e,...t})=>{let n=window.matchMedia(e);s(n,t);let r=e=>{s(e,t)};return n.addListener(r),()=>n.removeListener(r)});return()=>e.forEach(e=>e())},[a,s]),(0,r.useDebugValue)(l,e=>"string"==typeof e.breakpoint?`${e.breakpoint} (${e.minWidth} ⤠x${e.maxWidth?` < ${e.maxWidth+1}`:""})`:""),l}},70491:(e,t,n)=>{n.d(t,{Eq:()=>s});var r=new WeakMap,o=new WeakMap,i={},a=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t,n,u){var s=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=l(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var c=i[n],d=[],f=new Set,p=new Set(s),v=function(e){!e||f.has(e)||(f.add(e),v(e.parentNode))};s.forEach(v);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,l=(c.get(e)||0)+1;r.set(e,a),c.set(e,l),d.push(e),1===a&&i&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,i=c.get(e)-1;r.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},s=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),u(r,o,n,"aria-hidden")):function(){return null}}},72012:(e,t,n)=>{n.d(t,{UC:()=>A,bL:()=>S,l9:()=>T,z3:()=>m});var r=n(42584),o=n(77518),i=n(63965),a=n(3178),l=n(32844),u=n(41925),s=n(8513),c=n(32512),d=n(81154),f=n(69140),p="Collapsible",[v,m]=(0,i.A)(p
1),[h,g]=v(p),y=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:l,onOpenChange:u,...c}=e,[v,m]=(0,a.i)({prop:o,defaultProp:null!=i&&i,onChange:u,caller:p});return(0,f.jsx)(h,{scope:n,disabled:l,contentId:(0,d.B)(),open:v,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),children:(0,f.jsx)(s.sG.div,{"data-state":R(v),"data-disabled":l?"":void 0,...c,ref:t})})});y.displayName=p;var w="CollapsibleTrigger",b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,i=g(w,n);return(0,f.jsx)(s.sG.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":R(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})});b.displayName=w;var x="CollapsibleContent",E=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=g(x,e.__scopeCollapsible);return(0,f.jsx)(c.C,{present:n||o.open,children:e=>{let{present:n}=e;return(0,f.jsx)(C,{...r,ref:t,present:n})}})});E.displayName=x;var C=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:i,...a}=e,c=g(x,n),[d,p]=r.useState(o),v=r.useRef(null),m=(0,u.s)(t,v),h=r.useRef(0),y=h.current,w=r.useRef(0),b=w.current,E=c.open||d,C=r.useRef(E),S=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.N)(()=>{let e=v.current;if(e){S.current=S.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();h.current=t.height,w.current=t.width,C.current||(e.style.transitionDuration=S.current.transitionDuration,e.style.animationName=S.current.animationName),p(o)}},[c.open,o]),(0,f.jsx)(s.sG.div,{"data-state":R(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!E,...a,ref:m,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style},children:E&&i})});function R(e){return e?"open":"closed"}var S=y,T=b,A=E},72597:(e,t,n)=>{n.d(t,{J:()=>a,q:()=>i});var r=n(42584);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}function a(e){let{id:t,children:n}=e;return r.createElement(o.Provider,{value:t},n)}},74022:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,s=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,v=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,w=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case s:case f:case h:case m:case u:return e;default:return t}}case o:return t}}}function E(e){return x(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=u,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=h,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||x(e)===c},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===s},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===l||e===a||e===p||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===u||e.$$typeof===s||e.$$typeof===f||e.$$typeof===y||e.$$typeof===w||e.$$typeof===b||e.$$typeof===g)},t.typeOf=x}
1,75812:(e,t,n)=>{n.d(t,{Ay:()=>p});var r=n(42584),o=n(91349),i=n(63157),a=n(88573),l=n(63396);let u=()=>{},s=u();new WeakMap;let c=r.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),d={dedupe:!0},f=Promise.resolve(i.U);i.O.defineProperty(i.g,"defaultValue",{value:i.d});let p=(0,l.qm)((e,t,n)=>{let{cache:u,compare:s,suspense:p,fallbackData:v,revalidateOnMount:m,revalidateIfStale:h,refreshInterval:g,refreshWhenHidden:y,refreshWhenOffline:w,keepPreviousData:b,strictServerPrefetchWarning:x}=n,[E,C,R,S]=i.b.get(u),[T,A]=(0,i.s)(e),P=(0,r.useRef)(!1),D=(0,r.useRef)(!1),k=(0,r.useRef)(T),j=(0,r.useRef)(t),N=(0,r.useRef)(n),L=()=>N.current.isVisible()&&N.current.isOnline(),[M,O,I,_]=(0,i.z)(u,T),F=(0,r.useRef)({}).current,U=(0,i.e)(v)?(0,i.e)(n.fallback)?i.U:n.fallback[T]:v,B=(e,t)=>{for(let n in F)if("data"===n){if(!s(e[n],t[n])&&(!(0,i.e)(e[n])||!s(X,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},W=(0,r.useMemo)(()=>{let e=!!T&&!!t&&((0,i.e)(m)?!N.current.isPaused()&&!p&&!1!==h:m),n=t=>{let n=(0,i.m)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=M(),o=_(),a=n(r),l=r===o?a:n(o),u=a;return[()=>{let e=n(M());return B(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>l]},[u,T]),H=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>I(T,(t,n)=>{B(n,t)||e()}),[u,T]),W[0],W[1]),G=!P.current,K=E[T]&&E[T].length>0,V=H.data,z=(0,i.e)(V)?U&&(0,i.B)(U)?c(U):U:V,q=H.error,$=(0,r.useRef)(z),X=b?(0,i.e)(V)?(0,i.e)($.current)?z:$.current:V:z,Y=T&&(0,i.e)(z),Z=!i.r&&(0,o.useSyncExternalStore)(()=>i.A,()=>!1,()=>!0);x&&Z&&!p&&Y&&console.warn(`Missing pre-initiated data for serialized key "${T}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let J=(!K||!!(0,i.e)(q))&&(G&&!(0,i.e)(m)?m:!N.current.isPaused()&&(p?!(0,i.e)(z)&&h:(0,i.e)(z)||h)),Q=!!(T&&t&&G&&J),ee=(0,i.e)(H.isValidating)?Q:H.isValidating,et=(0,i.e)(H.isLoading)?Q:H.isLoading,en=(0,r.useCallback)(async e=>{let t,r,o=j.current;if(!T||!o||D.current||N.current.isPaused())return!1;let l=!0,u=e||{},c=!R[T]||!u.dedupe,d=()=>i.I?!D.current&&T===k.current&&P.current:T===k.current,f={isValidating:!1,isLoading:!1},p=()=>{O(f)},v=()=>{let e=R[T];e&&e[1]===r&&delete R[T]},m={isValidating:!0};(0,i.e)(M().data)&&(m.isLoading=!0);try{if(c&&(O(m),n.loadingTimeout&&(0,i.e)(M().data)&&setTimeout(()=>{l&&d()&&N.current.onLoadingSlow(T,n)},n.loadingTimeout),R[T]=[o(A),(0,i.o)()]),[t,r]=R[T],t=await t,c&&setTimeout(v,n.dedupingInterval),!R[T]||R[T][1]!==r)return c&&d()&&N.current.onDiscarded(T),!1;f.error=i.U;let e=C[T];if(!(0,i.e)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return p(),c&&d()&&N.current.onDiscarded(T),!1;let a=M().data;f.data=s(a,t)?a:t,c&&d()&&N.current.onSuccess(t,T,n)}catch(n){v();let e=N.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=n,c&&d()&&(e.onError(n,T,e),(!0===t||(0,i.a)(t)&&t(n))&&(!N.current.revalidateOnFocus||!N.current.revalidateOnReconnect||L())&&e.onErrorRetry(n,T,e,e=>{let t=E[T];t&&t[0]&&t[0](a.I0,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return l=!1,p(),!0},[T,u]),er=(0,r.useCallback)((...e)=>(0,i.n)(u,k.current,...e),[]);if((0,i.u)(()=>{j.current=t,N.current=n,(0,i.e)(V)||($.current=V)}),(0,i.u)(()=>{if(!T)return;let e=en.bind(i.U,d),t=0;N.current.revalidateOnFocus&&(t=Date.now()+N.current.focusThrottleInterval);let n=(0,l.aw)(T,E,(n,r={})=>{if(n==a.CC){let n=Date.now();N.current.revalidateOnFocus&&n>t&&L()&&(t=n+N.current.focusThrottleInterval,e())}else if(n==a.jB)N.current.revalidateOnReconnect&&L()&&e();else if(n==a.q2)return en();else if(n==a.I0)return en(r)});return D.current=!1,k.current=T,P.current=!0,O({_k:A}),J&&!R[T]&&((0,i.e)(z)||i.r?e():(0,i.t)(e)),()=>{D.current=!0,n()}},[T]),(0,i.u)(()=>{let e;function t(){let t=(0,i.a)(g)?g(M().data):g;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!M().error&&(y||N.current.isVisible())&&(w||N.current.isOnline())?en(d).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,y,w,T]),(0,r.useDebugValue)(X),p){if(!i.I&&i.r&&Y)throw Error("Fallback data is required when using Suspense in SSR.");Y&&(j.current=t,N.current=n,D.current=!1);let e=S[T];if(c(!(0,i.e)(e)&&Y?er(e):f),!(0,i.e)(q)&&Y)throw q;let r=Y?en(d):f;!(0,i.e)(X)&&Y&&(r.status="fulfilled",r.value=!0),c(r)}return{mutate:er,get data(){return F.data=!0,X},get error(){return F.error=!0,q},get isValidating(){return F.isValidating=!0,ee},get isLoading(){return F.isLoading=!0,et}}})},77518:(e,t,n)=>{n.d(t,{m:()=>r});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}}
1,78014:(e,t,n)=>{var r=n(53322),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(v){var o=p(n);o&&o!==v&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=u(t),m=u(n),h=0;h<a.length;++h){var g=a[h];if(!i[g]&&!(r&&r[g])&&!(m&&m[g])&&!(l&&l[g])){var y=f(n,g);try{s(t,g,y)}catch(e){}}}}return t}},78176:(e,t,n)=>{n.d(t,{qW:()=>f});var r,o=n(42584),i=n(77518),a=n(8513),l=n(41925),u=n(58498),s=n(69140),c="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:m=!1,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(d),[C,R]=o.useState(null),S=null!=(f=null==C?void 0:C.ownerDocument)?f:null==(n=globalThis)?void 0:n.document,[,T]=o.useState({}),A=(0,l.s)(t,e=>R(e)),P=Array.from(E.layers),[D]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),k=P.indexOf(D),j=C?P.indexOf(C):-1,N=E.layersWithOutsidePointerEventsDisabled.size>0,L=j>=k,M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){v("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));L&&!n&&(null==g||g(e),null==w||w(e),e.defaultPrevented||null==b||b())},S),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,u.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&v("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==b||b())},S);return!function(e,t=globalThis?.document){let n=(0,u.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{j===E.layers.size-1&&(null==h||h(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},S),o.useEffect(()=>{if(C)return m&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),p(),()=>{m&&1===E.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r)}},[C,S,m,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),p())},[C,E]),o.useEffect(()=>{let e=()=>T({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,s.jsx)(a.sG.div,{...x,ref:A,style:{pointerEvents:N?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.m)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,i.m)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,i.m)(e.onPointerDownCapture,M.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function v(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.hO)(i,l):i.dispatchEvent(l)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let n=o.useContext(d),r=o.useRef(null),i=(0,l.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,s.jsx)(a.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},78468:(e,t,n)=>{n.d(t,{Qg:()=>a,bL:()=>u});var r=n(42584),o=n(8513),i=n(69140),a=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l=r.forwardRef((e,t)=>(0,i.jsx)(o.sG.span,{...e,ref:t,style:{...a,...e.style}}));l.displayName="VisuallyHidden";var u=l},80020:(e,t,n)=>{function r(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"tagName"in e}function o(e){return r(e)&&"accessKey"in e}function i(e){return o(e)&&"INPUT"===e.nodeName}function a(e){return o(e)&&"LABEL"===e.nodeName}function l(e){return o(e)&&"FIELDSET"===e.nodeName}function u(e){return o(e)&&"LEGEND"===e.nodeName}function s(e){return!!r(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}n.d(t,{A3:()=>i,Er:()=>l,H5:()=>s,Jb:()=>u,kS:()=>a})},81054:(e,t,n)=>{function r(e,t){return e?e+"["+t+"]":t}function o(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}n.d(t,{h:()=>function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[i,a]of Object.entries(t))!function t(n,o,i){if(Array.isArray(i))for(let[e,a]of i.entries())t(n,r(o,e.toString()),a);else i instanceof Date?n.push([o,i.toISOString()]):"boolean"==typeof i?n.push([o,i?"1":"0"]):"string"==typeof i?n.push([o,i]):"number"==typeof i?n.push([o,"".concat(i)]):null==i?n.push([o,""]):e(i,o,n)}(o,r(n,i),a);return o},q:()=>o})},81154:(e,t,n)=>{n.d(t,{B:()=>u});var r,o=n(42584),i=n(32844),a=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),l=0;function u(e){let[t,n]=o.useState(a());return(0,i.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},82182:(e,t,n)=>{n.d(t,{D:()=>r});var r=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(r||{})},85174:(e,t,n)=>{n.d(t,{UC:()=>e5,q7:()=>e8,bL:()=>e2,l9:()=>e4});var r=n(42584),o=n(77518),i=n(41925),a=n(63965),l=n(3178),u=n(8513),s=n(96382),c=n(98636),d=n(78176),f=n(63109),p=n(18329),v=n(81154),m=n(46229),h=n(11823),g=n(32512),y=n(58498),w=n(69140),b="rovingFocusGroup.onEntryFocus",x={bubbles:!1,cancelable:!0},E="RovingFocusGroup",[C,R,S]=(0,s.N)(E),[T,A]=(0,a.A)(E,[S]),[P,D]=T(E),k=r.forwardRef((e,t)=>(0,w.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,w.jsx)(j,{...e,ref:t})})}));k.displayName=E;var j=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:s=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:v,onEntryFocus:m,preventScrollOnEntryFocus:h=!1,...g}=e,C=r.useRef(null),S=(0,i.s)(t,C),T=(0,c.jH)(d),[A,D]=(0,l.i)({prop:f,defaultProp:null!=p?p:null,onChange:v,caller:E}),[k,j]=r.useState(!1),N=(0,y.c)(m),L=R(n),M=r.useRef(!1),[I,_]=r.useState(0);return r.useEffect(()=>{let e=C.current;if(e)return e.addEventListener(b,N),()=>e.removeEventListener(b,N)},[N]),(0,w.jsx)(P,{scope:n,orientation:a,dir:T,loop:s,currentTabStopId:A,onItemFocus:r.useCallback(e=>D(e),[D]),onItemShiftTab:r.useCallback(()=>j(!0),[]),onFocusableItemAdd:r.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>_(e=>e-1),[]),children:(0,w.jsx)(u.sG.div,{tabIndex:k||0===I?-1:0,"data-orientation":a,...g,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(b,x);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=L().filter(e=>
1e.focusable);O([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),h)}}M.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>j(!1))})})}),N="RovingFocusGroupItem",L=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:l,children:s,...c}=e,d=(0,v.B)(),f=l||d,p=D(N,n),m=p.currentTabStopId===f,h=R(n),{onFocusableItemAdd:g,onFocusableItemRemove:y,currentTabStopId:b}=p;return r.useEffect(()=>{if(i)return g(),()=>y()},[i,g,y]),(0,w.jsx)(C.ItemSlot,{scope:n,id:f,focusable:i,active:a,children:(0,w.jsx)(u.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...c,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{i?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return M[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>O(n))}}),children:"function"==typeof s?s({isCurrentTabStop:m,hasTabStop:null!=b}):s})})});L.displayName=N;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var I=n(26121),_=n(70491),F=n(38404),U=["Enter"," "],B=["ArrowUp","PageDown","End"],W=["ArrowDown","PageUp","Home",...B],H={ltr:[...U,"ArrowRight"],rtl:[...U,"ArrowLeft"]},G={ltr:["ArrowLeft"],rtl:["ArrowRight"]},K="Menu",[V,z,q]=(0,s.N)(K),[$,X]=(0,a.A)(K,[q,m.Bk,A]),Y=(0,m.Bk)(),Z=A(),[J,Q]=$(K),[ee,et]=$(K),en=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:a,modal:l=!0}=e,u=Y(t),[s,d]=r.useState(null),f=r.useRef(!1),p=(0,y.c)(a),v=(0,c.jH)(i);return r.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,w.jsx)(m.bL,{...u,children:(0,w.jsx)(J,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:d,children:(0,w.jsx)(ee,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:v,modal:l,children:o})})})};en.displayName=K;var er=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=Y(n);return(0,w.jsx)(m.Mz,{...o,...r,ref:t})});er.displayName="MenuAnchor";var eo="MenuPortal",[ei,ea]=$(eo,{forceMount:void 0});var el="MenuContent",[eu,es]=$(el),ec=r.forwardRef((e,t)=>{let n=ea(el,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Q(el,e.__scopeMenu),a=et(el,e.__scopeMenu);return(0,w.jsx)(V.Provider,{scope:e.__scopeMenu,children:(0,w.jsx)(g.C,{present:r||i.open,children:(0,w.jsx)(V.Slot,{scope:e.__scopeMenu,children:a.modal?(0,w.jsx)(ed,{...o,ref:t}):(0,w.jsx)(ef,{...o,ref:t})})})})}),ed=r.forwardRef((e,t)=>{let n=Q(el,e.__scopeMenu),a=r.useRef(null),l=(0,i.s)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,_.Eq)(e)},[]),(0,w.jsx)(ev,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),ef=r.forwardRef((e,t)=>{let n=Q(el,e.__scopeMenu);return(0,w.jsx)(ev,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ep=(0,I.TL)("MenuContent.ScrollLock"),ev=r.forwardRef((e,t)=>
1{let{__scopeMenu:n,loop:a=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:v,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:b,onDismiss:x,disableOutsideScroll:E,...C}=e,R=Q(el,n),S=et(el,n),T=Y(n),A=Z(n),P=z(n),[D,j]=r.useState(null),N=r.useRef(null),L=(0,i.s)(t,N,R.onContentChange),M=r.useRef(0),O=r.useRef(""),I=r.useRef(0),_=r.useRef(null),U=r.useRef("right"),H=r.useRef(0),G=E?F.A:r.Fragment;r.useEffect(()=>()=>window.clearTimeout(M.current),[]),(0,f.Oh)();let K=r.useCallback(e=>{var t,n;return U.current===(null==(t=_.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e],l=t[i],u=a.x,s=a.y,c=l.x,d=l.y;s>r!=d>r&&n<(c-u)*(r-s)/(d-s)+u&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=_.current)?void 0:n.area)},[]);return(0,w.jsx)(eu,{scope:n,searchRef:O,onItemEnter:r.useCallback(e=>{K(e)&&e.preventDefault()},[K]),onItemLeave:r.useCallback(e=>{var t;K(e)||(null==(t=N.current)||t.focus(),j(null))},[K]),onTriggerLeave:r.useCallback(e=>{K(e)&&e.preventDefault()},[K]),pointerGraceTimerRef:I,onPointerGraceIntentChange:r.useCallback(e=>{_.current=e},[]),children:(0,w.jsx)(G,{...E?{as:ep,allowPinchZoom:!0}:void 0,children:(0,w.jsx)(p.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.m)(u,e=>{var t;e.preventDefault(),null==(t=N.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,w.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:b,onDismiss:x,children:(0,w.jsx)(k,{asChild:!0,...A,dir:S.dir,orientation:"vertical",loop:a,currentTabStopId:D,onCurrentTabStopIdChange:j,onEntryFocus:(0,o.m)(v,e=>{S.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,w.jsx)(m.UC,{role:"menu","aria-orientation":"vertical","data-state":eB(R.open),"data-radix-menu-content":"",dir:S.dir,...T,...C,ref:L,style:{outline:"none",...C.style},onKeyDown:(0,o.m)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=O.current+e,o=P().filter(e=>!e.disabled),i=document.activeElement,a=null==(t=o.find(e=>e.ref.current===i))?void 0:t.textValue,l=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=(r=Math.max(i,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let l=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,a),u=null==(n=o.find(e=>e.textValue===l))?void 0:n.ref.current;!function e(t){O.current=t,window.clearTimeout(M.current),""!==t&&(M.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())})(e.key));let o=N.current;if(e.target!==o||!W.includes(e.key))return;e.preventDefault();let i=P().filter(e=>!e.disabled).map(e=>e.ref.current);B.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,o.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),O.current="")}),onPointerMove:(0,o.m)(e.onPointerMove,eG(e=>{let t=e.target,n=H.current!==e.clientX;e.currentTarget.contains(t)&&n&&(U.current=e.clientX>H.current?"right":"left",H.current=e.clientX)}))})})})})})})});ec.displayName=el;var em=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,w.jsx)(u.sG.div,{role:"group",...r,ref:t})});em.displayName="MenuGroup";var eh=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,w.jsx)(u.sG.div,{...r,ref:t})});eh.displayName="MenuLabel";var eg="MenuItem",ey="menu.itemSelect",ew=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...l}=e,s=r.useRef(null),c=et(eg,e.__scopeMenu),d=es(eg,e.__scopeMenu),f=(0,i.s)(t,s),p=r.useRef(!1);return(0,w.jsx)(eb,{...l,ref:f,disabled:n,onClick:(0,o.m)(e.onClick,()=>{let e=s.current;if(!n&&e){let t=new CustomEvent(ey,{bubbles:!0,cancelable:!0});e.addEventListener(ey,e=>null==a?void 0:a(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),p.current=!0},onPointerUp:(0,o.m)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;
1n||t&&" "===e.key||U.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ew.displayName=eg;var eb=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:l,...s}=e,c=es(eg,n),d=Z(n),f=r.useRef(null),p=(0,i.s)(t,f),[v,m]=r.useState(!1),[h,g]=r.useState("");return r.useEffect(()=>{let e=f.current;if(e){var t;g((null!=(t=e.textContent)?t:"").trim())}},[s.children]),(0,w.jsx)(V.ItemSlot,{scope:n,disabled:a,textValue:null!=l?l:h,children:(0,w.jsx)(L,{asChild:!0,...d,focusable:!a,children:(0,w.jsx)(u.sG.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:p,onPointerMove:(0,o.m)(e.onPointerMove,eG(e=>{a?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eG(e=>c.onItemLeave(e))),onFocus:(0,o.m)(e.onFocus,()=>m(!0)),onBlur:(0,o.m)(e.onBlur,()=>m(!1))})})})}),ex=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,w.jsx)(eD,{scope:e.__scopeMenu,checked:n,children:(0,w.jsx)(ew,{role:"menuitemcheckbox","aria-checked":eW(n)?"mixed":n,...i,ref:t,"data-state":eH(n),onSelect:(0,o.m)(i.onSelect,()=>null==r?void 0:r(!!eW(n)||!n),{checkForDefaultPrevented:!1})})})});ex.displayName="MenuCheckboxItem";var eE="MenuRadioGroup",[eC,eR]=$(eE,{value:void 0,onValueChange:()=>{}}),eS=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,y.c)(r);return(0,w.jsx)(eC,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,w.jsx)(em,{...o,ref:t})})});eS.displayName=eE;var eT="MenuRadioItem",eA=r.forwardRef((e,t)=>{let{value:n,...r}=e,i=eR(eT,e.__scopeMenu),a=n===i.value;return(0,w.jsx)(eD,{scope:e.__scopeMenu,checked:a,children:(0,w.jsx)(ew,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":eH(a),onSelect:(0,o.m)(r.onSelect,()=>{var e;return null==(e=i.onValueChange)?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});eA.displayName=eT;var eP="MenuItemIndicator",[eD,ek]=$(eP,{checked:!1}),ej=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=ek(eP,n);return(0,w.jsx)(g.C,{present:r||eW(i.checked)||!0===i.checked,children:(0,w.jsx)(u.sG.span,{...o,ref:t,"data-state":eH(i.checked)})})});ej.displayName=eP;var eN=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,w.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eN.displayName="MenuSeparator";var eL=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=Y(n);return(0,w.jsx)(m.i3,{...o,...r,ref:t})});eL.displayName="MenuArrow";var[eM,eO]=$("MenuSub"),eI="MenuSubTrigger",e_=r.forwardRef((e,t)=>{let n=Q(eI,e.__scopeMenu),a=et(eI,e.__scopeMenu),l=eO(eI,e.__scopeMenu),u=es(eI,e.__scopeMenu),s=r.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,w.jsx)(er,{asChild:!0,...f,children:(0,w.jsx)(eb,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":eB(n.open),...e,ref:(0,i.t)(t,l.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.m)(e.onPointerMove,eG(t=>{u.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eG(e=>{var t,r;p();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,i="right"===t,a=o[i?"left":"right"],l=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.m)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&H[a.dir].includes(t.key)){var o;n.onOpenChange(!0),null==(o=n.content)||o.focus(),t.preventDefault()}})})})});e_.displayName=eI;var eF="MenuSubContent",eU=r.forwardRef((e,t)=>
1{let n=ea(el,e.__scopeMenu),{forceMount:a=n.forceMount,...l}=e,u=Q(el,e.__scopeMenu),s=et(el,e.__scopeMenu),c=eO(eF,e.__scopeMenu),d=r.useRef(null),f=(0,i.s)(t,d);return(0,w.jsx)(V.Provider,{scope:e.__scopeMenu,children:(0,w.jsx)(g.C,{present:a||u.open,children:(0,w.jsx)(V.Slot,{scope:e.__scopeMenu,children:(0,w.jsx)(ev,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:f,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.m)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=G[s.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null==(r=c.trigger)||r.focus(),e.preventDefault()}})})})})})});function eB(e){return e?"open":"closed"}function eW(e){return"indeterminate"===e}function eH(e){return eW(e)?"indeterminate":e?"checked":"unchecked"}function eG(e){return t=>"mouse"===t.pointerType?e(t):void 0}eU.displayName=eF;var eK="DropdownMenu",[eV,ez]=(0,a.A)(eK,[X]),eq=X(),[e$,eX]=eV(eK),eY=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:a,onOpenChange:u,modal:s=!0}=e,c=eq(t),d=r.useRef(null),[f,p]=(0,l.i)({prop:i,defaultProp:null!=a&&a,onChange:u,caller:eK});return(0,w.jsx)(e$,{scope:t,triggerId:(0,v.B)(),triggerRef:d,contentId:(0,v.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,w.jsx)(en,{...c,open:f,onOpenChange:p,dir:o,modal:s,children:n})})};eY.displayName=eK;var eZ="DropdownMenuTrigger",eJ=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,l=eX(eZ,n),s=eq(n);return(0,w.jsx)(er,{asChild:!0,...s,children:(0,w.jsx)(u.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,i.t)(t,l.triggerRef),onPointerDown:(0,o.m)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eJ.displayName=eZ;var eQ="DropdownMenuContent",e0=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=eX(eQ,n),l=eq(n),u=r.useRef(!1);return(0,w.jsx)(ec,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...i,ref:t,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;u.current||null==(t=a.triggerRef.current)||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e0.displayName=eQ,r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(em,{...o,...r,ref:t})}).displayName="DropdownMenuGroup",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(eh,{...o,...r,ref:t})}).displayName="DropdownMenuLabel";var e1=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(ew,{...o,...r,ref:t})});e1.displayName="DropdownMenuItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(ex,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(eS,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup",r.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(eA,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(ej,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(eN,{...o,...r,ref:t})}).displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(eL,{...o,...r,ref:t})}).displayName="DropdownMenuArrow",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(e_,{...o,...r,ref:t})}).displayName="DropdownMenuSubTrigger",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eq(n);return(0,w.jsx)(eU,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var e2=eY,e4=eJ,e5=e0,e8=e1},88389:(e,t,n)=>{n.d(t,{s:()=>i});var r=n(42584),o=n(29075);let i=(e,t)=>{o._.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},88573:(e,t,n)=>{n.d(t,{CC:()=>r,I0:()=>a,jB:()=>o,q2:()=>i});let r=0,o=1,i=2,a=3},91326:(e,t,n)=>{n.d(t,{MM:()=>c,VY:()=>f,rU:()=>d});var r=n(42584),o=n(55583),i=n(88389),a=n(20707),l=n(33396),u=n(55597);let s=(0,r.createContext)(null);function c(){var e,t;return null!=(t=null==(e=(0,r.useContext)(s))?void 0:e.value)?t:void 0}function d(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o._)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),i=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(s.Provider,{value:i},e.children)},[t])]}s.displayName="DescriptionContext";let f=Object.assign((0,u.FX)(function(e,t){let n=(0,r.useId)(),o=(0,l._)(),{id:c="headlessui-description-".concat(n),...d}=e,f=function e(){let t=(0,r.useContext)(s);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),p=(0,a.P)(t);(0,i.s)(()=>f.register(c),[c,f.register]);let v=o||!1,m=(0,r.useMemo)(()=>({...f.slot,disabled:v}),[f.slot,v]),h={ref:p,...f.props,id:c};return(0,u.Ci)()({ourProps:h,theirProps:d,slot:m,defaultTag:"p",name:f.name||"Description"})}),{})},91349:(e,t,n)=>{e.exports=n(35008)},92955:(e,t,n)=>{n.d(t,{q:()=>r});let r="$inf$"},96382:(e,t,n)=>{function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function o(e,t){var n=r(e,t,"get");return n.get?n.get.call(e):n.value}function i(e,t,n){var o=r(e,t,"set");if(o.set)o.set.call(e,n);else{if(!o.writable)throw TypeError("attempted to set read only private field");o.value=n}return n}n.d(t,{N:()=>f});var a,l=n(42584),u=n(63965),s=n(41925),c=n(26121),d=n(69140);function f(e){let t=e+"CollectionProvider",[n,r]=(0,u.A)(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{let{scope:t,children:n}=e,r=l.useRef(null),i=l.useRef(new Map).current;return(0,d.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};a.displayName=t;let f=e+"CollectionSlot",p=(0,c.TL)(f),v=l.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=i(f,n),a=(0,s.s)(t,o.collectionRef);return(0,d.jsx)(p,{ref:a,children:r})});v.displayName=f;let m=e+"CollectionItemSlot",h="data-radix-collection-item",g=(0,c.TL)(m),y=l.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,a=l.useRef(null),u=(0,s.s)(t,a),c=i(m,n);return l.useEffect(()=>(c.itemMap.set(a,{ref:a,...o}),()=>void c.itemMap.delete(a))),(0,d.jsx)(g,{...{[h]:""},ref:u,children:r})});return y.displayName=m,[{Provider:a,Slot:v,ItemSlot:y},function(t){let n=i(e+"CollectionConsumer",t);return l.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var p=new WeakMap;function v(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=m(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}(e,t);return -1===n?void 0:e[n]}function m(e){return e!=e||0===e?0:Math.trunc(e)}a=new WeakMap,class e extends Map{set(e,t){return p.get(this)&&(this.has(e)?o(this,a)[o(this,a).indexOf(e)]=e:o(this,a).push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),l=o(this,a).length,u=m(e),s=u>=0?u:l+u,c=s<0||s>=l?-1:s;if(c===this.size||i&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!i;
1u<0&&s++;let f=[...o(this,a)],p=!1;for(let e=s;e<d;e++)if(s===e){let o=f[e];f[e]===t&&(o=f[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}before(e){let t=o(this,a).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=o(this,a).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=o(this,a).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=o(this,a).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return i(this,a,[]),super.clear()}delete(e){let t=super.delete(e);return t&&o(this,a).splice(o(this,a).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=v(o(this,a),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=v(o(this,a),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return o(this,a).indexOf(e)}keyAt(e){return v(o(this,a),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=0,a=null!=o?o:this.at(0);for(let e of this)a=0===i&&1===t.length?e:Reflect.apply(r,this,[a,e,i,this]),i++;return a}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,o]=t,i=null!=o?o:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);i=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[i,n,e,this])}return i}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=[...this.entries()];return o.splice(...n),new e(o)}slice(t,n){let r=new e,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,a,{writable:!0,value:void 0}),i(this,a,[...super.keys()]),p.set(this,!0)}}},98636:(e,t,n)=>{n.d(t,{jH:()=>i});var r=n(42584);n(69140);var o=r.createContext(void 0);function i(e){let t=r.useContext(o);return e||t||"ltr"}},98946:(e,t,n)=>{n.d(t,{P:()=>i});var r=n(42584),o=n(55583);function i(e,t,n){let[i,a]=(0,r.useState)(n),l=void 0!==e,u=(0,r.useRef)(l),s=(0,r.useRef)(!1),c=(0,r.useRef)(!1);return!l||u.current||s.current?l||!u.current||c.current||(c.current=!0,u.current=l,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,u.current=l,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[l?e:i,(0,o._)(e=>(l||a(e),null==t?void 0:t(e)))]}},99329:(e,t,n)=>{n.d(t,{CL:()=>p,PC:()=>d});var r=n(42584),o=n(4665),i=n(99462),a=n(81054),l=n(55597),u=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(u||{});let s=(0,l.FX)(function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=o["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,l.Ci)()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})}),c=(0,r.createContext)(null);function d(e){let[t,n]=(0,r.useState)(null);return r.createElement(c.Provider,{value:{target:t}},e.children,r.createElement(s,{features:u.Hidden,ref:n}))}function f(e){let{children:t}=e,n=(0,r.useContext)(c);if(!n)return r.createElement(r.Fragment,null,t);let{target:i}=n;return i?(0,o.createPortal)(r.createElement(r.Fragment,null,t),i):null}function p(e){let{data:t,form:n,disabled:o,onReset:c,overrides:d}=e,[p,m]=(0,r.useState)(null),h=(0,i.L)();return(0,r.useEffect)(()=>
1{if(c&&p)return h.addEventListener(p,"reset",c)},[p,n,c]),r.createElement(f,null,r.createElement(v,{setForm:m,formId:n}),(0,a.h)(t).map(e=>{let[t,i]=e;return r.createElement(s,{features:u.Hidden,...(0,l.oE)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:o,name:t,value:i,...d})})}))}function v(e){let{setForm:t,formId:n}=e;return(0,r.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:r.createElement(s,{features:u.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}},99462:(e,t,n)=>{n.d(t,{L:()=>o});var r=n(42584);function o(){let[e]=(0,r.useState)(function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=setTimeout(...t);return n.add(()=>clearTimeout(o))},microTask(){for(var e,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];let i={current:!0};return e=()=>{i.current&&r[0]()},"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e})),n.add(()=>{i.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n});return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}}}]);
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.