PageSourceSearch

https://openarena.to/_next/static/chunks/0aja-oyd-5bgf.js?dpl=dpl_EzXK5x5rSghptniuBiGy2fPHmTNL

js openarena.to collected 2026-10-04 13:30:30 UTC 47,925 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,590818,e=>{"use strict";var t=e.i(850410);function r(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let n=r(0,t.useTranslations);r(0,t.useFormatter),e.s(["useTranslations",0,n])},273640,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return s},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return l}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,i(e));else t.set(r,i(n));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},508087,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return h},ST:function(){return x},WEB_VITALS:function(){return o},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return m},stringifyError:function(){return k}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>l.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function m(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let h="u">typeof performance,x=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function k(e){return JSON.stringify({message:e.message,stack:e.stack})}},909407,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},891954,(e,t,r)=>{t.exports=e.r(954760)},121685,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return s}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(744066)._(e.r(273640)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",a=e.pathname||"",l=e.hash||"",s=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let u=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||i.test(n))&&!1!==c?(c="//"+(c||""),a&&"/"!==a[0]&&(a="/"+a)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),a=a.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${a}${u}${l}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},225755,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(408996);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=o(e,n)),t&&(a.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("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)},243663,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(508087),a=e.r(188147);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,a.hasBasePath)(r.pathname)}catch(e){return!1}}},483379,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},493529,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return y}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(744066),i=e.r(473401),l=o._(e.r(408996)),s=e.r(121685),c=e.r(445730),u=e.r(225755),d=e.r(508087),f=e.r(479826);e.r(909407);let m=e.r(875777),p=e.r(26378),h=e.r(243663),x=e.r(583390);function g(t){var r,n;let a,o,g,[y,v]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),j=(0,l.useRef)(null),{href:k,as:w,children:N,prefetch:P=null,passHref:_,replace:L,shallow:E,scroll:S,onClick:C,onMouseEnter:O,onTouchStart:R,legacyBehavior:A=!1,onNavigate:T,transitionTypes:I,ref:$,unstable_dynamicOnHover:z,...M}=t;a=N,A&&("string"==typeof a||"number"==typeof a)&&(a=(0,i.jsx)("a",{children:a}));let F=l.default.useContext(c.AppRouterContext),U=!1!==P,D=!1!==P?null===(n=P)||"auto"===n?x.FetchStrategy.PPR:x.FetchStrategy.Full:x.FetchStrategy.PPR,B="string"==typeof(r=w||k)?r:(0,s.formatUrl)(r);if(A){if(a?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=l.default.Children.only(a)}let H=A?o&&"object"==typeof o&&o.ref:$,V=l.default.useCallback(e=>(null!==F&&(j.current=(0,p.mountLinkInstance)(e,B,F,D,U,v)),()=>{j.current&&((0,p.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,p.unmountPrefetchableInstance)(e)}),[U,B,F,D,v]),q={ref:(0,u.useMergedRef)(V,H),onClick(t){A||"function"!=typeof C||C(t),A&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!F||t.defaultPrevented||function(t,r,n,a,o,i,s){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){a&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(8352);l.default.startTransition(()=>{d(r,a?"replace":"push",!1===o?m.ScrollBehavior.NoScroll:m.ScrollBehavior.Default,n.current,s)})}}(t,B,j,L,S,T,I)},onMouseEnter(e){A||"function"!=typeof O||O(e),A&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),F&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===z)},onTouchStart:function(e){A||"function"!=typeof R||R(e),A&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),F&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===z)}};return(0,d.isAbsoluteUrl)(B)?q.href=B:A&&!_&&("a"!==o.type||"href"in o.props)||(q.href=(0,f.addBasePath)(B)),g=A?l.default.cloneElement(o,q):(0,i.jsx)("a",{...M,...q,children:a}),(0,i.jsx)(b.Provider,{value:y,children:g})}e.r(483379);let b=(0,l.createContext)(p.IDLE_LINK_STATUS),y=()=>(0,l.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},427205,391469,261737,590101,e=>{"use strict";var t=e.i(493529),r=e.i(891954),n=e.i(408996),a=e.i(850410),o=e.i(727474);function i(e){let t;return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&(null==(t="object"==typeof e?e.pathname:e)||!!t.startsWith("/"))}function l(e,t){let r=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),r+=t}function s(e,t,r){return"string"==typeof e?e:e[t]||r}function c(e){let t=function(){try{return"true"===o.default.env._next_intl_trailing_slash}catch{return!1}}(),[r,...n]=e.split("#"),a=n.join("#"),i=r;if("/"!==i){let e=i.endsWith("/");t&&!e?i+="/":!t&&e&&(i=i.slice(0,-1))}return a&&(i+="#"+a),i}function u(e,t){let r,n=c(e),a=c(t);return(r=n.replace(/\/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)"),RegExp(`^${r}$`)).test(a)}function d(e,t){return"never"!==t.mode&&t.prefixes?.[e]||f(e)}function f(e){return"/"+e}function m(e){return e.includes("[[...")}function p(e){return e.includes("[...")}function h(e){return e.includes("[")}function x(e,t){let r=e.split("/"),n=t.split("/"),a=Math.max(r.length,n.length);for(let e=0;e<a;e++){let t=r[e],a=n[e];if(!t&&a)return -1;if(t&&!a)return 1;if(t||a){if(!h(t)&&h(a))return -1;if(h(t)&&!h(a))return 1;if(!p(t)&&p(a))return -1;if(p(t)&&!p(a))return 1;if(!m(t)&&m(a))return -1;if(m(t)&&!m(a))return 1}}return 0}function g(e){return e.sort(x)}function b(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))Array.isArray(n)?n.forEach(e=>{t.append(r,String(e))}):t.set(r,String(n));return"?"+t.toString()}function y(e,t=window.location.pathname){return"/"===e?t:t.replace(e,"")}function v(e,t,r,n){if(!e||n===r||null==n||!t)return;let a=y(t),{name:o,...i}=e;i.path||(i.path=""!==a?a:"/");let l=`${o}=${n};`;for(let[e,t]of Object.entries(i))l+=`${"maxAge"===e?"max-age":e}`,"boolean"!=typeof t&&(l+="="+t),l+=";";document.cookie=l}e.s(["getLocaleAsPrefix",0,f,"getLocalePrefix",0,d,"getLocalizedTemplate",0,s,"getSortedPathnames",0,g,"hasPathnamePrefixed",0,function(e,t){return t===e||t.startsWith(`${e}/`)},"isLocalizableHref",0,i,"isPromise",0,function(e){return"function"==typeof e.then},"matchesPathname",0,u,"normalizeTrailingSlash",0,c,"prefixPathname",0,l,"unprefixPathname",0,function(e,t){return e.replace(RegExp(`^${t}`),"")||"/"}],391469),e.s(["applyPathnamePrefix",0,function(e,t,r,n){let a,{mode:o}=r.localePrefix;if(void 0!==n)a=n;else if(i(e)){let e=r.domains?.find(e=>e.locales.includes(t)),n=e?.localePrefix||o;"always"===n?a=!0:"as-needed"===n&&(a=e?t!==e.defaultLocale:t!==r.defaultLocale)}return a?l(d(t,r.localePrefix),e):e},"compileLocalizedPathname",0,function({pathname:e,locale:t,params:r,pathnames:n,query:a}){function o(e){let o,i=n[e];return i?(o=s(i,t,e),r&&Object.entries(r).forEach(([e,t])=>{let r,n;Array.isArray(t)?(r=`(\\[)?\\[...${e}\\](\\])?`,n=t.map(e=>String(e)).join("/")):(r=`\\[${e}\\]`,n=String(t)),o=o.replace(RegExp(r,"g"),n)}),o=new URL(o=o.replace(/\[\[\.\.\..+\]\]/g,""),"http://l").pathname):o=e,o=c(o),a&&(o+=b(a)),o}if("string"==typeof e)return o(e);{let{pathname:t,...r}=e;return{...r,pathname:o(t)}}},"getBasePath",0,y,"getRoute",0,function(e,t,r){let n=g(Object.keys(r)),a=decodeURI(t);for(let t of n){let n=r[t];if("string"==typeof n){if(u(n,a))return t}else if(u(s(n,e,t),a))return t}return t},"normalizeNameOrNameWithParams",0,function(e){return"string"==typeof e?{pathname:e}:e},"serializeSearchParams",0,b],261737),e.s(["default",0,v],590101);var j=e.i(473401),k=(0,n.forwardRef)(function({href:e,locale:n,localeCookie:o,onClick:i,prefetch:l,...s},c){let u=(0,a.useLocale)(),d=null!=n&&n!==u,f=(0,r.usePathname)();return d&&(l=!1),(0,j.jsx)(t.default,{ref:c,href:e,hrefLang:d?n:void 0,onClick:function(e){v(o,f,u,n),i&&i(e)},prefetch:l,...s})});e.s(["default",0,k],427205)},456904,160889,e=>{"use strict";var t=e.i(891954),r=e.i(408996),n=e.i(850410),a=r["use".trim()],o=e.i(391469),i=e.i(427205),l=e.i(261737),s=e.i(473401),c=e.i(590101);let u={locales:["en","zh"],defaultLocale:"en",localePrefix:"always"};e.s(["routing",0,u],160889);let{Link:d,redirect:f,usePathname:m,useRouter:p,getPathname:h}=function(e){let{Link:u,config:d,getPathname:f,...m}=function(e,n){var c,u,d;let f={...c=n||{},localePrefix:"object"==typeof(d=c.localePrefix)?d:{mode:d||"always"}
1,localeCookie:!!((u=c.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof u&&u},localeDetection:c.localeDetection??!0,alternateLinks:c.alternateLinks??!0},m=f.pathnames,p=(0,r.forwardRef)(function({href:t,locale:r,...n},l){let c,u;"object"==typeof t?(c=t.pathname,u=t.params):c=t;let d=(0,o.isLocalizableHref)(t),p=e(),x=(0,o.isPromise)(p)?a(p):p,g=d?h({locale:r||x,href:null==m?c:{pathname:c,params:u},forcePrefix:null!=r||void 0}):c;return(0,s.jsx)(i.default,{ref:l,href:"object"==typeof t?{...t,pathname:g}:g,locale:r,localeCookie:f.localeCookie,...n})});function h(e){let t,{forcePrefix:r,href:n,locale:a}=e;return null==m?"object"==typeof n?(t=n.pathname,n.query&&(t+=(0,l.serializeSearchParams)(n.query))):t=n:t=(0,l.compileLocalizedPathname)({locale:a,...(0,l.normalizeNameOrNameWithParams)(n),pathnames:f.pathnames}),(0,l.applyPathnamePrefix)(t,a,f,r)}function x(e){return function(t,...r){return e(h(t),...r)}}return{config:f,Link:p,redirect:x(t.redirect),permanentRedirect:x(t.permanentRedirect),getPathname:h}}(n.useLocale,e);return{...m,Link:u,usePathname:function(){let e,a,i=(e=(0,t.usePathname)(),a=(0,n.useLocale)(),(0,r.useMemo)(()=>{if(!e)return e;let t=e,r=(0,o.getLocalePrefix)(a,d.localePrefix);if((0,o.hasPathnamePrefixed)(r,e))t=(0,o.unprefixPathname)(e,r);else if("never"!==d.localePrefix.mode&&d.localePrefix.prefixes){let r=(0,o.getLocaleAsPrefix)(a);(0,o.hasPathnamePrefixed)(r,e)&&(t=(0,o.unprefixPathname)(e,r))}return t},[d.localePrefix,a,e])),s=(0,n.useLocale)();return(0,r.useMemo)(()=>i&&d.pathnames?(0,l.getRoute)(s,i,d.pathnames):i,[s,i])},useRouter:function(){let e=(0,t.useRouter)(),a=(0,n.useLocale)(),o=(0,t.usePathname)();return(0,r.useMemo)(()=>{function t(e){return function(t,r){let{locale:n,...i}=r||{},l=[f({href:t,locale:n||a,forcePrefix:null!=n||void 0})];Object.keys(i).length>0&&l.push(i),(0,c.default)(d.localeCookie,o,a,n),e(...l)}}return{...e,push:t(e.push),replace:t(e.replace),prefetch:t(e.prefetch)}},[a,o,e])},getPathname:f}}(u);e.s(["Link",0,d,"usePathname",0,m,"useRouter",0,p],456904)},960839,e=>{"use strict";var t=e.i(473401),r=e.i(590818);e.i(72714);var n=e.i(367263),a=e.i(903871),o=e.i(742032),i=e.i(14670),l=e.i(851422),s=e.i(456904);function c(){let e=(0,r.useTranslations)("AuthSection"),{user:i,setShowAuthFlow:c}=(0,a.useDynamicContext)(),u=(0,o.useIsLoggedIn)(),{status:d,logout:f,retry:m}=(0,l.useAuthSession)(),p=(0,s.usePathname)(),h=(0,s.useRouter)(),x=i?.email||i?.verifiedCredentials?.[0]?.address||e("account"),g=async()=>{try{await f(),"/profile"===p&&h.replace("/")}catch{}};return"loading"===d||"syncing"===d?(0,t.jsx)("div",{className:"flex h-7 items-center border border-(--border-color) bg-(--bg-card-hover) px-2.5 text-[10px] font-bold tracking-[0.14em] text-(--text-tertiary) sm:px-3",children:e("syncing")}):"error"===d?(0,t.jsx)("button",{type:"button",onClick:m,className:"flex h-7 items-center border border-red-500/40 bg-red-500/10 px-2.5 text-[10px] font-bold tracking-[0.14em] text-red-200 transition hover:bg-red-500/15 sm:px-3",children:e("retry")}):"authenticated"===d&&u&&i?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(s.Link,{href:"/profile",className:"flex h-7 items-center border border-[var(--green-border)] bg-[var(--green-dim)] px-2.5 text-[10px] font-bold tracking-[0.14em] text-(--accent-green) no-underline transition hover:bg-[var(--green-soft)] sm:px-3",children:e("profile")}),(0,t.jsxs)("div",{className:"relative flex h-7 items-center border border-(--border-color) bg-(--bg-card-hover) px-2.5 text-[10px] font-semibold text-(--text-primary) sm:px-3",children:[(0,t.jsx)("span",{className:"mr-2 h-1.5 w-1.5 bg-(--accent-green)"}),(0,t.jsx)("span",{className:"max-w-20 truncate sm:max-w-32",children:x}),(0,t.jsx)("div",{className:"absolute inset-0 z-10 cursor-pointer opacity-0 **:h-full **:w-full",children:(0,t.jsx)(n.DynamicWidget,{})})]}),(0,t.jsx)("button",{type:"button",onClick:g,className:"flex h-7 items-center border border-(--border-color) bg-transparent px-2.5 text-[10px] font-bold tracking-[0.14em] text-(--text-secondary) transition hover:border-red-400/50 hover:text-red-200",children:e("logout")})]}):(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)("button",{type:"button",onClick:()=>c(!0),className:"signon-btn flex h-7 items-center bg-(--accent-green) px-2.5 text-[10px] font-bold tracking-[0.08em] text-(--on-accent) transition hover:opacity-90 sm:px-3 sm:tracking-[0.14em]",children:e("signOn")})})}function u(){return(0,i.useDynamicEnabled)()?(0,t.jsx)(c,{}):null}var d=e.i(850410),f=e.i(891954),m=e.i(160889);function p(){let e=(0,r.useTranslations)("LocaleSwitcher"),n=(0,d.useLocale)(),a=(0,s.usePathname)(),o=(0,f.useSearchParams)(),i=m.routing.locales.find(e=>
1e!==n)??m.routing.defaultLocale,l=o.toString(),c=`/${i}${"/"===a?"":a}${l?`?${l}`:""}`;return(0,t.jsx)("nav",{"aria-label":e("label"),className:"flex items-center",children:(0,t.jsx)("a",{href:c,className:"inline-flex items-center justify-center text-[10px] font-bold tracking-[0.14em] uppercase text-(--text-secondary) transition-colors hover:text-(--text-primary)",children:e(`locales.${i}`)})})}var h=e.i(408996);function x(){let[e,r]=(0,h.useState)("dark");return(0,h.useEffect)(()=>{r("light"===document.documentElement.dataset.theme?"light":"dark")},[]),(0,t.jsx)("button",{type:"button",onClick:()=>{let t=window.scrollY,n="light"===e?"dark":"light";r(n),"light"===n?document.documentElement.dataset.theme="light":delete document.documentElement.dataset.theme;try{localStorage.setItem("oa-theme",n)}catch{}window.scrollTo(0,t),requestAnimationFrame(()=>window.scrollTo(0,t))},"aria-label":"light"===e?"Switch to dark theme":"Switch to light theme",title:"light"===e?"Switch to dark theme":"Switch to light theme",className:"flex h-7 w-7 items-center justify-center border border-(--border-color) text-[13px] text-(--text-secondary) transition-colors hover:border-(--text-tertiary) hover:text-(--text-primary)",children:"light"===e?"☾":"☀"})}e.s(["default",0,function({status:e,content:n,eventSlug:a}){let o,i,l=(0,r.useTranslations)("LiveTicker"),c=(0,r.useTranslations)("AnnouncementBar"),m=(0,d.useLocale)(),g=(0,f.usePathname)(),[b,y]=(0,h.useState)(null),v=a??((i=(o=g?.split("/").filter(Boolean)??[]).indexOf("events"))>=0?o[i+1]:void 0),j=(0,h.useMemo)(()=>{let e=new URLSearchParams({locale:m});return v&&e.set("event",v),`/api/live-ticker?${e.toString()}`},[m,v]);(0,h.useEffect)(()=>{if(n)return;let e=!1;async function t(){try{let t=await fetch(j,{cache:"no-store"});if(!t.ok)return;let r=await t.json();e||y(r)}catch{}}y(null),t();let r=window.setInterval(t,6e4);return()=>{e=!0,window.clearInterval(r)}},[n,j]);let k=e??b?.status??l("defaultStatus"),w=n??b?.content??l("defaultContent");return(0,t.jsxs)("div",{className:"sticky top-0 z-100 flex min-h-12.5 flex-wrap items-center gap-x-3 gap-y-2 border-b border-(--border-color) bg-(--bg-card) px-8 py-2 sm:flex-nowrap sm:px-20",children:[(0,t.jsx)(s.Link,{href:"/",prefetch:!0,children:(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2 text-[10px] font-bold text-(--accent-green) sm:gap-2.5 sm:text-[11px]",children:[(0,t.jsx)("span",{className:"ticker-dot h-1.5 w-1.5 rounded-full bg-(--accent-green)"}),k]})}),(0,t.jsx)("div",{className:"order-3 min-w-full flex-1 overflow-hidden text-[11px] text-(--text-secondary) sm:order-none sm:ml-10 sm:min-w-0",children:(0,t.jsxs)("div",{className:"ticker-marquee whitespace-nowrap",children:[w,"  ·  ",(0,t.jsx)("span",{className:"text-(--accent-green)",children:c("label")})," ",c("attentionAward")]})}),(0,t.jsxs)("div",{className:"ml-auto flex shrink-0 items-center gap-2",children:[(0,t.jsx)(x,{}),(0,t.jsx)(p,{}),(0,t.jsx)(s.Link,{href:"/submit",prefetch:!0,className:"flex h-7 items-center border border-(--accent-green) px-2.5 text-[10px] font-bold tracking-[0.08em] text-(--accent-green) no-underline transition hover:bg-[var(--green-soft)] sm:px-3 sm:tracking-[0.14em]",children:l("submit")}),(0,t.jsx)(u,{})]})]})}],960839)},56691,e=>{"use strict";var t=e.i(473401),r=e.i(590818),n=e.i(456904);let a="inline-flex min-w-0 items-center justify-center border border-[var(--green-border)] bg-[var(--green-dim)] p-1.5 text-center font-semibold tracking-[0.08em] text-(--accent-green) no-underline transition-all hover:-translate-y-0.5 hover:bg-[var(--green-soft)] md:px-3 md:py-1";function o({icon:e,label:r}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"md:hidden","aria-hidden":!0,children:e}),(0,t.jsx)("span",{className:"hidden md:inline",children:r})]})}let i={width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};e.s(["default",0,function(){let e=(0,r.useTranslations)("Footer");return(0,t.jsx)("footer",{className:"fixed inset-x-0 bottom-0 z-40 border-t border-(--border-color) bg-(--bg-card)/95 px-3 py-2 text-[10px] text-(--text-tertiary) backdrop-blur-sm md:px-10 md:py-2.5",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full items-center justify-between gap-2 md:flex-row",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-0.5 leading-3.5 md:flex-row md:items-center md:gap-3 md:whitespace-nowrap",children:[(0,t.jsx)("div",{className:"hidden font-semibold tracking-[0.18em] text-(--text-secondary) md:block",children:e.rich("backedBy",{link:e=>(0,t.jsx)("a",{href:"https://amber.ac",target:"_blank",rel:"noreferrer",className:"text-(--accent-green) no-underline transition-colors hover:underline",children:e})})}),(0,t.jsx)("div",{className:"hidden text-(--text-tertiary) md:block",children:"/"}),(0,t.jsx)("div",{className:"truncate",children:e("copyright")})]}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5 md:flex-wrap md:justify-end",children:[(0,t.jsx)(n.Link,{href:"/prize-pool",prefetch:!0,className:a,"aria-label":e("prizePool"),title:e("prizePool"),children:(0,t.jsx)(o,{label:e("prizePool"),icon:(0,t.jsxs)("svg",{...i,children:[(0,t.jsx)("path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6"}),(0,t.jsx)("path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18"}),(0,t.jsx)("path",{d:"M4 22h16"}
1),(0,t.jsx)("path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"}),(0,t.jsx)("path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"}),(0,t.jsx)("path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z"})]})})}),(0,t.jsx)(n.Link,{href:"/developers",prefetch:!0,className:a,"aria-label":e("developers"),title:e("developers"),children:(0,t.jsx)(o,{label:e("developers"),icon:(0,t.jsxs)("svg",{...i,children:[(0,t.jsx)("polyline",{points:"16 18 22 12 16 6"}),(0,t.jsx)("polyline",{points:"8 6 2 12 8 18"})]})})}),(0,t.jsx)(n.Link,{href:"/about",prefetch:!0,className:a,"aria-label":e("about"),title:e("about"),children:(0,t.jsx)(o,{label:e("about"),icon:(0,t.jsxs)("svg",{...i,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),(0,t.jsx)("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]})})}),(0,t.jsx)(n.Link,{href:"/network",prefetch:!0,className:a,"aria-label":e("network"),title:e("network"),children:(0,t.jsx)(o,{label:e("network"),icon:(0,t.jsxs)("svg",{...i,children:[(0,t.jsx)("circle",{cx:"12",cy:"8",r:"6"}),(0,t.jsx)("path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11"})]})})}),(0,t.jsx)(n.Link,{href:"/events",prefetch:!0,className:a,"aria-label":e("events"),title:e("events"),children:(0,t.jsx)(o,{label:e("events"),icon:(0,t.jsxs)("svg",{...i,children:[(0,t.jsx)("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),(0,t.jsx)("path",{d:"M16 2v4M8 2v4M3 10h18"})]})})}),(0,t.jsx)(n.Link,{href:"/faq",prefetch:!0,className:a,"aria-label":e("faq"),title:e("faq"),children:(0,t.jsx)(o,{label:e("faq"),icon:(0,t.jsxs)("svg",{...i,children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,t.jsx)("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),(0,t.jsx)("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})})}),(0,t.jsx)("a",{href:"https://x.com/OpenArena_To",target:"_blank",rel:"noreferrer",className:a,"aria-label":"X: @OpenArena_To",title:"X: @OpenArena_To",children:(0,t.jsx)(o,{label:"X: @OpenArena_To",icon:(0,t.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})})}),(0,t.jsx)("a",{href:"https://t.me/OpenArena_to",target:"_blank",rel:"noreferrer",className:a,"aria-label":e("telegram"),title:e("telegram"),children:(0,t.jsx)(o,{label:e("telegram"),icon:(0,t.jsxs)("svg",{...i,children:[(0,t.jsx)("path",{d:"m22 2-7 20-4-9-9-4Z"}),(0,t.jsx)("path",{d:"M22 2 11 13"})]})})})]})]})})}])},666439,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return l.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(529747),i=e.r(353535),l=e.r(560081)},861426,e=>{"use strict";let t=["AGENT","FRAMEWORK","SKILL","TOOL","INFRASTRUCTURE","RESEARCH","OTHER"],r=[{value:"AGENT",label:"Agent",shortLabel:"Agent",zhLabel:"智能体",description:"Autonomous system that perceives context, makes decisions, and acts toward a goal."},{value:"FRAMEWORK",label:"Framework",shortLabel:"Framework",zhLabel:"框架",description:"SDK, runtime, orchestrator, workflow engine, or evaluation harness for agents."},{value:"SKILL",label:"Skill",shortLabel:"Skill",zhLabel:"技能",description:"Reusable capability, prompt package, workflow recipe, or knowledge module."},{value:"TOOL",label:"Tool",shortLabel:"Tool",zhLabel:"工具",description:"Utility or product around agent workflows, not primarily an agent runtime."},{value:"INFRASTRUCTURE",label:"Infrastructure",shortLabel:"Infra",zhLabel:"基础设施",description:"Shared substrate such as memory, storage, security, identity, payments, or data pipes."},{value:"RESEARCH",label:"Research",shortLabel:"Research",zhLabel:"研究",description:"Benchmark, dataset, paper, report, or reproducible experiment."},{value:"OTHER",label:"Other",shortLabel:"Other",zhLabel:"其他",description:"Temporary bucket for submissions that need taxonomy review."}];e.s(["PROJECT_CATEGORY_DEFINITIONS",0,r,"PROJECT_CATEGORY_VALUES",0,t,"getProjectCategoryLabel",0,function(e,t){let n=r.find(t=>t.value===e);return"zh"===t?n.zhLabel:n.shortLabel},"normalizeProjectCategory",0,function(e){if("string"!=typeof e)return;let r=e.trim().toUpperCase();return t.find(e=>e===r)}])},912342,554222,e=>{"use strict";let t="none",r="sz_0728",n=[{code:"hz_0725",name:"BUIDL_OPC_HACKASPRINT_HZ",date:"2026-07-25",city:{en:"Hangzhou",zh:"杭州"},time:{en:"2–6PM",zh:"下午 2–6 点"},theme:{en:"OPC AI",zh:"OPC AI"},format:{en:"OPC Hackasprint",zh:"OPC 黑客冲"}},{code:"bj_0727",name:"BUIDL_CRYPTO_AI_BJ",date:"2026-07-27",city:{en:"Beijing",zh:"北京"},theme:{en:"AI",zh:"AI"},format:{en:"Founders Dinner",zh:"Founders Dinner"}},{code:r,name:"BUIDL_HARDWARE_SZ",date:"2026-07-28",city:{en:"Shenzhen",zh:"深圳"},time:{en:"2–6PM",zh:"下午 2–6 点"},theme:{en:"Hardware × AI × Video",zh:"硬件 × AI × 视频"},format:{en:"Showcase & Demo Day",zh:"Showcase & Demo Day"}}
1,{code:"cd_0801",name:"BUIDL_CRYPTO_AI_CD",date:"2026-08-01",city:{en:"Chengdu",zh:"成都"},theme:{en:"AI x Video x Culture",zh:"AI x 视频 x 文化"},format:{en:"Founders Night",zh:"创始人之夜"}},{code:"sf_0802",name:"BUIDL_CRYPTO_AI_SF",date:"2026-08-02",city:{en:"Berkeley · SF Bay",zh:"伯克利 · 湾区"},time:{en:"Evening",zh:"晚上"},theme:{en:"AI",zh:"AI"},format:{en:"Founders Dinner",zh:"Founders Dinner"}},{code:"hk_0810",name:"BUIDL_AI_HK",date:"2026-08-10",city:{en:"Hong Kong",zh:"香港"},time:{en:"2–6PM",zh:"下午 2–6 点"},theme:{en:"Agent Commerce",zh:"智能体商业"},format:{en:"Founders Demo Day",zh:"Founders Demo Day"}},{code:"nyc_0811",name:"OPENARENA_GRAND_PRIX_NYC",date:"2026-08-11",city:{en:"New York",zh:"纽约"},theme:{en:"VC Network",zh:"VC 网络"},format:{en:"OpenArena.to Grand Prix with VC Fren",zh:"OpenArena.to Grand Prix with VC Fren"}}],a=[{code:"de_0809",name:"BUIDL_CRYPTO_AI_DE",date:"2026-08-09",city:{en:"Germany",zh:"德国"},theme:{en:"AI & AI Crypto",zh:"AI 与 AI Crypto"},format:{en:"Founders Meetup",zh:"Founders Meetup"}}],o=[t,...n.map(e=>e.code),...a.map(e=>e.code)];e.s(["CANCELLED_OFFLINE_EVENTS",0,a,"OFFLINE_EVENTS",0,n,"OFFLINE_EVENT_CODES",0,o,"OFFLINE_EVENT_NONE",0,t,"OFFLINE_EVENT_SZ",0,r,"OFFLINE_RSVP_OPEN",0,!1,"getUpcomingOfflineEvents",0,function(e=new Date){return[]}],554222);let i=["x","telegram","wechat","xiaohongshu","community","offline_event","media","other"],l=["teamBackground","projectStage","projectInnovationAi","developmentProgressTimeline","expectedRevenueSources","fundingStatus","expectations"];function s(e){let t=[];for(let r of l){let n=e[r];(Array.isArray(n)?n.length>0:"string"==typeof n&&n.trim().length>0)||t.push(r)}return{complete:0===t.length,missing:t}}let c=["projectWebsiteUrl","projectTagline","track","rankingReason","teamBase","referralSource","demoVideoLink"];["OPC-SG","OPC-HZ","winner"].map(e=>e.toLowerCase()),e.s(["EXPECTATION_VALUES",0,["funding","customers","tech","exposure","mentorship","other"],"PROJECT_STAGE_VALUES",0,["concept","demo","bootstrapped","pre-seed","seed-plus"],"REFERRAL_SOURCE_VALUES",0,["sg_opc_0712","ns_0710","sh_0717","bj_0727","hz_opc_0725","sz_0728","cd_0801","sf_0801","nyc_0808","de_0809","hk_0810","x","telegram","wechat","xiaohongshu","community","offline_event","friend","media","api","oa","other"],"TEAM_BASE_VALUES",0,["north-america","south-america","europe","asia","africa","oceania"],"getBqCompletion",0,s,"getBqEntryCompletion",0,function(e){let t=[...s(e).missing];for(let r of c){let n=e[r];
1"string"==typeof n&&n.trim()||t.push(r)}return{complete:0===t.length,missing:t}},"getReferralSourceOptions",0,function(){return[...i]}],912342)},167881,647163,e=>{"use strict";var t=e.i(473401),r=e.i(408996);function n(...e){return e.filter(Boolean).join(" ")}e.s(["cn",0,n],647163);let a={outline:"border border-(--accent-green) bg-transparent text-(--accent-green) hover:bg-[var(--green-soft)]",solid:"border border-(--accent-green) bg-(--accent-green) text-(--on-accent) hover:-translate-y-0.5 hover:shadow-[0_0_20px_var(--green-soft)]",ghost:"border border-transparent bg-transparent text-(--text-secondary) hover:text-(--text-primary) hover:bg-[rgba(255,255,255,0.03)]"},o={sm:"px-4 py-2 text-[11px] max-sm:min-h-11",md:"px-6 py-3 text-[12px]",lg:"px-8 py-3.5 text-[13px]"},i=r.forwardRef(({className:e,variant:i="outline",size:l="lg",type:s="button",asChild:c,...u},d)=>{let f=n("[font-family:var(--font-stack)] inline-flex cursor-pointer items-center justify-center gap-2 font-bold uppercase tracking-[1px] transition-all disabled:cursor-not-allowed disabled:opacity-50",o[l],a[i],e);if(c){let e=r.Children.only(u.children),{children:t,...a}=u;return r.cloneElement(e,{...a,className:n(f,e.props.className)})}return(0,t.jsx)("button",{ref:d,type:s,className:f,...u})});i.displayName="Button",e.s(["Button",0,i],167881)},184762,e=>{"use strict";var t=e.i(473401),r=e.i(408996),n=e.i(647163);let a=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("textarea",{ref:a,className:(0,n.cn)("[font-family:var(--font-stack)] min-h-30 w-full resize-y border-none bg-transparent text-[13px] text-(--text-primary) outline-none placeholder:text-(--text-tertiary)",e),...r}));a.displayName="Textarea",e.s(["Textarea",0,a])},986530,e=>{"use strict";var t=e.i(473401),r=e.i(647163);e.s(["Field",0,function({label:e,htmlFor:n,hint:a,error:o,children:i,className:l,required:s}){return(0,t.jsxs)("div",{className:(0,r.cn)("w-full",l),children:[(0,t.jsxs)("label",{htmlFor:n,className:(0,r.cn)("mb-2.5 block text-[11px] font-semibold uppercase tracking-[0.14em] transition-colors",o?"text-(--accent-red)":"text-(--text-primary)"),children:[e,s?(0,t.jsx)("span",{className:"ml-1 text-(--accent-red)",children:"*"}):null]}),(0,t.jsx)("div",{className:(0,r.cn)("flex items-center gap-3 border bg-(--bg-input) p-3 transition-colors focus-within:border-(--accent-green)",o?"border-(--accent-red)":"border-(--border-color)"),children:i}),a?(0,t.jsx)("div",{className:"mt-2 text-[10px] text-(--text-tertiary)",children:a}):null,o?(0,t.jsx)("div",{className:"mt-2 text-[10px] text-(--accent-red)",children:o}):null]})}])},23750,e=>{"use strict";var t=e.i(473401),r=e.i(408996),n=e.i(647163);let a=r.forwardRef(({className:e,...r},a)=>(0,t.jsx)("input",{ref:a,className:(0,n.cn)("[font-family:var(--font-stack)] w-full border-none bg-transparent text-[16px] sm:text-[13px] text-(--text-primary) outline-none placeholder:text-(--text-tertiary)",e),...r}));a.displayName="Input",e.s(["Input",0,a])},398232,e=>{"use strict";var t=e.i(473401),r=e.i(647163);let n={success:"border-(--accent-green) bg-[var(--green-dim)] text-(--accent-green)",error:"border-red-500/70 bg-red-500/10 text-red-300",info:"border-(--border-color) bg-[rgba(255,255,255,0.03)] text-(--text-secondary)"};e.s(["Notice",0,function({children:e,tone:a="info",className:o}){return(0,t.jsx)("div",{className:(0,r.cn)("border-l-[3px] p-4 text-[10px]",n[a],o),children:e})}])},590862,e=>{"use strict";var t=e.i(727474);let r="general",n=t.default.env.NEXT_PUBLIC_OPC_EVENT_SLUG||"opc-hackathon-sg-0712",a=t.default.env.NEXT_PUBLIC_OPC_HZ_EVENT_SLUG||"opc-hackathon-hz-0725";e.s(["GENERAL_EVENT_SLUG",0,r,"getSubmissionFieldProfile",0,function(e){return e===r?"general":e===n?"opc":e===a?"hz":"full"}])},919625,e=>{"use strict";var t=e.i(473401),r=e.i(408996),n=e.i(590818);let a={green:"text-(--accent-green)",amber:"text-(--accent-amber)",red:"text-(--accent-red,#ff5f56)",dim:"text-(--text-tertiary)",default:"text-(--text-secondary)"},o=new Map;function i(e){if("boolean"===e.kind)return e.value?"yes":"no";if("select"===e.kind)return e.options.find(t=>t.value===e.value)?.label??e.value;if("multiselect"===e.kind){let t=e.value.map(t=>e.options.find(e=>e.value===t)?.label??t);return t.length?t.join(", "):"(none)"}if("file"===e.kind)return e.value?`${e.value.name} (${Math.round(e.value.size/1024)} KB)`:"(none)";let t=e.value.replace(/\s+/g," ").trim();return t?t.length>72?`${t.slice(0,69)}...`:t:"(empty)"}function l(e){return"boolean"===e.kind||("multiselect"===e.kind?e.value.length>0:"file"===e.kind?null!==e.value:!!e.value.trim())}e.s(["TerminalConsole",0,function({steps:e,onSubmit:s,onSwitchToForm:c,onRestoreDraft:u,track:d,namespace:f="SubmitPage",sessionKey:m="submit",user:p="founder"}){let h=(0,n.useTranslations)(f),x=d||"submit",g=o.get(m)??null,b=(d||"openarena").toUpperCase().replace(/-/g,"_"),[y,v]=(0,r.useState)(()=>g?.lines??[]),[j,k]=(0,r.useState)(""),[w,N]=(0,r.useState)(()=>{let e=g?.phase;return"submitting"===e||"done"===e?"review":e??"idle"}),[P,_]=(0,r.useState)(()=>g?.stepIdx??0),[L,E]=(0,r.useState)(()=>g?.history??[]),[S,C]=(0,r.useState)(-1),O=(0,r.useRef)(!1),R=(0,r.useRef)(null),A=(0,r.useRef)(null),T=(0,r.useRef)(e);T.current=e;let I=(0,r.useRef)(g?.phase==="review"),$=e=>{v(t=>[...t,...Array.isArray(e)?e:[e]])},z=(0,r.useRef)(null!==g);(0,r.useEffect)(()=>{z.current||(z.current=!0,v([{text:"> CONNECTING TO OPENARENA.TO ............ OK",tone:"green"},{text:"> AUTH: OPENARENA SESSION ............... OK",tone:"green"},{text:`> MOUNTING TRACK: ${b} — OK`,tone:"green"},{text:"",tone:"default"},{text:h("terminal.console.welcome"),tone:"default"},{text:h("terminal.console.hint"),tone:"dim"}]))},[]);let M=(0,r.useRef)(!1);(0,r.useEffect)(()=>{M.current?o.delete(m):o.set(m,{lines:y,phase:w,stepIdx:P,history:L})},[y,w,P,L]),(0,r.useEffect)(()=>{A.current?.scrollTo({top:A.current.scrollHeight})},[y,w]);let F=(()=>
1{if("prompt"===w){let t=e[P];return t?`${t.command} >`:">"}return"review"===w?"review >":"$"})(),U=e=>{let t=T.current[e];if(!t)return;let r="required"in t&&t.required?h("terminal.required"):h("terminal.optional");$({text:`${t.label} [${r}] — ${t.command}`,tone:"amber"}),t.description&&$({text:t.description,tone:"dim"}),("select"===t.kind||"multiselect"===t.kind)&&t.options.forEach((e,t)=>$({text:`  ${t+1}) ${e.label}`,tone:"dim"})),"multiselect"===t.kind&&$({text:h("terminal.console.multiHint"),tone:"dim"}),"boolean"===t.kind&&$({text:h("terminal.console.booleanHint"),tone:"dim"}),"file"===t.kind&&$({text:h("terminal.console.fileHint"),tone:"dim"}),l(t)&&($({text:h("terminal.console.currentValue",{value:i(t)}),tone:"dim"}),$({text:h("terminal.console.keepHint"),tone:"dim"}))},D=(e,t)=>{O.current=!!t?.returnToReview,N("prompt"),_(e),U(e)};(0,r.useEffect)(()=>{if("review"!==w){I.current=!1;return}I.current||(I.current=!0,v(t=>[...t,{text:"",tone:"default"},{text:h("terminal.console.reviewHeader"),tone:"green"},...e.map((e,t)=>({text:`  ${String(t+1).padStart(2)}) ${e.command.padEnd(24)} ${i(e)}`,tone:"default"})),{text:h("terminal.console.reviewHint"),tone:"amber"}]))},[w,e,h]);let B=()=>{let t=T.current.findIndex(e=>"boolean"!==e.kind&&(!!("required"in e&&e.required&&!l(e)||("input"===e.kind||"textarea"===e.kind)&&e.validate?.(e.value)&&l(e))||!1));-1===t?(N("review"),_(e.length)):($({text:h("terminal.console.reviewIncomplete"),tone:"amber"}),D(t))},H=()=>{if(O.current){O.current=!1,$({text:h("terminal.console.backToReview"),tone:"dim"}),_(e.length),N("review");return}V()},V=()=>{let t=P+1;t>=e.length?(_(e.length),N("review")):(_(t),U(t))},q=async t=>{let r=t.trim().toLowerCase();if("confirm"===r||"y"===r||"yes"===r||"submit"===r||"send"===r){N("submitting"),$({text:h("terminal.console.submitting"),tone:"amber"});try{let e=await s();e.success?(M.current=!0,o.delete(m),$([{text:`✓ ${h("terminal.console.done")}`,tone:"green"}]),N("done")):($([{text:`✗ ${h("terminal.console.submitFailed")}`,tone:"red"},{text:`  ${e.error??h("checkInput")}`,tone:"red"},{text:h("terminal.console.editNumberHint"),tone:"amber"}]),N("review"),I.current=!0)}catch(e){$([{text:`✗ ${h("terminal.console.submitFailed")}`,tone:"red"},{text:`  ${e instanceof Error?e.message:h("checkInput")}`,tone:"red"},{text:h("terminal.console.editNumberHint"),tone:"amber"}]),N("review"),I.current=!0}return}if("cancel"===r||"no"===r){$({text:h("terminal.console.cancelled"),tone:"dim"}),N("idle"),_(0);return}if("back"===r||"prev"===r||"b"===r)return void D(e.length-1,{returnToReview:!0});let n=r.match(/^(?:edit\s+)?(\d+)$/);if(n){let t=Number(n[1]);if(t>=1&&t<=e.length)return void D(t-1,{returnToReview:!0})}$({text:h("terminal.console.reviewHint"),tone:"red"})};return(0,t.jsxs)("section",{className:"border border-(--border-color) bg-(--terminal-bg)",children:[(0,t.jsxs)("div",{className:"flex min-h-10 items-center justify-between gap-4 border-b border-(--border-color) bg-(--bg-card) px-4 py-2 text-[10px] uppercase tracking-[0.14em] text-(--text-tertiary) max-[640px]:flex-col max-[640px]:items-start max-[640px]:gap-1",children:[(0,t.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,t.jsxs)("span",{className:"flex gap-1.5","aria-hidden":"true",children:[(0,t.jsx)("span",{className:"h-2.5 w-2.5 bg-(--text-tertiary)"}),(0,t.jsx)("span",{className:"h-2.5 w-2.5 bg-(--accent-amber)"}),(0,t.jsx)("span",{className:"h-2.5 w-2.5 bg-(--accent-green)"})]}),(0,t.jsxs)("span",{className:"truncate",children:[p,"@openarena — ~/",x," — ssh"]})]}),(0,t.jsx)("span",{className:"shrink-0",children:"openarena.to:443 · encrypted"})]}),(0,t.jsxs)("div",{ref:A,onClick:()=>R.current?.focus(),className:"font-mono max-h-[60vh] min-h-[320px] cursor-text overflow-y-auto px-5 py-4 text-[12px] leading-6",children:[y.map((e,r)=>(0,t.jsx)("div",{className:`whitespace-pre-wrap break-words ${a[e.tone??"default"]}`,children:e.text||" "},r)),"prompt"===w&&e[P]?.kind==="file"?(0,t.jsxs)("div",{className:"mt-2 mb-1 flex flex-wrap items-center gap-3 border border-(--accent-green) bg-[
1color-mix(in_srgb,var(--accent-green)_8%,transparent)] px-3 py-2",children:[(0,t.jsxs)("span",{className:"shrink-0 text-[11px] font-bold uppercase tracking-[0.14em] text-(--accent-green)",children:[(0,t.jsx)("span",{className:"animate-pulse",children:"▍"})," ",h("terminal.console.fileWaiting")]}),(0,t.jsx)("input",{type:"file",accept:e[P].accept,onChange:e=>{let t=T.current[P];if(t?.kind!=="file")return;let r=e.target.files?.[0]??null;t.setValue(r),r&&$({text:`  ${r.name} (${Math.round(r.size/1024)} KB)`,tone:"dim"}),R.current?.focus()},className:"text-[11px] text-(--text-secondary) file:mr-3 file:cursor-pointer file:border file:border-(--accent-green) file:bg-[color-mix(in_srgb,var(--accent-green)_12%,transparent)] file:px-2.5 file:py-1 file:text-[10px] file:font-bold file:uppercase file:tracking-[0.1em] file:text-(--accent-green)"})]}):null,"submitting"!==w&&"done"!==w?(0,t.jsxs)("div",{className:"mt-1 flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"shrink-0 text-(--accent-green)",children:[p,"@openarena",(0,t.jsx)("span",{className:"text-(--text-secondary)",children:":"}),(0,t.jsxs)("span",{className:"text-(--accent-amber)",children:["~/",x]}),(0,t.jsxs)("span",{className:"text-(--text-secondary)",children:[" ",F]})]}),(0,t.jsx)("input",{ref:R,value:j,onChange:e=>k(e.target.value),onKeyDown:t=>{if("Enter"===t.key){t.preventDefault(),"submitting"!==w&&"done"!==w&&($({text:`${F} ${j}`,tone:"dim"}),j.trim()&&E(e=>e.length>0&&e[e.length-1]===j?e:e.length>=50?[...e.slice(1),j]:[...e,j]),C(-1),k(""),"idle"===w?(t=>{let r=t.trim().toLowerCase();if(r){if("help"===r||"?"===r)return $([{text:h("terminal.console.helpHeader"),tone:"green"},{text:"  submit   — "+h("terminal.console.helpSubmit"),tone:"default"},{text:"  restore  — "+h("terminal.console.helpRestore"),tone:"default"},{text:"  form     — "+h("terminal.console.helpForm"),tone:"default"},{text:"  clear    — "+h("terminal.console.helpClear"),tone:"default"},{text:"  status   — "+h("terminal.console.helpStatus"),tone:"default"},{text:"  help     — "+h("terminal.console.helpHelp"),tone:"default"}]);if("submit"===r||"start"===r||"apply"===r)return D(0);if("restore"===r)return u?.()?($({text:h("terminal.console.restored"),tone:"green"}),B()):$({text:h("terminal.console.noDraft"),tone:"red"});if("review"===r)return B();if("form"===r||"classic"===r)return c();if("clear"===r||"cls"===r)return v([]);if("status"===r||"info"===r){if("idle"===w)return $({text:h("terminal.console.statusIdle"),tone:"dim"});if("review"===w)return $([{text:h("terminal.console.statusReview"),tone:"green"},{text:h("terminal.console.reviewHint"),tone:"dim"}]);if("submitting"===w)return $({text:h("terminal.console.statusSubmitting"),tone:"amber"});let t=e[P];if(!t)return $({text:h("terminal.console.statusIdle"),tone:"dim"});let r=`${P+1}/${e.length}`,n="required"in t&&t.required?h("terminal.required"):h("terminal.optional");return $([{text:`${h("terminal.console.statusPrompt")} ${r} — ${t.label} [${n}]`,tone:"amber"},{text:h("terminal.console.statusHint"),tone:"dim"}])}$({text:h("terminal.console.unknown",{cmd:t}),tone:"red"})}})(j):"prompt"===w?(t=>{let r=t.trim(),n=r.toLowerCase();if("back"===n||"prev"===n||"b"===n){if(O.current){O.current=!1,_(e.length),N("review");return}if(P<=0)return $({text:h("terminal.console.alreadyAtStart"),tone:"red"});let t=P-1;return _(t),U(t)}let a=e[P];if(!a)return;if("skip"===n||"s"===n)return"required"in a&&a.required&&!l(a)?$({text:h("terminal.errors.required"),tone:"red"}):($({text:`> ${a.command}: ${l(a)?i(a):"(skipped)"}`,tone:"dim"}),H());if(!r&&l(a)&&"boolean"!==a.kind){if("input"===a.kind||"textarea"===a.kind){let e=a.validate?.(a.value)??null;if(e)return $({text:e,tone:"red"})}return $({text:`> ${a.command}: ${i(a)}`,tone:"green"}),H()}if("boolean"===a.kind){let e;if(!r)return $({text:`> ${a.command}: ${a.value?"yes":"no"}`,tone:"green"}),H();let n=!!["y","yes","1","true","ok"].includes(e=t.trim().toLowerCase())||!["n","no","0","false"].includes(e)&&null;return null===n?$({text:h("terminal.console.booleanHint"),tone:"red"}):(a.setValue(n),$({text:`> ${a.command}: ${n?"yes":"no"}
1`,tone:"green"}),H())}if("select"===a.kind){let e=a.options.find(e=>e.value===r||e.label.toLowerCase()===r.toLowerCase()),t=Number(r);return(!e&&Number.isInteger(t)&&t>=1&&t<=a.options.length&&(e=a.options[t-1]),e)?(a.setValue(e.value),$({text:`> ${a.command}: ${e.label}`,tone:"green"}),H()):$({text:h("terminal.console.selectInvalid"),tone:"red"})}if("multiselect"===a.kind){if(!r||"skip"===n)return a.required&&!l(a)?$({text:h("terminal.errors.required"),tone:"red"}):($({text:`> ${a.command}: ${i(a)}`,tone:"green"}),H());let e=r.split(/[\s,,、]+/).filter(Boolean),t=[];for(let r of e){let e=Number(r),n=Number.isInteger(e)&&e>=1&&e<=a.options.length?a.options[e-1]:a.options.find(e=>e.value===r||e.label.toLowerCase()===r.toLowerCase());if(!n)return void $({text:h("terminal.console.selectInvalid"),tone:"red"});t.includes(n.value)||t.push(n.value)}return a.setValue(t),$({text:`> ${a.command}: ${i({...a,value:t})}`,tone:"green"}),H()}if("file"===a.kind)return"skip"===n||"none"===n?a.required?$({text:h("terminal.console.fileMissing"),tone:"red"}):(a.setValue(null),$({text:`> ${a.command}: (none)`,tone:"green"}),H()):a.value?($({text:`> ${a.command}: ${i(a)}`,tone:"green"}),H()):a.required?$({text:h("terminal.console.fileMissing"),tone:"red"}):($({text:`> ${a.command}: (none)`,tone:"green"}),H());if(a.required&&!t.trim())return $({text:h("terminal.errors.required"),tone:"red"});if(a.maxLength&&t.length>a.maxLength)return $({text:h("terminal.errors.tooLong",{max:a.maxLength}),tone:"red"});let o=a.validate?.(t)??null;o?$({text:o,tone:"red"}):(a.setValue(t),$({text:`> ${a.command}: ${i({...a,value:t})}`,tone:"green"}),H())})(j):"review"===w&&q(j));return}if("ArrowUp"===t.key){if(t.preventDefault(),!L.length)return;let e=S<0?L.length-1:Math.max(0,S-1);C(e),k(L[e]);return}if("ArrowDown"===t.key){if(t.preventDefault(),S<0)return;let e=S+1;e>=L.length?(C(-1),k("")):(C(e),k(L[e]))}},autoComplete:"off",autoCapitalize:"off",autoCorrect:"off",spellCheck:!1,"aria-label":"terminal input",className:"oa-terminal-input min-w-0 flex-1 border-none bg-transparent font-mono text-[12px] text-(--text-primary) caret-(--accent-green) outline-none focus-visible:outline-none"})]}):null]})]})}])}]);

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.