1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8597],{82023:function(e,n,t){t.d(n,{Z:function(){return r}});const r=(0,t(68755).Z)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},50510:function(e,n,t){t.d(n,{VY:function(){return Hr},ck:function(){return Qr},__:function(){return Jr},Uv:function(){return qr},fC:function(){return Zr},Z0:function(){return eo},xz:function(){return zr}});var r=t(2265),o=t.t(r,2);"undefined"===typeof window||!window.document||window.document.createElement;function c(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),!1===t||!r.defaultPrevented)return n?.(r)}}function i(e,n){if("function"===typeof e)return e(n);null!==e&&void 0!==e&&(e.current=n)}function u(...e){return n=>{let t=!1;const r=e.map((e=>{const r=i(e,n);return t||"function"!=typeof r||(t=!0),r}));if(t)return()=>{for(let n=0;n<r.length;n++){const t=r[n];"function"==typeof t?t():i(e[n],null)}}}}var a=t(57437);function s(...e){const n=e[0];if(1===e.length)return n;const t=()=>{const t=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=t.reduce(((n,{useScope:t,scopeName:r})=>({...n,...t(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return t.scopeName=n.scopeName,t}var l=globalThis?.document?r.useLayoutEffect:()=>{},d=o[" useInsertionEffect ".trim().toString()]||l;function f({prop:e,defaultProp:n,onChange:t=(()=>{}),caller:o}){const[c,i,u]=function({defaultProp:e,onChange:n}){const[t,o]=r.useState(e),c=r.useRef(t),i=r.useRef(n);return d((()=>{i.current=n}),[n]),r.useEffect((()=>{c.current!==t&&(i.current?.(t),c.current=t)}),[t,c]),[t,o,i]}({defaultProp:n,onChange:t}),a=void 0!==e,s=a?e:c;{const n=r.useRef(void 0!==e);r.useEffect((()=>{const e=n.current;if(e!==a){const n=e?"controlled":"uncontrolled",t=a?"controlled":"uncontrolled";console.warn(`${o} is changing from ${n} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=a}),[a,o])}const l=r.useCallback((n=>{if(a){const t=function(e){return"function"===typeof e}(n)?n(e):n;t!==e&&u.current?.(t)}else i(n)}),[a,e,i,u]);return[s,l]}Symbol("RADIX:SYNC_STATE");var p=t(54887);function v(e){const n=m(e),t=r.forwardRef(((e,t)=>{const{children:o,...c}=e,i=r.Children.toArray(o),u=i.find(g);if(u){const e=u.props.children,o=i.map((n=>n===u?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:n));return(0,a.jsx)(n,{...c,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,a.jsx)(n,{...c,ref:t,children:o})}));return t.displayName=`${e}.Slot`,t}function m(e){const n=r.forwardRef(((e,n)=>{const{children:t,...o}=e;if(r.isValidElement(t)){const e=function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(t),c=function(e,n){const t={...n};for(const r in n){const o=e[r],c=n[r];/^on[A-Z]/.test(r)?o&&c?t[r]=(...e)=>{const n=c(...e);return o(...e),n}:o&&(t[r]=o):"style"===r?t[r]={...o,...c}:"className"===r&&(t[r]=[o,c].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props);return t.type!==r.Fragment&&(c.ref=n?u(n,e):e),r.cloneElement(t,c)}return r.Children.count(t)>1?r.Children.only(null):null}));return n.displayName=`${e}.SlotClone`,n}var h=Symbol("radix.slottable");function g(e){return r.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}var w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const t=v(`Primitive.${n}`),o=r.forwardRef(((e,r)=>{const{asChild:o,...c}=e,i=o?t:n;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i,{...c,ref:r})}));return o.displayName=`Primitive.${n}`,{...e,[n]:o}}),{});"undefined"===typeof window||!window.document||window.document.createElement;function y(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),!1===t||!r.defaultPrevented)return n?.(r)}}function b(e,n,t){if(!n.has(e))throw new TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}function x(e,n){return function(e,n){return n.get?n.get.call(e):n.value}(e,b(e,n,"get"))}function C(e,n,t){!function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.set(e,t)}function E(e,n,t){return function(e,n,t){if(n.set)n.set.call(e,t);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=t}}(e,b(e,n,"set"),t),t}function M(e,n=[]){let t=[];const o=()=>{const n=t.map((e=>r.createContext(e)));return function(t){const o=t?.[e]||n;return r.useMemo((()=>({[`__scope${e}`]:{...t,[e]:o}}
1)),[t,o])}};return o.scopeName=e,[function(n,o){const c=r.createContext(o),i=t.length;t=[...t,o];const u=n=>{const{scope:t,children:o,...u}=n,s=t?.[e]?.[i]||c,l=r.useMemo((()=>u),Object.values(u));return(0,a.jsx)(s.Provider,{value:l,children:o})};return u.displayName=n+"Provider",[u,function(t,u){const a=u?.[e]?.[i]||c,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},R(o,...n)]}function R(...e){const n=e[0];if(1===e.length)return n;const t=()=>{const t=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=t.reduce(((n,{useScope:t,scopeName:r})=>({...n,...t(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return t.scopeName=n.scopeName,t}function _(e,n){if("function"===typeof e)return e(n);null!==e&&void 0!==e&&(e.current=n)}function S(...e){return n=>{let t=!1;const r=e.map((e=>{const r=_(e,n);return t||"function"!=typeof r||(t=!0),r}));if(t)return()=>{for(let n=0;n<r.length;n++){const t=r[n];"function"==typeof t?t():_(e[n],null)}}}}function N(...e){return r.useCallback(S(...e),e)}function D(e){const n=j(e),t=r.forwardRef(((e,t)=>{const{children:o,...c}=e,i=r.Children.toArray(o),u=i.find(T);if(u){const e=u.props.children,o=i.map((n=>n===u?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:n));return(0,a.jsx)(n,{...c,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,a.jsx)(n,{...c,ref:t,children:o})}));return t.displayName=`${e}.Slot`,t}function j(e){const n=r.forwardRef(((e,n)=>{const{children:t,...o}=e;if(r.isValidElement(t)){const e=function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(t),c=function(e,n){const t={...n};for(const r in n){const o=e[r],c=n[r];/^on[A-Z]/.test(r)?o&&c?t[r]=(...e)=>{const n=c(...e);return o(...e),n}:o&&(t[r]=o):"style"===r?t[r]={...o,...c}:"className"===r&&(t[r]=[o,c].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props);return t.type!==r.Fragment&&(c.ref=n?S(n,e):e),r.cloneElement(t,c)}return r.Children.count(t)>1?r.Children.only(null):null}));return n.displayName=`${e}.SlotClone`,n}var k=Symbol("radix.slottable");var P;function T(e){return r.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===k}var I=new WeakMap;P=new WeakMap,Map;function A(e,n){if("at"in Array.prototype)return Array.prototype.at.call(e,n);const t=function(e,n){const t=e.length,r=O(n),o=r>=0?r:t+r;return o<0||o>=t?-1:o}(e,n);return-1===t?void 0:e[t]}function O(e){return e!==e||0===e?0:Math.trunc(e)}var F=r.createContext(void 0);var L=t(90599),W=0;function $(){r.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");var n,t;return document.body.insertAdjacentElement("afterbegin",null!==(n=e[0])&&void 0!==n?n:K()),document.body.insertAdjacentElement("beforeend",null!==(t=e[1])&&void 0!==t?t:K()),W++,()=>{1===W&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),W--}}),[])}function K(){const 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}function V(e,n){if("function"===typeof e)return e(n);null!==e&&void 0!==e&&(e.current=n)}function U(...e){return n=>{let t=!1;const r=e.map((e=>{const r=V(e,n);return t||"function"!=typeof r||(t=!0),r}));if(t)return()=>{for(let n=0;n<r.length;n++){const t=r[n];"function"==typeof t?t():V(e[n],null)}}}}function B(e){const n=G(e),t=r.forwardRef(((e,t)=>{const{children:o,...c}=e,i=r.Children.toArray(o),u=i.find(Y);if(u){const e=u.props.children,o=i.map((n=>n===u?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:n));return(0,a.jsx)(n,{...c,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,a.jsx)(n,{...c,ref:t,children:o})}));return t.displayName=`${e}.Slot`,t}function G(e){const n=r.forwardRef(((e,n)=>{const{children:t,...o}=e;if(r.isValidElement(t)){const e=function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(t),c=function(e,n){const t={...n};for(const r in n){const o=e[r],c=n[r];/^on[A-Z]/.test(r)?o&&c?t[r]=(...e)=>{const n=c(...e);return o(...e),n}:o&&(t[r]=o):"style"===r?t[r]={...o,...c}
1:"className"===r&&(t[r]=[o,c].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props);return t.type!==r.Fragment&&(c.ref=n?U(n,e):e),r.cloneElement(t,c)}return r.Children.count(t)>1?r.Children.only(null):null}));return n.displayName=`${e}.SlotClone`,n}var X=Symbol("radix.slottable");function Y(e){return r.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===X}var Z=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const t=B(`Primitive.${n}`),o=r.forwardRef(((e,r)=>{const{asChild:o,...c}=e,i=o?t:n;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i,{...c,ref:r})}));return o.displayName=`Primitive.${n}`,{...e,[n]:o}}),{});function z(e){const n=r.useRef(e);return r.useEffect((()=>{n.current=e})),r.useMemo((()=>(...e)=>n.current?.(...e)),[])}var q="focusScope.autoFocusOnMount",H="focusScope.autoFocusOnUnmount",J={bubbles:!1,cancelable:!0},Q=r.forwardRef(((e,n)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:i,...u}=e,[s,l]=r.useState(null),d=z(c),f=z(i),p=r.useRef(null),v=function(...e){return r.useCallback(U(...e),e)}(n,(e=>l(e))),m=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect((()=>{if(o){let e=function(e){if(m.paused||!s)return;const n=e.target;s.contains(n)?p.current=n:re(p.current,{select:!0})},n=function(e){if(m.paused||!s)return;const n=e.relatedTarget;null!==n&&(s.contains(n)||re(p.current,{select:!0}))},t=function(e){if(document.activeElement===document.body)for(const n of e)n.removedNodes.length>0&&re(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",n);const r=new MutationObserver(t);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",n),r.disconnect()}}}),[o,s,m.paused]),r.useEffect((()=>{if(s){oe.add(m);const n=document.activeElement;if(!s.contains(n)){const t=new CustomEvent(q,J);s.addEventListener(q,d),s.dispatchEvent(t),t.defaultPrevented||(!function(e){let{select:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=document.activeElement;for(const r of e)if(re(r,{select:n}),document.activeElement!==t)return}((e=ee(s),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===n&&re(s))}return()=>{s.removeEventListener(q,d),setTimeout((()=>{const e=new CustomEvent(H,J);s.addEventListener(H,f),s.dispatchEvent(e),e.defaultPrevented||re(null!==n&&void 0!==n?n:document.body,{select:!0}),s.removeEventListener(H,f),oe.remove(m)}),0)}}var e}),[s,d,f,m]);const h=r.useCallback((e=>{if(!t&&!o)return;if(m.paused)return;const n="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(n&&r){const n=e.currentTarget,[o,c]=function(e){const n=ee(e),t=ne(n,e),r=ne(n.reverse(),e);return[t,r]}(n);o&&c?e.shiftKey||r!==c?e.shiftKey&&r===o&&(e.preventDefault(),t&&re(c,{select:!0})):(e.preventDefault(),t&&re(o,{select:!0})):r===n&&e.preventDefault()}}),[t,o,m.paused]);return(0,a.jsx)(Z.div,{tabIndex:-1,...u,ref:v,onKeyDown:h})}));function ee(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const n="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||n?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function ne(e,n){for(const t of e)if(!te(t,{upTo:n}))return t}function te(e,n){let{upTo:t}=n;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function re(e){let{select:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&n&&e.select()}}Q.displayName="FocusScope";var oe=function(){let e=[];return{add(n){const t=e[0];n!==t&&(null===t||void 0===t||t.pause()),e=ce(e,n),e.unshift(n)},remove(n){var t;e=ce(e,n),null===(t=e[0])||void 0===t||t.resume()}}}();function ce(e,n){const t=[...e],r=t.indexOf(n);return-1!==r&&t.splice(r,1),t}var ie=globalThis?.document?r.useLayoutEffect:()=>{},ue=o[" useId ".trim().toString()]||(()=>{}),ae=0;function se(e){const[n,t]=r.useState(ue());return ie((()=>{e||t((e=>e??String(ae++)))}),[e]),e||(n?`radix-${n}`:"")}var le=t(21131),de=t(25655);var fe=e=>{const{present:n,children:t}=e,o=function(e){const[n,t]=r.useState(),o=r.useRef(null),c=r.useRef(e),i=r.useRef("none"),u=e?"mounted":"unmounted",[a,s]=function(e,n){return r.useReducer(((e,t)=>{const r=n[e][t];return null!==r&&void 0!==r?r:e}),e)}
1(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect((()=>{const e=pe(o.current);i.current="mounted"===a?e:"none"}),[a]),ie((()=>{const n=o.current,t=c.current;if(t!==e){const r=i.current,o=pe(n);if(e)s("MOUNT");else if("none"===o||"none"===(null===n||void 0===n?void 0:n.display))s("UNMOUNT");else{s(t&&r!==o?"ANIMATION_OUT":"UNMOUNT")}c.current=e}}),[e,s]),ie((()=>{if(n){let t;var e;const r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,u=e=>{const i=pe(o.current).includes(CSS.escape(e.animationName));if(e.target===n&&i&&(s("ANIMATION_END"),!c.current)){const e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout((()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)}))}},a=e=>{e.target===n&&(i.current=pe(o.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",u),n.addEventListener("animationend",u),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",u),n.removeEventListener("animationend",u)}}s("ANIMATION_END")}),[n,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:r.useCallback((e=>{o.current=e?getComputedStyle(e):null,t(e)}),[])}}(n),c="function"===typeof t?t({present:o.isPresent}):r.Children.only(t),i=N(o.ref,function(e){var n,t;let r=null===(n=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===n?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null===(t=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(c));return"function"===typeof t||o.isPresent?r.cloneElement(c,{ref:i}):null};function pe(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}fe.displayName="Presence";var ve=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const t=D(`Primitive.${n}`),o=r.forwardRef(((e,r)=>{const{asChild:o,...c}=e,i=o?t:n;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i,{...c,ref:r})}));return o.displayName=`Primitive.${n}`,{...e,[n]:o}}),{});"undefined"===typeof window||!window.document||window.document.createElement;function me(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(e?.(r),!1===t||!r.defaultPrevented)return n?.(r)}}function he(e,n=[]){let t=[];const o=()=>{const n=t.map((e=>r.createContext(e)));return function(t){const o=t?.[e]||n;return r.useMemo((()=>({[`__scope${e}`]:{...t,[e]:o}})),[t,o])}};return o.scopeName=e,[function(n,o){const c=r.createContext(o),i=t.length;t=[...t,o];const u=n=>{const{scope:t,children:o,...u}=n,s=t?.[e]?.[i]||c,l=r.useMemo((()=>u),Object.values(u));return(0,a.jsx)(s.Provider,{value:l,children:o})};return u.displayName=n+"Provider",[u,function(t,u){const a=u?.[e]?.[i]||c,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},ge(o,...n)]}function ge(...e){const n=e[0];if(1===e.length)return n;const t=()=>{const t=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=t.reduce(((n,{useScope:t,scopeName:r})=>({...n,...t(e)[`__scope${r}`]})),{});return r.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return t.scopeName=n.scopeName,t}function we(e,n){if("function"===typeof e)return e(n);null!==e&&void 0!==e&&(e.current=n)}function ye(...e){return n=>{let t=!1;const r=e.map((e=>{const r=we(e,n);return t||"function"!=typeof r||(t=!0),r}));if(t)return()=>{for(let n=0;n<r.length;n++){const t=r[n];"function"==typeof t?t():we(e[n],null)}}}}function be(...e){return r.useCallback(ye(...e),e)}function xe(e){const n=Ce(e),t=r.forwardRef(((e,t)=>{const{children:o,...c}=e,i=r.Children.toArray(o),u=i.find(Re);if(u){const e=u.props.children,o=i.map((n=>n===u?r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null:n));return(0,a.jsx)(n,{...c,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,a.jsx)(n,{...c,ref:t,children:o})}));return t.displayName=`${e}.Slot`,t}function Ce(e){const n=r.forwardRef(((e,n)=>{const{children:t,...o}=e;if(r.isValidElement(t)){const e=function(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;if(t)return e.ref;if(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t)return e.props.ref;return e.props.ref||e.ref}(t),c=function(e,n){const t={...n};for(const r in n){const o=e[r],c=n[r];/^on[A-Z]/.test(r)?o&&c?t[r]=(...e)=>{const n=c(...e);return o(...e),n}:o&&(t[r]=o):"style"===r?t[r]={...o,...c}
1:"className"===r&&(t[r]=[o,c].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props);return t.type!==r.Fragment&&(c.ref=n?ye(n,e):e),r.cloneElement(t,c)}return r.Children.count(t)>1?r.Children.only(null):null}));return n.displayName=`${e}.SlotClone`,n}var Ee=Symbol("radix.slottable");var Me;function Re(e){return r.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ee}var _e=new WeakMap;Me=new WeakMap,Map;function Se(e,n){if("at"in Array.prototype)return Array.prototype.at.call(e,n);const t=function(e,n){const t=e.length,r=Ne(n),o=r>=0?r:t+r;return o<0||o>=t?-1:o}(e,n);return-1===t?void 0:e[t]}function Ne(e){return e!==e||0===e?0:Math.trunc(e)}var De=globalThis?.document?r.useLayoutEffect:()=>{},je=o[" useId ".trim().toString()]||(()=>{}),ke=0;var Pe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,n)=>{const t=xe(`Primitive.${n}`),o=r.forwardRef(((e,r)=>{const{asChild:o,...c}=e,i=o?t:n;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i,{...c,ref:r})}));return o.displayName=`Primitive.${n}`,{...e,[n]:o}}),{});var Te=o[" useInsertionEffect ".trim().toString()]||De;function Ie({prop:e,defaultProp:n,onChange:t=(()=>{}),caller:o}){const[c,i,u]=function({defaultProp:e,onChange:n}){const[t,o]=r.useState(e),c=r.useRef(t),i=r.useRef(n);return Te((()=>{i.current=n}),[n]),r.useEffect((()=>{c.current!==t&&(i.current?.(t),c.current=t)}),[t,c]),[t,o,i]}({defaultProp:n,onChange:t}),a=void 0!==e,s=a?e:c;{const n=r.useRef(void 0!==e);r.useEffect((()=>{const e=n.current;if(e!==a){const n=e?"controlled":"uncontrolled",t=a?"controlled":"uncontrolled";console.warn(`${o} is changing from ${n} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=a}),[a,o])}const l=r.useCallback((n=>{if(a){const t=function(e){return"function"===typeof e}(n)?n(e):n;t!==e&&u.current?.(t)}else i(n)}),[a,e,i,u]);return[s,l]}Symbol("RADIX:SYNC_STATE");var Ae=r.createContext(void 0);var Oe="rovingFocusGroup.onEntryFocus",Fe={bubbles:!1,cancelable:!0},Le="RovingFocusGroup",[We,$e,Ke]=function(e){const n=e+"CollectionProvider",[t,o]=he(n),[c,i]=t(n,{collectionRef:{current:null},itemMap:new Map}),u=e=>{const{scope:n,children:t}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:n,itemMap:i,collectionRef:o,children:t})};u.displayName=n;const s=e+"CollectionSlot",l=xe(s),d=r.forwardRef(((e,n)=>{const{scope:t,children:r}=e,o=be(n,i(s,t).collectionRef);return(0,a.jsx)(l,{ref:o,children:r})}));d.displayName=s;const f=e+"CollectionItemSlot",p="data-radix-collection-item",v=xe(f),m=r.forwardRef(((e,n)=>{const{scope:t,children:o,...c}=e,u=r.useRef(null),s=be(n,u),l=i(f,t);return r.useEffect((()=>(l.itemMap.set(u,{ref:u,...c}),()=>{l.itemMap.delete(u)}))),(0,a.jsx)(v,{[p]:"",ref:s,children:o})}));return m.displayName=f,[{Provider:u,Slot:d,ItemSlot:m},function(n){const t=i(e+"CollectionConsumer",n);return r.useCallback((()=>{const e=t.collectionRef.current;if(!e)return[];const n=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(t.itemMap.values()).sort(((e,t)=>n.indexOf(e.ref.current)-n.indexOf(t.ref.current)))}),[t.collectionRef,t.itemMap])},o]}(Le),[Ve,Ue]=he(Le,[Ke]),[Be,Ge]=Ve(Le),Xe=r.forwardRef(((e,n)=>(0,a.jsx)(We.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(We.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(Ye,{...e,ref:n})})})));Xe.displayName=Le;var Ye=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:t,orientation:o,loop:c=!1,dir:i,currentTabStopId:u,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,v=r.useRef(null),m=be(n,v),h=function(e){const n=r.useContext(Ae);return e||n||"ltr"}(i),[g,w]=Ie({prop:u,defaultProp:null!==s&&void 0!==s?s:null,onChange:l,caller:Le}),[y,b]=r.useState(!1),x=function(e){const n=r.useRef(e);return r.useEffect((()=>{n.current=e})),r.useMemo((()=>(...e)=>n.current?.(...e)),[])}(d),C=$e(t),E=r.useRef(!1),[M,R]=r.useState(0);return r.useEffect((()=>{const e=v.current;if(e)return e.addEventListener(Oe,x),()=>e.removeEventListener(Oe,x)}),[x]),(0,a.jsx)(Be,{scope:t,orientation:o,dir:h,loop:c,currentTabStopId:g,onItemFocus:r.useCallback((e=>w(e)),[w]),onItemShiftTab:r.useCallback((()=>b(!0)),[]),onFocusableItemAdd:r.useCallback((()=>R((e=>e+1))),[]),onFocusableItemRemove:r.useCallback((()=>R((e=>e-1))),[]),children:(0,a.jsx)(Pe.div,{tabIndex:y||0===M?-1:0,"data-orientation":o,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:me(e.onMouseDown,(()=>{E.current=!0})),onFocus:me(e.onFocus,(e=>{const n=!E.current;if(e.target===e.currentTarget&&n&&!y){const n=new CustomEvent(Oe,Fe);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){const e=C().filter((e=>
1e.focusable));He([e.find((e=>e.active)),e.find((e=>e.id===g)),...e].filter(Boolean).map((e=>e.ref.current)),f)}}E.current=!1})),onBlur:me(e.onBlur,(()=>b(!1)))})})})),Ze="RovingFocusGroupItem",ze=r.forwardRef(((e,n)=>{const{__scopeRovingFocusGroup:t,focusable:o=!0,active:c=!1,tabStopId:i,children:u,...s}=e,l=function(e){const[n,t]=r.useState(je());return De((()=>{e||t((e=>e??String(ke++)))}),[e]),e||(n?`radix-${n}`:"")}(),d=i||l,f=Ge(Ze,t),p=f.currentTabStopId===d,v=$e(t),{onFocusableItemAdd:m,onFocusableItemRemove:h,currentTabStopId:g}=f;return r.useEffect((()=>{if(o)return m(),()=>h()}),[o,m,h]),(0,a.jsx)(We.ItemSlot,{scope:t,id:d,focusable:o,active:c,children:(0,a.jsx)(Pe.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...s,ref:n,onMouseDown:me(e.onMouseDown,(e=>{o?f.onItemFocus(d):e.preventDefault()})),onFocus:me(e.onFocus,(()=>f.onItemFocus(d))),onKeyDown:me(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const n=function(e,n,t){const r=function(e,n){return"rtl"!==n?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,t);return"vertical"===n&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===n&&["ArrowUp","ArrowDown"].includes(r)?void 0:qe[r]}(e,f.orientation,f.dir);if(void 0!==n){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===n)o.reverse();else if("prev"===n||"next"===n){"prev"===n&&o.reverse();const c=o.indexOf(e.currentTarget);o=f.loop?(r=c+1,(t=o).map(((e,n)=>t[(r+n)%t.length]))):o.slice(c+1)}setTimeout((()=>He(o)))}var t,r})),children:"function"===typeof u?u({isCurrentTabStop:p,hasTabStop:null!=g}):u})})}));ze.displayName=Ze;var qe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function He(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const t=document.activeElement;for(const r of e){if(r===t)return;if(r.focus({preventScroll:n}),document.activeElement!==t)return}}var Je=Xe,Qe=ze;function en(e){const n=r.useRef(e);return r.useEffect((()=>{n.current=e})),r.useMemo((()=>(...e)=>n.current?.(...e)),[])}var nn=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},tn=new WeakMap,rn=new WeakMap,on={},cn=0,un=function(e){return e&&(e.host||un(e.parentNode))},an=function(e,n,t,r){var o=function(e,n){return n.map((function(n){if(e.contains(n))return n;var t=un(n);return t&&e.contains(t)?t:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(n,Array.isArray(e)?e:[e]);on[t]||(on[t]=new WeakMap);var c=on[t],i=[],u=new Set,a=new Set(o),s=function(e){e&&!u.has(e)&&(u.add(e),s(e.parentNode))};o.forEach(s);var l=function(e){e&&!a.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(u.has(e))l(e);else try{var n=e.getAttribute(r),o=null!==n&&"false"!==n,a=(tn.get(e)||0)+1,s=(c.get(e)||0)+1;tn.set(e,a),c.set(e,s),i.push(e),1===a&&o&&rn.set(e,!0),1===s&&e.setAttribute(t,"true"),o||e.setAttribute(r,"true")}catch(d){console.error("aria-hidden: cannot operate on ",e,d)}}))};return l(n),u.clear(),cn++,function(){i.forEach((function(e){var n=tn.get(e)-1,o=c.get(e)-1;tn.set(e,n),c.set(e,o),n||(rn.has(e)||e.removeAttribute(r),rn.delete(e)),o||e.removeAttribute(t)})),--cn||(tn=new WeakMap,tn=new WeakMap,rn=new WeakMap,on={})}},sn=function(e,n,t){void 0===t&&(t="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=n||nn(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),an(r,o,t,"aria-hidden")):function(){return null}},ln=t(5853),dn="right-scroll-bar-position",fn="width-before-scroll-bar";function pn(e,n){return"function"===typeof e?e(n):e&&(e.current=n),e}var vn="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,mn=new WeakMap;function hn(e,n){var t=function(e,n){var t=(0,r.useState)((function(){return{value:e,callback:n,facade:{get current(){return t.value},set current(e){var n=t.value;n!==e&&(t.value=e,t.callback(e,n))}}}}))[0];return t.callback=n,t.facade}(n||null,(function(n){return e.forEach((function(e){return pn(e,n)}))}));return vn((function(){var n=mn.get(t);if(n){var r=new Set(n),o=new Set(e),c=t.current;r.forEach((function(e){o.has(e)||pn(e,null)})),o.forEach((function(e){r.has(e)||pn(e,c)}))}mn.set(t,e)}),[e]),t}function gn(e){return e}function wn(e,n){void 0===n&&(n=gn);var t=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(e){var o=n(e,r);return t.push(o),function(){t=t.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;t.length;){var n=t;
1t=[],n.forEach(e)}t={push:function(n){return e(n)},filter:function(){return t}}},assignMedium:function(e){r=!0;var n=[];if(t.length){var o=t;t=[],o.forEach(e),n=t}var c=function(){var t=n;n=[],t.forEach(e)},i=function(){return Promise.resolve().then(c)};i(),t={push:function(e){n.push(e),i()},filter:function(e){return n=n.filter(e),t}}}}}var yn=function(e){void 0===e&&(e={});var n=wn(null);return n.options=(0,ln.pi)({async:!0,ssr:!1},e),n}(),bn=function(){},xn=r.forwardRef((function(e,n){var t=r.useRef(null),o=r.useState({onScrollCapture:bn,onWheelCapture:bn,onTouchMoveCapture:bn}),c=o[0],i=o[1],u=e.forwardProps,a=e.children,s=e.className,l=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,v=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,w=e.as,y=void 0===w?"div":w,b=e.gapMode,x=(0,ln._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=p,E=hn([t,n]),M=(0,ln.pi)((0,ln.pi)({},x),c);return r.createElement(r.Fragment,null,d&&r.createElement(C,{sideCar:yn,removeScrollBar:l,shards:f,noRelative:v,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:t,gapMode:b}),u?r.cloneElement(r.Children.only(a),(0,ln.pi)((0,ln.pi)({},M),{ref:E})):r.createElement(y,(0,ln.pi)({},M,{className:s,ref:E}),a))}));xn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},xn.classNames={fullWidth:fn,zeroRight:dn};var Cn,En=function(e){var n=e.sideCar,t=(0,ln._T)(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,(0,ln.pi)({},t))};En.isSideCarExport=!0;function Mn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=Cn||t.nc;return n&&e.setAttribute("nonce",n),e}var Rn=function(){var e=0,n=null;return{add:function(t){var r,o;0==e&&(n=Mn())&&(o=t,(r=n).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),e++},remove:function(){! --e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},_n=function(){var e=function(){var e=Rn();return function(n,t){r.useEffect((function(){return e.add(n),function(){e.remove()}}),[n&&t])}}();return function(n){var t=n.styles,r=n.dynamic;return e(t,r),null}},Sn={left:0,top:0,right:0,gap:0},Nn=function(e){return parseInt(e||"",10)||0},Dn=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Sn;var n=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[Nn(t),Nn(r),Nn(o)]}(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},jn=_n(),kn="data-scroll-locked",Pn=function(e,n,t,r){var o=e.left,c=e.top,i=e.right,u=e.gap;return void 0===t&&(t="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(kn,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([n&&"position: relative ".concat(r,";"),"margin"===t&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(c,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===t&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(dn," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(fn," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(dn," .").concat(dn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(fn," .").concat(fn," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(kn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},Tn=function(){var e=parseInt(document.body.getAttribute(kn)||"0",10);return isFinite(e)?e:0},In=function(e){var n=e.noRelative,t=e.noImportant,o=e.gapMode,c=void 0===o?"margin":o;r.useEffect((function(){return document.body.setAttribute(kn,(Tn()+1).toString()),function(){var e=Tn()-1;e<=0?document.body.removeAttribute(kn):document.body.setAttribute(kn,e.toString())}}),[]);var i=r.useMemo((function(){return Dn(c)}),[c]);return r.createElement(jn,{styles:Pn(i,!n,c,t?"":"!important")})},An=!1;if("undefined"!==typeof window)try{var On=Object.defineProperty({},"passive",{get:function(){return An=!0,!0}});window.addEventListener("test",On,On),window.removeEventListener("test",On,On)}catch(no){An=!1}var Fn=!!An&&{passive:!1},Ln=function(e,n){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return"hidden"!==t[n]&&!(t.overflowY===t.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===t[n])},Wn=function(e,n){var t=n.ownerDocument,r=n;do{if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),$n(e,r)){var o=Kn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==t.body);return!1},$n=function(e,n){return"v"===e?function(e){return Ln(e,"overflowY")}(n):function(e){return Ln(e,"overflowX")}(n)},Kn=function(e,n){return"v"===e?[(t=n).scrollTop,t.scrollHeight,t.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(n);var t},Vn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Un=function(e){return[e.deltaX,e.deltaY]},Bn=function(e){return e&&"current"in e?e.current:e},Gn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Xn=0,Yn=[];function Zn(e){for(var n=null;null!==e;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}var zn,qn=(zn=function(e){var n=r.useRef([]),t=r.useRef([0,0]),o=r.useRef(),c=r.useState(Xn++)[0],i=r.useState(_n)[0],u=r.useRef(e);r.useEffect((function(){u.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var n=(0,ln.ev)([e.lockRef.current],(e.shards||[]).map(Bn),!0).filter(
1Boolean);return n.forEach((function(e){return e.classList.add("allow-interactivity-".concat(c))})),function(){document.body.classList.remove("block-interactivity-".concat(c)),n.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(c))}))}}}),[e.inert,e.lockRef.current,e.shards]);var a=r.useCallback((function(e,n){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!u.current.allowPinchZoom;var r,c=Vn(e),i=t.current,a="deltaX"in e?e.deltaX:i[0]-c[0],s="deltaY"in e?e.deltaY:i[1]-c[1],l=e.target,d=Math.abs(a)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===l||p.contains(l)))return!1;var v=Wn(d,l);if(!v)return!0;if(v?r=d:(r="v"===d?"h":"v",v=Wn(d,l)),!v)return!1;if(!o.current&&"changedTouches"in e&&(a||s)&&(o.current=r),!r)return!0;var m=o.current||r;return function(e,n,t,r,o){var c=function(e,n){return"h"===e&&"rtl"===n?-1:1}(e,window.getComputedStyle(n).direction),i=c*r,u=t.target,a=n.contains(u),s=!1,l=i>0,d=0,f=0;do{if(!u)break;var p=Kn(e,u),v=p[0],m=p[1]-p[2]-c*v;(v||m)&&$n(e,u)&&(d+=m,f+=v);var h=u.parentNode;u=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!a&&u!==document.body||a&&(n.contains(u)||n===u));return(l&&(o&&Math.abs(d)<1||!o&&i>d)||!l&&(o&&Math.abs(f)<1||!o&&-i>f))&&(s=!0),s}(m,n,e,"h"===m?a:s,!0)}),[]),s=r.useCallback((function(e){var t=e;if(Yn.length&&Yn[Yn.length-1]===i){var r="deltaY"in t?Un(t):Vn(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var c=(u.current.shards||[]).map(Bn).filter(Boolean).filter((function(e){return e.contains(t.target)}));(c.length>0?a(t,c[0]):!u.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),l=r.useCallback((function(e,t,r,o){var c={name:e,delta:t,target:r,should:o,shadowParent:Zn(r)};n.current.push(c),setTimeout((function(){n.current=n.current.filter((function(e){return e!==c}))}),1)}),[]),d=r.useCallback((function(e){t.current=Vn(e),o.current=void 0}),[]),f=r.useCallback((function(n){l(n.type,Un(n),n.target,a(n,e.lockRef.current))}),[]),p=r.useCallback((function(n){l(n.type,Vn(n),n.target,a(n,e.lockRef.current))}),[]);r.useEffect((function(){return Yn.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Fn),document.addEventListener("touchmove",s,Fn),document.addEventListener("touchstart",d,Fn),function(){Yn=Yn.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,Fn),document.removeEventListener("touchmove",s,Fn),document.removeEventListener("touchstart",d,Fn)}}),[]);var v=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(i,{styles:Gn(c)}):null,v?r.createElement(In,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},yn.useMedium(zn),En),Hn=r.forwardRef((function(e,n){return r.createElement(xn,(0,ln.pi)({},e,{ref:n,sideCar:qn}))}));Hn.classNames=xn.classNames;var Jn=Hn,Qn=["Enter"," "],et=["ArrowUp","PageDown","End"],nt=["ArrowDown","PageUp","Home",...et],tt={ltr:[...Qn,"ArrowRight"],rtl:[...Qn,"ArrowLeft"]},rt={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ot="Menu",[ct,it,ut]=function(e){const n=e+"CollectionProvider",[t,o]=M(n),[c,i]=t(n,{collectionRef:{current:null},itemMap:new Map}),u=e=>{const{scope:n,children:t}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,a.jsx)(c,{scope:n,itemMap:i,collectionRef:o,children:t})};u.displayName=n;const s=e+"CollectionSlot",l=D(s),d=r.forwardRef(((e,n)=>{const{scope:t,children:r}=e,o=N(n,i(s,t).collectionRef);return(0,a.jsx)(l,{ref:o,children:r})}));d.displayName=s;const f=e+"CollectionItemSlot",p="data-radix-collection-item",v=D(f),m=r.forwardRef(((e,n)=>{const{scope:t,children:o,...c}=e,u=r.useRef(null),s=N(n,u),l=i(f,t);return r.useEffect((()=>(l.itemMap.set(u,{ref:u,...c}),()=>{l.itemMap.delete(u)}))),(0,a.jsx)(v,{[p]:"",ref:s,children:o})}));return m.displayName=f,[{Provider:u,Slot:d,ItemSlot:m},function(n){const t=i(e+"CollectionConsumer",n);return r.useCallback((()=>{const e=t.collectionRef.current;if(!e)return[];const n=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(t.itemMap.values()).sort(((e,t)=>n.indexOf(e.ref.current)-n.indexOf(t.ref.current)))}),[t.collectionRef,t.itemMap])},o]}(ot),[at,st]=M(ot,[ut,le.D7,Ue]),lt=(0,le.D7)(),dt=Ue(),[ft,pt]=at(ot),[vt,mt]=at(ot),ht=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:c,onOpenChange:i,modal:u=!0}=e,s=lt(n),[l,d]=r.useState(null),f=r.useRef(!1),p=en(i),v=function(e){const n=r.useContext(F);return e||n||"ltr"}(c);return r.useEffect((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},n=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}}),[]),(0,a.jsx)(le.fC,{...s,children:(0,a.jsx)(ft,{scope:n,open:t,onOpenChange:p,content:l,onContentChange:d,children:(0,a.jsx)(vt,{scope:n,onClose:r.useCallback((()=>p(!1)),[p]),isUsingKeyboardRef:f,dir:v,modal:u,children:o})})})};ht.displayName=ot;var gt=r.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=lt(t);return(0,a.jsx)(le.ee,{...o,...r,ref:n})}));gt.displayName="MenuAnchor";var wt="MenuPortal",[yt,bt]=at(wt,{forceMount:void 0}),xt=e=>{const{__scopeMenu:n,forceMount:t,children:r,container:o}=e,c=pt(wt,n);return(0,a.jsx)(yt,{scope:n,forceMount:t,children:(0,a.jsx)(fe,{present:t||c.open,children:(0,a.jsx)(de.h,{asChild:!0,container:o,children:r})})})};xt.displayName=wt;var Ct="MenuContent",[Et,Mt]=at(Ct),Rt=r.forwardRef(((e,n)=>{const t=bt(Ct,e.__scopeMenu),{forceMount:r=t.forceMount,...o}=e,c=pt(Ct,e.__scopeMenu),i=mt(Ct,e.__scopeMenu);return(0,a.jsx)(ct.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)(fe,{present:r||c.open,children:(0,a.jsx)(ct.Slot,{scope:e.__scopeMenu,children:i.modal?(0,a.jsx)(_t,{...o,ref:n}):(0,a.jsx)(St,{...o,ref:n})})})})})),_t=r.forwardRef(((e,n)=>{const t=pt(Ct,e.__scopeMenu),o=r.useRef(null),c=N(n,o);return r.useEffect((()=>{const e=o.current;if(e)return sn(e)}),[]),(0,a.jsx)(Dt,{...e,ref:c,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:y(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})})),St=r.forwardRef(((e,n)=>{const t=pt(Ct,e.__scopeMenu);return(0,a.jsx)(Dt,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})})),Nt=D("MenuContent.ScrollLock"),Dt=r.forwardRef(((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:c,onOpenAutoFocus:i,onCloseAutoFocus:u,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:v,onDismiss:m,disableOutsideScroll:h,...g}=e,w=pt(Ct,t),b=mt(Ct,t),x=lt(t),C=dt(t),E=it(t),[M,R]=r.useState(null),_=r.useRef(null),S=N(n,_,w.onContentChange),D=r.useRef(0),j=r.useRef(""),k=r.useRef(0),P=r.useRef(null),T=r.useRef("right"),I=r.useRef(0),A=h?Jn:r.Fragment,O=h?{as:Nt,allowPinchZoom:!0}:void 0,F=e=>{var n,t;const r=j.current+e,o=E().filter((e=>!e.disabled)),c=document.activeElement,i=null===(n=o.find((e=>e.ref.current===c)))||void 0===n?void 0:n.textValue,u=function(e,n,t){const r=n.length>1&&Array.from(n).every((e=>e===n[0])),o=r?n[0]:n,c=t?e.indexOf(t):-1;let i=(u=e,a=Math.max(c,0),u.map(((e,n)=>u[(a+n)%u.length])));var u,a;1===o.length&&(i=i.filter((e=>e!==t)));const s=i.find((e=>e.toLowerCase().startsWith(o.toLowerCase())));return s!==t?s:void 0}(o.map((e=>e.textValue)),r,i),a=null===(t=o.find((e=>e.textValue===u)))||void 0===t?void 0:t.ref.current;!function e(n){j.current=n,window.clearTimeout(D.current),""!==n&&(D.current=window.setTimeout((()=>e("")),1e3))}(r),a&&setTimeout((()=>a.focus()))};r.useEffect((()=>()=>window.clearTimeout(D.current)),[]),$();const W=r.useCallback((e=>{var n,t;return T.current===(null===(n=P.current)||void 0===n?void 0:n.side)&&function(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return function(e,n){const{x:t,y:r}=e;let o=!1;for(let c=0,i=n.length-1;c<n.length;i=c++){const e=n[c],u=n[i],a=e.x,s=e.y,l=u.x,d=u.y;s>r!==d>r&&t<(l-a)*(r-s)/(d-s)+a&&(o=!o)}return o}(t,n)}(e,null===(t=P.current)||void 0===t?void 0:t.area)}),[]);return(0,a.jsx)(Et,{scope:t,searchRef:j,onItemEnter:r.useCallback((e=>{W(e)&&e.preventDefault()}),[W]),onItemLeave:r.useCallback((e=>{var n;W(e)||(null===(n=_.current)||void 0===n||n.focus(),R(null))}),[W]),onTriggerLeave:r.useCallback((e=>{W(e)&&e.preventDefault()}),[W]),pointerGraceTimerRef:k,onPointerGraceIntentChange:r.useCallback((e=>{P.current=e}),[]),children:(0,a.jsx)(A,{...O,children:(0,a.jsx)(Q,{asChild:!0,trapped:c,onMountAutoFocus:y(i,(e=>{var n;e.preventDefault(),null===(n=_.current)||void 0===n||n.focus({preventScroll:!0})}
1)),onUnmountAutoFocus:u,children:(0,a.jsx)(L.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:v,onDismiss:m,children:(0,a.jsx)(Je,{asChild:!0,...C,dir:b.dir,orientation:"vertical",loop:o,currentTabStopId:M,onCurrentTabStopIdChange:R,onEntryFocus:y(l,(e=>{b.isUsingKeyboardRef.current||e.preventDefault()})),preventScrollOnEntryFocus:!0,children:(0,a.jsx)(le.VY,{role:"menu","aria-orientation":"vertical","data-state":rr(w.open),"data-radix-menu-content":"",dir:b.dir,...x,...g,ref:S,style:{outline:"none",...g.style},onKeyDown:y(g.onKeyDown,(e=>{const n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!t&&r&&F(e.key));const o=_.current;if(e.target!==o)return;if(!nt.includes(e.key))return;e.preventDefault();const c=E().filter((e=>!e.disabled)).map((e=>e.ref.current));et.includes(e.key)&&c.reverse(),function(e){const n=document.activeElement;for(const t of e){if(t===n)return;if(t.focus(),document.activeElement!==n)return}}(c)})),onBlur:y(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),j.current="")})),onPointerMove:y(e.onPointerMove,ir((e=>{const n=e.target,t=I.current!==e.clientX;if(e.currentTarget.contains(n)&&t){const n=e.clientX>I.current?"right":"left";T.current=n,I.current=e.clientX}})))})})})})})})}));Rt.displayName=Ct;var jt=r.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return(0,a.jsx)(ve.div,{role:"group",...r,ref:n})}));jt.displayName="MenuGroup";var kt=r.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return(0,a.jsx)(ve.div,{...r,ref:n})}));kt.displayName="MenuLabel";var Pt="MenuItem",Tt="menu.itemSelect",It=r.forwardRef(((e,n)=>{const{disabled:t=!1,onSelect:o,...c}=e,i=r.useRef(null),u=mt(Pt,e.__scopeMenu),s=Mt(Pt,e.__scopeMenu),l=N(n,i),d=r.useRef(!1);return(0,a.jsx)(At,{...c,ref:l,disabled:t,onClick:y(e.onClick,(()=>{const e=i.current;if(!t&&e){const t=new CustomEvent(Tt,{bubbles:!0,cancelable:!0});e.addEventListener(Tt,(e=>null===o||void 0===o?void 0:o(e)),{once:!0}),r=t,(n=e)&&p.flushSync((()=>n.dispatchEvent(r))),t.defaultPrevented?d.current=!1:u.onClose()}var n,r})),onPointerDown:n=>{var t;null===(t=e.onPointerDown)||void 0===t||t.call(e,n),d.current=!0},onPointerUp:y(e.onPointerUp,(e=>{var n;d.current||null===(n=e.currentTarget)||void 0===n||n.click()})),onKeyDown:y(e.onKeyDown,(e=>{const n=""!==s.searchRef.current;t||n&&" "===e.key||Qn.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))})}));It.displayName=Pt;var At=r.forwardRef(((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:c,...i}=e,u=Mt(Pt,t),s=dt(t),l=r.useRef(null),d=N(n,l),[f,p]=r.useState(!1),[v,m]=r.useState("");return r.useEffect((()=>{const e=l.current;var n;e&&m((null!==(n=e.textContent)&&void 0!==n?n:"").trim())}),[i.children]),(0,a.jsx)(ct.ItemSlot,{scope:t,disabled:o,textValue:null!==c&&void 0!==c?c:v,children:(0,a.jsx)(Qe,{asChild:!0,...s,focusable:!o,children:(0,a.jsx)(ve.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...i,ref:d,onPointerMove:y(e.onPointerMove,ir((e=>{if(o)u.onItemLeave(e);else if(u.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}}))),onPointerLeave:y(e.onPointerLeave,ir((e=>u.onItemLeave(e)))),onFocus:y(e.onFocus,(()=>p(!0))),onBlur:y(e.onBlur,(()=>p(!1)))})})})})),Ot=r.forwardRef(((e,n)=>{const{checked:t=!1,onCheckedChange:r,...o}=e;return(0,a.jsx)(Bt,{scope:e.__scopeMenu,checked:t,children:(0,a.jsx)(It,{role:"menuitemcheckbox","aria-checked":or(t)?"mixed":t,...o,ref:n,"data-state":cr(t),onSelect:y(o.onSelect,(()=>null===r||void 0===r?void 0:r(!!or(t)||!t)),{checkForDefaultPrevented:!1})})})}));Ot.displayName="MenuCheckboxItem";var Ft="MenuRadioGroup",[Lt,Wt]=at(Ft,{value:void 0,onValueChange:()=>{}}),$t=r.forwardRef(((e,n)=>{const{value:t,onValueChange:r,...o}=e,c=en(r);return(0,a.jsx)(Lt,{scope:e.__scopeMenu,value:t,onValueChange:c,children:(0,a.jsx)(jt,{...o,ref:n})})}));$t.displayName=Ft;var Kt="MenuRadioItem",Vt=r.forwardRef(((e,n)=>{const{value:t,...r}=e,o=Wt(Kt,e.__scopeMenu),c=t===o.value;return(0,a.jsx)(Bt,{scope:e.__scopeMenu,checked:c,children:(0,a.jsx)(It,{role:"menuitemradio","aria-checked":c,...r,ref:n,"data-state":cr(c),onSelect:y(r.onSelect,(()=>{var e;return null===(e=o.onValueChange)||void 0===e?void 0:e.call(o,t)}
1),{checkForDefaultPrevented:!1})})})}));Vt.displayName=Kt;var Ut="MenuItemIndicator",[Bt,Gt]=at(Ut,{checked:!1}),Xt=r.forwardRef(((e,n)=>{const{__scopeMenu:t,forceMount:r,...o}=e,c=Gt(Ut,t);return(0,a.jsx)(fe,{present:r||or(c.checked)||!0===c.checked,children:(0,a.jsx)(ve.span,{...o,ref:n,"data-state":cr(c.checked)})})}));Xt.displayName=Ut;var Yt=r.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e;return(0,a.jsx)(ve.div,{role:"separator","aria-orientation":"horizontal",...r,ref:n})}));Yt.displayName="MenuSeparator";var Zt=r.forwardRef(((e,n)=>{const{__scopeMenu:t,...r}=e,o=lt(t);return(0,a.jsx)(le.Eh,{...o,...r,ref:n})}));Zt.displayName="MenuArrow";var zt="MenuSub",[qt,Ht]=at(zt),Jt=e=>{const{__scopeMenu:n,children:t,open:o=!1,onOpenChange:c}=e,i=pt(zt,n),u=lt(n),[s,l]=r.useState(null),[d,f]=r.useState(null),p=en(c);return r.useEffect((()=>(!1===i.open&&p(!1),()=>p(!1))),[i.open,p]),(0,a.jsx)(le.fC,{...u,children:(0,a.jsx)(ft,{scope:n,open:o,onOpenChange:p,content:d,onContentChange:f,children:(0,a.jsx)(qt,{scope:n,contentId:se(),triggerId:se(),trigger:s,onTriggerChange:l,children:t})})})};Jt.displayName=zt;var Qt="MenuSubTrigger",er=r.forwardRef(((e,n)=>{const t=pt(Qt,e.__scopeMenu),o=mt(Qt,e.__scopeMenu),c=Ht(Qt,e.__scopeMenu),i=Mt(Qt,e.__scopeMenu),u=r.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=i,d={__scopeMenu:e.__scopeMenu},f=r.useCallback((()=>{u.current&&window.clearTimeout(u.current),u.current=null}),[]);return r.useEffect((()=>f),[f]),r.useEffect((()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}}),[s,l]),(0,a.jsx)(gt,{asChild:!0,...d,children:(0,a.jsx)(At,{id:c.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":c.contentId,"data-state":rr(t.open),...e,ref:S(n,c.onTriggerChange),onClick:n=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,n),e.disabled||n.defaultPrevented||(n.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:y(e.onPointerMove,ir((n=>{i.onItemEnter(n),n.defaultPrevented||e.disabled||t.open||u.current||(i.onPointerGraceIntentChange(null),u.current=window.setTimeout((()=>{t.onOpenChange(!0),f()}),100))}))),onPointerLeave:y(e.onPointerLeave,ir((e=>{var n;f();const r=null===(n=t.content)||void 0===n?void 0:n.getBoundingClientRect();if(r){var o;const n=null===(o=t.content)||void 0===o?void 0:o.dataset.side,c="right"===n,u=c?-5:5,a=r[c?"left":"right"],l=r[c?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+u,y:e.clientY},{x:a,y:r.top},{x:l,y:r.top},{x:l,y:r.bottom},{x:a,y:r.bottom}],side:n}),window.clearTimeout(s.current),s.current=window.setTimeout((()=>i.onPointerGraceIntentChange(null)),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}}))),onKeyDown:y(e.onKeyDown,(n=>{const r=""!==i.searchRef.current;var c;e.disabled||r&&" "===n.key||tt[o.dir].includes(n.key)&&(t.onOpenChange(!0),null===(c=t.content)||void 0===c||c.focus(),n.preventDefault())}))})})}));er.displayName=Qt;var nr="MenuSubContent",tr=r.forwardRef(((e,n)=>{const t=bt(Ct,e.__scopeMenu),{forceMount:o=t.forceMount,...c}=e,i=pt(Ct,e.__scopeMenu),u=mt(Ct,e.__scopeMenu),s=Ht(nr,e.__scopeMenu),l=r.useRef(null),d=N(n,l);return(0,a.jsx)(ct.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)(fe,{present:o||i.open,children:(0,a.jsx)(ct.Slot,{scope:e.__scopeMenu,children:(0,a.jsx)(Dt,{id:s.contentId,"aria-labelledby":s.triggerId,...c,ref:d,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var n;u.isUsingKeyboardRef.current&&(null===(n=l.current)||void 0===n||n.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:y(e.onFocusOutside,(e=>{e.target!==s.trigger&&i.onOpenChange(!1)})),onEscapeKeyDown:y(e.onEscapeKeyDown,(e=>{u.onClose(),e.preventDefault()})),onKeyDown:y(e.onKeyDown,(e=>{const n=e.currentTarget.contains(e.target),t=rt[u.dir].includes(e.key);var r;n&&t&&(i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())}))})})})})}));function rr(e){return e?"open":"closed"}function or(e){return"indeterminate"===e}function cr(e){return or(e)?"indeterminate":e?"checked":"unchecked"}function ir(e){return n=>"mouse"===n.pointerType?e(n):void 0}tr.displayName=nr;var ur=ht,ar=gt,sr=xt,lr=Rt,dr=jt,fr=kt,pr=It,vr=Ot,mr=$t,hr=Vt,gr=Xt,wr=Yt,yr=Zt,br=er,xr=tr,Cr=o[" useId ".trim().toString()]||(()=>{}),Er=0;
1function Mr(e){const[n,t]=r.useState(Cr());return l((()=>{e||t((e=>e??String(Er++)))}),[e]),e||(n?`radix-${n}`:"")}var Rr="DropdownMenu",[_r,Sr]=function(e,n=[]){let t=[];const o=()=>{const n=t.map((e=>r.createContext(e)));return function(t){const o=t?.[e]||n;return r.useMemo((()=>({[`__scope${e}`]:{...t,[e]:o}})),[t,o])}};return o.scopeName=e,[function(n,o){const c=r.createContext(o),i=t.length;t=[...t,o];const u=n=>{const{scope:t,children:o,...u}=n,s=t?.[e]?.[i]||c,l=r.useMemo((()=>u),Object.values(u));return(0,a.jsx)(s.Provider,{value:l,children:o})};return u.displayName=n+"Provider",[u,function(t,u){const a=u?.[e]?.[i]||c,s=r.useContext(a);if(s)return s;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},s(o,...n)]}(Rr,[st]),Nr=st(),[Dr,jr]=_r(Rr),kr=e=>{const{__scopeDropdownMenu:n,children:t,dir:o,open:c,defaultOpen:i,onOpenChange:u,modal:s=!0}=e,l=Nr(n),d=r.useRef(null),[p,v]=f({prop:c,defaultProp:null!==i&&void 0!==i&&i,onChange:u,caller:Rr});return(0,a.jsx)(Dr,{scope:n,triggerId:Mr(),triggerRef:d,contentId:Mr(),open:p,onOpenChange:v,onOpenToggle:r.useCallback((()=>v((e=>!e))),[v]),modal:s,children:(0,a.jsx)(ur,{...l,open:p,onOpenChange:v,dir:o,modal:s,children:t})})};kr.displayName=Rr;var Pr="DropdownMenuTrigger",Tr=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,disabled:r=!1,...o}=e,i=jr(Pr,t),s=Nr(t);return(0,a.jsx)(ar,{asChild:!0,...s,children:(0,a.jsx)(w.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":r?"":void 0,disabled:r,...o,ref:u(n,i.triggerRef),onPointerDown:c(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())})),onKeyDown:c(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})})}));Tr.displayName=Pr;var Ir=e=>{const{__scopeDropdownMenu:n,...t}=e,r=Nr(n);return(0,a.jsx)(sr,{...r,...t})};Ir.displayName="DropdownMenuPortal";var Ar="DropdownMenuContent",Or=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...o}=e,i=jr(Ar,t),u=Nr(t),s=r.useRef(!1);return(0,a.jsx)(lr,{id:i.contentId,"aria-labelledby":i.triggerId,...u,...o,ref:n,onCloseAutoFocus:c(e.onCloseAutoFocus,(e=>{var n;s.current||null===(n=i.triggerRef.current)||void 0===n||n.focus(),s.current=!1,e.preventDefault()})),onInteractOutside:c(e.onInteractOutside,(e=>{const n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey,r=2===n.button||t;i.modal&&!r||(s.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)"}})}));Or.displayName=Ar;var Fr=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(dr,{...o,...r,ref:n})}));Fr.displayName="DropdownMenuGroup";var Lr=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(fr,{...o,...r,ref:n})}));Lr.displayName="DropdownMenuLabel";var Wr=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(pr,{...o,...r,ref:n})}));Wr.displayName="DropdownMenuItem";var $r=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(vr,{...o,...r,ref:n})}));$r.displayName="DropdownMenuCheckboxItem";var Kr=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(mr,{...o,...r,ref:n})}));Kr.displayName="DropdownMenuRadioGroup";var Vr=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(hr,{...o,...r,ref:n})}));Vr.displayName="DropdownMenuRadioItem";var Ur=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(gr,{...o,...r,ref:n})}));Ur.displayName="DropdownMenuItemIndicator";var Br=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(wr,{...o,...r,ref:n})}));Br.displayName="DropdownMenuSeparator";var Gr=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(yr,{...o,...r,ref:n})}));
1Gr.displayName="DropdownMenuArrow";var Xr=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(br,{...o,...r,ref:n})}));Xr.displayName="DropdownMenuSubTrigger";var Yr=r.forwardRef(((e,n)=>{const{__scopeDropdownMenu:t,...r}=e,o=Nr(t);return(0,a.jsx)(xr,{...o,...r,ref:n,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)"}})}));Yr.displayName="DropdownMenuSubContent";var Zr=kr,zr=Tr,qr=Ir,Hr=Or,Jr=Lr,Qr=Wr,eo=Br}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.