"undefined"!=typeof chrome&&chrome.runtime&&chrome.runtime.onMessage&&chrome.runtime.onMessage.addListener(e=>{if("STATUS_UPDATE"===e.type&&"Error"===e.action&&e.detail){const n=e.detail.toLowerCase();let i=null,t=null;if(n.includes("batas jaringan harian")||n.includes("ip/hari")||n.includes("device")||n.includes("perangkat")||n.includes("terikat")?(i="DEVICE ID TERKUNCI!",t="Akun Anda mencapai batas perangkat. Jangan berbagi lisensi!"):n.includes("kuota harian")||n.includes("kuota anda telah habis")||n.includes("kuota")&&!n.includes("terlalu banyak")?(i="KUOTA HARIAN HABIS!",t="Batas kuota harian Anda telah habis. Silakan tingkatkan paket Anda!"):(n.includes("usang")||n.includes("update"))&&(i="UPDATE DIPERLUKAN!",t="Versi ekstensi QuizMate Anda usang. Silakan update ke versi terbaru!"),i&&t){const e=document.getElementById("qm-custom-toast");e&&(e.innerHTML=`\n            <div style="width:100%; display:flex; align-items:center; gap:14px;">\n              <div style="width:42px; height:42px; border-radius:50%; background:#fee2e2; display:flex; align-items:center; justify-content:center; flex-shrink:0;">\n                <svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="#ef4444" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">\n                  <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/>\n                  <line x1="12" y1="9" x2="12" y2="13"/>\n                  <line x1="12" y1="17" x2="12.01" y2="17"/>\n                </svg>\n              </div>\n              <div style="flex:1; text-align:left;">\n                <div style="font-size:14px; font-weight:800; color:#0f172a; margin-bottom:2px; letter-spacing:-0.01em;">${i}</div>\n                <div style="font-size:12px; font-weight:400; color:#64748b; line-height:1.35;">${t}</div>\n              </div>\n            </div>\n          `,e.style.display="flex",setTimeout(()=>{e.style.display="none"},6e3))}}});