PageSourceSearch

https://aptos-full-stack-demo.vercel.app/_next/static/chunks/516-6addaef4a8a230c8.js

js aptos-full-stack-demo.vercel.app collected 2026-10-03 06:07:23 UTC 44,454 bytes, 36 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[516],{42421:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
2 * @license lucide-react v0.383.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let r=(0,n(78030).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},6884:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
7 * @license lucide-react v0.383.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */let r=(0,n(78030).Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},89896:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
12 * @license lucide-react v0.383.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let r=(0,n(78030).Z)("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]])},92699:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
17 * @license lucide-react v0.383.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */let r=(0,n(78030).Z)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]])},38296:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
22 * @license lucide-react v0.383.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */let r=(0,n(78030).Z)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]])},52022:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
27 * @license lucide-react v0.383.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */let r=(0,n(78030).Z)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},74697:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
32 * @license lucide-react v0.383.0 - ISC
33 *
34 * This source code is licensed under the ISC license.
35 * See the LICENSE file in the root directory of this source tree.
36 */let r=(0,n(78030).Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},27131:function(e){e.exports={style:{fontFamily:"'__Inter_e8ce0c', '__Inter_Fallback_e8ce0c'",fontStyle:"normal"},className:"__className_e8ce0c",variable:"__variable_e8ce0c"}},40882:function(e,t,n){"use strict";n.d(t,{Fw:function(){return C},fC:function(){return P},wy:function(){return b}});var r=n(2265),i=n(78149),a=n(98324),o=n(91715),s=n(1336),u=n(1584),l=n(25171),c=n(31383),d=n(53201),h=n(57437),f="Collapsible",[p,m]=(0,a.b)(f),[y,v]=p(f),g=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:a,disabled:s,onOpenChange:u,...c}=e,[f=!1,p]=(0,o.T)({prop:i,defaultProp:a,onChange:u});return(0,h.jsx)(y,{scope:n,disabled:s,contentId:(0,d.M)(),open:f,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),children:(0,h.jsx)(l.WV.div,{"data-state":T(f),"data-disabled":s?"":void 0,...c,ref:t})})});g.displayName=f;var w="CollapsibleTrigger",b=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,a=v(w,n);return(0,h.jsx)(l.WV.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":T(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...r,ref:t,onClick:(0,i.M)(e.onClick,a.onOpenToggle)})});b.displayName=w;var x="CollapsibleContent",C=r.forwardRef((e,t)=>
36{let{forceMount:n,...r}=e,i=v(x,e.__scopeCollapsible);return(0,h.jsx)(c.z,{present:n||i.open,children:e=>{let{present:n}=e;return(0,h.jsx)(E,{...r,ref:t,present:n})}})});C.displayName=x;var E=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:a,...o}=e,c=v(x,n),[d,f]=r.useState(i),p=r.useRef(null),m=(0,u.e)(t,p),y=r.useRef(0),g=y.current,w=r.useRef(0),b=w.current,C=c.open||d,E=r.useRef(C),P=r.useRef();return r.useEffect(()=>{let e=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.b)(()=>{let e=p.current;if(e){P.current=P.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();y.current=t.height,w.current=t.width,E.current||(e.style.transitionDuration=P.current.transitionDuration,e.style.animationName=P.current.animationName),f(i)}},[c.open,i]),(0,h.jsx)(l.WV.div,{"data-state":T(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!C,...o,ref:m,style:{"--radix-collapsible-content-height":g?"".concat(g,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style},children:C&&a})});function T(e){return e?"open":"closed"}var P=g},13304:function(e,t,n){"use strict";n.d(t,{Dx:function(){return en},VY:function(){return et},aV:function(){return ee},dk:function(){return er},fC:function(){return G},h_:function(){return $},x8:function(){return ei},xz:function(){return J}});var r=n(2265),i=n(78149),a=n(1584),o=n(98324),s=n(53201),u=n(91715),l=n(53938),c=n(80467),d=n(56935),h=n(31383),f=n(25171),p=n(20589),m=n(49418),y=n(78369),v=n(71538),g=n(57437),w="Dialog",[b,x]=(0,o.b)(w),[C,E]=b(w),T=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,c=r.useRef(null),d=r.useRef(null),[h=!1,f]=(0,u.T)({prop:i,defaultProp:a,onChange:o});return(0,g.jsx)(C,{scope:t,triggerRef:c,contentRef:d,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:h,onOpenChange:f,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),modal:l,children:n})};T.displayName=w;var P="DialogTrigger",R=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=E(P,n),s=(0,a.e)(t,o.triggerRef);return(0,g.jsx)(f.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":H(o.open),...r,ref:s,onClick:(0,i.M)(e.onClick,o.onOpenToggle)})});R.displayName=P;var D="DialogPortal",[M,k]=b(D,{forceMount:void 0}),j=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:a}=e,o=E(D,t);return(0,g.jsx)(M,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,g.jsx)(h.z,{present:n||o.open,children:(0,g.jsx)(d.h,{asChild:!0,container:a,children:e})}))})};j.displayName=D;var O="DialogOverlay",S=r.forwardRef((e,t)=>{let n=k(O,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=E(O,e.__scopeDialog);return a.modal?(0,g.jsx)(h.z,{present:r||a.open,children:(0,g.jsx)(I,{...i,ref:t})}):null});S.displayName=O;var I=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(O,n);return(0,g.jsx)(m.Z,{as:v.g7,allowPinchZoom:!0,shards:[i.contentRef],children:(0,g.jsx)(f.WV.div,{"data-state":H(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),N="DialogContent",F=r.forwardRef((e,t)=>{let n=k(N,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=E(N,e.__scopeDialog);return(0,g.jsx)(h.z,{present:r||a.open,children:a.modal?(0,g.jsx)(A,{...i,ref:t}):(0,g.jsx)(q,{...i,ref:t})})});F.displayName=N;var A=r.forwardRef((e,t)=>{let n=E(N,e.__scopeDialog),o=r.useRef(null),s=(0,a.e)(t,n.contentRef,o);return r.useEffect(()=>{let e=o.current;if(e)return(0,y.Ry)(e)},[]),(0,g.jsx)(_,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,i.M)(e.onFocusOutside,e=>e.preventDefault())})}),q=r.forwardRef((e,t)=>{let n=E(N,e.__scopeDialog),i=r.useRef(!1),a=r.useRef(!1);return(0,g.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,o;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{var r,o;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(a.current=!0));let s=t.target;(null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),_=r.forwardRef((e,t)=>
36{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...u}=e,d=E(N,n),h=r.useRef(null),f=(0,a.e)(t,h);return(0,p.EW)(),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(c.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s,children:(0,g.jsx)(l.XB,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":H(d.open),...u,ref:f,onDismiss:()=>d.onOpenChange(!1)})}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Y,{titleId:d.titleId}),(0,g.jsx)(U,{contentRef:h,descriptionId:d.descriptionId})]})]})}),L="DialogTitle",V=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(L,n);return(0,g.jsx)(f.WV.h2,{id:i.titleId,...r,ref:t})});V.displayName=L;var Q="DialogDescription",K=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=E(Q,n);return(0,g.jsx)(f.WV.p,{id:i.descriptionId,...r,ref:t})});K.displayName=Q;var Z="DialogClose",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=E(Z,n);return(0,g.jsx)(f.WV.button,{type:"button",...r,ref:t,onClick:(0,i.M)(e.onClick,()=>a.onOpenChange(!1))})});function H(e){return e?"open":"closed"}W.displayName=Z;var z="DialogTitleWarning",[B,X]=(0,o.k)(z,{contentName:N,titleName:L,docsSlug:"dialog"}),Y=e=>{let{titleId:t}=e,n=X(z),i="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(i)},[i,t]),null},U=e=>{let{contentRef:t,descriptionId:n}=e,i=X("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(i.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(a)},[a,t,n]),null},G=T,J=R,$=j,ee=S,et=F,en=V,er=K,ei=W},44504:function(e,t,n){"use strict";n.d(t,{Dx:function(){return $},aU:function(){return et},dk:function(){return ee},fC:function(){return J},l_:function(){return G},x8:function(){return en},zt:function(){return U}});var r=n(2265),i=n(54887),a=n(78149),o=n(1584),s=n(90976),u=n(98324),l=n(53938),c=n(56935),d=n(31383),h=n(25171),f=n(75137),p=n(91715),m=n(1336),y=n(31725),v=n(57437),g="ToastProvider",[w,b,x]=(0,s.B)("Toast"),[C,E]=(0,u.b)("Toast",[x]),[T,P]=C(g),R=e=>{let{__scopeToast:t,label:n="Notification",duration:i=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:s}=e,[u,l]=r.useState(null),[c,d]=r.useState(0),h=r.useRef(!1),f=r.useRef(!1);return n.trim()||console.error("Invalid prop `label` supplied to `".concat(g,"`. Expected non-empty `string`.")),(0,v.jsx)(w.Provider,{scope:t,children:(0,v.jsx)(T,{scope:t,label:n,duration:i,swipeDirection:a,swipeThreshold:o,toastCount:c,viewport:u,onViewportChange:l,onToastAdd:r.useCallback(()=>d(e=>e+1),[]),onToastRemove:r.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:s})})};R.displayName=g;var D="ToastViewport",M=["F8"],k="toast.viewportPause",j="toast.viewportResume",O=r.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:i=M,label:a="Notifications ({hotkey})",...s}=e,u=P(D,n),c=b(n),d=r.useRef(null),f=r.useRef(null),p=r.useRef(null),m=r.useRef(null),y=(0,o.e)(t,m,u.onViewportChange),g=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=u.toastCount>0;r.useEffect(()=>{let e=e=>{var t;i.every(t=>e[t]||e.code===t)&&(null===(t=m.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),r.useEffect(()=>{let e=d.current,t=m.current;if(x&&e&&t){let n=()=>{if(!u.isClosePausedRef.current){let e=new CustomEvent(k);t.dispatchEvent(e),u.isClosePausedRef.current=!0}},r=()=>{if(u.isClosePausedRef.current){let e=new CustomEvent(j);t.dispatchEvent(e),u.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||r()},a=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",i),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",a),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[x,u.isClosePausedRef]);let C=r.useCallback(e=>{let{tabbingDirection:t}=e,n=c().map(e=>{let n=e.ref.current,r=[n,...function(e){let t=[],n=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(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===t?r:r.reverse()});return("forwards"===t?n.reverse():n).flat()},[c]);return r.useEffect(()=>{let e=m.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){var r,i,a;let n=document.activeElement,o=t.shiftKey;if(t.target===e&&o){null===(r=f.current)||void 0===r||r.focus();return}let s=C({tabbingDirection:o?"backwards":"forwards"}),u=s.findIndex(e=>e===n);Y(s.slice(u+1))?t.preventDefault():o?null===(i=f.current)||void 0===i||i.focus():null===(a=p.current)||void 0===a||a.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,C]),(0,v.jsxs)(l.I0,{ref:d,role:"region","aria-label":a.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&(0,v.jsx)(I,{ref:f,onFocusFromOutsideViewport:()=>{Y(C({tabbingDirection:"forwards"}))}}),(0,v.jsx)(w.Slot,{scope:n,children:(0,v.jsx)(h.WV.ol,{tabIndex:-1,...s,ref:y})}),x&&(0,v.jsx)(I,{ref:p,onFocusFromOutsideViewport:()=>{Y(C({tabbingDirection:"backwards"}))}})]})});O.displayName=D;var S="ToastFocusProxy",I=r.forwardRef((e,t)=>
36{let{__scopeToast:n,onFocusFromOutsideViewport:r,...i}=e,a=P(S,n);return(0,v.jsx)(y.T,{"aria-hidden":!0,tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget;(null===(t=a.viewport)||void 0===t?void 0:t.contains(n))||r()}})});I.displayName=S;var N="Toast",F=r.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:i,onOpenChange:o,...s}=e,[u=!0,l]=(0,p.T)({prop:r,defaultProp:i,onChange:o});return(0,v.jsx)(d.z,{present:n||u,children:(0,v.jsx)(_,{open:u,...s,ref:t,onClose:()=>l(!1),onPause:(0,f.W)(e.onPause),onResume:(0,f.W)(e.onResume),onSwipeStart:(0,a.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,a.M)(e.onSwipeMove,e=>{let{x:t,y:n}=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(n,"px"))}),onSwipeCancel:(0,a.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:(0,a.M)(e.onSwipeEnd,e=>{let{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","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(n,"px")),l(!1)})})})});F.displayName=N;var[A,q]=C(N,{onClose(){}}),_=r.forwardRef((e,t)=>{let{__scopeToast:n,type:s="foreground",duration:u,open:c,onClose:d,onEscapeKeyDown:p,onPause:m,onResume:y,onSwipeStart:g,onSwipeMove:b,onSwipeCancel:x,onSwipeEnd:C,...E}=e,T=P(N,n),[R,D]=r.useState(null),M=(0,o.e)(t,e=>D(e)),O=r.useRef(null),S=r.useRef(null),I=u||T.duration,F=r.useRef(0),q=r.useRef(I),_=r.useRef(0),{onToastAdd:V,onToastRemove:Q}=T,K=(0,f.W)(()=>{var e;(null==R?void 0:R.contains(document.activeElement))&&(null===(e=T.viewport)||void 0===e||e.focus()),d()}),Z=r.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(_.current),F.current=new Date().getTime(),_.current=window.setTimeout(K,e))},[K]);r.useEffect(()=>{let e=T.viewport;if(e){let t=()=>{Z(q.current),null==y||y()},n=()=>{let e=new Date().getTime()-F.current;q.current=q.current-e,window.clearTimeout(_.current),null==m||m()};return e.addEventListener(k,n),e.addEventListener(j,t),()=>{e.removeEventListener(k,n),e.removeEventListener(j,t)}}},[T.viewport,I,m,y,Z]),r.useEffect(()=>{c&&!T.isClosePausedRef.current&&Z(I)},[c,I,T.isClosePausedRef,Z]),r.useEffect(()=>(V(),()=>Q()),[V,Q]);let W=r.useMemo(()=>R?function e(t){let n=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,i=""===t.dataset.radixToastAnnounceExclude;if(!r){if(i){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}}),n}(R):null,[R]);return T.viewport?(0,v.jsxs)(v.Fragment,{children:[W&&(0,v.jsx)(L,{__scopeToast:n,role:"status","aria-live":"foreground"===s?"assertive":"polite","aria-atomic":!0,children:W}),(0,v.jsx)(A,{scope:n,onClose:K,children:i.createPortal((0,v.jsx)(w.ItemSlot,{scope:n,children:(0,v.jsx)(l.fC,{asChild:!0,onEscapeKeyDown:(0,a.M)(p,()=>{T.isFocusedToastEscapeKeyDownRef.current||K(),T.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,v.jsx)(h.WV.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":T.swipeDirection,...E,ref:M,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,a.M)(e.onKeyDown,e=>{"Escape"!==e.key||(null==p||p(e.nativeEvent),e.nativeEvent.defaultPrevented||(T.isFocusedToastEscapeKeyDownRef.current=!0,K()))}),onPointerDown:(0,a.M)(e.onPointerDown,e=>{0===e.button&&(O.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,a.M)(e.onPointerMove,e=>{if(!O.current)return;let t=e.clientX-O.current.x,n=e.clientY-O.current.y,r=!!S.current,i=["left","right"].includes(T.swipeDirection),a=["left","up"].includes(T.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,n),u="touch"===e.pointerType?10:2,l={x:o,y:s},c={originalEvent:e,delta:l};r?(S.current=l,B("toast.swipeMove",b,c,{discrete:!1})):X(l,T.swipeDirection,u)?(S.current=l,B("toast.swipeStart",g,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>u||Math.abs(n)>u)&&(O.current=null)}),onPointerUp:(0,a.M)(e.onPointerUp,e=>{let t=S.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),S.current=null,O.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};X(t,T.swipeDirection,T.swipeThreshold)?B("toast.swipeEnd",C,r,{discrete:!0}):B("toast.swipeCancel",x,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),T.viewport)})]}):null}),L=e=>{let{__scopeToast:t,children:n,...i}=e,a=P(N,t),[o,s]=r.useState(!1),[u,l]=r.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,f.W)(e);(0,m.b)(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>s(!0)),r.useEffect(()=>{let e=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(e)},[]),u?null:(0,v.jsx)(c.h,{asChild:!0,children:(0,v.jsx)(y.T,{...i,children:o&&(0,v.jsxs)(v.Fragment,{children:[a.label," ",n]})})})},V=r.forwardRef((e,t)=>
36{let{__scopeToast:n,...r}=e;return(0,v.jsx)(h.WV.div,{...r,ref:t})});V.displayName="ToastTitle";var Q=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,v.jsx)(h.WV.div,{...r,ref:t})});Q.displayName="ToastDescription";var K="ToastAction",Z=r.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,v.jsx)(z,{altText:n,asChild:!0,children:(0,v.jsx)(H,{...r,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(K,"`. Expected non-empty `string`.")),null)});Z.displayName=K;var W="ToastClose",H=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,i=q(W,n);return(0,v.jsx)(z,{asChild:!0,children:(0,v.jsx)(h.WV.button,{type:"button",...r,ref:t,onClick:(0,a.M)(e.onClick,i.onClose)})})});H.displayName=W;var z=r.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...i}=e;return(0,v.jsx)(h.WV.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:t})});function B(e,t,n,r){let{discrete:i}=r,a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?(0,h.jH)(a,o):a.dispatchEvent(o)}var X=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return"left"===t||"right"===t?a&&r>n:!a&&i>n};function Y(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var U=R,G=O,J=F,$=V,ee=Q,et=Z,en=H},27071:function(e,t,n){"use strict";n.d(t,{VY:function(){return K},fC:function(){return V},xz:function(){return Q},zt:function(){return L}});var r=n(2265),i=n(78149),a=n(1584),o=n(98324),s=n(53938),u=n(53201),l=n(77683),c=(n(56935),n(31383)),d=n(25171),h=n(71538),f=n(91715),p=n(31725),m=n(57437),[y,v]=(0,o.b)("Tooltip",[l.D7]),g=(0,l.D7)(),w="TooltipProvider",b="tooltip.open",[x,C]=y(w),E=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:o}=e,[s,u]=r.useState(!0),l=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(x,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),u(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>u(!0),i)},[i]),isPointerInTransitRef:l,onPointerInTransitChange:r.useCallback(e=>{l.current=e},[]),disableHoverableContent:a,children:o})};E.displayName=w;var T="Tooltip",[P,R]=y(T),D=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:a=!1,onOpenChange:o,disableHoverableContent:s,delayDuration:c}=e,d=C(T,e.__scopeTooltip),h=g(t),[p,y]=r.useState(null),v=(0,u.M)(),w=r.useRef(0),x=null!=s?s:d.disableHoverableContent,E=null!=c?c:d.delayDuration,R=r.useRef(!1),[D=!1,M]=(0,f.T)({prop:i,defaultProp:a,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(b))):d.onClose(),null==o||o(e)}}),k=r.useMemo(()=>D?R.current?"delayed-open":"instant-open":"closed",[D]),j=r.useCallback(()=>{window.clearTimeout(w.current),R.current=!1,M(!0)},[M]),O=r.useCallback(()=>{window.clearTimeout(w.current),M(!1)},[M]),S=r.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{R.current=!0,M(!0)},E)},[E,M]);return r.useEffect(()=>()=>window.clearTimeout(w.current),[]),(0,m.jsx)(l.fC,{...h,children:(0,m.jsx)(P,{scope:t,contentId:v,open:D,stateAttribute:k,trigger:p,onTriggerChange:y,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayed?S():j()},[d.isOpenDelayed,S,j]),onTriggerLeave:r.useCallback(()=>{x?O():window.clearTimeout(w.current)},[O,x]),onOpen:j,onClose:O,disableHoverableContent:x,children:n})})};D.displayName=T;var M="TooltipTrigger",k=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...o}=e,s=R(M,n),u=C(M,n),c=g(n),h=r.useRef(null),f=(0,a.e)(t,h,s.onTriggerChange),p=r.useRef(!1),y=r.useRef(!1),v=r.useCallback(()=>p.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,m.jsx)(l.ee,{asChild:!0,...c,children:(0,m.jsx)(d.WV.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...o,ref:f,onPointerMove:(0,i.M)(e.onPointerMove,e=>{"touch"===e.pointerType||y.current||u.isPointerInTransitRef.current||(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:(0,i.M)(e.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:(0,i.M)(e.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,i.M)(e.onFocus,()=>{p.current||s.onOpen()}),onBlur:(0,i.M)(e.onBlur,s.onClose),onClick:(0,i.M)(e.onClick,s.onClose)})})});k.displayName=M;var[j,O]=y("TooltipPortal",{forceMount:void 0}),S="TooltipContent",I=r.forwardRef((e,t)=>
36{let n=O(S,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,o=R(S,e.__scopeTooltip);return(0,m.jsx)(c.z,{present:r||o.open,children:o.disableHoverableContent?(0,m.jsx)(q,{side:i,...a,ref:t}):(0,m.jsx)(N,{side:i,...a,ref:t})})}),N=r.forwardRef((e,t)=>{let n=R(S,e.__scopeTooltip),i=C(S,e.__scopeTooltip),o=r.useRef(null),s=(0,a.e)(t,o),[u,l]=r.useState(null),{trigger:c,onClose:d}=n,h=o.current,{onPointerInTransitChange:f}=i,p=r.useCallback(()=>{l(null),f(!1)},[f]),y=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());l(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,i),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),f(!0)},[f]);return r.useEffect(()=>()=>p(),[p]),r.useEffect(()=>{if(c&&h){let e=e=>y(e,h),t=e=>y(e,c);return c.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[c,h,y,p]),r.useEffect(()=>{if(u){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==h?void 0:h.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e].x,s=t[e].y,u=t[a].x,l=t[a].y;s>r!=l>r&&n<(u-o)*(r-s)/(l-s)+o&&(i=!i)}return i}(n,u);r?p():i&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,h,u,d,p]),(0,m.jsx)(q,{...e,ref:s})}),[F,A]=y(T,{isInside:!1}),q=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:i,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:u,...c}=e,d=R(S,n),f=g(n),{onClose:y}=d;return r.useEffect(()=>(document.addEventListener(b,y),()=>document.removeEventListener(b,y)),[y]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&y()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,y]),(0,m.jsx)(s.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:y,children:(0,m.jsxs)(l.VY,{"data-state":d.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,m.jsx)(h.A4,{children:i}),(0,m.jsx)(F,{scope:n,isInside:!0,children:(0,m.jsx)(p.f,{id:d.contentId,role:"tooltip",children:a||i})})]})})});I.displayName=S;var _="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=g(n);return A(_,n).isInside?null:(0,m.jsx)(l.Eh,{...i,...r,ref:t})}).displayName=_;var L=E,V=D,Q=k,K=I},8699:function(e,t,n){"use strict";n.d(t,{S:function(){return v}});var r=n(56298),i=n(2459),a=n(69948),o=n(49010),s=class extends o.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let a=t.queryKey,o=t.queryHash??(0,r.Rm)(a,t),s=this.get(o);return s||(s=new i.A({cache:this,queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(s)),s}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){a.V.batch(()=>
36{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){a.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},u=n(43494),l=n(30924),c=class extends u.F{#t;#n;#r;constructor(e){super(),this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){this.#r=(0,l.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#i({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let t="pending"===this.state.status,n=!this.#r.canStart();try{if(!t){this.#i({type:"pending",variables:e,isPaused:n}),await this.#n.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#i({type:"pending",context:t,variables:e,isPaused:n})}let r=await this.#r.start();return await this.#n.config.onSuccess?.(r,e,this.state.context,this),await this.options.onSuccess?.(r,e,this.state.context),await this.#n.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,e,this.state.context),this.#i({type:"success",data:r}),r}catch(t){try{throw await this.#n.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#i({type:"error",error:t})}}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),a.V.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}},d=class extends o.l{constructor(e={}){super(),this.config=e,this.#a=new Map,this.#o=Date.now()}#a;#o;build(e,t,n){let r=new c({mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=h(e),n=this.#a.get(t)??[];n.push(e),this.#a.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=h(e);if(this.#a.has(t)){let n=this.#a.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#a.delete(t):this.#a.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#a.get(h(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#a.get(h(e))?.find(t=>
36t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){a.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#a.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){a.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return a.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function h(e){return e.options.scope?.id??String(e.mutationId)}var f=n(34939),p=n(49937);function m(e){return{onFetch:(t,n)=>{let i=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],s=t.state.data?.pageParams||[],u={pages:[],pageParams:[]},l=0,c=async()=>{let n=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},d=(0,r.cG)(t.options,t.fetchOptions),h=async(e,i,a)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);let o={queryKey:t.queryKey,pageParam:i,direction:a?"backward":"forward",meta:t.options.meta};c(o);let s=await d(o),{maxPages:u}=t.options,l=a?r.Ht:r.VX;return{pages:l(e.pages,s,u),pageParams:l(e.pageParams,i,u)}};if(a&&o.length){let e="backward"===a,t={pages:o,pageParams:s},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:y)(i,t);u=await h(t,n,e)}else{let t=e??o.length;do{let e=0===l?s[0]??i.initialPageParam:y(i,u);if(l>0&&null==e)break;u=await h(u,e),l++}while(l<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=c}}}function y(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var v=class{#s;#n;#u;#l;#c;#d;#h;#f;constructor(e={}){this.#s=e.queryCache||new s,this.#n=e.mutationCache||new d,this.#u=e.defaultOptions||{},this.#l=new Map,this.#c=new Map,this.#d=0}mount(){this.#d++,1===this.#d&&(this.#h=f.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#s.onFocus())}),this.#f=p.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#s.onOnline())}))}unmount(){this.#d--,0===this.#d&&(this.#h?.(),this.#h=void 0,this.#f?.(),this.#f=void 0)}isFetching(e){return this.#s.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#n.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#s.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),i=this.#s.build(this,n);return e.revalidateIfStale&&i.isStaleByTime((0,r.KC)(n.staleTime,i))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#s.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),a=this.#s.get(i.queryHash),o=a?.state.data,s=(0,r.SE)(t,o);if(void 0!==s)return this.#s.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return a.V.batch(()=>this.#s.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#s.get(t.queryHash)?.state}removeQueries(e){let t=this.#s;a.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#s,r={type:"active",...e};return a.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t};return Promise.all(a.V.batch(()=>this.#s.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e={},t={}){return a.V.batch(()=>{if(this.#s.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(a.V.batch(()=>this.#s.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}
36))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#s.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){return e.behavior=m(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}ensureInfiniteQueryData(e){return e.behavior=m(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return p.N.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#s}getMutationCache(){return this.#n}getDefaultOptions(){return this.#u}setDefaultOptions(e){this.#u=e}setQueryDefaults(e,t){this.#l.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#l.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#c.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#c.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#u.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#u.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#s.clear(),this.#n.clear()}}},79512:function(e,t,n){"use strict";n.d(t,{F:function(){return l},f:function(){return c}});var r=n(2265),i=["light","dark"],a="(prefers-color-scheme: dark)",o="undefined"==typeof window,s=r.createContext(void 0),u={setTheme:e=>{},themes:[]},l=()=>{var e;return null!=(e=r.useContext(s))?e:u},c=e=>r.useContext(s)?e.children:r.createElement(h,{...e}),d=["light","dark"],h=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:o=!0,enableColorScheme:u=!0,storageKey:l="theme",themes:c=d,defaultTheme:h=o?"system":"light",attribute:v="data-theme",value:g,children:w,nonce:b}=e,[x,C]=r.useState(()=>p(l,h)),[E,T]=r.useState(()=>p(l)),P=g?Object.values(g):c,R=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=y());let r=g?g[t]:t,a=n?m():null,s=document.documentElement;if("class"===v?(s.classList.remove(...P),r&&s.classList.add(r)):r?s.setAttribute(v,r):s.removeAttribute(v),u){let e=i.includes(h)?h:null,n=i.includes(t)?t:e;s.style.colorScheme=n}null==a||a()},[]),D=r.useCallback(e=>{let t="function"==typeof e?e(e):e;C(t);try{localStorage.setItem(l,t)}catch(e){}},[t]),M=r.useCallback(e=>{T(y(e)),"system"===x&&o&&!t&&R("system")},[x,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(M),M(e),()=>e.removeListener(M)},[M]),r.useEffect(()=>{let e=e=>{e.key===l&&D(e.newValue||h)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[D]),r.useEffect(()=>{R(null!=t?t:x)},[t,x]);let k=r.useMemo(()=>({theme:x,setTheme:D,forcedTheme:t,resolvedTheme:"system"===x?E:x,themes:o?[...c,"system"]:c,systemTheme:o?E:void 0}),[x,D,t,E,o,c]);return r.createElement(s.Provider,{value:k},r.createElement(f,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:o,enableColorScheme:u,storageKey:l,themes:c,defaultTheme:h,attribute:v,value:g,children:w,attrs:P,nonce:b}),w)},f=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:o,enableSystem:s,enableColorScheme:u,defaultTheme:l,value:c,attrs:d,nonce:h}=e,f="system"===l,p="class"===o?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(o,"',s='setAttribute';"),m=u?(i.includes(l)?l:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(l,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",y=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=c?c[e]:e,a=t?e+"|| ''":"'".concat(r,"'"),s="";return u&&n&&!t&&i.includes(e)&&(s+="d.style.colorScheme = '".concat(e,"';")),"class"===o?t||r?s+="c.add(".concat(a,")"):s+="null":r&&(s+="d[s](n,".concat(a,")")),s},v=t?"!function(){".concat(p).concat(y(t),"}()"):s?"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(f,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(y("dark"),"}
36else{").concat(y("light"),"}}else if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(y(c?"x[e]":"e",!0),"}").concat(f?"":"else{"+y(l,!1,!1)+"}").concat(m,"}catch(e){}}()"):"!function(){try{".concat(p,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(y(c?"x[e]":"e",!0),"}else{").concat(y(l,!1,!1),";}").concat(m,"}catch(t){}}();");return r.createElement("script",{nonce:h,dangerouslySetInnerHTML:{__html:v}})}),p=(e,t)=>{let n;if(!o){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},y=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}}]);

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.