import{$6 as $,K7 as k,X6 as X,o7 as Y}from"./cli-0.5.3-t65dek0m.mjs";import{dda as x}from"./cli-0.5.3-9bdwhdys.mjs";import{Xma as Z}from"./cli-0.5.3-0df3r78b.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{x();$();k()});
export{H as Y,M as Z};
