(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[929],{17512:function(e){var t=/[\\\/\-_+.# \t"@\[\(\{&]/,n=/[\\\/\-_+.# \t"@\[\(\{&]/g;function commandScoreInner(e,a,o,c,l,u){if(u===a.length)return l===e.length?1:.99;for(var i,d,s,f=c.charAt(u),v=o.indexOf(f,l),p=0;v>=0;)(i=commandScoreInner(e,a,o,c,v+1,u+1))>p&&(v===l?i*=1:t.test(e.charAt(v-1))?(i*=.9,(s=e.slice(l,v-1).match(n))&&l>0&&(i*=Math.pow(.999,s.length))):(t.test(e.slice(l,v-1))?i*=0:i*=.3,l>0&&(i*=Math.pow(.999,v-l))),e.charAt(v)!==a.charAt(u)&&(i*=.9999)),i<.1&&o.charAt(v-1)===c.charAt(u+1)&&o.charAt(v-1)!==c.charAt(u)&&.1*(d=commandScoreInner(e,a,o,c,v+1,u+2))>i&&(i=.1*d),i>p&&(p=i),v=o.indexOf(f,v+1);return p}function commandScore(e,t){return commandScoreInner(e,t,e.toLowerCase(),t.toLowerCase(),0,0)}e.exports=commandScore},79859:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(16552);/**
 * @license lucide-react v0.299.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,a.Z)("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]])},70491:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(16552);/**
 * @license lucide-react v0.299.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,a.Z)("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},52141:function(e,t,n){"use strict";n.d(t,{fC:function(){return y},z$:function(){return S}});var a=n(51226),o=n(75623),c=n(6335),l=n(23060),u=n(65727),i=n(3870),d=n(21307),s=n(66925),f=n(16088),v=n(50371);let p="Checkbox",[m,b]=(0,l.b)(p),[h,E]=m(p),g=(0,o.forwardRef)((e,t)=>{let{__scopeCheckbox:n,name:l,checked:d,defaultChecked:s,required:f,disabled:p,value:m="on",onCheckedChange:b,...E}=e,[g,C]=(0,o.useState)(null),y=(0,c.e)(t,e=>C(e)),S=(0,o.useRef)(!1),P=!g||!!g.closest("form"),[D=!1,O]=(0,i.T)({prop:d,defaultProp:s,onChange:b}),L=(0,o.useRef)(D);return(0,o.useEffect)(()=>{let e=null==g?void 0:g.form;if(e){let reset=()=>O(L.current);return e.addEventListener("reset",reset),()=>e.removeEventListener("reset",reset)}},[g,O]),(0,o.createElement)(h,{scope:n,state:D,disabled:p},(0,o.createElement)(v.WV.button,(0,a.Z)({type:"button",role:"checkbox","aria-checked":$e698a72e93240346$var$isIndeterminate(D)?"mixed":D,"aria-required":f,"data-state":$e698a72e93240346$var$getState(D),"data-disabled":p?"":void 0,disabled:p,value:m},E,{ref:y,onKeyDown:(0,u.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,u.M)(e.onClick,e=>{O(e=>!!$e698a72e93240346$var$isIndeterminate(e)||!e),P&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})})),P&&(0,o.createElement)($e698a72e93240346$var$BubbleInput,{control:g,bubbles:!S.current,name:l,value:m,checked:D,required:f,disabled:p,style:{transform:"translateX(-100%)"}}))}),C=(0,o.forwardRef)((e,t)=>{let{__scopeCheckbox:n,forceMount:c,...l}=e,u=E("CheckboxIndicator",n);return(0,o.createElement)(f.z,{present:c||$e698a72e93240346$var$isIndeterminate(u.state)||!0===u.state},(0,o.createElement)(v.WV.span,(0,a.Z)({"data-state":$e698a72e93240346$var$getState(u.state),"data-disabled":u.disabled?"":void 0},l,{ref:t,style:{pointerEvents:"none",...e.style}})))}),$e698a72e93240346$var$BubbleInput=e=>{let{control:t,checked:n,bubbles:c=!0,...l}=e,u=(0,o.useRef)(null),i=(0,d.D)(n),f=(0,s.t)(t);return(0,o.useEffect)(()=>{let e=u.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked"),o=a.set;if(i!==n&&o){let t=new Event("click",{bubbles:c});e.indeterminate=$e698a72e93240346$var$isIndeterminate(n),o.call(e,!$e698a72e93240346$var$isIndeterminate(n)&&n),e.dispatchEvent(t)}},[i,n,c]),(0,o.createElement)("input",(0,a.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:!$e698a72e93240346$var$isIndeterminate(n)&&n},l,{tabIndex:-1,ref:u,style:{...e.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function $e698a72e93240346$var$isIndeterminate(e){return"indeterminate"===e}function $e698a72e93240346$var$getState(e){return $e698a72e93240346$var$isIndeterminate(e)?"indeterminate":e?"checked":"unchecked"}let y=g,S=C},34778:function(e,t,n){"use strict";let a;n.d(t,{VY:function(){return A},fC:function(){return $cef8881cdc69808e$export$be92b6f5f03c0fe9},xz:function(){return N}});var o=n(51226),c=n(75623),l=n(65727),u=n(23060),i=n(3870),d=n(6335),s=n(94130),f=(n(24034),n(16088)),v=n(50371),p=n(34065);let m="HoverCard",[b,h]=(0,u.b)(m,[s.D7]),E=(0,s.D7)(),[g,C]=b(m),y=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,...a}=e,u=C("HoverCardTrigger",n),i=E(n);return(0,c.createElement)(s.ee,(0,o.Z)({asChild:!0},i),(0,c.createElement)(v.WV.a,(0,o.Z)({"data-state":u.open?"open":"closed"},a,{ref:t,onPointerEnter:(0,l.M)(e.onPointerEnter,$cef8881cdc69808e$var$excludeTouch(u.onOpen)),onPointerLeave:(0,l.M)(e.onPointerLeave,$cef8881cdc69808e$var$excludeTouch(u.onClose)),onFocus:(0,l.M)(e.onFocus,u.onOpen),onBlur:(0,l.M)(e.onBlur,u.onClose),onTouchStart:(0,l.M)(e.onTouchStart,e=>e.preventDefault())})))}),[S,P]=b("HoverCardPortal",{forceMount:void 0}),D="HoverCardContent",O=(0,c.forwardRef)((e,t)=>{let n=P(D,e.__scopeHoverCard),{forceMount:a=n.forceMount,...u}=e,i=C(D,e.__scopeHoverCard);return(0,c.createElement)(f.z,{present:a||i.open},(0,c.createElement)(L,(0,o.Z)({"data-state":i.open?"open":"closed"},u,{onPointerEnter:(0,l.M)(e.onPointerEnter,$cef8881cdc69808e$var$excludeTouch(i.onOpen)),onPointerLeave:(0,l.M)(e.onPointerLeave,$cef8881cdc69808e$var$excludeTouch(i.onClose)),ref:t})))}),L=(0,c.forwardRef)((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:u,onPointerDownOutside:i,onFocusOutside:f,onInteractOutside:v,...m}=e,b=C(D,n),h=E(n),g=(0,c.useRef)(null),y=(0,d.e)(t,g),[S,P]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{if(S){let e=document.body;return a=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=a,e.style.webkitUserSelect=a}}},[S]),(0,c.useEffect)(()=>{if(g.current){let handlePointerUp=()=>{P(!1),b.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;let t=(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!=="";t&&(b.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",handlePointerUp),()=>{document.removeEventListener("pointerup",handlePointerUp),b.hasSelectionRef.current=!1,b.isPointerDownOnContentRef.current=!1}}},[b.isPointerDownOnContentRef,b.hasSelectionRef]),(0,c.useEffect)(()=>{if(g.current){let e=$cef8881cdc69808e$var$getTabbableNodes(g.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,c.createElement)(p.XB,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:v,onEscapeKeyDown:u,onPointerDownOutside:i,onFocusOutside:(0,l.M)(f,e=>{e.preventDefault()}),onDismiss:b.onDismiss},(0,c.createElement)(s.VY,(0,o.Z)({},h,m,{onPointerDown:(0,l.M)(m.onPointerDown,e=>{e.currentTarget.contains(e.target)&&P(!0),b.hasSelectionRef.current=!1,b.isPointerDownOnContentRef.current=!0}),ref:y,style:{...m.style,userSelect:S?"text":void 0,WebkitUserSelect:S?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})))});function $cef8881cdc69808e$var$excludeTouch(e){return t=>"touch"===t.pointerType?void 0:e()}function $cef8881cdc69808e$var$getTabbableNodes(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}let $cef8881cdc69808e$export$be92b6f5f03c0fe9=e=>{let{__scopeHoverCard:t,children:n,open:a,defaultOpen:o,onOpenChange:l,openDelay:u=700,closeDelay:d=300}=e,f=E(t),v=(0,c.useRef)(0),p=(0,c.useRef)(0),m=(0,c.useRef)(!1),b=(0,c.useRef)(!1),[h=!1,C]=(0,i.T)({prop:a,defaultProp:o,onChange:l}),y=(0,c.useCallback)(()=>{clearTimeout(p.current),v.current=window.setTimeout(()=>C(!0),u)},[u,C]),S=(0,c.useCallback)(()=>{clearTimeout(v.current),m.current||b.current||(p.current=window.setTimeout(()=>C(!1),d))},[d,C]),P=(0,c.useCallback)(()=>C(!1),[C]);return(0,c.useEffect)(()=>()=>{clearTimeout(v.current),clearTimeout(p.current)},[]),(0,c.createElement)(g,{scope:t,open:h,onOpenChange:C,onOpen:y,onClose:S,onDismiss:P,hasSelectionRef:m,isPointerDownOnContentRef:b},(0,c.createElement)(s.fC,f,n))},N=y,A=O},10212:function(e,t,n){"use strict";n.d(t,{f:function(){return d}});var a=n(51226),o=n(75623),c=n(50371);let l="horizontal",u=["horizontal","vertical"],i=(0,o.forwardRef)((e,t)=>{let{decorative:n,orientation:u=l,...i}=e,d=$89eedd556c436f6a$var$isValidOrientation(u)?u:l;return(0,o.createElement)(c.WV.div,(0,a.Z)({"data-orientation":d},n?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},i,{ref:t}))});function $89eedd556c436f6a$var$getInvalidOrientationError(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
  - horizontal
  - vertical

Defaulting to \`${l}\`.`}function $89eedd556c436f6a$var$isValidOrientation(e){return u.includes(e)}i.propTypes={orientation(e,t,n){let a=e[t],o=String(a);return a&&!$89eedd556c436f6a$var$isValidOrientation(a)?Error($89eedd556c436f6a$var$getInvalidOrientationError(o,n)):null}};let d=i},11626:function(e,t,n){"use strict";n.d(t,{bU:function(){return y},fC:function(){return C}});var a=n(51226),o=n(75623),c=n(65727),l=n(6335),u=n(23060),i=n(3870),d=n(21307),s=n(66925),f=n(50371);let v="Switch",[p,m]=(0,u.b)(v),[b,h]=p(v),E=(0,o.forwardRef)((e,t)=>{let{__scopeSwitch:n,name:u,checked:d,defaultChecked:s,required:v,disabled:p,value:m="on",onCheckedChange:h,...E}=e,[g,C]=(0,o.useState)(null),y=(0,l.e)(t,e=>C(e)),S=(0,o.useRef)(!1),P=!g||!!g.closest("form"),[D=!1,O]=(0,i.T)({prop:d,defaultProp:s,onChange:h});return(0,o.createElement)(b,{scope:n,checked:D,disabled:p},(0,o.createElement)(f.WV.button,(0,a.Z)({type:"button",role:"switch","aria-checked":D,"aria-required":v,"data-state":$6be4966fd9bbc698$var$getState(D),"data-disabled":p?"":void 0,disabled:p,value:m},E,{ref:y,onClick:(0,c.M)(e.onClick,e=>{O(e=>!e),P&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})})),P&&(0,o.createElement)($6be4966fd9bbc698$var$BubbleInput,{control:g,bubbles:!S.current,name:u,value:m,checked:D,required:v,disabled:p,style:{transform:"translateX(-100%)"}}))}),g=(0,o.forwardRef)((e,t)=>{let{__scopeSwitch:n,...c}=e,l=h("SwitchThumb",n);return(0,o.createElement)(f.WV.span,(0,a.Z)({"data-state":$6be4966fd9bbc698$var$getState(l.checked),"data-disabled":l.disabled?"":void 0},c,{ref:t}))}),$6be4966fd9bbc698$var$BubbleInput=e=>{let{control:t,checked:n,bubbles:c=!0,...l}=e,u=(0,o.useRef)(null),i=(0,d.D)(n),f=(0,s.t)(t);return(0,o.useEffect)(()=>{let e=u.current,t=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(t,"checked"),o=a.set;if(i!==n&&o){let t=new Event("click",{bubbles:c});o.call(e,n),e.dispatchEvent(t)}},[i,n,c]),(0,o.createElement)("input",(0,a.Z)({type:"checkbox","aria-hidden":!0,defaultChecked:n},l,{tabIndex:-1,ref:u,style:{...e.style,...f,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function $6be4966fd9bbc698$var$getState(e){return e?"checked":"unchecked"}let C=E,y=g},1118:function(e,t,n){"use strict";n.d(t,{f:function(){return d}});var a=n(51226),o=n(75623),c=n(65727),l=n(3870),u=n(50371);let i=(0,o.forwardRef)((e,t)=>{let{pressed:n,defaultPressed:i=!1,onPressedChange:d,...s}=e,[f=!1,v]=(0,l.T)({prop:n,onChange:d,defaultProp:i});return(0,o.createElement)(u.WV.button,(0,a.Z)({type:"button","aria-pressed":f,"data-state":f?"on":"off","data-disabled":e.disabled?"":void 0},s,{ref:t,onClick:(0,c.M)(e.onClick,()=>{e.disabled||v(!f)})}))}),d=i},21307:function(e,t,n){"use strict";n.d(t,{D:function(){return $010c2913dbd2fe3d$export$5cae361ad82dce8b}});var a=n(75623);function $010c2913dbd2fe3d$export$5cae361ad82dce8b(e){let t=(0,a.useRef)({value:e,previous:e});return(0,a.useMemo)(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},24643:function(e,t,n){"use strict";let a;n.d(t,{mY:function(){return eB}});var o=n(51226),c=n(75623),l=n.t(c,2);function $e42e1063c40fb3ef$export$b9ecd428b558ff10(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(null==e||e(a),!1===n||!a.defaultPrevented)return null==t?void 0:t(a)}}function $6ed0406888f73fc4$var$setRef(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function $6ed0406888f73fc4$export$43e446d32b3d21af(...e){return t=>e.forEach(e=>$6ed0406888f73fc4$var$setRef(e,t))}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...e){return(0,c.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...e),e)}function $c512c27ab02ef895$export$fd42f52fd3ae1109(e,t){let n=(0,c.createContext)(t);function Provider(e){let{children:t,...a}=e,o=(0,c.useMemo)(()=>a,Object.values(a));return(0,c.createElement)(n.Provider,{value:o},t)}function useContext(a){let o=(0,c.useContext)(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${a}\` must be used within \`${e}\``)}return Provider.displayName=e+"Provider",[Provider,useContext]}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(e,t=[]){let n=[];function $c512c27ab02ef895$export$fd42f52fd3ae1109(t,a){let o=(0,c.createContext)(a),l=n.length;function Provider(t){let{scope:n,children:a,...u}=t,i=(null==n?void 0:n[e][l])||o,d=(0,c.useMemo)(()=>u,Object.values(u));return(0,c.createElement)(i.Provider,{value:d},a)}function useContext(n,u){let i=(null==u?void 0:u[e][l])||o,d=(0,c.useContext)(i);if(d)return d;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}return n=[...n,a],Provider.displayName=t+"Provider",[Provider,useContext]}let createScope=()=>{let t=n.map(e=>(0,c.createContext)(e));return function(n){let a=(null==n?void 0:n[e])||t;return(0,c.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:a}}),[n,a])}};return createScope.scopeName=e,[$c512c27ab02ef895$export$fd42f52fd3ae1109,$c512c27ab02ef895$var$composeContextScopes(createScope,...t)]}function $c512c27ab02ef895$var$composeContextScopes(...e){let t=e[0];if(1===e.length)return t;let createScope1=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let a=n.reduce((t,{useScope:n,scopeName:a})=>{let o=n(e),c=o[`__scope${a}`];return{...t,...c}},{});return(0,c.useMemo)(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return createScope1.scopeName=t.scopeName,createScope1}let u=(null==globalThis?void 0:globalThis.document)?c.useLayoutEffect:()=>{},i=l["useId".toString()]||(()=>void 0),d=0;function $1746a345f3d73bb7$export$f680877a34711e37(e){let[t,n]=c.useState(i());return u(()=>{e||n(e=>null!=e?e:String(d++))},[e]),e||(t?`radix-${t}`:"")}function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(e){let t=(0,c.useRef)(e);return(0,c.useEffect)(()=>{t.current=e}),(0,c.useMemo)(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,o]=$71cd76cc60e0454e$var$useUncontrolledState({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:a,i=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(n),d=(0,c.useCallback)(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&i(n)}else o(t)},[l,e,o,i]);return[u,d]}function $71cd76cc60e0454e$var$useUncontrolledState({defaultProp:e,onChange:t}){let n=(0,c.useState)(e),[a]=n,o=(0,c.useRef)(a),l=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(t);return(0,c.useEffect)(()=>{o.current!==a&&(l(a),o.current=a)},[a,o,l]),n}var s=n(19238);let f=(0,c.forwardRef)((e,t)=>{let{children:n,...a}=e,l=c.Children.toArray(n),u=l.find($5e63c961fc1ce211$var$isSlottable);if(u){let e=u.props.children,n=l.map(t=>t!==u?t:c.Children.count(e)>1?c.Children.only(null):(0,c.isValidElement)(e)?e.props.children:null);return(0,c.createElement)(v,(0,o.Z)({},a,{ref:t}),(0,c.isValidElement)(e)?(0,c.cloneElement)(e,void 0,n):null)}return(0,c.createElement)(v,(0,o.Z)({},a,{ref:t}),n)});f.displayName="Slot";let v=(0,c.forwardRef)((e,t)=>{let{children:n,...a}=e;return(0,c.isValidElement)(n)?(0,c.cloneElement)(n,{...$5e63c961fc1ce211$var$mergeProps(a,n.props),ref:$6ed0406888f73fc4$export$43e446d32b3d21af(t,n.ref)}):c.Children.count(n)>1?c.Children.only(null):null});v.displayName="SlotClone";let $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:e})=>(0,c.createElement)(c.Fragment,null,e);function $5e63c961fc1ce211$var$isSlottable(e){return(0,c.isValidElement)(e)&&e.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}function $5e63c961fc1ce211$var$mergeProps(e,t){let n={...t};for(let a in t){let o=e[a],c=t[a],l=/^on[A-Z]/.test(a);l?n[a]=(...e)=>{null==c||c(...e),null==o||o(...e)}:"style"===a?n[a]={...o,...c}:"className"===a&&(n[a]=[o,c].filter(Boolean).join(" "))}return{...e,...n}}let p=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=(0,c.forwardRef)((e,n)=>{let{asChild:a,...l}=e,u=a?f:t;return(0,c.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,c.createElement)(u,(0,o.Z)({},l,{ref:n}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(e,t){e&&(0,s.flushSync)(()=>e.dispatchEvent(t))}function $addc16e1bbe58fd0$export$3a72a57244d6e765(e){let t=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(e);(0,c.useEffect)(()=>{let handleKeyDown=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",handleKeyDown),()=>document.removeEventListener("keydown",handleKeyDown)},[t])}let m="dismissableLayer.update",b=(0,c.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=(0,c.forwardRef)((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:i,onInteractOutside:d,onDismiss:s,...f}=e,v=(0,c.useContext)(b),[h,E]=(0,c.useState)(null),[,g]=(0,c.useState)({}),C=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(t,e=>E(e)),y=Array.from(v.layers),[S]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),P=y.indexOf(S),D=h?y.indexOf(h):-1,O=v.layersWithOutsidePointerEventsDisabled.size>0,L=D>=P,N=$5cb92bef7577960e$var$usePointerDownOutside(e=>{let t=e.target,n=[...v.branches].some(e=>e.contains(t));!L||n||(null==u||u(e),null==d||d(e),e.defaultPrevented||null==s||s())}),A=$5cb92bef7577960e$var$useFocusOutside(e=>{let t=e.target,n=[...v.branches].some(e=>e.contains(t));n||(null==i||i(e),null==d||d(e),e.defaultPrevented||null==s||s())});return $addc16e1bbe58fd0$export$3a72a57244d6e765(e=>{let t=D===v.layers.size-1;t&&(null==l||l(e),!e.defaultPrevented&&s&&(e.preventDefault(),s()))}),(0,c.useEffect)(()=>{if(h)return n&&(0===v.layersWithOutsidePointerEventsDisabled.size&&(a=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(h)),v.layers.add(h),$5cb92bef7577960e$var$dispatchUpdate(),()=>{n&&1===v.layersWithOutsidePointerEventsDisabled.size&&(document.body.style.pointerEvents=a)}},[h,n,v]),(0,c.useEffect)(()=>()=>{h&&(v.layers.delete(h),v.layersWithOutsidePointerEventsDisabled.delete(h),$5cb92bef7577960e$var$dispatchUpdate())},[h,v]),(0,c.useEffect)(()=>{let handleUpdate=()=>g({});return document.addEventListener(m,handleUpdate),()=>document.removeEventListener(m,handleUpdate)},[]),(0,c.createElement)(p.div,(0,o.Z)({},f,{ref:C,style:{pointerEvents:O?L?"auto":"none":void 0,...e.style},onFocusCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onFocusCapture,A.onFocusCapture),onBlurCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onPointerDownCapture,N.onPointerDownCapture)}))});function $5cb92bef7577960e$var$usePointerDownOutside(e){let t=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(e),n=(0,c.useRef)(!1),a=(0,c.useRef)(()=>{});return(0,c.useEffect)(()=>{let handlePointerDown=e=>{if(e.target&&!n.current){let n={originalEvent:e};function handleAndDispatchPointerDownOutsideEvent(){$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",t,n,{discrete:!0})}"touch"===e.pointerType?(document.removeEventListener("click",a.current),a.current=handleAndDispatchPointerDownOutsideEvent,document.addEventListener("click",a.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent()}n.current=!1},e=window.setTimeout(()=>{document.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(e),document.removeEventListener("pointerdown",handlePointerDown),document.removeEventListener("click",a.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}function $5cb92bef7577960e$var$useFocusOutside(e){let t=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(e),n=(0,c.useRef)(!1);return(0,c.useEffect)(()=>{let handleFocus=e=>{e.target&&!n.current&&$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.focusOutside",t,{originalEvent:e},{discrete:!1})};return document.addEventListener("focusin",handleFocus),()=>document.removeEventListener("focusin",handleFocus)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function $5cb92bef7577960e$var$dispatchUpdate(){let e=new CustomEvent(m);document.dispatchEvent(e)}function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(e,t,n,{discrete:a}){let o=n.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),a?$8927f6f2acc4f386$export$6d1a0317bde7de7f(o,c):o.dispatchEvent(c)}let E="focusScope.autoFocusOnMount",g="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},y=(0,c.forwardRef)((e,t)=>{let{loop:n=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...i}=e,[d,s]=(0,c.useState)(null),f=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(l),v=$b1b2314f5f9a1d84$export$25bec8c6f54ee79a(u),m=(0,c.useRef)(null),b=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(t,e=>s(e)),h=(0,c.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,c.useEffect)(()=>{if(a){function handleFocusIn(e){if(h.paused||!d)return;let t=e.target;d.contains(t)?m.current=t:$d3863c46a17e8a28$var$focus(m.current,{select:!0})}function handleFocusOut(e){h.paused||!d||d.contains(e.relatedTarget)||$d3863c46a17e8a28$var$focus(m.current,{select:!0})}return document.addEventListener("focusin",handleFocusIn),document.addEventListener("focusout",handleFocusOut),()=>{document.removeEventListener("focusin",handleFocusIn),document.removeEventListener("focusout",handleFocusOut)}}},[a,d,h.paused]),(0,c.useEffect)(()=>{if(d){S.add(h);let e=document.activeElement,t=d.contains(e);if(!t){let t=new CustomEvent(E,C);d.addEventListener(E,f),d.dispatchEvent(t),t.defaultPrevented||($d3863c46a17e8a28$var$focusFirst($d3863c46a17e8a28$var$removeLinks($d3863c46a17e8a28$var$getTabbableCandidates(d)),{select:!0}),document.activeElement===e&&$d3863c46a17e8a28$var$focus(d))}return()=>{d.removeEventListener(E,f),setTimeout(()=>{let t=new CustomEvent(g,C);d.addEventListener(g,v),d.dispatchEvent(t),t.defaultPrevented||$d3863c46a17e8a28$var$focus(null!=e?e:document.body,{select:!0}),d.removeEventListener(g,v),S.remove(h)},0)}}},[d,f,v,h]);let y=(0,c.useCallback)(e=>{if(!n&&!a||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[a,c]=$d3863c46a17e8a28$var$getTabbableEdges(t),l=a&&c;l?e.shiftKey||o!==c?e.shiftKey&&o===a&&(e.preventDefault(),n&&$d3863c46a17e8a28$var$focus(c,{select:!0})):(e.preventDefault(),n&&$d3863c46a17e8a28$var$focus(a,{select:!0})):o===t&&e.preventDefault()}},[n,a,h.paused]);return(0,c.createElement)(p.div,(0,o.Z)({tabIndex:-1},i,{ref:b,onKeyDown:y}))});function $d3863c46a17e8a28$var$focusFirst(e,{select:t=!1}={}){let n=document.activeElement;for(let a of e)if($d3863c46a17e8a28$var$focus(a,{select:t}),document.activeElement!==n)return}function $d3863c46a17e8a28$var$getTabbableEdges(e){let t=$d3863c46a17e8a28$var$getTabbableCandidates(e),n=$d3863c46a17e8a28$var$findVisible(t,e),a=$d3863c46a17e8a28$var$findVisible(t.reverse(),e);return[n,a]}function $d3863c46a17e8a28$var$getTabbableCandidates(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 $d3863c46a17e8a28$var$findVisible(e,t){for(let n of e)if(!$d3863c46a17e8a28$var$isHidden(n,{upTo:t}))return n}function $d3863c46a17e8a28$var$isHidden(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function $d3863c46a17e8a28$var$isSelectableInput(e){return e instanceof HTMLInputElement&&"select"in e}function $d3863c46a17e8a28$var$focus(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$d3863c46a17e8a28$var$isSelectableInput(e)&&t&&e.select()}}let S=$d3863c46a17e8a28$var$createFocusScopesStack();function $d3863c46a17e8a28$var$createFocusScopesStack(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=$d3863c46a17e8a28$var$arrayRemove(e,t)).unshift(t)},remove(t){var n;null===(n=(e=$d3863c46a17e8a28$var$arrayRemove(e,t))[0])||void 0===n||n.resume()}}}function $d3863c46a17e8a28$var$arrayRemove(e,t){let n=[...e],a=n.indexOf(t);return -1!==a&&n.splice(a,1),n}function $d3863c46a17e8a28$var$removeLinks(e){return e.filter(e=>"A"!==e.tagName)}let P=(0,c.forwardRef)((e,t)=>{var n;let{container:a=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...l}=e;return a?s.createPortal((0,c.createElement)(p.div,(0,o.Z)({},l,{ref:t})),a):null});function $fe963b355347cc68$export$3e6543de14f8614f(e,t){return(0,c.useReducer)((e,n)=>{let a=t[e][n];return null!=a?a:e},e)}let $921a889cee6df7e8$export$99c2b779aa4e8b8b=e=>{let{present:t,children:n}=e,a=$921a889cee6df7e8$var$usePresence(t),o="function"==typeof n?n({present:a.isPresent}):c.Children.only(n),l=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(a.ref,o.ref),u="function"==typeof n;return u||a.isPresent?(0,c.cloneElement)(o,{ref:l}):null};function $921a889cee6df7e8$var$usePresence(e){let[t,n]=(0,c.useState)(),a=(0,c.useRef)({}),o=(0,c.useRef)(e),l=(0,c.useRef)("none"),i=e?"mounted":"unmounted",[d,f]=$fe963b355347cc68$export$3e6543de14f8614f(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,c.useEffect)(()=>{let e=$921a889cee6df7e8$var$getAnimationName(a.current);l.current="mounted"===d?e:"none"},[d]),u(()=>{let t=a.current,n=o.current,c=n!==e;if(c){let a=l.current,c=$921a889cee6df7e8$var$getAnimationName(t);e?f("MOUNT"):"none"===c||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&a!==c?f("ANIMATION_OUT"):f("UNMOUNT"),o.current=e}},[e,f]),u(()=>{if(t){let handleAnimationEnd=e=>{let n=$921a889cee6df7e8$var$getAnimationName(a.current),o=n.includes(e.animationName);e.target===t&&o&&(0,s.flushSync)(()=>f("ANIMATION_END"))},handleAnimationStart=e=>{e.target===t&&(l.current=$921a889cee6df7e8$var$getAnimationName(a.current))};return t.addEventListener("animationstart",handleAnimationStart),t.addEventListener("animationcancel",handleAnimationEnd),t.addEventListener("animationend",handleAnimationEnd),()=>{t.removeEventListener("animationstart",handleAnimationStart),t.removeEventListener("animationcancel",handleAnimationEnd),t.removeEventListener("animationend",handleAnimationEnd)}}f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,c.useCallback)(e=>{e&&(a.current=getComputedStyle(e)),n(e)},[])}}function $921a889cee6df7e8$var$getAnimationName(e){return(null==e?void 0:e.animationName)||"none"}$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence";let D=0;function $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c(){(0,c.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:$3db38b7d1fb3fe6a$var$createFocusGuard()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:$3db38b7d1fb3fe6a$var$createFocusGuard()),D++,()=>{1===D&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),D--}},[])}function $3db38b7d1fb3fe6a$var$createFocusGuard(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var O=n(26211),L=n(15233),N=n(74684),A=(0,n(59899)._)(),nothing=function(){},F=c.forwardRef(function(e,t){var n=c.useRef(null),a=c.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),o=a[0],l=a[1],u=e.forwardProps,i=e.children,d=e.className,s=e.removeScrollBar,f=e.enabled,v=e.shards,p=e.sideCar,m=e.noIsolation,b=e.inert,h=e.allowPinchZoom,E=e.as,g=void 0===E?"div":E,C=(0,O._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=(0,N.q)([n,t]),S=(0,O.pi)((0,O.pi)({},C),o);return c.createElement(c.Fragment,null,f&&c.createElement(p,{sideCar:A,removeScrollBar:s,shards:v,noIsolation:m,inert:b,setCallbacks:l,allowPinchZoom:!!h,lockRef:n}),u?c.cloneElement(c.Children.only(i),(0,O.pi)((0,O.pi)({},S),{ref:y})):c.createElement(g,(0,O.pi)({},S,{className:d,ref:y}),i))});F.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},F.classNames={fullWidth:L.zi,zeroRight:L.pF};var M=n(81252),Z=n(13162),K=n(93524),z=!1;if("undefined"!=typeof window)try{var ee=Object.defineProperty({},"passive",{get:function(){return z=!0,!0}});window.addEventListener("test",ee,ee),window.removeEventListener("test",ee,ee)}catch(e){z=!1}var et=!!z&&{passive:!1},elementCouldBeVScrolled=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)},elementCouldBeHScrolled=function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)},locationCouldBeScrolled=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),elementCouldBeScrolled(e,n)){var a=getScrollVariables(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},elementCouldBeScrolled=function(e,t){return"v"===e?elementCouldBeVScrolled(t):elementCouldBeHScrolled(t)},getScrollVariables=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},handleScroll=function(e,t,n,a,o){var c,l=(c=window.getComputedStyle(t).direction,"h"===e&&"rtl"===c?-1:1),u=l*a,i=n.target,d=t.contains(i),s=!1,f=u>0,v=0,p=0;do{var m=getScrollVariables(e,i),b=m[0],h=m[1]-m[2]-l*b;(b||h)&&elementCouldBeScrolled(e,i)&&(v+=h,p+=b),i=i.parentNode}while(!d&&i!==document.body||d&&(t.contains(i)||t===i));return f&&(o&&0===v||!o&&u>v)?s=!0:!f&&(o&&0===p||!o&&-u>p)&&(s=!0),s},getTouchXY=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},getDeltaXY=function(e){return[e.deltaX,e.deltaY]},extractRef=function(e){return e&&"current"in e?e.current:e},er=0,en=[];function RemoveScrollSideCar(e){var t=c.useRef([]),n=c.useRef([0,0]),a=c.useRef(),o=c.useState(er++)[0],l=c.useState(function(){return(0,K.Ws)()})[0],u=c.useRef(e);c.useEffect(function(){u.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,O.ev)([e.lockRef.current],(e.shards||[]).map(extractRef),!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 i=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var o,c=getTouchXY(e),l=n.current,i="deltaX"in e?e.deltaX:l[0]-c[0],d="deltaY"in e?e.deltaY:l[1]-c[1],s=e.target,f=Math.abs(i)>Math.abs(d)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var v=locationCouldBeScrolled(f,s);if(!v)return!0;if(v?o=f:(o="v"===f?"h":"v",v=locationCouldBeScrolled(f,s)),!v)return!1;if(!a.current&&"changedTouches"in e&&(i||d)&&(a.current=o),!o)return!0;var p=a.current||o;return handleScroll(p,t,e,"h"===p?i:d,!0)},[]),d=c.useCallback(function(e){if(en.length&&en[en.length-1]===l){var n="deltaY"in e?getDeltaXY(e):getTouchXY(e),a=t.current.filter(function(t){var a;return t.name===e.type&&t.target===e.target&&(a=t.delta)[0]===n[0]&&a[1]===n[1]})[0];if(a&&a.should){e.preventDefault();return}if(!a){var o=(u.current.shards||[]).map(extractRef).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?i(e,o[0]):!u.current.noIsolation)&&e.preventDefault()}}},[]),s=c.useCallback(function(e,n,a,o){var c={name:e,delta:n,target:a,should:o};t.current.push(c),setTimeout(function(){t.current=t.current.filter(function(e){return e!==c})},1)},[]),f=c.useCallback(function(e){n.current=getTouchXY(e),a.current=void 0},[]),v=c.useCallback(function(t){s(t.type,getDeltaXY(t),t.target,i(t,e.lockRef.current))},[]),p=c.useCallback(function(t){s(t.type,getTouchXY(t),t.target,i(t,e.lockRef.current))},[]);c.useEffect(function(){return en.push(l),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:p}),document.addEventListener("wheel",d,et),document.addEventListener("touchmove",d,et),document.addEventListener("touchstart",f,et),function(){en=en.filter(function(e){return e!==l}),document.removeEventListener("wheel",d,et),document.removeEventListener("touchmove",d,et),document.removeEventListener("touchstart",f,et)}},[]);var m=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(l,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?c.createElement(Z.jp,{gapMode:"margin"}):null)}var ea=(0,M.L)(A,RemoveScrollSideCar),eo=c.forwardRef(function(e,t){return c.createElement(F,(0,O.pi)({},e,{ref:t,sideCar:ea}))});eo.classNames=F.classNames;var ec=n(47847);let el="Dialog",[eu,ei]=$c512c27ab02ef895$export$50c7b4e9d9f19c1(el),[ed,es]=eu(el),ef="DialogPortal",[ev,ep]=eu(ef,{forceMount:void 0}),e$="DialogOverlay",em=(0,c.forwardRef)((e,t)=>{let n=ep(e$,e.__scopeDialog),{forceMount:a=n.forceMount,...l}=e,u=es(e$,e.__scopeDialog);return u.modal?(0,c.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:a||u.open},(0,c.createElement)(eb,(0,o.Z)({},l,{ref:t}))):null}),eb=(0,c.forwardRef)((e,t)=>{let{__scopeDialog:n,...a}=e,l=es(e$,n);return(0,c.createElement)(eo,{as:f,allowPinchZoom:!0,shards:[l.contentRef]},(0,c.createElement)(p.div,(0,o.Z)({"data-state":$5d3850c4d0b4e6c7$var$getState(l.open)},a,{ref:t,style:{pointerEvents:"auto",...a.style}})))}),eh="DialogContent",eE=(0,c.forwardRef)((e,t)=>{let n=ep(eh,e.__scopeDialog),{forceMount:a=n.forceMount,...l}=e,u=es(eh,e.__scopeDialog);return(0,c.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:a||u.open},u.modal?(0,c.createElement)(eg,(0,o.Z)({},l,{ref:t})):(0,c.createElement)(eC,(0,o.Z)({},l,{ref:t})))}),eg=(0,c.forwardRef)((e,t)=>{let n=es(eh,e.__scopeDialog),a=(0,c.useRef)(null),l=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(t,n.contentRef,a);return(0,c.useEffect)(()=>{let e=a.current;if(e)return(0,ec.Ry)(e)},[]),(0,c.createElement)(ew,(0,o.Z)({},e,{ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,a=2===t.button||n;a&&e.preventDefault()}),onFocusOutside:$e42e1063c40fb3ef$export$b9ecd428b558ff10(e.onFocusOutside,e=>e.preventDefault())}))}),eC=(0,c.forwardRef)((e,t)=>{let n=es(eh,e.__scopeDialog),a=(0,c.useRef)(!1);return(0,c.createElement)(ew,(0,o.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,c;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(a.current||null===(c=n.triggerRef.current)||void 0===c||c.focus(),t.preventDefault()),a.current=!1},onInteractOutside:t=>{var o,c;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(a.current=!0);let l=t.target,u=null===(c=n.triggerRef.current)||void 0===c?void 0:c.contains(l);u&&t.preventDefault()}}))}),ew=(0,c.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:u,...i}=e,d=es(eh,n),s=(0,c.useRef)(null),f=$6ed0406888f73fc4$export$c7b2cbe3552a0d05(t,s);return $3db38b7d1fb3fe6a$export$b7ece24a22aeda8c(),(0,c.createElement)(c.Fragment,null,(0,c.createElement)(y,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:u},(0,c.createElement)(h,(0,o.Z)({role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":$5d3850c4d0b4e6c7$var$getState(d.open)},i,{ref:f,onDismiss:()=>d.onOpenChange(!1)}))),!1)});function $5d3850c4d0b4e6c7$var$getState(e){return e?"open":"closed"}let[ey,eS]=$c512c27ab02ef895$export$fd42f52fd3ae1109("DialogTitleWarning",{contentName:eh,titleName:"DialogTitle",docsSlug:"dialog"}),$5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9=e=>{let{__scopeDialog:t,children:n,open:a,defaultOpen:o,onOpenChange:l,modal:u=!0}=e,i=(0,c.useRef)(null),d=(0,c.useRef)(null),[s=!1,f]=$71cd76cc60e0454e$export$6f32135080cb4c3({prop:a,defaultProp:o,onChange:l});return(0,c.createElement)(ed,{scope:t,triggerRef:i,contentRef:d,contentId:$1746a345f3d73bb7$export$f680877a34711e37(),titleId:$1746a345f3d73bb7$export$f680877a34711e37(),descriptionId:$1746a345f3d73bb7$export$f680877a34711e37(),open:s,onOpenChange:f,onOpenToggle:(0,c.useCallback)(()=>f(e=>!e),[f]),modal:u},n)},$5d3850c4d0b4e6c7$export$602eac185826482c=e=>{let{__scopeDialog:t,forceMount:n,children:a,container:o}=e,l=es(ef,t);return(0,c.createElement)(ev,{scope:t,forceMount:n},c.Children.map(a,e=>(0,c.createElement)($921a889cee6df7e8$export$99c2b779aa4e8b8b,{present:n||l.open},(0,c.createElement)(P,{asChild:!0,container:o},e))))};var ex=n(17512),ek='[cmdk-group=""]',eR='[cmdk-group-items=""]',eP='[cmdk-item=""]',eD=`${eP}:not([aria-disabled="true"])`,eI="cmdk-item-select",eO="data-value",fe=(e,t)=>ex(e,t),eT=c.createContext(void 0),k=()=>c.useContext(eT),eL=c.createContext(void 0),U=()=>c.useContext(eL),eN=c.createContext(void 0),eA=c.forwardRef((e,t)=>{let n=c.useRef(null),a=x(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),o=x(()=>new Set),l=x(()=>new Map),u=x(()=>new Map),i=x(()=>new Set),d=ae(e),{label:s,children:f,value:v,onValueChange:p,filter:m,shouldFilter:b,...h}=e,E=c.useId(),g=c.useId(),C=c.useId(),y=ye();eW(()=>{if(void 0!==v){let e=v.trim().toLowerCase();a.current.value=e,y(6,W),S.emit()}},[v]);let S=c.useMemo(()=>({subscribe:e=>(i.current.add(e),()=>i.current.delete(e)),snapshot:()=>a.current,setState:(e,t,n)=>{var o,c,l;if(!Object.is(a.current[e],t)){if(a.current[e]=t,"search"===e)j(),G(),y(1,V);else if("value"===e){if((null==(o=d.current)?void 0:o.value)!==void 0){null==(l=(c=d.current).onValueChange)||l.call(c,t);return}n||y(5,W)}S.emit()}},emit:()=>{i.current.forEach(e=>e())}}),[]),P=c.useMemo(()=>({value:(e,t)=>{t!==u.current.get(e)&&(u.current.set(e,t),a.current.filtered.items.set(e,B(t)),y(2,()=>{G(),S.emit()}))},item:(e,t)=>(o.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),y(3,()=>{j(),G(),a.current.value||V(),S.emit()}),()=>{u.current.delete(e),o.current.delete(e),a.current.filtered.items.delete(e),y(4,()=>{j(),V(),S.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{u.current.delete(e),l.current.delete(e)}),filter:()=>d.current.shouldFilter,label:s||e["aria-label"],listId:E,inputId:C,labelId:g}),[]);function B(e){var t;let n=(null==(t=d.current)?void 0:t.filter)??fe;return e?n(e,a.current.search):0}function G(){if(!n.current||!a.current.search||!1===d.current.shouldFilter)return;let e=a.current.filtered.items,t=[];a.current.filtered.groups.forEach(n=>{let a=l.current.get(n),o=0;a.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([n,o])});let o=n.current.querySelector('[cmdk-list-sizer=""]');I().sort((t,n)=>{let a=t.getAttribute(eO),o=n.getAttribute(eO);return(e.get(o)??0)-(e.get(a)??0)}).forEach(e=>{let t=e.closest(eR);t?t.appendChild(e.parentElement===t?e:e.closest(`${eR} > *`)):o.appendChild(e.parentElement===o?e:e.closest(`${eR} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{let t=n.current.querySelector(`${ek}[${eO}="${e[0]}"]`);null==t||t.parentElement.appendChild(t)})}function V(){let e=I().find(e=>!e.ariaDisabled),t=null==e?void 0:e.getAttribute(eO);S.setState("value",t||void 0)}function j(){if(!a.current.search||!1===d.current.shouldFilter){a.current.filtered.count=o.current.size;return}a.current.filtered.groups=new Set;let e=0;for(let t of o.current){let n=B(u.current.get(t));a.current.filtered.items.set(t,n),n>0&&e++}for(let[e,t]of l.current)for(let n of t)if(a.current.filtered.items.get(n)>0){a.current.filtered.groups.add(e);break}a.current.filtered.count=e}function W(){var e,t,n;let a=_();a&&((null==(e=a.parentElement)?void 0:e.firstChild)===a&&(null==(n=null==(t=a.closest(ek))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function _(){return n.current.querySelector(`${eP}[aria-selected="true"]`)}function I(){return Array.from(n.current.querySelectorAll(eD))}function q(e){let t=I()[e];t&&S.setState("value",t.getAttribute(eO))}function $(e){var t;let n=_(),a=I(),o=a.findIndex(e=>e===n),c=a[o+e];null!=(t=d.current)&&t.loop&&(c=o+e<0?a[a.length-1]:o+e===a.length?a[0]:a[o+e]),c&&S.setState("value",c.getAttribute(eO))}function J(e){let t=_(),n=null==t?void 0:t.closest(ek),a;for(;n&&!a;)a=null==(n=e>0?Se(n,ek):Ce(n,ek))?void 0:n.querySelector(eD);a?S.setState("value",a.getAttribute(eO)):$(e)}let Q=()=>q(I().length-1),X=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):$(1)},Y=e=>{e.preventDefault(),e.metaKey?q(0):e.altKey?J(-1):$(-1)};return c.createElement("div",{ref:H([n,t]),...h,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=h.onKeyDown)||t.call(h,e),!e.defaultPrevented)switch(e.key){case"n":case"j":e.ctrlKey&&X(e);break;case"ArrowDown":X(e);break;case"p":case"k":e.ctrlKey&&Y(e);break;case"ArrowUp":Y(e);break;case"Home":e.preventDefault(),q(0);break;case"End":e.preventDefault(),Q();break;case"Enter":{e.preventDefault();let t=_();if(t){let e=new Event(eI);t.dispatchEvent(e)}}}}},c.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:eH},s),c.createElement(eL.Provider,{value:S},c.createElement(eT.Provider,{value:P},f)))}),eF=c.forwardRef((e,t)=>{let n=c.useId(),a=c.useRef(null),o=c.useContext(eN),l=k(),u=ae(e);eW(()=>l.item(n,o),[]);let i=se(n,a,[e.value,e.children,a]),d=U(),s=T(e=>e.value&&e.value===i.current),f=T(e=>!1===l.filter()||!e.search||e.filtered.items.get(n)>0);function R(){var e,t;null==(t=(e=u.current).onSelect)||t.call(e,i.current)}function w(){d.setState("value",i.current,!0)}if(c.useEffect(()=>{let t=a.current;if(!(!t||e.disabled))return t.addEventListener(eI,R),()=>t.removeEventListener(eI,R)},[f,e.onSelect,e.disabled]),!f)return null;let{disabled:v,value:p,onSelect:m,...b}=e;return c.createElement("div",{ref:H([a,t]),...b,"cmdk-item":"",role:"option","aria-disabled":v||void 0,"aria-selected":s||void 0,"data-selected":s||void 0,onPointerMove:v?void 0:w,onClick:v?void 0:R},e.children)}),e_=c.forwardRef((e,t)=>{let{heading:n,children:a,...o}=e,l=c.useId(),u=c.useRef(null),i=c.useRef(null),d=c.useId(),s=k(),f=T(e=>!1===s.filter()||!e.search||e.filtered.groups.has(l));eW(()=>s.group(l),[]),se(l,u,[e.value,e.heading,i]);let v=c.createElement(eN.Provider,{value:l},a);return c.createElement("div",{ref:H([u,t]),...o,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&c.createElement("div",{ref:i,"cmdk-group-heading":"","aria-hidden":!0,id:d},n),c.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?d:void 0},v))}),eM=c.forwardRef((e,t)=>{let{alwaysRender:n,...a}=e,o=c.useRef(null),l=T(e=>!e.search);return n||l?c.createElement("div",{ref:H([o,t]),...a,"cmdk-separator":"",role:"separator"}):null}),eU=c.forwardRef((e,t)=>{let{onValueChange:n,...a}=e,o=null!=e.value,l=U(),u=T(e=>e.search),i=k();return c.useEffect(()=>{null!=e.value&&l.setState("search",e.value)},[e.value]),c.createElement("input",{ref:t,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":i.listId,"aria-labelledby":i.labelId,id:i.inputId,type:"text",value:o?e.value:u,onChange:e=>{o||l.setState("search",e.target.value),null==n||n(e.target.value)}})}),eV=c.forwardRef((e,t)=>{let{children:n,...a}=e,o=c.useRef(null),l=c.useRef(null),u=k();return c.useEffect(()=>{if(l.current&&o.current){let e=l.current,t=o.current,n,a=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.getBoundingClientRect().height;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return a.observe(e),()=>{cancelAnimationFrame(n),a.unobserve(e)}}},[]),c.createElement("div",{ref:H([o,t]),...a,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:u.listId,"aria-labelledby":u.inputId},c.createElement("div",{ref:l,"cmdk-list-sizer":""},n))}),eZ=c.forwardRef((e,t)=>{let{open:n,onOpenChange:a,container:o,...l}=e;return c.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9,{open:n,onOpenChange:a},c.createElement($5d3850c4d0b4e6c7$export$602eac185826482c,{container:o},c.createElement(em,{"cmdk-overlay":""}),c.createElement(eE,{"aria-label":e.label,"cmdk-dialog":""},c.createElement(eA,{ref:t,...l}))))}),eB=Object.assign(eA,{List:eV,Item:eF,Input:eU,Group:e_,Separator:eM,Dialog:eZ,Empty:c.forwardRef((e,t)=>{let n=c.useRef(!0),a=T(e=>0===e.filtered.count);return c.useEffect(()=>{n.current=!1},[]),n.current||!a?null:c.createElement("div",{ref:t,...e,"cmdk-empty":"",role:"presentation"})}),Loading:c.forwardRef((e,t)=>{let{progress:n,children:a,...o}=e;return c.createElement("div",{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},c.createElement("div",{"aria-hidden":!0},a))})});function Se(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Ce(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function ae(e){let t=c.useRef(e);return eW(()=>{t.current=e}),t}var eW=typeof window>"u"?c.useEffect:c.useLayoutEffect;function x(e){let t=c.useRef();return void 0===t.current&&(t.current=e()),t}function H(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function T(e){let t=U(),r=()=>e(t.snapshot());return c.useSyncExternalStore(t.subscribe,r,r)}function se(e,t,n){let a=c.useRef(),o=k();return eW(()=>{var c;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim().toLowerCase();if("object"==typeof t&&"current"in t&&t.current)return null==(e=t.current.textContent)?void 0:e.trim().toLowerCase()}})();o.value(e,l),null==(c=t.current)||c.setAttribute(eO,l),a.current=l}),a}var ye=()=>{let[e,t]=c.useState(),n=x(()=>new Map);return eW(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,a)=>{n.current.set(e,a),t({})}},eH={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}}}]);