PageSourceSearch

https://portal.kinesis.network/_next/static/chunks/0n3hca4o845gb.js

js kinesis.network collected 2026-10-08 03:13:12 UTC 42,760 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,596526,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NavigationGuardProviderContext=void 0,r.NavigationGuardProviderContext=(0,e.r(271645).createContext)(void 0),r.NavigationGuardProviderContext.displayName="NavigationGuardProviderContext"},14372,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useIsomorphicLayoutEffect=void 0;let n=e.r(271645);r.useIsomorphicLayoutEffect="u">typeof window?n.useLayoutEffect:n.useEffect},960810,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useInterceptPageUnload=function({guardMapRef:e}){(0,n.useIsomorphicLayoutEffect)(()=>{let t=t=>{for(let r of e.current.values())if(r.enabled({to:"",type:"beforeunload"})){t.preventDefault(),t.returnValue="";return}};return window.addEventListener("beforeunload",t),()=>{window.removeEventListener("beforeunload",t)}},[])};let n=e.r(14372)},855530,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.newToken=o,r.setupHistoryAugmentationOnce=function({renderedStateRef:e}){var t;if(i)return{writeState:a};n.DEBUG&&console.log("setupHistoryAugmentationOnce: setup");let r=window.history.pushState,s=window.history.replaceState;n.DEBUG&&(window.__next_navigation_guard_debug_history_aug={originalPushState:r,originalReplaceState:s});let u=window.history.state;return e.current.index=u&&parseInt(u.__next_navigation_guard_stack_index)||0,e.current.token=u&&String(null!=(t=u.__next_navigation_guard_token)?t:"")||o(),n.DEBUG&&console.log(`setupHistoryAugmentationOnce: initial currentIndex is ${e.current.index}, token is ${e.current.token}`),a=()=>{var t;n.DEBUG&&console.log(`setupHistoryAugmentationOnce: write state by replaceState(): currentIndex is ${e.current.index}, token is ${e.current.token}`);let r={...null!=(t=window.history.state)?t:{},__next_navigation_guard_token:e.current.token,__next_navigation_guard_stack_index:e.current.index};s.call(window.history,r,"",window.location.href)},window.history.state&&null!=window.history.state.__next_navigation_guard_stack_index&&null!=window.history.state.__next_navigation_guard_token||a(),window.history.pushState=function(t,i,a){e.current.token||(e.current.token=o(),e.current.index=-1),++e.current.index,n.DEBUG&&console.log(`setupHistoryAugmentationOnce: push: currentIndex is ${e.current.index}, token is ${e.current.token}`);let s={...null!=t?t:{},__next_navigation_guard_token:e.current.token,__next_navigation_guard_stack_index:e.current.index};r.call(this,s,i,a)},window.history.replaceState=function(t,r,i){e.current.token||(e.current.token=o(),e.current.index=0),n.DEBUG&&console.log(`setupHistoryAugmentationOnce: replace: currentIndex is ${e.current.index}, token is ${e.current.token}`);let a={...null!=t?t:{},__next_navigation_guard_token:e.current.token,__next_navigation_guard_stack_index:e.current.index};s.call(this,a,r,i)},i=!0,{writeState:a}};let n=e.r(997502),i=!1,a=()=>{};function o(){return Math.random().toString(36).substring(2)}},955382,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useInterceptPopState=function({guardMapRef:e}){(0,a.useIsomorphicLayoutEffect)(()=>{var t,r;let a,{writeState:s}=(0,i.setupHistoryAugmentationOnce)({renderedStateRef:o}),u=(t=e,r=s,(e={})=>{let s=null==e?void 0:e.__next_navigation_guard_token,u=Number(null==e?void 0:e.__next_navigation_guard_stack_index)||0;if(!s||s!==o.current.token)return n.DEBUG&&console.log(`useInterceptPopState(): token mismatch, skip handling (current: ${o.current.token}, next: ${s})`),o.current.token=s||(0,i.newToken)(),o.current.index=s?u:0,r(),!0;let c=u-o.current.index;if(0===c)return n.DEBUG&&console.log("useInterceptPopState(): discard popstate event: delta is 0"),!1;n.DEBUG&&console.log(`useInterceptPopState(): __next_navigation_guard_stack_index is ${e.__next_navigation_guard_stack_index}`);let l=location.pathname+location.search,d=[...t.current.values()];return e===a||0===d.length?(n.DEBUG&&console.log(`useInterceptPopState(): Accept popstate event, index: ${u}`),a=null,o.current.index=u,!0):(n.DEBUG&&console.log(`useInterceptPopState(): Suspend popstate event, index: ${u}`),(async()=>{let t=-1;for(let e of d)if((t++,e.enabled({to:l,type:"popstate"}))&&(n.DEBUG&&console.log(`useInterceptPopState(): confirmation for listener index ${t}`),!await e.callback({to:l,type:"popstate"}))){n.DEBUG&&console.log(`useInterceptPopState(): Cancel popstate event, go(): ${o.current.index} - ${u} = ${-c}`),0!==c&&window.history.go(-c);return}n.DEBUG&&console.log(`useInterceptPopState(): Accept popstate event, ${u}`),a=e,window.dispatchEvent(new PopStateEvent("popstate",{state:e}))})(),!1)}),c=e=>{u(e.state)||e.stopImmediatePropagation()};return window.addEventListener("popstate",c),()=>{window.removeEventListener("popstate",c)}},[])};let n=e.r(997502),i=e.r(855530),a=e.r(14372),o={current:{index:-1,token:""}}},997502,(e,t,r)=>{"use strict";var n=e.i(247167);
1Object.defineProperty(r,"__esModule",{value:!0}),r.debug=r.DEBUG=void 0,r.DEBUG=void 0!==n.default&&"true"===n.default.env.DEBUG_NAVIGATION_GUARD,r.debug=(...e)=>{r.DEBUG&&console.log("[next-nav-guard]",...e)}},508701,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useNavigationGuard=function(e){let t=(0,n.useId)(),r=(0,n.useContext)(i.NavigationGuardProviderContext);if(!r&&!e.disableForTesting)throw Error('[next-nav-guard] useNavigationGuard must be used within <NavigationGuardProvider>.\nAdd it to your root layout (app/layout.tsx):\n\n  import { NavigationGuardProvider } from "nextjs-nav-guard";\n\n  export default function RootLayout({ children }) {\n    return <NavigationGuardProvider>{children}</NavigationGuardProvider>;\n  }');let[s,u]=(0,n.useState)(null);(0,a.useIsomorphicLayoutEffect)(()=>{if(e.disableForTesting)return;let n=e.enabled;return r.current.set(t,{enabled:"function"==typeof n?n:()=>null==n||n,callback:t=>((0,o.debug)("Guard callback called with:",t),e.confirm)?((0,o.debug)("Using sync confirm function"),e.confirm(t)):((0,o.debug)("Using async confirm, setting pending state"),new Promise(e=>{setTimeout(()=>{u({resolve:e})},0)}))}),()=>{r.current.delete(t)}},[t,r,e.confirm,e.enabled,e.disableForTesting]);let c=!e.disableForTesting&&null!==s;return{active:c,accept:(0,n.useCallback)(()=>{s&&(s.resolve(!0),u(null))},[s]),reject:(0,n.useCallback)(()=>{s&&(s.resolve(!1),u(null))},[s])}};let n=e.r(271645),i=e.r(596526),a=e.r(14372),o=e.r(997502)},885410,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FallbackRouterContext=r.AppRouterContext=void 0;let n=e.r(271645),i=null;try{i=e.r(8372).AppRouterContext}catch{}r.AppRouterContext=i,r.FallbackRouterContext=(0,n.createContext)(null)},787776,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useInterceptLinkClicks=function({guardMapRef:e}){let t=(0,i.useRef)(!1),r=(0,i.useContext)(null!==o.AppRouterContext&&void 0!==o.AppRouterContext?o.AppRouterContext:o.FallbackRouterContext),s=(0,i.useRef)(r);s.current=r,(0,n.useIsomorphicLayoutEffect)(()=>{if("u"<typeof window||t.current)return;if(!o.AppRouterContext)return void(0,a.debug)("AppRouterContext not available, skipping link interceptor");if(!r)return void(0,a.debug)("Not in App Router context, skipping link interceptor");t.current=!0,(0,a.debug)("Setting up link click interceptor");let n=async t=>{let r=t.target.closest("a[href]");if(!r||"true"===r.dataset.guardProcessing)return;let n=r.getAttribute("href");if(!n||n.startsWith("http://")||n.startsWith("https://")||n.startsWith("//")||n.startsWith("#")||/^[a-z][a-z0-9+.-]*:/i.test(n)||r.target&&"_self"!==r.target||r.hasAttribute("download")||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||0!==t.button)return;(0,a.debug)(`Intercepted link click to: ${n}`),r.dataset.guardProcessing="true";let i="true"===r.dataset.replace?"replace":"push",o=[...e.current.values()].filter(({enabled:e})=>e({to:n,type:i}));if(0===o.length){delete r.dataset.guardProcessing,(0,a.debug)("No guards enabled, allowing navigation");return}t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation();let u=!0;for(let{callback:e}of o){(0,a.debug)(`Calling guard callback for ${i} to ${n}`);try{let t=await e({to:n,type:i});if((0,a.debug)(`Guard callback returned: ${t}`),!t){u=!1;break}}catch(e){(0,a.debug)("Guard callback error:",e),u=!1;break}}if(delete r.dataset.guardProcessing,u){(0,a.debug)("All guards passed, navigating programmatically");let e=s.current;e?"replace"===i?e.replace(n):e.push(n):"replace"===i?location.replace(n):location.href=n}else(0,a.debug)("Navigation blocked by guard")};return document.addEventListener("click",n,!0),()=>{(0,a.debug)("Cleaning up link click interceptor"),document.removeEventListener("click",n,!0),t.current=!1}},[e,r])};let n=e.r(14372),i=e.r(271645),a=e.r(997502),o=e.r(885410)},479621,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.useInterceptedAppRouter=function({guardMapRef:e}){let t=(0,n.useContext)(null!==a.AppRouterContext&&void 0!==a.AppRouterContext?a.AppRouterContext:a.FallbackRouterContext);return(0,n.useMemo)(()=>
1{if(!t)return(0,i.debug)("No original router found"),null;(0,i.debug)("Creating intercepted router");let r=async(t,r,n)=>{for(let{enabled:n,callback:a}of((0,i.debug)(`Navigation attempt: ${t} to ${r}`),[...e.current.values()])){if(!n({to:r,type:t}))continue;(0,i.debug)(`Calling guard callback for ${t} to ${r}`);let e=await a({to:r,type:t});if((0,i.debug)(`Guard callback returned: ${e}`),!e)return void(0,i.debug)("Navigation blocked")}(0,i.debug)("All guards passed, proceeding with navigation"),n()};return{...t,push:(e,...n)=>{(0,i.debug)(`push called with href: ${e}`),r("push",e,()=>t.push(e,...n))},replace:(e,...n)=>{r("replace",e,()=>t.replace(e,...n))},refresh:(...e)=>{r("refresh",location.pathname+location.search,()=>t.refresh(...e))}}},[t])};let n=e.r(271645),i=e.r(997502),a=e.r(885410)},22302,(e,t,r)=>{"use strict";e.i(247167),Object.defineProperty(r,"__esModule",{value:!0}),r.InterceptAppRouterProvider=function({guardMapRef:e,children:t}){let r=(0,i.useInterceptedAppRouter)({guardMapRef:e});return a.AppRouterContext&&r?(0,n.jsx)(a.AppRouterContext.Provider,{value:r,children:t}):(0,n.jsx)(n.Fragment,{children:t})};let n=e.r(843476),i=e.r(479621),a=e.r(885410)},151687,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NavigationGuardProvider=function({children:e}){let t=(0,i.useRef)(new Map);return(0,o.useInterceptPopState)({guardMapRef:t}),(0,a.useInterceptPageUnload)({guardMapRef:t}),(0,s.useInterceptLinkClicks)({guardMapRef:t}),(0,n.jsx)(c.NavigationGuardProviderContext.Provider,{value:t,children:(0,n.jsx)(u.InterceptAppRouterProvider,{guardMapRef:t,children:e})})};let n=e.r(843476),i=e.r(271645),a=e.r(960810),o=e.r(955382),s=e.r(787776),u=e.r(22302),c=e.r(596526)},451648,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NavigationGuardProvider=r.useNavigationGuard=void 0;var n=e.r(508701);Object.defineProperty(r,"useNavigationGuard",{enumerable:!0,get:function(){return n.useNavigationGuard}});var i=e.r(151687);Object.defineProperty(r,"NavigationGuardProvider",{enumerable:!0,get:function(){return i.NavigationGuardProvider}})},530824,e=>{"use strict";var t=e.i(843476),r=e.i(912598),n=e.i(217255),i=e.i(363178);function a({children:e,...r}){return(0,t.jsx)(i.ThemeProvider,{...r,children:e})}var o=e.i(380619),s=e.i(451648);e.s(["Providers",0,function({children:e}){let i=(0,o.getQueryClient)();return(0,t.jsx)(r.QueryClientProvider,{client:i,children:(0,t.jsx)(n.SessionProvider,{refetchInterval:300,refetchOnWindowFocus:!0,children:(0,t.jsx)(a,{attribute:"class",defaultTheme:"dark",children:(0,t.jsx)(s.NavigationGuardProvider,{children:e})})})})}],530824)},500998,e=>{"use strict";var t=e.i(217255),r=e.i(944720),n=e.i(271645),i=e.i(968673);e.s(["ActivityTracker",0,function(){var e;let a,o,s=(0,r.useActivityStore)(e=>e.setIsUserActive),u=(0,r.useActivityStore)(e=>e.isUserActive),{status:c}=(0,t.useSession)();return!function(e,t=3e5){let r=(0,n.useRef)(void 0),a=(0,i.useDebouncedCallback)(t=>{e(t)},1);(0,n.useEffect)(()=>{let n=()=>{r.current&&clearTimeout(r.current),a(!0),r.current=setTimeout(()=>{a(!1)},t)},i=["mousedown","mousemove","keydown","scroll","touchstart","wheel"];i.forEach(e=>{document.addEventListener(e,n)});let o=()=>{document.hidden?(e(!1),r.current&&clearTimeout(r.current)):n()};return document.addEventListener("visibilitychange",o),n(),()=>{i.forEach(e=>{document.removeEventListener(e,n)}),document.removeEventListener("visibilitychange",o),r.current&&clearTimeout(r.current),a.cancel()}},[a,e,t])}(s),e="authenticated"===c,(a=(0,n.useRef)(u)).current=u,o=(0,n.useRef)(0),(0,n.useEffect)(()=>{if(!e)return;let t=()=>{if(!(a.current&&"u">typeof document&&!document.hidden&&document.hasFocus()))return;let e=Date.now();
1e-o.current<3e4||(o.current=e,fetch("/api/user-activity/heartbeat",{method:"POST",keepalive:!0,credentials:"same-origin"}).catch(()=>{}))};t();let r=setInterval(t,6e4),n=()=>t();return window.addEventListener("focus",n),document.addEventListener("visibilitychange",n),()=>{clearInterval(r),window.removeEventListener("focus",n),document.removeEventListener("visibilitychange",n)}},[e]),null}],500998)},244683,e=>{"use strict";var t=e.i(843476),r=e.i(271645),n=e.i(618566),i=e.i(217255),a=e.i(604570),o=e.i(286511);function s(){let e=(0,n.usePathname)(),s=(0,n.useSearchParams)(),{data:u,status:c}=(0,i.useSession)(),l=(0,r.useRef)(void 0),d=(0,r.useRef)(void 0),f=s?.toString()??"";return(0,r.useEffect)(()=>{(0,o.trackPageView)({path:`${e||""}${f?`?${f}`:""}`})},[e,f]),(0,r.useEffect)(()=>{if("loading"===c)return;let e=!!u?.isImpersonating,t="authenticated"!==c||e?void 0:u?.user?.id;if(!t){void 0!==l.current&&(0,o.setUserId)(null)&&(l.current=void 0);return}l.current===t||(0,o.setUserId)(t)&&(l.current=t,(0,o.trackPendingLogin)())},[c,u?.isImpersonating,u?.user?.id]),(0,r.useEffect)(()=>{if("loading"===c)return;let e=u?.isImpersonating?u.realUserData:u?.user,t="authenticated"===c?e?.id:void 0;if(!t||!e){void 0!==d.current&&(a.default.reset(),d.current=void 0);return}d.current!==t&&(void 0!==d.current&&a.default.reset(),a.default.identify(t,{email:e.email,name:e.name}),d.current=t),u?.isImpersonating?a.default.register({impersonated_user_id:u.user.id}):a.default.unregister("impersonated_user_id")},[c,u?.isImpersonating,u?.user?.id,u?.realUserData?.id]),(0,t.jsx)(t.Fragment,{})}e.s(["AnalyticsTracker",0,s,"default",0,s])},638089,e=>{"use strict";var t=e.i(271645),r=e.i(217255),n=e.i(618566),i=e.i(686406);e.s(["SessionGuard",0,function(){let{status:e}=(0,r.useSession)(),a=(0,n.usePathname)();return(0,t.useEffect)(()=>{"unauthenticated"===e&&("/"===a||a.startsWith("/dashboard")||a.startsWith("/setup-mfa"))&&(0,i.redirectToSignin)("expired")},[e,a]),null}])},377855,e=>{"use strict";var t=e.i(843476),r=e.i(908406),n=e.i(271645),i=e.i(174080),a=e.i(981140),o=e.i(820783),s=e.i(75830),u=e.i(30030),c=e.i(726330),l=e.i(774606),d=e.i(296626),f=e.i(248425),p=e.i(30207),h=e.i(934620);n[" useEffectEvent ".trim().toString()],n[" useInsertionEffect ".trim().toString()];var v=n[" useInsertionEffect ".trim().toString()]||h.useLayoutEffect;Symbol("RADIX:SYNC_STATE");var g=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"}),m=n.forwardRef((e,r)=>(0,t.jsx)(f.Primitive.span,{...e,ref:r,style:{...g,...e.style}}));m.displayName="VisuallyHidden";var y="ToastProvider",[w,x,b]=(0,s.createCollection)("Toast"),[E,_]=(0,u.createContextScope)("Toast",[b]),[P,C]=E(y),k=e=>{let{__scopeToast:r,label:i="Notification",duration:a=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:u}=e,[c,l]=n.useState(null),[d,f]=n.useState(0),p=n.useRef(!1),h=n.useRef(!1);return i.trim()||console.error(`Invalid prop \`label\` supplied to \`${y}\`. Expected non-empty \`string\`.`),(0,t.jsx)(w.Provider,{scope:r,children:(0,t.jsx)(P,{scope:r,label:i,duration:a,swipeDirection:o,swipeThreshold:s,toastCount:d,viewport:c,onViewportChange:l,onToastAdd:n.useCallback(()=>f(e=>e+1),[]),onToastRemove:n.useCallback(()=>f(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:h,children:u})})};k.displayName=y;var T="ToastViewport",R=["F8"],S="toast.viewportPause",A="toast.viewportResume",I=n.forwardRef((e,r)=>{let{__scopeToast:i,hotkey:a=R,label:s="Notifications ({hotkey})",...u}=e,l=C(T,i),d=x(i),p=n.useRef(null),h=n.useRef(null),v=n.useRef(null),g=n.useRef(null),m=(0,o.useComposedRefs)(r,g,l.onViewportChange),y=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=l.toastCount>0;n.useEffect(()=>{let e=e=>{0!==a.length&&a.every(t=>e[t]||e.code===t)&&g.current?.focus()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),n.useEffect(()=>{let e=p.current,t=g.current;if(b&&e&&t){let r=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(S);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},n=()=>
1{if(l.isClosePausedRef.current){let e=new CustomEvent(A);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},i=t=>{e.contains(t.relatedTarget)||n()},a=()=>{e.contains(document.activeElement)||n()};return e.addEventListener("focusin",r),e.addEventListener("focusout",i),e.addEventListener("pointermove",r),e.addEventListener("pointerleave",a),window.addEventListener("blur",r),window.addEventListener("focus",n),()=>{e.removeEventListener("focusin",r),e.removeEventListener("focusout",i),e.removeEventListener("pointermove",r),e.removeEventListener("pointerleave",a),window.removeEventListener("blur",r),window.removeEventListener("focus",n)}}},[b,l.isClosePausedRef]);let E=n.useCallback(({tabbingDirection:e})=>{let t=d().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()},[d]);return n.useEffect(()=>{let e=g.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 h.current?.focus();let i=E({tabbingDirection:n?"backwards":"forwards"}),a=i.findIndex(e=>e===r);z(i.slice(a+1))?t.preventDefault():n?h.current?.focus():v.current?.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[d,E]),(0,t.jsxs)(c.Branch,{ref:p,role:"region","aria-label":s.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&(0,t.jsx)(j,{ref:h,onFocusFromOutsideViewport:()=>{z(E({tabbingDirection:"forwards"}))}}),(0,t.jsx)(w.Slot,{scope:i,children:(0,t.jsx)(f.Primitive.ol,{tabIndex:-1,...u,ref:m})}),b&&(0,t.jsx)(j,{ref:v,onFocusFromOutsideViewport:()=>{z(E({tabbingDirection:"backwards"}))}})]})});I.displayName=T;var N="ToastFocusProxy",j=n.forwardRef((e,r)=>{let{__scopeToast:n,onFocusFromOutsideViewport:i,...a}=e,o=C(N,n);return(0,t.jsx)(m,{tabIndex:0,...a,ref:r,style:{position:"fixed"},onFocus:e=>{let t=e.relatedTarget;o.viewport?.contains(t)||i()}})});j.displayName=N;var D="Toast",O=n.forwardRef((e,r)=>{let{forceMount:i,open:o,defaultOpen:s,onOpenChange:u,...c}=e,[l,f]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){let[a,o,s]=function({defaultProp:e,onChange:t}){let[r,i]=n.useState(e),a=n.useRef(r),o=n.useRef(t);return v(()=>{o.current=t},[t]),n.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,i,o]}({defaultProp:t,onChange:r}),u=void 0!==e,c=u?e:a;{let t=n.useRef(void 0!==e);n.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,i])}return[c,n.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else o(t)},[u,e,o,s])]}({prop:o,defaultProp:s??!0,onChange:u,caller:D});return(0,t.jsx)(d.Presence,{present:i||l,children:(0,t.jsx)(q,{open:l,...c,ref:r,onClose:()=>f(!1),onPause:(0,p.useCallbackRef)(e.onPause),onResume:(0,p.useCallbackRef)(e.onResume),onSwipeStart:(0,a.composeEventHandlers)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,a.composeEventHandlers)(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.composeEventHandlers)(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.composeEventHandlers)(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`),f(!1)})})})});O.displayName=D;var[M,L]=E(D,{onClose(){}}),q=n.forwardRef((e,r)=>{let{__scopeToast:s,type:u="foreground",duration:l,open:d,onClose:h,onEscapeKeyDown:v,onPause:g,onResume:m,onSwipeStart:y,onSwipeMove:x,onSwipeCancel:b,onSwipeEnd:E,..._}=e,P=C(D,s),[k,T]=n.useState(null),R=(0,o.useComposedRefs)(r,e=>T(e)),I=n.useRef(null),N=n.useRef(null),j=l||P.duration,O=n.useRef(0),L=n.useRef(j),q=n.useRef(0),{onToastAdd:Q,onToastRemove:U}=P,$=(0,p.useCallbackRef)(()=>{k?.contains(document.activeElement)&&P.viewport?.focus(),h()}),G=n.useCallback(e=>
1{e&&e!==1/0&&(window.clearTimeout(q.current),O.current=new Date().getTime(),q.current=window.setTimeout($,e))},[$]);n.useEffect(()=>{let e=P.viewport;if(e){let t=()=>{G(L.current),m?.()},r=()=>{let e=new Date().getTime()-O.current;L.current=L.current-e,window.clearTimeout(q.current),g?.()};return e.addEventListener(S,r),e.addEventListener(A,t),()=>{e.removeEventListener(S,r),e.removeEventListener(A,t)}}},[P.viewport,j,g,m,G]),n.useEffect(()=>{d&&!P.isClosePausedRef.current&&G(j)},[d,j,P.isClosePausedRef,G]),n.useEffect(()=>(Q(),()=>U()),[Q,U]);let H=n.useMemo(()=>k?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,i=""===t.dataset.radixToastAnnounceExclude;if(!n)if(i){let e=t.dataset.radixToastAnnounceAlt;e&&r.push(e)}else r.push(...e(t))}}),r}(k):null,[k]);return P.viewport?(0,t.jsxs)(t.Fragment,{children:[H&&(0,t.jsx)(F,{__scopeToast:s,role:"status","aria-live":"foreground"===u?"assertive":"polite",children:H}),(0,t.jsx)(M,{scope:s,onClose:$,children:i.createPortal((0,t.jsx)(w.ItemSlot,{scope:s,children:(0,t.jsx)(c.Root,{asChild:!0,onEscapeKeyDown:(0,a.composeEventHandlers)(v,()=>{P.isFocusedToastEscapeKeyDownRef.current||$(),P.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,t.jsx)(f.Primitive.li,{tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":P.swipeDirection,..._,ref:R,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,a.composeEventHandlers)(e.onKeyDown,e=>{"Escape"===e.key&&(v?.(e.nativeEvent),e.nativeEvent.defaultPrevented||(P.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:(0,a.composeEventHandlers)(e.onPointerDown,e=>{0===e.button&&(I.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,a.composeEventHandlers)(e.onPointerMove,e=>{if(!I.current)return;let t=e.clientX-I.current.x,r=e.clientY-I.current.y,n=!!N.current,i=["left","right"].includes(P.swipeDirection),a=["left","up"].includes(P.swipeDirection)?Math.min:Math.max,o=i?a(0,t):0,s=i?0:a(0,r),u="touch"===e.pointerType?10:2,c={x:o,y:s},l={originalEvent:e,delta:c};n?(N.current=c,V("toast.swipeMove",x,l,{discrete:!1})):W(c,P.swipeDirection,u)?(N.current=c,V("toast.swipeStart",y,l,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>u||Math.abs(r)>u)&&(I.current=null)}),onPointerUp:(0,a.composeEventHandlers)(e.onPointerUp,e=>{let t=N.current,r=e.target;if(r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),N.current=null,I.current=null,t){let r=e.currentTarget,n={originalEvent:e,delta:t};W(t,P.swipeDirection,P.swipeThreshold)?V("toast.swipeEnd",E,n,{discrete:!0}):V("toast.swipeCancel",b,n,{discrete:!0}),r.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),P.viewport)})]}):null}),F=e=>{let{__scopeToast:r,children:i,...a}=e,o=C(D,r),[s,u]=n.useState(!1),[c,d]=n.useState(!1);return function(e=()=>{}){let t=(0,p.useCallbackRef)(e);(0,h.useLayoutEffect)(()=>{let e=0,r=0;return e=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(r)}},[t])}(()=>u(!0)),n.useEffect(()=>{let e=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(e)},[]),c?null:(0,t.jsx)(l.Portal,{asChild:!0,children:(0,t.jsx)(m,{...a,children:s&&(0,t.jsxs)(t.Fragment,{children:[o.label," ",i]})})})},Q=n.forwardRef((e,r)=>{let{__scopeToast:n,...i}=e;return(0,t.jsx)(f.Primitive.div,{...i,ref:r})});Q.displayName="ToastTitle";var U=n.forwardRef((e,r)=>{let{__scopeToast:n,...i}=e;return(0,t.jsx)(f.Primitive.div,{...i,ref:r})});U.displayName="ToastDescription";var $="ToastAction",G=n.forwardRef((e,r)=>{let{altText:n,...i}=e;return n.trim()?(0,t.jsx)(B,{altText:n,asChild:!0,children:(0,t.jsx)(K,{...i,ref:r})}):(console.error(`Invalid prop \`altText\` supplied to \`${$}\`. Expected non-empty \`string\`.`),null)});G.displayName=$;var H="ToastClose",K=n.forwardRef((e,r)=>{let{__scopeToast:n,...i}=e,o=L(H,n);return(0,t.jsx)(B,{asChild:!0,children:(0,t.jsx)(f.Primitive.button,{type:"button",...i,ref:r,onClick:(0,a.composeEventHandlers)(e.onClick,o.onClose)})})});K.displayName=H;var B=n.forwardRef((e,r)=>{let{__scopeToast:n,altText:i,...a}=e;return(0,t.jsx)(f.Primitive.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...a,ref:r})});function V(e,t,r,{discrete:n}){let i=r.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?(0,f.dispatchDiscreteCustomEvent)(i,a):i.dispatchEvent(a)}var W=(e,t,r=0)=>{let n=Math.abs(e.x),i=Math.abs(e.y),a=n>i;return"left"===t||"right"===t?a&&n>r:!a&&i>r};function z(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var X=e.i(225913),Y=e.i(37727),J=e.i(975157);let Z=n.forwardRef(({className:e,...r},n)=>(0,t.jsx)(I,{ref:n,className:(0,J.cn)("fixed top-0 z-[100] flex gap-1 max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...r}));Z.displayName=I.displayName;let ee=(0,X.cva)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border border-primary/50 bg-background text-foreground",alert:"border bg-primary text-white",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),et=n.forwardRef(({className:e,variant:r,...n},i)=>(0,t.jsx)(O,{ref:i,className:(0,J.cn)(ee({variant:r}),e),...n}));et.displayName=O.displayName,n.forwardRef(({className:e,...r},n)=>(0,t.jsx)(G,{ref:n,className:(0,J.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...r})).displayName=G.displayName;let er=n.forwardRef(({className:e,...r},n)=>(0,t.jsx)(K,{ref:n,className:(0,J.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground
1/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...r,children:(0,t.jsx)(Y.X,{className:"h-4 w-4"})}));er.displayName=K.displayName;let en=n.forwardRef(({className:e,...r},n)=>(0,t.jsx)(Q,{ref:n,className:(0,J.cn)("text-sm font-semibold",e),...r}));en.displayName=Q.displayName;let ei=n.forwardRef(({className:e,...r},n)=>(0,t.jsx)(U,{ref:n,className:(0,J.cn)("text-sm opacity-90 break-words",e),...r}));ei.displayName=U.displayName;var ea=e.i(519455),eo=e.i(174886);let es=/https?:\/\/[^\s]+/g;e.s(["Toaster",0,function(){let{toasts:e,toast:i}=(0,r.useToast)(),a=async e=>{try{let t="";if("string"==typeof e)t=e;else if("number"==typeof e)t=e.toString();else if(n.default.isValidElement(e)){let r=e.props;t=r.children?.toString()||""}else t=String(e);await navigator.clipboard.writeText(t),i({title:"Copied toast message to clipboard",description:void 0,duration:3e3})}catch(e){console.error("Failed to copy text: ",e)}};return(0,t.jsxs)(k,{children:[e.map(function({id:e,title:r,description:n,action:i,showCopy:o,...s}){let u=null==o?"destructive"===s.variant:o;return(0,t.jsxs)(et,{...s,children:[(0,t.jsxs)("div",{className:"grid gap-1",children:[r&&(0,t.jsx)(en,{children:r}),n&&(0,t.jsx)(ei,{children:"string"==typeof n?function(e){let r=[],n=0;for(let i of e.matchAll(es)){let a=i[0],o=a.replace(/[.,;:!?)\]]+$/,""),s=a.slice(o.length),u=i.index;u>n&&r.push(e.slice(n,u)),r.push((0,t.jsx)("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 hover:opacity-80",children:o},u)),s&&r.push(s),n=u+a.length}return 0===r.length?e:(n<e.length&&r.push(e.slice(n)),r)}(n):n})]}),(0,t.jsxs)("div",{className:"flex items-center !ml-0",children:[u&&n&&(0,t.jsx)(ea.Button,{variant:"ghost",size:"icon",onClick:()=>a(n),className:"h-6 w-6",children:(0,t.jsx)(eo.Copy,{className:"h-3 w-3"})}),i]}),(0,t.jsx)(er,{})]},e)}),(0,t.jsx)(Z,{})]})}],377855)},145735,e=>{"use strict";var t=e.i(271645),r=e.i(507528),n=e.i(908406),i=e.i(217255);e.s(["UserAsyncActions",0,function(){let{data:e}=(0,i.useSession)(),{data:a,refetch:o}=(0,r.useJsonQuery)({url:"/api/user/async-actions",options:{refetchInterval:6e5,enabled:!!e?.user.id}}),{toast:s}=(0,n.useToast)(),u=(0,t.useRef)([]);return(0,t.useEffect)(()=>{u.current.forEach(e=>clearTimeout(e)),u.current=[];let e=a?.actions||[];if(0!==e.length)return e.forEach(async e=>{let t=Math.max(0,1e3*(e.delaySeconds||0)),r=window.setTimeout(async()=>{try{if("toast"===e.action){let t=e.data?.variant,r=e.data?.title,n=e.data?.description,i=e.data?.duration||3e3;s({variant:t,title:r,description:n,duration:i})}}finally{try{await fetch("/api/user/async-actions",{method:"POST",body:JSON.stringify({removeIds:[e._id]})})}catch{}}},t);u.current.push(r)}),()=>{u.current.forEach(e=>clearTimeout(e)),u.current=[]}},[a]),null}])},286511,e=>{"use strict";e.i(247167);var t=e.i(682473);function r(...e){let t=window.gtag;return"function"==typeof t&&(t(...e),!0)}let n=/^(?:[0-9a-f]{24}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|0x[0-9a-f]{6,}|INV-[\w-]+)$/i,i={projects:"projectId",apps:"appId",invoices:"invoiceNumber",users:"userId",nodes:"nodeAddress"},a=e=>{let r;return`${e.origin}${(r=(0,t.analyticsPath)(e.pathname).split("/")).map((e,t)=>n.test(e)?`{${i[r[t-1]]??"id"}}`:e).join("/")}${(0,t.normalizeSearch)(e.searchParams)}`},o="ga_login_intent";function s(){try{window.sessionStorage.removeItem(o)}catch{}}e.s(["clearLoginIntent",0,s,"markLoginIntent",0,function(e){try{window.sessionStorage.setItem(o,e)}catch{}},"setUserId",0,function(e){return r("set",{user_id:e})},"trackAppCreate",0,function(e){r("event","app_create",e)},"trackPageView",0,function(e){let t=new URL(e?.locationHref??e?.path??window.location.pathname+window.location.search,window.location.origin),n=e?.title??("u">typeof document?document.title:void 0),i=a(t),o="u">typeof document&&document.referrer?new URL(document.referrer):null;r("set",{page_location:i,page_referrer:o?a(o):void 0}),r("event","page_view",{page_location:i,page_title:n})},"trackPendingLogin",0,function(){let e=null;try{e=window.sessionStorage.getItem(o)}catch{return}e&&r("event","login",{method:e})&&s()},"trackPurchaseCredits",0,function(e){let t=e.amount||0;r("event","purchase_credits",{value:t,currency:"USD",amount:t})}])},686406,e=>{"use strict";var t=e.i(217255),r=e.i(604570);let n=["/signin","/signup"],i=!1;async function a(e="expired"){if(i)return;let o=window.location.pathname;if(n.some(e=>o.startsWith(e)))return;i=!0;let s=window.location.pathname+window.location.search;r.default.reset();try{await (0,t.signOut)({redirect:!1})}catch(e){console.warn("signOut failed during auth redirect:",e)}let u=new URLSearchParams({reason:e,callbackUrl:s});window.location.replace(`/signin?${u.toString()}`)}e.s(["isUnauthorizedError",0,function(e){return!!e&&"object"==typeof e&&"status"in e&&401===e.status},"redirectToSignin",0,a])},380619,e=>{"use strict";let t;var r=e.i(619273),n=e.i(286491),i=e.i(540143),a=e.i(915823),o=class extends a.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){let a=t.queryKey,o=t.queryHash??(0,r.hashQueryKeyByOptions)(a,t),s=this.get(o);return s||(s=new n.Query({client:e,queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:i,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(){i.notifyManager.batch(()=>
1{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.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r.matchQuery)(e,t)):t}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},s=e.i(114272),u=a,c=class extends u.Subscribable{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#r=new Map,this.#n=0}#t;#r;#n;build(e,t,r){let n=new s.Mutation({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#t.add(e);let t=l(e);if("string"==typeof t){let r=this.#r.get(t);r?r.push(e):this.#r.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=l(e);if("string"==typeof t){let r=this.#r.get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#r.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=l(e);if("string"!=typeof t)return!0;{let r=this.#r.get(t),n=r?.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=l(e);if("string"!=typeof t)return Promise.resolve();{let r=this.#r.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return r?.continue()??Promise.resolve()}}clear(){i.notifyManager.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#r.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.matchMutation)(e,t))}notify(e){i.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.noop))))}};function l(e){return e.options.scope?.id}var d=e.i(175555),f=e.i(814448),p=class{#i;#a;#o;#s;#u;#c;#l;#d;constructor(e={}){this.#i=e.queryCache||new o,this.#a=e.mutationCache||new c,this.#o=e.defaultOptions||{},this.#s=new Map,this.#u=new Map,this.#c=0}mount(){this.#c++,1===this.#c&&(this.#l=d.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onFocus())}),this.#d=f.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#i.onOnline())}))}unmount(){this.#c--,0===this.#c&&(this.#l?.(),this.#l=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#i.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#i.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#i.build(this,t),i=n.state.data;return void 0===i?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#i.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let i=this.defaultQueryOptions({queryKey:e}),a=this.#i.get(i.queryHash),o=a?.state.data,s=(0,r.functionalUpdate)(t,o);if(void 0!==s)return this.#i.build(this,i).setData(s,{...n,manual:!0})}setQueriesData(e,t,r){return i.notifyManager.batch(()=>this.#i.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#i.get(t.queryHash)?.state}removeQueries(e){let t=this.#i;i.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=this.#i;return i.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(i.notifyManager.batch(()=>this.#i.findAll(e).map(e=>e.cancel(n)))).then(r.noop).catch(r.noop)}invalidateQueries(e,t={}){return i.notifyManager.batch(()=>(this.#i.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(i.notifyManager.batch(()=>this.#i.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#i.build(this,t);return n.isStaleByTime((0,r.resolveStaleTime)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.noop).catch(r.noop)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.noop).catch(r.noop)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return f.onlineManager.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#i}getMutationCache(){return this.#a}getDefaultOptions(){return this.#o}setDefaultOptions(e){this.#o=e}setQueryDefaults(e,t){this.#s.set((0,r.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#s.values()],n={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#u.set((0,r.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#u.values()],n={};return t.forEach(t=>{(0,r.partialMatchKey)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#o.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.hashQueryKeyByOptions)(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"),t.queryFn===r.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#o.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#i.clear(),this.#a.clear()}};e.i(793803);var h=e.i(686406),v=e.i(204478),g=e.i(47777);function m(e){(0,h.isUnauthorizedError)(e)?(0,h.redirectToSignin)("expired"):(0,g.isMaintenanceError)(e)&&(0,v.enterMaintenancePage)()}function y(){return new p({queryCache:new o({onError:m}),mutationCache:new c({onError:m}),defaultOptions:{queries:{staleTime:6e4},dehydrate:{shouldDehydrateQuery:e=>"success"===e.state.status||"pending"===e.state.status}}})}e.s(["getQueryClient",0,function(){return r.isServer?y():(t||(t=y()),t)}],380619)},204478,e=>{"use strict";var t=e.i(47777);let r=!1;function n(){r||(r=!0,window.location.reload())}async function i(){try{let e=await fetch("/api/maintenance/ping",{cache:"no-store"});if(204===e.status)return!1;return 503===e.status&&"1"===e.headers.get(t.MAINTENANCE_HEADER)||null}catch{return null}}e.s(["enterMaintenancePage",0,function(){if(document.querySelector("[data-maintenance-page]")||r)return;let{pathname:e,search:i}=window.location;null===(0,t.whenClosed)(e,new URLSearchParams(i))?(r=!0,window.location.assign("/maintenance")):n()},"maintenanceClosed",0,i,"reloadForMaintenance",0,n])},944720,e=>{"use strict";
1let t=(0,e.i(768834).create)(e=>({isUserActive:!0,setIsUserActive:t=>e({isUserActive:t})}));e.s(["useActivityStore",0,t])}]);

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.