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

// We see that `const p=()=>{ ... }` is defined in the block.
// Let's find where `p` is actually called or referenced!
const indexHi = content.indexOf("const Hi=tr.find");
if (indexHi !== -1) {
  const block = content.substring(indexHi, indexHi + 4000);
  // Search for the use of `p`
  console.log("Usage of 'p' inside this block:");
  let localIdx = 0;
  while ((localIdx = block.indexOf("p", localIdx)) !== -1) {
    const context = block.substring(localIdx - 15, localIdx + 15);
    console.log(`- ${context} (offset inside block: ${localIdx})`);
    localIdx += 1;
  }
}
