const fs = require('fs');
const content = fs.readFileSync('dist/assets/index-D9sWWWv_.js', 'utf8');

// Find all places where Re is assigned, like `Re = ` or `Re=`
// Let's search inside the region [960000, 990000] for Re
const start = 960000;
const end = 990000;
const sub = content.substring(start, end);

let idx = 0;
while ((idx = sub.indexOf('=', idx)) !== -1) {
  // check if preceding is Re
  if (idx >= 2 && sub.substring(idx - 2, idx) === 'Re') {
    console.log(`Found 'Re=' at absolute index ${start + idx}:`);
    console.log(sub.substring(idx - 100, idx + 200));
    console.log('---------------------------');
  }
  idx++;
}
