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

// Search for status === "used" or price calculations
const regex = /status\s*===\s*["']used["']/g;
let match;
console.log("Searching for status === 'used' usages:");
while ((match = regex.exec(content)) !== null) {
  const idx = match.index;
  console.log(`\n=== Found at index ${idx} ===`);
  console.log(content.substring(idx - 150, idx + 250));
}
