"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8959],{5565:(e,t,r)=>{r.d(t,{default:()=>o.a});var n=r(4146),o=r.n(n)},4146:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return u},getImageProps:function(){return i}});let n=r(60306),o=r(40666),l=r(87970),a=n._(r(65514));function i(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let u=l.Image},11758:(e,t,r)=>{r.d(t,{N:()=>c});var n=r(12115),o=r(18166),l=r(88068),a=r(95155),i=n.forwardRef((e,t)=>{let{children:r,...o}=e,l=n.Children.toArray(r),i=l.find(d);if(i){let e=i.props.children,r=l.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(u,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,a.jsx)(u,{...o,ref:t,children:r})});i.displayName="Slot";var u=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r);return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{l(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,l.t)(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null});u.displayName="SlotClone";var s=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function d(e){return n.isValidElement(e)&&e.type===s}function c(e){let t=e+"CollectionProvider",[r,u]=(0,o.A)(t),[s,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,o=n.useRef(null),l=n.useRef(new Map).current;return(0,a.jsx)(s,{scope:t,itemMap:l,collectionRef:o,children:r})};c.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=d(f,r),u=(0,l.s)(t,o.collectionRef);return(0,a.jsx)(i,{ref:u,children:n})});p.displayName=f;let v=e+"CollectionItemSlot",m="data-radix-collection-item",h=n.forwardRef((e,t)=>{let{scope:r,children:o,...u}=e,s=n.useRef(null),c=(0,l.s)(t,s),f=d(v,r);return n.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,a.jsx)(i,{[m]:"",ref:c,children:o})});return h.displayName=v,[{Provider:c,Slot:p,ItemSlot:h},function(t){let r=d(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}},73741:(e,t,r)=>{r.d(t,{qW:()=>p});var n,o=r(12115),l=r(93610),a=r(59997),i=r(88068),u=r(41524),s=r(95630),d=r(95155),c="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),p=o.forwardRef((e,t)=>{var r,p;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:g,onPointerDownOutside:w,onFocusOutside:y,onInteractOutside:x,onDismiss:b,...C}=e,E=o.useContext(f),[R,j]=o.useState(null),D=null!==(p=null==R?void 0:R.ownerDocument)&&void 0!==p?p:null===(r=globalThis)||void 0===r?void 0:r.document,[,P]=o.useState({}),M=(0,i.s)(t,e=>j(e)),N=Array.from(E.layers),[O]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),S=N.indexOf(O),A=R?N.indexOf(R):-1,I=E.layersWithOutsidePointerEventsDisabled.size>0,_=A>=S,k=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,u.c)(e),l=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!l.current){let t=function(){m("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);l.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>l.current=!0}}(e=>{let t=e.target,r=[...E.branches].some(e=>e.contains(t));!_||r||(null==w||w(e),null==x||x(e),e.defaultPrevented||null==b||b())},D),L=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,u.c)(e),l=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!l.current&&m("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==y||y(e),null==x||x(e),e.defaultPrevented||null==b||b())},D);return(0,s.U)(e=>{A!==E.layers.size-1||(null==g||g(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},D),o.useEffect(()=>{if(R)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(n=D.body.style.pointerEvents,D.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(R)),E.layers.add(R),v(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(D.body.style.pointerEvents=n)}},[R,D,h,E]),o.useEffect(()=>()=>{R&&(E.layers.delete(R),E.layersWithOutsidePointerEventsDisabled.delete(R),v())},[R,E]),o.useEffect(()=>{let e=()=>P({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,d.jsx)(a.sG.div,{...C,ref:M,style:{pointerEvents:I?_?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.m)(e.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,l.m)(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,l.m)(e.onPointerDownCapture,k.onPointerDownCapture)})});function v(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,r,n){let{discrete:o}=n,l=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&l.addEventListener(e,t,{once:!0}),o?(0,a.hO)(l,i):l.dispatchEvent(i)}p.displayName="DismissableLayer",o.forwardRef((e,t)=>{let r=o.useContext(f),n=o.useRef(null),l=(0,i.s)(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,d.jsx)(a.sG.div,{...e,ref:l})}).displayName="DismissableLayerBranch"},52593:(e,t,r)=>{r.d(t,{H_:()=>ti,UC:()=>tn,YJ:()=>to,q7:()=>ta,VF:()=>td,JU:()=>tl,ZL:()=>tr,z6:()=>tu,hN:()=>ts,bL:()=>te,wv:()=>tc,Pb:()=>tf,G5:()=>tv,ZP:()=>tp,l9:()=>tt});var n=r(12115),o=r(93610),l=r(88068),a=r(18166),i=r(1488),u=r(59997),s=r(11758),d=r(4256),c=r(73741),f=r(62292),p=r(41524),v=r(95155),m="focusScope.autoFocusOnMount",h="focusScope.autoFocusOnUnmount",g={bubbles:!1,cancelable:!0},w=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...s}=e,[d,c]=n.useState(null),f=(0,p.c)(a),w=(0,p.c)(i),E=n.useRef(null),R=(0,l.s)(t,e=>c(e)),j=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(o){let e=function(e){if(j.paused||!d)return;let t=e.target;d.contains(t)?E.current=t:b(E.current,{select:!0})},t=function(e){if(j.paused||!d)return;let t=e.relatedTarget;null===t||d.contains(t)||b(E.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&b(d)});return d&&r.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,d,j.paused]),n.useEffect(()=>{if(d){C.add(j);let e=document.activeElement;if(!d.contains(e)){let t=new CustomEvent(m,g);d.addEventListener(m,f),d.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(b(n,{select:t}),document.activeElement!==r)return}(y(d).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&b(d))}return()=>{d.removeEventListener(m,f),setTimeout(()=>{let t=new CustomEvent(h,g);d.addEventListener(h,w),d.dispatchEvent(t),t.defaultPrevented||b(null!=e?e:document.body,{select:!0}),d.removeEventListener(h,w),C.remove(j)},0)}}},[d,f,w,j]);let D=n.useCallback(e=>{if(!r&&!o||j.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[o,l]=function(e){let t=y(e);return[x(t,e),x(t.reverse(),e)]}(t);o&&l?e.shiftKey||n!==l?e.shiftKey&&n===o&&(e.preventDefault(),r&&b(l,{select:!0})):(e.preventDefault(),r&&b(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,j.paused]);return(0,v.jsx)(u.sG.div,{tabIndex:-1,...s,ref:R,onKeyDown:D})});function y(e){let t=[],r=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(;r.nextNode();)t.push(r.currentNode);return t}function x(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function b(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}w.displayName="FocusScope";var C=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=E(e,t)).unshift(t)},remove(t){var r;null===(r=(e=E(e,t))[0])||void 0===r||r.resume()}}}();function E(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var R=r(67668),j=r(98188),D=r(17323),P=r(17028),M=r(67357),N=n.forwardRef((e,t)=>{let{children:r,...o}=e,l=n.Children.toArray(r),a=l.find(A);if(a){let e=a.props.children,r=l.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,v.jsx)(O,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,v.jsx)(O,{...o,ref:t,children:r})});N.displayName="Slot";var O=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r);return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{l(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,l.t)(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null});O.displayName="SlotClone";var S=({children:e})=>(0,v.jsx)(v.Fragment,{children:e});function A(e){return n.isValidElement(e)&&e.type===S}var I=r(15587),_=r(2431),k=["Enter"," "],L=["ArrowUp","PageDown","End"],T=["ArrowDown","PageUp","Home",...L],F={ltr:[...k,"ArrowRight"],rtl:[...k,"ArrowLeft"]},G={ltr:["ArrowLeft"],rtl:["ArrowRight"]},K="Menu",[B,W,V]=(0,s.N)(K),[U,z]=(0,a.A)(K,[V,j.Bk,M.RG]),H=(0,j.Bk)(),X=(0,M.RG)(),[Y,Z]=U(K),[q,$]=U(K),J=e=>{let{__scopeMenu:t,open:r=!1,children:o,dir:l,onOpenChange:a,modal:i=!0}=e,u=H(t),[s,c]=n.useState(null),f=n.useRef(!1),m=(0,p.c)(a),h=(0,d.jH)(l);return n.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,v.jsx)(j.bL,{...u,children:(0,v.jsx)(Y,{scope:t,open:r,onOpenChange:m,content:s,onContentChange:c,children:(0,v.jsx)(q,{scope:t,onClose:n.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:h,modal:i,children:o})})})};J.displayName=K;var Q=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=H(r);return(0,v.jsx)(j.Mz,{...o,...n,ref:t})});Q.displayName="MenuAnchor";var ee="MenuPortal",[et,er]=U(ee,{forceMount:void 0}),en=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,l=Z(ee,t);return(0,v.jsx)(et,{scope:t,forceMount:r,children:(0,v.jsx)(P.C,{present:r||l.open,children:(0,v.jsx)(D.Z,{asChild:!0,container:o,children:n})})})};en.displayName=ee;var eo="MenuContent",[el,ea]=U(eo),ei=n.forwardRef((e,t)=>{let r=er(eo,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,l=Z(eo,e.__scopeMenu),a=$(eo,e.__scopeMenu);return(0,v.jsx)(B.Provider,{scope:e.__scopeMenu,children:(0,v.jsx)(P.C,{present:n||l.open,children:(0,v.jsx)(B.Slot,{scope:e.__scopeMenu,children:a.modal?(0,v.jsx)(eu,{...o,ref:t}):(0,v.jsx)(es,{...o,ref:t})})})})}),eu=n.forwardRef((e,t)=>{let r=Z(eo,e.__scopeMenu),a=n.useRef(null),i=(0,l.s)(t,a);return n.useEffect(()=>{let e=a.current;if(e)return(0,I.Eq)(e)},[]),(0,v.jsx)(ed,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),es=n.forwardRef((e,t)=>{let r=Z(eo,e.__scopeMenu);return(0,v.jsx)(ed,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),ed=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:a=!1,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:s,disableOutsidePointerEvents:d,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:y,onDismiss:x,disableOutsideScroll:b,...C}=e,E=Z(eo,r),R=$(eo,r),D=H(r),P=X(r),O=W(r),[S,A]=n.useState(null),I=n.useRef(null),k=(0,l.s)(t,I,E.onContentChange),F=n.useRef(0),G=n.useRef(""),K=n.useRef(0),B=n.useRef(null),V=n.useRef("right"),U=n.useRef(0),z=b?_.A:n.Fragment,Y=b?{as:N,allowPinchZoom:!0}:void 0,q=e=>{var t,r;let n=G.current+e,o=O().filter(e=>!e.disabled),l=document.activeElement,a=null===(t=o.find(e=>e.ref.current===l))||void 0===t?void 0:t.textValue,i=function(e,t,r){var n;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===o.length&&(l=l.filter(e=>e!==r));let a=l.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==r?a:void 0}(o.map(e=>e.textValue),n,a),u=null===(r=o.find(e=>e.textValue===i))||void 0===r?void 0:r.ref.current;!function e(t){G.current=t,window.clearTimeout(F.current),""!==t&&(F.current=window.setTimeout(()=>e(""),1e3))}(n),u&&setTimeout(()=>u.focus())};n.useEffect(()=>()=>window.clearTimeout(F.current),[]),(0,f.Oh)();let J=n.useCallback(e=>{var t,r;return V.current===(null===(t=B.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,l=t.length-1;en!=s>n&&r<(u-a)*(n-i)/(s-i)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(r=B.current)||void 0===r?void 0:r.area)},[]);return(0,v.jsx)(el,{scope:r,searchRef:G,onItemEnter:n.useCallback(e=>{J(e)&&e.preventDefault()},[J]),onItemLeave:n.useCallback(e=>{var t;J(e)||(null===(t=I.current)||void 0===t||t.focus(),A(null))},[J]),onTriggerLeave:n.useCallback(e=>{J(e)&&e.preventDefault()},[J]),pointerGraceTimerRef:K,onPointerGraceIntentChange:n.useCallback(e=>{B.current=e},[]),children:(0,v.jsx)(z,{...Y,children:(0,v.jsx)(w,{asChild:!0,trapped:i,onMountAutoFocus:(0,o.m)(u,e=>{var t;e.preventDefault(),null===(t=I.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,v.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:d,onEscapeKeyDown:m,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:y,onDismiss:x,children:(0,v.jsx)(M.bL,{asChild:!0,...P,dir:R.dir,orientation:"vertical",loop:a,currentTabStopId:S,onCurrentTabStopIdChange:A,onEntryFocus:(0,o.m)(p,e=>{R.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,v.jsx)(j.UC,{role:"menu","aria-orientation":"vertical","data-state":eF(E.open),"data-radix-menu-content":"",dir:R.dir,...D,...C,ref:k,style:{outline:"none",...C.style},onKeyDown:(0,o.m)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&q(e.key));let o=I.current;if(e.target!==o||!T.includes(e.key))return;e.preventDefault();let l=O().filter(e=>!e.disabled).map(e=>e.ref.current);L.includes(e.key)&&l.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(l)}),onBlur:(0,o.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(F.current),G.current="")}),onPointerMove:(0,o.m)(e.onPointerMove,eB(e=>{let t=e.target,r=U.current!==e.clientX;if(e.currentTarget.contains(t)&&r){let t=e.clientX>U.current?"right":"left";V.current=t,U.current=e.clientX}}))})})})})})})});ei.displayName=eo;var ec=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,v.jsx)(u.sG.div,{role:"group",...n,ref:t})});ec.displayName="MenuGroup";var ef=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,v.jsx)(u.sG.div,{...n,ref:t})});ef.displayName="MenuLabel";var ep="MenuItem",ev="menu.itemSelect",em=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:a,...i}=e,s=n.useRef(null),d=$(ep,e.__scopeMenu),c=ea(ep,e.__scopeMenu),f=(0,l.s)(t,s),p=n.useRef(!1);return(0,v.jsx)(eh,{...i,ref:f,disabled:r,onClick:(0,o.m)(e.onClick,()=>{let e=s.current;if(!r&&e){let t=new CustomEvent(ev,{bubbles:!0,cancelable:!0});e.addEventListener(ev,e=>null==a?void 0:a(e),{once:!0}),(0,u.hO)(e,t),t.defaultPrevented?p.current=!1:d.onClose()}}),onPointerDown:t=>{var r;null===(r=e.onPointerDown)||void 0===r||r.call(e,t),p.current=!0},onPointerUp:(0,o.m)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=""!==c.searchRef.current;!r&&(!t||" "!==e.key)&&k.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});em.displayName=ep;var eh=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:a=!1,textValue:i,...s}=e,d=ea(ep,r),c=X(r),f=n.useRef(null),p=(0,l.s)(t,f),[m,h]=n.useState(!1),[g,w]=n.useState("");return n.useEffect(()=>{let e=f.current;if(e){var t;w((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[s.children]),(0,v.jsx)(B.ItemSlot,{scope:r,disabled:a,textValue:null!=i?i:g,children:(0,v.jsx)(M.q7,{asChild:!0,...c,focusable:!a,children:(0,v.jsx)(u.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:p,onPointerMove:(0,o.m)(e.onPointerMove,eB(e=>{a?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eB(e=>d.onItemLeave(e))),onFocus:(0,o.m)(e.onFocus,()=>h(!0)),onBlur:(0,o.m)(e.onBlur,()=>h(!1))})})})}),eg=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...l}=e;return(0,v.jsx)(ej,{scope:e.__scopeMenu,checked:r,children:(0,v.jsx)(em,{role:"menuitemcheckbox","aria-checked":eG(r)?"mixed":r,...l,ref:t,"data-state":eK(r),onSelect:(0,o.m)(l.onSelect,()=>null==n?void 0:n(!!eG(r)||!r),{checkForDefaultPrevented:!1})})})});eg.displayName="MenuCheckboxItem";var ew="MenuRadioGroup",[ey,ex]=U(ew,{value:void 0,onValueChange:()=>{}}),eb=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,l=(0,p.c)(n);return(0,v.jsx)(ey,{scope:e.__scopeMenu,value:r,onValueChange:l,children:(0,v.jsx)(ec,{...o,ref:t})})});eb.displayName=ew;var eC="MenuRadioItem",eE=n.forwardRef((e,t)=>{let{value:r,...n}=e,l=ex(eC,e.__scopeMenu),a=r===l.value;return(0,v.jsx)(ej,{scope:e.__scopeMenu,checked:a,children:(0,v.jsx)(em,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":eK(a),onSelect:(0,o.m)(n.onSelect,()=>{var e;return null===(e=l.onValueChange)||void 0===e?void 0:e.call(l,r)},{checkForDefaultPrevented:!1})})})});eE.displayName=eC;var eR="MenuItemIndicator",[ej,eD]=U(eR,{checked:!1}),eP=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,l=eD(eR,r);return(0,v.jsx)(P.C,{present:n||eG(l.checked)||!0===l.checked,children:(0,v.jsx)(u.sG.span,{...o,ref:t,"data-state":eK(l.checked)})})});eP.displayName=eR;var eM=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,v.jsx)(u.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eM.displayName="MenuSeparator";var eN=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=H(r);return(0,v.jsx)(j.i3,{...o,...n,ref:t})});eN.displayName="MenuArrow";var eO="MenuSub",[eS,eA]=U(eO),eI=e=>{let{__scopeMenu:t,children:r,open:o=!1,onOpenChange:l}=e,a=Z(eO,t),i=H(t),[u,s]=n.useState(null),[d,c]=n.useState(null),f=(0,p.c)(l);return n.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,v.jsx)(j.bL,{...i,children:(0,v.jsx)(Y,{scope:t,open:o,onOpenChange:f,content:d,onContentChange:c,children:(0,v.jsx)(eS,{scope:t,contentId:(0,R.B)(),triggerId:(0,R.B)(),trigger:u,onTriggerChange:s,children:r})})})};eI.displayName=eO;var e_="MenuSubTrigger",ek=n.forwardRef((e,t)=>{let r=Z(e_,e.__scopeMenu),a=$(e_,e.__scopeMenu),i=eA(e_,e.__scopeMenu),u=ea(e_,e.__scopeMenu),s=n.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:c}=u,f={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),c(null)}},[d,c]),(0,v.jsx)(Q,{asChild:!0,...f,children:(0,v.jsx)(eh,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":eF(r.open),...e,ref:(0,l.t)(t,i.onTriggerChange),onClick:t=>{var n;null===(n=e.onClick)||void 0===n||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.m)(e.onPointerMove,eB(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||s.current||(u.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.m)(e.onPointerLeave,eB(e=>{var t,n;p();let o=null===(t=r.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(n=r.content)||void 0===n?void 0:n.dataset.side,l="right"===t,a=o[l?"left":"right"],i=o[l?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(l?-5:5),y:e.clientY},{x:a,y:o.top},{x:i,y:o.top},{x:i,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.m)(e.onKeyDown,t=>{let n=""!==u.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&F[a.dir].includes(t.key)){var o;r.onOpenChange(!0),null===(o=r.content)||void 0===o||o.focus(),t.preventDefault()}})})})});ek.displayName=e_;var eL="MenuSubContent",eT=n.forwardRef((e,t)=>{let r=er(eo,e.__scopeMenu),{forceMount:a=r.forceMount,...i}=e,u=Z(eo,e.__scopeMenu),s=$(eo,e.__scopeMenu),d=eA(eL,e.__scopeMenu),c=n.useRef(null),f=(0,l.s)(t,c);return(0,v.jsx)(B.Provider,{scope:e.__scopeMenu,children:(0,v.jsx)(P.C,{present:a||u.open,children:(0,v.jsx)(B.Slot,{scope:e.__scopeMenu,children:(0,v.jsx)(ed,{id:d.contentId,"aria-labelledby":d.triggerId,...i,ref:f,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null===(t=c.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>{e.target!==d.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.m)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=G[s.dir].includes(e.key);if(t&&r){var n;u.onOpenChange(!1),null===(n=d.trigger)||void 0===n||n.focus(),e.preventDefault()}})})})})})});function eF(e){return e?"open":"closed"}function eG(e){return"indeterminate"===e}function eK(e){return eG(e)?"indeterminate":e?"checked":"unchecked"}function eB(e){return t=>"mouse"===t.pointerType?e(t):void 0}eT.displayName=eL;var eW="DropdownMenu",[eV,eU]=(0,a.A)(eW,[z]),ez=z(),[eH,eX]=eV(eW),eY=e=>{let{__scopeDropdownMenu:t,children:r,dir:o,open:l,defaultOpen:a,onOpenChange:u,modal:s=!0}=e,d=ez(t),c=n.useRef(null),[f=!1,p]=(0,i.i)({prop:l,defaultProp:a,onChange:u});return(0,v.jsx)(eH,{scope:t,triggerId:(0,R.B)(),triggerRef:c,contentId:(0,R.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:s,children:(0,v.jsx)(J,{...d,open:f,onOpenChange:p,dir:o,modal:s,children:r})})};eY.displayName=eW;var eZ="DropdownMenuTrigger",eq=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...a}=e,i=eX(eZ,r),s=ez(r);return(0,v.jsx)(Q,{asChild:!0,...s,children:(0,v.jsx)(u.sG.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...a,ref:(0,l.t)(t,i.triggerRef),onPointerDown:(0,o.m)(e.onPointerDown,e=>{n||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eq.displayName=eZ;var e$=e=>{let{__scopeDropdownMenu:t,...r}=e,n=ez(t);return(0,v.jsx)(en,{...n,...r})};e$.displayName="DropdownMenuPortal";var eJ="DropdownMenuContent",eQ=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...l}=e,a=eX(eJ,r),i=ez(r),u=n.useRef(!1);return(0,v.jsx)(ei,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...l,ref:t,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!a.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eQ.displayName=eJ;var e0=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(ec,{...o,...n,ref:t})});e0.displayName="DropdownMenuGroup";var e1=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(ef,{...o,...n,ref:t})});e1.displayName="DropdownMenuLabel";var e5=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(em,{...o,...n,ref:t})});e5.displayName="DropdownMenuItem";var e6=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(eg,{...o,...n,ref:t})});e6.displayName="DropdownMenuCheckboxItem";var e8=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(eb,{...o,...n,ref:t})});e8.displayName="DropdownMenuRadioGroup";var e9=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(eE,{...o,...n,ref:t})});e9.displayName="DropdownMenuRadioItem";var e2=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(eP,{...o,...n,ref:t})});e2.displayName="DropdownMenuItemIndicator";var e7=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(eM,{...o,...n,ref:t})});e7.displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(eN,{...o,...n,ref:t})}).displayName="DropdownMenuArrow";var e4=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(ek,{...o,...n,ref:t})});e4.displayName="DropdownMenuSubTrigger";var e3=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=ez(r);return(0,v.jsx)(eT,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e3.displayName="DropdownMenuSubContent";var te=eY,tt=eq,tr=e$,tn=eQ,to=e0,tl=e1,ta=e5,ti=e6,tu=e8,ts=e9,td=e2,tc=e7,tf=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:l}=e,a=ez(t),[u=!1,s]=(0,i.i)({prop:n,defaultProp:l,onChange:o});return(0,v.jsx)(eI,{...a,open:u,onOpenChange:s,children:r})},tp=e4,tv=e3},98188:(e,t,r)=>{r.d(t,{Mz:()=>I,i3:()=>k,UC:()=>_,bL:()=>A,Bk:()=>h});var n=r(12115),o=r(96932),l=r(57205),a=r(59997),i=r(95155),u=n.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...l}=e;return(0,i.jsx)(a.sG.svg,{...l,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,i.jsx)("polygon",{points:"0,0 30,0 15,10"})})});u.displayName="Arrow";var s=r(88068),d=r(18166),c=r(41524),f=r(46611),p=r(7510),v="Popper",[m,h]=(0,d.A)(v),[g,w]=m(v),y=e=>{let{__scopePopper:t,children:r}=e,[o,l]=n.useState(null);return(0,i.jsx)(g,{scope:t,anchor:o,onAnchorChange:l,children:r})};y.displayName=v;var x="PopperAnchor",b=n.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:o,...l}=e,u=w(x,r),d=n.useRef(null),c=(0,s.s)(t,d);return n.useEffect(()=>{u.onAnchorChange((null==o?void 0:o.current)||d.current)}),o?null:(0,i.jsx)(a.sG.div,{...l,ref:c})});b.displayName=x;var C="PopperContent",[E,R]=m(C),j=n.forwardRef((e,t)=>{var r,u,d,v,m,h,g,y;let{__scopePopper:x,side:b="bottom",sideOffset:R=0,align:j="center",alignOffset:D=0,arrowPadding:P=0,avoidCollisions:M=!0,collisionBoundary:A=[],collisionPadding:I=0,sticky:_="partial",hideWhenDetached:k=!1,updatePositionStrategy:L="optimized",onPlaced:T,...F}=e,G=w(C,x),[K,B]=n.useState(null),W=(0,s.s)(t,e=>B(e)),[V,U]=n.useState(null),z=(0,p.X)(V),H=null!==(g=null==z?void 0:z.width)&&void 0!==g?g:0,X=null!==(y=null==z?void 0:z.height)&&void 0!==y?y:0,Y="number"==typeof I?I:{top:0,right:0,bottom:0,left:0,...I},Z=Array.isArray(A)?A:[A],q=Z.length>0,$={padding:Y,boundary:Z.filter(N),altBoundary:q},{refs:J,floatingStyles:Q,placement:ee,isPositioned:et,middlewareData:er}=(0,o.we)({strategy:"fixed",placement:b+("center"!==j?"-"+j:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r{let{elements:t,rects:r,availableWidth:n,availableHeight:o}=e,{width:l,height:a}=r.reference,i=t.floating.style;i.setProperty("--radix-popper-available-width","".concat(n,"px")),i.setProperty("--radix-popper-available-height","".concat(o,"px")),i.setProperty("--radix-popper-anchor-width","".concat(l,"px")),i.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),V&&(0,o.UE)({element:V,padding:P}),O({arrowWidth:H,arrowHeight:X}),k&&(0,o.jD)({strategy:"referenceHidden",...$})]}),[en,eo]=S(ee),el=(0,c.c)(T);(0,f.N)(()=>{et&&(null==el||el())},[et,el]);let ea=null===(r=er.arrow)||void 0===r?void 0:r.x,ei=null===(u=er.arrow)||void 0===u?void 0:u.y,eu=(null===(d=er.arrow)||void 0===d?void 0:d.centerOffset)!==0,[es,ed]=n.useState();return(0,f.N)(()=>{K&&ed(window.getComputedStyle(K).zIndex)},[K]),(0,i.jsx)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:et?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:es,"--radix-popper-transform-origin":[null===(v=er.transformOrigin)||void 0===v?void 0:v.x,null===(m=er.transformOrigin)||void 0===m?void 0:m.y].join(" "),...(null===(h=er.hide)||void 0===h?void 0:h.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,i.jsx)(E,{scope:x,placedSide:en,onArrowChange:U,arrowX:ea,arrowY:ei,shouldHideArrow:eu,children:(0,i.jsx)(a.sG.div,{"data-side":en,"data-align":eo,...F,ref:W,style:{...F.style,animation:et?void 0:"none"}})})})});j.displayName=C;var D="PopperArrow",P={top:"bottom",right:"left",bottom:"top",left:"right"},M=n.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,o=R(D,r),l=P[o.placedSide];return(0,i.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]: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,i.jsx)(u,{...n,ref:t,style:{...n.style,display:"block"}})})});function N(e){return null!==e}M.displayName=D;var O=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,l,a;let{placement:i,rects:u,middlewareData:s}=t,d=(null===(r=s.arrow)||void 0===r?void 0:r.centerOffset)!==0,c=d?0:e.arrowWidth,f=d?0:e.arrowHeight,[p,v]=S(i),m={start:"0%",center:"50%",end:"100%"}[v],h=(null!==(l=null===(n=s.arrow)||void 0===n?void 0:n.x)&&void 0!==l?l:0)+c/2,g=(null!==(a=null===(o=s.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,w="",y="";return"bottom"===p?(w=d?m:"".concat(h,"px"),y="".concat(-f,"px")):"top"===p?(w=d?m:"".concat(h,"px"),y="".concat(u.floating.height+f,"px")):"right"===p?(w="".concat(-f,"px"),y=d?m:"".concat(g,"px")):"left"===p&&(w="".concat(u.floating.width+f,"px"),y=d?m:"".concat(g,"px")),{data:{x:w,y}}}});function S(e){let[t,r="center"]=e.split("-");return[t,r]}var A=y,I=b,_=j,k=M},17323:(e,t,r)=>{r.d(t,{Z:()=>u});var n=r(12115),o=r(47650),l=r(59997),a=r(46611),i=r(95155),u=n.forwardRef((e,t)=>{var r,u;let{container:s,...d}=e,[c,f]=n.useState(!1);(0,a.N)(()=>f(!0),[]);let p=s||c&&(null===(u=globalThis)||void 0===u?void 0:null===(r=u.document)||void 0===r?void 0:r.body);return p?o.createPortal((0,i.jsx)(l.sG.div,{...d,ref:t}),p):null});u.displayName="Portal"},59997:(e,t,r)=>{r.d(t,{sG:()=>c,hO:()=>f});var n=r(12115),o=r(47650),l=r(88068),a=r(95155),i=n.forwardRef((e,t)=>{let{children:r,...o}=e,l=n.Children.toArray(r),i=l.find(d);if(i){let e=i.props.children,r=l.map(t=>t!==i?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(u,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,a.jsx)(u,{...o,ref:t,children:r})});i.displayName="Slot";var u=n.forwardRef((e,t)=>{let{children:r,...o}=e;if(n.isValidElement(r)){let e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(r);return n.cloneElement(r,{...function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{l(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(o,r.props),ref:t?(0,l.t)(t,e):e})}return n.Children.count(r)>1?n.Children.only(null):null});u.displayName="SlotClone";var s=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function d(e){return n.isValidElement(e)&&e.type===s}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,l=n?i:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(l,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function f(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},67357:(e,t,r)=>{r.d(t,{RG:()=>b,bL:()=>O,q7:()=>S});var n=r(12115),o=r(93610),l=r(11758),a=r(88068),i=r(18166),u=r(67668),s=r(59997),d=r(41524),c=r(1488),f=r(4256),p=r(95155),v="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,w,y]=(0,l.N)(h),[x,b]=(0,i.A)(h,[y]),[C,E]=x(h),R=n.forwardRef((e,t)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(j,{...e,ref:t})})}));R.displayName=h;var j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:l,loop:i=!1,dir:u,currentTabStopId:h,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:y,onEntryFocus:x,preventScrollOnEntryFocus:b=!1,...E}=e,R=n.useRef(null),j=(0,a.s)(t,R),D=(0,f.jH)(u),[P=null,M]=(0,c.i)({prop:h,defaultProp:g,onChange:y}),[O,S]=n.useState(!1),A=(0,d.c)(x),I=w(r),_=n.useRef(!1),[k,L]=n.useState(0);return n.useEffect(()=>{let e=R.current;if(e)return e.addEventListener(v,A),()=>e.removeEventListener(v,A)},[A]),(0,p.jsx)(C,{scope:r,orientation:l,dir:D,loop:i,currentTabStopId:P,onItemFocus:n.useCallback(e=>M(e),[M]),onItemShiftTab:n.useCallback(()=>S(!0),[]),onFocusableItemAdd:n.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>L(e=>e-1),[]),children:(0,p.jsx)(s.sG.div,{tabIndex:O||0===k?-1:0,"data-orientation":l,...E,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{_.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!_.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(v,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===P),...e].filter(Boolean).map(e=>e.ref.current),b)}}_.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>S(!1))})})}),D="RovingFocusGroupItem",P=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:l=!0,active:a=!1,tabStopId:i,...d}=e,c=(0,u.B)(),f=i||c,v=E(D,r),m=v.currentTabStopId===f,h=w(r),{onFocusableItemAdd:y,onFocusableItemRemove:x}=v;return n.useEffect(()=>{if(l)return y(),()=>x()},[l,y,x]),(0,p.jsx)(g.ItemSlot,{scope:r,id:f,focusable:l,active:a,children:(0,p.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":v.orientation,...d,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{l?v.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>v.onItemFocus(f)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){v.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return M[o]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=v.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>N(r))}})})})});P.displayName=D;var M={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var O=R,S=P},31027:(e,t,r)=>{r.d(t,{F:()=>a});var n=r(43463);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,l=n.$,a=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return l(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:a,defaultVariants:i}=t,u=Object.keys(a).map(e=>{let t=null==r?void 0:r[e],n=null==i?void 0:i[e];if(null===t)return null;let l=o(t)||o(n);return a[e][l]}),s=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return l(e,u,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...s}[t]):({...i,...s})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]); //# sourceMappingURL=8959-e01bab025d5c111e.js.map