vendor: 13,297 bytes, lines 1-9
1import{r as c,R as ve,a as qt,b as Fi,c as er}from"./react-vendor-QMuy7HZH.js";var tr={exports:{}},ft={};/** 2 * @license React 3 * react-jsx-runtime.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var Li=c,ji=Symbol.for("react.element"),ki=Symbol.for("react.fragment"),$i=Object.prototype.hasOwnProperty,Wi=Li.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bi={key:!0,ref:!0,__self:!0,__source:!0};function nr(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)$i.call(t,r)&&!Bi.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:ji,type:e,key:i,ref:s,props:o,_owner:Wi.current}}ft.Fragment=ki;ft.jsx=nr;ft.jsxs=nr;tr.exports=ft;var g=tr.exports;function A(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function An(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dt(...e){return t=>{let n=!1;const r=e.map(o=>{const i=An(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():An(e[o],null)}}}}function B(...e){return c.useCallback(dt(...e),e)}function Ki(e,t){const n=c.createContext(t),r=i=>{const{children:s,...a}=i,d=c.useMemo(()=>a,Object.values(a));return g.jsx(n.Provider,{value:d,children:s})};r.displayName=e+"Provider";function o(i){const s=c.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function we(e,t=[]){let n=[];function r(i,s){const a=c.createContext(s),d=n.length;n=[...n,s];const u=f=>{var y;const{scope:h,children:m,...w}=f,p=((y=h==null?void 0:h[e])==null?void 0:y[d])||a,v=c.useMemo(()=>w,Object.values(w));return g.jsx(p.Provider,{value:v,children:m})};u.displayName=i+"Provider";function l(f,h){var p;const m=((p=h==null?void 0:h[e])==null?void 0:p[d])||a,w=c.useContext(m);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[u,l]}const o=()=>{const i=n.map(s=>c.createContext(s));return function(a){const d=(a==null?void 0:a[e])||i;return c.useMemo(()=>({[`__scope${e}`]:{...a,[e]:d}}),[a,d])}};return o.scopeName=e,[r,Vi(o,...t)]}function Vi(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:d,scopeName:u})=>{const f=d(i)[`__scope${u}`];return{...a,...f}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function _e(e){const t=Ui(e),n=c.forwardRef((r,o)=>{const{children:i,...s}=r,a=c.Children.toArray(i),d=a.find(Gi);if(d){const u=d.props.children,l=a.map(f=>f===d?c.Children.count(u)>1?c.Children.only(null):c.isValidElement(u)?u.props.children:null:f);return g.jsx(t,{...s,ref:o,children:c.isValidElement(u)?c.cloneElement(u,void 0,l):null})}return g.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Rl=_e("Slot");function Ui(e){const t=c.forwardRef((n,r)=>{const{children:o,...i}=n;if(c.isValidElement(o)){const s=Yi(o),a=Hi(i,o.props);return o.type!==c.Fragment&&(a.ref=r?dt(r,s):s),c.cloneElement(o,a)}return c.Children.count(o)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var rr=Symbol("radix.slottable");function Sl(e){const t=({children:n})=>g.jsx(g.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=rr,t}function Gi(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===rr}function Hi(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]=(...a)=>{const d=i(...a);return o(...a),d}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Yi(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Zt(e){const t=e+"CollectionProvider",[n,r]=we(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=p=>{const{scope:v,children:y}=p,b=ve.useRef(null),x=ve.useRef(new Map).current;return g.jsx(o,{scope:v,itemMap:x,collectionRef:b,children:y})};s.displayName=t;const a=e+"CollectionSlot",d=_e(a),u=ve.forwardRef((p,v)=>{const{scope:y,children:b}=p,x=i(a,y),E=B(v,x.collectionRef);return g.jsx(d,{ref:E,children:b})});u.displayName=a;const l=e+"CollectionItemSlot",f="data-radix-collection-item",h=_e(l),m=ve.forwardRef((p,v)=>{const{scope:y,children:b,...x}=p,E=ve.useRef(null),C=B(v,E),_=i(l,y);return ve.useEffect(()=>(_.itemMap.set(E,{ref:E,...x}),()=>void _.itemMap.delete(E))),g.jsx(h,{[f]:"",ref:C,children:b})});m.displayName=l;function w(p){const v=i(e+"CollectionConsumer",p);return ve.useCallback(()=>{const b=v.collectionRef.current;if(!b)return[];const x=Array.from(b.querySelectorAll(`[${f}]`));return Array.from(v.itemMap.values()).sort((_,R)=>x.indexOf(_.ref.current)-x.indexOf(R.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:u,ItemSlot:m},w,r]}var zi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$=zi.reduce((e,t)=>{const n=_e(`Primitive.${t}`),r=c.forwardRef((o,i)=>{const{asChild:s,...a}=o,d=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(d,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Qt(e,t){e&&qt.flushSync(()=>e.dispatchEvent(t))}function Y(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Xi(e,t=globalThis==null?void 0:globalThis.document){const n=Y(e);c.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var qi="DismissableLayer",$t="dismissableLayer.update",Zi="dismissableLayer.pointerDownOutside",Qi="dismissableLayer.focusOutside",Mn,or=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pt=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...d}=e,u=c.useContext(or),[l,f]=c.useState(null),h=(l==null?void 0:l.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,m]=c.useState({}),w=B(t,R=>f(R)),p=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(v),b=l?p.indexOf(l):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=es(R=>{const T=R.target,D=[...u.branches].some(I=>I.contains(T));!E||D||(o==null||o(R),s==null||s(R),R.defaultPrevented||a==null||a())},h),_=ts(R=>{const T=R.target;[...u.branches].some(I=>I.contains(T))||(i==null||i(R),s==null||s(R),R.defaultPrevented||a==null||a())},h);return Xi(R=>{b===u.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},h),c.useEffect(()=>{if(l)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Mn=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(l)),u.layers.add(l),On(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=Mn)}},[l,h,n,u]),c.useEffect(()=>()=>{l&&(u.layers.delete(l),u.layersWithOutsidePointerEventsDisabled.delete(l),On())},[l,u]),c.useEffect(()=>{const R=()=>m({});return document.addEventListener($t,R),()=>document.removeEventListener($t,R)},[]),g.jsx($.div,{...d,ref:w,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:A(e.onFocusCapture,_.onFocusCapture),onBlurCapture:A(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:A(e.onPointerDownCapture,C.onPointerDownCapture)})});pt.displayName=qi;var Ji="DismissableLayerBranch",ir=c.forwardRef((e,t)=>{const n=c.useContext(or),r=c.useRef(null),o=B(t,r);return c.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),g.jsx($.div,{...e,ref:o})});ir.displayName=Ji;function es(e,t=globalThis==null?void 0:globalThis.document){const n=Y(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let d=function(){sr(Zi,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ts(e,t=globalThis==null?void 0:globalThis.document){const n=Y(e),r=c.useRef(!1);return c.useEffect(()=>{const o=i=>{i.target&&!r.current&&sr(Qi,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function On(){const e=new CustomEvent($t);document.dispatchEvent(e)}function sr(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?Qt(o,i):o.dispatchEvent(i)}var ns=pt,rs=ir,se=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},os="Portal",mt=c.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=c.useState(!1);se(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?Fi.createPortal(g.jsx($.div,{...r,ref:t}),s):null});mt.displayName=os;function is(e,t){return c.useReducer((n,r)=>t[n][r]??n,e)}var ue=e=>{const{present:t,children:n}=e,r=ss(t),o=typeof n=="function"?n({present:r.isPresent}):c.Children.only(n),i=B(r.ref,as(o));return typeof n=="function"||r.isPresent?c.cloneElement(o,{ref:i}):null};ue.displayName="Presence";function ss(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),i=c.useRef("none"),s=e?"mounted":"unmounted",[a,d]=is(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const u=Ye(r.current);i.current=a==="mounted"?u:"none"},[a]),se(()=>{const u=r.current,l=o.current;if(l!==e){const h=i.current,m=Ye(u);e?d("MOUNT"):m==="none"||(u==null?void 0:u.display)==="none"?d("UNMOUNT"):d(l&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,d]),se(()=>{if(t){let u;const l=t.ownerDocument.defaultView??window,f=m=>{const p=Ye(r.current).includes(m.animationName);if(m.target===t&&p&&(d("ANIMATION_END"),!o.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",u=l.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=m=>{m.target===t&&(i.current=Ye(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{l.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:c.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Ye(e){return(e==null?void 0:e.animationName)||"none"}function as(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var cs=er[" useInsertionEffect ".trim().toString()]||se;function vt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=us({defaultProp:t,onChange:n}),a=e!==void 0,d=a?e:o;{const l=c.useRef(e!==void 0);c.useEffect(()=>{const f=l.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. 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.`),l.current=a},[a,r])}const u=c.useCallback(l=>{var f;if(a){const h=ls(l)?l(e):l;h!==e&&((f=s.current)==null||f.call(s,h))}else i(l)},[a,e,i,s]);return[d,u]}function us({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),i=c.useRef(t);return cs(()=>{i.current=t},[t]),c.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function ls(e){return typeof e=="function"}var fs=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ds="VisuallyHidden",ht=c.forwardRef((e,t)=>
9g.jsx($.span,{...e,ref:t,style:{...fs,...e.style}}));ht.displayName=ds;var Pl=ht,Jt="ToastProvider",[en,ps,ms]=Zt("Toast"),[ar,_l]=we("Toast",[ms]),[vs,gt]=ar(Jt),cr=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[a,d]=c.useState(null),[u,l]=c.useState(0),f=c.useRef(!1),h=c.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Jt}\`. Expected non-empty \`string\`.`),g.jsx(en.Provider,{scope:t,children:g.jsx(vs,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:a,onViewportChange:d,onToastAdd:c.useCallback(()=>l(m=>m+1),[]),onToastRemove:c.useCallback(()=>l(m=>m-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:s})})};cr.displayName=Jt;var ur="ToastViewport",hs=["F8"],Wt="toast.viewportPause",Bt="toast.viewportResume",lr=c.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=hs,label:o="Notifications ({hotkey})",...i}=e,s=gt(ur,n),a=ps(n),d=c.useRef(null),u=c.useRef(null),l=c.useRef(null),f=c.useRef(null),h=B(t,f,s.onViewportChange),m=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=s.toastCount>0;c.useEffect(()=>{const v=y=>{var x;r.length!==0&&r.every(E=>y[E]||y.code===E)&&((x=f.current)==null||x.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),c.useEffect(()=>{const v=d.current,y=f.current;if(w&&v&&y){const b=()=>{if(!s.isClosePausedRef.current){const _=new CustomEvent(Wt);y.dispatchEvent(_),s.isClosePausedRef.current=!0}},x=()=>{if(s.isClosePausedRef.current){const _=new CustomEvent(Bt);y.dispatchEvent(_),s.isClosePausedRef.current=!1}},E=_=>{!v.contains(_.relatedTarget)&&x()},C=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",b),v.addEventListener("focusout",E),v.addEventListener("pointermove",b),v.addEventListener("pointerleave",C),window.addEventListener("blur",b),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",b),v.removeEventListener("focusout",E),v.removeEventListener("pointermove",b),v.removeEventListener("pointerleave",C),window.removeEventListener("blur",b),window.removeEventListener("focus",x)}}},[w,s.isClosePausedRef]);const p=c.useCallback(({tabbingDirection:v})=>{const b=a().map(x=>{const E=x.ref.current,C=[E,...As(E)];return v==="forwards"?C:C.reverse()});return(v==="forwards"?b.reverse():b).flat()},[a]);return c.useEffect(()=>{const v=f.current;if(v){const y=b=>{var C,_,R;const x=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!x){const T=document.activeElement,D=b.shiftKey;if(b.target===v&&D){(C=u.current)==null||C.focus();return}const F=p({tabbingDirection:D?"backwards":"forwards"}),L=F.findIndex(S=>S===T);Tt(F.slice(L+1))?b.preventDefault():D?(_=u.current)==null||_.focus():(R=l.current)==null||R.focus()}};return v.addEventListener("keydown",y),()=>v.removeEventListener("keydown",y)}},[a,p]),g.jsxs(rs,{ref:d,role:"region","aria-label":o.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&g.jsx(Kt,{ref:u,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"forwards"});Tt(v)}}),g.jsx(en.Slot,{scope:n,children:g.jsx($.ol,{tabIndex:-1,...i,ref:h})}),w&&g.jsx(Kt,{ref:l,onFocusFromOutsideViewport:()=>{const v=p({tabbingDirection:"backwards"});Tt(v)}})]})});lr.displayName=ur;var fr="ToastFocusProxy",Kt=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=gt(fr,n);return g.jsx(ht,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const a=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(a))&&r()}})});Kt.displayName=fr;var We="Toast",gs="toast.swipeStart",ws="toast.swipeMove",ys="toast.swipeCancel",xs="toast.swipeEnd",dr=c.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[a,d]=vt({prop:r,defaultProp:o??!0,onChange:i,caller:We});return g.jsx(ue,{present:n||a,children:g.jsx(Cs,{open:a,...s,ref:t,onClose:()=>d(!1),onPause:Y(e.onPause),onResume:Y(e.onResume),onSwipeStart:A(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:A(e.onSwipeMove,u=>{const{x:l,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${l}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:A(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:A(e.onSwipeEnd,u=>{const{x:l,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${l}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),d(!1)})})})});dr.displayName=We;var[bs,Es]=ar(We,{onClose(){}}
9),Cs=c.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:a,onPause:d,onResume:u,onSwipeStart:l,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:m,...w}=e,p=gt(We,n),[v,y]=c.useState(null),b=B(t,S=>y(S)),x=c.useRef(null),E=c.useRef(null),C=o||p.duration,_=c.useRef(0),R=c.useRef(C),T=c.useRef(0),{onToastAdd:D,onToastRemove:I}=p,j=Y(()=>{var N;(v==null?void 0:v.contains(document.activeElement))&&((N=p.viewport)==null||N.focus()),s()}),F=c.useCallback(S=>{!S||S===1/0||(window.clearTimeout(T.current),_.current=new Date().getTime(),T.current=window.setTimeout(j,S))},[j]);c.useEffect(()=>{const S=p.viewport;if(S){const N=()=>{F(R.current),u==null||u()},O=()=>{const k=new Date().getTime()-_.current;R.current=R.current-k,window.clearTimeout(T.current),d==null||d()};return S.addEventListener(Wt,O),S.addEventListener(Bt,N),()=>{S.removeEventListener(Wt,O),S.removeEventListener(Bt,N)}}},[p.viewport,C,d,u,F]),c.useEffect(()=>{i&&!p.isClosePausedRef.current&&F(C)},[i,C,p.isClosePausedRef,F]),c.useEffect(()=>(D(),()=>I()),[D,I]);const L=c.useMemo(()=>v?yr(v):null,[v]);return p.viewport?g.jsxs(g.Fragment,{children:[L&&g.jsx(Rs,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:L}),g.jsx(bs,{scope:n,onClose:j,children:qt.createPortal(g.jsx(en.ItemSlot,{scope:n,children:g.jsx(ns,{asChild:!0,onEscapeKeyDown:A(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||j(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:g.jsx($.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...w,ref:b,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:A(e.onKeyDown,S=>{S.key==="Escape"&&(a==null||a(S.nativeEvent),S.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,j()))}),onPointerDown:A(e.onPointerDown,S=>{S.button===0&&(x.current={x:S.clientX,y:S.clientY})}),onPointerMove:A(e.onPointerMove,S=>{if(!x.current)return;const N=S.clientX-x.current.x,O=S.clientY-x.current.y,k=!!E.current,M=["left","right"].includes(p.swipeDirection),P=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,W=M?P(0,N):0,K=M?0:P(0,O),U=S.pointerType==="touch"?10:2,ee={x:W,y:K},le={originalEvent:S,delta:ee};k?(E.current=ee,ze(ws,f,le,{discrete:!1})):Dn(ee,p.swipeDirection,U)?(E.current=ee,ze(gs,l,le,{discrete:!1}),S.target.setPointerCapture(S.pointerId)):(Math.abs(N)>U||Math.abs(O)>U)&&(x.current=null)}),onPointerUp:A(e.onPointerUp,S=>{const N=E.current,O=S.target;if(O.hasPointerCapture(S.pointerId)&&O.releasePointerCapture(S.pointerId),E.current=null,x.current=null,N){const k=S.currentTarget,M={originalEvent:S,delta:N};Dn(N,p.swipeDirection,p.swipeThreshold)?ze(xs,m,M,{discrete:!0}):ze(ys,h,M,{discrete:!0}),k.addEventListener("click",P=>P.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),Rs=e=>{const{__scopeToast:t,children:n,...r}=e,o=gt(We,t),[i,s]=c.useState(!1),[a,d]=c.useState(!1);return _s(()=>s(!0)),c.useEffect(()=>{const u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),a?null:g.jsx(mt,{asChild:!0,children:g.jsx(ht,{...r,children:i&&g.jsxs(g.Fragment,{children:[o.label," ",n]})})})},Ss="ToastTitle",pr=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return g.jsx($.div,{...r,ref:t})});pr.displayName=Ss;var Ps="ToastDescription",mr=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return g.jsx($.div,{...r,ref:t})});mr.displayName=Ps;var vr="ToastAction",hr=c.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?g.jsx(wr,{altText:n,asChild:!0,children:g.jsx(tn,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${vr}\`. Expected non-empty \`string\`.`),null)});hr.displayName=vr;var gr="ToastClose",tn=c.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=Es(gr,n);return g.jsx(wr,{asChild:!0,children:g.jsx($.button,{type:"button",...r,ref:t,onClick:A(e.onClick,o.onClose)})})});tn.displayName=gr;var wr=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return g.jsx($.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function yr(e){const t=[];
vendor: 13,509 bytes, line 9
9return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Ts(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...yr(r))}}),t}function ze(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Qt(o,i):o.dispatchEvent(i)}var Dn=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function _s(e=()=>{}){const t=Y(e);se(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function Ts(e){return e.nodeType===e.ELEMENT_NODE}function As(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Tt(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var Tl=cr,Al=lr,Ml=dr,Ol=pr,Dl=mr,Il=hr,Nl=tn,Ms=er[" useId ".trim().toString()]||(()=>{}),Os=0;function Re(e){const[t,n]=c.useState(Ms());return se(()=>{e||n(r=>r??String(Os++))},[e]),e||(t?`radix-${t}`:"")}const Ds=["top","right","bottom","left"],de=Math.min,G=Math.max,rt=Math.round,Xe=Math.floor,ne=e=>({x:e,y:e}),Is={left:"right",right:"left",bottom:"top",top:"bottom"},Ns={start:"end",end:"start"};function Vt(e,t,n){return G(e,de(t,n))}function ae(e,t){return typeof e=="function"?e(t):e}function ce(e){return e.split("-")[0]}function Me(e){return e.split("-")[1]}function nn(e){return e==="x"?"y":"x"}function rn(e){return e==="y"?"height":"width"}const Fs=new Set(["top","bottom"]);function te(e){return Fs.has(ce(e))?"y":"x"}function on(e){return nn(te(e))}function Ls(e,t,n){n===void 0&&(n=!1);const r=Me(e),o=on(e),i=rn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=ot(s)),[s,ot(s)]}function js(e){const t=ot(e);return[Ut(e),t,Ut(t)]}function Ut(e){return e.replace(/start|end/g,t=>Ns[t])}const In=["left","right"],Nn=["right","left"],ks=["top","bottom"],$s=["bottom","top"];function Ws(e,t,n){switch(e){case"top":case"bottom":return n?t?Nn:In:t?In:Nn;case"left":case"right":return t?ks:$s;default:return[]}}function Bs(e,t,n,r){const o=Me(e);let i=Ws(ce(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ut)))),i}function ot(e){return e.replace(/left|right|bottom|top/g,t=>Is[t])}function Ks(e){return{top:0,right:0,bottom:0,left:0,...e}}function xr(e){return typeof e!="number"?Ks(e):{top:e,right:e,bottom:e,left:e}}function it(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 Fn(e,t,n){let{reference:r,floating:o}=e;const i=te(t),s=on(t),a=rn(s),d=ce(t),u=i==="y",l=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(d){case"top":m={x:l,y:r.y-o.height};break;case"bottom":m={x:l,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:f};break;case"left":m={x:r.x-o.width,y:f};break;default:m={x:r.x,y:r.y}}switch(Me(t)){case"start":m[s]-=h*(n&&u?-1:1);break;case"end":m[s]+=h*(n&&u?-1:1);break}return m}const Vs=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:f}=Fn(u,r,d),h=r,m={},w=0;for(let p=0;p<a.length;p++){const{name:v,fn:y}=a[p],{x:b,y:x,data:E,reset:C}=await y({x:l,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});l=b??l,f=x??f,m={...m,[v]:{...m[v],...E}},C&&w<=50&&(w++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:l,y:f}=Fn(u,h,d)),p=-1)}return{x:l,y:f,placement:h,strategy:o,middlewareData:m}};async function Le(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:d}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=ae(t,e),w=xr(m),v=a[h?f==="floating"?"reference":"floating":f],y=it(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:d})),b=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,x=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),E=await(i.isElement==null?void 0:i.isElement(x))?await(i.getScale==null?void 0:i.getScale(x))||{x:1,y:1}:{x:1,y:1},C=it(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:d}):b);return{top:(y.top-C.top+w.top)/E.y,bottom:(C.bottom-y.bottom+w.bottom)/E.y,left:(y.left-C.left+w.left)/E.x,right:(C.right-y.right+w.right)/E.x}}const Us=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:d}=t,{element:u,padding:l=0}=ae(e,t)||{};if(u==null)return{};const f=xr(l),h={x:n,y:r},m=on(o),w=rn(m),p=await s.getDimensions(u),v=m==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",E=i.reference[w]+i.reference[m]-h[m]-i.floating[w],C=h[m]-i.reference[m],_=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=_?_[x]:0;(!R||!await(s.isElement==null?void 0:s.isElement(_)))&&(R=a.floating[x]||i.floating[w]);const T=E/2-C/2,D=R/2-p[w]/2-1,I=de(f[y],D),j=de(f[b],D),F=I,L=R-p[w]-j,S=R/2-p[w]/2+T,N=Vt(F,S,L),O=!d.arrow&&Me(o)!=null&&S!==N&&i.reference[w]/2-(S<F?I:j)-p[w]/2<0,k=O?S<F?S-F:S-L:0;return{[m]:h[m]+k,data:{[m]:N,centerOffset:S-N-k,...O&&{alignmentOffset:k}},reset:O}}}),Gs=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:d,elements:u}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...v}=ae(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ce(o),b=te(a),x=ce(a)===a,E=await(d.isRTL==null?void 0:d.isRTL(u.floating)),C=h||(x||!p?[ot(a)]:js(a)),_=w!=="none";!h&&_&&C.push(...Bs(a,p,w,E));const R=[a,...C],T=await Le(t,v),D=[];let I=((r=i.flip)==null?void 0:r.overflows)||[];if(l&&D.push(T[y]),f){const S=Ls(o,s,E);D.push(T[S[0]],T[S[1]])}if(I=[...I,{placement:o,overflows:D}],!D.every(S=>S<=0)){var j,F;const S=(((j=i.flip)==null?void 0:j.index)||0)+1,N=R[S];if(N&&(!(f==="alignment"?b!==te(N):!1)||I.every(M=>M.overflows[0]>0&&te(M.placement)===b)))return{data:{index:S,overflows:I},reset:{placement:N}};let O=(F=I.filter(k=>k.overflows[0]<=0).sort((k,M)=>k.overflows[1]-M.overflows[1])[0])==null?void 0:F.placement;if(!O)switch(m){case"bestFit":{var L;const k=(L=I.filter(M=>{if(_){const P=te(M.placement);return P===b||P==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(P=>P>0).reduce((P,W)=>P+W,0)]).sort((M,P)=>M[1]-P[1])[0])==null?void 0:L[0];k&&(O=k);break}case"initialPlacement":O=a;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function Ln(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function jn(e){return Ds.some(t=>e[t]>=0)}const Hs=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ae(e,t);switch(r){case"referenceHidden":{const i=await Le(t,{...o,elementContext:"reference"}),s=Ln(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jn(s)}}}case"escaped":{const i=await Le(t,{...o,altBoundary:!0}),s=Ln(i,n.floating);return{data:{escapedOffsets:s,escaped:jn(s)}}}default:return{}}}}},br=new Set(["left","top"]);async function Ys(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=ce(n),a=Me(n),d=te(n)==="y",u=br.has(s)?-1:1,l=i&&d?-1:1,f=ae(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:w}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof w=="number"&&(m=a==="end"?w*-1:w),d?{x:m*l,y:h*u}:{x:h*u,y:m*l}}const zs=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,d=await Ys(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:s}}}}},Xs=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...d}=ae(e,t),u={x:n,y:r},l=await Le(t,d),f=te(ce(o)),h=nn(f);let m=u[h],w=u[f];if(i){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=m+l[v],x=m-l[y];m=Vt(b,m,x)}if(s){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=w+l[v],x=w-l[y];w=Vt(b,w,x)}const p=a.fn({...t,[h]:m,[f]:w});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[h]:i,[f]:s}}}}}},qs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:d=!0,crossAxis:u=!0}=ae(e,t),l={x:n,y:r},f=te(o),h=nn(f);let m=l[h],w=l[f];const p=ae(a,t),v=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(d){const x=h==="y"?"height":"width",E=i.reference[h]-i.floating[x]+v.mainAxis,C=i.reference[h]+i.reference[x]-v.mainAxis;m<E?m=E:m>C&&(m=C)}if(u){var y,b;const x=h==="y"?"width":"height",E=br.has(ce(o)),C=i.reference[f]-i.floating[x]+(E&&((y=s.offset)==null?void 0:y[f])||0)+(E?0:v.crossAxis),_=i.reference[f]+i.reference[x]+(E?0:((b=s.offset)==null?void 0:b[f])||0)-(E?v.crossAxis:0);w<C?w=C:w>_&&(w=_)}return{[h]:m,[f]:w}}}},Zs=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:d=()=>{},...u}=ae(e,t),l=await Le(t,u),f=ce(o),h=Me(o),m=te(o)==="y",{width:w,height:p}=i.floating;let v,y;f==="top"||f==="bottom"?(v=f,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,v=h==="end"?"top":"bottom");const b=p-l.top-l.bottom,x=w-l.left-l.right,E=de(p-l[v],b),C=de(w-l[y],x),_=!t.middlewareData.shift;let R=E,T=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(T=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=b),_&&!h){const I=G(l.left,0),j=G(l.right,0),F=G(l.top,0),L=G(l.bottom,0);m?T=w-2*(I!==0||j!==0?I+j:G(l.left,l.right)):R=p-2*(F!==0||L!==0?F+L:G(l.top,l.bottom))}await d({...t,availableWidth:T,availableHeight:R});const D=await s.getDimensions(a.floating);return w!==D.width||p!==D.height?{reset:{rects:!0}}:{}}}};function wt(){return typeof window<"u"}function Oe(e){return Er(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oe(e){var t;return(t=(Er(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Er(e){return wt()?e instanceof Node||e instanceof H(e).Node:!1}function Z(e){return wt()?e instanceof Element||e instanceof H(e).Element:!1}function re(e){return wt()?e instanceof HTMLElement||e instanceof H(e).HTMLElement:!1}function kn(e){return!wt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof H(e).ShadowRoot}const Qs=new Set(["inline","contents"]);function Be(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Qs.has(o)}const Js=new Set(["table","td","th"]);function ea(e){return Js.has(Oe(e))}const ta=[":popover-open",":modal"];function yt(e){return ta.some(t=>{try{return e.matches(t)}catch{return!1}})}const na=["transform","translate","scale","rotate","perspective"],ra=["transform","translate","scale","rotate","perspective","filter"],oa=["paint","layout","strict","content"];function sn(e){const t=an(),n=Z(e)?Q(e):e;return na.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||ra.some(r=>(n.willChange||"").includes(r))||oa.some(r=>(n.contain||"").includes(r))}function ia(e){let t=pe(e);for(;re(t)&&!Te(t);){if(sn(t))return t;if(yt(t))return null;t=pe(t)}return null}function an(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sa=new Set(["html","body","#document"]);function Te(e){return sa.has(Oe(e))}function Q(e){return H(e).getComputedStyle(e)}function xt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pe(e){if(Oe(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kn(e)&&e.host||oe(e);return kn(t)?t.host:t}function Cr(e){const t=pe(e);return Te(t)?e.ownerDocument?e.ownerDocument.body:e.body:re(t)&&Be(t)?t:Cr(t)}function je(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Cr(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=H(o);if(i){const a=Gt(s);
vendor: 4,243 bytes, line 9
9return t.concat(s,s.visualViewport||[],Be(o)?o:[],a&&n?je(a):[])}return t.concat(o,je(o,[],n))}function Gt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Rr(e){const t=Q(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=re(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=rt(n)!==i||rt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function cn(e){return Z(e)?e:e.contextElement}function Se(e){const t=cn(e);if(!re(t))return ne(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Rr(t);let s=(i?rt(n.width):n.width)/r,a=(i?rt(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const aa=ne(0);function Sr(e){const t=H(e);return!an()||!t.visualViewport?aa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ca(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==H(e)?!1:t}function he(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=cn(e);let s=ne(1);t&&(r?Z(r)&&(s=Se(r)):s=Se(e));const a=ca(i,n,r)?Sr(i):ne(0);let d=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,l=o.width/s.x,f=o.height/s.y;if(i){const h=H(i),m=r&&Z(r)?H(r):r;let w=h,p=Gt(w);for(;p&&r&&m!==w;){const v=Se(p),y=p.getBoundingClientRect(),b=Q(p),x=y.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,E=y.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;d*=v.x,u*=v.y,l*=v.x,f*=v.y,d+=x,u+=E,w=H(p),p=Gt(w)}}return it({width:l,height:f,x:d,y:u})}function un(e,t){const n=xt(e).scrollLeft;return t?t.left+n:he(oe(e)).left+n}function Pr(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:un(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function ua(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=oe(r),a=t?yt(t.floating):!1;if(r===s||a&&i)return n;let d={scrollLeft:0,scrollTop:0},u=ne(1);const l=ne(0),f=re(r);if((f||!f&&!i)&&((Oe(r)!=="body"||Be(s))&&(d=xt(r)),re(r))){const m=he(r);u=Se(r),l.x=m.x+r.clientLeft,l.y=m.y+r.clientTop}const h=s&&!f&&!i?Pr(s,d,!0):ne(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-d.scrollLeft*u.x+l.x+h.x,y:n.y*u.y-d.scrollTop*u.y+l.y+h.y}}function la(e){return Array.from(e.getClientRects())}function fa(e){const t=oe(e),n=xt(e),r=e.ownerDocument.body,o=G(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=G(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+un(e);const a=-n.scrollTop;return Q(r).direction==="rtl"&&(s+=G(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function da(e,t){const n=H(e),r=oe(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,d=0;if(o){i=o.width,s=o.height;const u=an();(!u||u&&t==="fixed")&&(a=o.offsetLeft,d=o.offsetTop)}return{width:i,height:s,x:a,y:d}}const pa=new Set(["absolute","fixed"]);function ma(e,t){const n=he(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=re(e)?Se(e):ne(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,d=o*i.x,u=r*i.y;return{width:s,height:a,x:d,y:u}}function $n(e,t,n){let r;if(t==="viewport")r=da(e,n);else if(t==="document")r=fa(oe(e));else if(Z(t))r=ma(t,n);else{const o=Sr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return it(r)}function _r(e,t){const n=pe(e);return n===t||!Z(n)||Te(n)?!1:Q(n).position==="fixed"||_r(n,t)}function va(e,t){const n=t.get(e);if(n)return n;let r=je(e,[],!1).filter(a=>Z(a)&&Oe(a)!=="body"),o=null;const i=Q(e).position==="fixed";let s=i?pe(e):e;for(;Z(s)&&!Te(s);){const a=Q(s),d=sn(s);!d&&a.position==="fixed"&&(o=null),(i?!d&&!o:!d&&a.position==="static"&&!!o&&pa.has(o.position)||Be(s)&&!d&&_r(e,s))?r=r.filter(l=>l!==s):o=a,s=pe(s)}return t.set(e,r),r}function ha(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?yt(t)?[]:va(t,this._c):[].concat(n),r],a=s[0],d=s.reduce((u,l)=>{const f=$n(t,l,o);return u.top=G(f.top,u.top),u.right=de(f.right,u.right),u.bottom=de(f.bottom,u.bottom),u.left=G(f.left,u.left),u},$n(t,a,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function ga(e){const{width:t,height:n}=Rr(e);return{width:t,height:n}}function wa(e,t,n){const r=re(t),o=oe(t),i=n==="fixed",s=he(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const d=ne(0);function u(){d.x=un(o)}
vendor: 9,634 bytes, line 9
9if(r||!r&&!i)if((Oe(t)!=="body"||Be(o))&&(a=xt(t)),r){const m=he(t,!0,i,t);d.x=m.x+t.clientLeft,d.y=m.y+t.clientTop}else o&&u();i&&!r&&o&&u();const l=o&&!r&&!i?Pr(o,a):ne(0),f=s.left+a.scrollLeft-d.x-l.x,h=s.top+a.scrollTop-d.y-l.y;return{x:f,y:h,width:s.width,height:s.height}}function At(e){return Q(e).position==="static"}function Wn(e,t){if(!re(e)||Q(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oe(e)===n&&(n=n.ownerDocument.body),n}function Tr(e,t){const n=H(e);if(yt(e))return n;if(!re(e)){let o=pe(e);for(;o&&!Te(o);){if(Z(o)&&!At(o))return o;o=pe(o)}return n}let r=Wn(e,t);for(;r&&ea(r)&&At(r);)r=Wn(r,t);return r&&Te(r)&&At(r)&&!sn(r)?n:r||ia(e)||n}const ya=async function(e){const t=this.getOffsetParent||Tr,n=this.getDimensions,r=await n(e.floating);return{reference:wa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xa(e){return Q(e).direction==="rtl"}const ba={convertOffsetParentRelativeRectToViewportRelativeRect:ua,getDocumentElement:oe,getClippingRect:ha,getOffsetParent:Tr,getElementRects:ya,getClientRects:la,getDimensions:ga,getScale:Se,isElement:Z,isRTL:xa};function Ar(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ea(e,t){let n=null,r;const o=oe(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,d){a===void 0&&(a=!1),d===void 0&&(d=1),i();const u=e.getBoundingClientRect(),{left:l,top:f,width:h,height:m}=u;if(a||t(),!h||!m)return;const w=Xe(f),p=Xe(o.clientWidth-(l+h)),v=Xe(o.clientHeight-(f+m)),y=Xe(l),x={rootMargin:-w+"px "+-p+"px "+-v+"px "+-y+"px",threshold:G(0,de(1,d))||1};let E=!0;function C(_){const R=_[0].intersectionRatio;if(R!==d){if(!E)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Ar(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(C,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return s(!0),i}function Ca(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,u=cn(e),l=o||i?[...u?je(u):[],...je(t)]:[];l.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=u&&a?Ea(u,n):null;let h=-1,m=null;s&&(m=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),n()}),u&&!d&&m.observe(u),m.observe(t));let w,p=d?he(e):null;d&&v();function v(){const y=he(e);p&&!Ar(p,y)&&n(),p=y,w=requestAnimationFrame(v)}return n(),()=>{var y;l.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),f==null||f(),(y=m)==null||y.disconnect(),m=null,d&&cancelAnimationFrame(w)}}const Ra=zs,Sa=Xs,Pa=Gs,_a=Zs,Ta=Hs,Bn=Us,Aa=qs,Ma=(e,t,n)=>{const r=new Map,o={platform:ba,...n},i={...o.platform,_c:r};return Vs(e,t,{...o,platform:i})};var Oa=typeof document<"u",Da=function(){},et=Oa?c.useLayoutEffect:Da;function st(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)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;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!st(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Mr(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kn(e,t){const n=Mr(e);return Math.round(t*n)/n}function Mt(e){const t=c.useRef(e);return et(()=>{t.current=e}),t}function Ia(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:d,open:u}=e,[l,f]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=c.useState(r);st(h,r)||m(r);const[w,p]=c.useState(null),[v,y]=c.useState(null),b=c.useCallback(M=>{M!==_.current&&(_.current=M,p(M))},[]),x=c.useCallback(M=>{M!==R.current&&(R.current=M,y(M))},[]),E=i||w,C=s||v,_=c.useRef(null),R=c.useRef(null),T=c.useRef(l),D=d!=null,I=Mt(d),j=Mt(o),F=Mt(u),L=c.useCallback(()=>{if(!_.current||!R.current)return;const M={placement:t,strategy:n,middleware:h};j.current&&(M.platform=j.current),Ma(_.current,R.current,M).then(P=>{const W={...P,isPositioned:F.current!==!1};S.current&&!st(T.current,W)&&(T.current=W,qt.flushSync(()=>{f(W)}))})},[h,t,n,j,F]);et(()=>{u===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,f(M=>({...M,isPositioned:!1})))},[u]);const S=c.useRef(!1);et(()=>(S.current=!0,()=>{S.current=!1}),[]),et(()=>{if(E&&(_.current=E),C&&(R.current=C),E&&C){if(I.current)return I.current(E,C,L);L()}},[E,C,L,I,D]);const N=c.useMemo(()=>({reference:_,floating:R,setReference:b,setFloating:x}),[b,x]),O=c.useMemo(()=>({reference:E,floating:C}),[E,C]),k=c.useMemo(()=>{const M={position:n,left:0,top:0};if(!O.floating)return M;const P=Kn(O.floating,l.x),W=Kn(O.floating,l.y);return a?{...M,transform:"translate("+P+"px, "+W+"px)",...Mr(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:P,top:W}},[n,a,O.floating,l.x,l.y]);return c.useMemo(()=>({...l,update:L,refs:N,elements:O,floatingStyles:k}),[l,L,N,O,k])}const Na=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Bn({element:r.current,padding:o}).fn(n):{}:r?Bn({element:r,padding:o}).fn(n):{}}}},Fa=(e,t)=>({...Ra(e),options:[e,t]}),La=(e,t)=>({...Sa(e),options:[e,t]}),ja=(e,t)=>({...Aa(e),options:[e,t]}),ka=(e,t)=>({...Pa(e),options:[e,t]}),$a=(e,t)=>({..._a(e),options:[e,t]}),Wa=(e,t)=>({...Ta(e),options:[e,t]}),Ba=(e,t)=>({...Na(e),options:[e,t]});var Ka="Arrow",Or=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return g.jsx($.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});Or.displayName=Ka;var Va=Or;function Ua(e){const[t,n]=c.useState(void 0);return se(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const d=i.borderBoxSize,u=Array.isArray(d)?d[0]:d;s=u.inlineSize,a=u.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ln="Popper",[Dr,Ir]=we(ln),[Ga,Nr]=Dr(ln),Fr=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null);return g.jsx(Ga,{scope:t,anchor:r,onAnchorChange:o,children:n})};Fr.displayName=ln;var Lr="PopperAnchor",jr=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Nr(Lr,n),s=c.useRef(null),a=B(t,s);return c.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:g.jsx($.div,{...o,ref:a})});jr.displayName=Lr;var fn="PopperContent",[Ha,Ya]=Dr(fn),kr=c.forwardRef((e,t)=>{var ie,De,z,Ie,Pn,_n;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:d=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:w,...p}=e,v=Nr(fn,n),[y,b]=c.useState(null),x=B(t,Ne=>b(Ne)),[E,C]=c.useState(null),_=Ua(E),R=(_==null?void 0:_.width)??0,T=(_==null?void 0:_.height)??0,D=r+(i!=="center"?"-"+i:""),I=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},j=Array.isArray(u)?u:[u],F=j.length>0,L={padding:I,boundary:j.filter(Xa),altBoundary:F},{refs:S,floatingStyles:N,placement:O,isPositioned:k,middlewareData:M}=Ia({strategy:"fixed",placement:D,whileElementsMounted:(...Ne)=>Ca(...Ne,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Fa({mainAxis:o+T,alignmentAxis:s}),d&&La({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ja():void 0,...L}),d&&ka({...L}),$a({...L,apply:({elements:Ne,rects:Tn,availableWidth:Oi,availableHeight:Di})=>{const{width:Ii,height:Ni}=Tn.reference,He=Ne.floating.style;He.setProperty("--radix-popper-available-width",`${Oi}px`),He.setProperty("--radix-popper-available-height",`${Di}px`),He.setProperty("--radix-popper-anchor-width",`${Ii}px`),He.setProperty("--radix-popper-anchor-height",`${Ni}px`)}}),E&&Ba({element:E,padding:a}),qa({arrowWidth:R,arrowHeight:T}),h&&Wa({strategy:"referenceHidden",...L})]}),[P,W]=Br(O),K=Y(w);se(()=>{k&&(K==null||K())},[k,K]);const U=(ie=M.arrow)==null?void 0:ie.x,ee=(De=M.arrow)==null?void 0:De.y,le=((z=M.arrow)==null?void 0:z.centerOffset)!==0,[Ge,me]=c.useState();return se(()=>{y&&me(window.getComputedStyle(y).zIndex)},[y]),g.jsx("div",{ref:S.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:k?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ge,"--radix-popper-transform-origin":[(Ie=M.transformOrigin)==null?void 0:Ie.x,(Pn=M.transformOrigin)==null?void 0:Pn.y].join(" "),...((_n=M.hide)==null?void 0:_n.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(Ha,{scope:n,placedSide:P,onArrowChange:C,arrowX:U,arrowY:ee,shouldHideArrow:le,children:g.jsx($.div,{"data-side":P,"data-align":W,...p,ref:x,style:{...p.style,animation:k?void 0:"none"}})})})});kr.displayName=fn;var $r="PopperArrow",za={top:"bottom",right:"left",bottom:"top",left:"r
9ight"},Wr=c.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=Ya($r,r),s=za[i.placedSide];return g.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:g.jsx(Va,{...o,ref:n,style:{...o.style,display:"block"}})})});Wr.displayName=$r;function Xa(e){return e!==null}var qa=e=>({name:"transformOrigin",options:e,fn(t){var v,y,b;const{placement:n,rects:r,middlewareData:o}=t,s=((v=o.arrow)==null?void 0:v.centerOffset)!==0,a=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[u,l]=Br(n),f={start:"0%",center:"50%",end:"100%"}[l],h=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,m=(((b=o.arrow)==null?void 0:b.y)??0)+d/2;let w="",p="";return u==="bottom"?(w=s?f:`${h}px`,p=`${-d}px`):u==="top"?(w=s?f:`${h}px`,p=`${r.floating.height+d}px`):u==="right"?(w=`${-d}px`,p=s?f:`${m}px`):u==="left"&&(w=`${r.floating.width+d}px`,p=s?f:`${m}px`),{data:{x:w,y:p}}}});function Br(e){const[t,n="center"]=e.split("-");return[t,n]}var Za=Fr,Qa=jr,Ja=kr,ec=Wr,Ht=function(e,t){return Ht=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Ht(e,t)};function Kr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ht(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var X=function(){return X=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},X.apply(this,arguments)};function bt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,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 Vr(e,t,n,r){var o=arguments.length,i=o<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Ur(e,t){return function(n,r){t(n,r,e)}}function Gr(e,t,n,r,o,i){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=r.kind,d=a==="getter"?"get":a==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,l=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,h=!1,m=n.length-1;m>=0;m--){var w={};for(var p in r)w[p]=p==="access"?{}:r[p];for(var p in r.access)w.access[p]=r.access[p];w.addInitializer=function(y){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var v=(0,n[m])(a==="accessor"?{get:l.get,set:l.set}:l[d],w);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(f=s(v.get))&&(l.get=f),(f=s(v.set))&&(l.set=f),(f=s(v.init))&&o.unshift(f)}else(f=s(v))&&(a==="field"?o.unshift(f):l[d]=f)}u&&Object.defineProperty(u,r.name,l),h=!0}function Hr(e,t,n){for(var r=arguments.length>2,o=0;o<t.length;o++)n=r?t[o].call(e,n):t[o].call(e);return r?n:void 0}function Yr(e){return typeof e=="symbol"?e:"".concat(e)}function zr(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function Xr(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function qr(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}
vendor: 4,568 bytes, line 9
9return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(f){s(f)}}function d(l){try{u(r.throw(l))}catch(f){s(f)}}function u(l){l.done?i(l.value):o(l.value).then(a,d)}u((r=r.apply(e,t||[])).next())})}function Zr(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return d([u,l])}}function d(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(l){u=[6,l],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Et=Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function Qr(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Et(t,e,n)}function at(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dn(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Jr(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dn(arguments[t]));return e}function eo(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),o=0,t=0;t<n;t++)for(var i=arguments[t],s=0,a=i.length;s<a;s++,o++)r[o]=i[s];return r}function pn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Ae(e){return this instanceof Ae?(this.v=e,this):new Ae(e)}function to(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(m){return function(w){return Promise.resolve(w).then(m,f)}}function a(m,w){r[m]&&(o[m]=function(p){return new Promise(function(v,y){i.push([m,p,v,y])>1||d(m,p)})},w&&(o[m]=w(o[m])))}function d(m,w){try{u(r[m](w))}catch(p){h(i[0][3],p)}}function u(m){m.value instanceof Ae?Promise.resolve(m.value.v).then(l,f):h(i[0][2],m)}function l(m){d("next",m)}function f(m){d("throw",m)}function h(m,w){m(w),i.shift(),i.length&&d(i[0][0],i[0][1])}}function no(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,i){t[o]=e[o]?function(s){return(n=!n)?{value:Ae(e[o](s)),done:!1}:i?i(s):s}:i}}function ro(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof at=="function"?at(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,d){s=e[i](s),o(a,d,s.done,s.value)})}}function o(i,s,a,d){Promise.resolve(d).then(function(u){i({value:u,done:a})},s)}}function oo(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var tc=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};
vendor: 2,871 bytes, line 9
9function io(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Et(t,e,n);return tc(t,e),t}function so(e){return e&&e.__esModule?e:{default:e}}function ao(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function co(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function uo(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function lo(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var nc=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function fo(e){function t(i){e.error=e.hasError?new nc(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var n,r=0;function o(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(s){return t(s),o()})}else r|=1}catch(s){t(s)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function po(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,o,i,s){return r?t?".jsx":".js":o&&(!i||!s)?n:o+i+"."+s.toLowerCase()+"js"}):e}const rc={__extends:Kr,__assign:X,__rest:bt,__decorate:Vr,__param:Ur,__esDecorate:Gr,__runInitializers:Hr,__propKey:Yr,__setFunctionName:zr,__metadata:Xr,__awaiter:qr,__generator:Zr,__createBinding:Et,__exportStar:Qr,__values:at,__read:dn,__spread:Jr,__spreadArrays:eo,__spreadArray:pn,__await:Ae,__asyncGenerator:to,__asyncDelegator:no,__asyncValues:ro,__makeTemplateOb
vendor: 4,576 bytes, line 9
9ject:oo,__importStar:io,__importDefault:so,__classPrivateFieldGet:ao,__classPrivateFieldSet:co,__classPrivateFieldIn:uo,__addDisposableResource:lo,__disposeResources:fo,__rewriteRelativeImportExtension:po},Fl=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:lo,get __assign(){return X},__asyncDelegator:no,__asyncGenerator:to,__asyncValues:ro,__await:Ae,__awaiter:qr,__classPrivateFieldGet:ao,__classPrivateFieldIn:uo,__classPrivateFieldSet:co,__createBinding:Et,__decorate:Vr,__disposeResources:fo,__esDecorate:Gr,__exportStar:Qr,__extends:Kr,__generator:Zr,__importDefault:so,__importStar:io,__makeTemplateObject:oo,__metadata:Xr,__param:Ur,__propKey:Yr,__read:dn,__rest:bt,__rewriteRelativeImportExtension:po,__runInitializers:Hr,__setFunctionName:zr,__spread:Jr,__spreadArray:pn,__spreadArrays:eo,__values:at,default:rc},Symbol.toStringTag,{value:"Module"}));var Ot="focusScope.autoFocusOnMount",Dt="focusScope.autoFocusOnUnmount",Vn={bubbles:!1,cancelable:!0},oc="FocusScope",mn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,d]=c.useState(null),u=Y(o),l=Y(i),f=c.useRef(null),h=B(t,p=>d(p)),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let p=function(x){if(m.paused||!a)return;const E=x.target;a.contains(E)?f.current=E:fe(f.current,{select:!0})},v=function(x){if(m.paused||!a)return;const E=x.relatedTarget;E!==null&&(a.contains(E)||fe(f.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const C of x)C.removedNodes.length>0&&fe(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",v);const b=new MutationObserver(y);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",v),b.disconnect()}}},[r,a,m.paused]),c.useEffect(()=>{if(a){Gn.add(m);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(Ot,Vn);a.addEventListener(Ot,u),a.dispatchEvent(y),y.defaultPrevented||(ic(lc(mo(a)),{select:!0}),document.activeElement===p&&fe(a))}return()=>{a.removeEventListener(Ot,u),setTimeout(()=>{const y=new CustomEvent(Dt,Vn);a.addEventListener(Dt,l),a.dispatchEvent(y),y.defaultPrevented||fe(p??document.body,{select:!0}),a.removeEventListener(Dt,l),Gn.remove(m)},0)}}},[a,u,l,m]);const w=c.useCallback(p=>{if(!n&&!r||m.paused)return;const v=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(v&&y){const b=p.currentTarget,[x,E]=sc(b);x&&E?!p.shiftKey&&y===E?(p.preventDefault(),n&&fe(x,{select:!0})):p.shiftKey&&y===x&&(p.preventDefault(),n&&fe(E,{select:!0})):y===b&&p.preventDefault()}},[n,r,m.paused]);return g.jsx($.div,{tabIndex:-1,...s,ref:h,onKeyDown:w})});mn.displayName=oc;function ic(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fe(r,{select:t}),document.activeElement!==n)return}function sc(e){const t=mo(e),n=Un(t,e),r=Un(t.reverse(),e);return[n,r]}function mo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Un(e,t){for(const n of e)if(!ac(n,{upTo:t}))return n}function ac(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cc(e){return e instanceof HTMLInputElement&&"select"in e}function fe(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cc(e)&&t&&e.select()}}var Gn=uc();function uc(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Hn(e,t),e.unshift(t)},remove(t){var n;e=Hn(e,t),(n=e[0])==null||n.resume()}}}function Hn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function lc(e){return e.filter(t=>t.tagName!=="A")}var It=0;function vo(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Yn()),document.body.insertAdjacentElement("beforeend",e[1]??Yn()),It++,()=>{It===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),It--}},[])}function Yn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,897 bytes, lines 9-24
9style.position="fixed",e.style.pointerEvents="none",e}var tt="right-scroll-bar-position",nt="width-before-scroll-bar",fc="with-scroll-bars-hidden",dc="--removed-body-scroll-bar-size";function Nt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function pc(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var mc=typeof window<"u"?c.useLayoutEffect:c.useEffect,zn=new WeakMap;function vc(e,t){var n=pc(null,function(r){return e.forEach(function(o){return Nt(o,r)})});return mc(function(){var r=zn.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Nt(a,null)}),i.forEach(function(a){o.has(a)||Nt(a,s)})}zn.set(n,e)},[e]),n}function hc(e){return e}function gc(e,t){t===void 0&&(t=hc);var n=[],r=!1,o={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(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var d=function(){var l=s;s=[],l.forEach(i)},u=function(){return Promise.resolve().then(d)};u(),n={push:function(l){s.push(l),u()},filter:function(l){return s=s.filter(l),n}}}};return o}function wc(e){e===void 0&&(e={});var t=gc(null);return t.options=X({async:!0,ssr:!1},e),t}var ho=function(e){var t=e.sideCar,n=bt(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,X({},n))};ho.isSideCarExport=!0;function yc(e,t){return e.useMedium(t),ho}var go=wc(),Ft=function(){},Ct=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Ft,onWheelCapture:Ft,onTouchMoveCapture:Ft}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,d=e.className,u=e.removeScrollBar,l=e.enabled,f=e.shards,h=e.sideCar,m=e.noRelative,w=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,x=e.gapMode,E=bt(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=h,_=vc([n,t]),R=X(X({},E),o);return c.createElement(c.Fragment,null,l&&c.createElement(C,{sideCar:go,removeScrollBar:u,shards:f,noRelative:m,noIsolation:w,inert:p,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:x}),s?c.cloneElement(c.Children.only(a),X(X({},R),{ref:_})):c.createElement(b,X({},R,{className:d,ref:_}),a))});Ct.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ct.classNames={fullWidth:nt,zeroRight:tt};var xc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function bc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=xc();return t&&e.setAttribute("nonce",t),e}function Ec(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Cc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Rc=function(){var e=0,t=null;return{add:function(n){e==0&&(t=bc())&&(Ec(t,n),Cc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Sc=function(){var e=Rc();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wo=function(){var e=Sc(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Pc={left:0,top:0,right:0,gap:0},Lt=function(e){return parseInt(e||"",10)||0},_c=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Lt(n),Lt(r),Lt(o)]},Tc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Pc;var t=_c(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])}},Ac=wo(),Pe="data-scroll-locked",Mc=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),` 10 .`.concat(fc,` { 11 overflow: hidden `).concat(r,`; 12 padding-right: `).concat(a,"px ").concat(r,`; 13 } 14 body[`).concat(Pe,`] { 15 overflow: hidden `).concat(r,`; 16 overscroll-behavior: contain; 17 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 18 padding-left: `.concat(o,`px; 19 padding-top: `).concat(i,`px; 20 padding-right: `).concat(s,`px; 21 margin-left:0; 22 margin-top:0; 23 margin-right: `).concat(a,"px ").concat(r,`; 24 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
24")].filter(Boolean).join(""),` 25 } 26 27 .`).concat(tt,` { 28 right: `).concat(a,"px ").concat(r,`; 29 } 30 31 .`).concat(nt,` { 32 margin-right: `).concat(a,"px ").concat(r,`; 33 } 34 35 .`).concat(tt," .").concat(tt,` { 36 right: 0 `).concat(r,`; 37 } 38 39 .`).concat(nt," .").concat(nt,` { 40 margin-right: 0 `).concat(r,`; 41 } 42 43 body[`).concat(Pe,`] { 44 `).concat(dc,": ").concat(a,`px; 45 } 46`)},Xn=function(){var e=parseInt(document.body.getAttribute(Pe)||"0",10);return isFinite(e)?e:0},Oc=function(){c.useEffect(function(){return document.body.setAttribute(Pe,(Xn()+1).toString()),function(){var e=Xn()-1;e<=0?document.body.removeAttribute(Pe):document.body.setAttribute(Pe,e.toString())}},[])},Dc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Oc();var i=c.useMemo(function(){return Tc(o)},[o]);return c.createElement(Ac,{styles:Mc(i,!t,o,n?"":"!important")})},Yt=!1;if(typeof window<"u")try{var qe=Object.defineProperty({},"passive",{get:function(){return Yt=!0,!0}});window.addEventListener("test",qe,qe),window.removeEventListener("test",qe,qe)}catch{Yt=!1}var be=Yt?{passive:!1}:!1,Ic=function(e){return e.tagName==="TEXTAREA"},yo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ic(e)&&n[t]==="visible")},Nc=function(e){return yo(e,"overflowY")},Fc=function(e){return yo(e,"overflowX")},qn=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=xo(e,r);if(o){var i=bo(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Lc=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},jc=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},xo=function(e,t){return e==="v"?Nc(t):Fc(t)},bo=function(e,t){return e==="v"?Lc(t):jc(t)},kc=function(e,t){return e==="h"&&t==="rtl"?-1:1},$c=function(e,t,n,r,o){var i=kc(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,d=t.contains(a),u=!1,l=s>0,f=0,h=0;do{if(!a)break;var m=bo(e,a),w=m[0],p=m[1],v=m[2],y=p-v-i*w;(w||y)&&xo(e,a)&&(f+=y,h+=w);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!d&&a!==document.body||d&&(t.contains(a)||t===a));return(l&&(Math.abs(f)<1||!o)||!l&&(Math.abs(h)<1||!o))&&(u=!0),u},Ze=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zn=function(e){return[e.deltaX,e.deltaY]},Qn=function(e){return e&&"current"in e?e.current:e},Wc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Bc=function(e){return` 47 .block-interactivity-`.concat(e,` {pointer-events: none;} 48 .allow-interactivity-`).concat(e,` {pointer-events: all;} 49`)},Kc=0,Ee=[];function Vc(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Kc++)[0],i=c.useState(wo)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=pn([e.lockRef.current],(e.shards||[]).map(Qn),!0).filter(Boolean);return p.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(p,v){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!s.current.allowPinchZoom;var y=Ze(p),b=n.current,x="deltaX"in p?p.deltaX:b[0]-y[0],E="deltaY"in p?p.deltaY:b[1]-y[1],C,_=p.target,R=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in p&&R==="h"&&_.type==="range")return!1;var T=qn(R,_);if(!T)return!0;if(T?C=R:(C=R==="v"?"h":"v",T=qn(R,_)),!T)return!1;if(!r.current&&"changedTouches"in p&&(x||E)&&(r.current=C),!C)return!0;var D=r.current||C;return $c(D,v,p,D==="h"?x:E,!0)},[]),d=c.useCallback(function(p){var v=p;if(!(!Ee.length||Ee[Ee.length-1]!==i)){var y="deltaY"in v?Zn(v):Ze(v),b=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&Wc(C.delta,y)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}
vendor: 4,325 bytes, line 49
49if(!b){var x=(s.current.shards||[]).map(Qn).filter(Boolean).filter(function(C){return C.contains(v.target)}),E=x.length>0?a(v,x[0]):!s.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),u=c.useCallback(function(p,v,y,b){var x={name:p,delta:v,target:y,should:b,shadowParent:Uc(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),l=c.useCallback(function(p){n.current=Ze(p),r.current=void 0},[]),f=c.useCallback(function(p){u(p.type,Zn(p),p.target,a(p,e.lockRef.current))},[]),h=c.useCallback(function(p){u(p.type,Ze(p),p.target,a(p,e.lockRef.current))},[]);c.useEffect(function(){return Ee.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",d,be),document.addEventListener("touchmove",d,be),document.addEventListener("touchstart",l,be),function(){Ee=Ee.filter(function(p){return p!==i}),document.removeEventListener("wheel",d,be),document.removeEventListener("touchmove",d,be),document.removeEventListener("touchstart",l,be)}},[]);var m=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(i,{styles:Bc(o)}):null,m?c.createElement(Dc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Uc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Gc=yc(go,Vc);var vn=c.forwardRef(function(e,t){return c.createElement(Ct,X({},e,{ref:t,sideCar:Gc}))});vn.classNames=Ct.classNames;var Hc=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ce=new WeakMap,Qe=new WeakMap,Je={},jt=0,Eo=function(e){return e&&(e.host||Eo(e.parentNode))},Yc=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Eo(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zc=function(e,t,n,r){var o=Yc(t,Array.isArray(e)?e:[e]);Je[n]||(Je[n]=new WeakMap);var i=Je[n],s=[],a=new Set,d=new Set(o),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};o.forEach(u);var l=function(f){!f||d.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))l(h);else try{var m=h.getAttribute(r),w=m!==null&&m!=="false",p=(Ce.get(h)||0)+1,v=(i.get(h)||0)+1;Ce.set(h,p),i.set(h,v),s.push(h),p===1&&w&&Qe.set(h,!0),v===1&&h.setAttribute(n,"true"),w||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return l(t),a.clear(),jt++,function(){s.forEach(function(f){var h=Ce.get(f)-1,m=i.get(f)-1;Ce.set(f,h),i.set(f,m),h||(Qe.has(f)||f.removeAttribute(r),Qe.delete(f)),m||f.removeAttribute(n)}),jt--,jt||(Ce=new WeakMap,Ce=new WeakMap,Qe=new WeakMap,Je={})}},Co=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Hc(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),zc(r,o,n,"aria-hidden")):function(){return null}},Rt="Dialog",[Ro,Ll]=we(Rt),[Xc,J]=Ro(Rt),So=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=c.useRef(null),d=c.useRef(null),[u,l]=vt({prop:r,defaultProp:o??!1,onChange:i,caller:Rt});return g.jsx(Xc,{scope:t,triggerRef:a,contentRef:d,contentId:Re(),titleId:Re(),descriptionId:Re(),open:u,onOpenChange:l,onOpenToggle:c.useCallback(()=>l(f=>!f),[l]),modal:s,children:n})};So.displayName=Rt;var Po="DialogTrigger",_o=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=J(Po,n),i=B(t,o.triggerRef);return g.jsx($.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":wn(o.open),...r,ref:i,onClick:A(e.onClick,o.onOpenToggle)})});_o.displayName=Po;var hn="DialogPortal",[qc,To]=Ro(hn,{forceMount:void 0}),Ao=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=J(hn,t);return g.jsx(qc,{scope:t,forceMount:n,children:c.Children.map(r,s=>g.jsx(ue,{present:n||i.open,children:g.jsx(mt,{asChild:!0,container:o,children:s})}))})};Ao.displayName=hn;var ct="DialogOverlay",Mo=c.forwardRef((e,t)=>{const n=To(ct,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=J(ct,e.__scopeDialog);return i.modal?g.jsx(ue,{present:r||i.open,children:g.jsx(Qc,{...o,ref:t})}):null});Mo.displayName=ct;var Zc=_e("DialogOverlay.RemoveScroll"),Qc=c.forwardRef((e,t)=>
vendor: 24,678 bytes, lines 49-53
49{const{__scopeDialog:n,...r}=e,o=J(ct,n);return g.jsx(vn,{as:Zc,allowPinchZoom:!0,shards:[o.contentRef],children:g.jsx($.div,{"data-state":wn(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ge="DialogContent",Oo=c.forwardRef((e,t)=>{const n=To(ge,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=J(ge,e.__scopeDialog);return g.jsx(ue,{present:r||i.open,children:i.modal?g.jsx(Jc,{...o,ref:t}):g.jsx(eu,{...o,ref:t})})});Oo.displayName=ge;var Jc=c.forwardRef((e,t)=>{const n=J(ge,e.__scopeDialog),r=c.useRef(null),o=B(t,n.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return Co(i)},[]),g.jsx(Do,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:A(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:A(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:A(e.onFocusOutside,i=>i.preventDefault())})}),eu=c.forwardRef((e,t)=>{const n=J(ge,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return g.jsx(Do,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var d,u;(d=e.onInteractOutside)==null||d.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Do=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=J(ge,n),d=c.useRef(null),u=B(t,d);return vo(),g.jsxs(g.Fragment,{children:[g.jsx(mn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:g.jsx(pt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":wn(a.open),...s,ref:u,onDismiss:()=>a.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(tu,{titleId:a.titleId}),g.jsx(ru,{contentRef:d,descriptionId:a.descriptionId})]})]})}),gn="DialogTitle",Io=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=J(gn,n);return g.jsx($.h2,{id:o.titleId,...r,ref:t})});Io.displayName=gn;var No="DialogDescription",Fo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=J(No,n);return g.jsx($.p,{id:o.descriptionId,...r,ref:t})});Fo.displayName=No;var Lo="DialogClose",jo=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=J(Lo,n);return g.jsx($.button,{type:"button",...r,ref:t,onClick:A(e.onClick,()=>o.onOpenChange(!1))})});jo.displayName=Lo;function wn(e){return e?"open":"closed"}var ko="DialogTitleWarning",[jl,$o]=Ki(ko,{contentName:ge,titleName:gn,docsSlug:"dialog"}),tu=({titleId:e})=>{const t=$o(ko),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 50 51If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 52 53For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},nu="DialogDescriptionWarning",ru=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$o(nu).contentName}}.`;return c.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},kl=So,$l=_o,Wl=Ao,Bl=Mo,Kl=Oo,Vl=Io,Ul=Fo,Gl=jo,ou=c.createContext(void 0);function Wo(e){const t=c.useContext(ou);return e||t||"ltr"}var kt="rovingFocusGroup.onEntryFocus",iu={bubbles:!1,cancelable:!0},Ke="RovingFocusGroup",[zt,Bo,su]=Zt(Ke),[au,Ko]=we(Ke,[su]),[cu,uu]=au(Ke),Vo=c.forwardRef((e,t)=>g.jsx(zt.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(zt.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(lu,{...e,ref:t})})}));Vo.displayName=Ke;var lu=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:d,onEntryFocus:u,preventScrollOnEntryFocus:l=!1,...f}=e,h=c.useRef(null),m=B(t,h),w=Wo(i),[p,v]=vt({prop:s,defaultProp:a??null,onChange:d,caller:Ke}),[y,b]=c.useState(!1),x=Y(u),E=Bo(n),C=c.useRef(!1),[_,R]=c.useState(0);return c.useEffect(()=>{const T=h.current;if(T)return T.addEventListener(kt,x),()=>T.removeEventListener(kt,x)},[x]),g.jsx(cu,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:p,onItemFocus:c.useCallback(T=>v(T),[v]),onItemShiftTab:c.useCallback(()=>b(!0),[]),onFocusableItemAdd:c.useCallback(()=>R(T=>T+1),[]),onFocusableItemRemove:c.useCallback(()=>R(T=>T-1),[]),children:g.jsx($.div,{tabIndex:y||_===0?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:A(e.onMouseDown,()=>{C.current=!0}),onFocus:A(e.onFocus,T=>{const D=!C.current;if(T.target===T.currentTarget&&D&&!y){const I=new CustomEvent(kt,iu);if(T.currentTarget.dispatchEvent(I),!I.defaultPrevented){const j=E().filter(O=>O.focusable),F=j.find(O=>O.active),L=j.find(O=>O.id===p),N=[F,L,...j].filter(Boolean).map(O=>O.ref.current);Ho(N,l)}}C.current=!1}),onBlur:A(e.onBlur,()=>b(!1))})})}),Uo="RovingFocusGroupItem",Go=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...a}=e,d=Re(),u=i||d,l=uu(Uo,n),f=l.currentTabStopId===u,h=Bo(n),{onFocusableItemAdd:m,onFocusableItemRemove:w,currentTabStopId:p}=l;return c.useEffect(()=>{if(r)return m(),()=>w()},[r,m,w]),g.jsx(zt.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:g.jsx($.span,{tabIndex:f?0:-1,"data-orientation":l.orientation,...a,ref:t,onMouseDown:A(e.onMouseDown,v=>{r?l.onItemFocus(u):v.preventDefault()}),onFocus:A(e.onFocus,()=>l.onItemFocus(u)),onKeyDown:A(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){l.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=pu(v,l.orientation,l.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=h().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const E=x.indexOf(v.currentTarget);x=l.loop?mu(x,E+1):x.slice(E+1)}setTimeout(()=>Ho(x))}}),children:typeof s=="function"?s({isCurrentTabStop:f,hasTabStop:p!=null}):s})})});Go.displayName=Uo;var fu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function du(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function pu(e,t,n){const r=du(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return fu[r]}function Ho(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function mu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var vu=Vo,hu=Go,Xt=["Enter"," "],gu=["ArrowDown","PageUp","Home"],Yo=["ArrowUp","PageDown","End"],wu=[...gu,...Yo],yu={ltr:[...Xt,"ArrowRight"],rtl:[...Xt,"ArrowLeft"]},xu={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ve="Menu",[ke,bu,Eu]=Zt(Ve),[ye,zo]=we(Ve,[Eu,Ir,Ko]),St=Ir(),Xo=Ko(),[Cu,xe]=ye(Ve),[Ru,Ue]=ye(Ve),qo=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=St(t),[d,u]=c.useState(null),l=c.useRef(!1),f=Y(i),h=Wo(o);return c.useEffect(()=>{const m=()=>{l.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>l.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),g.jsx(Za,{...a,children:g.jsx(Cu,{scope:t,open:n,onOpenChange:f,content:d,onContentChange:u,children:g.jsx(Ru,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:l,dir:h,modal:s,children:r})})})};qo.displayName=Ve;var Su="MenuAnchor",yn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=St(n);return g.jsx(Qa,{...o,...r,ref:t})});yn.displayName=Su;var xn="MenuPortal",[Pu,Zo]=ye(xn,{forceMount:void 0}),Qo=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=xe(xn,t);return g.jsx(Pu,{scope:t,forceMount:n,children:g.jsx(ue,{present:n||i.open,children:g.jsx(mt,{asChild:!0,container:o,children:r})})})};Qo.displayName=xn;var q="MenuContent",[_u,bn]=ye(q),Jo=c.forwardRef((e,t)=>{const n=Zo(q,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=xe(q,e.__scopeMenu),s=Ue(q,e.__scopeMenu);return g.jsx(ke.Provider,{scope:e.__scopeMenu,children:g.jsx(ue,{present:r||i.open,children:g.jsx(ke.Slot,{scope:e.__scopeMenu,children:s.modal?g.jsx(Tu,{...o,ref:t}):g.jsx(Au,{...o,ref:t})})})})}),Tu=c.forwardRef((e,t)=>{const n=xe(q,e.__scopeMenu),r=c.useRef(null),o=B(t,r);return c.useEffect(()=>{const i=r.current;if(i)return Co(i)},[]),g.jsx(En,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:A(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Au=c.forwardRef((e,t)=>{const n=xe(q,e.__scopeMenu);return g.jsx(En,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Mu=_e("MenuContent.ScrollLock"),En=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:h,onDismiss:m,disableOutsideScroll:w,...p}=e,v=xe(q,n),y=Ue(q,n),b=St(n),x=Xo(n),E=bu(n),[C,_]=c.useState(null),R=c.useRef(null),T=B(t,R,v.onContentChange),D=c.useRef(0),I=c.useRef(""),j=c.useRef(0),F=c.useRef(null),L=c.useRef("right"),S=c.useRef(0),N=w?vn:c.Fragment,O=w?{as:Mu,allowPinchZoom:!0}:void 0,k=P=>{var ie,De;const W=I.current+P,K=E().filter(z=>!z.disabled),U=document.activeElement,ee=(ie=K.find(z=>z.ref.current===U))==null?void 0:ie.textValue,le=K.map(z=>z.textValue),Ge=Ku(le,W,ee),me=(De=K.find(z=>z.textValue===Ge))==null?void 0:De.ref.current;(function z(Ie){I.current=Ie,window.clearTimeout(D.current),Ie!==""&&(D.current=window.setTimeout(()=>z(""),1e3))})(W),me&&setTimeout(()=>me.focus())};c.useEffect(()=>()=>window.clearTimeout(D.current),[]),vo();const M=c.useCallback(P=>{var K,U;return L.current===((K=F.current)==null?void 0:K.side)&&Uu(P,(U=F.current)==null?void 0:U.area)},[]);return g.jsx(_u,{scope:n,searchRef:I,onItemEnter:c.useCallback(P=>{M(P)&&P.preventDefault()},[M]),onItemLeave:c.useCallback(P=>{var W;M(P)||((W=R.current)==null||W.focus(),_(null))},[M]),onTriggerLeave:c.useCallback(P=>{M(P)&&P.preventDefault()},[M]),pointerGraceTimerRef:j,onPointerGraceIntentChange:c.useCallback(P=>{F.current=P},[]),children:g.jsx(N,{...O,children:g.jsx(mn,{asChild:!0,trapped:o,onMountAutoFocus:A(i,P=>{var W;P.preventDefault(),(W=R.current)==null||W.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:g.jsx(pt,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:u,onPointerDownOutside:l,onFocusOutside:f,onInteractOutside:h,onDismiss:m,children:g.jsx(vu,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:_,onEntryFocus:A(d,P=>{y.isUsingKeyboardRef.current||P.preventDefault()}),preventScrollOnEntryFocus:!0,children:g.jsx(Ja,{role:"menu","aria-orientation":"vertical","data-state":vi(v.open),"data-radix-menu-content":"",dir:y.dir,...b,...p,ref:T,style:{outline:"none",...p.style},onKeyDown:A(p.onKeyDown,P=>{const K=P.target.closest("[data-radix-menu-content]")===P.currentTarget,U=P.ctrlKey||P.altKey||P.metaKey,ee=P.key.length===1;K&&(P.key==="Tab"&&P.preventDefault(),!U&&ee&&k(P.key));const le=R.current;if(P.target!==le||!wu.includes(P.key))return;P.preventDefault();const me=E().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);Yo.includes(P.key)&&me.reverse(),Wu(me)}),onBlur:A(e.onBlur,P=>{P.currentTarget.contains(P.target)||(window.clearTimeout(D.current),I.current="")}),onPointerMove:A(e.onPointerMove,$e(P=>{const W=P.target,K=S.current!==P.clientX;if(P.currentTarget.contains(W)&&K){const U=P.clientX>S.current?"right":"left";L.current=U,S.current=P.clientX}}))})})})})})})});Jo.displayName=q;var Ou="MenuGroup",Cn=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return g.jsx($.div,{role:"group",...r,ref:t})});Cn.displayName=Ou;var Du="MenuLabel",ei=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return g.jsx($.div,{...r,ref:t})});ei.displayName=Du;var ut="MenuItem",Jn="menu.itemSelect",Pt=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=c.useRef(null),s=Ue(ut,e.__scopeMenu),a=bn(ut,e.__scopeMenu),d=B(t,i),u=c.useRef(!1),l=()=>{const f=i.current;if(!n&&f){const h=new CustomEvent(Jn,{bubbles:!0,cancelable:!0});f.addEventListener(Jn,m=>r==null?void 0:r(m),{once:!0}),Qt(f,h),h.defaultPrevented?u.current=!1:s.onClose()}};return g.jsx(ti,{...o,ref:d,disabled:n,onClick:A(e.onClick,l),onPointerDown:f=>{var h;(h=e.onPointerDown)==null||h.call(e,f),u.current=!0},onPointerUp:A(e.onPointerUp,f=>{var h;u.current||(h=f.currentTarget)==null||h.click()}),onKeyDown:A(e.onKeyDown,f=>{const h=a.searchRef.current!=="";n||h&&f.key===" "||Xt.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Pt.displayName=ut;var ti=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=bn(ut,n),a=Xo(n),d=c.useRef(null),u=B(t,d),[l,f]=c.useState(!1),[h,m]=c.useState("");return c.useEffect(()=>{const w=d.current;w&&m((w.textContent??"").trim())},[i.children]),g.jsx(ke.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:g.jsx(hu,{asChild:!0,...a,focusable:!r,children:g.jsx($.div,{role:"menuitem","data-highlighted":l?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:u,onPointerMove:A(e.onPointerMove,$e(w=>{r?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:A(e.onPointerLeave,$e(w=>s.onItemLeave(w))),onFocus:A(e.onFocus,()=>f(!0)),onBlur:A(e.onBlur,()=>f(!1))})})})}),Iu="MenuCheckboxItem",ni=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return g.jsx(ai,{scope:e.__scopeMenu,checked:n,children:g.jsx(Pt,{role:"menuitemcheckbox","aria-checked":lt(n)?"mixed":n,...o,ref:t,"data-state":Sn(n),onSelect:A(o.onSelect,()=>r==null?void 0:r(lt(n)?!0:!n),{checkForDefaultPrevented:!1})})})});ni.displayName=Iu;var ri="MenuRadioGroup",[Nu,Fu]=ye(ri,{value:void 0,onValueChange:()=>{}}),oi=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Y(r);return g.jsx(Nu,{scope:e.__scopeMenu,value:n,onValueChange:i,children:g.jsx(Cn,{...o,ref:t})})});oi.displayName=ri;var ii="MenuRadioItem",si=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=Fu(ii,e.__scopeMenu),i=n===o.value;return g.jsx(ai,{scope:e.__scopeMenu,checked:i,children:g.jsx(Pt,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Sn(i),onSelect:A(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});si.displayName=ii;var Rn="MenuItemIndicator",[ai,Lu]=ye(Rn,{checked:!1}),ci=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Lu(Rn,n);return g.jsx(ue,{present:r||lt(i.checked)||i.checked===!0,children:g.jsx($.span,{...o,ref:t,"data-state":Sn(i.checked)})})});ci.displayName=Rn;var ju="MenuSeparator",ui=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return g.jsx($.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ui.displayName=ju;var ku="MenuArrow",li=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=St(n);return g.jsx(ec,{...o,...r,ref:t})});li.displayName=ku;var $u="MenuSub",[Hl,fi]=ye($u),Fe="MenuSubTrigger",di=c.forwardRef((e,t)=>{const n=xe(Fe,e.__scopeMenu),r=Ue(Fe,e.__scopeMenu),o=fi(Fe,e.__scopeMenu),i=bn(Fe,e.__scopeMenu),s=c.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:d}=i,u={__scopeMenu:e.__scopeMenu},l=c.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return c.useEffect(()=>l,[l]),c.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),d(null)}},[a,d]),g.jsx(yn,{asChild:!0,...u,children:g.jsx(ti,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":vi(n.open),...e,ref:dt(t,o.onTriggerChange),onClick:f=>{var h;(h=e.onClick)==null||h.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:A(e.onPointerMove,$e(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),l()},100))})),onPointerLeave:A(e.onPointerLeave,$e(f=>{var m,w;l();const h=(m=n.content)==null?void 0:m.getBoundingClientRect();if(h){const p=(w=n.content)==null?void 0:w.dataset.side,v=p==="right",y=v?-5:5,b=h[v?"left":"right"],x=h[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+y,y:f.clientY},{x:b,y:h.top},{x,y:h.top},{x,y:h.bottom},{x:b,y:h.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:A(e.onKeyDown,f=>{var m;const h=i.searchRef.current!=="";e.disabled||h&&f.key===" "||yu[r.dir].includes(f.key)&&(n.onOpenChange(!0),(m=n.content)==null||m.focus(),f.preventDefault())})})})});di.displayName=Fe;var pi="MenuSubContent",mi=c.forwardRef((e,t)=>{const n=Zo(q,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=xe(q,e.__scopeMenu),s=Ue(q,e.__scopeMenu),a=fi(pi,e.__scopeMenu),d=c.useRef(null),u=B(t,d);return g.jsx(ke.Provider,{scope:e.__scopeMenu,children:g.jsx(ue,{present:r||i.open,children:g.jsx(ke.Slot,{scope:e.__scopeMenu,children:g.jsx(En,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:u,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:l=>{var f;s.isUsingKeyboardRef.current&&((f=d.current)==null||f.focus()),l.preventDefault()},onCloseAutoFocus:l=>l.preventDefault(),onFocusOutside:A(e.onFocusOutside,l=>{l.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:A(e.onEscapeKeyDown,l=>{s.onClose(),l.preventDefault()}),onKeyDown:A(e.onKeyDown,l=>{var m;const f=l.currentTarget.contains(l.target),h=xu[s.dir].includes(l.key);f&&h&&(i.onOpenChange(!1),(m=a.trigger)==null||m.focus(),l.preventDefault())})})})})})});mi.displayName=pi;function vi(e){return e?"open":"closed"}function lt(e){return e==="indeterminate"}function Sn(e){return lt(e)?"indeterminate":e?"checked":"unchecked"}function Wu(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Bu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Ku(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=Bu(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const d=s.find(u=>u.toLowerCase().startsWith(o.toLowerCase()));return d!==n?d:void 0}function Vu(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],d=t[s],u=a.x,l=a.y,f=d.x,h=d.y;l>r!=h>r&&n<(f-u)*(r-l)/(h-l)+u&&(o=!o)}return o}function Uu(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Vu(n,t)}function $e(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Gu=qo,Hu=yn,Yu=Qo,zu=Jo,Xu=Cn,qu=ei,Zu=Pt,Qu=ni,Ju=oi,el=si,tl=ci,nl=ui,rl=li,ol=di,il=mi,_t="DropdownMenu",[sl,Yl]=we(_t,[zo]),V=zo(),[al,hi]=sl(_t),gi=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,d=V(t),u=c.useRef(null),[l,f]=vt({prop:o,defaultProp:i??!1,onChange:s,caller:_t});return g.jsx(al,{scope:t,triggerId:Re(),triggerRef:u,contentId:Re(),open:l,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(h=>!h),[f]),modal:a,children:g.jsx(Gu,{...d,open:l,onOpenChange:f,dir:r,modal:a,children:n})})};gi.displayName=_t;var wi="DropdownMenuTrigger",yi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=hi(wi,n),s=V(n);return g.jsx(Hu,{asChild:!0,...s,children:g.jsx($.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:dt(t,i.triggerRef),onPointerDown:A(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:A(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});yi.displayName=wi;var cl="DropdownMenuPortal",xi=e=>{const{__scopeDropdownMenu:t,...n}=e,r=V(t);return g.jsx(Yu,{...r,...n})};xi.displayName=cl;var bi="DropdownMenuContent",Ei=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hi(bi,n),i=V(n),s=c.useRef(!1);return g.jsx(zu,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:A(e.onCloseAutoFocus,a=>{var d;s.current||(d=o.triggerRef.current)==null||d.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:A(e.onInteractOutside,a=>{const d=a.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,l=d.button===2||u;(!o.modal||l)&&(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)"}})});Ei.displayName=bi;var ul="DropdownMenuGroup",ll=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(Xu,{...o,...r,ref:t})});ll.displayName=ul;var fl="DropdownMenuLabel",Ci=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(qu,{...o,...r,ref:t})});Ci.displayName=fl;var dl="DropdownMenuItem",Ri=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(Zu,{...o,...r,ref:t})});Ri.displayName=dl;var pl="DropdownMenuCheckboxItem",Si=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(Qu,{...o,...r,ref:t})});Si.displayName=pl;var ml="DropdownMenuRadioGroup",vl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(Ju,{...o,...r,ref:t})});vl.displayName=ml;var hl="DropdownMenuRadioItem",Pi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(el,{...o,...r,ref:t})});Pi.displayName=hl;var gl="DropdownMenuItemIndicator",_i=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(tl,{...o,...r,ref:t})});_i.displayName=gl;var wl="DropdownMenuSeparator",Ti=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(nl,{...o,...r,ref:t})});Ti.displayName=wl;var yl="DropdownMenuArrow",xl=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(rl,{...o,...r,ref:t})});xl.displayName=yl;var bl="DropdownMenuSubTrigger",Ai=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(ol,{...o,...r,ref:t})});Ai.displayName=bl;var El="DropdownMenuSubContent",Mi=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=V(n);return g.jsx(il,{...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)"}})});Mi.displayName=El;var zl=gi,Xl=yi,ql=xi,Zl=Ei,Ql=Ci,Jl=Ri,ef=Si,tf=Pi,nf=_i,rf=Ti,of=Ai,sf=Mi;export{Xl as $,Il as A,Zt as B,Nl as C,Dl as D,Wo as E,Y as F,se as G,dt as H,Qt as I,of as J,sf as K,ql as L,Zl as M,Jl as N,Bl as O,Tl as P,ef as Q,Ml as R,Rl as S,Ol as T,nf as U,Al as V,tf as W,Ql as X,rf as Y,zl as Z,qr as _,Ir as a,Ko as a0,vu as a1,hu as a2,Qa as b,we as c,$ as d,A as e,ue as f,pt as g,Ja as h,Pl as i,g as j,ec as k,Sl as l,Re as m,vt as n,Za as o,Ua as p,bt as q,Kl as r,Gl as s,Fl as t,B as u,Vl as v,Ul as w,Wl as x,kl as y,$l as z};
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.