import{aR as n,s,aS as o}from"./index-uJX-4cHl.js";const i=async()=>{const e=s()?.client;if(!e)return{...o};const t=await e.getClashModeStatus({});return{...o,mode:t.currentMode,"mode-list":t.modeList,modes:t.modeList}},a=async()=>{n.value=await i()},d=async e=>{if(typeof e.mode=="string"){const t=s()?.client;t&&await t.setClashMode({mode:e.mode})}a()};export{a as fetchConfigs,d as updateConfigs};
