// @bun
var{defineProperty:A,getOwnPropertyNames:J,getOwnPropertyDescriptor:K}=Object,L=Object.prototype.hasOwnProperty;function M(j){return this[j]}var U=(j)=>{var q=(D??=new WeakMap).get(j),w;if(q)return q;if(q=A({},"__esModule",{value:!0}),j&&typeof j==="object"||typeof j==="function"){for(var z of J(j))if(!L.call(q,z))A(q,z,{get:M.bind(j,z),enumerable:!(w=K(j,z))||w.enumerable})}return D.set(j,q),q},D;var N=(j)=>j;function O(j,q){this[j]=N.bind(null,q)}var V=(j,q)=>{for(var w in q)A(j,w,{get:q[w],enumerable:!0,configurable:!0,set:O.bind(q,w)})};var Q=(j,q)=>()=>(j&&(q=j(j=0)),q);var W=import.meta.require;import{createHash as B}from"crypto";import{readFile as R,stat as I}from"fs/promises";async function _(j){try{let q=await R(j);return B("sha256").update(q).digest("hex").slice(0,16)}catch{return""}}function $(j){return B("sha256").update(j).digest("hex").slice(0,16)}function E(j){return B("sha256").update(j).digest("hex").slice(0,16)}function k(j,q){let w=JSON.stringify(q,Object.keys(q).sort());return`${E(j)}-${E(w)}`}async function v(j){try{return(await I(j)).mtimeMs}catch{return 0}}async function x(j){try{return await I(j),!0}catch{return!1}}var T=()=>{};T();export{E as hashString,_ as hashFile,$ as hashBuffer,v as getFileMtime,k as generateCacheKey,x as fileExists};
