1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6343],{23327:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]])},42529:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},65229:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},65476:(e,t,r)=>{r.d(t,{Kq:()=>Z,LM:()=>J,VY:()=>ee,bL:()=>Q,bm:()=>er,hE:()=>$,rc:()=>et});var n=r(12115),o=r(47650),a=r(92556),s=r(94446),i=r(29118),l=r(3468),u=r(44831),c=r(75433),d=r(76842),p=r(97602),f=r(70222),v=r(23558),w=r(4129),m=r(861),y=r(95155),E="ToastProvider",[x,h,T]=(0,i.N)("Toast"),[g,b]=(0,l.A)("Toast",[T]),[C,P]=g(E),R=e=>{let{__scopeToast:t,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:i}=e,[l,u]=n.useState(null),[c,d]=n.useState(0),p=n.useRef(!1),f=n.useRef(!1);return r.trim()||console.error("Invalid prop `label` supplied to `".concat(E,"`. Expected non-empty `string`.")),(0,y.jsx)(x.Provider,{scope:t,children:(0,y.jsx)(C,{scope:t,label:r,duration:o,swipeDirection:a,swipeThreshold:s,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:n.useCallback(()=>d(e=>e+1),[]),onToastRemove:n.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:f,children:i})})};R.displayName=E;var k="ToastViewport",L=["F8"],N="toast.viewportPause",j="toast.viewportResume",A=n.forwardRef((e,t)=>{let{__scopeToast:r,hotkey:o=L,label:a="Notifications ({hotkey})",...i}=e,l=P(k,r),c=h(r),d=n.useRef(null),f=n.useRef(null),v=n.useRef(null),w=n.useRef(null),m=(0,s.s)(t,w,l.onViewportChange),E=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=l.toastCount>0;n.useEffect(()=>{let e=e=>{var t;0!==o.length&&o.every(t=>e[t]||e.code===t)&&(null==(t=w.current)||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),n.useEffect(()=>{let e=d.current,t=w.current;if(T&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(N);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>
1{if(l.isClosePausedRef.current){let e=new CustomEvent(j);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||n()},a=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",o),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",a),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[T,l.isClosePausedRef]);let g=n.useCallback(e=>{let{tabbingDirection:t}=e,r=c().map(e=>{let r=e.ref.current,n=[r,...function(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}(r)];return"forwards"===t?n:n.reverse()});return("forwards"===t?r.reverse():r).flat()},[c]);return n.useEffect(()=>{let e=w.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){var n,o,a;let r=document.activeElement,s=t.shiftKey;if(t.target===e&&s){null==(n=f.current)||n.focus();return}let i=g({tabbingDirection:s?"backwards":"forwards"}),l=i.findIndex(e=>e===r);B(i.slice(l+1))?t.preventDefault():s?null==(o=f.current)||o.focus():null==(a=v.current)||a.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,g]),(0,y.jsxs)(u.lg,{ref:d,role:"region","aria-label":a.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:T?void 0:"none"},children:[T&&(0,y.jsx)(K,{ref:f,onFocusFromOutsideViewport:()=>{B(g({tabbingDirection:"forwards"}))}}),(0,y.jsx)(x.Slot,{scope:r,children:(0,y.jsx)(p.sG.ol,{tabIndex:-1,...i,ref:m})}),T&&(0,y.jsx)(K,{ref:v,onFocusFromOutsideViewport:()=>{B(g({tabbingDirection:"backwards"}))}})]})});A.displayName=k;var D="ToastFocusProxy",K=n.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,a=P(D,r);return(0,y.jsx)(m.s6,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let r=e.relatedTarget;(null==(t=a.viewport)?void 0:t.contains(r))||n()}})});K.displayName=D;var F="Toast",S=n.forwardRef((e,t)=>{let{forceMount:r,open:n,defaultOpen:o,onOpenChange:s,...i}=e,[l,u]=(0,v.i)({prop:n,defaultProp:null==o||o,onChange:s,caller:F});return(0,y.jsx)(d.C,{present:r||l,children:(0,y.jsx)(_,{open:l,...i,ref:t,onClose:()=>u(!1),onPause:(0,f.c)(e.onPause),onResume:(0,f.c)(e.onResume),onSwipeStart:(0,a.mK)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,a.mK)(e.onSwipeMove,e=>{let{x:t,y:r}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(r,"px"))}),onSwipeCancel:(0,a.mK)(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:(0,a.mK)(e.onSwipeEnd,e=>{let{x:t,y:r}=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","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(r,"px")),u(!1)})})})});S.displayName=F;var[I,M]=g(F,{onClose(){}}),_=n.forwardRef((e,t)=>{let{__scopeToast:r,type:i="foreground",duration:l,open:c,onClose:d,onEscapeKeyDown:v,onPause:w,onResume:m,onSwipeStart:E,onSwipeMove:h,onSwipeCancel:T,onSwipeEnd:g,...b}=e,C=P(F,r),[R,k]=n.useState(null),L=(0,s.s)(t,e=>k(e)),A=n.useRef(null),D=n.useRef(null),K=l||C.duration,S=n.useRef(0),M=n.useRef(K),_=n.useRef(0),{onToastAdd:O,onToastRemove:V}=C,X=(0,f.c)(()=>{var e;(null==R?void 0:R.contains(document.activeElement))&&(null==(e=C.viewport)||e.focus()),d()}),q=n.useCallback(e=>
1{e&&e!==1/0&&(window.clearTimeout(_.current),S.current=new Date().getTime(),_.current=window.setTimeout(X,e))},[X]);n.useEffect(()=>{let e=C.viewport;if(e){let t=()=>{q(M.current),null==m||m()},r=()=>{let e=new Date().getTime()-S.current;M.current=M.current-e,window.clearTimeout(_.current),null==w||w()};return e.addEventListener(N,r),e.addEventListener(j,t),()=>{e.removeEventListener(N,r),e.removeEventListener(j,t)}}},[C.viewport,K,w,m,q]),n.useEffect(()=>{c&&!C.isClosePausedRef.current&&q(K)},[c,K,C.isClosePausedRef,q]),n.useEffect(()=>(O(),()=>V()),[O,V]);let z=n.useMemo(()=>R?function e(t){let r=[];return Array.from(t.childNodes).forEach(t=>{var n;if(t.nodeType===t.TEXT_NODE&&t.textContent&&r.push(t.textContent),(n=t).nodeType===n.ELEMENT_NODE){let n=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!n)if(o){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(R):null,[R]);return C.viewport?(0,y.jsxs)(y.Fragment,{children:[z&&(0,y.jsx)(G,{__scopeToast:r,role:"status","aria-live":"foreground"===i?"assertive":"polite",children:z}),(0,y.jsx)(I,{scope:r,onClose:X,children:o.createPortal((0,y.jsx)(x.ItemSlot,{scope:r,children:(0,y.jsx)(u.bL,{asChild:!0,onEscapeKeyDown:(0,a.mK)(v,()=>{C.isFocusedToastEscapeKeyDownRef.current||X(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,y.jsx)(p.sG.li,{tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":C.swipeDirection,...b,ref:L,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,a.mK)(e.onKeyDown,e=>{"Escape"===e.key&&(null==v||v(e.nativeEvent),e.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:(0,a.mK)(e.onPointerDown,e=>{0===e.button&&(A.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,a.mK)(e.onPointerMove,e=>{if(!A.current)return;let t=e.clientX-A.current.x,r=e.clientY-A.current.y,n=!!D.current,o=["left","right"].includes(C.swipeDirection),a=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,s=o?a(0,t):0,i=o?0:a(0,r),l="touch"===e.pointerType?10:2,u={x:s,y:i},c={originalEvent:e,delta:u};n?(D.current=u,H("toast.swipeMove",h,c,{discrete:!1})):W(u,C.swipeDirection,l)?(D.current=u,H("toast.swipeStart",E,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(A.current=null)}),onPointerUp:(0,a.mK)(e.onPointerUp,e=>{let t=D.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),D.current=null,A.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};W(t,C.swipeDirection,C.swipeThreshold)?H("toast.swipeEnd",g,n,{discrete:!0}):H("toast.swipeCancel",T,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),G=e=>{let{__scopeToast:t,children:r,...o}=e,a=P(F,t),[s,i]=n.useState(!1),[l,u]=n.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,f.c)(e);(0,w.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>i(!0)),n.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,y.jsx)(c.Z,{asChild:!0,children:(0,y.jsx)(m.s6,{...o,children:s&&(0,y.jsxs)(y.Fragment,{children:[a.label," ",r]})})})},O=n.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,y.jsx)(p.sG.div,{...n,ref:t})});O.displayName="ToastTitle";var V=n.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,y.jsx)(p.sG.div,{...n,ref:t})});V.displayName="ToastDescription";var X="ToastAction",q=n.forwardRef((e,t)=>{let{altText:r,...n}=e;return r.trim()?(0,y.jsx)(Y,{altText:r,asChild:!0,children:(0,y.jsx)(U,{...n,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(X,"`. Expected non-empty `string`.")),null)});q.displayName=X;var z="ToastClose",U=n.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e,o=M(z,r);return(0,y.jsx)(Y,{asChild:!0,children:(0,y.jsx)(p.sG.button,{type:"button",...n,ref:t,onClick:(0,a.mK)(e.onClick,o.onClose)})})});U.displayName=z;var Y=n.forwardRef((e,t)=>
1{let{__scopeToast:r,altText:n,...o}=e;return(0,y.jsx)(p.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function H(e,t,r,n){let{discrete:o}=n,a=r.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?(0,p.hO)(a,s):a.dispatchEvent(s)}var W=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=Math.abs(e.x),o=Math.abs(e.y),a=n>o;return"left"===t||"right"===t?a&&n>r:!a&&o>r};function B(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var Z=R,J=A,Q=S,$=O,ee=V,et=q,er=U},78874:(e,t,r)=>{r.d(t,{A:()=>n});let n=(0,r(71847).A)("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]])}}]);
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.