PageSourceSearch

https://macros.gg/_build/assets/macroMath-DcJ4yHZe.js

js macros.gg collected 2026-10-02 01:55:33 UTC 536 bytes, 1 lines download raw bytes

1import{a as g}from"./apiFetch-DFvoe_0W.js";async function s(a){return await g("/me/macro-calculation",{method:"POST",json:a})}function m(a){const e=a.weightLb*.453592,c=a.sex==="male"?10*e+6.25*a.heightCm-5*a.age+5:10*e+6.25*a.heightCm-5*a.age-161;let o=c*a.activity;a.goal==="cut"&&(o*=.8),a.goal==="bulk"&&(o*=1.1);let t=1;a.goal==="cut"&&(t=1.1),a.goal==="bulk"&&(t=.9);const r=Math.round(a.weightLb*t),l=Math.round(o*.25/9),h=Math.max(0,Math.round((o-r*4-l*9)/4));return{bmr:c,tdee:o,protein:r,carbs:h,fat:l}}export{m as c,s as n};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.