{"code":"__filename=\"/opt/canhelp/node_modules/better-auth/node_modules/@better-auth/core/dist/utils/db.mjs\";(()=>{\nvar __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __name=(target,value)=>__defProp(target,\"name\",{value,configurable:true});var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from===\"object\"||typeof from===\"function\"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:true}),mod);var db_exports={};__export(db_exports,{filterOutputFields:()=>filterOutputFields});module.exports=__toCommonJS(db_exports);function filterOutputFields(data,additionalFields){if(!data||!additionalFields)return data;const returnFiltered=Object.entries(additionalFields).filter(([,{returned}])=>returned===false).map(([key])=>key);return Object.entries(structuredClone(data)).filter(([key])=>!returnFiltered.includes(key)).reduce((acc,[key,value])=>({...acc,[key]:value}),{})}__name(filterOutputFields,\"filterOutputFields\");0&&(module.exports={filterOutputFields});\n})()\n","warnings":[],"map":{"version":3,"mappings":";suBAAA,2HAKA,SAAS,mBAAmB,KAAM,iBAAkB,CACnD,GAAI,CAAC,MAAQ,CAAC,iBAAkB,OAAO,KACvC,MAAM,eAAiB,OAAO,QAAQ,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAE,CAAE,QAAS,CAAC,IAAM,WAAa,KAAK,EAAE,IAAI,CAAC,CAAC,GAAG,IAAM,GAAG,EAC3H,OAAO,OAAO,QAAQ,gBAAgB,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,IAAM,CAAC,eAAe,SAAS,GAAG,CAAC,EAAE,OAAO,CAAC,IAAK,CAAC,IAAK,KAAK,KAAO,CAC5H,GAAG,IACH,CAAC,GAAG,EAAG,KACR,GAAI,CAAC,CAAC,CACP,CAPS","names":[],"ignoreList":[],"sources":["/opt/canhelp/node_modules/better-auth/node_modules/@better-auth/core/dist/utils/db.mjs"],"sourcesContent":[null]}}