(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[404],{1362:(e,t,n)=>{"use strict";n.d(t,{ThemeProvider:()=>u});var r=n(2115),o=(e,t,n,r,o,i,a,l)=>{let u=document.documentElement,c=["light","dark"];function s(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&i?o.map(e=>i[e]||e):o;n?(u.classList.remove(...r),u.classList.add(t)):u.setAttribute(e,t)}),n=t,l&&c.includes(n)&&(u.style.colorScheme=n)}if(r)s(r);else try{let e=localStorage.getItem(t)||n,r=a&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;s(r)}catch(e){}},i=["light","dark"],a="(prefers-color-scheme: dark)",l=r.createContext(void 0),u=e=>r.useContext(l)?r.createElement(r.Fragment,null,e.children):r.createElement(s,{...e}),c=["light","dark"],s=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:o=!0,enableColorScheme:u=!0,storageKey:s="theme",themes:v=c,defaultTheme:h=o?"system":"light",attribute:g="data-theme",value:y,children:w,nonce:b,scriptProps:x}=e,[E,C]=r.useState(()=>f(s,h)),[S,R]=r.useState(()=>f(s)),k=y?Object.values(y):v,P=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=m());let r=y?y[t]:t,a=n?p(b):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...k),r&&l.classList.add(r)):e.startsWith("data-")&&(r?l.setAttribute(e,r):l.removeAttribute(e))};if(Array.isArray(g)?g.forEach(c):c(g),u){let e=i.includes(h)?h:null,n=i.includes(t)?t:e;l.style.colorScheme=n}null==a||a()},[b]),T=r.useCallback(e=>{let t="function"==typeof e?e(E):e;C(t);try{localStorage.setItem(s,t)}catch(e){}},[E]),A=r.useCallback(e=>{R(m(e)),"system"===E&&o&&!t&&P("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(A),A(e),()=>e.removeListener(A)},[A]),r.useEffect(()=>{let e=e=>{e.key===s&&(e.newValue?C(e.newValue):T(h))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[T]),r.useEffect(()=>{P(null!=t?t:E)},[t,E]);let L=r.useMemo(()=>({theme:E,setTheme:T,forcedTheme:t,resolvedTheme:"system"===E?S:E,themes:o?[...v,"system"]:v,systemTheme:o?S:void 0}),[E,T,t,S,o,v]);return r.createElement(l.Provider,{value:L},r.createElement(d,{forcedTheme:t,storageKey:s,attribute:g,enableSystem:o,enableColorScheme:u,defaultTheme:h,value:y,themes:v,nonce:b,scriptProps:x}),w)},d=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:i,enableSystem:a,enableColorScheme:l,defaultTheme:u,value:c,themes:s,nonce:d,scriptProps:f}=e,p=JSON.stringify([i,n,u,t,s,c,a,l]).slice(1,-1);return r.createElement("script",{...f,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(p,")")}})}),f=(e,t)=>{let n;try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t},p=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},m=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},2948:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5084:(e,t,n)=>{"use strict";n.d(t,{N:()=>g});var r=n(5155),o=n(2115),i=n(7728),a=n(6168),l=n(430),u=n(7471);class c extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=e instanceof HTMLElement&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function s(e){let{children:t,isPresent:n,anchorX:i}=e,a=(0,o.useId)(),l=(0,o.useRef)(null),s=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,o.useContext)(u.Q);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:o,right:u}=s.current;if(n||!l.current||!e||!t)return;l.current.dataset.motionPopId=a;let c=document.createElement("style");return d&&(c.nonce=d),document.head.appendChild(c),c.sheet&&c.sheet.insertRule('\n          [data-motion-pop-id="'.concat(a,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===i?"left: ".concat(o):"right: ".concat(u),"px !important;\n            top: ").concat(r,"px !important;\n          }\n        ")),()=>{document.head.removeChild(c)}},[n]),(0,r.jsx)(c,{isPresent:n,childRef:l,sizeRef:s,children:o.cloneElement(t,{ref:l})})}let d=e=>{let{children:t,initial:n,isPresent:i,onExitComplete:u,custom:c,presenceAffectsLayout:d,mode:p,anchorX:m}=e,v=(0,a.M)(f),h=(0,o.useId)(),g=(0,o.useCallback)(e=>{for(let t of(v.set(e,!0),v.values()))if(!t)return;u&&u()},[v,u]),y=(0,o.useMemo)(()=>({id:h,initial:n,isPresent:i,custom:c,onExitComplete:g,register:e=>(v.set(e,!1),()=>v.delete(e))}),d?[Math.random(),g]:[i,g]);return(0,o.useMemo)(()=>{v.forEach((e,t)=>v.set(t,!1))},[i]),o.useEffect(()=>{i||v.size||!u||u()},[i]),"popLayout"===p&&(t=(0,r.jsx)(s,{isPresent:i,anchorX:m,children:t})),(0,r.jsx)(l.t.Provider,{value:y,children:t})};function f(){return new Map}var p=n(4905);let m=e=>e.key||"";function v(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}var h=n(9025);let g=e=>{let{children:t,custom:n,initial:l=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:s="sync",propagate:f=!1,anchorX:g="left"}=e,[y,w]=(0,p.xQ)(f),b=(0,o.useMemo)(()=>v(t),[t]),x=f&&!y?[]:b.map(m),E=(0,o.useRef)(!0),C=(0,o.useRef)(b),S=(0,a.M)(()=>new Map),[R,k]=(0,o.useState)(b),[P,T]=(0,o.useState)(b);(0,h.E)(()=>{E.current=!1,C.current=b;for(let e=0;e<P.length;e++){let t=m(P[e]);x.includes(t)?S.delete(t):!0!==S.get(t)&&S.set(t,!1)}},[P,x.length,x.join("-")]);let A=[];if(b!==R){let e=[...b];for(let t=0;t<P.length;t++){let n=P[t],r=m(n);x.includes(r)||(e.splice(t,0,n),A.push(n))}return"wait"===s&&A.length&&(e=A),T(v(e)),k(b),null}let{forceRender:L}=(0,o.useContext)(i.L);return(0,r.jsx)(r.Fragment,{children:P.map(e=>{let t=m(e),o=(!f||!!y)&&(b===P||x.includes(t));return(0,r.jsx)(d,{isPresent:o,initial:(!E.current||!!l)&&void 0,custom:n,presenceAffectsLayout:c,mode:s,onExitComplete:o?void 0:()=>{if(!S.has(t))return;S.set(t,!0);let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(null==L||L(),T(C.current),f&&(null==w||w()),u&&u())},anchorX:g,children:e},t)})})}},5095:(e,t,n)=>{"use strict";n.d(t,{AO:()=>T,Kr:()=>P});var r='input:not([inert]),select:not([inert]),textarea:not([inert]),a[href]:not([inert]),button:not([inert]),[tabindex]:not(slot):not([inert]),audio[controls]:not([inert]),video[controls]:not([inert]),[contenteditable]:not([contenteditable="false"]):not([inert]),details>summary:first-of-type:not([inert]),details:not([inert])',o="undefined"==typeof Element,i=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!o&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){void 0===n&&(n=!0);var r,o=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},u=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},c=function(e,t,n){if(l(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(r));return t&&i.call(e,r)&&o.unshift(e),o=o.filter(n)},s=function e(t,n,o){for(var a=[],u=Array.from(t);u.length;){var c=u.shift();if(!l(c,!1)){if("SLOT"===c.tagName){var s=c.assignedElements(),d=e(s.length?s:c.children,!0,o);o.flatten?a.push.apply(a,d):a.push({scopeParent:c,candidates:d})}else{i.call(c,r)&&o.filter(c)&&(n||!t.includes(c))&&a.push(c);var f=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),p=!l(f,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(f&&p){var m=e(!0===f?c.children:f.children,!0,o);o.flatten?a.push.apply(a,m):a.push({scopeParent:c,candidates:m})}else u.unshift.apply(u,c.children)}}}return a},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||u(e))&&!d(e)?0:e.tabIndex},p=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n},m=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},v=function(e){return"INPUT"===e.tagName},h=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},g=function(e){if(!e.name)return!0;var t,n=e.form||a(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=h(t,e.form);return!o||o===e},y=function(e){return v(e)&&"radio"===e.type&&!g(e)},w=function(e){var t,n,r,o,i,l,u,c=e&&a(e),s=null===(t=c)||void 0===t?void 0:t.host,d=!1;if(c&&c!==e)for(d=!!(null!==(n=s)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(s)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!d&&s;)d=!!(null!==(l=s=null===(i=c=a(s))||void 0===i?void 0:i.host)&&void 0!==l&&null!==(u=l.ownerDocument)&&void 0!==u&&u.contains(s));return d},b=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},x=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=i.call(e,"details>summary:first-of-type")?e.parentElement:e;if(i.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return b(e)}else{if("function"==typeof r){for(var l=e;e;){var u=e.parentElement,c=a(e);if(u&&!u.shadowRoot&&!0===r(u))return b(e);e=e.assignedSlot?e.assignedSlot:u||c===e.ownerDocument?u:c.host}e=l}if(w(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},E=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!i.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1},C=function(e,t){return!(t.disabled||l(t)||v(t)&&"hidden"===t.type||x(t,e)||"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some(function(e){return"SUMMARY"===e.tagName})||E(t))},S=function(e,t){return!(y(t)||0>f(t))&&!!C(e,t)},R=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},k=function e(t){var n=[],r=[];return t.forEach(function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,l=p(a,i),u=i?e(t.candidates):a;0===l?i?n.push.apply(n,u):n.push(a):r.push({documentOrder:o,tabIndex:l,item:t,isScope:i,content:u})}),r.sort(m).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},P=function(e,t){var n;return k((t=t||{}).getShadowRoot?s([e],t.includeContainer,{filter:S.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:R}):c(e,t.includeContainer,S.bind(null,t)))},T=function(e,t){if(t=t||{},!e)throw Error("No node provided");return!1!==i.call(e,r)&&S(t,e)}},5126:(e,t,n)=>{"use strict";n.d(t,{$t:()=>a,$u:()=>g,EW:()=>h,F2:()=>v,Go:()=>d,O_:()=>f,Pg:()=>u,RS:()=>o,WZ:()=>w,YE:()=>m,YF:()=>l,gR:()=>i,jo:()=>y,nr:()=>c,tZ:()=>p});var r=n(6301);function o(e){let t=e.activeElement;for(;(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function i(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function a(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}function l(e){return 0===e.mozInputSource&&!!e.isTrusted||(s()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function u(e){return!a().includes("jsdom/")&&(!s()&&0===e.width&&0===e.height||s()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function c(){return/apple/i.test(navigator.vendor)}function s(){let e=/android/i;return e.test(function(){let e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}())||e.test(a())}function d(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function f(e){return"nativeEvent"in e}function p(e){return e.matches("html,body")}function m(e){return(null==e?void 0:e.ownerDocument)||document}function v(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))}function h(e){return"composedPath"in e?e.composedPath()[0]:e.target}function g(e){return(0,r.sb)(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function y(e){e.preventDefault(),e.stopPropagation()}function w(e){return!!e&&"combobox"===e.getAttribute("role")&&g(e)}},5453:(e,t,n)=>{"use strict";n.d(t,{v:()=>u});var r=n(2115);let o=e=>{let t;let n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,o,i);return i},i=e=>e?o(e):o,a=e=>e,l=e=>{let t=i(e),n=e=>(function(e,t=a){let n=r.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return r.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},u=e=>e?l(e):l},5687:(e,t,n)=>{"use strict";var r,o;r=n(4592),o=n(9506),r.version,t.F0=r.renderToString,r.renderToStaticMarkup,o.renderToReadableStream,o.resume&&o.resume},5695:(e,t,n)=>{"use strict";var r=n(8999);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}}),n.o(r,"useSelectedLayoutSegments")&&n.d(t,{useSelectedLayoutSegments:function(){return r.useSelectedLayoutSegments}})},6301:(e,t,n)=>{"use strict";function r(){return"undefined"!=typeof window}function o(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!r()&&(e instanceof Node||e instanceof i(e).Node)}function u(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function s(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}function d(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function f(e){return["table","td","th"].includes(o(e))}function p(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function m(e){let t=h(),n=u(e)?y(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function v(e){let t=b(e);for(;c(t)&&!g(t);){if(m(t))return t;if(p(t))break;t=b(t)}return null}function h(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function g(e){return["html","body","#document"].includes(o(e))}function y(e){return i(e).getComputedStyle(e)}function w(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||s(e)&&e.host||a(e);return s(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{$4:()=>b,CP:()=>w,L9:()=>y,Lv:()=>f,Ng:()=>s,Tc:()=>h,Tf:()=>p,ZU:()=>d,_m:()=>x,ep:()=>a,eu:()=>g,gJ:()=>v,mq:()=>o,sQ:()=>m,sb:()=>c,v9:()=>function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let a=function e(t){let n=b(t);return g(n)?t.ownerDocument?t.ownerDocument.body:t.body:c(n)&&d(n)?n:e(n)}(t),l=a===(null==(o=t.ownerDocument)?void 0:o.body),u=i(a);if(l){let t=x(u);return n.concat(u,u.visualViewport||[],d(a)?a:[],t&&r?e(t):[])}return n.concat(a,e(a,[],r))},vq:()=>u,zk:()=>i})},6346:(e,t,n)=>{"use strict";let r;n.d(t,{l:()=>o});var o={};n.r(o),n.d(o,{zs:()=>P,zD:()=>B,ZL:()=>K,bL:()=>ev,l9:()=>eh});var i=n(2115),a=n.t(i,2);let l=i.createContext(void 0),u=i.createContext(void 0);function c(){let e=i.useContext(u),t=i.useContext(l);if(void 0===t)throw Error("Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");return{...e,...t}}function s(e,...t){let n=t[0];for(let e=1;e<t.length;e+=1)n=d(n,t[e]);return d(e,n)}function d(e,t){return e?Object.entries(e).reduce((e,[n,r])=>("o"===n[0]&&"n"===n[1]&&n.charCodeAt(2)>=65&&90>=n.charCodeAt(2)&&"function"==typeof r?e[n]=e=>{let o=!1,i=t[n];e.preventBaseUIHandler=()=>{o=!0};let a=r(e);return o||i?.(e),a}:"style"===n?(r||t.style)&&(e[n]={...t.style,...r||{}}):"className"===n?r?t.className?e[n]=r+" "+t.className:e[n]=r:e[n]=t.className:e[n]=r,e),{...t}):t}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return i.useMemo(()=>t.every(e=>null==e)?null:e=>{t.forEach(t=>{var n,r;n=t,r=e,"function"==typeof n?n(r):n&&(n.current=r)})},t)}let p=parseInt(i.version,10);var m=n(5155);let v={button:e=>(0,m.jsx)("button",{type:"button",...e}),div:e=>(0,m.jsx)("div",{...e}),h2:e=>(0,m.jsx)("h2",{...e}),h3:e=>(0,m.jsx)("h3",{...e}),output:e=>(0,m.jsx)("output",{...e}),p:e=>(0,m.jsx)("p",{...e}),span:e=>(0,m.jsx)("span",{...e}),a:e=>(0,m.jsx)("a",{...e}),label:e=>(0,m.jsx)("label",{...e}),input:e=>(0,m.jsx)("input",{...e}),fieldset:e=>(0,m.jsx)("fieldset",{...e}),form:e=>(0,m.jsx)("form",{...e}),img:e=>(0,m.jsx)("img",{alt:"",...e})};function h(e){let t;let{render:n,className:r,state:o,ref:a,propGetter:l=e=>e,extraProps:u,customStyleHookMapping:c}=e,d="function"==typeof r?r(o):r,m={...i.useMemo(()=>{let e;return e={},Object.entries(o).forEach(([t,n])=>{if(c?.hasOwnProperty(t)){let r=c[t](n);null!=r&&(e={...e,...r});return}!0===n?e[`data-${t.toLowerCase()}`]="":n&&(e[`data-${t.toLowerCase()}`]=n.toString())}),e},[o,c]),...u};t="string"==typeof n?v[n]:n;let h=l(m),g={...h,ref:function(e,...t){let n;return f("function"!=typeof e?p>=19?e.props.ref:e.ref:null,...t)}(t,a,h.ref)};return void 0!==d&&(g.className=d),{renderElement:()=>"function"==typeof t?t(g,o):i.cloneElement(t,{...s(t.props,g),ref:g.ref})}}let g={"data-popup-open":""},y={"data-open":""},w={"data-closed":""},b={"data-anchor-hidden":""},x={open:e=>e?g:null},E={open:e=>e?y:w,anchorHidden:e=>e?b:null},C={"data-starting-style":""},S={"data-ending-style":""},R={transitionStatus:e=>"starting"===e?C:"ending"===e?S:null},k={...E,...R},P=i.forwardRef(function(e,t){let{render:n,className:r,...o}=e,{open:a,nested:l,mounted:u,transitionStatus:s,backdropRef:d}=c(),{renderElement:p}=h({render:null!=n?n:"div",className:r,state:i.useMemo(()=>({open:a,transitionStatus:s}),[a,s]),ref:f(d,t),extraProps:{role:"presentation",hidden:!u,...o},customStyleHookMapping:k});return l?null:p()}),T="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function A(e){let t=i.useRef(e);return T(()=>{t.current=e}),i.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return null===(e=t.current)||void 0===e?void 0:e.call(t,...r)},[])}let L=0,M={...a}.useId;var N=n(5299),O=n(8637);O.oneOfType([O.func,O.object]);let j=function(e){return e.nestedDialogs="--nested-dialogs",e}({}),D=function(e){return e.open="data-open",e.closed="data-closed",e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e.nested="data-nested",e.hasNestedDialogs="data-has-nested-dialogs",e}({}),I=i.forwardRef(function(e,t){let{inert:n=!1}=e;return(0,m.jsx)("div",{ref:t,role:"presentation",style:{position:"fixed",inset:0,pointerEvents:n?"none":void 0}})}),F=i.createContext(void 0);var _=n(7650);function W(e){let{open:t,ref:n,onComplete:r}=e,o=function(e){let t=i.useRef(e);return T(()=>{t.current=e}),t}(t),a=A(r),l=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i.useRef(-1),r=i.useRef(-1),o=A(()=>{cancelAnimationFrame(n.current),clearTimeout(r.current)});return i.useEffect(()=>o,[o]),A(i=>{o();let a=e.current;a&&("function"!=typeof a.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED?i():n.current=requestAnimationFrame(()=>{function e(){a&&Promise.allSettled(a.getAnimations().map(e=>e.finished)).then(()=>{_.flushSync(i)})}t?r.current=window.setTimeout(e):e()}))})}(n,t);T(()=>{l(()=>{t===o.current&&a()})},[t,a,l,o])}let H={...E,...R,hasNestedDialogs:e=>e?{[D.hasNestedDialogs]:""}:null},B=i.forwardRef(function(e,t){let{className:n,finalFocus:r,id:o,initialFocus:a,render:l,...u}=e,{descriptionElementId:d,dismissible:p,floatingRootContext:v,getPopupProps:g,modal:y,mounted:w,nested:b,nestedOpenDialogCount:x,setOpen:E,open:C,openMethod:S,popupRef:R,setPopupElement:k,setPopupElementId:P,titleElementId:A,transitionStatus:O,onOpenChangeComplete:D,internalBackdropRef:_}=c();!function(){if(void 0===i.useContext(F))throw Error("Base UI: <Dialog.Portal> is missing.")}(),W({open:C,ref:R,onComplete(){C&&(null==D||D(!0))}});let{getRootProps:B,resolvedInitialFocus:K}=function(e){let{descriptionElementId:t,getPopupProps:n,id:r,initialFocus:o,modal:a,mounted:l,openMethod:u,ref:c,setPopupElementId:d,setPopupElement:p,titleElementId:m}=e,v=i.useRef(null),h=function(e,t){if(void 0!==M){let n=M();return null!=e?e:t?"".concat(t,"-").concat(n):n}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mui",[n,r]=i.useState(e),o=e||n;return i.useEffect(()=>{null==n&&(L+=1,r("".concat(t,"-").concat(L)))},[n,t]),o}(e,t)}(r,"base-ui"),g=f(c,v,p),y=i.useCallback(e=>"touch"===e?v:0,[]),w=i.useMemo(()=>null==o?y(null!=u?u:""):"function"==typeof o?o(null!=u?u:""):o,[y,o,u]);return T(()=>(d(h),()=>{d(void 0)}),[h,d]),{getRootProps:e=>s(e,{"aria-labelledby":null!=m?m:void 0,"aria-describedby":null!=t?t:void 0,"aria-modal":!!l&&!!a||void 0,role:"dialog",tabIndex:-1,...n(),id:h,ref:g,hidden:!l}),resolvedInitialFocus:w}}({descriptionElementId:d,getPopupProps:g,id:o,initialFocus:a,modal:y,mounted:w,setOpen:E,openMethod:S,ref:f(t,R),setPopupElement:k,setPopupElementId:P,titleElementId:A}),{renderElement:z}=h({render:null!=l?l:"div",className:n,state:{open:C,nested:b,transitionStatus:O,hasNestedDialogs:x>0},propGetter:B,extraProps:{...u,style:{...u.style,[j.nestedDialogs]:x}},customStyleHookMapping:H});return(0,m.jsxs)(i.Fragment,{children:[w&&y&&(0,m.jsx)(I,{ref:_,inert:!C}),(0,m.jsx)(N.s3,{context:v,disabled:!w,closeOnFocusOut:p,initialFocus:K,returnFocus:r,children:z()})]})});function K(e){let{children:t,keepMounted:n=!1,container:r}=e,{mounted:o}=c();return o||n?(0,m.jsx)(F.Provider,{value:n,children:(0,m.jsx)(N.XF,{root:r,children:t})}):null}var z=n(5126);let U="undefined"!=typeof document?i.useLayoutEffect:()=>{};function $(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function q(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function V(e){let t=null;return()=>(null==t&&(t=e()),t)}let X=V(function(){return q(/^Mac/i)}),Y=V(function(){return q(/^iPhone/i)}),G=V(function(){return q(/^iPad/i)||X()&&navigator.maxTouchPoints>1}),Z=V(function(){return Y()||G()});V(function(){return X()||Z()}),V(function(){return $(/AppleWebKit/i)&&!Q()});let Q=V(function(){return $(/Chrome/i)});function J(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}function ee(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function et(e,t){let n=e;for(ee(n,t)&&(n=n.parentElement);n&&!ee(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}V(function(){return $(/Android/i)}),V(function(){return $(/Firefox/i)});let en="undefined"!=typeof document&&window.visualViewport,er=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),eo=0;function ei(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function ea(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function el(e){let t=document.scrollingElement||document.documentElement,n=e;for(;n&&n!==t;){let e=et(n);if(e!==document.documentElement&&e!==document.body&&e!==n){let t=e.getBoundingClientRect().top,r=n.getBoundingClientRect().top;r>t+n.clientHeight&&(e.scrollTop+=r-t)}n=e.parentElement}}function eu(e){return e&&e.ownerDocument||document}function ec(e){return eu(e).defaultView||window}let es={},ed={},ef="",ep=0,em=()=>{},ev=function(e){let{children:t,defaultOpen:n=!1,dismissible:o=!0,modal:a=!0,onOpenChange:c,open:d,onOpenChangeComplete:f}=e,p=function(){let e=i.useContext(u),t=i.useContext(l);if(void 0!==t||void 0!==e)return{...e,...t}}(),v=function(e){let{defaultOpen:t,dismissible:n,modal:o,onNestedDialogClose:a,onNestedDialogOpen:l,onOpenChange:u,open:c,onOpenChangeComplete:d}=e,[f,p]=function(e){let{controlled:t,default:n,name:r,state:o="value"}=e,{current:a}=i.useRef(void 0!==t),[l,u]=i.useState(n),c=i.useCallback(e=>{a||u(e)},[]);return[a?t:l,c]}({controlled:c,default:t,name:"DialogRoot",state:"open"}),m=i.useRef(null),v=i.useRef(null),h=i.useRef(null),[g,y]=i.useState(void 0),[w,b]=i.useState(void 0),[x,E]=i.useState(null),[C,S]=i.useState(null),[R,k]=i.useState(void 0),{mounted:P,setMounted:L,transitionStatus:M}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[n,r]=i.useState(),[o,a]=i.useState(e);return!e||o||(a(!0),"starting"===n||t||r("starting")),!e&&o&&"ending"!==n&&r("ending"),e||o||"ending"!==n||r(void 0),T(()=>{if(!e)return;t&&r("starting");let n=requestAnimationFrame(()=>{r(void 0)});return()=>{cancelAnimationFrame(n)}},[e,t]),i.useMemo(()=>({mounted:o,setMounted:a,transitionStatus:n}),[o,n])}(f),O=A((e,t,n)=>{null==u||u(e,t,n),p(e)});W({open:f,ref:m,onComplete(){f||(null==d||d(!1),L(!1))}}),function(e=!0,t){let n=i.useMemo(()=>e&&(function(){let e=function(){if("undefined"==typeof navigator)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints}}();return"MacIntel"===e.platform&&e.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(e.platform)}()||!("undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("height","1dvh"))||/firefox/i.test((0,z.$t)())&&!function(e){if("undefined"==typeof document)return!1;let t=eu(e);return ec(t).innerWidth-t.documentElement.clientWidth>0}(t)),[e,t]);(function(e={}){let{isDisabled:t}=e;U(()=>{if(!t){let e,t,n,o,i;return 1==++eo&&(r=Z()?(n=null,o=()=>{if(n)return;let e=window.pageXOffset,t=window.pageYOffset;n=J(ea(window,"scroll",()=>{window.scrollTo(0,0)}),ei(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),ei(document.documentElement,"overflow","hidden"),ei(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},i=J(ea(document,"touchstart",n=>{((e=et(n.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=ei(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),ea(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),ea(document,"touchend",()=>{t&&t()},{passive:!1,capture:!0}),ea(document,"focus",e=>{var t;let n=e.target;((t=n)instanceof HTMLInputElement&&!er.has(t.type)||t instanceof HTMLTextAreaElement||t instanceof HTMLElement&&t.isContentEditable)&&(o(),n.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{n.style.transform="",en&&(en.height<window.innerHeight?requestAnimationFrame(()=>{el(n)}):en.addEventListener("resize",()=>el(n),{once:!0}))}))},!0)),()=>{null==t||t(),null==n||n(),i()}):J(ei(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),ei(document.documentElement,"overflow","hidden"))),()=>{0==--eo&&r()}}},[t])})({isDisabled:!n}),T(()=>{if(e&&!n)return 1===(ep+=1)&&(em=function(e){let t=eu(e),n=t.documentElement,r=t.body,o=ec(n),i=0,a=0,l=-1;if("undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter:none")&&(o.visualViewport?.scale??1)!==1)return()=>{};function u(){let e=o.getComputedStyle(n),t=o.getComputedStyle(r);i=n.scrollTop,a=n.scrollLeft,es={overflowY:n.style.overflowY,overflowX:n.style.overflowX},ef=n.style.scrollBehavior,ed={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let l=e.scrollbarGutter?.includes("stable"),u=n.scrollHeight>n.clientHeight,c=n.scrollWidth>n.clientWidth,s="scroll"===e.overflowY||"scroll"===t.overflowY,d="scroll"===e.overflowX||"scroll"===t.overflowX,f=Math.max(0,o.innerWidth-n.clientWidth),p=Math.max(0,o.innerHeight-n.clientHeight);Object.assign(n.style,{overflowY:!l&&(u||s)?"scroll":"hidden",overflowX:!l&&(c||d)?"scroll":"hidden"});let m=parseFloat(t.marginTop)+parseFloat(t.marginBottom),v=parseFloat(t.marginLeft)+parseFloat(t.marginRight);Object.assign(r.style,{position:"relative",height:m||p?`calc(100dvh - ${m+p}px)`:"100dvh",width:v||f?`calc(100vw - ${v+f}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),r.scrollTop=i,r.scrollLeft=a,n.setAttribute("data-base-ui-scroll-locked",""),n.style.scrollBehavior="unset"}function c(){Object.assign(n.style,es),Object.assign(r.style,ed),n.scrollTop=i,n.scrollLeft=a,n.removeAttribute("data-base-ui-scroll-locked"),n.style.scrollBehavior=ef}function s(){c(),cancelAnimationFrame(l),l=requestAnimationFrame(u)}return u(),o.addEventListener("resize",s),()=>{cancelAnimationFrame(l),c(),o.removeEventListener("resize",s)}}(t)),()=>{0==(ep-=1)&&em()}},[e,n,t])}(f&&o,C);let j=(0,N.P7)({elements:{reference:x,floating:C},open:f,onOpenChange:(e,t,n)=>{O(e,t,function(e){if(e)return({click:"click",hover:"hover",focus:"focus","focus-out":"focus-out","escape-key":"escape-key","outside-press":"outside-press","reference-press":"trigger-press","safe-polygon":"hover","ancestor-scroll":void 0,"list-navigation":void 0})[e]}(n))}}),[D,I]=i.useState(0),F=0===D,_=(0,N.kp)(j),H=(0,N.s9)(j,{outsidePressEvent:"mousedown",outsidePress(e){let t=(0,z.EW)(e);return!!F&&!!n&&(!o||!!t&&[h.current,v.current].includes(t))},escapeKey:F}),{getReferenceProps:B,getFloatingProps:K}=(0,N.bv)([_,H]);i.useEffect(()=>(l&&f&&l(D),a&&!f&&a(),()=>{a&&f&&a()}),[f,a,l,D]);let $=i.useCallback(e=>{I(e+1)},[]),q=i.useCallback(()=>{I(0)},[]),{openMethod:V,triggerProps:X}=function(e){let[t,n]=i.useState(null);e||null===t||n(null);let{onClick:r,onPointerDown:o}=function(e){let t=i.useRef(""),n=i.useCallback(e=>{!e.defaultPrevented&&(t.current=e.pointerType)},[]);return{onClick:i.useCallback(n=>{if(0===n.detail){e(n,"keyboard");return}"pointerType"in n&&e(n,n.pointerType),e(n,t.current),t.current=""},[e]),onPointerDown:n}}(i.useCallback((t,r)=>{e||n(r)},[e,n]));return i.useMemo(()=>({openMethod:t,triggerProps:{onClick:r,onPointerDown:o}}),[t,r,o])}(f);return i.useMemo(()=>({modal:o,setOpen:O,open:f,titleElementId:g,setTitleElementId:y,descriptionElementId:w,setDescriptionElementId:b,popupElementId:R,setPopupElementId:k,onNestedDialogOpen:$,onNestedDialogClose:q,nestedOpenDialogCount:D,openMethod:V,mounted:P,transitionStatus:M,getTriggerProps:e=>B(s(e,X)),getPopupProps:K,setTriggerElement:E,setPopupElement:S,popupRef:m,backdropRef:v,internalBackdropRef:h,floatingRootContext:j}),[o,f,O,g,w,R,q,$,D,V,P,M,B,K,E,S,X,m,j])}({open:d,defaultOpen:n,onOpenChange:c,modal:a,dismissible:o,onOpenChangeComplete:f,onNestedDialogClose:null==p?void 0:p.onNestedDialogClose,onNestedDialogOpen:null==p?void 0:p.onNestedDialogOpen}),h=!!p,g=i.useMemo(()=>({...v,nested:h,onOpenChangeComplete:f}),[v,h,f]),y=i.useMemo(()=>({dismissible:o}),[o]);return(0,m.jsx)(l.Provider,{value:g,children:(0,m.jsx)(u.Provider,{value:y,children:t})})},eh=i.forwardRef(function(e,t){let{render:n,className:r,...o}=e,{open:a,setTriggerElement:l,getTriggerProps:u}=c(),{renderElement:s}=h({render:null!=n?n:"button",className:r,state:i.useMemo(()=>({open:a}),[a]),propGetter:u,extraProps:o,customStyleHookMapping:x,ref:f(t,l)});return s()})},6786:(e,t,n)=>{"use strict";n.d(t,{Zr:()=>o});let r=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>r(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>r(t)(e)}}},o=(e,t)=>(n,o,i)=>{let a,l={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),o=null!=(t=n.getItem(e))?t:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,c=new Set,s=new Set,d=l.storage;if(!d)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...e)},o,i);let f=()=>{let e=l.partialize({...o()});return d.setItem(l.name,{state:e,version:l.version})},p=i.setState;i.setState=(e,t)=>{p(e,t),f()};let m=e((...e)=>{n(...e),f()},o,i);i.getInitialState=()=>m;let v=()=>{var e,t;if(!d)return;u=!1,c.forEach(e=>{var t;return e(null!=(t=o())?t:m)});let i=(null==(t=l.onRehydrateStorage)?void 0:t.call(l,null!=(e=o())?e:m))||void 0;return r(d.getItem.bind(d))(l.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===l.version)return[!1,e.state];if(l.migrate){let t=l.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[r,i]=e;if(n(a=l.merge(i,null!=(t=o())?t:m),!0),r)return f()}).then(()=>{null==i||i(a,void 0),a=o(),u=!0,s.forEach(e=>e(a))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{l={...l,...e},e.storage&&(d=e.storage)},clearStorage:()=>{null==d||d.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>v(),hasHydrated:()=>u,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(s.add(e),()=>{s.delete(e)})},l.skipHydration||v(),a||m}},7908:(e,t,n)=>{"use strict";n.d(t,{vC:()=>b});var r=n(2115);function o(){return(o=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)}n(5155);var i=["shift","alt","meta","mod","ctrl"],a={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function l(e){return(e&&a[e]||e||"").trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function u(e,t){return void 0===t&&(t=","),e.split(t)}function c(e,t,n){void 0===t&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(e){return l(e)}),a={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},u=r.filter(function(e){return!i.includes(e)});return o({},a,{keys:u,description:n,hotkey:e})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.key&&f([l(e.key),l(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&p([l(e.key),l(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){s.clear()});var s=new Set;function d(e){return Array.isArray(e)}function f(e){var t=Array.isArray(e)?e:[e];s.has("meta")&&s.forEach(function(e){return!i.includes(e)&&s.delete(e.toLowerCase())}),t.forEach(function(e){return s.add(e.toLowerCase())})}function p(e){var t=Array.isArray(e)?e:[e];"meta"===e?s.clear():t.forEach(function(e){return s.delete(e.toLowerCase())})}function m(e,t){void 0===t&&(t=!1);var n,r=e.target,o=e.composed,i=null;return(i=(n=r).tagName&&!n.tagName.startsWith("-")&&n.tagName.includes("-")&&o?e.composedPath()[0]&&e.composedPath()[0].tagName:r&&r.tagName,d(t))?!!(i&&t&&t.some(function(e){var t;return e.toLowerCase()===(null==(t=i)?void 0:t.toLowerCase())})):!!(i&&t&&t)}var v=function(e,t,n){void 0===n&&(n=!1);var r,o=t.alt,i=t.meta,a=t.mod,u=t.shift,c=t.ctrl,f=t.keys,p=e.key,m=e.code,v=e.ctrlKey,h=e.metaKey,g=e.shiftKey,y=e.altKey,w=l(m),b=p.toLowerCase();if(!(null!=f&&f.includes(w))&&!(null!=f&&f.includes(b))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(w))return!1;if(!n){if(!y===o&&"alt"!==b||!g===u&&"shift"!==b)return!1;if(a){if(!h&&!v)return!1}else if(!h===i&&"meta"!==b&&"os"!==b||!v===c&&"ctrl"!==b&&"control"!==b)return!1}return!!(f&&1===f.length&&(f.includes(b)||f.includes(w)))||(f?(void 0===r&&(r=","),(d(f)?f:f.split(r)).every(function(e){return s.has(e.trim().toLowerCase())})):!f)},h=(0,r.createContext)(void 0),g=(0,r.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),y=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},w="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function b(e,t,n,o){var i,a=(0,r.useState)(null),s=a[0],b=a[1],x=(0,r.useRef)(!1),E=n instanceof Array?o instanceof Array?void 0:o:n,C=d(e)?e.join(null==E?void 0:E.splitKey):e,S=n instanceof Array?n:o instanceof Array?o:void 0,R=(0,r.useCallback)(t,null!=S?S:[]),k=(0,r.useRef)(R);S?k.current=R:k.current=t;var P=(!function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce(function(r,o){return r&&e(t[o],n[o])},!0):t===n}((i=(0,r.useRef)(void 0)).current,E)&&(i.current=E),i.current),T=(0,r.useContext)(g).enabledScopes,A=(0,r.useContext)(h);return w(function(){if((null==P?void 0:P.enabled)!==!1&&(e=null==P?void 0:P.scopes,0===T.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!!(!e||T.some(function(t){return e.includes(t)})||T.includes("*")))){var e,t=function(e,t){var n;if(void 0===t&&(t=!1),!m(e,["input","textarea","select"])||m(e,null==P?void 0:P.enableOnFormTags)){if(null!==s){var r=s.getRootNode();if((r instanceof Document||r instanceof ShadowRoot)&&r.activeElement!==s&&!s.contains(r.activeElement)){y(e);return}}(null==(n=e.target)||!n.isContentEditable||null!=P&&P.enableOnContentEditable)&&u(C,null==P?void 0:P.splitKey).forEach(function(n){var r,o,i,a=c(n,null==P?void 0:P.combinationKey);if(v(e,a,null==P?void 0:P.ignoreModifiers)||null!=(i=a.keys)&&i.includes("*")){if(null!=P&&null!=P.ignoreEventWhen&&P.ignoreEventWhen(e)||t&&x.current)return;if(("function"==typeof(r=null==P?void 0:P.preventDefault)&&r(e,a)||!0===r)&&e.preventDefault(),"function"==typeof(o=null==P?void 0:P.enabled)?!o(e,a):!0!==o&&void 0!==o){y(e);return}k.current(e,a),t||(x.current=!0)}})}},n=function(e){void 0!==e.key&&(f(l(e.code)),((null==P?void 0:P.keydown)===void 0&&(null==P?void 0:P.keyup)!==!0||null!=P&&P.keydown)&&t(e))},r=function(e){void 0!==e.key&&(p(l(e.code)),x.current=!1,null!=P&&P.keyup&&t(e,!0))},o=s||(null==E?void 0:E.document)||document;return o.addEventListener("keyup",r),o.addEventListener("keydown",n),A&&u(C,null==P?void 0:P.splitKey).forEach(function(e){return A.addHotkey(c(e,null==P?void 0:P.combinationKey,null==P?void 0:P.description))}),function(){o.removeEventListener("keyup",r),o.removeEventListener("keydown",n),A&&u(C,null==P?void 0:P.splitKey).forEach(function(e){return A.removeHotkey(c(e,null==P?void 0:P.combinationKey,null==P?void 0:P.description))})}}},[s,C,P,T]),b}},8148:(e,t,n)=>{"use strict";n.d(t,{UC:()=>rp,q7:()=>rm,bL:()=>rd,l9:()=>rf});var r,o,i=n(2115),a=n.t(i,2);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var u=n(5155);function c(e,t=[]){let n=[],r=()=>{let t=n.map(e=>i.createContext(e));return function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=i.createContext(r),a=n.length;n=[...n,r];let l=t=>{let{scope:n,children:r,...l}=t,c=n?.[e]?.[a]||o,s=i.useMemo(()=>l,Object.values(l));return(0,u.jsx)(c.Provider,{value:s,children:r})};return l.displayName=t+"Provider",[l,function(n,l){let u=l?.[e]?.[a]||o,c=i.useContext(u);if(c)return c;if(void 0!==r)return r;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 r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var s=n(7650);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function f(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(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():d(e[t],null)}}}}function p(...e){return i.useCallback(f(...e),e)}var m=i.forwardRef((e,t)=>{let{children:n,...r}=e,o=i.Children.toArray(n),a=o.find(g);if(a){let e=a.props.children,n=o.map(t=>t!==a?t:i.Children.count(e)>1?i.Children.only(null):i.isValidElement(e)?e.props.children:null);return(0,u.jsx)(v,{...r,ref:t,children:i.isValidElement(e)?i.cloneElement(e,void 0,n):null})}return(0,u.jsx)(v,{...r,ref:t,children:n})});m.displayName="Slot";var v=i.forwardRef((e,t)=>{let{children:n,...r}=e;if(i.isValidElement(n)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(n),o=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)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==i.Fragment&&(o.ref=t?f(t,e):e),i.cloneElement(n,o)}return i.Children.count(n)>1?i.Children.only(null):null});v.displayName="SlotClone";var h=({children:e})=>(0,u.jsx)(u.Fragment,{children:e});function g(e){return i.isValidElement(e)&&e.type===h}var y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=i.forwardRef((e,n)=>{let{asChild:r,...o}=e,i=r?m:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function w(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}function b(e){let t=e+"CollectionProvider",[n,r]=c(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,r=i.useRef(null),a=i.useRef(new Map).current;return(0,u.jsx)(o,{scope:t,itemMap:a,collectionRef:r,children:n})};l.displayName=t;let s=e+"CollectionSlot",d=i.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=p(t,a(s,n).collectionRef);return(0,u.jsx)(m,{ref:o,children:r})});d.displayName=s;let f=e+"CollectionItemSlot",v="data-radix-collection-item",h=i.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,l=i.useRef(null),c=p(t,l),s=a(f,n);return i.useEffect(()=>(s.itemMap.set(l,{ref:l,...o}),()=>void s.itemMap.delete(l))),(0,u.jsx)(m,{[v]:"",ref:c,children:r})});return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(t){let n=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));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 x=i.createContext(void 0);function E(e){let t=i.useContext(x);return e||t||"ltr"}function C(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var S="dismissableLayer.update",R=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),k=i.forwardRef((e,t)=>{var n,o;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:f,onDismiss:m,...v}=e,h=i.useContext(R),[g,w]=i.useState(null),b=null!==(o=null==g?void 0:g.ownerDocument)&&void 0!==o?o:null===(n=globalThis)||void 0===n?void 0:n.document,[,x]=i.useState({}),E=p(t,e=>w(e)),k=Array.from(h.layers),[A]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),L=k.indexOf(A),M=g?k.indexOf(g):-1,N=h.layersWithOutsidePointerEventsDisabled.size>0,O=M>=L,j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=C(e),o=i.useRef(!1),a=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){T("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);o.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:()=>o.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!O||n||(null==s||s(e),null==f||f(e),e.defaultPrevented||null==m||m())},b),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=C(e),o=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!o.current&&T("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(null==d||d(e),null==f||f(e),e.defaultPrevented||null==m||m())},b);return!function(e,t=globalThis?.document){let n=C(e);i.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=>{M===h.layers.size-1&&(null==c||c(e),!e.defaultPrevented&&m&&(e.preventDefault(),m()))},b),i.useEffect(()=>{if(g)return a&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(r=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),P(),()=>{a&&1===h.layersWithOutsidePointerEventsDisabled.size&&(b.body.style.pointerEvents=r)}},[g,b,a,h]),i.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),P())},[g,h]),i.useEffect(()=>{let e=()=>x({});return document.addEventListener(S,e),()=>document.removeEventListener(S,e)},[]),(0,u.jsx)(y.div,{...v,ref:E,style:{pointerEvents:N?O?"auto":"none":void 0,...e.style},onFocusCapture:l(e.onFocusCapture,D.onFocusCapture),onBlurCapture:l(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,j.onPointerDownCapture)})});function P(){let e=new CustomEvent(S);document.dispatchEvent(e)}function T(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?w(i,a):i.dispatchEvent(a)}k.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(R),r=i.useRef(null),o=p(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(y.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var A=0;function L(){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}var M="focusScope.autoFocusOnMount",N="focusScope.autoFocusOnUnmount",O={bubbles:!1,cancelable:!0},j=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[c,s]=i.useState(null),d=C(o),f=C(a),m=i.useRef(null),v=p(t,e=>s(e)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(h.paused||!c)return;let t=e.target;c.contains(t)?m.current=t:F(m.current,{select:!0})},t=function(e){if(h.paused||!c)return;let t=e.relatedTarget;null===t||c.contains(t)||F(m.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&&F(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,c,h.paused]),i.useEffect(()=>{if(c){_.add(h);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(M,O);c.addEventListener(M,d),c.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(F(r,{select:t}),document.activeElement!==n)return}(D(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&F(c))}return()=>{c.removeEventListener(M,d),setTimeout(()=>{let t=new CustomEvent(N,O);c.addEventListener(N,f),c.dispatchEvent(t),t.defaultPrevented||F(null!=e?e:document.body,{select:!0}),c.removeEventListener(N,f),_.remove(h)},0)}}},[c,d,f,h]);let g=i.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=D(e);return[I(t,e),I(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&F(i,{select:!0})):(e.preventDefault(),n&&F(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,u.jsx)(y.div,{tabIndex:-1,...l,ref:v,onKeyDown:g})});function D(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 I(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 F(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()}}j.displayName="FocusScope";var _=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=W(e,t)).unshift(t)},remove(t){var n;null===(n=(e=W(e,t))[0])||void 0===n||n.resume()}}}();function W(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var H=globalThis?.document?i.useLayoutEffect:()=>{},B=a["useId".toString()]||(()=>void 0),K=0;function z(e){let[t,n]=i.useState(B());return H(()=>{e||n(e=>e??String(K++))},[e]),e||(t?`radix-${t}`:"")}let U=["top","right","bottom","left"],$=Math.min,q=Math.max,V=Math.round,X=Math.floor,Y=e=>({x:e,y:e}),G={left:"right",right:"left",bottom:"top",top:"bottom"},Z={start:"end",end:"start"};function Q(e,t){return"function"==typeof e?e(t):e}function J(e){return e.split("-")[0]}function ee(e){return e.split("-")[1]}function et(e){return"x"===e?"y":"x"}function en(e){return"y"===e?"height":"width"}function er(e){return["top","bottom"].includes(J(e))?"y":"x"}function eo(e){return e.replace(/start|end/g,e=>Z[e])}function ei(e){return e.replace(/left|right|bottom|top/g,e=>G[e])}function ea(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function el(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 eu(e,t,n){let r,{reference:o,floating:i}=e,a=er(t),l=et(er(t)),u=en(l),c=J(t),s="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){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(ee(t)){case"start":r[l]-=p*(n&&s?-1:1);break;case"end":r[l]+=p*(n&&s?-1:1)}return r}let ec=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=eu(c,r,u),f=r,p={},m=0;for(let n=0;n<l.length;n++){let{name:i,fn:v}=l[n],{x:h,y:g,data:y,reset:w}=await v({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=h?h:s,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:d}=eu(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function es(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Q(t,e),m=ea(p),v=l[f?"floating"===d?"reference":"floating":d],h=el(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=el(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:u}):g);return{top:(h.top-b.top+m.top)/w.y,bottom:(b.bottom-h.bottom+m.bottom)/w.y,left:(h.left-b.left+m.left)/w.x,right:(b.right-h.right+m.right)/w.x}}function ed(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ef(e){return U.some(t=>e[t]>=0)}async function ep(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=J(n),l=ee(n),u="y"===er(n),c=["left","top"].includes(a)?-1:1,s=i&&u?-1:1,d=Q(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}var em=n(6301);function ev(e){let t=(0,em.L9)(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=(0,em.sb)(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=V(n)!==i||V(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function eh(e){return(0,em.vq)(e)?e:e.contextElement}function eg(e){let t=eh(e);if(!(0,em.sb)(t))return Y(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ev(t),a=(i?V(n.width):n.width)/r,l=(i?V(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let ey=Y(0);function ew(e){let t=(0,em.zk)(e);return(0,em.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ey}function eb(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=eh(e),l=Y(1);t&&(r?(0,em.vq)(r)&&(l=eg(r)):l=eg(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===(0,em.zk)(a))&&o)?ew(a):Y(0),c=(i.left+u.x)/l.x,s=(i.top+u.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=(0,em.zk)(a),t=r&&(0,em.vq)(r)?(0,em.zk)(r):r,n=e,o=(0,em._m)(n);for(;o&&r&&t!==n;){let e=eg(o),t=o.getBoundingClientRect(),r=(0,em.L9)(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,f*=e.y,c+=i,s+=a,n=(0,em.zk)(o),o=(0,em._m)(n)}}return el({width:d,height:f,x:c,y:s})}function ex(e,t){let n=(0,em.CP)(e).scrollLeft;return t?t.left+n:eb((0,em.ep)(e)).left+n}function eE(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ex(e,r)),y:r.top+t.scrollTop}}function eC(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=(0,em.zk)(e),r=(0,em.ep)(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;let e=(0,em.Tc)();(!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=(0,em.ep)(e),n=(0,em.CP)(e),r=e.ownerDocument.body,o=q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+ex(e),l=-n.scrollTop;return"rtl"===(0,em.L9)(r).direction&&(a+=q(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}((0,em.ep)(e));else if((0,em.vq)(t))r=function(e,t){let n=eb(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=(0,em.sb)(e)?eg(e):Y(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=ew(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return el(r)}function eS(e){return"static"===(0,em.L9)(e).position}function eR(e,t){if(!(0,em.sb)(e)||"fixed"===(0,em.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,em.ep)(e)===n&&(n=n.ownerDocument.body),n}function ek(e,t){let n=(0,em.zk)(e);if((0,em.Tf)(e))return n;if(!(0,em.sb)(e)){let t=(0,em.$4)(e);for(;t&&!(0,em.eu)(t);){if((0,em.vq)(t)&&!eS(t))return t;t=(0,em.$4)(t)}return n}let r=eR(e,t);for(;r&&(0,em.Lv)(r)&&eS(r);)r=eR(r,t);return r&&(0,em.eu)(r)&&eS(r)&&!(0,em.sQ)(r)?n:r||(0,em.gJ)(e)||n}let eP=async function(e){let t=this.getOffsetParent||ek,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=(0,em.sb)(t),o=(0,em.ep)(t),i="fixed"===n,a=eb(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=Y(0);if(r||!r&&!i){if(("body"!==(0,em.mq)(t)||(0,em.ZU)(o))&&(l=(0,em.CP)(t)),r){let e=eb(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=ex(o))}let c=!o||r||i?Y(0):eE(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}}},eT={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=(0,em.ep)(r),l=!!t&&(0,em.Tf)(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=Y(1),s=Y(0),d=(0,em.sb)(r);if((d||!d&&!i)&&(("body"!==(0,em.mq)(r)||(0,em.ZU)(a))&&(u=(0,em.CP)(r)),(0,em.sb)(r))){let e=eb(r);c=eg(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let f=!a||d||i?Y(0):eE(a,u,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+f.x,y:n.y*c.y-u.scrollTop*c.y+s.y+f.y}},getDocumentElement:em.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?(0,em.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,em.v9)(e,[],!1).filter(e=>(0,em.vq)(e)&&"body"!==(0,em.mq)(e)),o=null,i="fixed"===(0,em.L9)(e).position,a=i?(0,em.$4)(e):e;for(;(0,em.vq)(a)&&!(0,em.eu)(a);){let t=(0,em.L9)(a),n=(0,em.sQ)(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||(0,em.ZU)(a)&&!n&&function e(t,n){let r=(0,em.$4)(t);return!(r===n||!(0,em.vq)(r)||(0,em.eu)(r))&&("fixed"===(0,em.L9)(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=(0,em.$4)(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{let r=eC(t,n,o);return e.top=q(r.top,e.top),e.right=$(r.right,e.right),e.bottom=$(r.bottom,e.bottom),e.left=q(r.left,e.left),e},eC(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ek,getElementRects:eP,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ev(e);return{width:t,height:n}},getScale:eg,isElement:em.vq,isRTL:function(e){return"rtl"===(0,em.L9)(e).direction}};function eA(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eL=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:u}=t,{element:c,padding:s=0}=Q(e,t)||{};if(null==c)return{};let d=ea(s),f={x:n,y:r},p=et(er(o)),m=en(p),v=await a.getDimensions(c),h="y"===p,g=h?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-f[p]-i.floating[m],w=f[p]-i.reference[p],b=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),x=b?b[g]:0;x&&await (null==a.isElement?void 0:a.isElement(b))||(x=l.floating[g]||i.floating[m]);let E=x/2-v[m]/2-1,C=$(d[h?"top":"left"],E),S=$(d[h?"bottom":"right"],E),R=x-v[m]-S,k=x/2-v[m]/2+(y/2-w/2),P=q(C,$(k,R)),T=!u.arrow&&null!=ee(o)&&k!==P&&i.reference[m]/2-(k<C?C:S)-v[m]/2<0,A=T?k<C?k-C:k-R:0;return{[p]:f[p]+A,data:{[p]:P,centerOffset:k-P-A,...T&&{alignmentOffset:A}},reset:T}}}),eM=(e,t,n)=>{let r=new Map,o={platform:eT,...n},i={...o.platform,_c:r};return ec(e,t,{...o,platform:i})};var eN="undefined"!=typeof document?i.useLayoutEffect:i.useEffect;function eO(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(!eO(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)&&!eO(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ej(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eD(e,t){let n=ej(e);return Math.round(t*n)/n}function eI(e){let t=i.useRef(e);return eN(()=>{t.current=e}),t}let eF=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?eL({element:n.current,padding:r}).fn(t):{}:n?eL({element:n,padding:r}).fn(t):{}}}),e_=(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 ep(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]}),eW=(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:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=Q(e,t),c={x:n,y:r},s=await es(t,u),d=er(J(o)),f=et(d),p=c[f],m=c[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+s[e],r=p-s[t];p=q(n,$(p,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+s[e],r=m-s[t];m=q(n,$(m,r))}let v=l.fn({...t,[f]:p,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[f]:i,[d]:a}}}}}}(e),options:[e,t]}),eH=(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:c=!0}=Q(e,t),s={x:n,y:r},d=er(o),f=et(d),p=s[f],m=s[d],v=Q(l,t),h="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+h.mainAxis,n=i.reference[f]+i.reference[e]-h.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;let e="y"===f?"width":"height",t=["top","left"].includes(J(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:h.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?h.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}}(e),options:[e,t]}),eB=(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:c,initialPlacement:s,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:v,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=Q(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let b=J(l),x=er(s),E=J(s)===s,C=await (null==d.isRTL?void 0:d.isRTL(f.floating)),S=v||(E||!y?[ei(s)]:function(e){let t=ei(e);return[eo(e),t,eo(t)]}(s)),R="none"!==g;!v&&R&&S.push(...function(e,t,n,r){let o=ee(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(J(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(eo)))),i}(s,y,g,C));let k=[s,...S],P=await es(t,w),T=[],A=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&T.push(P[b]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=ee(e),o=et(er(e)),i=en(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ei(a)),[a,ei(a)]}(l,c,C);T.push(P[e[0]],P[e[1]])}if(A=[...A,{placement:l,overflows:T}],!T.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:A},reset:{placement:t}};let n=null==(i=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(h){case"bestFit":{let e=null==(a=A.filter(e=>{if(R){let t=er(e.placement);return t===x||"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=s}if(l!==n)return{reset:{placement:n}}}return{}}}}(e),options:[e,t]}),eK=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i;let{placement:a,rects:l,platform:u,elements:c}=t,{apply:s=()=>{},...d}=Q(e,t),f=await es(t,d),p=J(a),m=ee(a),v="y"===er(a),{width:h,height:g}=l.floating;"top"===p||"bottom"===p?(o=p,i=m===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(i=p,o="end"===m?"top":"bottom");let y=g-f.top-f.bottom,w=h-f.left-f.right,b=$(g-f[o],y),x=$(h-f[i],w),E=!t.middlewareData.shift,C=b,S=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=y),E&&!m){let e=q(f.left,0),t=q(f.right,0),n=q(f.top,0),r=q(f.bottom,0);v?S=h-2*(0!==e||0!==t?e+t:q(f.left,f.right)):C=g-2*(0!==n||0!==r?n+r:q(f.top,f.bottom))}await s({...t,availableWidth:S,availableHeight:C});let R=await u.getDimensions(c.floating);return h!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),ez=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=Q(e,t);switch(r){case"referenceHidden":{let e=ed(await es(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ef(e)}}}case"escaped":{let e=ed(await es(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:ef(e)}}}default:return{}}}}}(e),options:[e,t]}),eU=(e,t)=>({...eF(e),options:[e,t]});var e$=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,u.jsx)(y.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,u.jsx)("polygon",{points:"0,0 30,0 15,10"})})});e$.displayName="Arrow";var eq="Popper",[eV,eX]=c(eq),[eY,eG]=eV(eq),eZ=e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return(0,u.jsx)(eY,{scope:t,anchor:r,onAnchorChange:o,children:n})};eZ.displayName=eq;var eQ="PopperAnchor",eJ=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,a=eG(eQ,n),l=i.useRef(null),c=p(t,l);return i.useEffect(()=>{a.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,u.jsx)(y.div,{...o,ref:c})});eJ.displayName=eQ;var e0="PopperContent",[e1,e2]=eV(e0),e5=i.forwardRef((e,t)=>{var n,r,o,a,l,c,d,f;let{__scopePopper:m,side:v="bottom",sideOffset:h=0,align:g="center",alignOffset:w=0,arrowPadding:b=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:S=0,sticky:R="partial",hideWhenDetached:k=!1,updatePositionStrategy:P="optimized",onPlaced:T,...A}=e,L=eG(e0,m),[M,N]=i.useState(null),O=p(t,e=>N(e)),[j,D]=i.useState(null),I=function(e){let[t,n]=i.useState(void 0);return H(()=>{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}(j),F=null!==(d=null==I?void 0:I.width)&&void 0!==d?d:0,_=null!==(f=null==I?void 0:I.height)&&void 0!==f?f:0,W="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},B=Array.isArray(E)?E:[E],K=B.length>0,z={padding:W,boundary:B.filter(e4),altBoundary:K},{refs:U,floatingStyles:V,placement:Y,isPositioned:G,middlewareData:Z}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=i.useState(r);eO(m,r)||v(r);let[h,g]=i.useState(null),[y,w]=i.useState(null),b=i.useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),x=i.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),E=a||h,C=l||y,S=i.useRef(null),R=i.useRef(null),k=i.useRef(f),P=null!=c,T=eI(c),A=eI(o),L=eI(d),M=i.useCallback(()=>{if(!S.current||!R.current)return;let e={placement:t,strategy:n,middleware:m};A.current&&(e.platform=A.current),eM(S.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};N.current&&!eO(k.current,t)&&(k.current=t,s.flushSync(()=>{p(t)}))})},[m,t,n,A,L]);eN(()=>{!1===d&&k.current.isPositioned&&(k.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let N=i.useRef(!1);eN(()=>(N.current=!0,()=>{N.current=!1}),[]),eN(()=>{if(E&&(S.current=E),C&&(R.current=C),E&&C){if(T.current)return T.current(E,C,M);M()}},[E,C,M,T,P]);let O=i.useMemo(()=>({reference:S,floating:R,setReference:b,setFloating:x}),[b,x]),j=i.useMemo(()=>({reference:E,floating:C}),[E,C]),D=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eD(j.floating,f.x),r=eD(j.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...ej(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,j.floating,f.x,f.y]);return i.useMemo(()=>({...f,update:M,refs:O,elements:j,floatingStyles:D}),[f,M,O,j,D])}({strategy:"fixed",placement:v+("center"!==g?"-"+g:""),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:i=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=eh(e),d=i||a?[...s?(0,em.v9)(s):[],...(0,em.v9)(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=s&&u?function(e,t){let n,r=null,o=(0,em.ep)(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),i();let c=e.getBoundingClientRect(),{left:s,top:d,width:f,height:p}=c;if(l||t(),!f||!p)return;let m=X(d),v=X(o.clientWidth-(s+f)),h={rootMargin:-m+"px "+-v+"px "+-X(o.clientHeight-(d+p))+"px "+-X(s)+"px",threshold:q(0,$(1,u))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||eA(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(y,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(y,h)}r.observe(e)}(!0),i}(s,n):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),s&&!c&&m.observe(s),m.observe(t));let v=c?eb(e):null;return c&&function t(){let r=eb(e);v&&!eA(v,r)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===P})},elements:{reference:L.anchor},middleware:[e_({mainAxis:h+_,alignmentAxis:w}),x&&eW({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?eH():void 0,...z}),x&&eB({...z}),eK({...z,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"))}}),j&&eU({element:j,padding:b}),e7({arrowWidth:F,arrowHeight:_}),k&&ez({strategy:"referenceHidden",...z})]}),[Q,J]=e8(Y),ee=C(T);H(()=>{G&&(null==ee||ee())},[G,ee]);let et=null===(n=Z.arrow)||void 0===n?void 0:n.x,en=null===(r=Z.arrow)||void 0===r?void 0:r.y,er=(null===(o=Z.arrow)||void 0===o?void 0:o.centerOffset)!==0,[eo,ei]=i.useState();return H(()=>{M&&ei(window.getComputedStyle(M).zIndex)},[M]),(0,u.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:G?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eo,"--radix-popper-transform-origin":[null===(a=Z.transformOrigin)||void 0===a?void 0:a.x,null===(l=Z.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(c=Z.hide)||void 0===c?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,u.jsx)(e1,{scope:m,placedSide:Q,onArrowChange:D,arrowX:et,arrowY:en,shouldHideArrow:er,children:(0,u.jsx)(y.div,{"data-side":Q,"data-align":J,...A,ref:O,style:{...A.style,animation:G?void 0:"none"}})})})});e5.displayName=e0;var e9="PopperArrow",e6={top:"bottom",right:"left",bottom:"top",left:"right"},e3=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e2(e9,n),i=e6[o.placedSide];return(0,u.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,u.jsx)(e$,{...r,ref:t,style:{...r.style,display:"block"}})})});function e4(e){return null!==e}e3.displayName=e9;var e7=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:l,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,m]=e8(l),v={start:"0%",center:"50%",end:"100%"}[m],h=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(a=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",w="";return"bottom"===p?(y=s?v:"".concat(h,"px"),w="".concat(-f,"px")):"top"===p?(y=s?v:"".concat(h,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?v:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?v:"".concat(g,"px")),{data:{x:y,y:w}}}});function e8(e){let[t,n="center"]=e.split("-");return[t,n]}var te=i.forwardRef((e,t)=>{var n,r;let{container:o,...a}=e,[l,c]=i.useState(!1);H(()=>c(!0),[]);let d=o||l&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return d?s.createPortal((0,u.jsx)(y.div,{...a,ref:t}),d):null});te.displayName="Portal";var tt=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,o]=i.useState(),a=i.useRef({}),l=i.useRef(e),u=i.useRef("none"),[c,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return i.useEffect(()=>{let e=tn(a.current);u.current="mounted"===c?e:"none"},[c]),H(()=>{let t=a.current,n=l.current;if(n!==e){let r=u.current,o=tn(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),l.current=e}},[e,s]),H(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=tn(a.current).includes(e.animationName);if(e.target===r&&o&&(s("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},i=e=>{e.target===r&&(u.current=tn(a.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{e&&(a.current=getComputedStyle(e)),o(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),a=p(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?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?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?i.cloneElement(o,{ref:a}):null};function tn(e){return(null==e?void 0:e.animationName)||"none"}tt.displayName="Presence";var tr="rovingFocusGroup.onEntryFocus",to={bubbles:!1,cancelable:!0},ti="RovingFocusGroup",[ta,tl,tu]=b(ti),[tc,ts]=c(ti,[tu]),[td,tf]=tc(ti),tp=i.forwardRef((e,t)=>(0,u.jsx)(ta.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(ta.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(tm,{...e,ref:t})})}));tp.displayName=ti;var tm=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:m=!1,...v}=e,h=i.useRef(null),g=p(t,h),w=E(a),[b=null,x]=function({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,o]=function({defaultProp:e,onChange:t}){let n=i.useState(e),[r]=n,o=i.useRef(r),a=C(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:r,u=C(n);return[l,i.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else o(t)},[a,e,o,u])]}({prop:c,defaultProp:s,onChange:d}),[S,R]=i.useState(!1),k=C(f),P=tl(n),T=i.useRef(!1),[A,L]=i.useState(0);return i.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(tr,k),()=>e.removeEventListener(tr,k)},[k]),(0,u.jsx)(td,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:b,onItemFocus:i.useCallback(e=>x(e),[x]),onItemShiftTab:i.useCallback(()=>R(!0),[]),onFocusableItemAdd:i.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>L(e=>e-1),[]),children:(0,u.jsx)(y.div,{tabIndex:S||0===A?-1:0,"data-orientation":r,...v,ref:g,style:{outline:"none",...e.style},onMouseDown:l(e.onMouseDown,()=>{T.current=!0}),onFocus:l(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(tr,to);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);ty([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),m)}}T.current=!1}),onBlur:l(e.onBlur,()=>R(!1))})})}),tv="RovingFocusGroupItem",th=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...c}=e,s=z(),d=a||s,f=tf(tv,n),p=f.currentTabStopId===d,m=tl(n),{onFocusableItemAdd:v,onFocusableItemRemove:h}=f;return i.useEffect(()=>{if(r)return v(),()=>h()},[r,v,h]),(0,u.jsx)(ta.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:(0,u.jsx)(y.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:l(e.onMouseDown,e=>{r?f.onItemFocus(d):e.preventDefault()}),onFocus:l(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:l(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}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 tg[o]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().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=f.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>ty(n))}})})})});th.displayName=tv;var tg={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ty(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 tw=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},tb=new WeakMap,tx=new WeakMap,tE={},tC=0,tS=function(e){return e&&(e.host||tS(e.parentNode))},tR=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=tS(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});tE[n]||(tE[n]=new WeakMap);var i=tE[n],a=[],l=new Set,u=new Set(o),c=function(e){!(!e||l.has(e))&&(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!(!e||u.has(e))&&Array.prototype.forEach.call(e.children,function(e){if(l.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(tb.get(e)||0)+1,c=(i.get(e)||0)+1;tb.set(e,u),i.set(e,c),a.push(e),1===u&&o&&tx.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),l.clear(),tC++,function(){a.forEach(function(e){var t=tb.get(e)-1,o=i.get(e)-1;tb.set(e,t),i.set(e,o),t||(tx.has(e)||e.removeAttribute(r),tx.delete(e)),o||e.removeAttribute(n)}),--tC||(tb=new WeakMap,tb=new WeakMap,tx=new WeakMap,tE={})}},tk=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||tw(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),tR(r,o,n,"aria-hidden")):function(){return null}},tP=function(){return(tP=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 tT(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 tA="right-scroll-bar-position",tL="width-before-scroll-bar";function tM(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var tN="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,tO=new WeakMap;function tj(e){return e}var tD=function(e){void 0===e&&(e={});var t,n,r,o,i=(t=null,void 0===n&&(n=tj),r=[],o=!1,{read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}});return i.options=tP({async:!0,ssr:!1},e),i}(),tI=function(){},tF=i.forwardRef(function(e,t){var n,r,o,a,l=i.useRef(null),u=i.useState({onScrollCapture:tI,onWheelCapture:tI,onTouchMoveCapture:tI}),c=u[0],s=u[1],d=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,v=e.enabled,h=e.shards,g=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,x=e.as,E=e.gapMode,C=tT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[l,t],r=function(e){return n.forEach(function(t){return tM(t,e)})},(o=(0,i.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,a=o.facade,tN(function(){var e=tO.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||tM(e,null)}),r.forEach(function(e){t.has(e)||tM(e,o)})}tO.set(a,n)},[n]),a),R=tP(tP({},C),c);return i.createElement(i.Fragment,null,v&&i.createElement(g,{sideCar:tD,removeScrollBar:m,shards:h,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!b,lockRef:l,gapMode:E}),d?i.cloneElement(i.Children.only(f),tP(tP({},R),{ref:S})):i.createElement(void 0===x?"div":x,tP({},R,{className:p,ref:S}),f))});tF.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tF.classNames={fullWidth:tL,zeroRight:tA};var t_=function(e){var t=e.sideCar,n=tT(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 i.createElement(r,tP({},n))};t_.isSideCarExport=!0;var tW=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},tH=function(){var e=tW();return function(t,n){i.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tB=function(){var e=tH();return function(t){return e(t.styles,t.dynamic),null}},tK={left:0,top:0,right:0,gap:0},tz=function(e){return parseInt(e||"",10)||0},tU=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[tz(n),tz(r),tz(o)]},t$=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return tK;var t=tU(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])}},tq=tB(),tV="data-scroll-locked",tX=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(tV,"] {\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(tA," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(tL," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(tA," .").concat(tA," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tL," .").concat(tL," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(tV,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},tY=function(){var e=parseInt(document.body.getAttribute(tV)||"0",10);return isFinite(e)?e:0},tG=function(){i.useEffect(function(){return document.body.setAttribute(tV,(tY()+1).toString()),function(){var e=tY()-1;e<=0?document.body.removeAttribute(tV):document.body.setAttribute(tV,e.toString())}},[])},tZ=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;tG();var a=i.useMemo(function(){return t$(o)},[o]);return i.createElement(tq,{styles:tX(a,!t,o,n?"":"!important")})},tQ=!1;if("undefined"!=typeof window)try{var tJ=Object.defineProperty({},"passive",{get:function(){return tQ=!0,!0}});window.addEventListener("test",tJ,tJ),window.removeEventListener("test",tJ,tJ)}catch(e){tQ=!1}var t0=!!tQ&&{passive:!1},t1=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])},t2=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),t5(e,r)){var o=t9(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},t5=function(e,t){return"v"===e?t1(t,"overflowY"):t1(t,"overflowX")},t9=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},t6=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,c=t.contains(u),s=!1,d=l>0,f=0,p=0;do{var m=t9(e,u),v=m[0],h=m[1]-m[2]-a*v;(v||h)&&t5(e,u)&&(f+=h,p+=v),u=u instanceof ShadowRoot?u.host:u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},t3=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},t4=function(e){return[e.deltaX,e.deltaY]},t7=function(e){return e&&"current"in e?e.current:e},t8=0,ne=[];let nt=(tD.useMedium(function(e){var t=i.useRef([]),n=i.useRef([0,0]),r=i.useRef(),o=i.useState(t8++)[0],a=i.useState(tB)[0],l=i.useRef(e);i.useEffect(function(){l.current=e},[e]),i.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(t7),!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=i.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=t3(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=t2(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=t2(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var p=r.current||o;return t6(p,t,e,"h"===p?u:c,!0)},[]),c=i.useCallback(function(e){if(ne.length&&ne[ne.length-1]===a){var n="deltaY"in e?t4(e):t3(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)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(t7).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=i.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=i.useCallback(function(e){n.current=t3(e),r.current=void 0},[]),f=i.useCallback(function(t){s(t.type,t4(t),t.target,u(t,e.lockRef.current))},[]),p=i.useCallback(function(t){s(t.type,t3(t),t.target,u(t,e.lockRef.current))},[]);i.useEffect(function(){return ne.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",c,t0),document.addEventListener("touchmove",c,t0),document.addEventListener("touchstart",d,t0),function(){ne=ne.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,t0),document.removeEventListener("touchmove",c,t0),document.removeEventListener("touchstart",d,t0)}},[]);var m=e.removeScrollBar,v=e.inert;return i.createElement(i.Fragment,null,v?i.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?i.createElement(tZ,{gapMode:e.gapMode}):null)}),t_);var nn=i.forwardRef(function(e,t){return i.createElement(tF,tP({},e,{ref:t,sideCar:nt}))});nn.classNames=tF.classNames;var nr=["Enter"," "],no=["ArrowUp","PageDown","End"],ni=["ArrowDown","PageUp","Home",...no],na={ltr:[...nr,"ArrowRight"],rtl:[...nr,"ArrowLeft"]},nl={ltr:["ArrowLeft"],rtl:["ArrowRight"]},nu="Menu",[nc,ns,nd]=b(nu),[nf,np]=c(nu,[nd,eX,ts]),nm=eX(),nv=ts(),[nh,ng]=nf(nu),[ny,nw]=nf(nu),nb=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:l=!0}=e,c=nm(t),[s,d]=i.useState(null),f=i.useRef(!1),p=C(a),m=E(o);return i.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,u.jsx)(eZ,{...c,children:(0,u.jsx)(nh,{scope:t,open:n,onOpenChange:p,content:s,onContentChange:d,children:(0,u.jsx)(ny,{scope:t,onClose:i.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:l,children:r})})})};nb.displayName=nu;var nx=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=nm(n);return(0,u.jsx)(eJ,{...o,...r,ref:t})});nx.displayName="MenuAnchor";var nE="MenuPortal",[nC,nS]=nf(nE,{forceMount:void 0}),nR="MenuContent",[nk,nP]=nf(nR),nT=i.forwardRef((e,t)=>{let n=nS(nR,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=ng(nR,e.__scopeMenu),a=nw(nR,e.__scopeMenu);return(0,u.jsx)(nc.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(tt,{present:r||i.open,children:(0,u.jsx)(nc.Slot,{scope:e.__scopeMenu,children:a.modal?(0,u.jsx)(nA,{...o,ref:t}):(0,u.jsx)(nL,{...o,ref:t})})})})}),nA=i.forwardRef((e,t)=>{let n=ng(nR,e.__scopeMenu),r=i.useRef(null),o=p(t,r);return i.useEffect(()=>{let e=r.current;if(e)return tk(e)},[]),(0,u.jsx)(nM,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),nL=i.forwardRef((e,t)=>{let n=ng(nR,e.__scopeMenu);return(0,u.jsx)(nM,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),nM=i.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:v,onFocusOutside:h,onInteractOutside:g,onDismiss:y,disableOutsideScroll:w,...b}=e,x=ng(nR,n),E=nw(nR,n),C=nm(n),S=nv(n),R=ns(n),[P,T]=i.useState(null),M=i.useRef(null),N=p(t,M,x.onContentChange),O=i.useRef(0),D=i.useRef(""),I=i.useRef(0),F=i.useRef(null),_=i.useRef("right"),W=i.useRef(0),H=w?nn:i.Fragment,B=w?{as:m,allowPinchZoom:!0}:void 0,K=e=>{var t,n;let r=D.current+e,o=R().filter(e=>!e.disabled),i=document.activeElement,a=null===(t=o.find(e=>e.ref.current===i))||void 0===t?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=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,a),u=null===(n=o.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){D.current=t,window.clearTimeout(O.current),""!==t&&(O.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus())};i.useEffect(()=>()=>window.clearTimeout(O.current),[]),i.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:L()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:L()),A++,()=>{1===A&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),A--}},[]);let z=i.useCallback(e=>{var t,n;return _.current===(null===(t=F.current)||void 0===t?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].x,l=t[e].y,u=t[i].x,c=t[i].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=F.current)||void 0===n?void 0:n.area)},[]);return(0,u.jsx)(nk,{scope:n,searchRef:D,onItemEnter:i.useCallback(e=>{z(e)&&e.preventDefault()},[z]),onItemLeave:i.useCallback(e=>{var t;z(e)||(null===(t=M.current)||void 0===t||t.focus(),T(null))},[z]),onTriggerLeave:i.useCallback(e=>{z(e)&&e.preventDefault()},[z]),pointerGraceTimerRef:I,onPointerGraceIntentChange:i.useCallback(e=>{F.current=e},[]),children:(0,u.jsx)(H,{...B,children:(0,u.jsx)(j,{asChild:!0,trapped:o,onMountAutoFocus:l(a,e=>{var t;e.preventDefault(),null===(t=M.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,u.jsx)(k,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:f,onPointerDownOutside:v,onFocusOutside:h,onInteractOutside:g,onDismiss:y,children:(0,u.jsx)(tp,{asChild:!0,...S,dir:E.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:T,onEntryFocus:l(d,e=>{E.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,u.jsx)(e5,{role:"menu","aria-orientation":"vertical","data-state":n9(x.open),"data-radix-menu-content":"",dir:E.dir,...C,...b,ref:N,style:{outline:"none",...b.style},onKeyDown:l(b.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&&K(e.key));let o=M.current;if(e.target!==o||!ni.includes(e.key))return;e.preventDefault();let i=R().filter(e=>!e.disabled).map(e=>e.ref.current);no.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:l(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(O.current),D.current="")}),onPointerMove:l(e.onPointerMove,n4(e=>{let t=e.target,n=W.current!==e.clientX;e.currentTarget.contains(t)&&n&&(_.current=e.clientX>W.current?"right":"left",W.current=e.clientX)}))})})})})})})});nT.displayName=nR;var nN=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(y.div,{role:"group",...r,ref:t})});nN.displayName="MenuGroup";var nO=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(y.div,{...r,ref:t})});nO.displayName="MenuLabel";var nj="MenuItem",nD="menu.itemSelect",nI=i.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),c=nw(nj,e.__scopeMenu),s=nP(nj,e.__scopeMenu),d=p(t,a),f=i.useRef(!1);return(0,u.jsx)(nF,{...o,ref:d,disabled:n,onClick:l(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(nD,{bubbles:!0,cancelable:!0});e.addEventListener(nD,e=>null==r?void 0:r(e),{once:!0}),w(e,t),t.defaultPrevented?f.current=!1:c.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),f.current=!0},onPointerUp:l(e.onPointerUp,e=>{var t;f.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:l(e.onKeyDown,e=>{let t=""!==s.searchRef.current;!n&&(!t||" "!==e.key)&&nr.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});nI.displayName=nj;var nF=i.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,c=nP(nj,n),s=nv(n),d=i.useRef(null),f=p(t,d),[m,v]=i.useState(!1),[h,g]=i.useState("");return i.useEffect(()=>{let e=d.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[a.children]),(0,u.jsx)(nc.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:h,children:(0,u.jsx)(th,{asChild:!0,...s,focusable:!r,children:(0,u.jsx)(y.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:f,onPointerMove:l(e.onPointerMove,n4(e=>{r?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:l(e.onPointerLeave,n4(e=>c.onItemLeave(e))),onFocus:l(e.onFocus,()=>v(!0)),onBlur:l(e.onBlur,()=>v(!1))})})})}),n_=i.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,u.jsx)(nq,{scope:e.__scopeMenu,checked:n,children:(0,u.jsx)(nI,{role:"menuitemcheckbox","aria-checked":n6(n)?"mixed":n,...o,ref:t,"data-state":n3(n),onSelect:l(o.onSelect,()=>null==r?void 0:r(!!n6(n)||!n),{checkForDefaultPrevented:!1})})})});n_.displayName="MenuCheckboxItem";var nW="MenuRadioGroup",[nH,nB]=nf(nW,{value:void 0,onValueChange:()=>{}}),nK=i.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=C(r);return(0,u.jsx)(nH,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,u.jsx)(nN,{...o,ref:t})})});nK.displayName=nW;var nz="MenuRadioItem",nU=i.forwardRef((e,t)=>{let{value:n,...r}=e,o=nB(nz,e.__scopeMenu),i=n===o.value;return(0,u.jsx)(nq,{scope:e.__scopeMenu,checked:i,children:(0,u.jsx)(nI,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":n3(i),onSelect:l(r.onSelect,()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});nU.displayName=nz;var n$="MenuItemIndicator",[nq,nV]=nf(n$,{checked:!1}),nX=i.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=nV(n$,n);return(0,u.jsx)(tt,{present:r||n6(i.checked)||!0===i.checked,children:(0,u.jsx)(y.span,{...o,ref:t,"data-state":n3(i.checked)})})});nX.displayName=n$;var nY=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,u.jsx)(y.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});nY.displayName="MenuSeparator";var nG=i.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=nm(n);return(0,u.jsx)(e3,{...o,...r,ref:t})});nG.displayName="MenuArrow";var nZ="MenuSub",[nQ,nJ]=nf(nZ),n0="MenuSubTrigger",n1=i.forwardRef((e,t)=>{let n=ng(n0,e.__scopeMenu),r=nw(n0,e.__scopeMenu),o=nJ(n0,e.__scopeMenu),a=nP(n0,e.__scopeMenu),c=i.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=a,p={__scopeMenu:e.__scopeMenu},m=i.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return i.useEffect(()=>m,[m]),i.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,u.jsx)(nx,{asChild:!0,...p,children:(0,u.jsx)(nF,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":n9(n.open),...e,ref:f(t,o.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:l(e.onPointerMove,n4(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(a.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:l(e.onPointerLeave,n4(e=>{var t,r;m();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,l=o[i?"left":"right"],u=o[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:l,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:l(e.onKeyDown,t=>{let o=""!==a.searchRef.current;if(!e.disabled&&(!o||" "!==t.key)&&na[r.dir].includes(t.key)){var i;n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault()}})})})});n1.displayName=n0;var n2="MenuSubContent",n5=i.forwardRef((e,t)=>{let n=nS(nR,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ng(nR,e.__scopeMenu),c=nw(nR,e.__scopeMenu),s=nJ(n2,e.__scopeMenu),d=i.useRef(null),f=p(t,d);return(0,u.jsx)(nc.Provider,{scope:e.__scopeMenu,children:(0,u.jsx)(tt,{present:r||a.open,children:(0,u.jsx)(nc.Slot,{scope:e.__scopeMenu,children:(0,u.jsx)(nM,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:l(e.onFocusOutside,e=>{e.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:l(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:l(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=nl[c.dir].includes(e.key);if(t&&n){var r;a.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function n9(e){return e?"open":"closed"}function n6(e){return"indeterminate"===e}function n3(e){return n6(e)?"indeterminate":e?"checked":"unchecked"}function n4(e){return t=>"mouse"===t.pointerType?e(t):void 0}n5.displayName=n2;var n7="ContextMenu",[n8,re]=c(n7,[np]),rt=np(),[rn,rr]=n8(n7),ro=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:o,modal:a=!0}=e,[l,c]=i.useState(!1),s=rt(t),d=C(r),f=i.useCallback(e=>{c(e),d(e)},[d]);return(0,u.jsx)(rn,{scope:t,open:l,onOpenChange:f,modal:a,children:(0,u.jsx)(nb,{...s,dir:o,open:l,onOpenChange:f,modal:a,children:n})})};ro.displayName=n7;var ri="ContextMenuTrigger",ra=i.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...o}=e,a=rr(ri,n),c=rt(n),s=i.useRef({x:0,y:0}),d=i.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),f=i.useRef(0),p=i.useCallback(()=>window.clearTimeout(f.current),[]),m=e=>{s.current={x:e.clientX,y:e.clientY},a.onOpenChange(!0)};return i.useEffect(()=>p,[p]),i.useEffect(()=>void(r&&p()),[r,p]),(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(nx,{...c,virtualRef:d}),(0,u.jsx)(y.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:l(e.onContextMenu,e=>{p(),m(e),e.preventDefault()}),onPointerDown:r?e.onPointerDown:l(e.onPointerDown,rs(e=>{p(),f.current=window.setTimeout(()=>m(e),700)})),onPointerMove:r?e.onPointerMove:l(e.onPointerMove,rs(p)),onPointerCancel:r?e.onPointerCancel:l(e.onPointerCancel,rs(p)),onPointerUp:r?e.onPointerUp:l(e.onPointerUp,rs(p))})]})});ra.displayName=ri;var rl="ContextMenuContent",ru=i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rr(rl,n),a=rt(n),l=i.useRef(!1);return(0,u.jsx)(nT,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:t=>{var n;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),!t.defaultPrevented&&l.current&&t.preventDefault(),l.current=!1},onInteractOutside:t=>{var n;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||o.modal||(l.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ru.displayName=rl,i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(nN,{...o,...r,ref:t})}).displayName="ContextMenuGroup",i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(nO,{...o,...r,ref:t})}).displayName="ContextMenuLabel";var rc=i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(nI,{...o,...r,ref:t})});function rs(e){return t=>"mouse"!==t.pointerType?e(t):void 0}rc.displayName="ContextMenuItem",i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(n_,{...o,...r,ref:t})}).displayName="ContextMenuCheckboxItem",i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(nK,{...o,...r,ref:t})}).displayName="ContextMenuRadioGroup",i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(nU,{...o,...r,ref:t})}).displayName="ContextMenuRadioItem",i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(nX,{...o,...r,ref:t})}).displayName="ContextMenuItemIndicator",i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(nY,{...o,...r,ref:t})}).displayName="ContextMenuSeparator",i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(nG,{...o,...r,ref:t})}).displayName="ContextMenuArrow",i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(n1,{...o,...r,ref:t})}).displayName="ContextMenuSubTrigger",i.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,o=rt(n);return(0,u.jsx)(n5,{...o,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="ContextMenuSubContent";var rd=ro,rf=ra,rp=ru,rm=rc},8637:(e,t,n)=>{e.exports=n(9399)()},9399:(e,t,n)=>{"use strict";var r=n(2948);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},9416:(e,t,n)=>{"use strict";n.d(t,{Hh:()=>a,in:()=>l});var r=e=>{window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.push(e)},o=()=>{window.__fathomIsLoading=!1,window.__fathomClientQueue=window.__fathomClientQueue||[],window.__fathomClientQueue.forEach(e=>{switch(e.type){case"trackPageview":l(e.opts);return;case"trackGoal":u(e.code,e.cents);return;case"trackEvent":c(e.eventName,e.opts);return;case"enableTrackingForMe":d();return;case"blockTrackingForMe":s();return;case"setSite":f(e.id);return}}),window.__fathomClientQueue=[]},i=e=>{let t=/(https?)(?=:|\/|$)/;e.forEach(e=>{null!==t.exec(e)&&console.warn(`The include domain ${e} might fail to work as intended as it begins with a transfer protocol (http://, https://). Consider removing the protocol portion of the string.`)})},a=(e,t)=>{if(window.__fathomIsLoading||window.fathom)return;window.__fathomIsLoading=!0;let n=document.createElement("script"),r=document.getElementsByTagName("script")[0]||document.querySelector("body");n.id="fathom-script",n.async=!0,n.setAttribute("data-site",e),n.src=t&&t.url?t.url:"https://cdn.usefathom.com/script.js",t&&(void 0!==t.auto&&n.setAttribute("data-auto",`${t.auto}`),void 0!==t.honorDNT&&n.setAttribute("data-honor-dnt",`${t.honorDNT}`),void 0!==t.canonical&&n.setAttribute("data-canonical",`${t.canonical}`),t.includedDomains&&(i(t.includedDomains),n.setAttribute("data-included-domains",t.includedDomains.join(","))),t.excludedDomains&&(i(t.excludedDomains),n.setAttribute("data-excluded-domains",t.excludedDomains.join(","))),t.spa&&n.setAttribute("data-spa",t.spa)),n.onload=o,r.parentNode.insertBefore(n,r)},l=e=>{window.fathom?e?window.fathom.trackPageview(e):window.fathom.trackPageview():r({type:"trackPageview",opts:e})},u=(e,t)=>{window.fathom?window.fathom.trackGoal(e,t):r({type:"trackGoal",code:e,cents:t})},c=(e,t)=>{window.fathom?window.fathom.trackEvent(e,t):r({type:"trackEvent",eventName:e,opts:t})},s=()=>{window.fathom?window.fathom.blockTrackingForMe():r({type:"blockTrackingForMe"})},d=()=>{window.fathom?window.fathom.enableTrackingForMe():r({type:"enableTrackingForMe"})},f=e=>{window.fathom?window.fathom.setSite(e):r({type:"setSite",id:e})}}}]);