PageSourceSearch

https://www.eroteme.ai/_next/static/chunks/7163.3ad947114788b276.js

js eroteme.ai collected 2026-09-24 14:32:59 UTC 11,557 bytes, 1 lines download raw bytes

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]="af1b333c-d24b-422e-9759-327f22931494",e._sentryDebugIdIdentifier="sentry-dbid-af1b333c-d24b-422e-9759-327f22931494")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7163,5678],{47163:function(e,t,r){r.r(t),r.d(t,{default:function(){return c}});var o=r(85893),a=r(67294),n=r(13318);let l=window.location.origin||"https://eroteme.io";function i(e){var t,r,o,a,i,s,d,c,u,h,m,b,f,g,v,p,x,y,k,w,j;let L=new URLSearchParams,C=null!==(s=null===(t=e.polymarket)||void 0===t?void 0:t.question)&&void 0!==s?s:"";L.set("question",C);let N=(null!==(d=e.prediction)&&void 0!==d?d:"").toString().toUpperCase();L.set("prediction",N);let E="YES"===N?null!==(c=null===(r=e.outcomeLabels)||void 0===r?void 0:r[0])&&void 0!==c?c:"":null!==(u=null===(o=e.outcomeLabels)||void 0===o?void 0:o[1])&&void 0!==u?u:"";E&&L.set("outcome",E),null!=e.confidenceLevel&&L.set("confidence",String(e.confidenceLevel)),"slight_lean"===e.publicationTier&&L.set("publicationTier","slight_lean"),e.headline&&L.set("headline",e.headline);let S=e.isAIGenerated?"Eroteme AI":null!==(m=null!==(h=e.creatorUsername)&&void 0!==h?h:e.creator)&&void 0!==m?m:"";if(S&&L.set("creator",S),null===(a=e.polymarket)||void 0===a?void 0:a.currentOdds){let t=Math.round(100*e.polymarket.currentOdds.yes),r=Math.round(100*e.polymarket.currentOdds.no);L.set("odds","".concat(t,"/").concat(r));let o=(0,n.xn)({prediction:N,currentOdds:e.polymarket.currentOdds});null!=o&&L.set("marketProb",String(Math.round(100*o)))}if((null===(i=e.polymarket)||void 0===i?void 0:i.endDate)&&L.set("endDate",e.polymarket.endDate),e.uploadedAt&&L.set("time",e.uploadedAt),e.isAIGenerated&&L.set("isAI","true"),"resolved_correct"===e.status||"resolved_incorrect"===e.status){let t="resolved_correct"===e.status;L.set("result",t?"CORRECT":"INCORRECT");let r="YES"===N?null!==(p=null===(b=e.outcomeLabels)||void 0===b?void 0:b[0])&&void 0!==p?p:"":null!==(x=null===(f=e.outcomeLabels)||void 0===f?void 0:f[1])&&void 0!==x?x:"",o="YES"===N?null!==(y=null===(g=e.outcomeLabels)||void 0===g?void 0:g[1])&&void 0!==y?y:"":null!==(k=null===(v=e.outcomeLabels)||void 0===v?void 0:v[0])&&void 0!==k?k:"",a=(0,n.Z0)({explicitResolvedOutcomeLabel:null!==(w=e.resolvedOutcomeLabel)&&void 0!==w?w:e.actualOutcomeLabel,actualWinningOutcome:null!==(j=e.winningOutcomeLabel)&&void 0!==j?j:e.resolvedValue,prediction:N,isCorrect:t,outcomeLabels:e.outcomeLabels,predictedOutcome:r,fallbackValue:t?r:o});a&&L.set("actualOutcome",a)}return L.set("v","10"),"".concat(l,"/api/og/prediction?").concat(L.toString())}async function s(e,t){let r=await fetch(e);if(!r.ok)throw Error("Image fetch failed (".concat(r.status,")"));let o=await r.blob(),a=URL.createObjectURL(o);try{let e=document.createElement("a");e.href=a,e.download=t,document.body.appendChild(e),e.click(),document.body.removeChild(e)}finally{URL.revokeObjectURL(a)}}async function d(e,t,r){var o;let a=await fetch(e);if(!a.ok)throw Error("Image fetch failed (".concat(a.status,")"));let n=await a.blob(),l=new File([n],r,{type:n.type||"image/png"}),i="undefined"!=typeof navigator?navigator:null;if(i&&"function"==typeof i.share&&(null===(o=i.canShare)||void 0===o?void 0:o.call(i,{files:[l]})))try{return await i.share({title:t,files:[l]}),{shared:!0}}catch(e){if((null==e?void 0:e.name)==="AbortError")return{shared:!1}}let s=URL.createObjectURL(n);try{let e=document.createElement("a");e.href=s,e.download=r,document.body.appendChild(e),e.click(),document.body.removeChild(e)}finally{URL.revokeObjectURL(s)}return{shared:!1}}function c(e){let{video:t,visible:r,onClose:n}=e,[c,u]=(0,a.useState)(!1),[h,m]=(0,a.useState)(!1),[b,f]=(0,a.useState)(!1),[g,v]=(0,a.useState)(!1),[p,x]=(0,a.useState)(0),[y,k]=(0,a.useState)(null);(0,a.useEffect)(()=>{r&&(u(!1),m(!1),f(!1),v(!1),k(null),x(0))},[r,null==t?void 0:t.id]),(0,a.useEffect)(()=>{if(!r)return;let e=e=>{"Escape"===e.key&&n()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r,n]);let w=(0,a.useCallback)(async()=>
1{if(t)try{var e;await navigator.clipboard.writeText((e=t.id,"".concat(l,"/prediction-market/").concat(e))),u(!0),setTimeout(()=>u(!1),1500)}catch(e){k("Could not copy link")}},[t]),j=(0,a.useCallback)(async()=>{if(t&&!h){m(!0),k(null);try{await s(i(t),"eroteme-prediction-".concat(t.id,".png"))}catch(e){k(e instanceof Error?e.message:"Couldn't download image. Please try again.")}finally{m(!1)}}},[t,h]),L=(0,a.useCallback)(async()=>{if(t&&!b){f(!0),k(null);try{await d(i(t),"Eroteme Prediction","eroteme-prediction-".concat(t.id,".png")),n()}catch(e){k(e instanceof Error?e.message:"Couldn't share image. Please try again.")}finally{f(!1)}}},[t,b,n]),C=(0,a.useCallback)(()=>{v(!1),x(e=>e+1)},[]);if(!r||!t)return null;let N=i(t),E=p>0?"".concat(N,"&_r=").concat(p):N;return(0,o.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:n,role:"dialog","aria-modal":"true","aria-label":"Share prediction",children:[(0,o.jsx)("div",{className:"absolute inset-0 bg-black/70 backdrop-blur-sm"}),(0,o.jsxs)("div",{className:"relative w-full max-w-md rounded-2xl bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-700 shadow-2xl p-4",onClick:e=>e.stopPropagation(),children:[(0,o.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,o.jsx)("h2",{className:"text-base font-bold text-gray-900 dark:text-white",children:"Share prediction"}),(0,o.jsx)("button",{onClick:n,className:"p-1.5 rounded-full text-gray-500 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors","aria-label":"Close",children:(0,o.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,o.jsx)("div",{className:"w-full rounded-xl overflow-hidden bg-gray-100 dark:bg-gray-800 mb-3 relative",style:{aspectRatio:"1200 / 630"},children:g?(0,o.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-2 p-4",children:[(0,o.jsx)("svg",{className:"w-7 h-7 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})}),(0,o.jsx)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:"Preview unavailable"}),(0,o.jsx)("button",{onClick:C,className:"mt-1 px-3 py-1 rounded-full border border-gray-300 dark:border-gray-600 text-xs font-semibold text-gray-700 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:"Retry"})]}):(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("img",{src:E,alt:"Prediction slip preview",className:"w-full h-full object-cover",onError:()=>v(!0)})})}),y&&(0,o.jsx)("p",{className:"text-xs text-red-500 dark:text-red-400 mb-2","aria-live":"polite",children:y}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsxs)("button",{onClick:w,className:"h-11 rounded-xl border border-gray-300 dark:border-gray-600 bg-transparent text-gray-900 dark:text-white font-semibold text-sm flex items-center justify-center gap-2 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors","aria-label":c?"Link copied":"Copy link",children:[c?(0,o.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,d:"M5 13l4 4L19 7"})}):(0,o.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})}),(0,o.jsx)("span",{children:c?"Copied!":"Copy link"})]}),(0,o.jsx)("button",{onClick:j,disabled:h,className:"h-11 rounded-xl border border-gray-300 dark:border-gray-600 bg-transparent text-gray-900 dark:text-white font-semibold text-sm flex items-center justify-center gap-2 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors disabled:opacity-70 disabled:cursor-not-allowed","aria-label":"Download image","aria-busy":h,children:h?(0,o.jsxs)("svg",{className:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,o.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:4}),(0,o.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),(0,o.jsx)("span",{children:"Download image"})]})}),(0,o.jsx)("button",{onClick:L,disabled:b,className:"h-12 rounded-xl bg-indigo-600 dark:bg-matrix-green text-white dark:text-matrix-black font-bold text-sm flex items-center justify-center gap-2 hover:bg-indigo-700 dark:hover:bg-matrix-neon transition-colors disabled:opacity-70 disabled:cursor-not-allowed","aria-label":"Share image","aria-busy":b,children:b?(0,o.jsxs)("svg",{className:"w-5 h-5 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[(0,o.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:4}),(0,o.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"})}),(0,o.jsx)("span",{children:"Share image"})]})})]})]})]})}},13318:function(e,t,r){r.d(t,{Z0:function(){return d},xn:function(){return l}});let o=new Set(["yes","no","over","under","up","down"]);function a(e){return"string"==typeof e?e.trim():""}function n(e){return a(e).replace(/\s*[—–]\s*/g,", ").replace(/\s+,/g,",").replace(/,{2,}/g,",").trim()}function l(){let{prediction:e,currentOdds:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=a(e).toUpperCase();if("YES"!==r&&"NO"!==r||!t||"object"!=typeof t)return null;let o=Number("YES"===r?t.yes:t.no);return!Number.isFinite(o)||o<0||o>1?null:o}function i(e,t){let r=a(e).toLowerCase(),o=a(t).toLowerCase();return!!o&&r==="not ".concat(o)}function s(e,t,r){let o=n(e);return o?i(o,r)||/^not\s+/i.test(o)&&o.toLowerCase()===a(t).toLowerCase()?"No":o:""}function d(){let{explicitResolvedOutcomeLabel:e,actualWinningOutcome:t,prediction:r,isCorrect:l,outcomeLabels:d=[],predictedOutcome:c,fallbackValue:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},h=Array.isArray(d)?d:[],m=h[0]||c||"",b=s(e,c,m);if(b)return b;let f=s(t,c,m);if(f)return f;let g=a(r).toUpperCase(),v=l?g:"YES"===g?"NO":"NO"===g?"YES":"",p="YES"===v?0:"NO"===v?1:-1,x=p>=0?a(h[p]):"";return x?o.has(a(x).toLowerCase())?x:i(x,m)?"No":n(x):s(u,c,m)||("YES"===v?"Yes":"NO"===v?"No":"")}}}]);

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.