(function() { 'use strict'; let toastId = 0; const container = document.createElement('div'); container.className = 'toast-container'; container.id = 'toastContainer'; document.body.appendChild(container); function escapeHtml(text) { const d = document.createElement('div'); d.textContent = text || ''; return d.innerHTML; } window.Notify = { toast: function(message, type, title) { if (!message) return; type = type || 'info'; const icons = { success: '✓', error: '✕', info: 'ℹ', warning: '⚠' }; const titles = { success: title || 'Успешно', error: title || 'Ошибка', info: title || 'Информация', warning: title || 'Внимание' }; const icon = icons[type] || 'ℹ'; const t = titles[type]; const id = ++toastId; const el = document.createElement('div'); el.className = 'toast toast-' + type; el.id = 'toast-' + id; el.innerHTML = '
' + '