1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2861],{861:(e,t,r)=>{"use strict";r.d(t,{Qg:()=>i,s6:()=>s});var n=r(12115),o=r(88142),a=r(95155),i=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"}),s=n.forwardRef((e,t)=>(0,a.jsx)(o.sG.span,{...e,ref:t,style:{...i,...e.style}}));s.displayName="VisuallyHidden"},5379:(e,t,r)=>{"use strict";r.d(t,{D:()=>u,N:()=>c});var n=r(12115),o=(e,t,r,n,o,a,i,s)=>{let l=document.documentElement,u=["light","dark"];function c(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,n=r&&a?o.map(e=>a[e]||e):o;r?(l.classList.remove(...n),l.classList.add(a&&a[t]?a[t]:t)):l.setAttribute(e,t)}),r=t,s&&u.includes(r)&&(l.style.colorScheme=r)}if(n)c(n);else try{let e=localStorage.getItem(t)||r,n=i&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(n)}catch(e){}},a=["light","dark"],i="(prefers-color-scheme: dark)",s=n.createContext(void 0),l={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=n.useContext(s))?e:l},c=e=>n.useContext(s)?n.createElement(n.Fragment,null,e.children):n.createElement(f,{...e}),d=["light","dark"],f=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:u=d,defaultTheme:c=r?"system":"light",attribute:f="data-theme",value:h,children:y,nonce:g,scriptProps:b})=>{let[E,T]=n.useState(()=>p(l,c)),[S,x]=n.useState(()=>"system"===E?w():E),P=h?Object.values(h):u,C=n.useCallback(e=>{let n=e;if(!n)return;"system"===e&&r&&(n=w());let i=h?h[n]:n,s=t?v(g):null,l=document.documentElement,u=e=>{"class"===e?(l.classList.remove(...P),i&&l.classList.add(i)):e.startsWith("data-")&&(i?l.setAttribute(e,i):l.removeAttribute(e))};if(Array.isArray(f)?f.forEach(u):u(f),o){let e=a.includes(c)?c:null,t=a.includes(n)?n:e;l.style.colorScheme=t}null==s||s()},[g]),j=n.useCallback(e=>{let t="function"==typeof e?e(E):e;T(t);try{localStorage.setItem(l,t)}catch(e){}},[E]),k=n.useCallback(t=>{x(w(t)),"system"===E&&r&&!e&&C("system")},[E,e]);n.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(k),k(e),()=>e.removeListener(k)},[k]),n.useEffect(()=>{let e=e=>{e.key===l&&(e.newValue?T(e.newValue):j(c))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[j]),n.useEffect(()=>{C(null!=e?e:E)},[e,E]);let N=n.useMemo(()=>({theme:E,setTheme:j,forcedTheme:e,resolvedTheme:"system"===E?S:E,themes:r?[...u,"system"]:u,systemTheme:r?S:void 0}),[E,j,e,S,r,u]);return n.createElement(s.Provider,{value:N},n.createElement(m,{forcedTheme:e,storageKey:l,attribute:f,enableSystem:r,enableColorScheme:o,defaultTheme:c,value:h,themes:u,nonce:g,scriptProps:b}),y)},m=n.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:a,enableColorScheme:i,defaultTheme:s,value:l,themes:u,nonce:c,scriptProps:d})=>{let f=JSON.stringify([r,t,s,e,u,l,a,i]).slice(1,-1);return n.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"",dangerouslySetInnerHTML:{__html:`(${o.toString()})(${f})`}})}),p=(e,t)=>{let r;try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t},v=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},w=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")},22455:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},26473:(e,t,r)=>{"use strict";r.d(t,{b:()=>c});var n=r(12115),o=r(20063),a=r(95704);function i(){return"development"===function(){return"production"}()}function s(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>
1{if(t.current)e.route&&t.current(e.route);else{let r=function(e={}){var t;if("undefined"==typeof window||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),i()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==a&&void 0!==a.env)return a.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(t.current=r.setRoute)}},[e.route]),null}function u(e){let t=(()=>{let e=(0,o.useParams)(),t=(0,o.useSearchParams)()||new URLSearchParams,r=(0,o.usePathname)();return e?function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=s(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=s(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch(t){return e}}(r,Object.keys(e).length?e:Object.fromEntries(t.entries())):null})();return n.createElement(l,{route:t,...e,framework:"next",basePath:function(){if(void 0!==a&&void 0!==a.env)return a.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}function c(e){return n.createElement(n.Suspense,{fallback:null},n.createElement(u,{...e}))}},36880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;let r=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let n=new URL(null!=(t=e)?t:r),o=("/"===n.pathname?r.pathname:n.pathname).replace(/\/$/,""),a=`${n.origin}${o}`;return{origin:n.origin,host:n.host,path:o,base:a,toString:()=>a}}},37025:(e,t,r)=>{"use strict";r.d(t,{j:()=>l});var n=r(12115),o=r(95704);function a(){return"undefined"!=typeof window}function i(){return"production"}function s(){return"development"===((a()?window.vam:i())||"production")}function l(e){return(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,n.useEffect)(()=>{!function(e={debug:!0}){var t;if(!a())return;!function(e="auto"){if("auto"===e){window.vam=i();return}window.vam=e}(e.mode),window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)}),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let r=e.scriptSrc?e.scriptSrc:s()?"https://va.vercel-scripts.com/v1/script.debug.js":e.basePath?`${e.basePath}/insights/script.js`:"/_vercel/insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return;let n=document.createElement("script");n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.6.1",e.disableAutoTrack&&(n.dataset.disableAutoTrack="1"),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/insights`),e.dsn&&(n.dataset.dsn=e.dsn),n.onerror=()=>{let e=s()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${r}. ${e}`)},s()&&!1===e.debug&&(n.dataset.debug="false"),document.head.appendChild(n)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==o&&void 0!==o.env)return o.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e})},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}},53127:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});let n=(0,r(12115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},56724:(e,t,r)=>{"use strict";r.d(t,{k5:()=>c});var n=r(12115),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=n.createContext&&n.createContext(o),i=["attr","size","title"];function s(){return(s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){var n,o,a;n=e,o=t,a=r[t],(o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function c(e){return t=>n.createElement(d,s({attr:u({},e.attr)},t),function e(t){return t&&t.map((t,r)=>n.createElement(t.tag,u({key:r},t.attr),e(t.child)))}(e.child))}function d(e){var t=t=>{var r,{attr:o,size:a,title:l}=e,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i),d=a||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,c,{className:r,style:u(u({color:e.color||t.color},t.style),e.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==a?n.createElement(a.Consumer,null,e=>t(e)):t(o)}},59132:(e,t,r)=>{"use strict";r.d(t,{J:()=>s,D:()=>i});let n=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function o(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n.has(e)}let a=e=>!o(e);function i(e){e&&(a=t=>t.startsWith("on")?!o(t):e(t))}try{i(require("@emotion/is-prop-valid").default)}catch(e){}function s(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(a(i)||!0===r&&o(i)||!t&&!o(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}},65476:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>X,LM:()=>Q,VY:()=>ee,bL:()=>J,bm:()=>er,hE:()=>Z,rc:()=>et});var n=r(12115),o=r(47650),a=r(92556),i=r(94446),s=r(78625),l=r(3468),u=r(44831),c=r(75433),d=r(76842),f=r(88142),m=r(70222),p=r(23558),v=r(4129),w=r(861),h=r(95155),y="ToastProvider",[g,b,E]=(0,s.N)("Toast"),[T,S]=(0,l.A)("Toast",[E]),[x,P]=T(y),C=e=>{let{__scopeToast:t,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:s}=e,[l,u]=n.useState(null),[c,d]=n.useState(0),f=n.useRef(!1),m=n.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${y}\`. Expected non-empty \`string\`.`),(0,h.jsx)(g.Provider,{scope:t,children:(0,h.jsx)(x,{scope:t,label:r,duration:o,swipeDirection:a,swipeThreshold:i,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:n.useCallback(()=>d(e=>e+1),[]),onToastRemove:n.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:m,children:s})})};C.displayName=y;var j="ToastViewport",k=["F8"],N="toast.viewportPause",O="toast.viewportResume",R=n.forwardRef((e,t)=>
1{let{__scopeToast:r,hotkey:o=k,label:a="Notifications ({hotkey})",...s}=e,l=P(j,r),c=b(r),d=n.useRef(null),m=n.useRef(null),p=n.useRef(null),v=n.useRef(null),w=(0,i.s)(t,v,l.onViewportChange),y=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=l.toastCount>0;n.useEffect(()=>{let e=e=>{0!==o.length&&o.every(t=>e[t]||e.code===t)&&v.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),n.useEffect(()=>{let e=d.current,t=v.current;if(E&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(N);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>{if(l.isClosePausedRef.current){let e=new CustomEvent(O);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)}}},[E,l.isClosePausedRef]);let T=n.useCallback(({tabbingDirection:e})=>{let t=c().map(t=>{let r=t.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"===e?n:n.reverse()});return("forwards"===e?t.reverse():t).flat()},[c]);return n.useEffect(()=>{let e=v.current;if(e){let t=t=>{let r=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!r){let r=document.activeElement,n=t.shiftKey;if(t.target===e&&n)return void m.current?.focus();let o=T({tabbingDirection:n?"backwards":"forwards"}),a=o.findIndex(e=>e===r);Y(o.slice(a+1))?t.preventDefault():n?m.current?.focus():p.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,T]),(0,h.jsxs)(u.lg,{ref:d,role:"region","aria-label":a.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&(0,h.jsx)(L,{ref:m,onFocusFromOutsideViewport:()=>{Y(T({tabbingDirection:"forwards"}))}}),(0,h.jsx)(g.Slot,{scope:r,children:(0,h.jsx)(f.sG.ol,{tabIndex:-1,...s,ref:w})}),E&&(0,h.jsx)(L,{ref:p,onFocusFromOutsideViewport:()=>{Y(T({tabbingDirection:"backwards"}))}})]})});R.displayName=j;var A="ToastFocusProxy",L=n.forwardRef((e,t)=>{let{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,a=P(A,r);return(0,h.jsx)(w.s6,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{let t=e.relatedTarget;a.viewport?.contains(t)||n()}})});L.displayName=A;var M="Toast",D=n.forwardRef((e,t)=>{let{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...s}=e,[l,u]=(0,p.i)({prop:n,defaultProp:o??!0,onChange:i,caller:M});return(0,h.jsx)(d.C,{present:r||l,children:(0,h.jsx)(F,{open:l,...s,ref:t,onClose:()=>u(!1),onPause:(0,m.c)(e.onPause),onResume:(0,m.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",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${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",`${t}px`),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${r}px`),u(!1)})})})});D.displayName=M;var[I,_]=T(M,{onClose(){}}),F=n.forwardRef((e,t)=>
1{let{__scopeToast:r,type:s="foreground",duration:l,open:c,onClose:d,onEscapeKeyDown:p,onPause:v,onResume:w,onSwipeStart:y,onSwipeMove:b,onSwipeCancel:E,onSwipeEnd:T,...S}=e,x=P(M,r),[C,j]=n.useState(null),k=(0,i.s)(t,e=>j(e)),R=n.useRef(null),A=n.useRef(null),L=l||x.duration,D=n.useRef(0),_=n.useRef(L),F=n.useRef(0),{onToastAdd:K,onToastRemove:U}=x,W=(0,m.c)(()=>{C?.contains(document.activeElement)&&x.viewport?.focus(),d()}),V=n.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(F.current),D.current=new Date().getTime(),F.current=window.setTimeout(W,e))},[W]);n.useEffect(()=>{let e=x.viewport;if(e){let t=()=>{V(_.current),w?.()},r=()=>{let e=new Date().getTime()-D.current;_.current=_.current-e,window.clearTimeout(F.current),v?.()};return e.addEventListener(N,r),e.addEventListener(O,t),()=>{e.removeEventListener(N,r),e.removeEventListener(O,t)}}},[x.viewport,L,v,w,V]),n.useEffect(()=>{c&&!x.isClosePausedRef.current&&V(L)},[c,L,x.isClosePausedRef,V]),n.useEffect(()=>(K(),()=>U()),[K,U]);let q=n.useMemo(()=>C?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}(C):null,[C]);return x.viewport?(0,h.jsxs)(h.Fragment,{children:[q&&(0,h.jsx)($,{__scopeToast:r,role:"status","aria-live":"foreground"===s?"assertive":"polite",children:q}),(0,h.jsx)(I,{scope:r,onClose:W,children:o.createPortal((0,h.jsx)(g.ItemSlot,{scope:r,children:(0,h.jsx)(u.bL,{asChild:!0,onEscapeKeyDown:(0,a.mK)(p,()=>{x.isFocusedToastEscapeKeyDownRef.current||W(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,h.jsx)(f.sG.li,{tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":x.swipeDirection,...S,ref:k,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,a.mK)(e.onKeyDown,e=>{"Escape"===e.key&&(p?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,W()))}),onPointerDown:(0,a.mK)(e.onPointerDown,e=>{0===e.button&&(R.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,a.mK)(e.onPointerMove,e=>{if(!R.current)return;let t=e.clientX-R.current.x,r=e.clientY-R.current.y,n=!!A.current,o=["left","right"].includes(x.swipeDirection),a=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,s=o?0:a(0,r),l="touch"===e.pointerType?10:2,u={x:i,y:s},c={originalEvent:e,delta:u};n?(A.current=u,z("toast.swipeMove",b,c,{discrete:!1})):G(u,x.swipeDirection,l)?(A.current=u,z("toast.swipeStart",y,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(r)>l)&&(R.current=null)}),onPointerUp:(0,a.mK)(e.onPointerUp,e=>{let t=A.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),A.current=null,R.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};G(t,x.swipeDirection,x.swipeThreshold)?z("toast.swipeEnd",T,n,{discrete:!0}):z("toast.swipeCancel",E,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),$=e=>{let{__scopeToast:t,children:r,...o}=e,a=P(M,t),[i,s]=n.useState(!1),[l,u]=n.useState(!1);return function(e=()=>{}){let t=(0,m.c)(e);(0,v.N)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>s(!0)),n.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,h.jsx)(c.Z,{asChild:!0,children:(0,h.jsx)(w.s6,{...o,children:i&&(0,h.jsxs)(h.Fragment,{children:[a.label," ",r]})})})},K=n.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,h.jsx)(f.sG.div,{...n,ref:t})});K.displayName="ToastTitle";var U=n.forwardRef((e,t)=>{let{__scopeToast:r,...n}=e;return(0,h.jsx)(f.sG.div,{...n,ref:t})});U.displayName="ToastDescription";var W="ToastAction",V=n.forwardRef((e,t)=>{let{altText:r,...n}=e;return r.trim()?(0,h.jsx)(H,{altText:r,asChild:!0,children:(0,h.jsx)(B,{...n,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${W}\`. Expected non-empty \`string\`.`),null)});V.displayName=W;var q="ToastClose",B=n.forwardRef((e,t)=>
1{let{__scopeToast:r,...n}=e,o=_(q,r);return(0,h.jsx)(H,{asChild:!0,children:(0,h.jsx)(f.sG.button,{type:"button",...n,ref:t,onClick:(0,a.mK)(e.onClick,o.onClose)})})});B.displayName=q;var H=n.forwardRef((e,t)=>{let{__scopeToast:r,altText:n,...o}=e;return(0,h.jsx)(f.sG.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...o,ref:t})});function z(e,t,r,{discrete:n}){let o=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?(0,f.hO)(o,a):o.dispatchEvent(a)}var G=(e,t,r=0)=>{let 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 Y(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var X=C,Q=R,J=D,Z=K,ee=U,et=V,er=B},67801:e=>{e.exports={style:{fontFamily:"'Space Grotesk', 'Space Grotesk Fallback'",fontStyle:"normal"},className:"__className_dd5b2f",variable:"__variable_dd5b2f"}},74854:(e,t,r)=>{"use strict";r.d(t,{C:()=>v,Y:()=>w});let n=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function a(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return n.has(t.script)}let t=e.split("-")[0];return o.has(t)}var i=r(12115),s=r(74446);let l=Symbol.for("react-aria.i18n.locale");function u(){let e="undefined"!=typeof window&&window[l]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:a(e)?"rtl":"ltr"}}let c=u(),d=new Set;function f(){for(let e of(c=u(),d))e(c)}function m(){let e=(0,s.wR)(),[t,r]=(0,i.useState)(c);return((0,i.useEffect)(()=>(0===d.size&&window.addEventListener("languagechange",f),d.add(r),()=>{d.delete(r),0===d.size&&window.removeEventListener("languagechange",f)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let p=i.createContext(null);function v(e){let{locale:t,children:r}=e,n=m(),o=i.useMemo(()=>t?{locale:t,direction:a(t)?"rtl":"ltr"}:n,[n,t]);return i.createElement(p.Provider,{value:o},r)}function w(){let e=m();return(0,i.useContext)(p)||e}},76842:(e,t,r)=>{"use strict";r.d(t,{C:()=>i});var n=r(12115),o=r(94446),a=r(4129),i=e=>{let{present:t,children:r}=e,i=function(e){var t,r;let[o,i]=n.useState(),l=n.useRef(null),u=n.useRef(e),c=n.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},n.useReducer((e,t)=>r[e][t]??e,t));return n.useEffect(()=>{let e=s(l.current);c.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=l.current,r=u.current;if(r!==e){let n=c.current,o=s(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):r&&n!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,a.N)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,r=r=>{let n=s(l.current).includes(CSS.escape(r.animationName));if(r.target===o&&n&&(f("ANIMATION_END"),!u.current)){let r=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=r)})}},n=e=>{e.target===o&&(c.current=s(l.current))};return o.addEventListener("animationstart",n),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",n),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:n.useCallback(e=>{l.current=e?getComputedStyle(e):null,i(e)},[])}}(t),l="function"==typeof r?r({present:i.isPresent}):n.Children.only(r),u=(0,o.s)(i.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(r=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof r||i.isPresent?n.cloneElement(l,{ref:u}):null};function s(e){return e?.animationName||"none"}i.displayName="Presence"},83101:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var n=r(2821);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,i=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:i,defaultVariants:s}=t,l=Object.keys(i).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let a=o(t)||o(n);return i[e][a]}),u=r&&Object.entries(r).reduce((e,t)=>
1{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return a(e,l,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},91735:(e,t,r)=>{"use strict";r.d(t,{b:()=>h});var n=r(9007),o=r(74854),a=r(56318),i=r(12115);r(47650);let s=i.createContext(null);function l(e){let{children:t}=e,r=(0,i.useContext)(s),[n,o]=(0,i.useState)(0),a=(0,i.useMemo)(()=>({parent:r,modalCount:n,addModal(){o(e=>e+1),r&&r.addModal()},removeModal(){o(e=>e-1),r&&r.removeModal()}}),[r,n]);return i.createElement(s.Provider,{value:a},t)}function u(e){let t,{modalProviderProps:r}={modalProviderProps:{"aria-hidden":!!(t=(0,i.useContext)(s))&&t.modalCount>0||void 0}};return i.createElement("div",{"data-overlay-container":!0,...e,...r})}function c(e){return i.createElement(l,null,i.createElement(u,e))}var d=r(95221),f=r(95155),m=r(53127),p=r(59132),v=r(94416);function w({children:e,isValidProp:t,...r}){t&&(0,p.D)(t),(r={...(0,i.useContext)(m.Q),...r}).isStatic=(0,v.M)(()=>r.isStatic);let n=(0,i.useMemo)(()=>r,[JSON.stringify(r.transition),r.transformPagePoint,r.reducedMotion]);return(0,f.jsx)(m.Q.Provider,{value:n,children:e})}var h=({children:e,navigate:t,disableAnimation:r,useHref:s,disableRipple:l=!1,skipFramerMotionAnimations:u=r,reducedMotion:m="never",validationBehavior:p,locale:v="en-US",defaultDates:h,createCalendar:y,...g})=>{let b=e;t&&(b=(0,f.jsx)(a.pg,{navigate:t,useHref:s,children:b}));let E=(0,i.useMemo)(()=>(r&&u&&(d.W.skipAnimations=!0),{createCalendar:y,defaultDates:h,disableAnimation:r,disableRipple:l,validationBehavior:p}),[y,null==h?void 0:h.maxDate,null==h?void 0:h.minDate,r,l,p]);return(0,f.jsx)(n.n,{value:E,children:(0,f.jsx)(o.C,{locale:v,children:(0,f.jsx)(w,{reducedMotion:m,children:(0,f.jsx)(c,{...g,children:b})})})})}},94416:(e,t,r)=>{"use strict";r.d(t,{M:()=>o});var n=r(12115);function o(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},95221:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});let n={skipAnimations:!1,useManualTiming:!1}}}]); 2//# sourceMappingURL=2861-a79865bdec4fe001.js.map
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.