1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1828],{63515:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{cancelIdleCallback:function(){return i},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(t){let e=Date.now();return self.setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})},1)},i="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(t){return clearTimeout(t)};("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},7707:function(t){t.exports={style:{fontFamily:"'__Inter_f367f3', '__Inter_Fallback_f367f3', system-ui, arial",fontStyle:"normal"},className:"__className_f367f3"}},70118:function(t,e,n){"use strict";n.d(e,{P:function(){return l}});var i=n(13856),r=n(68973),s=n(9889),o=n(83707),a=n(54207),u=n(57437);function c(t){return(0,u.jsx)(i.J,{focusable:"false","aria-hidden":!0,...t,children:(0,u.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,
111.823a.25.25,0,0,1,0,.354Z"})})}var l=(0,r.G)(function(t,e){let n=(0,s.mq)("CloseButton",t),{children:i,isDisabled:r,__css:l,...h}=(0,o.Lr)(t);return(0,u.jsx)(a.m.button,{type:"button","aria-label":"Close",ref:e,disabled:r,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...l},...h,children:i||(0,u.jsx)(c,{width:"1em",height:"1em"})})});l.displayName="CloseButton"},96366:function(t,e,n){"use strict";n.d(e,{Ty:function(){return a},aN:function(){return r}});var i="chakra-ui-color-mode",r={ssr:!1,type:"localStorage",get(t){let e;if(!(null==globalThis?void 0:globalThis.document))return t;try{e=localStorage.getItem(i)||t}catch(t){}return e||t},set(t){try{localStorage.setItem(i,t)}catch(t){}}};function s(t,e){let n=t.match(new RegExp("(^| )".concat(e,"=([^;]+)")));return null==n?void 0:n[2]}function o(t,e){return{ssr:!!e,type:"cookie",get:n=>e?s(e,t):(null==globalThis?void 0:globalThis.document)&&s(document.cookie,t)||n,set(e){document.cookie="".concat(t,"=").concat(e,"; max-age=31536000; path=/")}}}o(i);var a=t=>o(i,t)},2380:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var i=n(57437),r=new Set(["dark","light","system"]);function s(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{nonce:e}=t;return(0,i.jsx)("script",{id:"chakra-script",nonce:e,dangerouslySetInnerHTML:{__html:function(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{initialColorMode:n="light",type:i="localStorage",storageKey:s="chakra-ui-color-mode"}=e,o=(t=n,r.has(t)||(t="light"),t),a='(function(){try{var a=function(o){var l="(prefers-color-scheme: dark)",v=window.matchMedia(l).matches?"dark":"light",e=o==="system"?v:o,d=document.documentElement,m=document.body,i="chakra-ui-light",n="chakra-ui-dark",s=e==="dark";return m.classList.add(s?n:i),m.classList.remove(s?i:n),d.style.colorScheme=e,d.dataset.theme=e,e},u=a,h="'.concat(o,'",r="').concat(s,'",t=document.cookie.match(new RegExp("(^| )".concat(r,"=([^;]+)"))),c=t?t[2]:null;c?a(c):document.cookie="".concat(r,"=").concat(a(h),"; max-age=31536000; path=/")}catch(a){}})();\n '),u='(function(){try{var a=function(c){var v="(prefers-color-scheme: dark)",h=window.matchMedia(v).matches?"dark":"light",r=c==="system"?h:c,o=document.documentElement,s=document.body,l="chakra-ui-light",d="chakra-ui-dark",i=r==="dark";return s.classList.add(i?d:l),s.classList.remove(i?l:d),o.style.colorScheme=r,o.dataset.theme=r,r},n=a,m="'.concat(o,'",e="').concat(s,'",t=localStorage.getItem(e);t?a(t):localStorage.setItem(e,a(m))}catch(a){}})();\n ');return"!".concat("cookie"===i?a:u).trim()}(t)}})}},78734:function(t,e,n){"use strict";n.d(e,{n:function(){return l}});var i,r=n(78242),s=n(99376),o=n(2265),a=null!=(i=r.Z.default)?i:r.Z,u=n(92991),c=n(57437);function l(t){let{children:e,...n}=t;return(0,c.jsx)(u.C,{value:function(t){let e=(0,o.useMemo)(()=>{let e=a({key:"css",prepend:!0,...t});return e.compat=!0,e},[t]);return(0,s.useServerInsertedHTML)(()=>(0,o.createElement)("style",{key:e.key,"data-emotion":"".concat(e.key," ").concat(Object.keys(e.inserted).join(" ")),dangerouslySetInnerHTML:{__html:Object.values(e.inserted).join(" ")}})),e}(n),children:e})}},85330:function(t,e,n){"use strict";n.d(e,{h:function(){return m}});var i=n(73210),r=n(6008),s=n(37371),o=n(54887),a=n(2265),u=n(57437),[c,l]=(0,s.k)({strict:!1,name:"PortalContext"}),h="chakra-portal",d=t=>(0,u.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:t.zIndex,top:0,left:0,right:0},children:t.children}),f=t=>{let{appendToParentPortal:e,children:n}=t,[s,f]=(0,a.useState)(null),p=(0,a.useRef)(null),[,m]=(0,a.useState)({});(0,a.useEffect)(()=>m({}),[]);let y=l(),v=(0,i.L)();(0,r.G)(()=>{if(!s)return;let t=s.ownerDocument,n=e&&null!=y?y:t.body;if(!n)return;p.current=t.createElement("div"),p.current.className=h,n.appendChild(p.current),m({});let i=p.current;return()=>{n.contains(i)&&n.removeChild(i)}},[s]);let b=(null==v?void 0:v.zIndex)?(0,u.jsx)(d,{zIndex:null==v?void 0:v.zIndex,children:n}):n;return p.current?(0,o.createPortal)((0,u.jsx)(c,{value:p.current,children:b}),p.current):(0,u.jsx)("span",{ref:t=>{t&&f(t)}})},p=t=>{let{children:e,containerRef:n,appendToParentPortal:i}=t,s=n.current,l=null!=s?s:"undefined"!=typeof window?document.body:void 0,d=(0,a.useMemo)(()=>{let t=null==s?void 0:s.ownerDocument.createElement("div");return t&&(t.className=h),t},[s]),[,f]=(0,a.useState)({});return((0,r.G)(()=>f({}),[]),(0,r.G)(()=>
1{if(d&&l)return l.appendChild(d),()=>{l.removeChild(d)}},[d,l]),l&&d)?(0,o.createPortal)((0,u.jsx)(c,{value:i?d:null,children:e}),d):null};function m(t){let{containerRef:e,...n}={appendToParentPortal:!0,...t};return e?(0,u.jsx)(p,{containerRef:e,...n}):(0,u.jsx)(f,{...n})}m.className=h,m.selector=".chakra-portal",m.displayName="Portal"},73210:function(t,e,n){"use strict";n.d(e,{L:function(){return o},h:function(){return a}});var i=n(37371),r=n(57437),[s,o]=(0,i.k)({strict:!1,name:"PortalManagerContext"});function a(t){let{children:e,zIndex:n}=t;return(0,r.jsx)(s,{value:{zIndex:n},children:e})}a.displayName="PortalManager"},37371:function(t,e,n){"use strict";n.d(e,{k:function(){return r}});var i=n(2265);function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:e,strict:n=!0,hookName:r="useContext",providerName:s="Provider",errorMessage:o,defaultValue:a}=t,u=(0,i.createContext)(a);return u.displayName=e,[u.Provider,function t(){var e;let a=(0,i.useContext)(u);if(!a&&n){let n=Error(null!=o?o:"".concat(r," returned `undefined`. Seems you forgot to wrap component within ").concat(s));throw n.name="ContextError",null==(e=Error.captureStackTrace)||e.call(Error,n,t),n}return a},u]}},98873:function(t,e,n){"use strict";n.d(e,{O:function(){return a},u:function(){return u}});var i=n(6008),r=n(2265),s=n(57437),o=(0,r.createContext)({getDocument:()=>document,getWindow:()=>window});function a(){let{defer:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[,e]=(0,r.useReducer)(t=>t+1,0);return(0,i.G)(()=>{t&&e()},[t]),(0,r.useContext)(o)}function u(t){let{children:e,environment:n,disabled:i}=t,a=(0,r.useRef)(null),u=(0,r.useMemo)(()=>n||{getDocument:()=>{var t,e;return null!=(e=null==(t=a.current)?void 0:t.ownerDocument)?e:document},getWindow:()=>{var t,e;return null!=(e=null==(t=a.current)?void 0:t.ownerDocument.defaultView)?e:window}},[n]),c=!i||!n;return(0,s.jsxs)(o.Provider,{value:u,children:[e,c&&(0,s.jsx)("span",{id:"__chakra_env",hidden:!0,ref:a})]})}o.displayName="EnvironmentContext",u.displayName="EnvironmentProvider"},81387:function(t,e,n){"use strict";n.d(e,{W:function(){return r}});var i=n(2265);function r(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,i.useRef)(t);return(0,i.useEffect)(()=>{n.current=t}),(0,i.useCallback)(function(){for(var t,e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return null==(t=n.current)?void 0:t.call(n,...i)},e)}},51609:function(t,e,n){"use strict";n.d(e,{r:function(){return r}});var i=n(2265);function r(t,e){let n=(0,i.useRef)(!1),r=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(n.current&&r.current)return t();r.current=!0},e),(0,i.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},66935:function(t,e,n){"use strict";n.d(e,{x:function(){return P}});var i=n(45008),r=n(3146),s=n(57437);function o(){let t=(0,i._)(["\n :root,\n :host {\n --chakra-vh: 100vh;\n }\n\n @supports (height: -webkit-fill-available) {\n :root,\n :host {\n --chakra-vh: -webkit-fill-available;\n }\n }\n\n @supports (height: -moz-fill-available) {\n :root,\n :host {\n --chakra-vh: -moz-fill-available;\n }\n }\n\n @supports (height: 100dvh) {\n :root,\n :host {\n --chakra-vh: 100dvh;\n }\n }\n"]);return o=function(){return t},t}function a(){let t=(0,i._)(['\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n position: relative;\n min-height: 100%;\n margin: 0;\n font-feature-settings: "kern";\n }\n\n '," :where(*, *::before, *::after) {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n word-wrap: break-word;\n }\n\n main {\n display: block;\n }\n\n "," hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n "," :where(pre, code, kbd,samp) {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n "," a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n "," abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n "," :where(b, strong) {\n font-weight: bold;\n }\n\n "," small {\n font-size: 80%;\n }\n\n "," :where(sub,sup) {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n "," sub {\n bottom: -0.25em;
1\n }\n\n "," sup {\n top: -0.5em;\n }\n\n "," img {\n border-style: none;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n "," :where(button, input) {\n overflow: visible;\n }\n\n "," :where(button, select) {\n text-transform: none;\n }\n\n ",' :where(\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner\n ) {\n border-style: none;\n padding: 0;\n }\n\n '," fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n "," legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n "," progress {\n vertical-align: baseline;\n }\n\n "," textarea {\n overflow: auto;\n }\n\n ",' :where([type="checkbox"], [type="radio"]) {\n box-sizing: border-box;\n padding: 0;\n }\n\n ',' input[type="number"]::-webkit-inner-spin-button,\n ',' input[type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n ',' input[type="number"] {\n -moz-appearance: textfield;\n }\n\n ',' input[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n ',' input[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n '," ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n "," details {\n display: block;\n }\n\n "," summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n "," :where(\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre\n ) {\n margin: 0;\n }\n\n "," button {\n background: transparent;\n padding: 0;\n }\n\n "," fieldset {\n margin: 0;\n padding: 0;\n }\n\n "," :where(ol, ul) {\n margin: 0;\n padding: 0;\n }\n\n "," textarea {\n resize: vertical;\n }\n\n ",' :where(button, [role="button"]) {\n cursor: pointer;\n }\n\n '," button::-moz-focus-inner {\n border: 0 !important;\n }\n\n "," table {\n border-collapse: collapse;\n }\n\n "," :where(h1, h2, h3, h4, h5, h6) {\n font-size: inherit;\n font-weight: inherit;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n "," :where(img, svg, video, canvas, audio, iframe, embed, object) {\n display: block;\n }\n\n "," :where(img, video) {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible]\n :focus:not([data-focus-visible-added]):not(\n [data-focus-visible-disabled]\n ) {\n outline: none;\n box-shadow: none;\n }\n\n "," select::-ms-expand {\n display: none;\n }\n\n ","\n "]);return a=function(){return t},t}var u=String.raw,c=u(o()),l=()=>(0,s.jsx)(r.xB,{styles:c}),h=t=>{let{scope:e=""}=t;return(0,s.jsx)(r.xB,{styles:u(a(),e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,e,c)})},d=n(73210),f=n(32205),p=n(14123),m={light:"chakra-ui-light",dark:"chakra-ui-dark"},y=n(96366),v=n(6008),b=n(2265),g=()=>{};function w(t,e){return"cookie"===t.type&&t.ssr?t.get(e):e}function x(t){let{value:e,children:n,options:{useSystemColorMode:i,initialColorMode:r,disableTransitionOnChange:o}={},colorModeManager:a=y.aN}=t,u="dark"===r?"dark":"light",[c,l]=(0,b.useState)(()=>w(a,u)),[h,d]=(0,b.useState)(()=>w(a)),{getSystemTheme:f,setClassName:x,setDataset:C,addListener:k}=(0,b.useMemo)(()=>(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{preventTransition:e=!0}=t,n={setDataset:t=>{let i=e?n.preventTransition():void 0;document.documentElement.dataset.theme=t,document.documentElement.style.colorScheme=t,null==i||i()},setClassName(t){document.body.classList.add(t?m.dark:m.light),document.body.classList.remove(t?m.light:m.dark)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(t){var e;return(null!=(e=n.query().matches)?e:"dark"===t)?"dark":"light"},addListener(t){let e=n.query(),i=e=>
1{t(e.matches?"dark":"light")};return"function"==typeof e.addListener?e.addListener(i):e.addEventListener("change",i),()=>{"function"==typeof e.removeListener?e.removeListener(i):e.removeEventListener("change",i)}},preventTransition(){let t=document.createElement("style");return t.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(t),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(t)})})}}};return n})({preventTransition:o}),[o]),S="system"!==r||c?c:h,O=(0,b.useCallback)(t=>{let e="system"===t?f():t;l(e),x("dark"===e),C(e),a.set(e)},[a,f,x,C]);(0,v.G)(()=>{"system"===r&&d(f())},[]),(0,b.useEffect)(()=>{let t=a.get();if(t){O(t);return}if("system"===r){O("system");return}O(u)},[a,u,r,O]);let q=(0,b.useCallback)(()=>{O("dark"===S?"light":"dark")},[S,O]);(0,b.useEffect)(()=>{if(i)return k(O)},[i,k,O]);let P=(0,b.useMemo)(()=>({colorMode:null!=e?e:S,toggleColorMode:e?g:q,setColorMode:e?g:O,forced:void 0!==e}),[S,q,O,e]);return(0,s.jsx)(p.kc.Provider,{value:P,children:n})}x.displayName="ColorModeProvider";var C=n(98873),k=t=>{let{children:e,colorModeManager:n,portalZIndex:i,resetScope:r,resetCSS:o=!0,theme:a={},environment:u,cssVarsRoot:c,disableEnvironment:p,disableGlobalStyle:m}=t,y=(0,s.jsx)(C.u,{environment:u,disabled:p,children:e});return(0,s.jsx)(f.f6,{theme:a,cssVarsRoot:c,children:(0,s.jsxs)(x,{colorModeManager:n,options:a.config,children:[o?(0,s.jsx)(h,{scope:r}):(0,s.jsx)(l,{}),!m&&(0,s.jsx)(f.ZL,{}),i?(0,s.jsx)(d.h,{zIndex:i,children:y}):y]})})},S=n(56562),O=n(81760),q=t=>function(e){let{children:n,theme:i=t,toastOptions:r,...o}=e;return(0,s.jsxs)(k,{theme:i,...o,children:[(0,s.jsx)(O.Qi,{value:null==r?void 0:r.defaultOptions,children:n}),(0,s.jsx)(O.VW,{...r})]})},P=q(S.rS);q(S.wE)},32205:function(t,e,n){"use strict";n.d(e,{ZL:function(){return m},f6:function(){return h}});var i=n(14123),r=n(2265),s=n(83707),o=n(62626),a=n(99708),u=n(92991),c=n(3146),l=n(57437);function h(t){let{cssVarsRoot:e,theme:n,children:i}=t,o=(0,r.useMemo)(()=>(0,s.c0)(n),[n]);return(0,l.jsxs)(u.a,{theme:o,children:[(0,l.jsx)(d,{root:e}),i]})}function d(t){let{root:e=":host, :root"}=t,n=[e,"[data-theme]"].join(",");return(0,l.jsx)(c.xB,{styles:t=>({[n]:t.__cssVars})})}var[f,p]=function(t={}){let{strict:e=!0,errorMessage:n="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:i}=t,s=(0,r.createContext)(void 0);return s.displayName=i,[s.Provider,function t(){var i;let o=(0,r.useContext)(s);if(!o&&e){let e=Error(n);throw e.name="ContextError",null==(i=Error.captureStackTrace)||i.call(Error,e,t),e}return o},s]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function m(){let{colorMode:t}=(0,i.If)();return(0,l.jsx)(c.xB,{styles:e=>{let n=(0,o.Wf)(e,"styles.global"),i=(0,a.Pu)(n,{theme:e,colorMode:t});if(i)return(0,s.iv)(i)(e)}})}},87045:function(t,e,n){"use strict";n.d(e,{j:function(){return s}});var i=n(24112),r=n(45345),s=new class extends i.l{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!r.sk&&window.addEventListener){let e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(t=>{"boolean"==typeof t?this.setFocused(t):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){let t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return"boolean"==typeof this.#t?this.#t:globalThis.document?.visibilityState!=="hidden"}}},2894:function(t,e,n){"use strict";n.d(e,{R:function(){return a},m:function(){return o}});var i=n(18238),r=n(7989),s=n(11255),o=class extends r.F{#i;#r;#s;constructor(t){super(),this.mutationId=t.mutationId,this.#r=t.mutationCache,this.#i=[],this.state=t.state||a(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#i.includes(t)||(this.#i.push(t),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#i=this.#i.filter(e=>e!==t),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#i.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(t){this.#s=(0,s.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(Error("No mutationFn found")),onFail:(t,e)=>{this.#o({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});
1let e="pending"===this.state.status,n=!this.#s.canStart();try{if(!e){this.#o({type:"pending",variables:t,isPaused:n}),await this.#r.config.onMutate?.(t,this);let e=await this.options.onMutate?.(t);e!==this.state.context&&this.#o({type:"pending",context:e,variables:t,isPaused:n})}let i=await this.#s.start();return await this.#r.config.onSuccess?.(i,t,this.state.context,this),await this.options.onSuccess?.(i,t,this.state.context),await this.#r.config.onSettled?.(i,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(i,null,t,this.state.context),this.#o({type:"success",data:i}),i}catch(e){try{throw await this.#r.config.onError?.(e,t,this.state.context,this),await this.options.onError?.(e,t,this.state.context),await this.#r.config.onSettled?.(void 0,e,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,e,t,this.state.context),e}finally{this.#o({type:"error",error:e})}}finally{this.#r.runNext(this)}}#o(t){this.state=(e=>{switch(t.type){case"failed":return{...e,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...e,isPaused:!0};case"continue":return{...e,isPaused:!1};case"pending":return{...e,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...e,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...e,data:void 0,error:t.error,failureCount:e.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}})(this.state),i.V.batch(()=>{this.#i.forEach(e=>{e.onMutationUpdate(t)}),this.#r.notify({mutation:this,type:"updated",action:t})})}};function a(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},18238:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});var i=function(){let t=[],e=0,n=t=>{t()},i=t=>{t()},r=t=>setTimeout(t,0),s=i=>{e?t.push(i):r(()=>{n(i)})},o=()=>{let e=t;t=[],e.length&&r(()=>{i(()=>{e.forEach(t=>{n(t)})})})};return{batch:t=>{let n;e++;try{n=t()}finally{--e||o()}return n},batchCalls:t=>(...e)=>{s(()=>{t(...e)})},schedule:s,setNotifyFunction:t=>{n=t},setBatchNotifyFunction:t=>{i=t},setScheduler:t=>{r=t}}}()},57853:function(t,e,n){"use strict";n.d(e,{N:function(){return s}});var i=n(24112),r=n(45345),s=new class extends i.l{#a=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!r.sk&&window.addEventListener){let e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#a!==t&&(this.#a=t,this.listeners.forEach(e=>{e(t)}))}isOnline(){return this.#a}}},21733:function(t,e,n){"use strict";n.d(e,{A:function(){return a},z:function(){return u}});var i=n(45345),r=n(18238),s=n(11255),o=n(7989),a=class extends o.F{#u;#c;#l;#s;#h;#d;constructor(t){super(),this.#d=!1,this.#h=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#l=t.cache,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#u=t.state||function(t){let e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,i=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#u,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.#h,...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#l.remove(this)}setData(t,e){let n=(0,i.oE)(this.state.data,t,this.options);return this.#o({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#o({type:"setState",state:t,setStateOptions:e})}cancel(t){let e=this.#s?.promise;return this.#s?.cancel(t),e?e.then(i.ZT).catch(i.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#u)}isActive(){return this.observers.some(t=>!1!==t.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(t=0){return this.state.isInvalidated||void 0===this.state.data||!(0,i.Kp)(this.state.dataUpdatedAt,t)}onFocus(){let t=this.observers.find(t=>t.shouldFetchOnWindowFocus());t?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){let t=this.observers.find(t=>t.shouldFetchOnReconnect());t?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>
1e!==t),this.observers.length||(this.#s&&(this.#d?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}fetch(t,e){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(t&&this.setOptions(t),!this.options.queryFn){let t=this.observers.find(t=>t.options.queryFn);t&&this.setOptions(t.options)}let n=new AbortController,r={queryKey:this.queryKey,meta:this.meta},o=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(this.#d=!0,n.signal)})};o(r);let a={fetchOptions:e,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn&&this.options.queryFn!==i.CN?(this.#d=!1,this.options.persister)?this.options.persister(this.options.queryFn,r,this):this.options.queryFn(r):Promise.reject(Error(`Missing queryFn: '${this.options.queryHash}'`))};o(a),this.options.behavior?.onFetch(a,this),this.#c=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#o({type:"fetch",meta:a.fetchOptions?.meta});let u=t=>{(0,s.DV)(t)&&t.silent||this.#o({type:"error",error:t}),(0,s.DV)(t)||(this.#l.config.onError?.(t,this),this.#l.config.onSettled?.(this.state.data,t,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#s=(0,s.Mz)({fn:a.fetchFn,abort:n.abort.bind(n),onSuccess:t=>{if(void 0===t){u(Error(`${this.queryHash} data is undefined`));return}this.setData(t),this.#l.config.onSuccess?.(t,this),this.#l.config.onSettled?.(t,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:u,onFail:(t,e)=>{this.#o({type:"failed",failureCount:t,error:e})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#s.start()}#o(t){this.state=(e=>{switch(t.type){case"failed":return{...e,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...e,fetchStatus:"paused"};case"continue":return{...e,fetchStatus:"fetching"};case"fetch":return{...e,...u(e.data,this.options),fetchMeta:t.meta??null};case"success":return{...e,data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let n=t.error;if((0,s.DV)(n)&&n.revert&&this.#c)return{...this.#c,fetchStatus:"idle"};return{...e,error:n,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...e,isInvalidated:!0};case"setState":return{...e,...t.state}}})(this.state),r.V.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:t})})}};function u(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.Kw)(e.networkMode)?"fetching":"paused",...void 0===t&&{error:null,status:"pending"}}}},21623:function(t,e,n){"use strict";n.d(e,{S:function(){return p}});var i=n(45345),r=n(21733),s=n(18238),o=n(24112),a=class extends o.l{constructor(t={}){super(),this.config=t,this.#f=new Map}#f;build(t,e,n){let s=e.queryKey,o=e.queryHash??(0,i.Rm)(s,e),a=this.get(o);return a||(a=new r.A({cache:this,queryKey:s,queryHash:o,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){this.#f.has(t.queryHash)||(this.#f.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){let e=this.#f.get(t.queryHash);
1e&&(t.destroy(),e===t&&this.#f.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){s.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#f.get(t)}getAll(){return[...this.#f.values()]}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,i._x)(e,t))}findAll(t={}){let e=this.getAll();return Object.keys(t).length>0?e.filter(e=>(0,i._x)(t,e)):e}notify(t){s.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){s.V.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){s.V.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},u=n(2894),c=class extends o.l{constructor(t={}){super(),this.config=t,this.#p=new Map,this.#m=Date.now()}#p;#m;build(t,e,n){let i=new u.m({mutationCache:this,mutationId:++this.#m,options:t.defaultMutationOptions(e),state:n});return this.add(i),i}add(t){let e=l(t),n=this.#p.get(e)??[];n.push(t),this.#p.set(e,n),this.notify({type:"added",mutation:t})}remove(t){let e=l(t);if(this.#p.has(e)){let n=this.#p.get(e)?.filter(e=>e!==t);n&&(0===n.length?this.#p.delete(e):this.#p.set(e,n))}this.notify({type:"removed",mutation:t})}canRun(t){let e=this.#p.get(l(t))?.find(t=>"pending"===t.state.status);return!e||e===t}runNext(t){let e=this.#p.get(l(t))?.find(e=>
1e!==t&&e.state.isPaused);return e?.continue()??Promise.resolve()}clear(){s.V.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[...this.#p.values()].flat()}find(t){let e={exact:!0,...t};return this.getAll().find(t=>(0,i.X7)(e,t))}findAll(t={}){return this.getAll().filter(e=>(0,i.X7)(t,e))}notify(t){s.V.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){let t=this.getAll().filter(t=>t.state.isPaused);return s.V.batch(()=>Promise.all(t.map(t=>t.continue().catch(i.ZT))))}};function l(t){return t.options.scope?.id??String(t.mutationId)}var h=n(87045),d=n(57853);function f(t,{pages:e,pageParams:n}){let i=e.length-1;return t.getNextPageParam(e[i],e,n[i],n)}var p=class{#y;#r;#h;#v;#b;#g;#w;#x;constructor(t={}){this.#y=t.queryCache||new a,this.#r=t.mutationCache||new c,this.#h=t.defaultOptions||{},this.#v=new Map,this.#b=new Map,this.#g=0}mount(){this.#g++,1===this.#g&&(this.#w=h.j.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#y.onFocus())}),this.#x=d.N.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#y.onOnline())}))}unmount(){this.#g--,0===this.#g&&(this.#w?.(),this.#w=void 0,this.#x?.(),this.#x=void 0)}isFetching(t){return this.#y.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#r.findAll({...t,status:"pending"}).length}getQueryData(t){let e=this.defaultQueryOptions({queryKey:t});return this.#y.get(e.queryHash)?.state.data}ensureQueryData(t){let e=this.getQueryData(t.queryKey);if(void 0===e)return this.fetchQuery(t);{let n=this.defaultQueryOptions(t),i=this.#y.build(this,n);return t.revalidateIfStale&&i.isStaleByTime(n.staleTime)&&this.prefetchQuery(n),Promise.resolve(e)}}getQueriesData(t){return this.#y.findAll(t).map(({queryKey:t,state:e})=>[t,e.data])}setQueryData(t,e,n){let r=this.defaultQueryOptions({queryKey:t}),s=this.#y.get(r.queryHash),o=s?.state.data,a=(0,i.SE)(e,o);if(void 0!==a)return this.#y.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(t,e,n){return s.V.batch(()=>this.#y.findAll(t).map(({queryKey:t})=>[t,this.setQueryData(t,e,n)]))}getQueryState(t){let e=this.defaultQueryOptions({queryKey:t});return this.#y.get(e.queryHash)?.state}removeQueries(t){let e=this.#y;s.V.batch(()=>{e.findAll(t).forEach(t=>{e.remove(t)})})}resetQueries(t,e){let n=this.#y,i={type:"active",...t};return s.V.batch(()=>(n.findAll(t).forEach(t=>{t.reset()}),this.refetchQueries(i,e)))}cancelQueries(t={},e={}){let n={revert:!0,...e};return Promise.all(s.V.batch(()=>this.#y.findAll(t).map(t=>t.cancel(n)))).then(i.ZT).catch(i.ZT)}invalidateQueries(t={},e={}){return s.V.batch(()=>{if(this.#y.findAll(t).forEach(t=>{t.invalidate()}),"none"===t.refetchType)return Promise.resolve();let n={...t,type:t.refetchType??t.type??"active"};return this.refetchQueries(n,e)})}refetchQueries(t={},e){let n={...e,cancelRefetch:e?.cancelRefetch??!0};return Promise.all(s.V.batch(()=>this.#y.findAll(t).filter(t=>!t.isDisabled()).map(t=>{let e=t.fetch(void 0,n);return n.throwOnError||(e=e.catch(i.ZT)),"paused"===t.state.fetchStatus?Promise.resolve():e}))).then(i.ZT)}fetchQuery(t){let e=this.defaultQueryOptions(t);void 0===e.retry&&(e.retry=!1);let n=this.#y.build(this,e);return n.isStaleByTime(e.staleTime)?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(i.ZT).catch(i.ZT)}fetchInfiniteQuery(t){var e;return t.behavior=(e=t.pages,{onFetch:(t,n)=>{let r=async()=>{let n;let r=t.options,s=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[],u=!1,c=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},l=t.options.queryFn&&t.options.queryFn!==i.CN?t.options.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${t.options.queryHash}'`)),h=async(e,n,r)=>{if(u)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let s={queryKey:t.queryKey,pageParam:n,direction:r?"backward":"forward",meta:t.options.meta};c(s);let o=await l(s),{maxPages:a}=t.options,h=r?i.Ht:i.VX;return{pages:h(e.pages,o,a),pageParams:h(e.pageParams,n,a)}};if(s&&o.length){let t="backward"===s,e={pages:o,pageParams:a},i=(t?function(t,{pages:e,pageParams:n}){return t.getPreviousPageParam?.(e[0],e,n[0],n)}:f)(r,e);n=await h(e,i,t)}else{n=await h({pages:[],pageParams:[]},a[0]??r.initialPageParam);let t=e??o.length;for(let e=1;e<t;e++){let t=f(r,n);n=await h(n,t)}}return n};t.options.persister?t.fetchFn=()=>t.options.persister?.(r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=r}}),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(i.ZT).catch(i.ZT)}resumePausedMutations(){return d.N.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#r}getDefaultOptions(){return this.#h}setDefaultOptions(t){this.#h=t}
1setQueryDefaults(t,e){this.#v.set((0,i.Ym)(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){let e=[...this.#v.values()],n={};return e.forEach(e=>{(0,i.to)(t,e.queryKey)&&(n={...n,...e.defaultOptions})}),n}setMutationDefaults(t,e){this.#b.set((0,i.Ym)(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){let e=[...this.#b.values()],n={};return e.forEach(e=>{(0,i.to)(t,e.mutationKey)&&(n={...n,...e.defaultOptions})}),n}defaultQueryOptions(t){if(t._defaulted)return t;let e={...this.#h.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=(0,i.Rm)(e.queryKey,e)),void 0===e.refetchOnReconnect&&(e.refetchOnReconnect="always"!==e.networkMode),void 0===e.throwOnError&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),!0!==e.enabled&&e.queryFn===i.CN&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#h.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#y.clear(),this.#r.clear()}}},7989:function(t,e,n){"use strict";n.d(e,{F:function(){return r}});var i=n(45345),r=class{#C;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,i.PN)(this.gcTime)&&(this.#C=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(i.sk?1/0:3e5))}clearGcTimeout(){this.#C&&(clearTimeout(this.#C),this.#C=void 0)}}},11255:function(t,e,n){"use strict";n.d(e,{DV:function(){return c},Kw:function(){return a},Mz:function(){return l}});var i=n(87045),r=n(57853),s=n(45345);function o(t){return Math.min(1e3*2**t,3e4)}function a(t){return(t??"online")!=="online"||r.N.isOnline()}var u=class{constructor(t){this.revert=t?.revert,this.silent=t?.silent}};function c(t){return t instanceof u}function l(t){let e,n,c,l=!1,h=0,d=!1,f=new Promise((t,e)=>{n=t,c=e}),p=()=>i.j.isFocused()&&("always"===t.networkMode||r.N.isOnline())&&t.canRun(),m=()=>a(t.networkMode)&&t.canRun(),y=i=>{d||(d=!0,t.onSuccess?.(i),e?.(),n(i))},v=n=>{d||(d=!0,t.onError?.(n),e?.(),c(n))},b=()=>new Promise(n=>{e=t=>{(d||p())&&n(t)},t.onPause?.()}).then(()=>{e=void 0,d||t.onContinue?.()}),g=()=>{let e;if(!d){try{e=t.fn()}catch(t){e=Promise.reject(t)}Promise.resolve(e).then(y).catch(e=>{if(d)return;let n=t.retry??(s.sk?0:3),i=t.retryDelay??o,r="function"==typeof i?i(h,e):i,a=!0===n||"number"==typeof n&&h<n||"function"==typeof n&&n(h,e);if(l||!a){v(e);return}h++,t.onFail?.(h,e),(0,s._v)(r).then(()=>p()?void 0:b()).then(()=>{l?v(e):g()})})}};return{promise:f,cancel:e=>{d||(v(new u(e)),t.abort?.())},continue:()=>(e?.(),f),cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1},canStart:m,start:()=>(m()?g():b().then(g),f)}}},24112:function(t,e,n){"use strict";n.d(e,{l:function(){return i}});var i=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},45345:function(t,e,n){"use strict";n.d(e,{CN:function(){return x},Ht:function(){return w},Kp:function(){return a},PN:function(){return o},Rm:function(){return l},SE:function(){return s},VS:function(){return f},VX:function(){return g},X7:function(){return c},Ym:function(){return h},ZT:function(){return r},_v:function(){return v},_x:function(){return u},oE:function(){return b},sk:function(){return i},to:function(){return d}});var i="undefined"==typeof window||"Deno"in globalThis;function r(){}function s(t,e){return"function"==typeof t?t(e):t}function o(t){return"number"==typeof t&&t>=0&&t!==1/0}function a(t,e){return Math.max(t+(e||0)-Date.now(),0)}function u(t,e){let{type:n="all",exact:i,fetchStatus:r,predicate:s,queryKey:o,stale:a}=t;if(o){if(i){if(e.queryHash!==l(o,e.options))return!1}else if(!d(e.queryKey,o))return!1}if("all"!==n){let t=e.isActive();if("active"===n&&!t||"inactive"===n&&t)return!1}return("boolean"!=typeof a||e.isStale()===a)&&(!r||r===e.state.fetchStatus)&&(!s||!!s(e))}function c(t,e){let{exact:n,status:i,predicate:r,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(h(e.options.mutationKey)!==h(s))return!1}else if(!d(e.options.mutationKey,s))return!1}return(!i||e.state.status===i)&&(!r||!!r(e))}function l(t,e){return(e?.queryKeyHashFn||h)(t)}function h(t){return JSON.stringify(t,(t,e)=>m(e)?Object.keys(e).sort().reduce((t,n)=>(t[n]=e[n],t),{}):e)}function d(t,e){return t===e||typeof t==typeof e&&!!t&&!!e&&"object"==typeof t&&"object"==typeof e&&!Object.keys(e).some(n=>!d(t[n],e[n]))}function f(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(let n in t)if(t[n]!==e[n])return!1;return!0}function p(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function m(t){if(!y(t))return!1;let e=t.constructor;if(void 0===e)return!0;let n=e.prototype;return!!(y(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(t)===Object.prototype}function y(t){return"[object Object]"===Object.prototype.toString.call(t)}function v(t){return new Promise(e=>{setTimeout(e,t)})}function b(t,e,n){return"function"==typeof n.structuralSharing?n.structuralSharing(t,e):!1!==n.structuralSharing?function t(e,n){if(e===n)return e;let i=p(e)&&p(n);if(i||m(e)&&m(n)){let r=i?e:Object.keys(e),s=r.length,o=i?n:Object.keys(n),a=o.length,u=i?[]:{},c=0;for(let s=0;s<a;s++){let a=i?s:o[s];(!i&&r.includes(a)||i)&&void 0===e[a]&&void 0===n[a]?(u[a]=void 0,c++):(u[a]=t(e[a],n[a]),u[a]===e[a]&&void 0!==e[a]&&c++)}return s===a&&c===s?e:u}return n}(t,e):e}function g(t,e,n=0){let i=[...t,e];return n&&i.length>n?i.slice(1):i}function w(t,e,n=0){let i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var x=Symbol()},29827:function(t,e,n){"use strict";n.d(e,{NL:function(){return o},aH:function(){return a}});
1var i=n(2265),r=n(57437),s=i.createContext(void 0),o=t=>{let e=i.useContext(s);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},a=t=>{let{client:e,children:n}=t;return i.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,r.jsx)(s.Provider,{value:e,children:n})}}}]);
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.