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

const targetStr = 'C.useEffect(()=>{Ve("wa_api_key",Mi)},[Mi]),C.useEffect(()=>{Ve("custom_profiles",Je),Ve("hotspot_profiles",Je)},[Je]),';
const idx = content.indexOf(targetStr);
console.log('Index of target:', idx);
if (idx !== -1) {
  console.log(content.substring(idx - 100, idx + 300));
} else {
  console.log('Sync effect target string not found precisely.');
}
