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

const target = "status:\"pending_payment\"";
let idx = 0;
while ((idx = content.indexOf(target, idx)) !== -1) {
  console.log(`\nMatch at ${idx}:`);
  console.log(content.substring(idx - 150, idx + 250));
  idx += target.length;
}
