import{ae as o,y as u}from"./index-CGB0A5x_.js";import{g as f}from"./model-xlHsHa68.js";const v=o("models",()=>{const a=u([]),n=u(!1);let t=null;async function i(e=!1){if(!(n.value&&!e))return t||(t=(async()=>{try{a.value=await f()||[],n.value=!0}catch{a.value=[],n.value=!1}finally{t=null}})(),t)}function s(e){if(!e)return"-";const l=a.value.find(r=>r.id==e||r.id===String(e)||r.id===Number(e));return l?l.name:`模型${e}`}return{list:a,loaded:n,load:i,getModelName:s}});export{v as u};
