class TakoGift { constructor(username) { this.username = username; this.baseUrl = 'https://tako.id'; this.deploymentId = 'a5010607774e245ac792354dee72391b1c02d7b3'; this.serverActionId = '8b17364244d040d72da4c5f426ac6eea8658b6b9'; this.browserHeaders = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36', 'Origin': 'https://tako.id', 'Referer': `https://tako.id/${this.username}/gift` }; } async createGift(amount, email = 'anonymous@example.com', message = 'Support!') { const url = `${this.baseUrl}/api/v1/gift/${this.username}`; const payload = { name: 'Anonymous', email: email, hideEmail: true, paymentMethod: 'qris', currency: 'idr', amount: amount, message: message, usePriority: false }; const response = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json', 'Accept': 'application/json', ...this.browserHeaders }, body: JSON.stringify(payload) }); const rawText = await response.text(); if (rawText.trim().startsWith('