function showPopup(e,t,n,o){const c=document.getElementById("notificationPopup");if(c&&c.remove(),noNotify)return;t=t+"<br> <p style='color:blue;text-align:center'>You can disable these notifications permanently from Addon <a href='"+browser.runtime.getURL("options/options.html")+"'>Settings</a> page.</p>";let a=document.createElement("div");a.className="msgPopup",a.id="notificationPopup",document.body.appendChild(a);let s=document.querySelector(".msgPopup");containerCont=[{type:"div",class:"appName"},{type:"div",class:"appNameContainer"},{type:"div",class:"msgTitle"},{type:"div",class:"msgContent"}],containerCont.map(e=>{let t=document.createElement(e.type);t.className=e.class,s.appendChild(t)});let l=document.querySelector(".appName"),r=document.querySelector(".appNameContainer"),d=document.querySelector(".msgTitle"),i=document.querySelector(".msgContent");l.appendChild(r);let p=document.createElement("div");p.setAttribute("id","appNameIcon"),r.appendChild(p);let m=document.createElement("span");m.setAttribute("id","appName"),r.appendChild(m);let u=document.createElement("div");u.className="closeBtn",l.appendChild(u);let y=document.createElement("span");y.setAttribute("id","msgTitle"),d.appendChild(y);let g=document.createElement("span");g.setAttribute("id","msgContent"),i.appendChild(g),new Promise(e=>{e({appIcon:"url('"+browser.runtime.getURL("icons/16.png")+"')",closeBtnIcon:"url('"+browser.runtime.getURL("icons/closeBtn.png")+"')"})}).then(e=>{const t=document.querySelector("#appNameIcon"),n=document.querySelector(".closeBtn");t&&(t.style.backgroundImage=`${e.appIcon}`),n&&(n.style.backgroundImage=`${e.closeBtnIcon}`)}),n?(a.classList.remove("bottom"),a.classList.add("top")):(a.classList.remove("top"),a.classList.add("bottom"));const C=document.querySelector("#appName"),b=document.querySelector("#msgTitle"),v=document.querySelector("#msgContent"),h=document.querySelector(".closeBtn");if(C&&(C.textContent="Easy Youtube Video Downloader"),b&&(b.textContent=e),v&&(v.innerHTML=t),a.style.right="20px",h&&h.addEventListener("click",function(){s.classList.add("closed")}),0==doNotAutoclosePopup){var N=o||6e3,S=Math.round(N/1e3);setTimeout(function(){s.classList.add("closed")},N);var f=setInterval(function(){S-=1;const e=document.querySelector("#appName");e&&(e.textContent="Easy Youtube Video Downloader ( "+S+" )"),0==S&&(clearInterval(f),S=0)},1e3)}}