const fs = require('fs');
const files = [
  'dist/assets/index-D9sWWWv_.js.bak-before-deploy-card-removal',
  'dist/assets/index-D9sWWWv_.js.bak-before-owner-mode-fix'
];

files.forEach(file => {
  if (fs.existsSync(file)) {
    const content = fs.readFileSync(file, 'utf8');
    const idx = content.indexOf('const ue=C.useMemo');
    if (idx !== -1) {
      console.log(`=== In file ${file} around const ue ===`);
      console.log(content.substring(idx - 400, idx + 100));
    }
  } else {
    console.log(`File ${file} does not exist`);
  }
});
