1import{r as e,e as t,a as n,G as r,R as o}from"./vendor-CE3ienG7.js";var a={exports:{}},i={},s=e,c=Symbol.for("react.element"),u=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,d=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)l.call(t,r)&&!f.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:c,type:e,key:a,ref:i,props:o,_owner:d.current}}i.Fragment=u,i.jsx=p,i.jsxs=p,a.exports=i;var v=a.exports;function m(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function h(...e){return t=>e.forEach((e=>{return r=t,void("function"==typeof(n=e)?n(r):null!=n&&(n.current=r));var n,r}))}function y(...t){return e.useCallback(h(...t),t)}function w(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}var E=e.forwardRef(((t,n)=>{const{children:r,...o}=t,a=e.Children.toArray(r),i=a.find(T);if(i){const t=i.props.children,r=a.map((n=>n===i?e.Children.count(t)>1?e.Children.only(null):e.isValidElement(t)?t.props.children:null:n));return v.jsx(g,{...o,ref:n,children:e.isValidElement(t)?e.cloneElement(t,void 0,r):null})}return v.jsx(g,{...o,ref:n,children:r})}));E.displayName="Slot";var g=e.forwardRef(((t,n)=>{const{children:r,...o}=t;if(e.isValidElement(r)){const t=function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}(r);return e.cloneElement(r,{...x(o,r.props),ref:n?h(n,t):t})}return e.Children.count(r)>1?e.Children.only(null):null}));g.displayName="SlotClone";var b=({children:e})=>v.jsx(v.Fragment,{children:e});function T(t){return e.isValidElement(t)&&t.type===b}function x(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}function C(n){const r=n+"CollectionProvider",[o,a]=function(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const a=e.createContext(o),i=r.length;function s(n){const{scope:r,children:o,...s}=n,c=(null==r?void 0:r[t][i])||a,u=e.useMemo((()=>s),Object.values(s));return v.jsx(c.Provider,{value:u,children:o})}return r=[...r,o],s.displayName=n+"Provider",[s,function(r,s){const c=(null==s?void 0:s[t][i])||a,u=e.useContext(c);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},w(o,...n)]}(r),[i,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),c=e=>{const{scope:n,children:r}=e,o=t.useRef(null),a=t.useRef(new Map).current;return v.jsx(i,{scope:n,itemMap:a,collectionRef:o,children:r})};c.displayName=r;const u=n+"CollectionSlot",l=t.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=y(t,s(u,n).collectionRef);return v.jsx(E,{ref:o,children:r})}));l.displayName=u;const d=n+"CollectionItemSlot",f="data-radix-collection-item",p=t.forwardRef(((e,n)=>{const{scope:r,children:o,...a}=e,i=t.useRef(null),c=y(n,i),u=s(d,r);return t.useEffect((()=>(u.itemMap.set(i,{ref:i,...a}),()=>{u.itemMap.delete(i)}))),v.jsx(E,{[f]:"",ref:c,children:o})}));return p.displayName=d,[{Provider:c,Slot:l,ItemSlot:p},function(e){const r=s(n+"CollectionConsumer",e);return t.useCallback((()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(r.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[r.collectionRef,r.itemMap])},a]}function R(t,n=[]){let r=[];const o=()=>{const n=r.map((t=>e.createContext(t)));return function(r){const o=(null==r?void 0:r[t])||n;return e.useMemo((()=>({[`__scope${t}`]:{...r,[t]:o}})),[r,o])}};return o.scopeName=t,[function(n,o){const a=e.createContext(o),i=r.length;r=[...r,o];const s=n=>{var r;const{scope:o,children:s,...c}=n,u=(null==(r=null==o?void 0:o[t])?void 0:r[i])||a,l=e.useMemo((()=>
vendor: 4,519 bytes, line 1
1c),Object.values(c));return v.jsx(u.Provider,{value:l,children:s})};return s.displayName=n+"Provider",[s,function(r,s){var c;const u=(null==(c=null==s?void 0:s[t])?void 0:c[i])||a,l=e.useContext(u);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${r}\` must be used within \`${n}\``)}]},S(o,...n)]}function S(...t){const n=t[0];if(1===t.length)return n;const r=()=>{const r=t.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(t){const o=r.reduce(((e,{useScope:n,scopeName:r})=>({...e,...n(t)[`__scope${r}`]})),{});return e.useMemo((()=>({[`__scope${n.scopeName}`]:o})),[o])}};return r.scopeName=n.scopeName,r}var N=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,n)=>{const r=e.forwardRef(((e,t)=>{const{asChild:r,...o}=e,a=r?E:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),v.jsx(a,{...o,ref:t})}));return r.displayName=`Primitive.${n}`,{...t,[n]:r}}),{});function P(e,t){e&&n.flushSync((()=>e.dispatchEvent(t)))}function L(t){const n=e.useRef(t);return e.useEffect((()=>{n.current=t})),e.useMemo((()=>(...e)=>{var t;return null==(t=n.current)?void 0:t.call(n,...e)}),[])}var M,O="dismissableLayer.update",_=e.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),k=e.forwardRef(((t,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:c,...u}=t,l=e.useContext(_),[d,f]=e.useState(null),p=(null==d?void 0:d.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,h]=e.useState({}),w=y(n,(e=>f(e))),E=Array.from(l.layers),[g]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=E.indexOf(g),T=d?E.indexOf(d):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,C=T>=b,R=function(t,n=(null==globalThis?void 0:globalThis.document)){const r=L(t),o=e.useRef(!1),a=e.useRef((()=>{}));return e.useEffect((()=>{const e=e=>{if(e.target&&!o.current){let t=function(){j("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);o.current=!1},t=window.setTimeout((()=>{n.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}}),[n,r]),{onPointerDownCapture:()=>o.current=!0}}((e=>{const t=e.target,n=[...l.branches].some((e=>e.contains(t)));C&&!n&&(null==a||a(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p),S=function(t,n=(null==globalThis?void 0:globalThis.document)){const r=L(t),o=e.useRef(!1);return e.useEffect((()=>{const e=e=>{e.target&&!o.current&&j("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)}),[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}((e=>{const t=e.target;[...l.branches].some((e=>e.contains(t)))||(null==i||i(e),null==s||s(e),e.defaultPrevented||null==c||c())}),p);return function(t,n=(null==globalThis?void 0:globalThis.document)){const r=L(t);e.useEffect((()=>{const e=e=>{"Escape"===e.key&&r(e)};return n.addEventListener("keydown",e,{capture:!0}),()=>n.removeEventListener("keydown",e,{capture:!0})}),[r,n])}((e=>{T===l.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))}),p),e.useEffect((()=>{if(d)return r&&(0===l.layersWithOutsidePointerEventsDisabled.size&&(M=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),D(),()=>{r&&1===l.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=M)}}),[d,p,r,l]),e.useEffect((()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),D())}),[d,l]),e.useEffect((()=>{const e=()=>h({});return document.addEventListener(O,e),()=>document.removeEventListener(O,e)}),[]),v.jsx(N.div,{...u,ref:w,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:m(t.onFocusCapture,S.onFocusCapture),onBlurCapture:m(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:m(t.onPointerDownCapture,R.onPointerDownCapture)})}));k.displayName="DismissableLayer";var A=e.forwardRef(((t,n)=>{const r=e.useContext(_),o=e.useRef(null),a=y(n,o);return e.useEffect((()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}}
1),[r.branches]),v.jsx(N.div,{...t,ref:a})}));function D(){const e=new CustomEvent(O);document.dispatchEvent(e)}function j(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?P(o,a):o.dispatchEvent(a)}A.displayName="DismissableLayerBranch";var F=k,I=A,W=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:()=>{},K=e.forwardRef(((t,n)=>{var o;const{container:a,...i}=t,[s,c]=e.useState(!1);W((()=>c(!0)),[]);const u=a||s&&(null==(o=null==globalThis?void 0:globalThis.document)?void 0:o.body);return u?r.createPortal(v.jsx(N.div,{...i,ref:n}),u):null}));K.displayName="Portal";var B=t=>{const{present:n,children:r}=t,o=function(t){const[n,r]=e.useState(),o=e.useRef({}),a=e.useRef(t),i=e.useRef("none"),s=t?"mounted":"unmounted",[c,u]=(l=s,d={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},e.useReducer(((e,t)=>d[e][t]??e),l));var l,d;return e.useEffect((()=>{const e=U(o.current);i.current="mounted"===c?e:"none"}),[c]),W((()=>{const e=o.current,n=a.current;if(n!==t){const r=i.current,o=U(e);u(t?"MOUNT":"none"===o||"none"===(null==e?void 0:e.display)?"UNMOUNT":n&&r!==o?"ANIMATION_OUT":"UNMOUNT"),a.current=t}}),[t,u]),W((()=>{if(n){let e;const t=n.ownerDocument.defaultView??window,r=r=>{const i=U(o.current).includes(r.animationName);if(r.target===n&&i&&(u("ANIMATION_END"),!a.current)){const r=n.style.animationFillMode;n.style.animationFillMode="forwards",e=t.setTimeout((()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=r)}))}},s=e=>{e.target===n&&(i.current=U(o.current))};return n.addEventListener("animationstart",s),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{t.clearTimeout(e),n.removeEventListener("animationstart",s),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}u("ANIMATION_END")}),[n,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:e.useCallback((e=>{e&&(o.current=getComputedStyle(e)),r(e)}),[])}}(n),a="function"==typeof r?r({present:o.isPresent}):e.Children.only(r),i=y(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}(a));return"function"==typeof r||o.isPresent?e.cloneElement(a,{ref:i}):null};function U(e){return(null==e?void 0:e.animationName)||"none"}function $({prop:t,defaultProp:n,onChange:r=()=>{}}){const[o,a]=function({defaultProp:t,onChange:n}){const r=e.useState(t),[o]=r,a=e.useRef(o),i=L(n);return e.useEffect((()=>{a.current!==o&&(i(o),a.current=o)}),[o,a,i]),r}({defaultProp:n,onChange:r}),i=void 0!==t,s=i?t:o,c=L(r);return[s,e.useCallback((e=>{if(i){const n="function"==typeof e?e(t):e;n!==t&&c(n)}else a(e)}),[i,t,a,c])]}B.displayName="Presence";var V=e.forwardRef(((e,t)=>v.jsx(N.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));V.displayName="VisuallyHidden";var X=V,Y="ToastProvider",[q,H,z]=C("Toast"),[Z,G]=R("Toast",[z]),[J,Q]=Z(Y),ee=t=>{const{__scopeToast:n,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:s}=t,[c,u]=e.useState(null),[l,d]=e.useState(0),f=e.useRef(!1),p=e.useRef(!1);return r.trim(),v.jsx(q.Provider,{scope:n,children:v.jsx(J,{scope:n,label:r,duration:o,swipeDirection:a,swipeThreshold:i,toastCount:l,viewport:c,onViewportChange:u,onToastAdd:e.useCallback((()=>d((e=>e+1))),[]),onToastRemove:e.useCallback((()=>d((e=>e-1))),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:s})})};ee.displayName=Y;var te="ToastViewport",ne=["F8"],re="toast.viewportPause",oe="toast.viewportResume",ae=e.forwardRef(((t,n)=>{const{__scopeToast:r,hotkey:o=ne,label:a="Notifications ({hotkey})",...i}=t,s=Q(te,r),c=H(r),u=e.useRef(null),l=e.useRef(null),d=e.useRef(null),f=e.useRef(null),p=y(n,f,s.onViewportChange),m=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),h=s.toastCount>0;e.useEffect((()=>{const e=e=>{var t;0!==o.length&&o.every((t=>
1e[t]||e.code===t))&&(null==(t=f.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[o]),e.useEffect((()=>{const e=u.current,t=f.current;if(h&&e&&t){const n=()=>{if(!s.isClosePausedRef.current){const e=new CustomEvent(re);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},r=()=>{if(s.isClosePausedRef.current){const e=new CustomEvent(oe);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},o=t=>{!e.contains(t.relatedTarget)&&r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",a),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}}),[h,s.isClosePausedRef]);const w=e.useCallback((({tabbingDirection:e})=>{const t=c().map((t=>{const n=t.ref.current,r=[n,...xe(n)];return"forwards"===e?r:r.reverse()}));return("forwards"===e?t.reverse():t).flat()}),[c]);return e.useEffect((()=>{const e=f.current;if(e){const t=t=>{var n,r,o;const a=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!a){const a=document.activeElement,i=t.shiftKey;if(t.target===e&&i)return void(null==(n=l.current)||n.focus());const s=w({tabbingDirection:i?"backwards":"forwards"}),c=s.findIndex((e=>e===a));Ce(s.slice(c+1))?t.preventDefault():i?null==(r=l.current)||r.focus():null==(o=d.current)||o.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}}),[c,w]),v.jsxs(I,{ref:u,role:"region","aria-label":a.replace("{hotkey}",m),tabIndex:-1,style:{pointerEvents:h?void 0:"none"},children:[h&&v.jsx(se,{ref:l,onFocusFromOutsideViewport:()=>{Ce(w({tabbingDirection:"forwards"}))}}),v.jsx(q.Slot,{scope:r,children:v.jsx(N.ol,{tabIndex:-1,...i,ref:p})}),h&&v.jsx(se,{ref:d,onFocusFromOutsideViewport:()=>{Ce(w({tabbingDirection:"backwards"}))}})]})}));ae.displayName=te;var ie="ToastFocusProxy",se=e.forwardRef(((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,a=Q(ie,n);return v.jsx(V,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget;!(null==(t=a.viewport)?void 0:t.contains(n))&&r()}})}));se.displayName=ie;var ce="Toast",ue=e.forwardRef(((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...i}=e,[s=!0,c]=$({prop:r,defaultProp:o,onChange:a});return v.jsx(B,{present:n||s,children:v.jsx(fe,{open:s,...i,ref:t,onClose:()=>c(!1),onPause:L(e.onPause),onResume:L(e.onResume),onSwipeStart:m(e.onSwipeStart,(e=>{e.currentTarget.setAttribute("data-swipe","start")})),onSwipeMove:m(e.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${n}px`)}
1)),onSwipeCancel:m(e.onSwipeCancel,(e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")})),onSwipeEnd:m(e.onSwipeEnd,(e=>{const{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),c(!1)}))})})}));ue.displayName=ce;var[le,de]=Z(ce,{onClose(){}}),fe=e.forwardRef(((t,r)=>{const{__scopeToast:o,type:a="foreground",duration:i,open:s,onClose:c,onEscapeKeyDown:u,onPause:l,onResume:d,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:h,onSwipeEnd:w,...E}=t,g=Q(ce,o),[b,T]=e.useState(null),x=y(r,(e=>T(e))),C=e.useRef(null),R=e.useRef(null),S=i||g.duration,P=e.useRef(0),M=e.useRef(S),O=e.useRef(0),{onToastAdd:_,onToastRemove:k}=g,A=L((()=>{var e;(null==b?void 0:b.contains(document.activeElement))&&(null==(e=g.viewport)||e.focus()),c()})),D=e.useCallback((e=>{e&&e!==1/0&&(window.clearTimeout(O.current),P.current=(new Date).getTime(),O.current=window.setTimeout(A,e))}),[A]);e.useEffect((()=>{const e=g.viewport;if(e){const t=()=>{D(M.current),null==d||d()},n=()=>{const e=(new Date).getTime()-P.current;M.current=M.current-e,window.clearTimeout(O.current),null==l||l()};return e.addEventListener(re,n),e.addEventListener(oe,t),()=>{e.removeEventListener(re,n),e.removeEventListener(oe,t)}}}),[g.viewport,S,l,d,D]),e.useEffect((()=>{s&&!g.isClosePausedRef.current&&D(S)}),[s,S,g.isClosePausedRef,D]),e.useEffect((()=>(_(),()=>k())),[_,k]);const j=e.useMemo((()=>b?ge(b):null),[b]);return g.viewport?v.jsxs(v.Fragment,{children:[j&&v.jsx(pe,{__scopeToast:o,role:"status","aria-live":"foreground"===a?"assertive":"polite","aria-atomic":!0,children:j}),v.jsx(le,{scope:o,onClose:A,children:n.createPortal(v.jsx(q.ItemSlot,{scope:o,children:v.jsx(F,{asChild:!0,onEscapeKeyDown:m(u,(()=>{g.isFocusedToastEscapeKeyDownRef.current||A(),g.isFocusedToastEscapeKeyDownRef.current=!1})),children:v.jsx(N.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":g.swipeDirection,...E,ref:x,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:m(t.onKeyDown,(e=>{"Escape"===e.key&&(null==u||u(e.nativeEvent),e.nativeEvent.defaultPrevented||(g.isFocusedToastEscapeKeyDownRef.current=!0,A()))})),onPointerDown:m(t.onPointerDown,(e=>{0===e.button&&(C.current={x:e.clientX,y:e.clientY})})),onPointerMove:m(t.onPointerMove,(e=>{if(!C.current)return;const t=e.clientX-C.current.x,n=e.clientY-C.current.y,r=Boolean(R.current),o=["left","right"].includes(g.swipeDirection),a=["left","up"].includes(g.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,s=o?0:a(0,n),c="touch"===e.pointerType?10:2,u={x:i,y:s},l={originalEvent:e,delta:u};r?(R.current=u,be("toast.swipeMove",p,l,{discrete:!1})):Te(u,g.swipeDirection,c)?(R.current=u,be("toast.swipeStart",f,l,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(C.current=null)})),onPointerUp:m(t.onPointerUp,(e=>{const t=R.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),R.current=null,C.current=null,t){const n=e.currentTarget,r={originalEvent:e,delta:t};Te(t,g.swipeDirection,g.swipeThreshold)?be("toast.swipeEnd",w,r,{discrete:!0}):be("toast.swipeCancel",h,r,{discrete:!0}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))})})}),g.viewport)})]}):null})),pe=t=>{const{__scopeToast:n,children:r,...o}=t,a=Q(ce,n),[i,s]=e.useState(!1),[c,u]=e.useState(!1);return function(e=()=>{}){const t=L(e);W((()=>{let e=0,n=0;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])}((()=>s(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>u(!0)),1e3);return()=>window.clearTimeout(e)}),[]),c?null:v.jsx(K,{asChild:!0,children:v.jsx(V,{...o,children:i&&v.jsxs(v.Fragment,{children:[a.label," ",r]})})})},ve=e.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(N.div,{...r,ref:t})}));ve.displayName="ToastTitle";var me=e.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e;return v.jsx(N.div,{...r,ref:t})}));me.displayName="ToastDescription";var he=e.forwardRef(((e,t)=>{const{altText:n,...r}=e;return n.trim()?v.jsx(Ee,{altText:n,asChild:!0,children:v.jsx(we,{...r,ref:t})}):null}));he.displayName="ToastAction";var ye="ToastClose",we=e.forwardRef(((e,t)=>{const{__scopeToast:n,...r}=e,o=de(ye,n);return v.jsx(Ee,{asChild:!0,children:v.jsx(N.button,{type:"button",...r,ref:t,onClick:m(e.onClick,o.onClose)})})}));
1we.displayName=ye;var Ee=e.forwardRef(((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return v.jsx(N.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})}));function ge(e){const t=[];return Array.from(e.childNodes).forEach((e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),(n=e).nodeType===n.ELEMENT_NODE){const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)}else t.push(...ge(e))}var n})),t}function be(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?P(o,a):o.dispatchEvent(a)}var Te=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function xe(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ce(e){const t=document.activeElement;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}var Re=ee,Se=ae,Ne=ue,Pe=ve,Le=me,Me=he,Oe=we,_e=o["useId".toString()]||(()=>{}),ke=0;function Ae(t){const[n,r]=e.useState(_e());return W((()=>{t||r((e=>e??String(ke++)))}),[t]),t||(n?`radix-${n}`:"")}var De=e.createContext(void 0);function je(t){const n=e.useContext(De);return t||n||"ltr"}var Fe=0;function Ie(){e.useEffect((()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??We()),document.body.insertAdjacentElement("beforeend",e[1]??We()),Fe++,()=>{1===Fe&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),Fe--}}),[])}function We(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Ke="focusScope.autoFocusOnMount",Be="focusScope.autoFocusOnUnmount",Ue={bubbles:!1,cancelable:!0},$e=e.forwardRef(((t,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...s}=t,[c,u]=e.useState(null),l=L(a),d=L(i),f=e.useRef(null),p=y(n,(e=>u(e))),m=e.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;e.useEffect((()=>{if(o){let e=function(e){if(m.paused||!c)return;const t=e.target;c.contains(t)?f.current=t:qe(f.current,{select:!0})},t=function(e){if(m.paused||!c)return;const t=e.relatedTarget;null!==t&&(c.contains(t)||qe(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&qe(c)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[o,c,m.paused]),e.useEffect((()=>{if(c){He.add(m);const e=document.activeElement;if(!c.contains(e)){const t=new CustomEvent(Ke,Ue);c.addEventListener(Ke,l),c.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(qe(r,{select:t}),document.activeElement!==n)return}(Ve(c).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&qe(c))}return()=>{c.removeEventListener(Ke,l),setTimeout((()=>{const t=new CustomEvent(Be,Ue);c.addEventListener(Be,d),c.dispatchEvent(t),t.defaultPrevented||qe(e??document.body,{select:!0}),c.removeEventListener(Be,d),He.remove(m)}),0)}}}),[c,l,d,m]);const h=e.useCallback((e=>{if(!r&&!o)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,a]=function(e){const t=Ve(e);return[Xe(t,e),Xe(t.reverse(),e)]}(t);o&&a?e.shiftKey||n!==a?e.shiftKey&&n===o&&(e.preventDefault(),r&&qe(a,{select:!0})):(e.preventDefault(),r&&qe(o,{select:!0})):n===t&&e.preventDefault()}}),[r,o,m.paused]);return v.jsx(N.div,{tabIndex:-1,...s,ref:p,onKeyDown:h})}));function Ve(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Xe(e,t){for(const n of e)if(!Ye(n,{upTo:t}))return n}function Ye(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function qe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&((n=e)instanceof HTMLInputElement&&"select"in n)&&t&&e.select()}var n}$e.displayName="FocusScope";var He=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ze(e,t),e.unshift(t)},remove(t){var n;e=ze(e,t),null==(n=e[0])||n.resume()}}}();function ze(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Ze=new WeakMap,Ge=new WeakMap,Je={},Qe=0,et=function(e){return e&&(e.host||et(e.parentNode))},tt=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,o=Array.from(Array.isArray(e)?e:[e]),a=(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live]"))),function(e,t,n,r){var o,a=(o=t,(Array.isArray(e)?e:[e]).map((function(e){if(o.contains(e))return e;var t=et(e);return t&&o.contains(t)?t:null})).filter((function(e){return Boolean(e)})));Je[n]||(Je[n]=new WeakMap);
1var i=Je[n],s=[],c=new Set,u=new Set(a),l=function(e){e&&!c.has(e)&&(c.add(e),l(e.parentNode))};a.forEach(l);var d=function(e){e&&!u.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(c.has(e))d(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,a=(Ze.get(e)||0)+1,u=(i.get(e)||0)+1;Ze.set(e,a),i.set(e,u),s.push(e),1===a&&o&&Ge.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(l){}}))};return d(t),c.clear(),Qe++,function(){s.forEach((function(e){var t=Ze.get(e)-1,o=i.get(e)-1;Ze.set(e,t),i.set(e,o),t||(Ge.has(e)||e.removeAttribute(r),Ge.delete(e)),o||e.removeAttribute(n)})),--Qe||(Ze=new WeakMap,Ze=new WeakMap,Ge=new WeakMap,Je={})}}(o,a,n,"aria-hidden")):function(){return null}},nt=function(){return nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nt.apply(this,arguments)};function rt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}"function"==typeof SuppressedError&&SuppressedError;var ot="right-scroll-bar-position",at="width-before-scroll-bar";function it(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var st="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,ct=new WeakMap;function ut(e){return e}var lt=function(t){var n=t.sideCar,r=rt(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,nt({},r))};lt.isSideCarExport=!0;var dt=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ut);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}();return t.options=nt({async:!0,ssr:!1},e),t}(),ft=function(){},pt=e.forwardRef((function(t,n){var r,o,a,i,s=e.useRef(null),c=e.useState({onScrollCapture:ft,onWheelCapture:ft,onTouchMoveCapture:ft}),u=c[0],l=c[1],d=t.forwardProps,f=t.children,p=t.className,v=t.removeScrollBar,m=t.enabled,h=t.shards,y=t.sideCar,w=t.noIsolation,E=t.inert,g=t.allowPinchZoom,b=t.as,T=void 0===b?"div":b,x=t.gapMode,C=rt(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=y,S=(r=[s,n],o=function(e){return r.forEach((function(t){return it(t,e)}))},(a=e.useState((function(){return{value:null,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=o,i=a.facade,st((function(){var e=ct.get(i);if(e){var t=new Set(e),n=new Set(r),o=i.current;t.forEach((function(e){n.has(e)||it(e,null)})),n.forEach((function(e){t.has(e)||it(e,o)}))}ct.set(i,r)}),[r]),i),N=nt(nt({},C),u);return e.createElement(e.Fragment,null,m&&e.createElement(R,{sideCar:dt,removeScrollBar:v,shards:h,noIsolation:w,inert:E,setCallbacks:l,allowPinchZoom:!!g,lockRef:s,gapMode:x}),d?e.cloneElement(e.Children.only(f),nt(nt({},N),{ref:S})):e.createElement(T,nt({},N,{className:p,ref:S}),f))}));pt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pt.classNames={fullWidth:at,zeroRight:ot};var vt=function(){var t,n=(t=function(){var e=0,t=null;return{add:function(n){var r,o,a;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}}(),function(n,r){e.useEffect((function(){return t.add(n),function(){t.remove()}}),[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},mt={left:0,top:0,right:0,gap:0},ht=function(e){return parseInt(e||"",10)||0},yt=vt(),wt="data-scroll-locked",Et=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(wt,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n }\n \n .").concat(ot," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(at," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ot," .").concat(ot," {\n right: 0 ").concat(r,";\n }\n \n .").concat(at," .").concat(at," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(wt,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},gt=function(){var e=parseInt(document.body.getAttribute(wt)||"0",10);return isFinite(e)?e:0},bt=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,a=void 0===o?"margin":o;e.useEffect((function(){return document.body.setAttribute(wt,(gt()+1).toString()),function(){var e=gt()-1;e<=0?document.body.removeAttribute(wt):document.body.setAttribute(wt,e.toString())}}),[]);var i=e.useMemo((function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return mt;var t,n,r,o,a,i=(t=e,n=window.getComputedStyle(document.body),r=n["padding"===t?"paddingLeft":"marginLeft"],o=n["padding"===t?"paddingTop":"marginTop"],a=n["padding"===t?"paddingRight":"marginRight"],[ht(r),ht(o),ht(a)]),s=document.documentElement.clientWidth,c=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,c-s+i[2]-i[0])}}(a)}),[a]);return e.createElement(yt,{styles:Et(i,!n,a,r?"":"!important")})},Tt=!1;if("undefined"!=typeof window)try{var xt=Object.defineProperty({},"passive",{get:function(){return Tt=!0,!0}});window.addEventListener("test",xt,xt),window.removeEventListener("test",xt,xt)}catch(It){Tt=!1}var Ct=!!Tt&&{passive:!1},Rt=function(e,t){if(!(e instanceof Element))return!1;var n,r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&(n=e,"TEXTAREA"!==n.tagName)&&"visible"===r[t])},St=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Nt(e,r)){var o=Pt(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Nt=function(e,t){return"v"===e?Rt(t,"overflowY"):function(e){return Rt(e,"overflowX")}(t)},Pt=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:[(n=t).scrollLeft,n.scrollWidth,n.clientWidth];var n,r},Lt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Mt=function(e){return[e.deltaX,e.deltaY]},Ot=function(e){return e&&"current"in e?e.current:e},_t=0,kt=[];function At(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Dt=(jt=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),a=e.useState(_t++)[0],i=e.useState(vt)[0],s=e.useRef(t);e.useEffect((function(){s.current=t}),[t]),e.useEffect((function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(a));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(Ot),!0).filter(Boolean);return e.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),e.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[t.inert,t.lockRef.current,t.shards]);var c=e.useCallback((function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,a=Lt(e),i=r.current,c="deltaX"in e?e.deltaX:i[0]-a[0],u="deltaY"in e?e.deltaY:i[1]-a[1],l=e.target,d=Math.abs(c)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=St(d,l);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=St(d,l)),!f)return!1;if(!o.current&&"changedTouches"in e&&(c||u)&&(o.current=n),!n)return!0;var p=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=o*r,i=n.target,s=t.contains(i),c=!1,u=a>0,l=0,d=0;do{var f=Pt(e,i),p=f[0],v=f[1]-f[2]-o*p;(p||v)&&Nt(e,i)&&(l+=v,d+=p),i=i instanceof ShadowRoot?i.host:i.parentNode}while(!s&&i!==document.body||s&&(t.contains(i)||t===i));return u&&Math.abs(l)<1?c=!0:u||!(Math.abs(d)<1)&&!0||(c=!0),c}(p,t,e,"h"===p?c:u)}),[]),u=e.useCallback((function(e){var t=e;if(kt.length&&kt[kt.length-1]===i){var r="deltaY"in t?Mt(t):Lt(t),o=n.current.filter((function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o}))[0];if(o&&o.should)t.cancelable&&t.preventDefault();
1else if(!o){var a=(s.current.shards||[]).map(Ot).filter(Boolean).filter((function(e){return e.contains(t.target)}));(a.length>0?c(t,a[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}}),[]),l=e.useCallback((function(e,t,r,o){var a={name:e,delta:t,target:r,should:o,shadowParent:At(r)};n.current.push(a),setTimeout((function(){n.current=n.current.filter((function(e){return e!==a}))}),1)}),[]),d=e.useCallback((function(e){r.current=Lt(e),o.current=void 0}),[]),f=e.useCallback((function(e){l(e.type,Mt(e),e.target,c(e,t.lockRef.current))}),[]),p=e.useCallback((function(e){l(e.type,Lt(e),e.target,c(e,t.lockRef.current))}),[]);e.useEffect((function(){return kt.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Ct),document.addEventListener("touchmove",u,Ct),document.addEventListener("touchstart",d,Ct),function(){kt=kt.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,Ct),document.removeEventListener("touchmove",u,Ct),document.removeEventListener("touchstart",d,Ct)}}),[]);var v,m=t.removeScrollBar,h=t.inert;return e.createElement(e.Fragment,null,h?e.createElement(i,{styles:(v=a,"\n .block-interactivity-".concat(v," {pointer-events: none;}\n .allow-interactivity-").concat(v," {pointer-events: all;}\n"))}):null,m?e.createElement(bt,{gapMode:t.gapMode}):null)},dt.useMedium(jt),lt);var jt,Ft=e.forwardRef((function(t,n){return e.createElement(pt,nt({},t,{ref:n,sideCar:Dt}))}));Ft.classNames=pt.classNames;export{Me as A,Oe as C,Le as D,$e as F,Re as P,Ne as R,E as S,Pe as T,Se as V,je as a,$ as b,C as c,L as d,N as e,m as f,Ae as g,R as h,B as i,v as j,W as k,k as l,b as m,X as n,tt as o,Ie as p,h as q,Ft as r,P as s,K as t,y as u};
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.