import{r as e,R as t,a as n,v as r,b as o}from"./react-vendor-1IeSgoWF.js";var i={exports:{}},a={},s=e,c=Symbol.for("react.element"),l=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,d=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)u.call(t,r)&&!f.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:c,type:e,key:i,ref:a,props:o,_owner:d.current}}a.Fragment=l,a.jsx=p,a.jsxs=p,i.exports=a;var m=i.exports;function h(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function g(...e){return t=>{let n=!1;const r=e.map(e=>{const r=v(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():v(e[t],null)}}}}function y(...t){return e.useCallback(g(...t),t)}function w(t,n=[]){let r=[];const o=()=>{const n=r.map(t=>e.createContext(t));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo(()=>({[`__scope${t}`]:{...r,[t]:o}}),[r,o])}};return o.scopeName=t,[function(n,o){const i=e.createContext(o),a=r.length;r=[...r,o];const s=n=>{var r;const{scope:o,children:s,...c}=n,l=(null==(r=null==o?void 0:o[t])?void 0:r[a])||i,u=e.useMemo(()=>c,Object.values(c));return m.jsx(l.Provider,{value:u,children:s})};return s.displayName=n+"Provider",[s,function(r,s){var c;const l=(null==(c=null==s?void 0:s[t])?void 0:c[a])||i,u=e.useContext(l);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},b(o,...n)]}function b(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const o=r.reduce((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]}),{});return e.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}function x(t){const n=E(t),r=e.forwardRef((t,r)=>{const{children:o,...i}=t,a=e.Children.toArray(o),s=a.find(D);if(s){const t=s.props.children,o=a.map(n=>n===s?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n);return m.jsx(n,{...i,ref:r,children:e.isValidElement(t)?e.cloneElement(t,void 0,o):null})}return m.jsx(n,{...i,ref:r,children:o})});return r.displayName=`${t}.Slot`,r}var R=x("Slot");function E(t){const n=e.forwardRef((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(r),i=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,r.props);return r.type!==e.Fragment&&(i.ref=n?g(n,t):t),e.cloneElement(r,i)}return e.Children.count(r)>1?e.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var C=Symbol("radix.slottable");function _(e){const t=({children:e})=>m.jsx(m.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=C,t}function D(t){return e.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===C}function M(e){const n=e+"CollectionProvider",[r,o]=w(n),[i,a]=r(n,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return m.jsx(i,{scope:n,itemMap:a,collectionRef:o,children:r})};s.displayName=n;const c=e+"CollectionSlot",l=x(c),u=t.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=y(t,a(c,n).collectionRef);return m.jsx(l,{ref:o,children:r})});u.displayName=c;const d=e+"CollectionItemSlot",f="data-radix-collection-item",p=x(d),h=t.forwardRef((e,n)=>{const{scope:r,children:o,...i}=e,s=t.useRef(null),c=y(n,s),l=a(d,r);return t.useEffect(()=>(l.itemMap.set(s,{ref:s,...i}),()=>{l.itemMap.delete(s)})),m.jsx(p,{[f]:"",ref:c,children:o})});return h.displayName=d,[{Provider:s,Slot:u,ItemSlot:h},function(n){const r=a(e+"CollectionConsumer",n);return t.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},o]}var S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((t,n)=>{const r=x(`Primitive.${n}`),o=e.forwardRef((e,t)=>{const{asChild:o,...i}=e,a=o?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),m.jsx(a,{...i,ref:t})});return o.displayName=`Primitive.${n}`,{...t,[n]:o}},{});function A(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}function O(t){const n=e.useRef(t);return e.useEffect(()=>{n.current=t}),e.useMemo(()=>(...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)},[])}var P,j="dismissableLayer.update",T="dismissableLayer.pointerDownOutside",N="dismissableLayer.focusOutside",I=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),k=e.forwardRef((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...l}=t,u=e.useContext(I),[d,f]=e.useState(null),p=(null==d?void 0:d.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,v]=e.useState({}),g=y(n,e=>f(e)),w=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),x=w.indexOf(b),R=d?w.indexOf(d):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,C=R>=x,_=function(t,n=(null==globalThis?void 0:globalThis.document)){const r=O(t),o=e.useRef(!1),i=e.useRef(()=>{});return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){let t=function(){W(T,r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{const t=e.target,n=[...u.branches].some(e=>e.contains(t));C&&!n&&(null==i||i(e),null==s||s(e),e.defaultPrevented||null==c||c())},p),D=function(t,n=(null==globalThis?void 0:globalThis.document)){const r=O(t),o=e.useRef(!1);return e.useEffect(()=>{const e=e=>{if(e.target&&!o.current){W(N,r,{originalEvent:e},{discrete:!1})}};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==c||c())},p);return function(t,n=(null==globalThis?void 0:globalThis.document)){const r=O(t);e.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})},[r,n])}(e=>{R===u.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},p),e.useEffect(()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(P=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),F(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=P)}},[d,p,r,u]),e.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),F())},[d,u]),e.useEffect(()=>{const e=()=>v({});return document.addEventListener(j,e),()=>document.removeEventListener(j,e)},[]),m.jsx(S.div,{...l,ref:g,style:{pointerEvents:E?C?"auto":"none":void 0,...t.style},onFocusCapture:h(t.onFocusCapture,D.onFocusCapture),onBlurCapture:h(t.onBlurCapture,D.onBlurCapture),onPointerDownCapture:h(t.onPointerDownCapture,_.onPointerDownCapture)})});k.displayName="DismissableLayer";var L=e.forwardRef((t,n)=>{const r=e.useContext(I),o=e.useRef(null),i=y(n,o);return e.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),m.jsx(S.div,{...t,ref:i})});function F(){const e=new CustomEvent(j);document.dispatchEvent(e)}function W(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?A(o,i):o.dispatchEvent(i)}L.displayName="DismissableLayerBranch";var B=k,K=L,$=(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},H=e.forwardRef((t,n)=>{var o;const{container:i,...a}=t,[s,c]=e.useState(!1);$(()=>c(!0),[]);const l=i||s&&(null==(o=null==globalThis?void 0:globalThis.document)?void 0:o.body);return l?r.createPortal(m.jsx(S.div,{...a,ref:n}),l):null});H.displayName="Portal";var V=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef(null),i=e.useRef(t),a=e.useRef("none"),s=t?"mounted":"unmounted",[c,l]=function(t,n){return e.useReducer((e,t)=>n[e][t]??e,t)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return e.useEffect(()=>{const e=U(o.current);a.current="mounted"===c?e:"none"},[c]),$(()=>{const e=o.current,n=i.current;if(n!==t){const r=a.current,o=U(e);if(t)l("MOUNT");else if("none"===o||"none"===(null==e?void 0:e.display))l("UNMOUNT");else{l(n&&r!==o?"ANIMATION_OUT":"UNMOUNT")}i.current=t}},[t,l]),$(()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const a=U(o.current).includes(r.animationName);if(r.target===n&&a&&(l("ANIMATION_END"),!i.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)})}},s=e=>{e.target===n&&(a.current=U(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}l("ANIMATION_END")},[n,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback(e=>{o.current=e?getComputedStyle(e):null,r(e)},[])}}(n),i="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),a=y(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;if(o)return e.ref;if(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o)return e.props.ref;return e.props.ref||e.ref}(i));return"function"==typeof r||o.isPresent?e.cloneElement(i,{ref:a}):null};function U(e){return(null==e?void 0:e.animationName)||"none"}V.displayName="Presence";var z=o[" useInsertionEffect ".trim().toString()]||$;function G({prop:t,defaultProp:n,onChange:r=()=>{},caller:o}){const[i,a,s]=function({defaultProp:t,onChange:n}){const[r,o]=e.useState(t),i=e.useRef(r),a=e.useRef(n);return z(()=>{a.current=n},[n]),e.useEffect(()=>{var e;i.current!==r&&(null==(e=a.current)||e.call(a,r),i.current=r)},[r,i]),[r,o,a]}({defaultProp:n,onChange:r}),c=void 0!==t,l=c?t:i;{const n=e.useRef(void 0!==t);e.useEffect(()=>{const e=n.current;if(e!==c){}n.current=c},[c,o])}const u=e.useCallback(e=>{var n;if(c){const r=function(e){return"function"==typeof e}(e)?e(t):e;r!==t&&(null==(n=s.current)||n.call(s,r))}else a(e)},[c,t,a,s]);return[l,u]}var X=o[" useId ".trim().toString()]||(()=>{}),Y=0;function q(t){const[n,r]=e.useState(X());return $(()=>{r(e=>e??String(Y++))},[t]),t||(n?`radix-${n}`:"")}const Z=["top","right","bottom","left"],J=Math.min,Q=Math.max,ee=Math.round,te=Math.floor,ne=e=>({x:e,y:e}),re={left:"right",right:"left",bottom:"top",top:"bottom"},oe={start:"end",end:"start"};function ie(e,t,n){return Q(e,J(t,n))}function ae(e,t){return"function"==typeof e?e(t):e}function se(e){return e.split("-")[0]}function ce(e){return e.split("-")[1]}function le(e){return"x"===e?"y":"x"}function ue(e){return"y"===e?"height":"width"}const de=new Set(["top","bottom"]);function fe(e){return de.has(se(e))?"y":"x"}function pe(e){return le(fe(e))}function me(e){return e.replace(/start|end/g,e=>oe[e])}const he=["left","right"],ve=["right","left"],ge=["top","bottom"],ye=["bottom","top"];function we(e,t,n,r){const o=ce(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ve:he:t?he:ve;case"left":case"right":return t?ge:ye;default:return[]}}(se(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(me)))),i}function be(e){return e.replace(/left|right|bottom|top/g,e=>re[e])}function xe(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Re(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ee(e,t,n){let{reference:r,floating:o}=e;const i=fe(t),a=pe(t),s=ue(a),c=se(t),l="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ce(t)){case"start":p[a]-=f*(n&&l?-1:1);break;case"end":p[a]+=f*(n&&l?-1:1)}return p}async function Ce(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ae(t,e),m=xe(p),h=s[f?"floating"===d?"reference":"floating":d],v=Re(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:u,strategy:c})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=Re(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:c}):g);return{top:(v.top-b.top+m.top)/w.y,bottom:(b.bottom-v.bottom+m.bottom)/w.y,left:(v.left-b.left+m.left)/w.x,right:(b.right-v.right+m.right)/w.x}}function _e(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function De(e){return Z.some(t=>e[t]>=0)}const Me=new Set(["left","top"]);function Se(){return"undefined"!=typeof window}function Ae(e){return je(e)?(e.nodeName||"").toLowerCase():"#document"}function Oe(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Pe(e){var t;return null==(t=(je(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function je(e){return!!Se()&&(e instanceof Node||e instanceof Oe(e).Node)}function Te(e){return!!Se()&&(e instanceof Element||e instanceof Oe(e).Element)}function Ne(e){return!!Se()&&(e instanceof HTMLElement||e instanceof Oe(e).HTMLElement)}function Ie(e){return!(!Se()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Oe(e).ShadowRoot)}const ke=new Set(["inline","contents"]);function Le(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ye(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!ke.has(o)}const Fe=new Set(["table","td","th"]);function We(e){return Fe.has(Ae(e))}const Be=[":popover-open",":modal"];function Ke(e){return Be.some(t=>{try{return e.matches(t)}catch(n){return!1}})}const $e=["transform","translate","scale","rotate","perspective"],He=["transform","translate","scale","rotate","perspective","filter"],Ve=["paint","layout","strict","content"];function Ue(e){const t=ze(),n=Te(e)?Ye(e):e;return $e.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||He.some(e=>(n.willChange||"").includes(e))||Ve.some(e=>(n.contain||"").includes(e))}function ze(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Ge=new Set(["html","body","#document"]);function Xe(e){return Ge.has(Ae(e))}function Ye(e){return Oe(e).getComputedStyle(e)}function qe(e){return Te(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ze(e){if("html"===Ae(e))return e;const t=e.assignedSlot||e.parentNode||Ie(e)&&e.host||Pe(e);return Ie(t)?t.host:t}function Je(e){const t=Ze(e);return Xe(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ne(t)&&Le(t)?t:Je(t)}function Qe(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Je(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Oe(o);if(i){const e=et(a);return t.concat(a,a.visualViewport||[],Le(o)?o:[],e&&n?Qe(e):[])}return t.concat(o,Qe(o,[],n))}function et(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tt(e){const t=Ye(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ne(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=ee(n)!==i||ee(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function nt(e){return Te(e)?e:e.contextElement}function rt(e){const t=nt(e);if(!Ne(t))return ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tt(t);let a=(i?ee(n.width):n.width)/r,s=(i?ee(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ot=ne(0);function it(e){const t=Oe(e);return ze()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ot}function at(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=nt(e);let a=ne(1);t&&(r?Te(r)&&(a=rt(r)):a=rt(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Oe(e))&&t}(i,n,r)?it(i):ne(0);let c=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Oe(i),t=r&&Te(r)?Oe(r):r;let n=e,o=et(n);for(;o&&r&&t!==n;){const e=rt(o),t=o.getBoundingClientRect(),r=Ye(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=i,l+=a,n=Oe(o),o=et(n)}}return Re({width:u,height:d,x:c,y:l})}function st(e,t){const n=qe(e).scrollLeft;return t?t.left+n:at(Pe(e)).left+n}function ct(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:st(e,r)),y:r.top+t.scrollTop}}const lt=new Set(["absolute","fixed"]);function ut(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Oe(e),r=Pe(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=ze();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=Pe(e),n=qe(e),r=e.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+st(e);const s=-n.scrollTop;return"rtl"===Ye(r).direction&&(a+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(Pe(e));else if(Te(t))r=function(e,t){const n=at(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Ne(e)?rt(e):ne(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=it(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Re(r)}function dt(e,t){const n=Ze(e);return!(n===t||!Te(n)||Xe(n))&&("fixed"===Ye(n).position||dt(n,t))}function ft(e,t,n){const r=Ne(t),o=Pe(t),i="fixed"===n,a=at(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=ne(0);function l(){c.x=st(o)}if(r||!r&&!i)if(("body"!==Ae(t)||Le(o))&&(s=qe(t)),r){const e=at(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&l();i&&!r&&o&&l();const u=!o||r||i?ne(0):ct(o,s);return{x:a.left+s.scrollLeft-c.x-u.x,y:a.top+s.scrollTop-c.y-u.y,width:a.width,height:a.height}}function pt(e){return"static"===Ye(e).position}function mt(e,t){if(!Ne(e)||"fixed"===Ye(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Pe(e)===n&&(n=n.ownerDocument.body),n}function ht(e,t){const n=Oe(e);if(Ke(e))return n;if(!Ne(e)){let t=Ze(e);for(;t&&!Xe(t);){if(Te(t)&&!pt(t))return t;t=Ze(t)}return n}let r=mt(e,t);for(;r&&We(r)&&pt(r);)r=mt(r,t);return r&&Xe(r)&&pt(r)&&!Ue(r)?n:r||function(e){let t=Ze(e);for(;Ne(t)&&!Xe(t);){if(Ue(t))return t;if(Ke(t))return null;t=Ze(t)}return null}(e)||n}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=Pe(r),s=!!t&&Ke(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},l=ne(1);const u=ne(0),d=Ne(r);if((d||!d&&!i)&&(("body"!==Ae(r)||Le(a))&&(c=qe(r)),Ne(r))){const e=at(r);l=rt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!a||d||i?ne(0):ct(a,c,!0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}},getDocumentElement:Pe,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Ke(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Qe(e,[],!1).filter(e=>Te(e)&&"body"!==Ae(e)),o=null;const i="fixed"===Ye(e).position;let a=i?Ze(e):e;for(;Te(a)&&!Xe(a);){const t=Ye(a),n=Ue(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&<.has(o.position)||Le(a)&&!n&&dt(e,a))?r=r.filter(e=>e!==a):o=t,a=Ze(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{const r=ut(t,n,o);return e.top=Q(r.top,e.top),e.right=J(r.right,e.right),e.bottom=J(r.bottom,e.bottom),e.left=Q(r.left,e.left),e},ut(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ht,getElementRects:async function(e){const t=this.getOffsetParent||ht,n=this.getDimensions,r=await n(e.floating);return{reference:ft(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=tt(e);return{width:t,height:n}},getScale:rt,isElement:Te,isRTL:function(e){return"rtl"===Ye(e).direction}};function gt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yt(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=nt(e),u=o||i?[...l?Qe(l):[],...Qe(t)]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=l&&s?function(e,t){let n,r=null;const o=Pe(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,c){void 0===s&&(s=!1),void 0===c&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;const m={rootMargin:-te(d)+"px "+-te(o.clientWidth-(u+f))+"px "+-te(o.clientHeight-(d+p))+"px "+-te(u)+"px",threshold:Q(0,J(1,c))||1};let h=!0;function v(t){const r=t[0].intersectionRatio;if(r!==c){if(!h)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||gt(l,e.getBoundingClientRect())||a(),h=!1}try{r=new IntersectionObserver(v,{...m,root:o.ownerDocument})}catch(g){r=new IntersectionObserver(v,m)}r.observe(e)}(!0),i}(l,n):null;let f,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let h=c?at(e):null;return c&&function t(){const r=at(e);h&&!gt(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(f)}}const wt=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=se(n),s=ce(n),c="y"===fe(n),l=Me.has(a)?-1:1,u=i&&c?-1:1,d=ae(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}},bt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=ae(e,t),l={x:n,y:r},u=await Ce(t,c),d=fe(se(o)),f=le(d);let p=l[f],m=l[d];if(i){const e="y"===f?"bottom":"right";p=ie(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";m=ie(m+u["y"===d?"top":"left"],m,m-u[e])}const h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:a}}}}}},xt=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=ae(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const g=se(o),y=fe(s),w=se(s)===s,b=await(null==c.isRTL?void 0:c.isRTL(l.floating)),x=f||(w||!h?[be(s)]:function(e){const t=be(e);return[me(e),t,me(t)]}(s)),R="none"!==m;!f&&R&&x.push(...we(s,h,m,b));const E=[s,...x],C=await Ce(t,v),_=[];let D=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&_.push(C[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ce(e),o=pe(e),i=ue(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=be(a)),[a,be(a)]}(o,a,b);_.push(C[e[0]],C[e[1]])}if(D=[...D,{placement:o,overflows:_}],!_.every(e=>e<=0)){var M,S;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=E[e];if(t){if(!("alignment"===d&&y!==fe(t))||D.every(e=>e.overflows[0]>0&&fe(e.placement)===y))return{data:{index:e,overflows:D},reset:{placement:t}}}let n=null==(S=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=D.filter(e=>{if(R){const t=fe(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Rt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:c=()=>{},...l}=ae(e,t),u=await Ce(t,l),d=se(o),f=ce(o),p="y"===fe(o),{width:m,height:h}=i.floating;let v,g;"top"===d||"bottom"===d?(v=d,g=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,v="end"===f?"top":"bottom");const y=h-u.top-u.bottom,w=m-u.left-u.right,b=J(h-u[v],y),x=J(m-u[g],w),R=!t.middlewareData.shift;let E=b,C=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=w),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(E=y),R&&!f){const e=Q(u.left,0),t=Q(u.right,0),n=Q(u.top,0),r=Q(u.bottom,0);p?C=m-2*(0!==e||0!==t?e+t:Q(u.left,u.right)):E=h-2*(0!==n||0!==r?n+r:Q(u.top,u.bottom))}await c({...t,availableWidth:C,availableHeight:E});const _=await a.getDimensions(s.floating);return m!==_.width||h!==_.height?{reset:{rects:!0}}:{}}}},Et=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ae(e,t);switch(r){case"referenceHidden":{const e=_e(await Ce(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:De(e)}}}case"escaped":{const e=_e(await Ce(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:De(e)}}}default:return{}}}}},Ct=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=ae(e,t)||{};if(null==l)return{};const d=xe(u),f={x:n,y:r},p=pe(o),m=ue(p),h=await a.getDimensions(l),v="y"===p,g=v?"top":"left",y=v?"bottom":"right",w=v?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-f[p]-i.floating[m],x=f[p]-i.reference[p],R=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l));let E=R?R[w]:0;E&&await(null==a.isElement?void 0:a.isElement(R))||(E=s.floating[w]||i.floating[m]);const C=b/2-x/2,_=E/2-h[m]/2-1,D=J(d[g],_),M=J(d[y],_),S=D,A=E-h[m]-M,O=E/2-h[m]/2+C,P=ie(S,O,A),j=!c.arrow&&null!=ce(o)&&O!==P&&i.reference[m]/2-(O<S?D:M)-h[m]/2<0,T=j?O<S?O-S:O-A:0;return{[p]:f[p]+T,data:{[p]:P,centerOffset:O-P-T,...j&&{alignmentOffset:T}},reset:j}}}),_t=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=ae(e,t),u={x:n,y:r},d=fe(o),f=le(d);let p=u[f],m=u[d];const h=ae(s,t),v="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){var g,y;const e="y"===f?"width":"height",t=Me.has(se(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Dt=(e,t,n)=>{const r=new Map,o={platform:vt,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ee(l,r,c),f=r,p={},m=0;for(let h=0;h<s.length;h++){const{name:n,fn:i}=s[h],{x:v,y:g,data:y,reset:w}=await i({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:l,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=g?g:d,p={...p,[n]:{...p[n],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(l=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:u,y:d}=Ee(l,f,c))),h=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Mt="undefined"!=typeof document?e.useLayoutEffect:function(){};function St(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!St(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!St(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function At(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ot(e,t){const n=At(e);return Math.round(t*n)/n}function Pt(t){const n=e.useRef(t);return Mt(()=>{n.current=t}),n}const jt=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Ct({element:n.current,padding:r}).fn(t):{}:n?Ct({element:n,padding:r}).fn(t):{};var o}}),Tt=(e,t)=>({...wt(e),options:[e,t]}),Nt=(e,t)=>({...bt(e),options:[e,t]}),It=(e,t)=>({..._t(e),options:[e,t]}),kt=(e,t)=>({...xt(e),options:[e,t]}),Lt=(e,t)=>({...Rt(e),options:[e,t]}),Ft=(e,t)=>({...Et(e),options:[e,t]}),Wt=(e,t)=>({...jt(e),options:[e,t]});var Bt=e.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return m.jsx(S.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Bt.displayName="Arrow";var Kt=Bt;function $t(t){const[n,r]=e.useState(void 0);return $(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const e=new ResizeObserver(e=>{if(!Array.isArray(e))return;if(!e.length)return;const n=e[0];let o,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=t.offsetWidth,i=t.offsetHeight;r({width:o,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}r(void 0)},[t]),n}var Ht="Popper",[Vt,Ut]=w(Ht),[zt,Gt]=Vt(Ht),Xt=t=>{const{__scopePopper:n,children:r}=t,[o,i]=e.useState(null);return m.jsx(zt,{scope:n,anchor:o,onAnchorChange:i,children:r})};Xt.displayName=Ht;var Yt="PopperAnchor",qt=e.forwardRef((t,n)=>{const{__scopePopper:r,virtualRef:o,...i}=t,a=Gt(Yt,r),s=e.useRef(null),c=y(n,s);return e.useEffect(()=>{a.onAnchorChange((null==o?void 0:o.current)||s.current)}),o?null:m.jsx(S.div,{...i,ref:c})});qt.displayName=Yt;var Zt="PopperContent",[Jt,Qt]=Vt(Zt),en=e.forwardRef((t,r)=>{var o,i,a,s,c,l;const{__scopePopper:u,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:v=0,avoidCollisions:g=!0,collisionBoundary:w=[],collisionPadding:b=0,sticky:x="partial",hideWhenDetached:R=!1,updatePositionStrategy:E="optimized",onPlaced:C,..._}=t,D=Gt(Zt,u),[M,A]=e.useState(null),P=y(r,e=>A(e)),[j,T]=e.useState(null),N=$t(j),I=(null==N?void 0:N.width)??0,k=(null==N?void 0:N.height)??0,L=d+("center"!==p?"-"+p:""),F="number"==typeof b?b:{top:0,right:0,bottom:0,left:0,...b},W=Array.isArray(w)?w:[w],B=W.length>0,K={padding:F,boundary:W.filter(on),altBoundary:B},{refs:H,floatingStyles:V,placement:U,isPositioned:z,middlewareData:G}=function(t){void 0===t&&(t={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a,elements:{reference:s,floating:c}={},transform:l=!0,whileElementsMounted:u,open:d}=t,[f,p]=e.useState({x:0,y:0,strategy:o,placement:r,middlewareData:{},isPositioned:!1}),[m,h]=e.useState(i);St(m,i)||h(i);const[v,g]=e.useState(null),[y,w]=e.useState(null),b=e.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=e.useCallback(e=>{e!==_.current&&(_.current=e,w(e))},[]),R=s||v,E=c||y,C=e.useRef(null),_=e.useRef(null),D=e.useRef(f),M=null!=u,S=Pt(u),A=Pt(a),O=Pt(d),P=e.useCallback(()=>{if(!C.current||!_.current)return;const e={placement:r,strategy:o,middleware:m};A.current&&(e.platform=A.current),Dt(C.current,_.current,e).then(e=>{const t={...e,isPositioned:!1!==O.current};j.current&&!St(D.current,t)&&(D.current=t,n.flushSync(()=>{p(t)}))})},[m,r,o,A,O]);Mt(()=>{!1===d&&D.current.isPositioned&&(D.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const j=e.useRef(!1);Mt(()=>(j.current=!0,()=>{j.current=!1}),[]),Mt(()=>{if(R&&(C.current=R),E&&(_.current=E),R&&E){if(S.current)return S.current(R,E,P);P()}},[R,E,P,S,M]);const T=e.useMemo(()=>({reference:C,floating:_,setReference:b,setFloating:x}),[b,x]),N=e.useMemo(()=>({reference:R,floating:E}),[R,E]),I=e.useMemo(()=>{const e={position:o,left:0,top:0};if(!N.floating)return e;const t=Ot(N.floating,f.x),n=Ot(N.floating,f.y);return l?{...e,transform:"translate("+t+"px, "+n+"px)",...At(N.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:t,top:n}},[o,l,N.floating,f.x,f.y]);return e.useMemo(()=>({...f,update:P,refs:T,elements:N,floatingStyles:I}),[f,P,T,N,I])}({strategy:"fixed",placement:L,whileElementsMounted:(...e)=>yt(...e,{animationFrame:"always"===E}),elements:{reference:D.anchor},middleware:[Tt({mainAxis:f+k,alignmentAxis:h}),g&&Nt({mainAxis:!0,crossAxis:!1,limiter:"partial"===x?It():void 0,...K}),g&&kt({...K}),Lt({...K,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),j&&Wt({element:j,padding:v}),an({arrowWidth:I,arrowHeight:k}),R&&Ft({strategy:"referenceHidden",...K})]}),[X,Y]=sn(U),q=O(C);$(()=>{z&&(null==q||q())},[z,q]);const Z=null==(o=G.arrow)?void 0:o.x,J=null==(i=G.arrow)?void 0:i.y,Q=0!==(null==(a=G.arrow)?void 0:a.centerOffset),[ee,te]=e.useState();return $(()=>{M&&te(window.getComputedStyle(M).zIndex)},[M]),m.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:z?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null==(s=G.transformOrigin)?void 0:s.x,null==(c=G.transformOrigin)?void 0:c.y].join(" "),...(null==(l=G.hide)?void 0:l.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:m.jsx(Jt,{scope:u,placedSide:X,onArrowChange:T,arrowX:Z,arrowY:J,shouldHideArrow:Q,children:m.jsx(S.div,{"data-side":X,"data-align":Y,..._,ref:P,style:{..._.style,animation:z?void 0:"none"}})})})});en.displayName=Zt;var tn="PopperArrow",nn={top:"bottom",right:"left",bottom:"top",left:"right"},rn=e.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Qt(tn,n),i=nn[o.placedSide];return m.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:m.jsx(Kt,{...r,ref:t,style:{...r.style,display:"block"}})})});function on(e){return null!==e}rn.displayName=tn;var an=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:a,middlewareData:s}=t,c=0!==(null==(n=s.arrow)?void 0:n.centerOffset),l=c?0:e.arrowWidth,u=c?0:e.arrowHeight,[d,f]=sn(i),p={start:"0%",center:"50%",end:"100%"}[f],m=((null==(r=s.arrow)?void 0:r.x)??0)+l/2,h=((null==(o=s.arrow)?void 0:o.y)??0)+u/2;let v="",g="";return"bottom"===d?(v=c?p:`${m}px`,g=-u+"px"):"top"===d?(v=c?p:`${m}px`,g=`${a.floating.height+u}px`):"right"===d?(v=-u+"px",g=c?p:`${h}px`):"left"===d&&(v=`${a.floating.width+u}px`,g=c?p:`${h}px`),{data:{x:v,y:g}}}});function sn(e){const[t,n="center"]=e.split("-");return[t,n]}var cn=Xt,ln=qt,un=en,dn=rn,fn=function(){return fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},fn.apply(this,arguments)};function pn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function mn(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((r=r.apply(e,t||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;var hn=e.createContext(void 0);function vn(t){const n=e.useContext(hn);return t||n||"ltr"}var gn=0;function yn(){e.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??wn()),document.body.insertAdjacentElement("beforeend",e[1]??wn()),gn++,()=>{1===gn&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),gn--}},[])}function wn(){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}var bn="focusScope.autoFocusOnMount",xn="focusScope.autoFocusOnUnmount",Rn={bubbles:!1,cancelable:!0},En=e.forwardRef((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=t,[c,l]=e.useState(null),u=O(i),d=O(a),f=e.useRef(null),p=y(n,e=>l(e)),h=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect(()=>{if(o){let e=function(e){if(h.paused||!c)return;const t=e.target;c.contains(t)?f.current=t:Mn(f.current,{select:!0})},t=function(e){if(h.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||Mn(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Mn(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,c,h.paused]),e.useEffect(()=>{if(c){Sn.add(h);const t=document.activeElement;if(!c.contains(t)){const n=new CustomEvent(bn,Rn);c.addEventListener(bn,u),c.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Mn(r,{select:t}),document.activeElement!==n)return}((e=Cn(c),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Mn(c))}return()=>{c.removeEventListener(bn,u),setTimeout(()=>{const e=new CustomEvent(xn,Rn);c.addEventListener(xn,d),c.dispatchEvent(e),e.defaultPrevented||Mn(t??document.body,{select:!0}),c.removeEventListener(xn,d),Sn.remove(h)},0)}}var e},[c,u,d,h]);const v=e.useCallback(e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,i]=function(e){const t=Cn(e),n=_n(t,e),r=_n(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||n!==i?e.shiftKey&&n===o&&(e.preventDefault(),r&&Mn(i,{select:!0})):(e.preventDefault(),r&&Mn(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return m.jsx(S.div,{tabIndex:-1,...s,ref:p,onKeyDown:v})});function Cn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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 _n(e,t){for(const n of e)if(!Dn(n,{upTo:t}))return n}function Dn(e,{upTo:t}){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 Mn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}En.displayName="FocusScope";var Sn=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=An(e,t),e.unshift(t)},remove(t){var n;e=An(e,t),null==(n=e[0])||n.resume()}}}();function An(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var On="rovingFocusGroup.onEntryFocus",Pn={bubbles:!1,cancelable:!0},jn="RovingFocusGroup",[Tn,Nn,In]=M(jn),[kn,Ln]=w(jn,[In]),[Fn,Wn]=kn(jn),Bn=e.forwardRef((e,t)=>m.jsx(Tn.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Tn.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Kn,{...e,ref:t})})}));Bn.displayName=jn;var Kn=e.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:i=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...f}=t,p=e.useRef(null),v=y(n,p),g=vn(a),[w,b]=G({prop:s,defaultProp:c??null,onChange:l,caller:jn}),[x,R]=e.useState(!1),E=O(u),C=Nn(r),_=e.useRef(!1),[D,M]=e.useState(0);return e.useEffect(()=>{const e=p.current;if(e)return e.addEventListener(On,E),()=>e.removeEventListener(On,E)},[E]),m.jsx(Fn,{scope:r,orientation:o,dir:g,loop:i,currentTabStopId:w,onItemFocus:e.useCallback(e=>b(e),[b]),onItemShiftTab:e.useCallback(()=>R(!0),[]),onFocusableItemAdd:e.useCallback(()=>M(e=>e+1),[]),onFocusableItemRemove:e.useCallback(()=>M(e=>e-1),[]),children:m.jsx(S.div,{tabIndex:x||0===D?-1:0,"data-orientation":o,...f,ref:v,style:{outline:"none",...t.style},onMouseDown:h(t.onMouseDown,()=>{_.current=!0}),onFocus:h(t.onFocus,e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!x){const t=new CustomEvent(On,Pn);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=C().filter(e=>e.focusable);Un([e.find(e=>e.active),e.find(e=>e.id===w),...e].filter(Boolean).map(e=>e.ref.current),d)}}_.current=!1}),onBlur:h(t.onBlur,()=>R(!1))})})}),$n="RovingFocusGroupItem",Hn=e.forwardRef((t,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:a,children:s,...c}=t,l=q(),u=a||l,d=Wn($n,r),f=d.currentTabStopId===u,p=Nn(r),{onFocusableItemAdd:v,onFocusableItemRemove:g,currentTabStopId:y}=d;return e.useEffect(()=>{if(o)return v(),()=>g()},[o,v,g]),m.jsx(Tn.ItemSlot,{scope:r,id:u,focusable:o,active:i,children:m.jsx(S.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...c,ref:n,onMouseDown:h(t.onMouseDown,e=>{o?d.onItemFocus(u):e.preventDefault()}),onFocus:h(t.onFocus,()=>d.onItemFocus(u)),onKeyDown:h(t.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void d.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Vn[r]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=d.loop?(r=i+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>Un(o))}var n,r}),children:"function"==typeof s?s({isCurrentTabStop:f,hasTabStop:null!=y}):s})})});Hn.displayName=$n;var Vn={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Un(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var zn=Bn,Gn=Hn,Xn=new WeakMap,Yn=new WeakMap,qn={},Zn=0,Jn=function(e){return e&&(e.host||Jn(e.parentNode))},Qn=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Jn(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);qn[n]||(qn[n]=new WeakMap);var i=qn[n],a=[],s=new Set,c=new Set(o),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};o.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(Xn.get(e)||0)+1,l=(i.get(e)||0)+1;Xn.set(e,c),i.set(e,l),a.push(e),1===c&&o&&Yn.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(d){}})};return u(t),s.clear(),Zn++,function(){a.forEach(function(e){var t=Xn.get(e)-1,o=i.get(e)-1;Xn.set(e,t),i.set(e,o),t||(Yn.has(e)||e.removeAttribute(r),Yn.delete(e)),o||e.removeAttribute(n)}),--Zn||(Xn=new WeakMap,Xn=new WeakMap,Yn=new WeakMap,qn={})}},er=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Qn(r,o,n,"aria-hidden")):function(){return null}},tr="right-scroll-bar-position",nr="width-before-scroll-bar";function rr(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var or="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ir=new WeakMap;function ar(t,n){var r,o,i,a=(r=null,o=function(e){return t.forEach(function(t){return rr(t,e)})},(i=e.useState(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return or(function(){var e=ir.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach(function(e){r.has(e)||rr(e,null)}),r.forEach(function(e){n.has(e)||rr(e,o)})}ir.set(a,t)},[t]),a}function sr(e){return e}var cr=function(t){var n=t.sideCar,r=pn(t,["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 e.createElement(o,fn({},r))};cr.isSideCarExport=!0;var lr=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=sr);var n=[],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 n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=fn({async:!0,ssr:!1},e),t}(),ur=function(){},dr=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:ur,onWheelCapture:ur,onTouchMoveCapture:ur}),i=o[0],a=o[1],s=t.forwardProps,c=t.children,l=t.className,u=t.removeScrollBar,d=t.enabled,f=t.shards,p=t.sideCar,m=t.noRelative,h=t.noIsolation,v=t.inert,g=t.allowPinchZoom,y=t.as,w=void 0===y?"div":y,b=t.gapMode,x=pn(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=p,E=ar([r,n]),C=fn(fn({},x),i);return e.createElement(e.Fragment,null,d&&e.createElement(R,{sideCar:lr,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:v,setCallbacks:a,allowPinchZoom:!!g,lockRef:r,gapMode:b}),s?e.cloneElement(e.Children.only(c),fn(fn({},C),{ref:E})):e.createElement(w,fn({},C,{className:l,ref:E}),c))});dr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},dr.classNames={fullWidth:nr,zeroRight:tr};function fr(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var pr=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=fr())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},mr=function(){var t,n=(t=pr(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},hr={left:0,top:0,right:0,gap:0},vr=function(e){return parseInt(e||"",10)||0},gr=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return hr;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[vr(n),vr(r),vr(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},yr=mr(),wr="data-scroll-locked",br=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(wr,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(tr," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(nr," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(tr," .").concat(tr," {\n right: 0 ").concat(r,";\n }\n \n .").concat(nr," .").concat(nr," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(wr,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},xr=function(){var e=parseInt(document.body.getAttribute(wr)||"0",10);return isFinite(e)?e:0},Rr=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(wr,(xr()+1).toString()),function(){var e=xr()-1;e<=0?document.body.removeAttribute(wr):document.body.setAttribute(wr,e.toString())}},[]);var a=e.useMemo(function(){return gr(i)},[i]);return e.createElement(yr,{styles:br(a,!n,i,r?"":"!important")})},Er=!1;if("undefined"!=typeof window)try{var Cr=Object.defineProperty({},"passive",{get:function(){return Er=!0,!0}});window.addEventListener("test",Cr,Cr),window.removeEventListener("test",Cr,Cr)}catch(Fs){Er=!1}var _r=!!Er&&{passive:!1},Dr=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Mr=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Sr(e,r)){var o=Ar(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Sr=function(e,t){return"v"===e?function(e){return Dr(e,"overflowY")}(t):function(e){return Dr(e,"overflowX")}(t)},Ar=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Or=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pr=function(e){return[e.deltaX,e.deltaY]},jr=function(e){return e&&"current"in e?e.current:e},Tr=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Nr=0,Ir=[];function kr(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Lr=(Fr=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(Nr++)[0],a=e.useState(mr)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(jr),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=Or(e),a=r.current,c="deltaX"in e?e.deltaX:a[0]-i[0],l="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=Mr(d,u);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=Mr(d,u)),!f)return!1;if(!o.current&&"changedTouches"in e&&(c||l)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),c=!1,l=i>0,u=0,d=0;do{if(!a)break;var f=Ar(e,a),p=f[0],m=f[1]-f[2]-o*p;(p||m)&&Sr(e,a)&&(u+=m,d+=p);var h=a.parentNode;a=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(l&&Math.abs(u)<1||!l&&Math.abs(d)<1)&&(c=!0),c}(p,t,e,"h"===p?c:l)},[]),l=e.useCallback(function(e){var t=e;if(Ir.length&&Ir[Ir.length-1]===a){var r="deltaY"in t?Pr(t):Or(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 i=(s.current.shards||[]).map(jr).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?c(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),u=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:kr(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),d=e.useCallback(function(e){r.current=Or(e),o.current=void 0},[]),f=e.useCallback(function(e){u(e.type,Pr(e),e.target,c(e,t.lockRef.current))},[]),p=e.useCallback(function(e){u(e.type,Or(e),e.target,c(e,t.lockRef.current))},[]);e.useEffect(function(){return Ir.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,_r),document.addEventListener("touchmove",l,_r),document.addEventListener("touchstart",d,_r),function(){Ir=Ir.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,_r),document.removeEventListener("touchmove",l,_r),document.removeEventListener("touchstart",d,_r)}},[]);var m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(a,{styles:Tr(i)}):null,m?e.createElement(Rr,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},lr.useMedium(Fr),cr);var Fr,Wr=e.forwardRef(function(t,n){return e.createElement(dr,fn({},t,{ref:n,sideCar:Lr}))});Wr.classNames=dr.classNames;var Br=["Enter"," "],Kr=["ArrowUp","PageDown","End"],$r=["ArrowDown","PageUp","Home",...Kr],Hr={ltr:[...Br,"ArrowRight"],rtl:[...Br,"ArrowLeft"]},Vr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ur="Menu",[zr,Gr,Xr]=M(Ur),[Yr,qr]=w(Ur,[Xr,Ut,Ln]),Zr=Ut(),Jr=Ln(),[Qr,eo]=Yr(Ur),[to,no]=Yr(Ur),ro=t=>{const{__scopeMenu:n,open:r=!1,children:o,dir:i,onOpenChange:a,modal:s=!0}=t,c=Zr(n),[l,u]=e.useState(null),d=e.useRef(!1),f=O(a),p=vn(i);return e.useEffect(()=>{const e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),m.jsx(cn,{...c,children:m.jsx(Qr,{scope:n,open:r,onOpenChange:f,content:l,onContentChange:u,children:m.jsx(to,{scope:n,onClose:e.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:o})})})};ro.displayName=Ur;var oo=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Zr(n);return m.jsx(ln,{...o,...r,ref:t})});oo.displayName="MenuAnchor";var io="MenuPortal",[ao,so]=Yr(io,{forceMount:void 0}),co=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=eo(io,t);return m.jsx(ao,{scope:t,forceMount:n,children:m.jsx(V,{present:n||i.open,children:m.jsx(H,{asChild:!0,container:o,children:r})})})};co.displayName=io;var lo="MenuContent",[uo,fo]=Yr(lo),po=e.forwardRef((e,t)=>{const n=so(lo,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=eo(lo,e.__scopeMenu),a=no(lo,e.__scopeMenu);return m.jsx(zr.Provider,{scope:e.__scopeMenu,children:m.jsx(V,{present:r||i.open,children:m.jsx(zr.Slot,{scope:e.__scopeMenu,children:a.modal?m.jsx(mo,{...o,ref:t}):m.jsx(ho,{...o,ref:t})})})})}),mo=e.forwardRef((t,n)=>{const r=eo(lo,t.__scopeMenu),o=e.useRef(null),i=y(n,o);return e.useEffect(()=>{const e=o.current;if(e)return er(e)},[]),m.jsx(go,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:h(t.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),ho=e.forwardRef((e,t)=>{const n=eo(lo,e.__scopeMenu);return m.jsx(go,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),vo=x("MenuContent.ScrollLock"),go=e.forwardRef((t,n)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,disableOutsideScroll:g,...w}=t,b=eo(lo,r),x=no(lo,r),R=Zr(r),E=Jr(r),C=Gr(r),[_,D]=e.useState(null),M=e.useRef(null),S=y(n,M,b.onContentChange),A=e.useRef(0),O=e.useRef(""),P=e.useRef(0),j=e.useRef(null),T=e.useRef("right"),N=e.useRef(0),I=g?Wr:e.Fragment,L=g?{as:vo,allowPinchZoom:!0}:void 0,F=e=>{var t,n;const r=O.current+e,o=C().filter(e=>!e.disabled),i=document.activeElement,a=null==(t=o.find(e=>e.ref.current===i))?void 0:t.textValue,s=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,i=n?e.indexOf(n):-1;let a=(s=e,c=Math.max(i,0),s.map((e,t)=>s[(c+t)%s.length]));var s,c;1===o.length&&(a=a.filter(e=>e!==n));const l=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,a),c=null==(n=o.find(e=>e.textValue===s))?void 0:n.ref.current;!function e(t){O.current=t,window.clearTimeout(A.current),""!==t&&(A.current=window.setTimeout(()=>e(""),1e3))}(r),c&&setTimeout(()=>c.focus())};e.useEffect(()=>()=>window.clearTimeout(A.current),[]),yn();const W=e.useCallback(e=>{var t,n;return T.current===(null==(t=j.current)?void 0:t.side)&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const e=t[i],s=t[a],c=e.x,l=e.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(o=!o)}return o}(n,t)}(e,null==(n=j.current)?void 0:n.area)},[]);return m.jsx(uo,{scope:r,searchRef:O,onItemEnter:e.useCallback(e=>{W(e)&&e.preventDefault()},[W]),onItemLeave:e.useCallback(e=>{var t;W(e)||(null==(t=M.current)||t.focus(),D(null))},[W]),onTriggerLeave:e.useCallback(e=>{W(e)&&e.preventDefault()},[W]),pointerGraceTimerRef:P,onPointerGraceIntentChange:e.useCallback(e=>{j.current=e},[]),children:m.jsx(I,{...L,children:m.jsx(En,{asChild:!0,trapped:i,onMountAutoFocus:h(a,e=>{var t;e.preventDefault(),null==(t=M.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:m.jsx(k,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:p,onDismiss:v,children:m.jsx(zn,{asChild:!0,...E,dir:x.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:D,onEntryFocus:h(l,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(un,{role:"menu","aria-orientation":"vertical","data-state":Ho(b.open),"data-radix-menu-content":"",dir:x.dir,...R,...w,ref:S,style:{outline:"none",...w.style},onKeyDown:h(w.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&F(e.key));const o=M.current;if(e.target!==o)return;if(!$r.includes(e.key))return;e.preventDefault();const i=C().filter(e=>!e.disabled).map(e=>e.ref.current);Kr.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)}),onBlur:h(t.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(A.current),O.current="")}),onPointerMove:h(t.onPointerMove,zo(e=>{const t=e.target,n=N.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>N.current?"right":"left";T.current=t,N.current=e.clientX}}))})})})})})})});po.displayName=lo;var yo=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(S.div,{role:"group",...r,ref:t})});yo.displayName="MenuGroup";var wo=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(S.div,{...r,ref:t})});wo.displayName="MenuLabel";var bo="MenuItem",xo="menu.itemSelect",Ro=e.forwardRef((t,n)=>{const{disabled:r=!1,onSelect:o,...i}=t,a=e.useRef(null),s=no(bo,t.__scopeMenu),c=fo(bo,t.__scopeMenu),l=y(n,a),u=e.useRef(!1);return m.jsx(Eo,{...i,ref:l,disabled:r,onClick:h(t.onClick,()=>{const e=a.current;if(!r&&e){const t=new CustomEvent(xo,{bubbles:!0,cancelable:!0});e.addEventListener(xo,e=>null==o?void 0:o(e),{once:!0}),A(e,t),t.defaultPrevented?u.current=!1:s.onClose()}}),onPointerDown:e=>{var n;null==(n=t.onPointerDown)||n.call(t,e),u.current=!0},onPointerUp:h(t.onPointerUp,e=>{var t;u.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:h(t.onKeyDown,e=>{const t=""!==c.searchRef.current;r||t&&" "===e.key||Br.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Ro.displayName=bo;var Eo=e.forwardRef((t,n)=>{const{__scopeMenu:r,disabled:o=!1,textValue:i,...a}=t,s=fo(bo,r),c=Jr(r),l=e.useRef(null),u=y(n,l),[d,f]=e.useState(!1),[p,v]=e.useState("");return e.useEffect(()=>{const e=l.current;e&&v((e.textContent??"").trim())},[a.children]),m.jsx(zr.ItemSlot,{scope:r,disabled:o,textValue:i??p,children:m.jsx(Gn,{asChild:!0,...c,focusable:!o,children:m.jsx(S.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...a,ref:u,onPointerMove:h(t.onPointerMove,zo(e=>{if(o)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:h(t.onPointerLeave,zo(e=>s.onItemLeave(e))),onFocus:h(t.onFocus,()=>f(!0)),onBlur:h(t.onBlur,()=>f(!1))})})})}),Co=e.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return m.jsx(jo,{scope:e.__scopeMenu,checked:n,children:m.jsx(Ro,{role:"menuitemcheckbox","aria-checked":Vo(n)?"mixed":n,...o,ref:t,"data-state":Uo(n),onSelect:h(o.onSelect,()=>null==r?void 0:r(!!Vo(n)||!n),{checkForDefaultPrevented:!1})})})});Co.displayName="MenuCheckboxItem";var _o="MenuRadioGroup",[Do,Mo]=Yr(_o,{value:void 0,onValueChange:()=>{}}),So=e.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=O(r);return m.jsx(Do,{scope:e.__scopeMenu,value:n,onValueChange:i,children:m.jsx(yo,{...o,ref:t})})});So.displayName=_o;var Ao="MenuRadioItem",Oo=e.forwardRef((e,t)=>{const{value:n,...r}=e,o=Mo(Ao,e.__scopeMenu),i=n===o.value;return m.jsx(jo,{scope:e.__scopeMenu,checked:i,children:m.jsx(Ro,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Uo(i),onSelect:h(r.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,n)},{checkForDefaultPrevented:!1})})})});Oo.displayName=Ao;var Po="MenuItemIndicator",[jo,To]=Yr(Po,{checked:!1}),No=e.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=To(Po,n);return m.jsx(V,{present:r||Vo(i.checked)||!0===i.checked,children:m.jsx(S.span,{...o,ref:t,"data-state":Uo(i.checked)})})});No.displayName=Po;var Io=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(S.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Io.displayName="MenuSeparator";var ko=e.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Zr(n);return m.jsx(dn,{...o,...r,ref:t})});ko.displayName="MenuArrow";var[Lo,Fo]=Yr("MenuSub"),Wo="MenuSubTrigger",Bo=e.forwardRef((t,n)=>{const r=eo(Wo,t.__scopeMenu),o=no(Wo,t.__scopeMenu),i=Fo(Wo,t.__scopeMenu),a=fo(Wo,t.__scopeMenu),s=e.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,u={__scopeMenu:t.__scopeMenu},d=e.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return e.useEffect(()=>d,[d]),e.useEffect(()=>{const e=c.current;return()=>{window.clearTimeout(e),l(null)}},[c,l]),m.jsx(oo,{asChild:!0,...u,children:m.jsx(Eo,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":i.contentId,"data-state":Ho(r.open),...t,ref:g(n,i.onTriggerChange),onClick:e=>{var n;null==(n=t.onClick)||n.call(t,e),t.disabled||e.defaultPrevented||(e.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:h(t.onPointerMove,zo(e=>{a.onItemEnter(e),e.defaultPrevented||t.disabled||r.open||s.current||(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),d()},100))})),onPointerLeave:h(t.onPointerLeave,zo(e=>{var t,n;d();const o=null==(t=r.content)?void 0:t.getBoundingClientRect();if(o){const t=null==(n=r.content)?void 0:n.dataset.side,i="right"===t,s=i?-5:5,l=o[i?"left":"right"],u=o[i?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:l,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:h(t.onKeyDown,e=>{var n;const i=""!==a.searchRef.current;t.disabled||i&&" "===e.key||Hr[o.dir].includes(e.key)&&(r.onOpenChange(!0),null==(n=r.content)||n.focus(),e.preventDefault())})})})});Bo.displayName=Wo;var Ko="MenuSubContent",$o=e.forwardRef((t,n)=>{const r=so(lo,t.__scopeMenu),{forceMount:o=r.forceMount,...i}=t,a=eo(lo,t.__scopeMenu),s=no(lo,t.__scopeMenu),c=Fo(Ko,t.__scopeMenu),l=e.useRef(null),u=y(n,l);return m.jsx(zr.Provider,{scope:t.__scopeMenu,children:m.jsx(V,{present:o||a.open,children:m.jsx(zr.Slot,{scope:t.__scopeMenu,children:m.jsx(go,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:u,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null==(t=l.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:h(t.onFocusOutside,e=>{e.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:h(t.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:h(t.onKeyDown,e=>{var t;const n=e.currentTarget.contains(e.target),r=Vr[s.dir].includes(e.key);n&&r&&(a.onOpenChange(!1),null==(t=c.trigger)||t.focus(),e.preventDefault())})})})})})});function Ho(e){return e?"open":"closed"}function Vo(e){return"indeterminate"===e}function Uo(e){return Vo(e)?"indeterminate":e?"checked":"unchecked"}function zo(e){return t=>"mouse"===t.pointerType?e(t):void 0}$o.displayName=Ko;var Go=ro,Xo=oo,Yo=co,qo=po,Zo=yo,Jo=wo,Qo=Ro,ei=Co,ti=So,ni=Oo,ri=No,oi=Io,ii=ko,ai=Bo,si=$o,ci="DropdownMenu",[li]=w(ci,[qr]),ui=qr(),[di,fi]=li(ci),pi=t=>{const{__scopeDropdownMenu:n,children:r,dir:o,open:i,defaultOpen:a,onOpenChange:s,modal:c=!0}=t,l=ui(n),u=e.useRef(null),[d,f]=G({prop:i,defaultProp:a??!1,onChange:s,caller:ci});return m.jsx(di,{scope:n,triggerId:q(),triggerRef:u,contentId:q(),open:d,onOpenChange:f,onOpenToggle:e.useCallback(()=>f(e=>!e),[f]),modal:c,children:m.jsx(Go,{...l,open:d,onOpenChange:f,dir:o,modal:c,children:r})})};pi.displayName=ci;var mi="DropdownMenuTrigger",hi=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=fi(mi,n),a=ui(n);return m.jsx(Xo,{asChild:!0,...a,children:m.jsx(S.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:g(t,i.triggerRef),onPointerDown:h(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:h(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});hi.displayName=mi;var vi=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ui(t);return m.jsx(Yo,{...r,...n})};vi.displayName="DropdownMenuPortal";var gi="DropdownMenuContent",yi=e.forwardRef((t,n)=>{const{__scopeDropdownMenu:r,...o}=t,i=fi(gi,r),a=ui(r),s=e.useRef(!1);return m.jsx(qo,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...o,ref:n,onCloseAutoFocus:h(t.onCloseAutoFocus,e=>{var t;s.current||null==(t=i.triggerRef.current)||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:h(t.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(s.current=!0)}),style:{...t.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)"}})});yi.displayName=gi;e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(Zo,{...o,...r,ref:t})}).displayName="DropdownMenuGroup";var wi=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(Jo,{...o,...r,ref:t})});wi.displayName="DropdownMenuLabel";var bi=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(Qo,{...o,...r,ref:t})});bi.displayName="DropdownMenuItem";var xi=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(ei,{...o,...r,ref:t})});xi.displayName="DropdownMenuCheckboxItem";e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(ti,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup";var Ri=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(ni,{...o,...r,ref:t})});Ri.displayName="DropdownMenuRadioItem";var Ei=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(ri,{...o,...r,ref:t})});Ei.displayName="DropdownMenuItemIndicator";var Ci=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(oi,{...o,...r,ref:t})});Ci.displayName="DropdownMenuSeparator";e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(ii,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var _i=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(ai,{...o,...r,ref:t})});_i.displayName="DropdownMenuSubTrigger";var Di=e.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ui(n);return m.jsx(si,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Di.displayName="DropdownMenuSubContent";var Mi=pi,Si=hi,Ai=vi,Oi=yi,Pi=wi,ji=bi,Ti=xi,Ni=Ri,Ii=Ei,ki=Ci,Li=_i,Fi=Di,Wi="Dialog",[Bi,Ki]=w(Wi),[$i,Hi]=Bi(Wi),Vi=t=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=t,c=e.useRef(null),l=e.useRef(null),[u,d]=G({prop:o,defaultProp:i??!1,onChange:a,caller:Wi});return m.jsx($i,{scope:n,triggerRef:c,contentRef:l,contentId:q(),titleId:q(),descriptionId:q(),open:u,onOpenChange:d,onOpenToggle:e.useCallback(()=>d(e=>!e),[d]),modal:s,children:r})};Vi.displayName=Wi;var Ui="DialogTrigger",zi=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Hi(Ui,n),i=y(t,o.triggerRef);return m.jsx(S.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fa(o.open),...r,ref:i,onClick:h(e.onClick,o.onOpenToggle)})});zi.displayName=Ui;var Gi="DialogPortal",[Xi,Yi]=Bi(Gi,{forceMount:void 0}),qi=t=>{const{__scopeDialog:n,forceMount:r,children:o,container:i}=t,a=Hi(Gi,n);return m.jsx(Xi,{scope:n,forceMount:r,children:e.Children.map(o,e=>m.jsx(V,{present:r||a.open,children:m.jsx(H,{asChild:!0,container:i,children:e})}))})};qi.displayName=Gi;var Zi="DialogOverlay",Ji=e.forwardRef((e,t)=>{const n=Yi(Zi,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Hi(Zi,e.__scopeDialog);return i.modal?m.jsx(V,{present:r||i.open,children:m.jsx(ea,{...o,ref:t})}):null});Ji.displayName=Zi;var Qi=x("DialogOverlay.RemoveScroll"),ea=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Hi(Zi,n);return m.jsx(Wr,{as:Qi,allowPinchZoom:!0,shards:[o.contentRef],children:m.jsx(S.div,{"data-state":fa(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ta="DialogContent",na=e.forwardRef((e,t)=>{const n=Yi(ta,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Hi(ta,e.__scopeDialog);return m.jsx(V,{present:r||i.open,children:i.modal?m.jsx(ra,{...o,ref:t}):m.jsx(oa,{...o,ref:t})})});na.displayName=ta;var ra=e.forwardRef((t,n)=>{const r=Hi(ta,t.__scopeDialog),o=e.useRef(null),i=y(n,r.contentRef,o);return e.useEffect(()=>{const e=o.current;if(e)return er(e)},[]),m.jsx(ia,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:h(t.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:h(t.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:h(t.onFocusOutside,e=>e.preventDefault())})}),oa=e.forwardRef((t,n)=>{const r=Hi(ta,t.__scopeDialog),o=e.useRef(!1),i=e.useRef(!1);return m.jsx(ia,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var n,a;null==(n=t.onCloseAutoFocus)||n.call(t,e),e.defaultPrevented||(o.current||null==(a=r.triggerRef.current)||a.focus(),e.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:e=>{var n,a;null==(n=t.onInteractOutside)||n.call(t,e),e.defaultPrevented||(o.current=!0,"pointerdown"===e.detail.originalEvent.type&&(i.current=!0));const s=e.target;(null==(a=r.triggerRef.current)?void 0:a.contains(s))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}})}),ia=e.forwardRef((t,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,...s}=t,c=Hi(ta,r),l=e.useRef(null),u=y(n,l);return yn(),m.jsxs(m.Fragment,{children:[m.jsx(En,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:m.jsx(k,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":fa(c.open),...s,ref:u,onDismiss:()=>c.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(va,{titleId:c.titleId}),m.jsx(ga,{contentRef:l,descriptionId:c.descriptionId})]})]})}),aa="DialogTitle",sa=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Hi(aa,n);return m.jsx(S.h2,{id:o.titleId,...r,ref:t})});sa.displayName=aa;var ca="DialogDescription",la=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Hi(ca,n);return m.jsx(S.p,{id:o.descriptionId,...r,ref:t})});la.displayName=ca;var ua="DialogClose",da=e.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Hi(ua,n);return m.jsx(S.button,{type:"button",...r,ref:t,onClick:h(e.onClick,()=>o.onOpenChange(!1))})});function fa(e){return e?"open":"closed"}da.displayName=ua;var pa="DialogTitleWarning",[ma,ha]=function(t,n){const r=e.createContext(n),o=t=>{const{children:n,...o}=t,i=e.useMemo(()=>o,Object.values(o));return m.jsx(r.Provider,{value:i,children:n})};return o.displayName=t+"Provider",[o,function(o){const i=e.useContext(r);if(i)return i;if(void 0!==n)return n;throw new Error(`\`${o}\` must be used within \`${t}\``)}]}(pa,{contentName:ta,titleName:aa,docsSlug:"dialog"}),va=({titleId:t})=>{const n=ha(pa),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return e.useEffect(()=>{if(t){document.getElementById(t)}},[r,t]),null},ga=({contentRef:t,descriptionId:n})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ha("DialogDescriptionWarning").contentName}}.`;return e.useEffect(()=>{var e;const r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");if(n&&r){document.getElementById(n)}},[r,t,n]),null},ya=Vi,wa=zi,ba=qi,xa=Ji,Ra=na,Ea=sa,Ca=la,_a=da,Da="Collapsible",[Ma,Sa]=w(Da),[Aa,Oa]=Ma(Da),Pa=e.forwardRef((t,n)=>{const{__scopeCollapsible:r,open:o,defaultOpen:i,disabled:a,onOpenChange:s,...c}=t,[l,u]=G({prop:o,defaultProp:i??!1,onChange:s,caller:Da});return m.jsx(Aa,{scope:r,disabled:a,contentId:q(),open:l,onOpenToggle:e.useCallback(()=>u(e=>!e),[u]),children:m.jsx(S.div,{"data-state":La(l),"data-disabled":a?"":void 0,...c,ref:n})})});Pa.displayName=Da;var ja="CollapsibleTrigger",Ta=e.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Oa(ja,n);return m.jsx(S.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":La(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:h(e.onClick,o.onOpenToggle)})});Ta.displayName=ja;var Na="CollapsibleContent",Ia=e.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Oa(Na,e.__scopeCollapsible);return m.jsx(V,{present:n||o.open,children:({present:e})=>m.jsx(ka,{...r,ref:t,present:e})})});Ia.displayName=Na;var ka=e.forwardRef((t,n)=>{const{__scopeCollapsible:r,present:o,children:i,...a}=t,s=Oa(Na,r),[c,l]=e.useState(o),u=e.useRef(null),d=y(n,u),f=e.useRef(0),p=f.current,h=e.useRef(0),v=h.current,g=s.open||c,w=e.useRef(g),b=e.useRef(void 0);return e.useEffect(()=>{const e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),$(()=>{const e=u.current;if(e){b.current=b.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const t=e.getBoundingClientRect();f.current=t.height,h.current=t.width,w.current||(e.style.transitionDuration=b.current.transitionDuration,e.style.animationName=b.current.animationName),l(o)}},[s.open,o]),m.jsx(S.div,{"data-state":La(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...a,ref:d,style:{"--radix-collapsible-content-height":p?`${p}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...t.style},children:g&&i})});function La(e){return e?"open":"closed"}var Fa=Pa,Wa=Ta,Ba=Ia,Ka="Accordion",$a=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ha,Va,Ua]=M(Ka),[za]=w(Ka,[Ua,Sa]),Ga=Sa(),Xa=t.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return m.jsx(Ha.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?m.jsx(es,{...i,ref:t}):m.jsx(Qa,{...o,ref:t})})});Xa.displayName=Ka;var[Ya,qa]=za(Ka),[Za,Ja]=za(Ka,{collapsible:!1}),Qa=t.forwardRef((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},collapsible:a=!1,...s}=e,[c,l]=G({prop:r,defaultProp:o??"",onChange:i,caller:Ka});return m.jsx(Ya,{scope:e.__scopeAccordion,value:t.useMemo(()=>c?[c]:[],[c]),onItemOpen:l,onItemClose:t.useCallback(()=>a&&l(""),[a,l]),children:m.jsx(Za,{scope:e.__scopeAccordion,collapsible:a,children:m.jsx(rs,{...s,ref:n})})})}),es=t.forwardRef((e,n)=>{const{value:r,defaultValue:o,onValueChange:i=()=>{},...a}=e,[s,c]=G({prop:r,defaultProp:o??[],onChange:i,caller:Ka}),l=t.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=t.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return m.jsx(Ya,{scope:e.__scopeAccordion,value:s,onItemOpen:l,onItemClose:u,children:m.jsx(Za,{scope:e.__scopeAccordion,collapsible:!0,children:m.jsx(rs,{...a,ref:n})})})}),[ts,ns]=za(Ka),rs=t.forwardRef((e,n)=>{const{__scopeAccordion:r,disabled:o,dir:i,orientation:a="vertical",...s}=e,c=y(t.useRef(null),n),l=Va(r),u="ltr"===vn(i),d=h(e.onKeyDown,e=>{var t;if(!$a.includes(e.key))return;const n=e.target,r=l().filter(e=>{var t;return!(null==(t=e.ref.current)?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),i=r.length;if(-1===o)return;e.preventDefault();let s=o;const c=i-1,d=()=>{s=o+1,s>c&&(s=0)},f=()=>{s=o-1,s<0&&(s=c)};switch(e.key){case"Home":s=0;break;case"End":s=c;break;case"ArrowRight":"horizontal"===a&&(u?d():f());break;case"ArrowDown":"vertical"===a&&d();break;case"ArrowLeft":"horizontal"===a&&(u?f():d());break;case"ArrowUp":"vertical"===a&&f()}null==(t=r[s%i].ref.current)||t.focus()});return m.jsx(ts,{scope:r,disabled:o,direction:i,orientation:a,children:m.jsx(Ha.Slot,{scope:r,children:m.jsx(S.div,{...s,"data-orientation":a,ref:c,onKeyDown:o?void 0:d})})})}),os="AccordionItem",[is,as]=za(os),ss=t.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=ns(os,n),a=qa(os,n),s=Ga(n),c=q(),l=r&&a.value.includes(r)||!1,u=i.disabled||e.disabled;return m.jsx(is,{scope:n,open:l,disabled:u,triggerId:c,children:m.jsx(Fa,{"data-orientation":i.orientation,"data-state":ms(l),...s,...o,ref:t,disabled:u,open:l,onOpenChange:e=>{e?a.onItemOpen(r):a.onItemClose(r)}})})});ss.displayName=os;var cs="AccordionHeader",ls=t.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ns(Ka,n),i=as(cs,n);return m.jsx(S.h3,{"data-orientation":o.orientation,"data-state":ms(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});ls.displayName=cs;var us="AccordionTrigger",ds=t.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ns(Ka,n),i=as(us,n),a=Ja(us,n),s=Ga(n);return m.jsx(Ha.ItemSlot,{scope:n,children:m.jsx(Wa,{"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...s,...r,ref:t})})});ds.displayName=us;var fs="AccordionContent",ps=t.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ns(Ka,n),i=as(fs,n),a=Ga(n);return m.jsx(Ba,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...a,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ms(e){return e?"open":"closed"}ps.displayName=fs;var hs=Xa,vs=ss,gs=ls,ys=ds,ws=ps,bs="Tabs",[xs]=w(bs,[Ln]),Rs=Ln(),[Es,Cs]=xs(bs),_s=e.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",dir:s,activationMode:c="automatic",...l}=e,u=vn(s),[d,f]=G({prop:r,onChange:o,defaultProp:i??"",caller:bs});return m.jsx(Es,{scope:n,baseId:q(),value:d,onValueChange:f,orientation:a,dir:u,activationMode:c,children:m.jsx(S.div,{dir:u,"data-orientation":a,...l,ref:t})})});_s.displayName=bs;var Ds="TabsList",Ms=e.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Cs(Ds,n),a=Rs(n);return m.jsx(zn,{asChild:!0,...a,orientation:i.orientation,dir:i.dir,loop:r,children:m.jsx(S.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Ms.displayName=Ds;var Ss="TabsTrigger",As=e.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,a=Cs(Ss,n),s=Rs(n),c=js(a.baseId,r),l=Ts(a.baseId,r),u=r===a.value;return m.jsx(Gn,{asChild:!0,...s,focusable:!o,active:u,children:m.jsx(S.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...i,ref:t,onMouseDown:h(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:h(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:h(e.onFocus,()=>{const e="manual"!==a.activationMode;u||o||!e||a.onValueChange(r)})})})});As.displayName=Ss;var Os="TabsContent",Ps=e.forwardRef((t,n)=>{const{__scopeTabs:r,value:o,forceMount:i,children:a,...s}=t,c=Cs(Os,r),l=js(c.baseId,o),u=Ts(c.baseId,o),d=o===c.value,f=e.useRef(d);return e.useEffect(()=>{const e=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(e)},[]),m.jsx(V,{present:i||d,children:({present:e})=>m.jsx(S.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":l,hidden:!e,id:u,tabIndex:0,...s,ref:n,style:{...t.style,animationDuration:f.current?"0s":void 0},children:e&&a})})});function js(e,t){return`${e}-trigger-${t}`}function Ts(e,t){return`${e}-content-${t}`}Ps.displayName=Os;var Ns=_s,Is=Ms,ks=As,Ls=Ps;export{Wr as $,ln as A,K as B,un as C,k as D,Li as E,Fi as F,Ti as G,Ii as H,ji as I,Ni as J,ki as K,Pi as L,wa as M,hs as N,xa as O,S as P,vs as Q,B as R,R as S,Ea as T,gs as U,ys as V,ws as W,vn as X,er as Y,yn as Z,mn as _,pn as a,x as a0,En as a1,Ns as a2,Is as a3,ks as a4,Ls as a5,Ki as a6,ma as a7,$t as a8,M as b,w as c,G as d,V as e,h as f,O as g,H as h,$ as i,m as j,A as k,Ut as l,_ as m,dn as n,q as o,cn as p,ya as q,ba as r,Ra as s,_a as t,y as u,Ca as v,Mi as w,Si as x,Ai as y,Oi as z};