1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="991e4f38-74be-16e8-6460-23f28fc35271")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,205534,283209,542892,41899,115290,349287,38842,e=>{"use strict";var r=e.i(685154),t=e.i(791342),l=e.i(125933),o=e.i(983607),a=e.i(759210),s=e.i(312655),n=e.i(994659),i=e.i(980900);function c(e,r){!function(e){try{e()}catch(e){console.warn("[analytics] tracking call failed:",e);return}}(()=>i.mixpanel.track(e,r))}e.s(["track",0,c],283209),e.i(458252);var d=e.i(977729);function m({contestId:e,contestTitle:l,variant:o="primary",label:a,children:s,source:i,mode:d}){let{locale:u,dict:x}=(0,n.useLocaleContext)(),[f,p]=(0,t.useState)(!1),h=d??(e?"contest":"filter");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button",className:"primary"===o?"btn btn-brand btn-sm":"ghost"===o?"btn btn-ghost btn-sm":"text-sm font-medium px-2 py-1.5",style:"link"===o?{color:"var(--color-brand-darker)",textDecoration:"none"}:void 0,onClick:()=>{c("notify_clicked",{source:i,mode:h,contest_id:e??null,contest_title:l??null}),p(!0)},children:s??a??x.card.notify}),f&&(0,r.jsx)(g,{dict:x,locale:u,contestId:e,contestTitle:l,source:i,mode:h,onClose:()=>p(!1)})]})}let u=["manga","illustration","webtoon","4koma","doujin"],x=["global","jp","en","kr"],f=["flagship","major","standard","local"];function g({dict:e,locale:l,contestId:n,contestTitle:i,source:m,mode:b,onClose:v}){let[j,y]=(0,t.useState)(null),[k,N]=(0,t.useState)(""),[w,S]=(0,t.useState)(new Set),[_,C]=(0,t.useState)(new Set),[z,L]=(0,t.useState)("standard"),[M,T]=(0,t.useState)(!0),[W,D]=(0,t.useState)(!0),[E,P]=(0,t.useState)(!1),[B,H]=(0,t.useState)(!1),A="contest"===b,F=(0,t.useRef)(!1);(0,t.useEffect)(()=>{let r=!1;return fetch("/api/me").then(e=>e.ok?e.json():null).then(t=>{r||!t?y({signedIn:!1,email:null,subscription:null,follows:null}):(y(t),t.signedIn&&t.email&&N(e=>""===e?t.email??"":e),!A&&t.subscription&&(S(new Set(t.subscription.categories)),C(new Set(t.subscription.regions)),L(t.subscription.minPrizeTier),T(t.subscription.notifyOnNew),D(t.subscription.notifyOnDeadline)),t.signedIn&&(A&&n?t.follows?.includes(n)&&(c("notify_already_subscribed",{source:m,mode:"contest",contest_id:n,contest_title:i??null}),a.toast.message((0,s.format)(e.notify.alreadyFollowing,{title:i??""}))):!A&&t.subscription&&(c("notify_already_subscribed",{source:m,mode:"filter",contest_id:null}),a.toast.message(e.notify.alreadySubscribedFilters))))}).catch(()=>y({signedIn:!1,email:null,subscription:null,follows:null})),()=>{r=!0}},[]),(0,t.useEffect)(()=>{let e=e=>{"Escape"===e.key&&v()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[v]),(0,t.useEffect)(()=>{let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[]),(0,t.useEffect)(()=>()=>{F.current||c("notify_cancelled",{source:m,mode:b,contest_id:n??null})},[]);let[R,$]=(0,t.useState)(!1);function O(e,r){let t=new Set(e);return t.has(r)?t.delete(r):t.add(r),t}async function U(r){if(r.preventDefault(),E)return;P(!0);let t=(0,d.toEmailLocale)(l),o=A?{email:k,contestId:n,contestTitle:i,notifyOnDeadline:W,locale:t}:{email:k,categories:Array.from(w),regions:Array.from(_),minPrizeTier:z,notifyOnNew:M,notifyOnDeadline:W,locale:t},s={source:m,mode:b,contest_id:n??null,...A?{notify_on_deadline:W}:{categories:Array.from(w),regions:Array.from(_),min_prize_tier:z,notify_on_new:M,notify_on_deadline:W,had_existing_subscription:j?.subscription!=null}};try{let e=await fetch("/api/subscriptions/anon",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(o)});if(!e.ok)throw Error(await e.text());c("notify_submitted",s),F.current=!0,H(!0)}catch(r){console.error(r),c("notify_submit_failed",{...s,error_message:r instanceof Error?r.message:String(r)}),a.toast.error(e.notify.failure)}finally{P(!1)}}if((0,t.useEffect)(()=>{$(!0)},[]),!R)return null;let I=j?.signedIn===!0,J=B?A?(0,s.format)(e.notify.successContestTitle,{title:i??""}):e.notify.successTitle:A?(0,s.format)(e.notify.contestTitle,{title:i??""}):e.notify.title,K=A?e.notify.contestSub:e.notify.sub,G=A?e.notify.submitContest:e.notify.submit;return(0,o.createPortal)((0,r.jsx)("div",{role:"dialog","aria-modal":"true",className:"fixed inset-0 z-[100] flex items-end sm:items-center justify-center p-0 sm:p-4",style:{background:"color-mix(in srgb, var(--color-ink) 38%, transparent)"},onClick:e=>{e.target===e.currentTarget&&v()},children:(0,r.jsxs)("div",{className:"surface w-full max-w-lg flex flex-col",style:{background:"var(--color-surface)",maxHeight:"90dvh",borderRadius:"var(--radius-lg)"},children:[(0,r.jsxs)("header",{className:"flex items-start justify-between gap-4 p-6 md:p-7 pb-4 flex-shrink-0",style:{borderBottom:"1px solid var(--color-line)"},children:[(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("span",{className:"tag",children:e.nav.notifyMe}),(0,r.jsx)("h2",{className:"font-display mt-3",style:{fontSize:"1.4rem",color:"var(--color-ink)",fontWeight:600,letterSpacing:"-0.02em"},children:J})]}),(0,r.jsx)("button",{type:"button","aria-label":"Close",className:"text-2xl leading-none px-2 -mr-2 text-[color:var(--color-muted)] hover:text-[color:var(--color-ink)] flex-shrink-0",onClick:v,children:"Ã"})]}),B?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex flex-col gap-4 px-6 md:px-7 py-6 overflow-y-auto",style:{minHeight:0},children:[(0,r.jsx)("p",{className:"text-sm leading-relaxed",style:{color:"var(--color-ink)"},children:A?(0,s.format)(e.notify.successContestBody,{title:i??"",email:k}):(0,s.format)(e.notify.successBody,{email:k})}),(0,r.jsx)("p",{className:"text-xs text-[color:var(--color-muted)] leading-relaxed",children:e.notify.successHint})]}),(0,r.jsx)("footer",{className:"flex items-center justify-end gap-2 px-6 md:px-7 py-4 flex-shrink-0",style:{borderTop:"1px solid var(--color-line)",background:"var(--color-surface)",borderBottomLeftRadius:"var(--radius-lg)",borderBottomRightRadius:"var(--radius-lg)"},children:(0,r.jsx)("button",{type:"button",className:"btn btn-brand",onClick:v,children:e.notify.successClose})})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("form",{id:"notify-me-form",className:"flex flex-col gap-5 px-6 md:px-7 py-5 overflow-y-auto",style:{minHeight:0},onSubmit:U,children:[(0,r.jsx)("p",{className:"text-sm text-[color:var(--color-muted)] leading-relaxed",children:K}),(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("label",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",htmlFor:"notify-email",children:e.notify.emailLabel}),(0,r.jsx)("input",{id:"notify-email",type:"email",required:!0,value:k,onChange:e=>N(e.target.value),placeholder:e.notify.emailPlaceholder,readOnly:I,"aria-readonly":I,className:"px-3 py-2 rounded-md border text-sm transition-colors",style:{borderColor:"var(--color-line-strong)",background:I?"var(--color-subtle)":"var(--color-surface)",color:I?"var(--color-ink-soft)":"var(--color-ink)",cursor:
2I?"not-allowed":"text"}}),I&&j?.email&&(0,r.jsxs)("p",{className:"text-xs flex items-center gap-1.5",style:{color:"var(--color-muted)"},children:[(0,r.jsx)("span",{"aria-hidden":!0,style:{display:"inline-block",width:6,height:6,borderRadius:999,background:"var(--color-brand)"}}),e.notify.emailFromM2w]})]}),!A&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{label:e.notify.filtersCategoriesLabel,options:u.map(r=>({value:r,label:e.categories[r]??r})),selected:w,onToggle:e=>S(r=>O(r,e))}),(0,r.jsx)(p,{label:e.notify.filtersRegionsLabel,options:x.map(r=>({value:r,label:e.regions[r]??r})),selected:_,onToggle:e=>C(r=>O(r,e))}),(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("label",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:e.notify.filtersMinTierLabel}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5",children:f.map(t=>(0,r.jsx)("button",{type:"button",className:"px-3 py-1.5 rounded-full text-xs font-medium border transition-colors",style:z===t?{background:"var(--color-ink)",color:"white",borderColor:"var(--color-ink)"}:{background:"transparent",color:"var(--color-ink-soft)",borderColor:"var(--color-line-strong)"},onClick:()=>L(t),children:e.prizeTiers[t]??t},t))})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2 pt-1",children:[(0,r.jsx)(h,{label:e.notify.filtersOnNew,checked:M,onChange:T}),(0,r.jsx)(h,{label:e.notify.filtersOnDeadline,checked:W,onChange:D})]})]}),A&&(0,r.jsx)("div",{className:"flex flex-col gap-2 pt-1",children:(0,r.jsx)(h,{label:e.notify.filtersOnDeadline,checked:W,onChange:D})}),(0,r.jsx)("p",{className:"text-xs text-[color:var(--color-muted)] leading-relaxed",children:e.notify.privacy})]}),(0,r.jsx)("footer",{className:"flex items-center justify-end gap-2 px-6 md:px-7 py-4 flex-shrink-0",style:{borderTop:"1px solid var(--color-line)",background:"var(--color-surface)",borderBottomLeftRadius:"var(--radius-lg)",borderBottomRightRadius:"var(--radius-lg)"},children:(0,r.jsx)("button",{type:"submit",form:"notify-me-form",className:"btn btn-brand",disabled:E||!j,children:E?"â¦":G})})]})]})}),document.body)}function p({label:e,options:t,selected:l,onToggle:o}){return(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:e}),(0,r.jsx)("div",{className:"flex flex-wrap gap-1.5",children:t.map(e=>{let t=l.has(e.value);return(0,r.jsx)("button",{type:"button",onClick:()=>o(e.value),className:"px-3 py-1.5 rounded-full text-xs font-medium border transition-colors",style:t?{background:"var(--color-brand)",color:"white",borderColor:"var(--color-brand)"}:{background:"transparent",color:"var(--color-ink-soft)",borderColor:"var(--color-line-strong)"},children:e.label},e.value)})})]})}function h({label:e,checked:t,onChange:l}){return(0,r.jsxs)("label",{className:"flex items-center justify-between gap-3 cursor-pointer text-sm",children:[(0,r.jsx)("span",{style:{color:"var(--color-ink-soft)"},children:e}),(0,r.jsx)("button",{type:"button",role:"switch","aria-checked":t,onClick:()=>l(!t),className:"relative rounded-full transition-colors",style:{width:36,height:20,background:t?"var(--color-brand)":"var(--color-line-strong)"},children:(0,r.jsx)("span",{className:"absolute top-0.5 rounded-full transition-all",style:{width:16,height:16,background:"white",left:t?18:2,boxShadow:"0 1px 3px rgba(0,0,0,0.15)"}})})]})}e.s(["NotifyMeButton",0,m],542892);var b=e.i(148431);function v(){let{locale:e,setLocale:l,dict:o}=(0,n.useLocaleContext)(),[a,i]=(0,t.useState)(!1),c=(0,t.useRef)(null),d=(0,t.useCallback)(()=>i(!1),[]);return(0,t.useEffect)(()=>{if(!a)return;let e=e=>{c.current?.contains(e.target)||d()},r=e=>{"Escape"===e.key&&d()};return document.addEventListener("pointerdown",e),document.addEventListener("keydown",r),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("keydown",r)}},[a,d]),(0,r.jsxs)("div",{ref:c,className:"relative inline-flex items-center font-mono text-[0.7rem] uppercase tracking-[0.14em]",children:[(0,r.jsxs)("button",{type:"button",onClick:()=>i(e=>!e),"aria-haspopup":"listbox","aria-expanded":a,"aria-label":o.nav.languageToggleLabel,className:"inline-flex items-center gap-1.5 transition-colors focus:outline-none focus-visible:underline underline-offset-4",style:{color:"var(--color-ink)",fontWeight:600},children:[(0,r.jsx)("span",{lang:e,children:"en"===e?"EN":(0,b.languageEndonym)(e)}),(0,r.jsx)("span",{"aria-hidden":!0,style:{color:"var(--color-muted)"},children:"â¾"})]}),a&&(0,r.jsx)("ul",{role:"listbox","aria-label":o.nav.languageToggleLabel,className:"absolute right-0 top-full z-20 mt-2 min-w-[8.5rem] overflow-hidden rounded-[var(--radius-sm,6px)] py-1",style:{background:"var(--color-surface)",border:"1px solid var(--color-line)",boxShadow:"0 16px 32px -20px rgba(14,13,16,0.4)"}
2,children:s.SUPPORTED_LOCALES.map(t=>{let o=t===e;return(0,r.jsx)("li",{role:"none",children:(0,r.jsx)("button",{type:"button",role:"option","aria-selected":o,lang:t,onClick:()=>{o||l(t),d()},className:"block w-full px-3 py-1.5 text-left normal-case tracking-normal transition-colors focus:outline-none focus-visible:underline underline-offset-4",style:{color:o?"var(--color-ink)":"var(--color-muted)",cursor:o?"default":"pointer",fontWeight:o?600:400},children:(0,b.languageEndonym)(t)})},t)})})]})}e.s(["MarketingNav",0,function(){let{locale:e,dict:o}=(0,n.useLocaleContext)(),[a,s]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{let e=()=>s(window.scrollY>12);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,r.jsx)("header",{className:"sticky top-0 z-50 transition-colors",style:{background:a?"color-mix(in srgb, var(--color-canvas) 88%, transparent)":"transparent",backdropFilter:a?"saturate(140%) blur(12px)":void 0,WebkitBackdropFilter:a?"saturate(140%) blur(12px)":void 0,borderBottom:`1px solid ${a?"var(--color-line)":"transparent"}`},children:(0,r.jsxs)("div",{className:"container-page flex items-center gap-5 py-3",children:[(0,r.jsxs)(l.default,{href:`/${e}/contests`,className:"flex items-center gap-2",style:{textDecoration:"none"},children:[(0,r.jsx)("img",{src:"/icons/icon_color.svg",alt:"","aria-hidden":!0,width:28,height:28,style:{width:28,height:28,display:"inline-block",flexShrink:0}}),(0,r.jsxs)("span",{className:"flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"font-display",style:{color:"var(--color-ink)",fontWeight:600,fontSize:"1.05rem",lineHeight:1,letterSpacing:"-0.02em"},children:o.nav.brand}),(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.18em]",style:{color:"var(--color-muted)",lineHeight:1},children:o.nav.sectionLabel})]})]}),(0,r.jsx)("nav",{"aria-label":"Primary",className:"hidden md:flex flex-1 justify-center",children:(0,r.jsx)("ul",{className:"flex gap-1 p-1 rounded-full",style:{listStyle:"none",margin:0,background:"color-mix(in srgb, var(--color-surface) 60%, transparent)",border:"1px solid var(--color-line)",boxShadow:"0 1px 2px rgba(14,13,16,0.03)"},children:o.nav.primary.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:e.href,className:"px-3.5 py-1.5 text-sm font-medium rounded-full transition-colors",style:{color:"var(--color-muted)",textDecoration:"none"},children:e.label})},e.href))})}),(0,r.jsxs)("div",{className:"ml-auto flex items-center gap-2",children:[(0,r.jsx)(v,{}),(0,r.jsx)(m,{variant:"primary",source:"nav"})]})]})})}],205534),e.s(["MarketingFooter",0,function(){let e=(0,n.useDict)(),t=new Date().getFullYear();return(0,r.jsx)("footer",{className:"relative z-[3] pt-16 pb-10",style:{color:"var(--color-muted)"},children:(0,r.jsxs)("div",{className:"container-page",children:[(0,r.jsx)("div",{className:"hairline mb-12"}),(0,r.jsxs)("div",{className:"grid gap-10 md:grid-cols-[2fr_1fr_1fr_1fr] mb-12",children:[(0,r.jsxs)("div",{className:"max-w-md",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,r.jsx)("img",{src:"/icons/icon_color.svg",alt:"","aria-hidden":!0,width:28,height:28,style:{width:28,height:28,display:"inline-block",flexShrink:0}}),(0,r.jsx)("span",{className:"font-display",style:{color:"var(--color-ink)",fontWeight:600,fontSize:"1.05rem"},children:e.nav.brand})]}),(0,r.jsx)("p",{className:"text-sm leading-relaxed",style:{color:"var(--color-ink-soft)"},children:e.footer.tagline})]}),e.footer.cols.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"font-mono mb-3",style:{fontSize:"0.72rem",letterSpacing:"0.16em",textTransform:"uppercase",color:"var(--color-muted)",fontWeight:500},children:e.heading}),(0,r.jsx)("ul",{className:"flex flex-col gap-2",style:{listStyle:"none",padding:0,margin:0},children:e.links.map(e=>(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:e.href,className:"text-sm transition-colors",style:{color:"var(--color-ink-soft)",textDecoration:"none"},children:e.label})},e.href))})]},e.heading))]}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-2 pt-6 text-xs",style:{borderTop:"1px solid var(--color-line)",color:"var(--color-muted)"},children:[(0,r.jsx)("span",{children:(0,s.format)(e.footer.copyright,{year:t})}),(0,r.jsx)("span",{className:"font-mono uppercase",style:{fontSize:"0.7rem",letterSpacing:"0.12em"},children:e.footer.location})]})]})})}],41899);let j=["linear-gradient(135deg, #f1ebff 0%, #d8c8ff 100%)","linear-gradient(135deg, #fff2e2 0%, #ffd9a8 100%)","linear-gradient(135deg, #e5f7ec 0%, #b9ead0 100%)","linear-gradient(135deg, #ffe1ec 0%, #ffb9d2 100%)","linear-gradient(135deg, #e3edff 0%, #b8d0ff 100%)","linear-gradient(135deg, #f0eee9 0%, #d6d1c5 100%)"],y={sm:{box:28,font:"0.7rem",radius:6},md:{box:40,font:"0.95rem",radius:8},lg:{box:64,font:"1.3rem",radius:12}};e.s(["LogoMark",0,function({name:e,logoUrl:t,size:l="md",className:o}){let a=y[l];if(t)return(0,r.jsx)("img",{src:t,alt:e,width:a.box,height:a.box,className:o,style:{width:a.box,height:a.box,borderRadius:a.radius,objectFit:"contain",background:"var(--color-surface)",border:"1px solid var(--color-line)"}});let s=j[function(e){let r=0;for(let t=0;t<e.length;t++)r=31*r+e.charCodeAt(t)|0;return Math.abs(r)}(e)%j.length];return(0,r.jsx)("div",{className:o,style:{width:a.box,height:a.box,borderRadius:a.radius,background:s,border:"1px solid var(--color-line)",display:"inline-flex",alignItems:"center",justifyContent:"center",fontFamily:"var(--font-display)",fontWeight:600,fontSize:a.font,color:"var(--color-ink)",letterSpacing:"-0.01em",flexShrink:0},"aria-label":e,children:e.trim().split(/\s+/).slice(0,2).map(e=>e[0]?.toUpperCase()??"").join("")||"?"})}],115290);
2let k=new Set,N=null,w=null,S="u">typeof Date?Date.now():0;function _(){for(let e of(S=Date.now(),k))e(S)}function C(){null!==N||("u"<typeof document||!document.hidden)&&(N=setInterval(_,3e4))}function z(){null!==N&&(clearInterval(N),N=null)}function L(){let[e,r]=(0,t.useState)(()=>"u">typeof Date?Date.now():0);return(0,t.useEffect)(()=>{var e;return r(S||Date.now()),e=e=>r(e),k.add(e),null!==w||"u">typeof document&&(w=()=>{document.hidden?z():(_(),C())},document.addEventListener("visibilitychange",w)),C(),()=>{k.delete(e),0===k.size&&z()}},[]),e}e.s(["useNow",0,L],349287);e.s(["DeadlinePill",0,function({endsAt:e,startsAt:t,status:l,dict:o}){let a=L();if("ongoing"===l){let t=e.getTime()-a;if(t<=0||t<6e4)return(0,r.jsx)("span",{className:"tag tag-red",children:o.card.endsNow});if(t<36e5){let e=Math.max(1,Math.floor(t/6e4));return(0,r.jsx)("span",{className:"tag tag-red",children:1===e?o.card.minuteLeft:(0,s.format)(o.card.minutesLeft,{n:e})})}if(t<864e5){let e=Math.max(1,Math.floor(t/36e5));return(0,r.jsx)("span",{className:"tag tag-red",children:1===e?o.card.hourLeft:(0,s.format)(o.card.hoursLeft,{n:e})})}let l=Math.ceil(t/864e5);if(1===l)return(0,r.jsx)("span",{className:"tag tag-red",children:o.card.dayLeft});let n=l<=7;return(0,r.jsx)("span",{className:n?"tag tag-red":"tag tag-amber",children:(0,s.format)(o.card.daysLeft,{n:l})})}if("upcoming"===l){let e=t.getTime()-a;if(e<864e5)return(0,r.jsx)("span",{className:"tag",children:o.card.startsTomorrow});if(e<1728e5){let t=Math.max(1,Math.floor(e/36e5));return(0,r.jsx)("span",{className:"tag",children:(0,s.format)(o.card.startsInHours,{n:t})})}let l=Math.ceil(e/864e5);return(0,r.jsx)("span",{className:"tag",children:(0,s.format)(o.card.startsIn,{n:l})})}let n=a-e.getTime();if(n<36e5)return(0,r.jsx)("span",{className:"tag tag-muted",children:o.card.endedJustNow});if(n<864e5){let e=Math.max(1,Math.floor(n/36e5));return(0,r.jsx)("span",{className:"tag tag-muted",children:(0,s.format)(o.card.endedHoursAgo,{n:e})})}if(n<1728e5)return(0,r.jsx)("span",{className:"tag tag-muted",children:o.card.endedYesterday});let i=Math.floor(n/864e5);return(0,r.jsx)("span",{className:"tag tag-muted",children:(0,s.format)(o.card.endedDaysAgo,{n:i})})}],38842)},996691,e=>{"use strict";var r=e.i(685154),t=e.i(148431),l=e.i(312655);e.s(["LanguageNotice",0,function({state:e,dict:o,variant:a="banner",className:s}){let n=(0,t.listingNoticeFill)(e);if(!n)return null;let i=(0,t.listingNoticeKind)(e),c=(0,l.format)(o.languageNotice[n.key],n.values);if("badge"===a){let e=(0,l.format)(o.languageNotice[n.badgeKey],n.values);return(0,r.jsx)("span",{title:c,"aria-label":`${o.languageNotice.label}: ${c}`,className:["inline-flex items-center gap-1 rounded-full px-2 py-0.5 font-mono text-[0.6rem] uppercase tracking-[0.12em] whitespace-nowrap",s??""].join(" ").trim(),style:"content"===i?{background:"var(--color-subtle)",color:"var(--color-muted)",border:"1px solid var(--color-line)"}:{background:"color-mix(in srgb, #d97706 12%, var(--color-surface))",color:"#92400e",border:"1px solid color-mix(in srgb, #d97706 32%, var(--color-line))"},children:e})}return(0,r.jsxs)("p",{role:"note",className:["flex items-start gap-2 rounded-[var(--radius-sm,6px)] px-3 py-2 text-sm leading-snug",s??""].join(" ").trim(),style:"content"===i?{background:"var(--color-subtle)",color:"var(--color-ink-soft)",border:"1px solid var(--color-line)"}:{background:"color-mix(in srgb, #d97706 10%, var(--color-surface))",color:"#92400e",border:"1px solid color-mix(in srgb, #d97706 28%, var(--color-line))"},children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"mt-[0.1em] shrink-0 font-mono text-[0.7rem]",children:"content"===i?"æ":"!"}),(0,r.jsx)("span",{children:c})]})}])},183896,428406,55194,373701,254876,781326,43682,764818,208179,e=>{"use strict";var r=e.i(685154),t=e.i(349287);function l({value:e,label:t}){return(0,r.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,r.jsx)("span",{className:"font-display font-semibold text-2xl md:text-3xl tabular-nums",style:{color:"var(--color-ink)",letterSpacing:"-0.02em"},children:e.toString().padStart(2,"0")}),(0,r.jsx)("span",{className:"font-mono text-xs uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:t})]})}e.s(["Countdown",0,function({endsAt:e,dict:o}){let a,s,n,i=new Date(e),c=(0,t.useNow)(),d=(n=Math.floor((s=Math.floor((a=Math.max(0,i.getTime()-c))/6e4))/1440),{days:n,hours:Math.floor(s%1440/60),minutes:s%60,exhausted:0===a});return d.exhausted?(0,r.jsx)("div",{className:"font-mono text-sm uppercase tracking-[0.14em] text-[color:var(--color-accent-red)]",children:o.card.endsNow}):(0,r.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,r.jsx)(l,{value:d.days,label:"d"}),(0,r.jsx)("span",{className:"text-[color:var(--color-muted-soft)] text-xl",children:"·"}),(0,r.jsx)(l,{value:d.hours,label:"h"}),(0,r.jsx)("span",{className:"text-[color:var(--color-muted-soft)] text-xl",children:"·"}),(0,r.jsx)(l,{value:d.minutes,label:"m"})]})}],183896);var o=e.i(115290);e.s(["OrganizersRow",0,function({organizers:e,dict:t,size:l="md"}){if(0===e.length)return null;let a=e.length>1?t.card.organizers:t.card.organizer;return(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:a}),(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:e.map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-1.5",title:"organizer"!==e.role?e.role:void 0,children:[(0,r.jsx)(o.LogoMark,{name:e.name,logoUrl:e.logoUrl,
2size:l}),(0,r.jsx)("span",{className:"text-sm font-medium",style:{color:"var(--color-ink)"},children:e.name})]},e.id))})]})}],428406);var a=e.i(312655);let s={platinum:0,gold:1,silver:2,prize:3,partner:4};e.s(["SponsorsGrid",0,function({sponsors:e,dict:t,limit:l=5,size:n="md"}){if(0===e.length)return null;let i=[...e].sort((e,r)=>(s[e.tier]??99)-(s[r.tier]??99)||e.sortOrder-r.sortOrder),c=i.slice(0,l),d=i.length-c.length;return(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:t.card.sponsors}),(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[c.map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-1.5 px-1.5 py-1 rounded-md",style:{background:"platinum"===e.tier?"color-mix(in srgb, var(--color-brand-soft) 60%, white)":"var(--color-subtle)",border:"1px solid var(--color-line)"},title:`${e.name} \xb7 ${e.tier}`,children:[(0,r.jsx)(o.LogoMark,{name:e.name,logoUrl:e.logoUrl,size:n}),(0,r.jsx)("span",{className:"text-xs font-medium pr-1",style:{color:"var(--color-ink-soft)"},children:e.name})]},e.id)),d>0&&(0,r.jsx)("span",{className:"font-mono text-xs text-[color:var(--color-muted)] px-1.5",children:(0,a.format)(t.card.moreSponsors,{n:d})})]})]})}],55194),e.s(["JudgesGrid",0,function({judges:e,dict:t,variant:l="row",limit:a=6}){if(0===e.length)return(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:t.card.judges}),(0,r.jsx)("span",{className:"text-xs text-[color:var(--color-muted)] italic",children:t.card.noJudgesAnnounced})]});let s=e.slice(0,a),n=e.length-s.length;return"facepile"===l?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:t.card.judges}),(0,r.jsx)("div",{className:"flex items-center",children:s.map((e,t)=>(0,r.jsx)("div",{className:"rounded-full overflow-hidden",style:{marginLeft:0===t?0:-8,zIndex:s.length-t,border:"2px solid var(--color-surface)"},title:e.title?`${e.name} â ${e.title}`:e.name,children:(0,r.jsx)(o.LogoMark,{name:e.name,logoUrl:e.avatarUrl,size:"sm"})},e.id))}),n>0&&(0,r.jsxs)("span",{className:"font-mono text-xs text-[color:var(--color-muted)]",children:["+",n]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:t.card.judges}),(0,r.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-2",children:s.map(e=>(0,r.jsxs)("div",{className:"flex items-start gap-2",children:[(0,r.jsx)(o.LogoMark,{name:e.name,logoUrl:e.avatarUrl,size:"md"}),(0,r.jsxs)("div",{className:"min-w-0",children:[(0,r.jsx)("div",{className:"text-sm font-medium truncate",style:{color:"var(--color-ink)"},children:e.name}),e.title&&(0,r.jsx)("div",{className:"text-xs text-[color:var(--color-muted)] truncate",children:e.title})]})]},e.id))}),n>0&&(0,r.jsxs)("span",{className:"font-mono text-xs text-[color:var(--color-muted)]",children:["+",n]})]})}],373701),e.s(["PublishersWatching",0,function({publishers:e,dict:t}){return 0===e.length?null:(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:t.card.publishersWatching}),(0,r.jsx)("div",{className:"flex flex-wrap items-center gap-1.5",children:e.map(e=>(0,r.jsxs)("span",{className:"flex items-center gap-1 text-xs",style:{color:"var(--color-ink-soft)"},children:[(0,r.jsx)(o.LogoMark,{name:e.name,logoUrl:e.logoUrl,size:"sm"}),e.name]},e.id))})]})}],254876);var n=e.i(774534),i=e.i(255678);e.s(["RulesMarkdown",0,function({source:e}){return(0,r.jsx)("div",{className:"rules-markdown",children:(0,r.jsx)(n.default,{remarkPlugins:[i.default],components:{h1:({children:e})=>(0,r.jsx)("h2",{className:"font-display",style:{fontSize:"1.4rem",color:"var(--color-ink)",fontWeight:600,letterSpacing:"-0.02em",lineHeight:1.2,marginTop:"1.6rem",marginBottom:"0.6rem"},children:e}),h2:({children:e})=>(0,r.jsx)("h3",{className:"font-display",style:{fontSize:"1.15rem",color:"var(--color-ink)",fontWeight:600,letterSpacing:"-0.015em",lineHeight:1.25,marginTop:"1.4rem",marginBottom:"0.5rem"},children:e}),h3:({children:e})=>(0,r.jsx)("h4",{className:"font-display",style:{fontSize:"1.02rem",color:"var(--color-ink)",fontWeight:600,marginTop:"1.2rem",marginBottom:"0.4rem"},children:e}),p:({children:e})=>(0,r.jsx)("p",{style:{color:"var(--color-ink-soft)",fontSize:"0.95rem",lineHeight:1.6,margin:"0.5rem 0"},children:e}),ul:({children:e})=>(0,r.jsx)("ul",{style:{paddingLeft:"1.2rem",margin:"0.5rem 0",color:"var(--color-ink-soft)",fontSize:"0.95rem",lineHeight:1.55,listStyle:"disc"},children:e}),ol:({children:e})=>(0,r.jsx)("ol",{style:{paddingLeft:"1.2rem",margin:"0.5rem 0",color:"var(--color-ink-soft)",fontSize:"0.95rem",lineHeight:1.55,listStyle:"decimal"},children:e}),li:({children:e})=>(0,r.jsx)("li",{style:{margin:"0.2rem 0"},children:e}),strong:({children:e})=>(0,r.jsx)("strong",{style:{color:"var(--color-ink)",fontWeight:600},children:e}),em:({children:e})=>(0,r.jsx)("em",{style:{fontStyle:"italic"},children:e}),a:({href:e,children:t})=>(0,r.jsx)("a",{href:e??"#",target:e?.startsWith("http")?"_blank":void 0,rel:e?.startsWith("http")?"noreferrer":void 0,style:{color:"var(--color-brand-darker)",textDecoration:"underline",textUnderlineOffset:"2px"},children:t}),code:({children:e})=>(0,r.jsx)("code",{className:"font-mono",style:{background:"var(--color-subtle)",color:"var(--color-ink)",padding:"0.1rem 0.35rem",borderRadius:4,fontSize:"0.85em"},children:e}),pre:({children:e})=>(0,r.jsx)("pre",{className:"font-mono",style:{background:"var(--color-subtle)",border:"1px solid var(--color-line)",borderRadius:8,padding:"0.8rem 1rem",margin:"0.8rem 0",fontSize:"0.85rem",lineHeight:1.5,overflowX:"auto"},children:e}),blockquote:({children:e})=>(0,r.jsx)("blockquote",{style:{borderLeft:"3px solid var(--color-line-strong)",padding:"0.3rem 0 0.3rem 1rem",margin:"0.8rem 0",color:"var(--color-muted)",fontStyle:"italic"},children:e}),hr:()=>(0,r.jsx)("hr",{style:{border:"none",borderTop:"1px solid var(--color-line)",margin:"1.4rem 0"}}),table:({children:e})=>(0,r.jsx)("div",{style:{overflowX:"auto",margin:"0.8rem 0"},children:(0,r.jsx)("table",{style:{borderCollapse:"collapse",width:"100%",fontSize:"0.9rem"},children:e})}),th:({children:e})=>(0,r.jsx)("th",{style:{textAlign:"left",padding:"0.4rem 0.6rem",borderBottom:"1px solid var(--color-line-strong)",color:"var(--color-ink)",fontWeight:600},children:e}),td:({children:e})=>(0,r.jsx)("td",{style:{padding:"0.4rem 0.6rem",borderBottom:"1px solid var(--color-line)",color:"var(--color-ink-soft)",verticalAlign:"top"},children:e})},children:e})})}],781326);var c=e.i(791342),d=e.i(994659),m=e.i(283209);function u({children:e}){let t=(0,d.useLocale)();if("string"!=typeof e)return(0,r.jsx)(r.Fragment,{children:e});if("ja"!==t)return(0,r.jsx)(r.Fragment,{children:e.includes("|")?e.split("|").join(""):e});let l=e.split("|");return 1===l.length?(0,r.jsx)("span",{style:{wordBreak:"keep-all",overflowWrap:"anywhere"},children:e}):(0,r.jsx)("span",{style:{wordBreak:"keep-all",overflowWrap:"anywhere"},children:l.map((e,t)=>(0,r.jsxs)(c.Fragment,{children:[e,t<l.length-1?(0,r.jsx)("wbr",{}):null]},t))})}function x(e,r){let t=new URL("https://m2w.ai");return t.searchParams.set("utm_source","contests"),t.searchParams.set("utm_medium","cross_sell"),t.searchParams.set("utm_campaign",e),r&&t.searchParams.set("utm_content",r),t.toString()}function f(){return(0,r.jsx)("img",{src:"/icons/icon_color.svg",alt:"","aria-hidden":!0,width:16,height:16,style:{width:16,height:16,display:"inline-block",flexShrink:0,filter:"brightness(0) invert(1)"}})}e.s(["JaWrap",0,u],43682),e.s(["M2WPromoButton",0,function({slot:e,contestSlug:t}){let l=(0,d.useDict)(),o=(0,c.useMemo)(()=>x(e,t),[e,t]);return(0,c.useEffect)(()=>{(0,m.track)("m2w_promo_viewed",{slot:e,contest_slug:t??null})},[e,t]),(0,r.jsxs)("a",{"data-mp-promo-slot":e,href:o,target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,m.track)("m2w_promo_clicked",{slot:e,contest_slug:t??null,href:o})},className:"btn btn-brand btn-sm btn-fluid w-full justify-center",children:[(0,r.jsx)(f,{}),(0,r.jsx)("span",{children:(0,r.jsx)(u,{children:l.m2wPromo.ctaStandalone})}),(0,r.jsx)("span",{"aria-hidden":!0,style:{marginLeft:"0.1rem"},children:"â"})]})},"M2WPromoCard",0,function({slot:e,contestSlug:t,variant:l="sidebar"}){let o=(0,d.useDict)(),a=(0,c.useMemo)(()=>x(e,t),[e,t]);(0,c.useEffect)(()=>{(0,m.track)("m2w_promo_viewed",{slot:e,contest_slug:t??null})},[e,t]);let{headlineLead:s,headlineRest:n}=o.m2wPromo,i="inline"===l;return(0,r.jsxs)("aside",{"data-mp-promo-slot":e,className:i?"surface hover-lift p-6 md:p-7 flex flex-col md:flex-row md:items-center md:justify-between gap-5":"surface hover-lift p-5 flex flex-col gap-3",style:{background:"linear-gradient(135deg, var(--color-surface) 0%, var(--color-brand-mist) 70%, color-mix(in srgb, var(--color-brand) 10%, var(--color-surface)) 100%)",borderColor:"color-mix(in srgb, var(--color-brand) 22%, var(--color-line))"},children:[(0,r.jsxs)("div",{className:i?"min-w-0 max-w-2xl":"",children:[(0,r.jsx)("span",{className:"font-mono inline-block",style:{fontSize:"0.65rem",letterSpacing:"0.18em",textTransform:"uppercase",color:"var(--color-brand-darker)",fontWeight:600},children:o.m2wPromo.eyebrow}),(0,r.jsxs)("h3",{className:"font-display mt-2",style:{fontSize:i?"clamp(1.25rem, 2.1vw, 1.6rem)":"1.1rem",lineHeight:1.15,letterSpacing:"-0.02em",color:"var(--color-ink)",fontWeight:600,margin:0},children:[s&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{className:"editorial-italic",style:{fontWeight:400},children:s})," "]}),n]}),(0,r.jsx)("p",{className:"mt-2",style:{color:"var(--color-ink-soft)",fontSize:i?"0.95rem":"0.875rem",lineHeight:1.5,margin:0},children:o.m2wPromo.body})]}),(0,r.jsx)("div",{className:i?"flex-shrink-0":"mt-1",children:(0,r.jsxs)("a",{href:a,target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,m.track)("m2w_promo_clicked",{slot:e,contest_slug:t??null,href:a})},className:i?"btn btn-brand":"btn btn-brand btn-sm",children:[o.m2wPromo.cta,(0,r.jsx)("span",{"aria-hidden":!0,style:{marginLeft:"0.25rem"},children:"â"})]})})]})}],764818),e.i(230919);let g="https://discord.gg/aFH9Keu4cs",p="#5865F2";function h({small:e=!1}){let t=e?16:22;return(0,r.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"
2currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,focusable:"false",style:{flexShrink:0},children:(0,r.jsx)("path",{d:"M20.317 4.37a19.79 19.79 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.058a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.099.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03ZM8.02 15.331c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418Zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418Z"})})}e.s(["DiscordPromoButton",0,function({source:e}){let t=(0,d.useDict)();return(0,r.jsxs)("a",{href:g,target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,m.track)("discord_clicked",{source:e})},className:"btn btn-sm btn-fluid w-full justify-center",style:{background:p,color:"#ffffff",boxShadow:`inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0 rgba(0, 0, 0, 0.06), 0 10px 26px -10px ${p}80`},"aria-label":t.hero.discordCta,children:[(0,r.jsx)(h,{small:!0}),(0,r.jsx)("span",{children:t.hero.discordCta})]})},"DiscordPromoCard",0,function({source:e}){let t=(0,d.useDict)();return(0,r.jsxs)("a",{href:g,target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,m.track)("discord_clicked",{source:e})},className:"surface hover-lift flex items-start gap-4 p-5 md:p-6 w-full",style:{textDecoration:"none",color:"inherit",background:`linear-gradient(135deg, var(--color-surface) 0%, color-mix(in srgb, ${p} 8%, var(--color-surface)) 100%)`,borderColor:`color-mix(in srgb, ${p} 22%, var(--color-line))`,boxShadow:`0 1px 2px rgba(14, 13, 16, 0.04), 0 24px 48px -28px ${p}55`},"aria-label":t.hero.discordCta,children:[(0,r.jsx)("span",{"aria-hidden":!0,className:"flex items-center justify-center flex-shrink-0",style:{width:40,height:40,borderRadius:10,background:p,color:"#ffffff"},children:(0,r.jsx)(h,{})}),(0,r.jsxs)("span",{className:"min-w-0 flex flex-col gap-1",children:[(0,r.jsx)("span",{className:"font-mono uppercase",style:{fontSize:"0.65rem",letterSpacing:"0.14em",color:p,fontWeight:600},children:t.hero.discordHeading}),(0,r.jsx)("span",{className:"font-display",style:{fontSize:"1rem",lineHeight:1.2,color:"var(--color-ink)",fontWeight:600,letterSpacing:"-0.01em"},children:t.hero.discordCta}),(0,r.jsx)("span",{className:"text-xs leading-relaxed",style:{color:"var(--color-ink-soft)"},children:t.hero.discordBody})]})]})}],208179)},510886,e=>{"use strict";var r=e.i(685154),t=e.i(125933),l=e.i(759210),o=e.i(283209),a=e.i(115290),s=e.i(38842),n=e.i(183896),i=e.i(428406),c=e.i(55194),d=e.i(373701),m=e.i(254876),u=e.i(542892),x=e.i(781326),f=e.i(764818),g=e.i(208179),p=e.i(996691),h=e.i(148431),b=e.i(334131);function v({children:e}){return(0,r.jsx)("h3",{className:"font-mono mb-3",style:{fontSize:"0.72rem",letterSpacing:"0.16em",textTransform:"uppercase",color:"var(--color-muted)",fontWeight:500},children:e})}function j({title:e,url:t,contestId:a,contestSlug:s,surface:n,dict:i,compact:c=!1}){let d=async()=>{let r="u">typeof navigator?navigator:void 0,c=!!r?.share;if((0,o.track)("share_clicked",{surface:n,contest_id:a,contest_slug:s,method_attempted:c?"webshare":"clipboard"}),r?.share)try{await r.share({title:e,url:t}),(0,o.track)("share_completed",{surface:n,contest_id:a,contest_slug:s,method:"webshare"});return}catch(e){if(e instanceof DOMException&&("AbortError"===e.name||"NotAllowedError"===e.name))return void(0,o.track)("share_cancelled",{surface:n,contest_id:a,contest_slug:s})}try{await navigator.clipboard.writeText(t),(0,o.track)("share_completed",{surface:n,contest_id:a,contest_slug:s,method:"clipboard"}),l.toast.success(i.detail.shareCopied)}catch(e){(0,o.track)("share_failed",{surface:n,contest_id:a,contest_slug:s,error_message:e instanceof Error?e.message:String(e)}),l.toast.error(i.detail.shareFailed)}};return(0,r.jsxs)("button",{type:"button",onClick:d,className:c?"btn btn-ghost btn-sm":"btn btn-ghost","aria-label":i.detail.share,children:[(0,r.jsx)(y,{}),(0,r.jsx)("span",{className:"ml-1.5",children:i.detail.share})]})}function y(){return(0,r.jsxs)("svg",{viewBox:"0 0 16 16",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,
2children:[(0,r.jsx)("circle",{cx:"4",cy:"8",r:"2"}),(0,r.jsx)("circle",{cx:"12",cy:"3.5",r:"2"}),(0,r.jsx)("circle",{cx:"12",cy:"12.5",r:"2"}),(0,r.jsx)("path",{d:"M5.7 7l4.6-2.7"}),(0,r.jsx)("path",{d:"M5.7 9l4.6 2.7"})]})}e.s(["ContestDetailBody",0,function({contest:e,dict:l,locale:y,variant:k="page",showOpenFullPageLink:N=!1}){let w=(0,b.localizeContest)(e,y),S=(0,b.contestStatus)(w),_=l.prizeTiers[w.prizeTier]??w.prizeTier,C=w.heroColor||"#8452ff",z="pane"===k;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("section",{className:z?"relative":"relative overflow-hidden pt-6 pb-14",children:[!z&&(0,r.jsx)("div",{"aria-hidden":!0,className:"grid-lines"}),(0,r.jsx)("div",{className:z?"":"container-page relative z-10",children:(0,r.jsxs)("div",{className:z?"surface overflow-hidden p-6 md:p-7":"surface hover-lift overflow-hidden p-8 md:p-10",style:{background:`linear-gradient(135deg, color-mix(in srgb, ${C} 12%, var(--color-surface)) 0%, var(--color-surface) 55%, color-mix(in srgb, ${C} 6%, var(--color-surface)) 100%)`,borderColor:`color-mix(in srgb, ${C} 28%, var(--color-line))`,boxShadow:z?void 0:`0 1px 2px rgba(14, 13, 16, 0.04), 0 36px 72px -34px color-mix(in srgb, ${C} 50%, transparent)`},children:[(0,r.jsxs)("div",{className:z?"hidden md:flex items-center gap-2 flex-wrap":"flex items-center gap-2 flex-wrap",children:[(0,r.jsx)("span",{className:"tag",style:{background:"var(--color-surface)",color:`color-mix(in srgb, ${C} 75%, black)`,borderColor:`color-mix(in srgb, ${C} 50%, transparent)`},children:_}),(0,r.jsx)(s.DeadlinePill,{endsAt:w.endsAt,startsAt:w.startsAt,status:S,dict:l})]}),(0,r.jsxs)("div",{className:"mt-5 flex flex-col md:flex-row md:items-start gap-5",children:[(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,r.jsx)("h1",{className:"font-display",style:{fontSize:z?"clamp(1.5rem, 2.4vw, 2rem)":"clamp(2.1rem, 4.2vw, 3.2rem)",lineHeight:1.05,letterSpacing:"-0.025em",color:"var(--color-ink)",fontWeight:600},children:w.displayTitle}),w.tagline&&(0,r.jsx)("p",{className:"mt-3 editorial-italic",style:{color:"var(--color-ink-soft)",fontSize:z?"0.95rem":"1.15rem",lineHeight:1.5,fontWeight:400},children:w.tagline})]}),w.logoUrl&&(0,r.jsx)(a.LogoMark,{name:w.title,logoUrl:w.logoUrl,size:"lg"}),"ongoing"===S&&!z&&(0,r.jsxs)("div",{className:"surface-soft p-4 flex flex-col gap-2 md:min-w-[200px]",style:{borderColor:"var(--color-line)"},children:[(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:l.card.deadline}),(0,r.jsx)(n.Countdown,{endsAt:w.endsAt.toISOString(),dict:l})]})]}),"ongoing"===S&&z&&(0,r.jsxs)("div",{className:"mt-4 flex items-center gap-3 flex-wrap",children:[(0,r.jsx)("span",{className:"font-mono text-[0.65rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:l.card.deadline}),(0,r.jsx)(n.Countdown,{endsAt:w.endsAt.toISOString(),dict:l})]}),(0,r.jsx)(p.LanguageNotice,{state:w.language,dict:l,className:"mt-5"}),w.prizeSummary&&(0,r.jsxs)("div",{className:"mt-6 flex items-baseline gap-3 flex-wrap",children:[(0,r.jsx)("span",{className:"font-mono text-[0.7rem] uppercase tracking-[0.14em] text-[color:var(--color-muted)]",children:l.card.prize}),(0,r.jsx)("span",{className:"font-display",style:{color:"var(--color-ink)",fontSize:z?"1.25rem":"1.7rem",fontWeight:600},children:w.prizeSummary})]}),(0,r.jsxs)("div",{className:"mt-6 flex flex-wrap items-center gap-2",children:["ongoing"===S&&w.hasSubmissionUrl&&(0,r.jsx)("a",{href:`/go/${w.slug}`,target:"_blank",rel:"noreferrer",className:z?"btn btn-brand btn-sm":"btn btn-brand",onClick:()=>{(0,o.track)("contest_submit_clicked",{surface:z?"detail_pane":"detail_page",contest_id:w.id,contest_slug:w.slug,contest_title:w.title,prize_tier:w.prizeTier})},children:l.detail.submitCta}),"upcoming"===S&&(0,r.jsx)(u.NotifyMeButton,{contestId:w.id,contestTitle:w.displayTitle,variant:"primary",source:z?"detail_pane":"detail_page"}),(0,r.jsx)(j,{title:w.displayTitle,url:`https://m2w.ai/${y}/contests/${w.slug}`,contestId:w.id,contestSlug:w.slug,surface:z?"detail_pane":"detail_page",dict:l,compact:z}),N&&z&&(0,r.jsxs)(t.default,{href:`/${y}/contests/${w.slug}`,className:"text-xs font-medium ml-auto",style:{color:"var(--color-brand-darker)",textDecoration:"none"},children:[l.detail.openFullPage," â"]})]})]})})]}),(0,r.jsx)("section",{children:(0,r.jsx)("div",{className:z?"":"container-page",children:(0,r.jsxs)("div",{className:z?"flex flex-col gap-5 mt-4":"grid md:grid-cols-[minmax(0,2fr)_minmax(0,1fr)] gap-8 mt-4",children:[(w.description||w.rulesMd)&&(0,r.jsxs)("article",{className:z?"surface p-6":"surface p-7 md:p-8",children:[w.description&&(0,r.jsx)("p",{className:"text-base leading-relaxed",style:{color:"var(--color-ink-soft)"},children:w.description}),w.rulesMd&&(0,r.jsxs)("div",{className:w.description?"mt-8":"",children:[(0,r.jsx)("h2",{className:"font-display",style:{fontSize:z?"1.15rem":"1.4rem",color:"var(--color-ink)",fontWeight:600,letterSpacing:"-0.02em",marginBottom:"0.4rem"},children:l.detail.rulesHeading}),(0,r.jsx)(x.RulesMarkdown,{source:w.rulesMd})]})]}),(0,r.jsxs)("aside",{className:"flex flex-col gap-5",children:[w.language.accepted.length>0&&(0,r.jsxs)("div",{className:"surface hover-lift p-5",children:[(0,r.jsx)(v,{children:l.languageNotice.acceptsHeading}),(0,r.jsx)("p",{className:"text-sm",style:{color:"var(--color-ink-soft)"},children:(0,h.joinLanguageNames)(w.language.accepted,y)})]}),w.organizers.length>0&&(0,r.jsxs)("div",{className:"surface hover-lift p-5",children:[(0,r.jsx)(v,{children:l.detail.organizersHeading}),(0,r.jsx)(i.OrganizersRow,{organizers:w.organizers,dict:l,size:"md"})]}),w.judges.length>0&&(0,r.jsxs)("div",{className:"surface hover-lift p-5",children:[(0,r.jsx)(v,{children:l.detail.judgesHeading}),(0,r.jsx)(d.JudgesGrid,{judges:w.judges,dict:l,variant:"row",limit:12})]}),w.sponsors.length>0&&(0,r.jsxs)("div",{className:"surface hover-lift p-5",children:[(0,r.jsx)(v,{children:l.detail.sponsorsHeading}),(0,r.jsx)(c.SponsorsGrid,{sponsors:w.sponsors,dict:l,size:"md",limit:20})]}),w.publishersWatching.length>0&&(0,r.jsxs)("div",{className:"surface hover-lift p-5",children:[(0,r.jsx)(v,{children:l.detail.publishersHeading}),(0,r.jsx)(m.PublishersWatching,{publishers:w.publishersWatching,dict:l})]}),!z&&(0,r.jsx)(g.DiscordPromoCard,{source:"detail_sidebar"}),!z&&(0,r.jsx)(f.M2WPromoCard,{slot:"detail_sidebar",contestSlug:w.slug})]})]})})})]})}])}]); 3 4//# debugId=991e4f38-74be-16e8-6460-23f28fc35271
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.