const d=[{value:"claude",label:"Claude"},{value:"codex",label:"Codex"},{value:"gemini",label:"Gemini"}],a={claude:[{value:"haiku",i18nKey:"haiku",fallback:"Haiku 4.5",contextWindow:2e5},{value:"sonnet",i18nKey:"sonnet",fallback:"Sonnet 4.5",contextWindow:2e5},{value:"sonnet-4.6",i18nKey:"sonnet46",fallback:"Sonnet 4.6",contextWindow:2e5},{value:"opus",i18nKey:"opus",fallback:"Opus 4.6",contextWindow:2e5}],codex:[{value:"o3",i18nKey:"o3",fallback:"o3",contextWindow:2e5},{value:"o4-mini",i18nKey:"o4mini",fallback:"o4-mini",contextWindow:2e5},{value:"codex-mini",i18nKey:"codexMini",fallback:"Codex Mini",contextWindow:2e5}],gemini:[{value:"gemini-3-flash-preview",i18nKey:"gemini3flash",fallback:"Gemini 3 Flash",contextWindow:1e6},{value:"gemini-3-pro-preview",i18nKey:"gemini3pro",fallback:"Gemini 3 Pro",contextWindow:1e6},{value:"gemini-2.5-flash",i18nKey:"gemini25flash",fallback:"Gemini 2.5 Flash",contextWindow:1048576},{value:"gemini-2.5-pro",i18nKey:"gemini25pro",fallback:"Gemini 2.5 Pro",contextWindow:1048576},{value:"gemini-2.0-flash",i18nKey:"gemini20flash",fallback:"Gemini 2.0 Flash",contextWindow:1048576}]};Object.values(a).flat();function s(n,e){return(a[n]??a.claude).map(l=>{const i=e(`thread.model.${l.i18nKey}`),t=i.startsWith("thread.model.")?l.fallback:i;return{value:l.value,label:t}})}function u(n){return d.map(e=>{const o=a[e.value]??[];return{provider:e.value,providerLabel:e.label,models:o.map(l=>{const i=n(`thread.model.${l.i18nKey}`),t=i.startsWith("thread.model.")?l.fallback:i;return{value:`${e.value}:${l.value}`,label:t,provider:e.value,providerLabel:e.label,model:l.value}})}})}const c=2e5;function r(n,e){return a[n]?.find(i=>i.value===e)?.contextWindow??c}function v(n){const e=n.indexOf(":");return e===-1?{provider:"claude",model:n}:{provider:n.slice(0,e),model:n.slice(e+1)}}export{d as P,r as a,s as b,u as g,v as p};
