1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a11996-8d76-7890-a340-e7662c684524")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,279459,(e,t,r)=>{t.exports=e.r(618566)},952669,e=>{"use strict";e.i(247167);var t=e.i(271645),r=e.i(948203),n=e.i(598533),n=n,a=e.i(279459),o=e.i(843476);function i(e){let{options:i,CacheProvider:l=n.C,children:s}=e,[c]=t.useState(()=>{var e;let t=(0,r.default)({...i,key:null!=(e=null==i?void 0:i.key)?e:"mui"});t.compat=!0;let n=t.insert,a=[];return t.insert=function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];(null==i?void 0:i.enableCssLayer)&&!r[1].styles.match(/^@layer\s+[^{]*$/)&&(r[1].styles="@layer mui {".concat(r[1].styles,"}"));let[l,s]=r;return void 0===t.inserted[s.name]&&a.push({name:s.name,isGlobal:!l}),n(...r)},{cache:t,flush:()=>{let e=a;return a=[],e}}});return(0,a.useServerInsertedHTML)(()=>{let e=c.flush();if(0===e.length)return null;let r="",n=c.cache.key,a=[];return e.forEach(e=>{let{name:t,isGlobal:o}=e,i=c.cache.inserted[t];"string"==typeof i&&(o?a.push({name:t,style:i}):(r+=i,n+=" ".concat(t)))}),(0,o.jsxs)(t.Fragment,{children:[a.map(e=>{let{name:t,style:r}=e;return(0,o.jsx)("style",{nonce:null==i?void 0:i.nonce,"data-emotion":"".concat(c.cache.key,"-global ").concat(t),dangerouslySetInnerHTML:{__html:r}},t)}),r&&(0,o.jsx)("style",{nonce:null==i?void 0:i.nonce,"data-emotion":n,dangerouslySetInnerHTML:{__html:r}})]})}),(0,o.jsx)(l,{value:c.cache,children:s})}e.s(["default",()=>i],952669)},808341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return i},requestIdleCallback:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},i="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},479520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return x}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(555682),i=e.r(190809),l=e.r(843476),s=o._(e.r(174080)),c=i._(e.r(271645)),d=e.r(742732),u=e.r(922737),p=e.r(808341),h=new Map,f=new Set,g=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:a=null,dangerouslySetInnerHTML:o,children:i="",strategy:l="afterInteractive",onError:c,stylesheets:d}=e,p=r||t;if(p&&f.has(p))return;if(h.has(t)){f.add(p),h.get(t).then(n,c);return}let g=()=>{a&&a(),f.add(p)},m=document.createElement("script"),x=new Promise((e,t)=>{m.addEventListener("load",function(t){e(),n&&n.call(this,t),g()}),m.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});o?(m.innerHTML=o.__html||"",g()):i?(m.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",g()):t&&(m.src=t,h.set(t,x)),(0,u.setAttributesFromProps)(m,e),"worker"===l&&m.setAttribute("type","text/partytown"),m.setAttribute("data-nscript",l),d&&(e=>{if(s.default.preinit)return e.forEach(e=>{s.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(d),document.body.appendChild(m)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>g(e))}):g(e)}function x(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEac
1h(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:a=null,strategy:o="afterInteractive",onError:i,stylesheets:u,...h}=e,{updateScripts:m,scripts:x,getIsSsr:y,appDir:b,nonce:w}=(0,c.useContext)(d.HeadManagerContext);w=h.nonce||w;let j=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;j.current||(a&&e&&f.has(e)&&a(),j.current=!0)},[a,t,r]);let S=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!S.current){if("afterInteractive"===o)g(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>g(e))}));S.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(m?(x[o]=(x[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:a,onError:i,...h,nonce:w}]),m(x)):y&&y()?f.add(t||r):y&&!y()&&g({...e,nonce:w})),b){if(u&&u.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat(JSON.stringify([0,{...h,id:t}]),")")}});else return s.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin}),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push(".concat(JSON.stringify([r,{...h,id:t}]),")")}});"afterInteractive"===o&&r&&s.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let b=y;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3303,(e,t,r)=>{t.exports=e.r(479520)},311181,e=>{"use strict";var t,r,n,a,o,i,l,s,c,d,u,p,h,f,g=e.i(247167),m=e.i(843476),x=e.i(271645),y=e.i(419422),b=e.i(739946),w=e.i(470292),j=e.i(62351),S=e.i(126005);function k(e,t){var r=(0,S._)(e,t,"update");if(r.set){if(!r.get)throw TypeError("attempted to read set only private field");return"__destrWrapper"in r||(r.__destrWrapper={set value(v){r.set.call(e,v)},get value(){return r.get.call(e)}}),r.__destrWrapper}if(!r.writable)throw TypeError("attempted to set read only private field");return r}var C=e.i(540143),M=e.i(114272),I=e.i(619273),_=e.i(915823),O=(n=new WeakMap,a=new WeakMap,o=new WeakMap,class extends _.Subscribable{build(e,t,r){let n=new M.Mutation({client:e,mutationCache:this,mutationId:++k(this,o).value,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){(0,b._)(this,n).add(e);let t=T(e);if("string"==typeof t){let r=(0,b._)(this,a).get(t);r?r.push(e):(0,b._)(this,a).set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if((0,b._)(this,n).delete(e)){let t=T(e);if("string"==typeof t){let r=(0,b._)(this,a).get(t);if(r)if(r.length>1){let t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&(0,b._)(this,a).delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=T(e);if("string"!=typeof t)return!0;{let r=(0,b._)(this,a).get(t),n=null==r?void 0:r.find(e=>"pending"===e.state.status);return!n||n===e}}runNext(e){let t=T(e);if("string"!=typeof t)return Promise.resolve();{var r,n;let o=null==(n=(0,b._)(this,a).get(t))?void 0:n.find(t=>
1t!==e&&t.state.isPaused);return null!=(r=null==o?void 0:o.continue())?r:Promise.resolve()}}clear(){C.notifyManager.batch(()=>{(0,b._)(this,n).forEach(e=>{this.notify({type:"removed",mutation:e})}),(0,b._)(this,n).clear(),(0,b._)(this,a).clear()})}getAll(){return Array.from((0,b._)(this,n))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,I.matchMutation)(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(t=>(0,I.matchMutation)(e,t))}notify(e){C.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return C.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(I.noop))))}constructor(e={}){super(),(0,w._)(this,n,{writable:!0,value:void 0}),(0,w._)(this,a,{writable:!0,value:void 0}),(0,w._)(this,o,{writable:!0,value:void 0}),this.config=e,(0,j._)(this,n,new Set),(0,j._)(this,a,new Map),(0,j._)(this,o,0)}});function T(e){var t;return null==(t=e.options.scope)?void 0:t.id}var A=e.i(286491),E=_,z=(i=new WeakMap,class extends E.Subscribable{build(e,t,r){var n;let a=t.queryKey,o=null!=(n=t.queryHash)?n:(0,I.hashQueryKeyByOptions)(a,t),i=this.get(o);return i||(i=new A.Query({client:e,queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(a)}),this.add(i)),i}add(e){(0,b._)(this,i).has(e.queryHash)||((0,b._)(this,i).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=(0,b._)(this,i).get(e.queryHash);t&&(e.destroy(),t===e&&(0,b._)(this,i).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){C.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return(0,b._)(this,i).get(e)}getAll(){return[...(0,b._)(this,i).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,I.matchQuery)(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,I.matchQuery)(e,t)):t}notify(e){C.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){C.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){C.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}constructor(e={}){super(),(0,w._)(this,i,{writable:!0,value:void 0}),this.config=e,(0,j._)(this,i,new Map)}}),P=e.i(175555),B=e.i(814448),W=e.i(992571),R=(l=new WeakMap,s=new WeakMap,c=new WeakMap,d=new WeakMap,u=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,class{mount(){k(this,p).value++,1===(0,b._)(this,p)&&((0,j._)(this,h,P.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),(0,b._)(this,l).onFocus())})),(0,j._)(this,f,B.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),(0,b._)(this,l).onOnline())})))}unmount(){var e,t;k(this,p).value--,0===(0,b._)(this,p)&&(null==(e=(0,b._)(this,h))||e.call(this),(0,j._)(this,h,void 0),null==(t=(0,b._)(this,f))||t.call(this),(0,j._)(this,f,void 0))}isFetching(e){return(0,b._)(this,l).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return(0,b._)(this,s).findAll({...e,status:"pending"}).length}getQueryData(e){var t;let r=this.defaultQueryOptions({queryKey:e});return null==(t=(0,b._)(this,l).get(r.queryHash))?void 0:t.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),r=(0,b._)(this,l).build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime((0,I.resolveStaleTime)(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return(0,b._)(this,l).findAll(e).map(e=>{let{queryKey:t,state:r}=e;return[t,r.data]})}setQueryData(e,t,r){let n=this.defaultQueryOptions({queryKey:e}),a=(0,b._)(this,l).get(n.queryHash),o=null==a?void 0:a.state.data,i=(0,I.functionalUpdate)(t,o);if(void 0!==i)return(0,b._)(this,l).build(this,n).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return C.notifyManager.batch(()=>(0,b._)(this,l).findAll(e).map(e=>{let{queryKey:n}=e;return[n,this.setQueryData(n,t,r)]}))}getQueryState(e){var t;let r=this.defaultQueryOptions({queryKey:e});return null==(t=(0,b._)(this,l).get(r.queryHash))?void 0:t.state}removeQueries(e){let t=(0,b._)(this,l);C.notifyManager.batch(()=>
1{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let r=(0,b._)(this,l);return C.notifyManager.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={revert:!0,...t};return Promise.all(C.notifyManager.batch(()=>(0,b._)(this,l).findAll(e).map(e=>e.cancel(r)))).then(I.noop).catch(I.noop)}invalidateQueries(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return C.notifyManager.batch(()=>{var r,n;return((0,b._)(this,l).findAll(e).forEach(e=>{e.invalidate()}),(null==e?void 0:e.refetchType)==="none")?Promise.resolve():this.refetchQueries({...e,type:null!=(r=null!=(n=null==e?void 0:e.refetchType)?n:null==e?void 0:e.type)?r:"active"},t)})}refetchQueries(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={...r,cancelRefetch:null==(t=r.cancelRefetch)||t};return Promise.all(C.notifyManager.batch(()=>(0,b._)(this,l).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(I.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(I.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let r=(0,b._)(this,l).build(this,t);return r.isStaleByTime((0,I.resolveStaleTime)(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(I.noop).catch(I.noop)}fetchInfiniteQuery(e){return e.behavior=(0,W.infiniteQueryBehavior)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(I.noop).catch(I.noop)}ensureInfiniteQueryData(e){return e.behavior=(0,W.infiniteQueryBehavior)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return B.onlineManager.isOnline()?(0,b._)(this,s).resumePausedMutations():Promise.resolve()}getQueryCache(){return(0,b._)(this,l)}getMutationCache(){return(0,b._)(this,s)}getDefaultOptions(){return(0,b._)(this,c)}setDefaultOptions(e){(0,j._)(this,c,e)}setQueryDefaults(e,t){(0,b._)(this,d).set((0,I.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...(0,b._)(this,d).values()],r={};return t.forEach(t=>{(0,I.partialMatchKey)(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){(0,b._)(this,u).set((0,I.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...(0,b._)(this,u).values()],r={};return t.forEach(t=>{(0,I.partialMatchKey)(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;let t={...(0,b._)(this,c).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,I.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===I.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...(0,b._)(this,c).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){(0,b._)(this,l).clear(),(0,b._)(this,s).clear()}constructor(e={}){(0,w._)(this,l,{writable:!0,value:void 0}),(0,w._)(this,s,{writable:!0,value:void 0}),(0,w._)(this,c,{writable:!0,value:void 0}),(0,w._)(this,d,{writable:!0,value:void 0}),(0,w._)(this,u,{writable:!0,value:void 0}),(0,w._)(this,p,{writable:!0,value:void 0}),(0,w._)(this,h,{writable:!0,value:void 0}),(0,w._)(this,f,{writable:!0,value:void 0}),(0,j._)(this,l,e.queryCache||new z),(0,j._)(this,s,e.mutationCache||new O),(0,j._)(this,c,e.defaultOptions||{}),(0,j._)(this,d,new Map),(0,j._)(this,u,new Map),(0,j._)(this,p,0)}}),L=e.i(793803);function D(e){return e}
1function F(e){return e.state.isPaused}function H(e){return"success"===e.state.status}function Q(e){return!0}var q=["added","removed","updated"];function U(e){return q.includes(e)}async function N(e){let{queryClient:t,persister:r,maxAge:n=864e5,buster:a="",hydrateOptions:o}=e;try{let e=await r.restoreClient();if(e)if(!e.timestamp)return r.removeClient();else{let i=Date.now()-e.timestamp>n,l=e.buster!==a;if(i||l)return r.removeClient();!function(e,t,r){var n,a,o,i;if("object"!=typeof t||null===t)return;let l=e.getMutationCache(),s=e.getQueryCache(),c=null!=(n=null!=(a=null==r||null==(o=r.defaultOptions)?void 0:o.deserializeData)?a:null==(i=e.getDefaultOptions().hydrate)?void 0:i.deserializeData)?n:D,d=t.mutations||[],u=t.queries||[];d.forEach(t=>{var n,a;let{state:o,...i}=t;l.build(e,{...null==(n=e.getDefaultOptions().hydrate)?void 0:n.mutations,...null==r||null==(a=r.defaultOptions)?void 0:a.mutations,...i},o)}),u.forEach(t=>{let{queryKey:n,state:a,queryHash:o,meta:i,promise:l,dehydratedAt:d}=t,u=l?(0,L.tryResolveSync)(l):void 0,p=void 0===a.data?null==u?void 0:u.data:a.data,h=void 0===p?p:c(p),f=s.get(o),g=(null==f?void 0:f.state.status)==="pending",m=(null==f?void 0:f.state.fetchStatus)==="fetching";if(f){let e=u&&void 0!==d&&d>f.state.dataUpdatedAt;if(a.dataUpdatedAt>f.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=a;f.setState({...t,data:h})}}else{var x,y;f=s.build(e,{...null==(x=e.getDefaultOptions().hydrate)?void 0:x.queries,...null==r||null==(y=r.defaultOptions)?void 0:y.queries,queryKey:n,queryHash:o,meta:i},{...a,data:h,fetchStatus:"idle",status:void 0!==h?"success":a.status})}l&&!g&&!m&&(void 0===d||d>f.state.dataUpdatedAt)&&f.fetch(void 0,{initialPromise:Promise.resolve(l).then(c)}).catch(I.noop)})}(t,e.clientState,o)}}catch(e){throw await r.removeClient(),e}}async function K(e){let{queryClient:t,persister:r,buster:n="",dehydrateOptions:a}=e,o={buster:n,timestamp:Date.now(),clientState:function(e){var t,r,n,a,o,i,l,s,c,d,u,p;let h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=null!=(t=null!=(r=h.shouldDehydrateMutation)?r:null==(c=e.getDefaultOptions().dehydrate)?void 0:c.shouldDehydrateMutation)?t:F,g=e.getMutationCache().getAll().flatMap(e=>f(e)?[{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}]:[]),m=null!=(n=null!=(a=h.shouldDehydrateQuery)?a:null==(d=e.getDefaultOptions().dehydrate)?void 0:d.shouldDehydrateQuery)?n:H,x=null!=(o=null!=(i=h.shouldRedactErrors)?i:null==(u=e.getDefaultOptions().dehydrate)?void 0:u.shouldRedactErrors)?o:Q,y=null!=(l=null!=(s=h.serializeData)?s:null==(p=e.getDefaultOptions().dehydrate)?void 0:p.serializeData)?l:D;return{mutations:g,queries:e.getQueryCache().getAll().flatMap(e=>{var t;let r;return m(e)?[{dehydratedAt:Date.now(),state:{...e.state,...void 0!==e.state.data&&{data:y(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,..."pending"===e.state.status&&{promise:(null==(r=null==(t=e.promise)?void 0:t.then(y).catch(e=>x(e)?Promise.reject(Error("redacted")):Promise.reject(e)))||r.catch(I.noop),r)},...e.meta&&{meta:e.meta}}]:[]})}}(t,a)};await r.persistClient(o)}var G=e.i(381384),X=e.i(912598),V=e=>{let{children:t,persistOptions:r,onSuccess:n,onError:a,...o}=e,[i,l]=x.useState(!0),s=x.useRef({persistOptions:r,onSuccess:n,onError:a}),c=x.useRef(!1);return x.useEffect(()=>{s.current={persistOptions:r,onSuccess:n,onError:a}}),x.useEffect(()=>{let e,t,r={...s.current.persistOptions,queryClient:o.client};return c.current||(c.current=!0,N(r).then(()=>{var e,t;return null==(e=(t=s.current).onSuccess)?void 0:e.call(t)}).catch(()=>{var e,t;return null==(e=(t=s.current).onError)?void 0:e.call(t)}).finally(()=>{l(!1)})),i?void 0:(e=r.queryClient.getQueryCache().subscribe(e=>{U(e.type)&&K(r)}),t=r.queryClient.getMutationCache().subscribe(e=>{U(e.type)&&K(r)}),()=>{e(),t()})},[o.client,i]),(0,m.jsx)(X.QueryClientProvider,{...o,children:(0,m.jsx)(G.IsRestoringProvider,{value:i,children:t})})},J=e.i(180166);function Y(){}var $=e.i(604570),Z=e.i(573023),ee=e.i(864399);let et=x.createContext(null);function er(){return x.useContext(et)}let en="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ea=function(e){let{children:t,theme:r}=e,n=er(),a=x.useMemo(()=>{var e,t;let a=null===n?{...r}:(e=n,"function"==typeof(t=r)?t(e):{...e,...t});return null!=a&&(a[en]=null!==n),a},[r,n]);return(0,m.jsx)(et.Provider,{value:a,children:t})};var eo=e.i(828419),ei=e.i(486931),el=e.i(868308),es=e.i(686373),ec=e.i(107558),ed=e.i(357242),eu=e.i(273852);let ep={};function eh(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return x.useMemo(()=>{let a=e&&t[e]||t;
1if("function"==typeof r){let o=r(a),i=e?{...t,[e]:o}:o;return n?()=>i:i}return e?{...t,[e]:r}:{...t,...r}},[e,t,r,n])}let ef=function(e){let{children:t,theme:r,themeId:n}=e,a=(0,ei.default)(ep),o=er()||ep,i=eh(n,a,r),l=eh(n,o,r,!0),s="rtl"===(n?i[n]:i).direction,c=function(e){let t=(0,ei.default)(),r=(0,ed.default)()||"",{modularCssLayers:n}=e,a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return(a=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,a):"@layer ".concat(a,";"):"",(0,ec.default)(()=>{var e,t;let n=document.querySelector("head");if(!n)return;let o=n.firstChild;if(a){if(o&&(null==(e=o.hasAttribute)?void 0:e.call(o,"data-mui-layer-order"))&&o.getAttribute("data-mui-layer-order")===r)return;let t=document.createElement("style");t.setAttribute("data-mui-layer-order",r),t.textContent=a,n.prepend(t)}else null==(t=n.querySelector('style[data-mui-layer-order="'.concat(r,'"]')))||t.remove()},[a,r]),a)?(0,m.jsx)(eu.default,{styles:a}):null}(i);return(0,m.jsx)(ea,{theme:l,children:(0,m.jsx)(eo.ThemeContext.Provider,{value:i,children:(0,m.jsx)(el.default,{value:s,children:(0,m.jsxs)(es.default,{value:n?i[n].components:i.components,children:[c,t]})})})})};var eg=e.i(802001);function em(e){let{theme:t,...r}=e,n=eg.default in t?t[eg.default]:void 0;return(0,m.jsx)(ef,{...r,themeId:n?eg.default:void 0,theme:n||t})}var ex=e.i(317028),ey=e.i(798006);let eb="mode",ev="color-scheme";function ew(){}let ej=e=>{let{key:t,storageWindow:r}=e;return!r&&"u">typeof window&&(r=window),{get(e){let n;if("u">typeof window){if(!r)return e;
1try{n=r.localStorage.getItem(t)}catch{}return n||e}},set:e=>{if(r)try{r.localStorage.setItem(t,e)}catch{}},subscribe:e=>{if(!r)return ew;let n=r=>{let n=r.newValue;r.key===t&&e(n)};return r.addEventListener("storage",n),()=>{r.removeEventListener("storage",n)}}}};function eS(){}function ek(e){if("u">typeof window&&"function"==typeof window.matchMedia&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function eC(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}var eM=e.i(501937),eI=e.i(35767);let{CssVarsProvider:e_,useColorScheme:eO,getInitColorSchemeScript:eT}=function(e){let{themeId:t,theme:r={},modeStorageKey:n=eb,colorSchemeStorageKey:a=ev,disableTransitionOnChange:o=!1,defaultColorScheme:i,resolveTheme:l}=e,s={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=x.createContext(void 0),d={},u={},p="string"==typeof i?i:i.light,h="string"==typeof i?i:i.dark;return{CssVarsProvider:function(e){var s,p,h,f;let{children:g,theme:y,modeStorageKey:b=n,colorSchemeStorageKey:w=a,disableTransitionOnChange:j=o,storageManager:S,storageWindow:k="u"<typeof window?void 0:window,documentNode:C="u"<typeof document?void 0:document,colorSchemeNode:M="u"<typeof document?void 0:document.documentElement,disableNestedContext:I=!1,disableStyleSheetGeneration:_=!1,defaultMode:O="system",forceThemeRerender:T=!1,noSsr:A}=e,E=x.useRef(!1),z=er(),P=x.useContext(c),B=!!P&&!I,W=x.useMemo(()=>y||("function"==typeof r?r():r),[y]),R=W[t],L=R||W,{colorSchemes:D=d,components:F=u,cssVarPrefix:H}=L,Q=Object.keys(D).filter(e=>!!D[e]).join(","),q=x.useMemo(()=>Q.split(","),[Q]),U="string"==typeof i?i:i.light,N="string"==typeof i?i:i.dark,K=D[U]&&D[N]?O:(null==(p=D[L.defaultColorScheme])||null==(s=p.palette)?void 0:s.mode)||(null==(h=L.palette)?void 0:h.mode),{mode:G,setMode:X,systemMode:V,lightColorScheme:J,darkColorScheme:Y,colorScheme:$,setColorScheme:Z}=function(e){let{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:a=[],modeStorageKey:o=eb,colorSchemeStorageKey:i=ev,storageWindow:l="u"<typeof window?void 0:window,storageManager:s=ej,noSsr:c=!1}=e,d=a.join(","),u=a.length>1,p=x.useMemo(()=>null==s?void 0:s({key:o,storageWindow:l}),[s,o,l]),h=x.useMemo(()=>null==s?void 0:s({key:"".concat(i,"-light"),storageWindow:l}),[s,i,l]),f=x.useMemo(()=>null==s?void 0:s({key:"".concat(i,"-dark"),storageWindow:l}),[s,i,l]),[g,m]=x.useState(()=>{let e=(null==p?void 0:p.get(t))||t,a=(null==h?void 0:h.get(r))||r,o=(null==f?void 0:f.get(n))||n;return{mode:e,systemMode:ek(e),lightColorScheme:a,darkColorScheme:o}}),[y,b]=x.useState(c||!u);x.useEffect(()=>{b(!0)},[]);let w=eC(g,e=>"light"===e?g.lightColorScheme:"dark"===e?g.darkColorScheme:void 0),j=x.useCallback(e=>{m(r=>{if(e===r.mode)return r;let n=null!=e?e:t;return null==p||p.set(n),{...r,mode:n,systemMode:ek(n)}})},[p,t]),S=x.useCallback(e=>{e?"string"==typeof e?e&&!d.includes(e)?console.error("`".concat(e,"` does not exist in `theme.colorSchemes`.")):m(t=>{let r={...t};return eC(t,t=>{"light"===t&&(null==h||h.set(e),r.lightColorScheme=e),"dark"===t&&(null==f||f.set(e),r.darkColorScheme=e)}),r}):m(t=>{let a={...t},o=null===e.light?r:e.light,i=null===e.dark?n:e.dark;return o&&(d.includes(o)?(a.lightColorScheme=o,null==h||h.set(o)):console.error("`".concat(o,"` does not exist in `theme.colorSchemes`."))),i&&(d.includes(i)?(a.darkColorScheme=i,null==f||f.set(i)):console.error("`".concat(i,"` does not exist in `theme.colorSchemes`."))),a}):m(e=>(null==h||h.set(r),null==f||f.set(n),{...e,lightColorScheme:r,darkColorScheme:n}))},[d,h,f,r,n]),k=x.useCallback(e=>{"system"===g.mode&&m(t=>{let r=(null==e?void 0:e.matches)?"dark":"light";return t.systemMode===r?t:{...t,systemMode:r}})},[g.mode]),C=x.useRef(k);return C.current=k,x.useEffect(()=>{if("function"!=typeof window.matchMedia||!u)return;let e=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return C.current(...t)},t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>{t.removeListener(e)}},[u]),x.useEffect(()=>{if(u){let e=(null==p?void 0:p.subscribe(e=>{(!e||["light","dark","system"].includes(e))&&j(e||t)}))||eS,r=(null==h?void 0:h.subscribe(e=>{(!e||d.match(e))&&S({light:e})}))||eS,n=(null==f?void 0:f.subscribe(e=>{(!e||d.match(e))&&S({dark:e})}))||eS;return()=>{e(),r(),n()}}},[S,j,d,t,l,u,p,h,f]),{...g,mode:y?g.mode:void 0,systemMode:y?g.systemMode:void 0,colorScheme:y?w:void 0,setMode:j,setColorScheme:S}}
1({supportedColorSchemes:q,defaultLightColorScheme:U,defaultDarkColorScheme:N,modeStorageKey:b,colorSchemeStorageKey:w,defaultMode:K,storageManager:S,storageWindow:k,noSsr:A}),ee=G,et=$;B&&(ee=P.mode,et=P.colorScheme);let en=et||L.defaultColorScheme;L.vars&&!T&&(en=L.defaultColorScheme);let ea=x.useMemo(()=>{var e;let t=(null==(e=L.generateThemeVars)?void 0:e.call(L))||L.vars,r={...L,components:F,colorSchemes:D,cssVarPrefix:H,vars:t};if("function"==typeof r.generateSpacing&&(r.spacing=r.generateSpacing()),en){let e=D[en];e&&"object"==typeof e&&Object.keys(e).forEach(t=>{e[t]&&"object"==typeof e[t]?r[t]={...r[t],...e[t]}:r[t]=e[t]})}return l?l(r):r},[L,en,F,D,H]),eo=L.colorSchemeSelector;(0,ec.default)(()=>{if(et&&M&&eo&&"media"!==eo){let e=eo;if("class"===eo&&(e=".%s"),"data"===eo&&(e="[data-%s]"),(null==eo?void 0:eo.startsWith("data-"))&&!eo.includes("%s")&&(e="[".concat(eo,'="%s"]')),e.startsWith("."))M.classList.remove(...q.map(t=>e.substring(1).replace("%s",t))),M.classList.add(e.substring(1).replace("%s",et));else{let t=e.replace("%s",et).match(/\[([^\]]+)\]/);if(t){let[e,r]=t[1].split("=");r||q.forEach(t=>{M.removeAttribute(e.replace(et,t))}),M.setAttribute(e,r?r.replace(/"|'/g,""):"")}else M.setAttribute(e,et)}}},[et,eo,M,q]),x.useEffect(()=>{let e;if(j&&E.current&&C){let t=C.createElement("style");t.appendChild(C.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),C.head.appendChild(t),window.getComputedStyle(C.body),e=setTimeout(()=>{C.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[et,j,C]),x.useEffect(()=>(E.current=!0,()=>{E.current=!1}),[]);let ei=x.useMemo(()=>({allColorSchemes:q,colorScheme:et,darkColorScheme:Y,lightColorScheme:J,mode:ee,setColorScheme:Z,setMode:X,systemMode:V}),[q,et,Y,J,ee,Z,X,V,ea.colorSchemeSelector]),el=!0;(_||!1===L.cssVariables||B&&(null==z?void 0:z.cssVarPrefix)===H)&&(el=!1);let es=(0,m.jsxs)(x.Fragment,{children:[(0,m.jsx)(ef,{themeId:R?t:void 0,theme:ea,children:g}),el&&(0,m.jsx)(ey.GlobalStyles,{styles:(null==(f=ea.generateStyleSheets)?void 0:f.call(ea))||[]})]});return B?es:(0,m.jsx)(c.Provider,{value:ei,children:es})},useColorScheme:()=>x.useContext(c)||s,getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="system",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:a=eb,colorSchemeStorageKey:o=ev,attribute:i="data-color-scheme",colorSchemeNode:l="document.documentElement",nonce:s}=e||{},c="",d=i;if("class"===i&&(d=".%s"),"data"===i&&(d="[data-%s]"),d.startsWith(".")){let e=d.substring(1);c+="".concat(l,".classList.remove('").concat(e,"'.replace('%s', light), '").concat(e,"'.replace('%s', dark));\n ").concat(l,".classList.add('").concat(e,"'.replace('%s', colorScheme));")}let u=d.match(/\[([^[\]]+)\]/);if(u){let[e,t]=u[1].split("=");t||(c+="".concat(l,".removeAttribute('").concat(e,"'.replace('%s', light));\n ").concat(l,".removeAttribute('").concat(e,"'.replace('%s', dark));")),c+="\n ".concat(l,".setAttribute('").concat(e,"'.replace('%s', colorScheme), ").concat(t?"".concat(t,".replace('%s', colorScheme)"):'""',");")}else".%s"!==d&&(c+="".concat(l,".setAttribute('").concat(d,"', colorScheme);"));return(0,m.jsx)("script",{suppressHydrationWarning:!0,nonce:"u"<typeof window?s:"",dangerouslySetInnerHTML:{__html:"(function() {\ntry {\n let colorScheme = '';\n const mode = localStorage.getItem('".concat(a,"') || '").concat(t,"';\n const dark = localStorage.getItem('").concat(o,"-dark') || '").concat(n,"';\n const light = localStorage.getItem('").concat(o,"-light') || '").concat(r,"';\n if (mode === 'system') {\n // handle system mode\n const mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n colorScheme = dark\n } else {\n colorScheme = light\n }\n }\n if (mode === 'light') {\n colorScheme = light;\n }\n if (mode === 'dark') {\n colorScheme = dark;\n }\n if (colorScheme) {\n ").concat(c,"\n }\n} catch(e){}})();")}},"mui-color-scheme-init")}
1)({colorSchemeStorageKey:a,defaultLightColorScheme:p,defaultDarkColorScheme:h,modeStorageKey:n,...e})}}({themeId:eg.default,theme:()=>(0,eM.default)({cssVariables:!0}),colorSchemeStorageKey:"mui-color-scheme",modeStorageKey:"mui-mode",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t={...e,typography:(0,eI.default)(e.palette,e.typography)};return t.unstable_sx=function(e){return(0,ex.default)({sx:e,theme:this})},t}});function eA(e){let{theme:t,...r}=e,n=x.useMemo(()=>{if("function"==typeof t)return t;let e=eg.default in t?t[eg.default]:t;return"colorSchemes"in e?null:"vars"in e?t:{...t,vars:null}},[t]);return n?(0,m.jsx)(em,{theme:n,...r}):(0,m.jsx)(e_,{theme:t,...r})}var eE=e.i(6376),ez=e.i(53675);let eP="rgba(255,255,255,0.22)",eB="rgba(155,98,182,0.38)",eW="rgba(155,98,182,0.46)",eR="rgba(155,98,182,0.75)",eL="background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease";function eD(e){let{children:t}=e,{colors:r}=(0,ee.useColorScheme)(),n=(0,x.useMemo)(()=>(0,eE.createTheme)({palette:{mode:"dark",background:{default:"#0D0D10",paper:"#121212"},primary:{main:"#9B62B6"},secondary:{main:"#DE7455"},success:{light:r.positive.light,main:r.positive.main,dark:r.positive.dark},error:{light:r.negative.light,main:r.negative.main,dark:r.negative.dark},warning:{main:"#FFBC11"}},breakpoints:{values:{xs:0,sm:600,md:900,lg:1200,xl:1536}},typography:{h1:{fontFamily:"var(--font-display)"},h2:{fontFamily:"var(--font-display)"},h3:{fontFamily:"var(--font-display)"},h4:{fontFamily:"var(--font-display)"},h5:{fontFamily:"var(--font-display)"},h6:{fontFamily:"var(--font-display)"}},components:{MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"#121212",color:"#fff",fontSize:"0.8rem",borderColor:"#555",borderWidth:1,borderStyle:"solid",padding:"8px 12px",borderRadius:6},arrow:{color:"#121212"}}},MuiOutlinedInput:{styleOverrides:{root:{borderRadius:4,backgroundColor:"rgba(255,255,255,0.05)",transition:eL,"& .MuiOutlinedInput-notchedOutline":{borderColor:eP},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(155,98,182,0.5)"},"&.Mui-focused":{boxShadow:"0 0 0 3px rgba(155,98,182,0.15)","& .MuiOutlinedInput-notchedOutline":{borderColor:"#9B62B6",borderWidth:"1px"}}},notchedOutline:{transition:eL}}},MuiMenu:{defaultProps:{elevation:0},styleOverrides:{paper:{backgroundColor:"#16161B",backgroundImage:"none",border:"1px solid ".concat("rgba(255,255,255,0.12)"),borderRadius:8,boxShadow:"0 18px 40px rgba(0,0,0,0.55)",marginTop:6,"&::-webkit-scrollbar":{width:8,height:8},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(155,98,182,0.3)",borderRadius:8}},list:{paddingTop:4,paddingBottom:4}}},MuiMenuItem:{styleOverrides:{root:{minHeight:30,paddingLeft:10,paddingRight:12,gap:9,fontSize:12.5,color:"rgba(255,255,255,0.72)",transition:eL,"&:hover":{backgroundColor:"rgba(255,255,255,0.05)"},"&.Mui-selected":{backgroundColor:"rgba(155,98,182,0.14)",color:"#FAFAFA","&:hover":{backgroundColor:"rgba(255,255,255,0.05)"}}}}},MuiListSubheader:{styleOverrides:{root:{backgroundColor:"transparent",color:"inherit"}}},MuiSelect:{styleOverrides:{icon:{color:"rgba(255,255,255,0.55)",fontSize:18}}},MuiButton:{defaultProps:{disableElevation:!0},styleOverrides:{root:{borderRadius:4,minHeight:34,padding:"0 16px",fontSize:11,fontWeight:700,letterSpacing:"0.1em",transition:eL,"&.Mui-disabled":{backgroundColor:"rgba(255,255,255,0.06)",color:"rgba(255,255,255,0.3)",cursor:"not-allowed"}},sizeSmall:{minHeight:28,padding:"0 11px",fontSize:10.5},containedPrimary:{backgroundColor:"#9B62B6",color:"#14141A","&:hover":{backgroundColor:"#AC77C4"}},outlined:{backgroundColor:"rgba(255,255,255,0.07)",borderColor:"rgba(255,255,255,0.22)",color:"rgba(255,255,255,0.88)","&:hover":{backgroundColor:"rgba(255,255,255,0.13)",borderColor:"rgba(255,255,255,0.34)",color:"#FAFAFA"}},text:{color:"rgba(255,255,255,0.6)","&:hover":{backgroundColor:"rgba(255,255,255,0.06)",color:"#FAFAFA"}}}},MuiToggleButton:{styleOverrides:{root:{borderRadius:4,borderColor:eP,backgroundColor:"rgba(255,255,255,0.05)",minHeight:24,padding:"0 10px",fontSize:11.5,fontWeight:400,letterSpacing:"0.02em",color:"rgba(255,255,255,0.6)",transition:eL,"&:hover":{backgroundColor:"rgba(255,255,255,0.06)"},"&.Mui-selected":{backgroundColor:eB,borderColor:eR,color:"#FAFAFA",fontWeight:700,"&:hover":{backgroundColor:eW}}}}},MuiChip:{styleOverrides:{root:{borderRadius:4,height:28,fontSize:11.5},outlined:{borderColor:eP,backgroundColor:"rgba(255,255,255,0.06)",color:"rgba(255,255,255,0.8)"},filled:{backgroundColor:eB,border:"1px solid ".concat(eR),color:"#FAFAFA",fontWeight:700,"&:hover":{backgroundColor:eW}}}},MuiSwitch:{styleOverrides:{root:{width:46,height:26,padding:4},switchBase:{padding:6,"&.Mui-checked":{transform:"translateX(14px)",color:"#9B62B6","& + .MuiSwitch-track":{backgroundColor:"rgba(155,98,182,0.4)",opacity:1}}},thumb:{width:14,height:14,boxShadow:"none",backgroundColor:"rgba(255,255,255,0.5)"},track:{borderRadius:9,backgroundColor:"rgba(255,255,255,0.1)",opacity:1}}},MuiTabs:{styleOverrides:{indicator:{height:2,backgroundColor:"#9B62B6"}}},MuiTab:{styleOverrides:{root:{minHeight:38,padding:"0 12px",fontSize:12.5,fontWeight:400,textTransform:"none",color:"rgba(255,255,255,0.5)",transition:eL,"&:hover":{color:"#FAFAFA"},"&.Mui-selected":{color:"#FAFAFA",fontWeight:700}}}},MuiInputLabel:{styleOverrides:{root:{fontSize:14,fontWeight:500,"&.Mui-focused":{color:"#9B62B6"}}}},MuiAutocomplete:{styleOverrides:{root:{"& .MuiAutocomplete-popupIndicator":{transition:"transform 0.2s ease-in-out"},"& .MuiAutocomplete-clearIndicator":{transition:"all 0.2s ease-in-out"}},paper:{borderRadius:8,marginTop:4}}},MuiDialog:{styleOverrides:{paper:{backgroundColor:"#121212",backgroundImage:"none",border:"1px solid rgba(255,255,255,0.08)"}}}}}),[r]);
1return(0,m.jsxs)(eA,{theme:n,children:[(0,m.jsx)(ez.default,{}),t]})}var eF=e.i(720565);function eH(e){let{children:t}=e;return(0,x.useEffect)(()=>{let e="phc_dc4vNdlAxTBKoLNWanDLdgELGiVDtb02sTJHSfTfvC",t="https://us.i.posthog.com",r=["localhost","127.0.0.1"].includes(window.location.hostname);if(e&&t&&!r){$.default.init(e,{api_host:t,autocapture:!1,cross_subdomain_cookie:!0});let r=window.matchMedia("(display-mode: standalone)").matches||!0===window.navigator.standalone;$.default.register({display_mode:r?"standalone":"browser",build_id:"9d54711-1791430507"})}},[]),(0,m.jsx)(eF.PostHogProvider,{client:$.default,children:t})}var eQ=e.i(754251),eq=e.i(618566),eU=e.i(657688),eN=e.i(522016),eK=e.i(94765),eG=e.i(511152),eX=e.i(896826),eV=e.i(110936),eJ=e.i(940141);function eY(e){return(0,eJ.GenIcon)({tag:"svg",attr:{version:"1.1",viewBox:"0 0 17 17"},child:[{tag:"g",attr:{},child:[]},{tag:"path",attr:{d:"M16 3v2h-15v-2h15zM1 10h15v-2h-15v2zM1 15h15v-2h-15v2z"},child:[]}]})(e)}var e$=e.i(473665),eZ=e.i(414873),e0=e.i(776552),e1=e.i(39210),e5=e.i(866796),e2=e.i(234251),e4=e.i(769120),e3=e.i(313995),e6=e.i(630253),e8=e.i(227581),e9=e.i(511458),e7=e.i(332963),te=e.i(81771),tt=e.i(620387),tr=e.i(210557),tn=e.i(667239),ta=e.i(237828),to=e.i(229041),ti=e.i(435522),tl=e.i(576391),ts=e.i(869799),tc=e.i(63153),td=e.i(984828),tu=e.i(570577),tp=e.i(428429),th=e.i(794298),tf=e.i(88292),tg=e.i(201213),tm=e.i(454624);let tx=(0,tm.default)((0,m.jsx)("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"}),"School");var ty=e.i(113607),tb=e.i(768238),tv=e.i(501859),tw=e.i(550719),tj=e.i(305474);let tS=e=>{let{onManageAccount:t}=e,r=(0,tu.default)(e=>e.user),n=(0,tu.default)(e=>e.isSubscriptionActiveOrPastDue),a="past_due"===r.subscriptionStatus;return r.subscriptionStatus,(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(e1.Toolbar,{variant:"dense"}),(0,m.jsx)(ty.Card,{sx:{width:"100%",backgroundColor:"background.paper",mb:3,borderRadius:2,overflow:"hidden",border:e=>
1"1px solid ".concat((0,tn.alpha)(e.palette.primary.main,.2))},children:(0,m.jsxs)(tb.CardContent,{sx:{paddingY:2,pb:2,background:e=>"linear-gradient(135deg, ".concat((0,tn.alpha)(e.palette.primary.dark,.25)," 0%, ").concat(e.palette.background.paper," 50%)"),":last-child":{paddingBottom:2}},children:[(0,m.jsxs)(e0.Box,{sx:{display:"flex",flexDirection:{xs:"row",lg:"column"},justifyContent:"flex-start",gap:2,alignItems:{xs:"center",lg:"flex-start"},mb:2},children:[(0,m.jsx)(e0.Box,{sx:{height:{xs:32,lg:56}},children:(0,m.jsx)("img",{src:(0,tj.cdnUrl)("/img/pfLogoWhite.png"),alt:"site logo",style:{height:"100%",width:"auto"}})}),r.email&&(0,m.jsxs)(e0.Box,{sx:{display:"flex",flexDirection:"row",gap:1.5,justifyContent:"center",alignItems:"center",py:1.5,px:2,borderRadius:"12px",width:"100%",color:e=>e.palette.grey[300],backgroundColor:{xs:"transparent",lg:(0,tn.alpha)("#000",.2)},borderLeft:e=>"3px solid ".concat(e.palette.primary.main),border:e=>({xs:"none",lg:"1px solid ".concat((0,tn.alpha)(e.palette.divider,.12))}),transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:{lg:(0,tn.alph
1a)("#000",.3)},borderColor:{lg:(0,tn.alpha)("#fff",.2)}}},children:[(0,m.jsx)(tv.RiUser3Fill,{size:20}),(0,m.jsx)(e5.Typography,{component:"span",align:"center",sx:{fontSize:{xs:14,lg:15},fontWeight:500,letterSpacing:"0.01em"},children:r.email})]})]}),n()?(0,m.jsx)(m.Fragment,{children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",flexDirection:"row",gap:1.5,justifyContent:"center",color:"#fff",alignItems:"center",py:1.5,px:2,borderRadius:"12px",border:e=>"1px solid ".concat(a?e.palette.error.dark:(0,tn.alpha)(e.palette.primary.main,.5)),background:a?e=>"linear-gradient(135deg, ".concat(e.palette.error.main," 0%, ").concat(e.palette.error.dark," 100%)"):"linear-gradient(135deg, rgb(77, 20, 134) 0%, rgb(87, 14, 109) 50%, rgb(104, 9, 145) 100%)",boxShadow:a?e=>"0 4px 14px ".concat((0,tn.alpha)(e.palette.error.main,.4)):"0 4px 14px ".concat((0,tn.alpha)("rgb(104, 9, 145)",.4))},children:[(0,m.jsx)(e5.Typography,{component:"span",align:"center",sx:{fontSize:{xs:13,lg:15},fontWeight:700,letterSpacing:"0.5px"},children:a?"SUBSCRIPTION PAST DUE":"PREMIUM MEMBER"}),a?(0,m.jsx)(tg.default,{}):(0,m.jsx)(th.default,{})]})}):(0,m.jsxs)(e2.Button,{href:"/pricing",fullWidth:!0,sx:{display:"flex",flexDirection:"row",gap:1.5,justifyContent:"center",color:"#fff",alignItems:"center",py:1.5,borderRadius:"12px",border:"none",background:"linear-gradient(135deg, rgb(77, 20, 134) 0%, rgb(87, 14, 109) 50%, rgb(104, 9, 145) 100%)",boxShadow:"0 4px 14px ".concat((0,tn.alph
1a)("rgb(104, 9, 145)",.4)),transition:"all 0.3s cubic-bezier(0.4, 0, 0.2, 1)","&:hover":{background:"linear-gradient(135deg, rgb(94, 26, 162) 0%, rgb(111, 19, 139) 50%, rgb(139, 66, 173) 100%)",boxShadow:"0 6px 20px ".concat((0,tn.alpha)("rgb(104, 9, 145)",.6)),transform:"translateY(-2px)"}},children:[(0,m.jsx)(e5.Typography,{component:"span",align:"center",sx:{fontSize:{xs:15,lg:16},fontWeight:700,letterSpacing:"0.5px"},children:"GET PREMIUM"}),(0,m.jsx)(th.default,{sx:{fontSize:20}})]}),r.email&&(0,m.jsxs)(e5.Typography,{component:"span",sx:{fontSize:13,fontWeight:600,mt:1.5,color:e=>e.palette.grey[400],display:"flex",flexDirection:"row",cursor:"pointer",alignItems:"center",justifyContent:"flex-end",transition:"all 0.2s ease-in-out","&:hover":{color:e=>e.palette.primary.light}},onClick:t,children:["Manage Account ",(0,m.jsx)(tw.HiArrowCircleRight,{size:18,style:{marginLeft:6}})]})]})})]})};var tk=e.i(563745);let tC=[{href:"https://x.com/propfinderapp",icon:(0,m.jsx)(tv.RiTwitterXFill,{}),label:"Twitter"},{href:"https://www.youtube.com/@Propfinderapp",icon:(0,m.jsx)(eG.FaYoutube,{}),label:"YouTube"},{href:"https://www.instagram.com/propfinderapp/",icon:(0,m.jsx)(eG.FaInstagram,{}),label:"Instagram"},{href:"https://www.tiktok.com/@propfinderapp",icon:(0,m.jsx)(eG.FaTiktok,{}),label:"TikTok"}],tM=()=>(0,m.jsx)(tk.Stack,{direction:"row",spacing:2,divider:(0,m.jsx)(e3.Divider,{orientation:"vertical",flexItem:!0,sx:{backgroundColor:"rgba(255, 255, 255, 0.1)"}}),sx:{justifyContent:"space-evenly",alignItems:"center",py:2,px:2,mt:"auto",borderTop:"1px solid rgba(255, 255, 255, 0.08)",backgroundColor:"rgba(18, 18, 18, 0.5)"},children:tC.map(e=>{let{href:t,icon:r,label:n}=e;return(0,m.jsx)(e4.IconButton,{size:"large",href:t,target:"_blank",rel:"noopener noreferrer","aria-label":n,sx:{color:"grey.400",transition:"all 0.2s ease-in-out","&:hover":{color:"primary.light",transform:"translateY(-2px)",backgroundColor:"rgba(155, 98, 182, 0.1)"}},children:r},t)})});var tI=e.i(377426),t_=e.i(600574),tO=e.i(341543),tT=e.i(212388);let tA=x.default.lazy(()=>e.A(490746)),tE=x.default.lazy(()=>e.A(119482)),tz=x.default.lazy(()=>e.A(759114)),tP=x.default.lazy(()=>e.A(942337)),tB=()=>(0,m.jsx)(e0.Box,{sx:{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(0, 0, 0, 0.5)",zIndex:9999},children:(0,m.jsx)(ta.CircularProgress,{color:"primary"})}),tW=e=>{var t,r;let n,a,o,{position:i="fixed"}=e,l=(0,tr.useTheme)(),s=(0,tu.default)(e=>e.user),c=(0,tu.default)(e=>e.isSubscriptionActiveOrPastDue),d=(0,eQ.useAuth)(),u=(n=(0,eq.useRouter)(),a=(0,x.useCallback)(e=>{window.dispatchEvent(new Event("nav:start")),n.push(e)},[n]),{...n,push:a}),p=(0,tp.default)(e=>e.league),h=(0,tp.default)(e=>e.setShowSavedBets),f=(0,tp.default)(e=>e.showSavedBets),{activeSlugs:g}=(0,tT.useActiveLeagues)(),y=g.filter(e=>"soccer"!==e),b=(0,eq.usePathname)(),{isMobile:w}=(0,eK.default)(),[j,S]=(0,x.useState)(!1),[k,C]=(0,x.useState)(!1),[M,I]=(0,x.useState)(!1),[_,O]=(0,x.useState)(!1),[T,A]=(0,x.useState)(null),[E,z]=(0,x.useState)(null),[P,B]=(0,x.useState)(p),W=()=>{window.open("https://blog.propfinder.app","_blank","noopener,noreferrer")};(0,x.useEffect)(()=>{null!=p&&P!==p&&B(p)},[p]),(0,x.useEffect)(()=>{A(null)},[b]);let R=e=>{A(e.currentTarget.id),z(e.currentTarget)},L=e=>{B(t=>t===e?null:e)},D=e=>{if(e.startsWith("http")){window.open(e,"_blank"),A(null);return}u.push(e),A(null)},F=async()=>{await (0,tO.manageSubscription)(s,tI.axiosInstance)},H=e=>{switch(e){case"Research":return(0,m.jsx)(e$.MdSearch,{size:18});case"Cheatsheets":return(0,m.jsx)(e$.MdGridOn,{size:18});case"Best Odds":case"Projections":case"XGBoost":return(0,m.jsx)(e$.MdTrendingUp,{size:18});case"Weather":return(0,m.jsx)(e$.MdCloud,{size:18});case"NRFI":return(0,m.jsx)(e$.MdSportsBaseball,{size:18});default:return null}};return(0,m.jsxs)(eZ.AppBar,{position:i,elevation:0,sx:{zIndex:e=>({xs:e.zIndex.drawer-1,lg:e.zIndex.drawer+1}),borderBottom:e=>
1"1px solid ".concat((0,tn.alpha)(e.palette.divider,.12)),backdropFilter:"blur(8px)",backgroundColor:(0,tn.alpha)(l.palette.background.paper,.95)},children:[(0,m.jsxs)(e1.Toolbar,{variant:"dense",disableGutters:!0,sx:{minHeight:w?28:48,pr:0},children:[(0,m.jsx)(e2.Button,{size:"large","aria-label":"menu",sx:{mr:"auto",padding:1,transition:"all 0.2s ease-in-out","&:hover":{transform:"scale(1.05)"}},href:"/home",children:(0,m.jsx)(eU.default,{src:(0,tj.cdnUrl)("/img/pfLogoWhite.png"),alt:"site logo",width:48,height:24,className:"w-12",style:{height:"auto"}})}),s.accessToken&&(0,m.jsxs)(e0.Box,{sx:{flexGrow:1,display:{xs:"none",md:"flex"},alignItems:"center",justifyContent:"center",gap:1},children:[y.map(e=>{let t=b.startsWith("/".concat(e.toLowerCase()));return(0,m.jsxs)(x.default.Fragment,{children:[(0,m.jsx)(e2.Button,{id:e,onClick:R,sx:{color:t?l.palette.primary.light:l.palette.grey[400],fontWeight:t?700:600,backgroundColor:t?(0,tn.alpha)(l.palette.primary.main,.1):"transparent",width:140,textTransform:"uppercase",fontSize:"13px",letterSpacing:"0.5px",transition:"all 0.2s ease-in-out",borderBottom:t?"2px solid ".concat(l.palette.primary.main):"2px solid transparent",borderRadius:0,"&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},startIcon:(0,m.jsx)("img",{src:(0,tj.cdnUrl)("/img/".concat(e.toLowerCase(),"Logo.png")),className:"h-6 w-auto",alt:"".concat(e," logo")}),endIcon:(0,m.jsx)(eG.FaChevronDown,{size:12}),children:e}),(0,m.jsxs)(e8.Menu,{sx:{mt:"34px"},anchorEl:E,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},open:T===e,onClose:()=>A(null),slotProps:{paper:{elevation:3,sx:{border:"1px solid ".concat((0,tn.alph
1a)(l.palette.divider,.12)),borderRadius:"8px",mt:1,overflow:"visible","&::before":{content:'""',display:"block",position:"absolute",top:0,left:"50%",width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) translateX(-50%) rotate(45deg)",zIndex:0,borderTop:"1px solid ".concat((0,tn.alpha)(l.palette.divider,.12)),borderLeft:"1px solid ".concat((0,tn.alpha)(l.palette.divider,.12))}}}},children:[["Research","Cheatsheets","Best Odds"].filter(t=>e!==t_.Leagues.CFB.toString().toLowerCase()||"Cheatsheets"!==t&&"Best Odds"!==t).filter(e=>"Best Odds"!==e||s.isAdmin).map((t,r)=>(0,m.jsx)(e9.MenuItem,{onClick:()=>D("Cheatsheets"===t?"/".concat(e.toLowerCase(),"/cheatsheets"):"Best Odds"===t?"/odds/".concat(e.toLowerCase()):"/".concat(e.toLowerCase())),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[H(t),(0,m.jsx)(e5.Typography,{sx:{fontWeight:500,fontSize:"14px"},children:t})]})},r)),"mlb"===e&&(0,m.jsx)(e9.MenuItem,{onClick:()=>D("/projections/".concat(e.toLowerCase())),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[H("Projections"),(0,m.jsx)(e5.Typography,{sx:{fontWeight:500,fontSize:"14px"},children:"Game Projections"})]})}),"mlb"===e&&(0,m.jsx)(e9.MenuItem,{onClick:()=>D("/weather"),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[H("Weather"),(0,m.jsx)(e5.Typography,{sx:{fontWeight:500,fontSize:"14px"},children:"Weather"})]})}),"mlb"===e&&(0,m.jsx)(e9.MenuItem,{onClick:()=>D("/nrfi"),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[H("NRFI"),(0,m.jsx)(e5.Typography,{sx:{fontWeight:500,fontSize:"14px"},children:"NRFI / YRFI"})]})}),"mlb"===e&&s.isAdmin&&(0,m.jsx)(e9.MenuItem,{onClick:()=>D("/xgboost"),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[H("XGBoost"),(0,m.jsx)(e5.Typography,{sx:{fontWeight:500,fontSize:"14px"},children:"XGBoost"})]})}),"cfb"===e&&[{label:"Games",href:"/cfb/games"},{label:"Power Ratings",href:"/cfb/power-ratings"}].map(e=>(0,m.jsx)(e9.MenuItem,{onClick:()=>D(e.href),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[H(e.label),(0,m.jsx)(e5.Typography,{sx:{fontWeight:500,fontSize:"14px"},children:e.label})]})},e.href)),"nhl"===e&&[{label:"Games",href:"/nhl/games",icon:(0,m.jsx)(e$.MdSportsHockey,{size:18})},{label:"Power Ratings",href:"/nhl/power-ratings",icon:(0,m.jsx)(e$.MdSportsHockey,{size:18})}].map(e=>{var t;return(0,m.jsx)(e9.MenuItem,{onClick:()=>D(e.href),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[null!=(t=e.icon)?t:H(e.label),(0,m.jsx)(e5.Typography,{sx:{fontWeight:500,fontSize:"14px"},children:e.label})]})},e.href)}),"nfl"===e&&[{label:"Games",href:"/nfl/games"},{label:"Power Ratings",href:"/nfl/power-ratings"},{label:"QB Rankings",href:"/nfl/qb-rankings"},{label:"Win Totals + SOS",href:"/nfl/win-totals"}
1,{label:"Home Field Advantage",href:"/nfl/home-field-advantage"},{label:"Compare",href:"/nfl/compare"},{label:"Weather",href:"/nfl/weather"}].map(e=>(0,m.jsx)(e9.MenuItem,{onClick:()=>D(e.href),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[H(e.label),(0,m.jsx)(e5.Typography,{sx:{fontWeight:500,fontSize:"14px"},children:e.label})]})},e.href))]})]},e)}),s.isAffiliate&&g.includes("soccer")&&(o=b.startsWith("/soccer")||"/odds/soccer"===b,(0,m.jsxs)(x.default.Fragment,{children:[(0,m.jsx)(e2.Button,{id:"soccer",onClick:R,sx:{color:o?l.palette.primary.light:l.palette.grey[400],fontWeight:o?700:600,backgroundColor:o?(0,tn.alpha)(l.palette.primary.main,.1):"transparent",width:140,textTransform:"uppercase",fontSize:"13px",letterSpacing:"0.5px",transition:"all 0.2s ease-in-out",borderBottom:o?"2px solid ".concat(l.palette.primary.main):"2px solid transparent",borderRadius:0,"&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},startIcon:(0,m.jsx)(e$.MdSportsSoccer,{size:22}),endIcon:(0,m.jsx)(eG.FaChevronDown,{size:12}),children:"Soccer"}),(0,m.jsx)(e8.Menu,{sx:{mt:"34px"},anchorEl:E,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},open:"soccer"===T,onClose:()=>A(null),slotProps:{paper:{elevation:3,sx:{border:"1px solid ".concat((0,tn.alph
1a)(l.palette.divider,.12)),borderRadius:"8px",mt:1,overflow:"visible","&::before":{content:'""',display:"block",position:"absolute",top:0,left:"50%",width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) translateX(-50%) rotate(45deg)",zIndex:0,borderTop:"1px solid ".concat((0,tn.alpha)(l.palette.divider,.12)),borderLeft:"1px solid ".concat((0,tn.alpha)(l.palette.divider,.12))}}}},children:[{label:"Matches",href:"/soccer/matches"},{label:"Trends",href:"/soccer/trends"},{label:"Props",href:"/soccer/props"},{label:"Compare",href:"/soccer/compare"},{label:"Goalscorers",href:"/soccer/goalscorers"},{label:"Best Odds",href:"/odds/soccer"}].map(e=>(0,m.jsx)(e9.MenuItem,{onClick:()=>D(e.href),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[H(e.label),(0,m.jsx)(e5.Typography,{sx:{fontWeight:500,fontSize:"14px"},children:e.label})]})},e.label))})]})),s.accessToken&&s.isAdmin&&["[email protected]","[email protected]","[email protected]","[email protected]"].includes(null!=(t=s.email)?t:"")&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(e2.Button,{id:"admin",onClick:R,sx:{color:"white",width:140,textTransform:"uppercase",fontWeight:600,fontSize:"13px",letterSpacing:"0.5px",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},endIcon:(0,m.jsx)(eG.FaChevronDown,{size:12}),children:"Admin"}),(0,m.jsx)(e8.Menu,{sx:{mt:"34px"},anchorEl:E,anchorOrigin:{vertical:"top",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},open:"admin"===T,onClose:()=>A(null),slotProps:{paper:{elevation:3,sx:{border:"1px solid ".concat((0,tn.alph
1a)(l.palette.divider,.12)),borderRadius:"8px",mt:1}}},children:[{label:"Users",path:"/status"},{label:"Popups",path:"/popups"},{label:"Health",path:"/health"},{label:"Settings",path:"/admin"},{label:"MLB Pitchers",path:"/admin/mlb-pitchers"},{label:"Background Jobs",path:"https://hangfire.propfinder.app/hangfire"},{label:"Odds Jobs",path:"https://hangfire-odds.propfinder.app/hangfire"},{label:"Logs",path:"http://152.42.155.195:8080/"}].map(e=>{let{label:t,path:r}=e;return(0,m.jsx)(e9.MenuItem,{onClick:()=>D(r),sx:{minWidth:160,py:1.5,px:2,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsx)(e5.Typography,{sx:{textAlign:"center",fontWeight:500,fontSize:"14px"},children:t})},r)})})]})]}),(()=>{if(!s.accessToken)return null;let e=(0,m.jsx)(th.default,{});return c()?"active"===s.subscriptionStatus?null:(0,m.jsx)(e2.Button,{sx:{mr:2,background:l.palette.error.main,textTransform:"none",fontWeight:600,px:2,boxShadow:"0 2px 8px ".concat((0,tn.alph
1a)(l.palette.error.main,.3)),transition:"all 0.2s ease-in-out","&:hover":{background:l.palette.error.dark,boxShadow:"0 4px 12px ".concat((0,tn.alpha)(l.palette.error.main,.5)),transform:"translateY(-1px)"}},type:"button",size:"small",variant:"contained",endIcon:(0,m.jsx)(tg.default,{}),onClick:F,children:"Subscription Past Due"}):(0,m.jsx)(e2.Button,{sx:{mr:2,background:"linear-gradient(135deg, rgb(94, 26, 162) 0%, rgb(111, 19, 139) 50%, rgb(104, 9, 145) 100%)",color:"#fff","& .MuiButton-endIcon":{color:"#fff"},textTransform:"none",fontWeight:600,px:2,boxShadow:"0 2px 8px ".concat((0,tn.alpha)("rgb(104, 9, 145)",.3)),transition:"all 0.2s ease-in-out","&:hover":{background:"linear-gradient(135deg, rgb(139, 66, 173) 0%, rgb(139, 66, 173) 50%, rgb(139, 66, 173) 100%)",boxShadow:"0 4px 12px ".concat((0,tn.alpha)("rgb(104, 9, 145)",.5)),transform:"translateY(-1px)"}},type:"button",component:"a",href:"/pricing",size:"small",variant:"contained",endIcon:e,children:"Get Premium"})})(),!w&&s.accessToken&&(0,m.jsx)(e2.Button,{id:"blog",onClick:W,sx:{color:"white",width:100,textTransform:"none",fontWeight:600,fontSize:"13px",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},startIcon:(0,m.jsx)(e$.MdArticle,{size:20}),children:"Blog"}),!w&&s.accessToken&&(0,m.jsx)(e2.Button,{id:"guides",onClick:()=>u.push("/tutorials"),sx:{color:"white",width:120,textTransform:"none",fontWeight:600,fontSize:"13px",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},startIcon:(0,m.jsx)(tx,{}),children:"Tutorials"}),!w&&s.accessToken&&(0,m.jsx)(ts.default,{title:"Get the iOS app",children:(0,m.jsx)(e4.IconButton,{id:"ios-app",href:eX.IOS_APP_URL,target:"_blank",rel:"noopener noreferrer","aria-label":"Get the iOS app",sx:{color:"white",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1),color:l.palette.primary.light}},children:(0,m.jsx)(eG.FaApple,{size:18})})}),!w&&!s.accessToken&&d.authReady&&(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1,mr:1},children:[(0,m.jsx)(e2.Button,{href:"/login",size:"small",variant:"text",sx:{color:"white",textTransform:"none",fontWeight:600,fontSize:"13px",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)("#fff",.08)}},children:"Log In"}),(0,m.jsx)(e2.Button,{href:"/pricing",size:"small",variant:"contained",sx:{color:"white",textTransform:"none",fontWeight:700,fontSize:"13px",px:2,boxShadow:"0 2px 8px rgba(182, 168, 98, 0.4)",transition:"all 0.2s ease-in-out","&:hover":{boxShadow:"0 4px 14px rgba(182, 168, 98, 0.6)",transform:"translateY(-1px)"}},children:"Sign Up"})]}),w&&!s.accessToken&&d.authReady&&(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:.5},children:[(0,m.jsx)(e2.Button,{href:"/login",size:"small",variant:"text",sx:{color:"white",textTransform:"none",fontWeight:600,fontSize:"12px",minWidth:0,px:1},children:"Log In"}),(0,m.jsx)(e2.Button,{href:"/pricing",size:"small",variant:"contained",sx:{color:"white",textTransform:"none",fontWeight:700,fontSize:"12px",px:1.5,minWidth:0},children:"Sign Up"})]}),(0,m.jsx)(e3.Divider,{orientation:"vertical",flexItem:!0,sx:{mx:.5,opacity:.2,display:{xs:"block",md:"none"}}}),(0,m.jsx)(tf.default,{}),(0,m.jsx)(e4.IconButton,{size:"large",color:"inherit","aria-label":"reload",sx:{display:{xs:"flex",md:"none"},padding:1,transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light,transform:"rotate(90deg)"}},onClick:()=>window.location.reload(),children:(0,m.jsx)(eV.IoIosRefresh,{size:20})}),(0,m.jsx)(e4.IconButton,{size:"large",color:"inherit","aria-label":"menu",sx:{display:{xs:"flex",md:"none"},padding:1,transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light}},onClick:()=>S(!j),children:(0,m.jsx)(eY,{})}),!w&&s.accessToken&&(0,m.jsx)(e4.IconButton,{size:"large","aria-label":"account of current user","aria-controls":"menu-appbar","aria-haspopup":"true",color:"inherit",sx:{p:1,mr:1,transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light,transform:"scale(1.1)"}},onClick:()=>C(!k),children:(0,m.jsx)(td.FaCircleUser,{})})]}),(0,m.jsx)(e6.Drawer,{open:k,onClose:()=>C(!1),anchor:"right",sx:{"& .MuiDrawer-paper":{backgroundImage:"none"}},children:(0,m.jsxs)(e7.Paper,{elevation:0,sx:{width:350,height:"100%",background:"background.paper",display:"flex",flexDirection:"column",backgroundImage:"none"},role:"presentation",children:[(0,m.jsx)(tS,{onManageAccount:()=>O(!0)}),(0,m.jsx)(e0.Box,{sx:{flex:1}}),(0,m.jsxs)(e0.Box,{sx:{flexShrink:0},children:[(0,m.jsxs)(te.List,{sx:{display:"flex",flexDirection:"column"},children:[(0,m.jsxs)(ti.default,{onClick:()=>{I(!0),C(!1)},sx:{paddingX:4,py:2,color:e=>e.palette.grey[400],transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light,backgroundColor:(0,tn.alph
1a)(l.palette.primary.main,.05)}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:40},children:(0,m.jsx)(eV.IoMdSettings,{size:22})}),(0,m.jsx)(tc.default,{primary:"Settings",slotProps:{primary:{sx:{fontWeight:500,fontSize:"15px"}}}})]}),(0,m.jsxs)(ti.default,{href:"https://discord.gg/propfinder",target:"_blank",sx:{paddingX:4,py:2,color:e=>e.palette.grey[400],transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light,backgroundColor:(0,tn.alpha)(l.palette.primary.main,.05)}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:40},children:(0,m.jsx)(eG.FaDiscord,{size:22})}),(0,m.jsx)(tc.default,{primary:"Join PropFinder Discord",slotProps:{primary:{sx:{fontWeight:500,fontSize:"15px"}}}})]}),(0,m.jsxs)(ti.default,{onClick:()=>{d.logOut(),C(!1)},sx:{paddingX:4,py:2,color:e=>e.palette.grey[400],transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.error.light,backgroundColor:(0,tn.alpha)(l.palette.error.main,.05)}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:40},children:(0,m.jsx)(eV.IoIosLogOut,{size:22})}),(0,m.jsx)(tc.default,{primary:"Log out",slotProps:{primary:{sx:{fontWeight:500,fontSize:"15px"}}}})]})]}),(0,m.jsx)(tM,{})]})]})}),(0,m.jsx)(e6.Drawer,{open:j,onClose:()=>S(!1),anchor:"right",sx:{zIndex:e=>e.zIndex.drawer-2,"& .MuiDrawer-paper":{backgroundImage:"none"}},children:(0,m.jsxs)(e7.Paper,{elevation:0,sx:{width:350,height:"100%",display:"flex",flexDirection:"column",backgroundImage:"none",overflow:"hidden"},role:"presentation",children:[(0,m.jsx)(e0.Box,{sx:{flexShrink:0},children:(0,m.jsx)(tS,{onManageAccount:()=>O(!0)})}),(0,m.jsxs)(e0.Box,{sx:{flex:1,overflowY:"auto",overflowX:"hidden"},onClick:e=>{e.target===e.currentTarget&&S(!1)},children:[y.map(e=>{let t,r,n,a,o,i,c,d;return(0,m.jsxs)(x.default.Fragment,{children:[(0,m.jsx)(te.List,{disablePadding:!0,subheader:(0,m.jsxs)(to.default,{component:"div","data-testid":"nav-league-group","data-league":e.toLowerCase(),"aria-expanded":P===e.toUpperCase(),sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",py:1.5,fontWeight:700,fontSize:"13px",letterSpacing:"0.5px",backgroundColor:(0,tn.alpha)(l.palette.background.paper,.8),transition:"all 0.2s ease-in-out",cursor:"pointer","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.05)}},onClick:t=>{t.stopPropagation(),L(e.toUpperCase())},children:[(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,m.jsx)("img",{src:(0,tj.cdnUrl)("/img/".concat(e.toLowerCase(),"Logo.png")),className:"h-5 w-auto",alt:"".concat(e," logo")}),e.toUpperCase()]}),P===e.toUpperCase()?(0,m.jsx)(e$.MdExpandLess,{size:30}):(0,m.jsx)(e$.MdExpandMore,{size:30})]}),children:(0,m.jsxs)(tt.Collapse,{in:(null==P?void 0:P.toUpperCase())===e.toUpperCase(),timeout:"auto",unmountOnExit:!0,children:[["Research","Cheatsheets","Best Odds"].filter(t=>e!==t_.Leagues.CFB.toString().toLowerCase()||"Cheatsheets"!==t&&"Best Odds"!==t).filter(e=>"Best Odds"!==e||s.isAdmin).map(t=>{let r="Cheatsheets"===t?"/".concat(e.toLowerCase(),"/cheatsheets"):"Best Odds"===t?"/odds/".concat(e.toLowerCase()):"/".concat(e.toLowerCase()),n=b===r;return(0,m.jsx)(eN.default,{href:r,style:{textDecoration:"none",color:"inherit"},children:(0,m.jsxs)(ti.default,{selected:n,onClick:()=>S(!1),sx:{pl:4,py:1.5,transition:"all 0.2s ease-in-out","&.Mui-selected":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.15),"&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.2)}}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:32,color:"inherit"},children:H(t)}),(0,m.jsx)(tc.default,{primary:t,slotProps:{primary:{sx:{fontWeight:n?600:500,fontSize:"14px"}}}})]})},t)}),"mlb"===e&&(r=b===(t="/projections/".concat(e.toLowerCase())),(0,m.jsx)(eN.default,{href:t,style:{textDecoration:"none",color:"inherit"},children:(0,m.jsxs)(ti.default,{selected:r,onClick:()=>S(!1),sx:{pl:4,py:1.5,transition:"all 0.2s ease-in-out","&.Mui-selected":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.15),"&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.2)}}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:32,color:"inherit"},children:H("Projections")}),(0,m.jsx)(tc.default,{primary:"Game Projections",slotProps:{primary:{sx:{fontWeight:r?600:500,fontSize:"14px"}}}})]})})),"mlb"===e&&(a=b===(n="/weather"),(0,m.jsx)(eN.default,{href:n,style:{textDecoration:"none",color:"inherit"},children:(0,m.jsxs)(ti.default,{selected:a,onClick:()=>S(!1),sx:{pl:4,py:1.5,transition:"all 0.2s ease-in-out","&.Mui-selected":{backgroundColor:(0,tn.alph
1a)(l.palette.primary.main,.15),"&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.2)}}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:32,color:"inherit"},children:H("Weather")}),(0,m.jsx)(tc.default,{primary:"Weather",slotProps:{primary:{sx:{fontWeight:a?600:500,fontSize:"14px"}}}})]})})),"mlb"===e&&(i=b===(o="/nrfi"),(0,m.jsx)(eN.default,{href:o,style:{textDecoration:"none",color:"inherit"},children:(0,m.jsxs)(ti.default,{selected:i,onClick:()=>S(!1),sx:{pl:4,py:1.5,transition:"all 0.2s ease-in-out","&.Mui-selected":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.15),"&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.2)}}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:32,color:"inherit"},children:H("NRFI")}),(0,m.jsx)(tc.default,{primary:"NRFI / YRFI",slotProps:{primary:{sx:{fontWeight:i?600:500,fontSize:"14px"}}}})]})})),"mlb"===e&&s.isAdmin&&(d=b===(c="/xgboost"),(0,m.jsx)(eN.default,{href:c,style:{textDecoration:"none",color:"inherit"},children:(0,m.jsxs)(ti.default,{selected:d,onClick:()=>S(!1),sx:{pl:4,py:1.5,transition:"all 0.2s ease-in-out","&.Mui-selected":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.15),"&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.2)}}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:32,color:"inherit"},children:H("XGBoost")}),(0,m.jsx)(tc.default,{primary:"XGBoost",slotProps:{primary:{sx:{fontWeight:d?600:500,fontSize:"14px"}}}})]})})),("cfb"===e?[{label:"Games",href:"/cfb/games"},{label:"Power Ratings",href:"/cfb/power-ratings"}]:"nfl"===e?[{label:"Games",href:"/nfl/games"},{label:"Power Ratings",href:"/nfl/power-ratings"},{label:"QB Rankings",href:"/nfl/qb-rankings"},{label:"Win Totals + SOS",href:"/nfl/win-totals"},{label:"Home Field Advantage",href:"/nfl/home-field-advantage"},{label:"Compare",href:"/nfl/compare"},{label:"Weather",href:"/nfl/weather"}]:"nhl"===e?[{label:"Games",href:"/nhl/games",icon:(0,m.jsx)(e$.MdSportsHockey,{size:18})},{label:"Power Ratings",href:"/nhl/power-ratings",icon:(0,m.jsx)(e$.MdSportsHockey,{size:18})}]:[]).map(e=>{var t;let r=b===e.href;return(0,m.jsx)(eN.default,{href:e.href,style:{textDecoration:"none",color:"inherit"},children:(0,m.jsxs)(ti.default,{selected:r,onClick:()=>S(!1),sx:{pl:4,py:1.5,transition:"all 0.2s ease-in-out","&.Mui-selected":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.15),"&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.2)}}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:32,color:"inherit"},children:null!=(t=e.icon)?t:H(e.label)}),(0,m.jsx)(tc.default,{primary:e.label,slotProps:{primary:{sx:{fontWeight:r?600:500,fontSize:"14px"}}}})]})},e.href)})]})}),(0,m.jsx)(e3.Divider,{sx:{opacity:.6}})]},e)}),s.isAffiliate&&g.includes("soccer")&&(0,m.jsxs)(x.default.Fragment,{children:[(0,m.jsx)(te.List,{disablePadding:!0,subheader:(0,m.jsxs)(to.default,{component:"div",sx:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",py:1.5,fontWeight:700,fontSize:"13px",letterSpacing:"0.5px",backgroundColor:(0,tn.alpha)(l.palette.background.paper,.8),transition:"all 0.2s ease-in-out",cursor:"pointer","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.05)}},onClick:e=>{e.stopPropagation(),L("SOCCER")},children:[(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,m.jsx)(e$.MdSportsSoccer,{size:20}),"SOCCER"]}),"SOCCER"===P?(0,m.jsx)(e$.MdExpandLess,{size:30}):(0,m.jsx)(e$.MdExpandMore,{size:30})]}),children:(0,m.jsx)(tt.Collapse,{in:(null==P?void 0:P.toUpperCase())==="SOCCER",timeout:"auto",unmountOnExit:!0,children:[{label:"Matches",href:"/soccer/matches"},{label:"Trends",href:"/soccer/trends"},{label:"Props",href:"/soccer/props"},{label:"Compare",href:"/soccer/compare"},{label:"Goalscorers",href:"/soccer/goalscorers"}].map(e=>{let t=b===e.href;return(0,m.jsx)(eN.default,{href:e.href,style:{textDecoration:"none",color:"inherit"},children:(0,m.jsxs)(ti.default,{selected:t,onClick:()=>S(!1),sx:{pl:4,py:1.5,transition:"all 0.2s ease-in-out","&.Mui-selected":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.15),"&:hover":{backgroundColor:(0,tn.alph
1a)(l.palette.primary.main,.2)}}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:32,color:"inherit"},children:H(e.label)}),(0,m.jsx)(tc.default,{primary:e.label,slotProps:{primary:{sx:{fontWeight:t?600:500,fontSize:"14px"}}}})]})},e.label)})})}),(0,m.jsx)(e3.Divider,{sx:{opacity:.6}})]})]}),s.accessToken&&s.isAdmin&&["[email protected]","[email protected]","[email protected]","[email protected]"].includes(null!=(r=s.email)?r:"")&&(0,m.jsxs)(te.List,{disablePadding:!0,children:[(0,m.jsxs)(ti.default,{onClick:e=>{e.stopPropagation(),L("ADMIN")},sx:{py:1.5,color:e=>e.palette.grey[400],transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light,backgroundColor:(0,tn.alpha)(l.palette.primary.main,.05)}},children:[(0,m.jsx)(tc.default,{primary:"Admin",slotProps:{primary:{sx:{fontWeight:500,fontSize:"14px"}}}}),"ADMIN"===P?(0,m.jsx)(e$.MdExpandLess,{size:24}):(0,m.jsx)(e$.MdExpandMore,{size:24})]}),(0,m.jsx)(tt.Collapse,{in:"ADMIN"===P,timeout:"auto",unmountOnExit:!0,children:[{label:"Users",path:"/status"},{label:"Popups",path:"/popups"},{label:"Health",path:"/health"},{label:"Settings",path:"/admin"},{label:"MLB Pitchers",path:"/admin/mlb-pitchers"},{label:"Background Jobs",path:"https://hangfire.propfinder.app/hangfire"},{label:"Odds Jobs",path:"https://hangfire-odds.propfinder.app/hangfire"},{label:"Logs",path:"http://152.42.155.195:8080/"}].map(e=>{let{label:t,path:r}=e;return(0,m.jsx)(ti.default,{onClick:()=>{r.startsWith("http")?window.open(r,"_blank"):u.push(r),S(!1)},sx:{pl:4,py:1.5,transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:(0,tn.alpha)(l.palette.primary.main,.1)}},children:(0,m.jsx)(tc.default,{primary:t,slotProps:{primary:{sx:{color:"grey.400",fontWeight:500,fontSize:"14px"}}}})},r)})})]}),(0,m.jsxs)(e0.Box,{sx:{flexShrink:0},children:[(0,m.jsxs)(te.List,{sx:{display:"flex",flexDirection:"column"},children:[s.accessToken&&(0,m.jsxs)(ti.default,{onClick:()=>{W(),S(!1)},sx:{py:1.5,color:e=>e.palette.grey[400],transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light,backgroundColor:(0,tn.alpha)(l.palette.primary.main,.05)}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:36},children:(0,m.jsx)(e$.MdArticle,{size:20})}),(0,m.jsx)(tc.default,{primary:"Blog",slotProps:{primary:{sx:{fontWeight:500,fontSize:"14px"}}}})]}),s.accessToken&&(0,m.jsxs)(ti.default,{onClick:()=>{u.push("/tutorials"),S(!1)},sx:{py:1.5,color:e=>e.palette.grey[400],transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light,backgroundColor:(0,tn.alpha)(l.palette.primary.main,.05)}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:36},children:(0,m.jsx)(tx,{sx:{fontSize:20}})}),(0,m.jsx)(tc.default,{primary:"Tutorials",slotProps:{primary:{sx:{fontWeight:500,fontSize:"14px"}}}})]}),(0,m.jsxs)(ti.default,{component:"a",href:eX.IOS_APP_URL,target:"_blank",rel:"noopener noreferrer",onClick:()=>S(!1),sx:{py:1.5,color:e=>e.palette.grey[400],transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light,backgroundColor:(0,tn.alpha)(l.palette.primary.main,.05)}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:36},children:(0,m.jsx)(eG.FaApple,{size:20})}),(0,m.jsx)(tc.default,{primary:"iOS App",slotProps:{primary:{sx:{fontWeight:500,fontSize:"14px"}}}})]}),s.accessToken&&(0,m.jsxs)(ti.default,{onClick:()=>{I(!0),S(!1)},sx:{py:1.5,color:e=>e.palette.grey[400],transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.primary.light,backgroundColor:(0,tn.alpha)(l.palette.primary.main,.05)}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:36},children:(0,m.jsx)(eV.IoMdSettings,{size:20})}),(0,m.jsx)(tc.default,{primary:"Settings",slotProps:{primary:{sx:{fontWeight:500,fontSize:"14px"}}}})]}),s.accessToken&&(0,m.jsxs)(ti.default,{onClick:()=>{d.logOut(),S(!1)},sx:{py:1.5,color:e=>e.palette.grey[400],transition:"all 0.2s ease-in-out","&:hover":{color:l.palette.error.light,backgroundColor:(0,tn.alpha)(l.palette.error.main,.05)}},children:[(0,m.jsx)(tl.default,{sx:{minWidth:36},children:(0,m.jsx)(eV.IoIosLogOut,{size:20})}),(0,m.jsx)(tc.default,{primary:"Log Out",slotProps:{primary:{sx:{fontWeight:500,fontSize:"14px"}}}})]})]}),(0,m.jsx)(tM,{})]})]})}),M&&(0,m.jsx)(x.Suspense,{fallback:(0,m.jsx)(tB,{}),children:(0,m.jsx)(tA,{open:M,setOpen:I})}),_&&(0,m.jsx)(x.Suspense,{fallback:(0,m.jsx)(tB,{}),children:(0,m.jsx)(tP,{open:_,onClose:()=>O(!1)})}),f&&(0,m.jsx)(x.Suspense,{fallback:(0,m.jsx)(tB,{}),children:(0,m.jsx)(tE,{visible:f,setVisible:h})}),(0,m.jsx)(x.Suspense,{fallback:null,children:(0,m.jsx)(tz,{})})]})},tR=new Set(["/","/home","/landing-concept"]);function tL(){let e=(0,eq.usePathname)();return tR.has(e)?null:(0,m.jsx)(tW,{position:"fixed"})}function tD(){return null}e.i(430124).LicenseInfo.setLicenseKey("d6f1fdfb1b57f58c741dc225a73465b1Tz0xMjk2OTAsRT0xODEzNTM1OTk5MDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI=");var tF=e.i(564924),tH=e.i(819646);function tQ(){let e=(0,eq.usePathname)(),[t,r]=(0,x.useState)(!1),[n,a]=(0,x.useState)(e);return((0,x.useEffect)(()=>{e!==n&&(r(!1),a(e))},[e,n]),(0,x.useEffect)(()=>{let e=()=>r(!0);return window.addEventListener("nav:start",e),()=>window.removeEventListener("nav:start",e)},[]),t)?(0,m.jsx)(tH.default,{sx:{position:"fixed",top:0,left:0,right:0,zIndex:9999},children:(0,m.jsx)(tF.default,{})}):null}function tq(){let e=(0,tp.default)(e=>e.zoomScale),t=(0,eq.usePathname)();return(0,x.useEffect)(()=>{let t=document.querySelector('meta[name="viewport"]');t&&t.setAttribute("content","width=device-width, initial-scale=".concat(e,", maximum-scale=").concat(e,", user-scalable=no"))},[e,t]),null}var tU=e.i(316959),tN=e.i(950019);let tK=[2e3,4e3,8e3,16e3];function tG(){return!function(){let{user:e,authReady:t}=(0,eQ.useAuth)(),r=(0,tU.default)(e=>e.saved),n=(0,tU.default)(e=>e.serverSnapshot),a=(0,x.useRef)(!1),o=(0,x.useRef)(!1),i=(0,x.useRef)(!1),l=(0,x.useRef)(!1),[s,c]=(0,x.useState)(!1),d=(0,x.useCallback)(()=>
1{l.current=!0,c(!0)},[]),u=(0,x.useRef)(null),p=(0,x.useRef)(0),h=!!((null==e?void 0:e.accessToken)&&(null==e?void 0:e.id)&&e.id>0),f=h?String(e.id):null,g=(0,x.useRef)(null);(0,x.useEffect)(()=>{let e=g.current;g.current=f,e!==f&&null!==e&&1&&(a.current=!1,l.current=!1,c(!1),i.current=!1,p.current=0,u.current&&(clearTimeout(u.current),u.current=null),tU.default.getState().resetSyncedProps())},[f]),(0,x.useEffect)(()=>{if(!h||!t||a.current)return;let r=!1,n=async()=>{if(r)return;let t=await tN.savedPropsApi.getSavedPropsResult(e.accessToken);if(!r){if(!t.ok){var o,i;let e=null!=(i=tK[(o=p.current)<0?0:o])?i:6e4;p.current+=1,u.current=setTimeout(()=>{u.current=null,n()},e);return}tU.default.getState().hydrateFromServer(t.props),a.current=!0,p.current=0}};return(async()=>{await (0,Z.sleep)((0,Z.jitterDelayMs)()),r||await n()})(),()=>{r=!0,u.current&&(clearTimeout(u.current),u.current=null)}},[h,t,null==e?void 0:e.id,null==e?void 0:e.accessToken]),(0,x.useEffect)(()=>{if(!a.current||!h||!t||l.current)return;let r=async()=>{if(o.current){i.current=!0;return}o.current=!0;try{var t;let r,n,a=tU.default.getState(),o=a.saved,{addedProps:i,removedPropIds:l}=(t=a.serverSnapshot,r=new Set(t.map(e=>e.Id)),n=new Set(o.map(e=>e.Id)),{addedProps:o.filter(e=>!r.has(e.Id)),removedPropIds:t.filter(e=>!n.has(e.Id)).map(e=>e.Id)}),s=!0,c=!0;if(i.length>0){let t=await tN.savedPropsApi.bulkSaveProps(i,e.accessToken);!t.ok&&(s=!1,t.disabled&&d())}if(l.length>0){let t=await tN.savedPropsApi.bulkRemoveProps(l,e.accessToken);t.ok?t.failed>0&&0===t.removed&&(c=!1):(c=!1,t.disabled&&d())}s&&c&&(tU.default.getState().markServerSnapshot(o),tU.default.getState().ackSyncedState(o.map(e=>e.Id)))}finally{o.current=!1,i.current&&(i.current=!1,r())}};r()},[r,n,s,h,t,null==e?void 0:e.id,null==e?void 0:e.accessToken,d]),(0,x.useEffect)(()=>{if(!s||!h||!t)return;let e=!1,r=setInterval(async()=>{let t=await tN.savedPropsApi.getStatus();!e&&(null==t?void 0:t.writesEnabled)&&(l.current=!1,c(!1))},45e3);return()=>{e=!0,clearInterval(r)}},[s,h,t])}(),null}var tX=e.i(49018),tV=e.i(700288);function tJ(){let{data:e,keys:t,defaults:r}=(0,tX.useSportsbooks)(),n=(0,tV.default)(e=>e.reconcileBooks);return(0,x.useEffect)(()=>{e&&t.length>0&&n(t,r)},[e,t,r,n]),null}var tY=e.i(136906),t$=e.i(299749),tZ=e.i(581949);let t0=e=>{var t,r,n;return tZ.default.isAxiosError(e)&&(null==(t=e.response)?void 0:t.status)===503&&(null==(r=null==(n=e.response)?void 0:n.data)?void 0:r.disabled)===!0},t1=new class{async getConfigs(){try{let e=await tI.apiClient.get("".concat(this.baseUrl,"/me"));return{ok:!0,configs:Array.isArray(null==e?void 0:e.configs)?e.configs:[]}}catch(e){if(t0(e))return{ok:!1,disabled:!0,configs:[]};return{ok:!1,configs:[]}}}async putConfigs(e){try{let t=await tI.apiClient.put("".concat(this.baseUrl,"/me"),{configs:e});return{ok:!0,configs:null==t?void 0:t.configs}}catch(e){var t;if(t0(e))return{ok:!1,disabled:!0};if(tZ.default.isAxiosError(e)&&(null==(t=e.response)?void 0:t.status)===409)return{ok:!1,capExceeded:!0};return{ok:!1}}}async clearConfigs(){try{return await tI.apiClient.delete("".concat(this.baseUrl,"/me")),{ok:!0}}catch(e){if(t0(e))return{ok:!1,disabled:!0};return{ok:!1}}}constructor(){(0,t$._)(this,"baseUrl","/HighlightConfigs")}},t5="hrHighlightsReconciledFor",t2=null,t4=new Set;function t3(){return t2}function t6(e){return t4.add(e),()=>{t4.delete(e)}}function t8(e){t2!==e&&(t2=e,t4.forEach(e=>e()))}function t9(){return!function(){let{user:e,authReady:t}=(0,eQ.useAuth)(),[r,n]=(0,tY.useHRMatchupHighlights)(),a=(0,x.useRef)(!1),o=(0,x.useRef)([]),i=(0,x.useRef)(!1),l=(0,x.useRef)(!1),s=(0,x.useRef)(!1),c=(0,x.useRef)(null),d=!!((null==e?void 0:e.id)&&e.id>0);(0,x.useEffect)(()=>{!d&&(a.current=!1,t8(null),s.current=!1,c.current&&(clearTimeout(c.current),c.current=null))},[d]),(0,x.useEffect)(()=>{if(!d||!t||a.current)return;let r=String(e.id),i=!1;return(async()=>{if(await (0,Z.sleep)((0,Z.jitterDelayMs)()),i)return;let e=await t1.getConfigs();if(i)return;if(e.disabled){s.current=!0;return}if(!e.ok)return;let t=window.localStorage.getItem(t5)===r,l=(0,tY.getHighlightSnapshot)();if(t){if(i)return;o.current=e.configs,n(e.configs),a.current=!0,t8(r)}
1else{let t=(0,tY.unionMergeConfigs)(l,e.configs),c=t.length<=tY.MAX_CONFIGS?t:[...t].sort((e,t)=>{var r,n;return(null!=(r=t.updatedAt)?r:0)-(null!=(n=e.updatedAt)?n:0)}).slice(0,tY.MAX_CONFIGS),d=await t1.putConfigs(c);if(i)return;if(d.disabled){s.current=!0;return}if(!d.ok)return;window.localStorage.setItem(t5,r),o.current=c,n(c),a.current=!0,t8(r)}})(),()=>{i=!0}},[d,t,null==e?void 0:e.id]),(0,x.useEffect)(()=>{if(a.current&&d&&t&&!s.current&&JSON.stringify(r)!==JSON.stringify(o.current))return c.current&&clearTimeout(c.current),c.current=setTimeout(()=>{e()},600),()=>{c.current&&clearTimeout(c.current)};async function e(){if(i.current){l.current=!0;return}i.current=!0;try{let e=(0,tY.getHighlightSnapshot)(),t=await t1.putConfigs(e);t.ok?o.current=e:t.disabled&&(s.current=!0)}finally{i.current=!1,l.current&&(l.current=!1,e())}}},[r,d,t])}(),null}var t7=e.i(303974),re=e.i(123411),rt=e.i(311672),rr=e.i(139196);function rn(){let{user:e,authReady:t}=(0,eQ.useAuth)(),[r,n]=(0,tY.useHRMatchupHighlights)(),a=(0,x.useSyncExternalStore)(t6,t3,()=>null),[o,i]=(0,x.useState)(null),l=!!((null==e?void 0:e.id)&&e.id>0);return(0,x.useEffect)(()=>{if(!(0,rr.shouldApplyPendingImport)({authReady:t,isLoggedIn:l,userId:null==e?void 0:e.id,reconciledFor:a}))return;let r=(0,rr.readPendingImport)();if(!r)return;(0,rr.clearPendingImport)();let o=(0,rt.decodeShareCode)(r);if(!o.ok)return;let s=0,c=0;n(e=>{let t=(0,tY.appendImported)(e,o.configs);return s=t.added,c=t.skipped,t.configs}),s>0&&i("Added ".concat(s," highlight").concat(1===s?"":"s")+(c>0?" â skipped ".concat(c," (").concat(tY.MAX_CONFIGS," max)."):"."))},[t,l,null==e?void 0:e.id,a,r,n]),(0,m.jsx)(re.Snackbar,{open:!!o,autoHideDuration:5e3,onClose:()=>i(null),anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,m.jsx)(t7.Alert,{severity:"success",variant:"filled",onClose:()=>i(null),sx:{width:"100%"},children:o})})}var ra=e.i(478365);function ro(e){if(!e)return null;let t=e.split("-"),r=t[t.length-1];if(!/^\d+$/.test(r))return null;let n=Number(r);return r.length>=13?n:1e3*n}let ri="pf-forced-version-reload";function rl(){let[e,t]=(0,x.useState)(!1);return(0,x.useEffect)(()=>{var e,r;let n="u"<typeof document?null:null!=(e=null==(r=document.querySelector('meta[name="build-id"]'))?void 0:r.getAttribute("content"))?e:null,a=!1,o=async()=>{try{let e=await fetch("/version",{cache:"no-store"});if(!e.ok)return;let{buildId:r}=await e.json();if(a||!r||!n||r===n)return;if(function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1728e5;if(!e||!t||e===t)return!1;let n=ro(e),a=ro(t);return null!==n&&null!==a&&a-n>r}(n,r)&&!function(){try{if(sessionStorage.getItem(ri))return!0;return sessionStorage.setItem(ri,String(Date.now())),!1}catch{return!1}}())return void(0,y.hardRefresh)();t(!0)}catch{}};o();let i=setInterval(o,3e5),l=()=>o();return window.addEventListener("focus",l),document.addEventListener("visibilitychange",l),()=>{a=!0,clearInterval(i),window.removeEventListener("focus",l),document.removeEventListener("visibilitychange",l)}},[]),(0,m.jsx)(re.Snackbar,{open:e,anchorOrigin:{vertical:"bottom",horizontal:"center"},sx:{bottom:{xs:"calc(env(safe-area-inset-bottom) + 16px)",sm:24},zIndex:e=>e.zIndex.modal+1},children:(0,m.jsxs)(e0.Box,{sx:{display:"flex",alignItems:"center",gap:2,px:2.5,py:1.5,borderRadius:2,background:"linear-gradient(135deg, #1a1020 0%, #2a1535 100%)",border:"2px solid #B074CC",boxShadow:"0 0 24px rgba(176, 116, 204, 0.55), 0 8px 32px rgba(0, 0, 0, 0.5)",color:"#fff",minWidth:{xs:"calc(100vw - 32px)",sm:380},maxWidth:480},children:[(0,m.jsx)(ra.default,{sx:{color:"#B074CC",fontSize:24,flexShrink:0}}),(0,m.jsx)(e5.Typography,{sx:{fontWeight:600,fontSize:14,flexGrow:1},children:"A new version of PropFinder is available"}),(0,m.jsx)(e2.Button,{variant:"contained",size:"small",onClick:()=>(0,y.hardRefresh)(),sx:{fontWeight:700,textTransform:"none",background:"linear-gradient(135deg, #B074CC 0%, #7B3F92 100%)",boxShadow:"0 2px 12px rgba(176, 116, 204, 0.4)","&:hover":{background:"linear-gradient(135deg, #C088DD 0%, #8B4FA2 100%)",boxShadow:"0 4px 20px rgba(176, 116, 204, 0.6)"}},children:"Refresh"})]})})}
1var rs=e.i(3303),rc=e.i(117913);let rd=g.default.env.NEXT_PUBLIC_REDDIT_PIXEL_ID;function ru(){let e=(0,eq.usePathname)(),t=(0,x.useRef)(!1);return((0,x.useEffect)(()=>{(0,rc.captureRdtClickId)()},[]),(0,x.useEffect)(()=>{if(rd){if(!t.current){t.current=!0;return}(0,rc.rdtTrack)("PageVisit")}},[e]),rd)?(0,m.jsx)(rs.default,{id:"reddit-pixel",strategy:"afterInteractive",children:'!function(w,d){if(!w.rdt){var p=w.rdt=function(){p.sendEvent?p.sendEvent.apply(p,arguments):p.callQueue.push(arguments)};p.callQueue=[];var t=d.createElement("script");t.src="https://www.redditstatic.com/ads/pixel.js";t.async=!0;var s=d.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}}(window,document);rdt(\'init\',\''.concat(rd,"');rdt('track','PageVisit');")}):null}function rp(){let e,t,[r,n]=(0,x.useState)("online"),a=(0,x.useSyncExternalStore)(Z.subscribeApiHealth,Z.getApiHealthSnapshot,()=>"healthy");(0,x.useEffect)(()=>{n(navigator.onLine?"online":"offline");let e=()=>{n("reconnected"),window.setTimeout(()=>n("online"),2e3)},t=()=>n("offline");window.addEventListener("online",e),window.addEventListener("offline",t);let a=!1,o=async()=>{if("visible"===document.visibilityState)try{let t=await fetch("/ping",{method:"HEAD",cache:"no-store"});if(a)return;t.ok?"offline"===r&&e():"online"===r&&n("offline")}catch{a||"online"!==r||n("offline")}},i=window.setInterval(o,3e4);return()=>{a=!0,window.clearInterval(i),window.removeEventListener("online",e),window.removeEventListener("offline",t)}},[r]);let o="online"!==r;return o||!o&&"degraded"===a?("reconnected"===r?(e="#1f7a3a",t="Back online â refreshing data"):"offline"===r?(e="#8a1c1c",t="You're offline â showing cached data"):(e="#8a5a1c",t="Reconnecting to PropFinder â you're still signed in"),(0,m.jsx)("div",{role:"status","aria-live":"polite",style:{position:"fixed",bottom:0,left:0,right:0,zIndex:1400,pointerEvents:"none",paddingTop:8,paddingBottom:"calc(env(safe-area-inset-bottom, 0px) + 8px)",paddingLeft:"calc(env(safe-area-inset-left, 0px) + 16px)",paddingRight:"calc(env(safe-area-inset-right, 0px) + 16px)",background:e,color:"#fff",fontSize:13,fontWeight:500,textAlign:"center",boxShadow:"0 -2px 6px rgba(0,0,0,0.35)",transition:"background-color 200ms ease"},children:t})):null}let rh="a2hs-dismissed-at",rf=["/login","/register","/reset"];function rg(){let e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)&&!window.MSStream}function rm(){let e=navigator.userAgent,t=/^((?!chrome|android|crios|fxios|edgios).)*safari/i.test(e);return rg()&&t}function rx(){return rg()&&/CriOS|FxiOS|EdgiOS/i.test(navigator.userAgent)}function ry(){return window.matchMedia("(display-mode: standalone)").matches||!0===navigator.standalone}function rb(){var e;return!!(document.body.querySelector(".MuiModal-root, .MuiPopover-root")||(null==(e=document.getElementById("layoutContainer"))?void 0:e.closest('[aria-hidden="true"]')))}function rv(e){let t=new MutationObserver(e);return t.observe(document.body,{childList:!0,attributes:!0,attributeFilter:["aria-hidden"]}),()=>t.disconnect()}function rw(){let e=window.localStorage.getItem(rh);if(!e)return!1;let t=parseInt(e,10);return!Number.isNaN(t)&&(Date.now()-t)/864e5<14}function rj(){let[e,t]=(0,x.useState)("hidden"),[r,n]=(0,x.useState)(null),[a,o]=(0,x.useState)(""),i=(0,x.useSyncExternalStore)(rv,rb,()=>!1),l=(0,x.useRef)(!1),s=(0,x.useRef)(void 0);(0,x.useEffect)(()=>{if(new URLSearchParams(window.location.search).has("a2hs_debug")){o(["ua=".concat(navigator.userAgent),"standalone=".concat(ry()),"recentlyDismissed=".concat(rw()),"path=".concat(window.location.pathname),"isIOS=".concat(rg()),"isIOSSafari=".concat(rm()),"isIOSChromium=".concat(rx())].join("\n")),t("ios-chrome");return}if(ry()||rw()||rf.some(e=>window.location.pathname.startsWith(e)))return;let e=()=>l.current||ry()||rw(),r=r=>{e()||void 0===s.current&&(s.current=window.setTimeout(()=>{s.current=void 0,e()||t(r)},5e3))},a=e=>{e.preventDefault(),n(e),r("android")},i=()=>{t("hidden"),n(null)};return window.addEventListener("beforeinstallprompt",a),window.addEventListener("appinstalled",i),rm()?r("ios-safari"):rx()&&r("ios-chrome"),()=>{void 0!==s.current&&(window.clearTimeout(s.current),s.current=void 0),window.removeEventListener("beforeinstallprompt",a),window.removeEventListener("appinstalled",i)}},[]);let c=()=>{l.current=!0,void 0!==s.current&&(window.clearTimeout(s.current),s.current=void 0),window.localStorage.setItem(rh,Date.now().toString()),t("hidden")},d=async()=>
1{if(!r)return;await r.prompt();let{outcome:e}=await r.userChoice;"dismissed"===e&&c(),n(null),t("hidden")};return"hidden"===e||i?null:(0,m.jsxs)("div",{role:"dialog","aria-label":"Install PropFinder",style:{position:"fixed",left:12,right:12,bottom:"calc(env(safe-area-inset-bottom, 0px) + 12px)",zIndex:1250,background:"#1a1a1f",color:"#fff",borderRadius:14,padding:16,boxShadow:"0 10px 30px rgba(0,0,0,0.5)",border:"1px solid #2a2a32",maxWidth:480,margin:"0 auto",fontSize:14,lineHeight:1.45},children:[(0,m.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",gap:12},children:[(0,m.jsxs)("div",{children:[(0,m.jsx)("div",{style:{fontSize:16,fontWeight:700,marginBottom:4},children:"Install PropFinder"}),(0,m.jsx)("div",{style:{color:"#b9b9c2",marginBottom:12},children:"Faster loading, full-screen experience, and quicker access to your saved props."}),a&&(0,m.jsx)("pre",{style:{color:"#ffd86b",background:"#0d0d10",padding:8,borderRadius:6,fontSize:10,lineHeight:1.3,whiteSpace:"pre-wrap",wordBreak:"break-all",margin:"0 0 12px 0"},children:a})]}),(0,m.jsx)("button",{onClick:c,"aria-label":"Dismiss",style:{background:"transparent",border:"none",color:"#9a9aa6",fontSize:22,lineHeight:1,cursor:"pointer",padding:4},children:"Ã"})]}),"ios-safari"===e||"ios-chrome"===e?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("ol",{style:{margin:0,paddingLeft:18,color:"#e6e6ec"},children:["ios-safari"===e?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("li",{style:{marginBottom:6},children:["Tap the ",(0,m.jsx)("strong",{children:"â¢â¢â¢"})," menu in the bottom-right of Safari"]}),(0,m.jsxs)("li",{style:{marginBottom:6},children:["Tap the ",(0,m.jsx)(rS,{})," ",(0,m.jsx)("strong",{children:"Share"})," button"]})]}):(0,m.jsxs)("li",{style:{marginBottom:6},children:["Tap the ",(0,m.jsx)(rS,{})," ",(0,m.jsx)("strong",{children:"Share"})," icon in the top-right of Chrome"]}),(0,m.jsxs)("li",{style:{marginBottom:6},children:["Scroll down and tap ",(0,m.jsx)("strong",{children:"View More"})]}),(0,m.jsxs)("li",{style:{marginBottom:6},children:["Tap ",(0,m.jsx)("strong",{children:"Add to Home Screen"})]}),(0,m.jsxs)("li",{children:["Tap ",(0,m.jsx)("strong",{children:"Add"})," in the top-right"]})]}),(0,m.jsx)("button",{onClick:c,style:{marginTop:14,width:"100%",background:"#BB86FC",color:"#0d0d10",border:"none",borderRadius:10,padding:"10px 14px",fontWeight:700,fontSize:14,cursor:"pointer"},children:"Got it"})]}):(0,m.jsx)("button",{onClick:d,style:{marginTop:4,width:"100%",background:"#BB86FC",color:"#0d0d10",border:"none",borderRadius:10,padding:"10px 14px",fontWeight:700,fontSize:14,cursor:"pointer"},children:"Install"})]})}function rS(){return(0,m.jsxs)("svg",{viewBox:"0 0 24 24",width:"14",height:"14",style:{display:"inline-block",verticalAlign:"-2px",margin:"0 2px"},fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:[(0,m.jsx)("path",{d:"M12 3v13"}),(0,m.jsx)("path",{d:"M7 8l5-5 5 5"}),(0,m.jsx)("path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7"})]})}var rk=e.i(266027);let rC=["popup"];async function rM(){let e=await tI.apiClient.get("/popups");return e&&"object"==typeof e?e:null}var rI=e.i(410836);let r_=()=>{let{popup:e,clearPopup:t}=function(){let{user:e,authReady:t}=(0,eQ.useAuth)(),r=(0,X.useQueryClient)(),n=!!((null==e?void 0:e.accessToken)&&(null==e?void 0:e.id)&&e.id>0),[a,o]=(0,x.useState)(!1);(0,x.useEffect)(()=>{if(!n||!t||a)return;let e=setTimeout(()=>o(!0),(0,Z.jitterDelayMs)(1200,2600));return()=>clearTimeout(e)},[n,t,a]);let{data:i}=(0,rk.useQuery)({queryKey:rC,queryFn:rM,enabled:n&&t&&a,staleTime:1/0,gcTime:1/0,refetchOnMount:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchInterval:!1,retry:!1});return{popup:null!=i?i:null,clearPopup:()=>{r.setQueryData(rC,null)}}}();return e?(0,m.jsx)(rI.default,{open:!0,onClose:()=>{e&&(tI.apiClient.post("/popups/".concat(e.id,"/view"),{}).catch(e=>{console.error("Error logging popup view:",e)}),t())},title:e.title,content:e.content}):null};var rO=e.i(461357),rT=e.i(939882);let rA=(0,tm.default)((0,m.jsx)("path",{d:"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0"}),"KeyboardArrowUpRounded"),rE=e=>e.clientHeight>0&&e.scrollTop>e.clientHeight;function rz(){let e=(0,tr.useTheme)(),t=(0,rT.useMediaQuery)(e.breakpoints.down("lg")),r=(0,x.useRef)(null),[n,a]=(0,x.useState)(!1);return((0,x.useEffect)(()=>
1{if(!t){r.current=null,a(!1);return}let e=e=>{let t=e.target,n=t instanceof Document?document.scrollingElement:t;if(!(!(n instanceof HTMLElement)||n.closest(".MuiModal-root"))){let e;e=r.current,r.current=n===e||rE(n)?n:e,a(null!=r.current&&r.current.isConnected&&rE(r.current))}};return document.addEventListener("scroll",e,{capture:!0,passive:!0}),()=>document.removeEventListener("scroll",e,{capture:!0})},[t]),t)?(0,m.jsx)(rO.Fade,{in:n,unmountOnExit:!0,children:(0,m.jsx)(e4.IconButton,{"aria-label":"Scroll to top",onClick:()=>{var e;let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;null==(e=r.current)||e.scrollTo({top:0,behavior:t?"auto":"smooth"})},sx:e=>({position:"fixed",right:16,bottom:"calc(env(safe-area-inset-bottom, 0px) + 16px)",zIndex:1250,width:44,height:44,color:e.palette.text.primary,backgroundColor:"#1a1a1f",border:"1px solid ".concat((0,tn.alpha)(e.palette.common.white,.12)),boxShadow:"0 6px 20px rgba(0,0,0,0.45)","&:hover, &:active":{backgroundColor:"#24242b"}}),children:(0,m.jsx)(rA,{})})}):null}function rP(e,t){var r;!e||"object"!=typeof e||(null==(r=e.response)?void 0:r.status)===404||e.code===Z.CIRCUIT_OPEN_CODE||e._phReported||(e._phReported=!0,$.default.captureException(e,t))}let rB=new R({queryCache:new z({onError:(e,t)=>rP(e,{queryKey:JSON.stringify(t.queryKey)})}),mutationCache:new O({onError:(e,t,r,n)=>{var a;return rP(e,{queryKey:JSON.stringify(null!=(a=n.options.mutationKey)?a:null)})}})}),rW=(t=window.localStorage,r="9d54711-1791430507",{persister:function(e){let{storage:t,key:r="REACT_QUERY_OFFLINE_CACHE",throttleTime:n=1e3,serialize:a=JSON.stringify,deserialize:o=JSON.parse,retry:i}=e;if(t){let e=e=>{try{t.setItem(r,a(e));return}catch(e){return e}};return{persistClient:function(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=null;return function(){for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];t=o,null===n&&(n=J.timeoutManager.setTimeout(()=>{e(...t),n=null},r))}}(t=>{let r=t,n=e(r),a=0;for(;n&&r;)a++,(r=null==i?void 0:i({persistedClient:r,error:n,errorCount:a}))&&(n=e(r))},n),restoreClient:()=>{let e=t.getItem(r);if(e)return o(e)},removeClient:()=>{t.removeItem(r)}}}return{persistClient:Y,restoreClient:Y,removeClient:Y}}({storage:t,key:"pf-query-cache"}),maxAge:864e5,buster:r,dehydrateOptions:{shouldDehydrateQuery:e=>{var t;return(null==(t=e.meta)?void 0:t.persist)===!0&&"success"===e.state.status}}});function rR(e){let{children:t}=e;return(0,x.useEffect)(()=>{(0,y.clearReloadFlag)()},[]),(0,m.jsx)(eH,{children:(0,m.jsx)(V,{client:rB,persistOptions:rW,children:(0,m.jsx)(ee.ColorSchemeProvider,{children:(0,m.jsx)(eD,{children:(0,m.jsx)(x.Suspense,{children:(0,m.jsxs)(eQ.AuthProvider,{children:[(0,m.jsx)(tJ,{}),(0,m.jsx)(tG,{}),(0,m.jsx)(t9,{}),(0,m.jsx)(rn,{}),(0,m.jsx)(rl,{}),(0,m.jsx)(ru,{}),(0,m.jsx)(tD,{}),(0,m.jsx)(tQ,{}),(0,m.jsx)(tq,{}),(0,m.jsx)(tL,{}),(0,m.jsx)(rp,{}),(0,m.jsx)(rj,{}),(0,m.jsx)(rz,{}),(0,m.jsx)(r_,{}),t]})})})})})})}e.s(["default",()=>rR],311181)}]); 2 3//# sourceMappingURL=cfb4505b71106152.js.map 4//# chunkId=01a11996-8d76-7890-a340-e7662c684524
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.