import{n as e,r as t,t as n}from"./DXsj0Ygw.js";var r;function i(){if(r!==void 0)return r;let i=n(e());return i?(r=t(i),r):(r=null,null)}function a(e,t){let n=t??i();if(!n)return null;let r=n[e];if(!r?.models)return null;let a=null,o=``;for(let[e,t]of Object.entries(r.models)){let n=t.release_date;n&&n>o&&(o=n,a=e)}return a}function o(e){return{gemini:`google`}[e.toLowerCase()]??e.toLowerCase()}export{o as catalogKeyForProvider,a as resolveProviderDefaultModel};