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

// Let's find index of "Analisis Penggunaan Data & Kategori Aplikasi (DPI)"
const targetIdx = content.indexOf("Analisis Penggunaan Data & Kategori Aplikasi (DPI)");
if (targetIdx !== -1) {
  // Let's search back 5000 characters and find definitions
  const startIdx = Math.max(0, targetIdx - 10000);
  const preceding = content.substring(startIdx, targetIdx);
  console.log("=== Printing preceding 2000 chars ===");
  console.log(content.substring(targetIdx - 2000, targetIdx));
  
  // Let's write a regex to find 'r=' or similar
  const matches = preceding.match(/(const|let|var)\s+r\s*=/g);
  console.log("Matches:", matches);
} else {
  console.log("Not found");
}
