1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d1940853-965a-4fdc-99c3-7b8ecf10a493",e._sentryDebugIdIdentifier="sentry-dbid-d1940853-965a-4fdc-99c3-7b8ecf10a493")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(7548)}])},68914:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var a=r(85893),s=r(67294),n=r(41664),o=r.n(n);function i(){let{dismissible:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,r]=(0,s.useState)(null),[n,i]=(0,s.useState)(!1),[l,c]=(0,s.useState)(()=>Date.now());return((0,s.useEffect)(()=>{let t=!1,a=async()=>{try{let a=await fetch("/api/competitions/active");if(!a.ok)return;let s=await a.json();if(t)return;let n=s.competition;if(r(n),n&&e){let e=window.sessionStorage.getItem("comp_dismissed_".concat(n.slug));"1"===e&&i(!0)}}catch(e){}};a();let s=setInterval(a,6e4);return()=>{t=!0,clearInterval(s)}},[e]),(0,s.useEffect)(()=>{if(!t)return;let e=setInterval(()=>c(Date.now()),6e4);return()=>clearInterval(e)},[t]),!t||n)?null:(0,a.jsx)(o(),{href:"/competitions/".concat(t.slug),className:"block",children:(0,a.jsxs)("div",{className:"my-4 rounded-xl border-l-4 bg-gray-900 dark:bg-gray-900 p-4 flex items-center gap-4 cursor-pointer transition-transform hover:-translate-y-0.5",style:{borderLeftColor:t.accentColor},children:[(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,a.jsx)("span",{className:"text-[10px] uppercase tracking-widest font-bold",style:{color:t.accentColor},children:"Competition"}),(0,a.jsx)("span",{className:"text-[10px] text-gray-400",children:function(e,t){let r=new Date(e).getTime()-t;if(r<=0)return"Ended";let a=Math.floor(r/864e5);if(a>=1)return"Ends in ".concat(a,"d");let s=Math.floor(r/36e5);return s>=1?"Ends in ".concat(s,"h"):"Ends in ".concat(Math.floor(r/6e4),"m")}(t.endAt,l)})]}),(0,a.jsx)("h3",{className:"font-bold text-white text-base truncate",children:t.title}),t.subtitle&&(0,a.jsx)("p",{className:"text-sm text-gray-300 truncate",children:t.subtitle})]}),(0,a.jsx)("span",{className:"px-4 py-2 rounded-full font-semibold text-sm whitespace-nowrap",style:{backgroundColor:t.accentColor,color:"#0d0208"},children:t.bannerCtaLabel||"Join the Challenge"}),e&&(0,a.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),window.sessionStorage.setItem("comp_dismissed_".concat(t.slug),"1"),i(!0)},"aria-label":"Dismiss competition banner",className:"text-gray-500 hover:text-gray-300 p-1 -mr-1",children:(0,a.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})})}},89729:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var a=r(85893),s=r(67294),n=r(5152),o=r.n(n),i=r(48380);let l=o()(()=>r.e(3282).then(r.bind(r,23282)),{loadableGenerated:{webpack:()=>[23282]},ssr:!1});function c(e){var t;let{address:r,user:n}
1=e,o=r||null,[c,d]=(0,s.useState)(null),[u,x]=(0,s.useState)(!0),[h,p]=(0,s.useState)(!1),f=(0,i.h)(o);(0,s.useEffect)(()=>{if(o)try{x("1"===localStorage.getItem("profileSetupBannerDismissed_".concat(o.toLowerCase())))}catch(e){x(!1)}},[o]);let g=n&&"object"==typeof n?n:null;(0,s.useEffect)(()=>{if(g||!o)return;let e=!1;return fetch("/api/getuser?walletAddress=".concat(o)).then(e=>e.ok?e.json():null).then(t=>{e||d(t)}).catch(()=>{}),()=>{e=!0}},[o,g]);let m=null!=g?g:c;if(!o||"loaded"!==f.status||f.allComplete||u)return null;let{completeCount:b,total:k}=f,v=k>0?Math.round(b/k*100):0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-4 rounded-xl border border-indigo-200 dark:border-matrix-green/40 bg-indigo-50 dark:bg-matrix-green/5 px-4 py-3",children:(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>p(!0),className:"group min-w-0 flex-1 text-left",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("span",{className:"truncate text-sm font-bold text-light-text-primary dark:text-white font-sans",children:"\uD83D\uDC4B Finish setting up your profile"}),(0,a.jsxs)("span",{className:"flex flex-shrink-0 items-center gap-2",children:[(0,a.jsxs)("span",{className:"text-xs text-light-text-secondary dark:text-gray-400 font-sans",children:[b," of ",k]}),(0,a.jsx)("svg",{className:"h-4 w-4 text-indigo-600 dark:text-matrix-green transition-transform group-hover:translate-x-0.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]})]}),(0,a.jsx)("div",{className:"mt-2 h-1.5 w-full overflow-hidden rounded-full bg-indigo-100 dark:bg-gray-800",children:(0,a.jsx)("div",{className:"h-full rounded-full bg-indigo-600 dark:bg-matrix-green transition-all duration-300",style:{width:"".concat(v,"%")}})})]}),(0,a.jsx)("button",{type:"button",onClick:()=>{x(!0);try{o&&localStorage.setItem("profileSetupBannerDismissed_".concat(o.toLowerCase()),"1")}catch(e){}},"aria-label":"Dismiss",className:"flex-shrink-0 rounded p-1 text-light-text-secondary hover:text-indigo-600 dark:text-gray-400 dark:hover:text-matrix-green",children:(0,a.jsx)("svg",{className:"h-4 w-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]})}),h&&(0,a.jsx)(l,{address:o,username:null!==(t=null==m?void 0:m.username)&&void 0!==t?t:null,onClose:()=>p(!1)})]})}},48380:function(e,t,r){"use strict";r.d(t,{h:function(){return l}});var a=r(67294),s=r(13398);let n=e=>"profileShareDone_".concat(e.toLowerCase()),o="setup-checklist:share-done",i=e=>{if(!e)return!1;try{return"1"===localStorage.getItem(n(e))}catch(e){return!1}};function l(e){let t=e||null,r=(0,s.v)(),[l,c]=(0,a.useState)(null),[d,u]=(0,a.useState)("loading"),[x,h]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(h(i(t)),!t)return;let e=()=>h(i(t));return window.addEventListener(o,e),()=>window.removeEventListener(o,e)},[t]),(0,a.useEffect)(()=>{if(!t){c(null),u("error");return}let e=!1;return u("loading"),c(null),fetch("/api/profile/setup-checklist?walletAddress=".concat(t)).then(e=>{if(!e.ok)throw Error("checklist ".concat(e.status));return e.json()}).then(t=>{if(!e){if(!t||!Array.isArray(t.items)){u("error");return}c(t),u("loaded")}}).catch(()=>{e||u("error")}),()=>{e=!0}},[t]);let p=(0,a.useCallback)(async()=>{if(t&&r)try{var e;if((null===(e=r.account)||void 0===e?void 0:e.address)&&r.account.address.toLowerCase()!==t.toLowerCase())return;let a=Date.now(),s="Mark profile shared\nWallet: ".concat(t,"\nTimestamp: ").concat(a),n=await r.signMessage({account:t,message:s}),o=await fetch("/api/profile/setup-checklist",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:s,signature:n})});if(!o.ok)throw Error("profile share ".concat(o.status))}catch(e){}},[t,r]),f=(0,a.useCallback)(()=>{if(t){try{localStorage.setItem(n(t),"1")}catch(e){}h(!0);try{window.dispatchEvent(new CustomEvent(o))}catch(e){}p()}},[t,p]),g=(0,a.useMemo)(()=>
1{if("loaded"!==d||!l)return null;let e=l.items.map(e=>"share"===e.id?{...e,complete:e.complete||x}:e),t=e.filter(e=>e.complete).length,r=e.length;return{status:"loaded",items:e,completeCount:t,total:r,allComplete:t===r}},[d,l,x]);return g?{...g,markShareDone:f}:"error"===d?{status:"error",markShareDone:f}:{status:"loading",markShareDone:f}}},7548:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return A}});var a=r(85893),s=r(67294),n=r(41664),o=r.n(n),i=r(80980),l=r(11163),c=r(5152),d=r.n(c),u=r(29535),x=r(68914),h=r(89729),p=r(25675),f=r.n(p),g=r(57565);function m(e){var t;let{onCreate:r,onAIPrediction:n}=e,i=(0,l.useRouter)(),{address:c,isConnected:d}=(0,g.G)(),[u,x]=(0,s.useState)(null);(0,s.useEffect)(()=>{if(!c){x(null);return}fetch("/api/getuser?walletAddress=".concat(c)).then(e=>e.ok?e.json():null).then(e=>{e&&x(e)}).catch(()=>{})},[c]);let h=[{label:"Home",href:"/",icon:(0,a.jsx)("svg",{className:"w-7 h-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"})})},{label:"Leaderboard",href:"/leaderboard",icon:(0,a.jsx)("svg",{className:"w-7 h-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 18.75h-9m9 0a3 3 0 0 1 3 3h-15a3 3 0 0 1 3-3m9 0v-3.375c0-.621-.503-1.125-1.125-1.125h-.871M7.5 18.75v-3.375c0-.621.504-1.125 1.125-1.125h.872m5.007 0H9.497m5.007 0a7.454 7.454 0 0 1-.982-3.172M9.497 14.25a7.454 7.454 0 0 0 .981-3.172M5.25 4.236c-.982.143-1.954.317-2.916.52A6.003 6.003 0 0 0 7.73 9.728M5.25 4.236V4.5c0 2.108.966 3.99 2.48 5.228M5.25 4.236V2.721C7.456 2.41 9.71 2.25 12 2.25c2.291 0 4.545.16 6.75.47v1.516M18.75 4.236c.982.143 1.954.317 2.916.52A6.003 6.003 0 0 1 16.27 9.728M18.75 4.236V4.5c0 2.108-.966 3.99-2.48 5.228m0 0a6.023 6.023 0 0 1-2.77.896m5.25-6.387V2.72"})})},{label:"AI Accuracy",href:"/ai-accuracy",icon:(0,a.jsx)("svg",{className:"w-7 h-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 4.125C9.75 3.504 10.254 3 10.875 3h2.25c.621 0 1.125.504 1.125 1.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125ZM16.5 8.625c0-.621.504-1.125 1.125-1.125h2.25C20.496 7.5 21 8.004 21 8.625v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625Z"})})},{label:"Intel Market",href:"/intel",icon:(0,a.jsx)("svg",{className:"w-7 h-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z"})})}].filter(e=>!e.authRequired||d);return(0,a.jsx)("aside",{className:"hidden lg:block w-[260px] flex-shrink-0",children:(0,a.jsxs)("div",{className:"sticky top-16 h-[calc(100vh-4rem)] flex flex-col py-2 pr-4 overflow-y-auto",children:[(0,a.jsx)("nav",{className:"space-y-1",children:h.map(e=>{let t=i.pathname===e.href;return(0,a.jsxs)(o(),{href:e.href,className:"flex items-center gap-4 px-4 py-2.5 rounded-full text-[18px] transition-colors\n ".concat(t?"font-bold text-gray-900 dark:text-[#e7e9ea]":"font-normal text-gray-700 dark:text-[#e7e9ea] hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:[e.icon,(0,a.jsx)("span",{children:e.label})]},e.href)})}),(0,a.jsxs)("div",{className:"mt-4 space-y-2",children:[(0,a.jsx)(o(),{href:"/upload-prediction",className:"block w-full py-3 rounded-full bg-indigo-600 dark:bg-[#8
118cf8] text-white text-[16px] font-bold text-center hover:bg-indigo-500 dark:hover:bg-[#6d78e6] transition-colors shadow-lg",children:"Share Prediction"}),(0,a.jsx)("button",{onClick:n,className:"block w-full py-3 rounded-full border-2 border-indigo-600 dark:border-[#818cf8] text-indigo-600 dark:text-[#818cf8] text-[16px] font-bold hover:bg-indigo-50 dark:hover:bg-[#818cf8]/10 transition-colors",children:"Get AI Prediction"})]}),d&&c&&(0,a.jsxs)(o(),{href:(null==u?void 0:u.username)?"/".concat(u.username):"/account",className:"mt-4 mb-4 flex items-center gap-2 px-2 py-2 rounded-full hover:bg-gray-100 dark:hover:bg-white/[0.06] transition-colors",children:[(null==u?void 0:null===(t=u.profileImage)||void 0===t?void 0:t.url)?(0,a.jsx)(f(),{src:u.profileImage.url,alt:u.username||"",width:40,height:40,className:"w-10 h-10 rounded-full object-cover flex-shrink-0",unoptimized:u.profileImage.url.includes("dicebear.com")}):(0,a.jsx)("div",{className:"w-10 h-10 rounded-full bg-indigo-600 dark:bg-[#818cf8] flex items-center justify-center text-white font-bold flex-shrink-0",children:((null==u?void 0:u.username)||c.slice(2,4)).slice(0,2).toUpperCase()}),(0,a.jsxs)("div",{className:"min-w-0 text-left",children:[(0,a.jsx)("div",{className:"text-[14px] font-bold text-gray-900 dark:text-[#e7e9ea] truncate text-left",children:(null==u?void 0:u.username)||"".concat(c.slice(0,6),"...").concat(c.slice(-4))}),(0,a.jsx)("div",{className:"text-[13px] text-gray-500 dark:text-[#71767b] truncate text-left",children:(null==u?void 0:u.username)?"@".concat(u.username):"".concat(c.slice(0,6),"...").concat(c.slice(-4))})]})]})]})})}function b(e){let{onSignIn:t}=e;return(0,a.jsx)("aside",{className:"hidden lg:block w-[310px] flex-shrink-0 pl-6",children:(0,a.jsx)("div",{className:"sticky top-20 space-y-4",children:(0,a.jsxs)("div",{className:"rounded-2xl border border-gray-200 dark:border-[#2f3336] bg-white dark:bg-gray-950 overflow-hidden",children:[(0,a.jsxs)("div",{className:"px-5 pt-5 pb-4 text-center",children:[(0,a.jsx)("div",{className:"flex items-center justify-center mb-3",children:(0,a.jsx)("img",{src:"/android-chrome-512x512.png",alt:"Eroteme",className:"w-10 h-10 rounded-lg"})}),(0,a.jsx)("h3",{className:"text-lg font-bold text-gray-900 dark:text-white font-sans",children:"Log in or sign up"}),(0,a.jsx)("p",{className:"mt-1.5 text-sm text-gray-500 dark:text-[#71767b] font-sans leading-relaxed",children:"Join the network. Make the call. Build the record."})]}),(0,a.jsx)("div",{className:"px-5 pb-5",children:(0,a.jsx)("button",{onClick:t,className:"w-full px-4 py-2.5 rounded-full text-sm font-bold font-sans bg-indigo-600 dark:bg-matrix-green text-white dark:text-matrix-black hover:bg-indigo-700 dark:hover:bg-green-400 transition-colors cursor-pointer",children:"Sign Up Free"})})]})})})}var k=r(33934);function v(e){return"".concat(e.slice(0,6),"â¦").concat(e.slice(-4))}function y(){let{data:e,isLoading:t}=(0,k.a)({queryKey:["trending-forecasters"],queryFn:async()=>{let e=await fetch("/api/suggested-users?limit=5");if(!e.ok)throw Error("Failed to fetch forecasters");return e.json()},staleTime:6e4}),r=(null==e?void 0:e.users)||[];return(0,a.jsx)("aside",{className:"hidden lg:block w-[310px] flex-shrink-0 pl-6",children:(0,a.jsx)("div",{className:"sticky top-20",children:(0,a.jsxs)("div",{className:"rounded-2xl border border-gray-200 dark:border-[#2f3336] bg-white dark:bg-gray-950 overflow-hidden",children:[(0,a.jsxs)("div",{className:"px-5 py-4 border-b border-gray-100 dark:border-[#2f3336]",children:[(0,a.jsx)("h3",{className:"text-base font-bold text-gray-900 dark:text-white font-sans",children:"Top Forecasters"}),(0,a.jsx)("p",{className:"text-xs text-gray-500 dark:text-[#71767b] font-sans mt-0.5",children:"Ranked by followers and accuracy"})]}),(0,a.jsx)("div",{className:"divide-y divide-gray-100 dark:divide-[#2f3336]",children:t?Array.from({length:5}).map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-3 px-5 py-3",children:[(0,a.jsx)("span",{className:"w-10 h-10 rounded-full bg-gray-200 dark:bg-[#1d1f23] animate-pulse"}),(0,a.jsxs)("div",{className:"flex-1 space-y-1.5",children:[(0,a.jsx)("span",{className:"block w-24 h-3.5 rounded bg-gray-200 dark:bg-[#1d1f23] animate-pulse"}),(0,a.jsx)("span",{className:"block w-32 h-3 rounded bg-gray-200 dark:bg-[#1d1f23] animate-pulse"})]})]},t)):0===r.length?(0,a.jsx)("div",{className:"px-5 py-6 text-sm text-gray-500 dark:text-[#71767b] font-sans",children:"No forecasters yet."}):r.map(e=>{var t;let r=e.username||v(e.address),s=e.username?"@".concat(e.username):v(e.address),n=[e.accuracyRate>0?"".concat(Math.round(e.accuracyRate),"% accuracy"):null,e.totalPredictions>
10?"".concat(e.totalPredictions," calls"):null].filter(Boolean).join(" \xb7 ");return(0,a.jsxs)(o(),{href:e.username?"/".concat(e.username):"/address/".concat(e.address),className:"flex items-center gap-3 px-5 py-3 hover:bg-gray-50 dark:hover:bg-white/[0.03] transition-colors",children:[(0,a.jsx)("img",{src:(null===(t=e.profileImage)||void 0===t?void 0:t.url)?e.profileImage.url:"https://api.dicebear.com/7.x/identicon/svg?seed=".concat(e.address,"&backgroundColor=0d0208&radius=50"),alt:r,className:"w-10 h-10 rounded-full object-cover flex-shrink-0 bg-gray-200 dark:bg-[#2f3336]"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsx)("div",{className:"text-sm font-bold text-gray-900 dark:text-white font-sans truncate",children:r}),(0,a.jsx)("div",{className:"text-xs text-gray-500 dark:text-[#71767b] font-sans truncate",children:n||s})]})]},e.address)})}),(0,a.jsx)("div",{className:"px-5 py-3 border-t border-gray-100 dark:border-[#2f3336]",children:(0,a.jsx)(o(),{href:"/leaderboard",className:"text-sm font-semibold text-indigo-600 dark:text-matrix-green hover:text-indigo-700 dark:hover:text-green-400 transition-colors font-sans",children:"See leaderboard â"})})]})})})}var w=r(44183),j=r(17542),N=r(54163),C=r(32113);let S=d()(()=>Promise.all([r.e(8357),r.e(869),r.e(1685),r.e(9610),r.e(1350),r.e(3164),r.e(1315),r.e(6728)]).then(r.bind(r,53164)),{loadableGenerated:{webpack:()=>[53164]},ssr:!1}),L=d()(()=>Promise.all([r.e(2967),r.e(7663)]).then(r.bind(r,12967)),{loadableGenerated:{webpack:()=>[12967]},ssr:!1}),E=C.Eh,M="Follow research-backed AI forecasts for live prediction markets across sports, politics, crypto and more. See model consensus, confidence and tracked results.";function I(){return(0,a.jsxs)("section",{"aria-labelledby":"founding-forecasters-home-heading",className:"mx-4 my-4 rounded-2xl border border-gray-200 bg-gray-50 px-5 py-6 dark:border-[#2f3336] dark:bg-[#111318] sm:px-6",children:[(0,a.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-[0.18em] text-indigo-600 dark:text-matrix-green",children:"FOUNDING FORECASTERS"}),(0,a.jsx)("h2",{id:"founding-forecasters-home-heading",className:"mt-2 text-xl font-bold leading-tight text-gray-950 dark:text-white sm:text-2xl",children:"Build a forecasting record that speaks for itself"}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-6 text-gray-600 dark:text-[#aeb3b9] sm:text-base",children:"Publish measurable predictions, explain your reasoning and build a permanent public record as outcomes resolve."}),(0,a.jsx)("p",{className:"mt-3 text-xs leading-5 text-gray-500 dark:text-[#8b9198] sm:text-sm",children:"For independent thinkers across politics, technology, economics, sport, entertainment, business and geopolitics."}),(0,a.jsx)(o(),{href:"/founding-forecasters",onClick:()=>(0,N.Sb)("homepage"),className:"mt-5 inline-flex min-h-[44px] items-center justify-center rounded-xl bg-indigo-600 px-5 py-2.5 text-sm font-bold text-white transition-colors hover:bg-indigo-700 focus:outline-none focus-visible:ring-2 focus-visible:ring-indigo-500 focus-visible:ring-offset-2 dark:bg-matrix-green dark:text-matrix-black dark:hover:bg-green-400 dark:focus-visible:ring-matrix-green dark:focus-visible:ring-offset-gray-950",children:"Learn more and apply"})]})}function A(){let e=(0,l.useRouter)(),{bettingAllowed:t}=(0,w.E)(),{isConnected:r,address:n}=(0,g.G)(),[c,d]=(0,s.useState)(""),[p,f]=(0,s.useState)(""),[k,v]=(0,s.useState)(!1),[N,C]=(0,s.useState)(!1),[A,_]=(0,s.useState)(!1),[P,B]=(0,s.use
1State)("recent"),[D,F]=(0,s.useState)(""),W=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,[t,r]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let t=window.scrollY,a=()=>{let a=window.scrollY;Math.abs(a-t)<e||(a>100?r(a>t):r(!1),t=a)};return window.addEventListener("scroll",a,{passive:!0}),()=>window.removeEventListener("scroll",a)},[e]),t}(),V=(0,s.useRef)(!1);(0,s.useEffect)(()=>{e.isReady&&!V.current&&void 0!==e.query.ai&&(V.current=!0,r?v(!0):e.replace("/predict?start=1"))},[e,r]);let T=!r,R=!r&&!e.query.category&&!p;return(0,s.useEffect)(()=>{j.c.trackPageView("/")},[]),(0,s.useEffect)(()=>{e.query.category&&"string"==typeof e.query.category&&d(e.query.category)},[e.query.category]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(i.Z,{title:"Eroteme â AI Forecasts for Live Prediction Markets",description:M,canonical:"https://www.eroteme.ai/",ogImage:"https://www.eroteme.ai/api/og/go",ogImageAlt:"Eroteme AI forecasts for live prediction markets",jsonLd:{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.eroteme.ai/#organization",name:"Eroteme",url:"https://www.eroteme.ai/",logo:"https://www.eroteme.ai/android-chrome-512x512.png",sameAs:["https://apps.apple.com/app/id6759812323","https://play.google.com/store/apps/details?id=io.eroteme.app"]},{"@type":"WebSite","@id":"https://www.eroteme.ai/#website",name:"Eroteme",alternateName:"Eroteme â AI Forecasts for Live Prediction Markets",url:"https://www.eroteme.ai/",description:M,publisher:{"@id":"https://www.eroteme.ai/#organization"}},{"@type":"SoftwareApplication","@id":"https://www.eroteme.ai/#app",name:"Eroteme â AI Forecasts for Live Prediction Markets",alternateName:"Eroteme",applicationCategory:"NewsApplication",operatingSystem:"iOS, Android, Web",description:"Follow research-backed AI forecasts on live prediction markets, inspect the four-model consensus and supporting reasoning, track results, or publish your own forecast.",url:"https://www.eroteme.ai/",downloadUrl:["https://apps.apple.com/app/id6759812323","https://play.google.com/store/apps/details?id=io.eroteme.app"],isAccessibleForFree:!0,offers:{"@type":"Offer",price:"0",priceCurrency:"GBP"},publisher:{"@id":"https://www.eroteme.ai/#organization"}}]}}),(0,a.jsx)("div",{className:"min-h-screen bg-white dark:bg-gray-950",children:(0,a.jsxs)("div",{className:"max-w-[1240px] mx-auto flex",children:[(0,a.jsx)(m,{onAIPrediction:()=>v(!0)}),(0,a.jsxs)("div",{className:"w-full max-w-[600px] border-x border-gray-200 dark:border-[#2f3336] min-h-screen",children:[(0,a.jsx)("div",{className:"px-4 pt-4",children:(0,a.jsx)(h.Z,{address:n})}),(0,a.jsxs)("div",{className:"sticky top-16 z-30 bg-white dark:bg-gray-950",children:[(0,a.jsxs)("div",{className:"lg:hidden flex gap-3 px-4 py-3 border-b border-gray-200 dark:border-[#2f3336]",children:[(0,a.jsxs)("button",{onClick:()=>v(!0),className:"flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl text-[13px] font-semibold bg-indigo-600 dark:bg-[#818cf8] text-white hover:bg-indigo-700 dark:hover:bg-[#6d78e6] transition-colors",children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"})}),"Get AI Prediction"]}),(0,a.jsxs)(o(),{href:"/upload-prediction",className:"flex-1 flex items-center justify-center gap-2 py-2.5 rounded-xl text-[13px] font-semibold bg-gray-100 dark:bg-[#1d1f23] text-gray-800 dark:text-[#e7e9ea] hover:bg-gray-200 dark:hover:bg-[#2f3336] transition-colors",children:[(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931z"})}),"Share Prediction"]})]}),r&&(0,a.jsx)("div",{className:"overflow-hidden transition-all duration-300 ".concat(W?"max-h-0 lg:max-h-[400px]":"max-h-[400px]"),children:(0,a.jsxs)("div",{className:"border-b border-gray-200 dark:border-[#2f3336]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3",children:[(0,a.jsxs)("div",{className:"flex-1 relative",children:[(0,a.jsx)("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 dark:text-[#71767b]",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"})}),(0,a.jsx)("input",{type:"text",value:p,onChange:e=>f(e.target.value),placeholder:"Search predictions",className:"w-full pl-10 pr-4 py-2 rounded-full text-[14px] bg-gray-100 dark:bg-[#1d1f23] border border-transparent focus:border-indigo-500 dark:focus:border-[#818cf8] text-gray-900 dark:text-[#e7e9ea] placeholder-gray-400 dark:placeholder-[#71767b] outline-none transition-colors"})]}),(0,a.jsx)("button",{onClick:()=>_(e=>!e),className:"flex-shrink-0 w-10 h-10 rounded-full flex items-center justify-center transition-colors\n ".concat(A?"bg-indigo-100 dark:bg-[#8
118cf8]/20 text-indigo-600 dark:text-[#818cf8]":"bg-gray-100 dark:bg-[#1d1f23] text-gray-600 dark:text-[#71767b] hover:bg-gray-200 dark:hover:bg-[#2f3336]"),"aria-label":"Filters",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"})})})]}),A&&(0,a.jsxs)("div",{className:"px-4 pb-3 space-y-3 border-t border-gray-200 dark:border-[#2f3336] pt-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-[11px] font-bold uppercase tracking-wider text-gray-500 dark:text-[#71767b]",children:"Category"}),(0,a.jsx)("div",{className:"flex gap-2 mt-1.5 flex-wrap",children:E.map(e=>(0,a.jsx)("button",{onClick:()=>d(e.value),className:"flex-shrink-0 px-3 py-1.5 rounded-full text-[12px] font-semibold transition-all\n ".concat(c===e.value?"bg-gray-900 text-white dark:bg-[#e7e9ea] dark:text-black":"bg-gray-100 text-gray-700 hover:bg-gray-200 dark:bg-[#1d1f23] dark:text-[#e7e9ea] dark:hover:bg-[#2f3336]"),children:e.label},e.value))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-[11px] font-bold uppercase tracking-wider text-gray-500 dark:text-[#71767b]",children:"Sort by"}),(0,a.jsx)("div",{className:"flex gap-2 mt-1.5 flex-wrap",children:[{v:"recent",l:"Recent"},{v:"trending",l:"Trending"},{v:"popular",l:"Popular"},{v:"closingSoon",l:"Closing Soon"},{v:"accuracy",l:"Top Accuracy"}].map(e=>(0,a.jsx)("button",{onClick:()=>B(e.v),className:"px-3 py-1.5 rounded-full text-[12px] font-semibold transition-colors\n ".concat(P===e.v?"bg-indigo-600 dark:bg-[#818cf8] text-white":"bg-gray-100 dark:bg-[#1d1f23] text-gray-700 dark:text-[#e7e9ea] hover:bg-gray-200 dark:hover:bg-[#2f3336]"),children:e.l},e.v))})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-[11px] font-bold uppercase tracking-wider text-gray-500 dark:text-[#71767b]",children:"Status"}),(0,a.jsx)("div",{className:"flex gap-2 mt-1.5 flex-wrap",children:[{v:"",l:"All"},{v:"active",l:"Active"},{v:"resolved_correct",l:"Correct"},{v:"resolved_incorrect",l:"Incorrect"}].map(e=>(0,a.jsx)("button",{onClick:()=>F(e.v),className:"px-3 py-1.5 rounded-full text-[12px] font-semibold transition-colors\n ".concat(D===e.v?"bg-indigo-600 dark:bg-[#818cf8] text-white":"bg-gray-100 dark:bg-[#1d1f23] text-gray-700 dark:text-[#e7e9ea] hover:bg-gray-200 dark:hover:bg-[#2f3336]"),children:e.l},e.v))})]})]})]})})]}),(0,a.jsx)(x.Z,{}),(0,a.jsx)(u.Z,{category:c||void 0,search:p||void 0,sortBy:P,status:D||void 0,scrolledDown:W,feedInterstitial:R?(0,a.jsx)(I,{}):void 0})]}),T?(0,a.jsx)(b,{onSignIn:()=>C(!0)}):(0,a.jsx)(y,{})]})}),(0,a.jsx)(S,{isOpen:k,onClose:()=>v(!1)}),N&&(0,a.jsx)(L,{onClose:()=>C(!1)})]})}},17542:function(e,t,r){"use strict";r.d(t,{c:function(){return n}});var a=r(49089);function s(e,t,r,s){"".concat(e,"_").concat(t);try{a.default.event({category:e,action:t,label:r,value:s})}catch(e){}}let n={trackPageView:e=>{try{a.default.send({hitType:"pageview",page:e})}catch(e){}},trackWaitlistView:()=>s("waitlist","view"),trackWaitlistSignup:e=>s("waitlist","signup",e||"direct"),trackReferralLinkCopy:()=>s("waitlist","referral_copy"),trackReferralShare:e=>s("waitlist","referral_share",e),trackWalletConnected:()=>s("wallet","connected"),trackAIPredictionViewed:e=>s("prediction","view",e),trackAIPredictionPurchased:(e,t)=>s("prediction","purchase",e,"free"===t?0:1),trackBetPlaced:(e,t)=>s("bet","placed",e,t),trackShareCardGenerated:e=>s("share_card","generated",e),trackShareCardShared:(e,t)=>s("share_card","shared","".concat(e,":").concat(t))}}},function(e){e.O(0,[9089,2113,5200,9206,2888,9774,179],function(){return e(e.s=48312)}),_N_E=e.O()}]);
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.