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

const targetIdx = content.indexOf('saas_licenses",r?Me:[]');
if (targetIdx !== -1) {
  // Let's search back 45000 chars for the start of the component
  const startIdx = Math.max(0, targetIdx - 35000);
  const block = content.substring(startIdx, targetIdx);
  
  // Find where function or arrow starts
  const firstArrowIdx = block.indexOf('({');
  console.log("firstArrowIdx backward offset:", firstArrowIdx);
  if (firstArrowIdx !== -1) {
    console.log("=== Code around start of block ===");
    console.log(block.substring(firstArrowIdx, firstArrowIdx + 1000));
  }
} else {
  console.log("Not found");
}
