",!document.getElementById(s.id)){r.appendChild(s);var p=Math.round(window.innerHeight),m=Math.round(document.getElementById(s.id).offsetHeight);s.style.top=(p-m)/2+"px";var g=document.getElementById(s.id);document.getElementById("NXReportButton").addEventListener("click",function(){i&&"function"==typeof i&&i(),g.classList.add("remove"),setTimeout(function(){g.parentNode.removeChild(g)},newReportSettings.cssAnimationDuration)})}},NotiflixConfirm=function(t,e,n,i,a,o){newConfirmSettings.plainText&&(t=notiflixPlaintext(t),e=notiflixPlaintext(e),n=notiflixPlaintext(n),i=notiflixPlaintext(i)),newConfirmSettings.plainText||(t.length>newConfirmSettings.titleMaxLength&&(t="HTML Tags Error",e='Your Title content length is more than "titleMaxLength" option.',n="Okay",i="..."),e.length>newConfirmSettings.messageMaxLength&&(t="HTML Tags Error",e='Your Message content length is more than "messageMaxLength" option.',n="Okay",i="..."),(n.length||i.length)>newConfirmSettings.buttonsMaxLength&&(t="HTML Tags Error",e='Your Buttons contents length is more than "buttonsMaxLength" option.',n="Okay",i="...")),t.length>newConfirmSettings.titleMaxLength&&(t=t.substring(0,newConfirmSettings.titleMaxLength)+"..."),e.length>newConfirmSettings.messageMaxLength&&(e=e.substring(0,newConfirmSettings.messageMaxLength)+"..."),n.length>newConfirmSettings.buttonsMaxLength&&(n=n.substring(0,newConfirmSettings.buttonsMaxLength)+"..."),i.length>newConfirmSettings.buttonsMaxLength&&(i=i.substring(0,newConfirmSettings.buttonsMaxLength)+"..."),newConfirmSettings.cssAnimation||(newConfirmSettings.cssAnimationDuration=0);var r=document.body,s=document.createElement("div");s.id=confirmSettings.ID,s.className=newConfirmSettings.className+(newConfirmSettings.cssAnimation?" with-animation nx-"+newConfirmSettings.cssAnimationStyle:""),s.style.width=newConfirmSettings.width,s.style.zIndex=newConfirmSettings.zindex,newConfirmSettings.rtl&&(s.setAttribute("dir","rtl"),s.classList.add("rtl-on")),s.style.fontFamily='"'+newConfirmSettings.fontFamily+'", sans-serif';var l="";newConfirmSettings.backOverlay&&(l='');var c="";if(a&&(c=''+i+""),s.innerHTML=l+'
"}newLoadingSettings.cssAnimation||(newLoadingSettings.cssAnimationDuration=0);var l="";if("standard"===e)l=notiflixLoadingSvgStandard(newLoadingSettings.svgSize,newLoadingSettings.svgColor);else if("hourglass"===e)l=notiflixLoadingSvgHourglass(newLoadingSettings.svgSize,newLoadingSettings.svgColor);else if("circle"===e)l=notiflixLoadingSvgCircle(newLoadingSettings.svgSize,newLoadingSettings.svgColor);else if("arrows"===e)l=notiflixLoadingSvgArrows(newLoadingSettings.svgSize,newLoadingSettings.svgColor);else if("dots"===e)l=notiflixLoadingSvgDots(newLoadingSettings.svgSize,newLoadingSettings.svgColor);else if("pulse"===e)l=notiflixLoadingSvgPulse(newLoadingSettings.svgSize,newLoadingSettings.svgColor);else if("custom"===e&&null!==newLoadingSettings.customSvgUrl)l='';else{if("custom"===e&&null==newLoadingSettings.customSvgUrl)return notiflixConsoleError("Notiflix Error",'You have to set a static SVG url to "customSvgUrl" option to use Loading Custom.'),!1;"notiflix"===e&&(l=notiflixLoadingSvgNotiflix(newLoadingSettings.svgSize,"#f8f8f8","#00b462"))}var c=0;0'+l+"",m=document.body,g=document.createElement("div");if(g.id=loadingSettings.ID,g.className=newLoadingSettings.className+(newLoadingSettings.cssAnimation?" with-animation":"")+(newLoadingSettings.clickToClose?" click-to-close":""),g.style.zIndex=newLoadingSettings.zindex,g.style.background=newLoadingSettings.backgroundColor,g.style.animationDuration=newLoadingSettings.cssAnimationDuration+"ms",g.style.fontFamily='"'+newLoadingSettings.fontFamily+'", sans-serif',newLoadingSettings.rtl&&(g.setAttribute("dir","rtl"),g.classList.add("rtl-on")),g.innerHTML=p+o,!document.getElementById(g.id))if(m.appendChild(g),newLoadingSettings.clickToClose)document.getElementById(g.id).addEventListener("click",function(){g.classList.add("remove"),setTimeout(function(){g.parentNode.removeChild(g)},newLoadingSettings.cssAnimationDuration)})}else if(document.getElementById(loadingSettings.ID)){var f=document.getElementById(loadingSettings.ID);setTimeout(function(){f.classList.add("remove"),setTimeout(function(){f.parentNode && f.parentNode.removeChild(f)},newLoadingSettings.cssAnimationDuration)},i)}},NotiflixLoadingChange=function(t){if(document.getElementById(loadingSettings.ID))if(0<(t=t.toString().length>newLoadingSettings.messageMaxLength?notiflixPlaintext(t).toString().substring(0,newLoadingSettings.messageMaxLength)+"...":notiflixPlaintext(t).toString()).length){var e=document.getElementById(loadingSettings.ID).getElementsByTagName("p")[0];if(void 0!==e)e.innerHTML=t;else{var n=document.createElement("p");n.id=newLoadingSettings.messageID,n.className="loading-message new",n.style.color=newLoadingSettings.messageColor,n.style.fontSize=newLoadingSettings.messageFontSize;var i=parseInt(newLoadingSettings.svgSize.slice(0,-2)),a=Math.round(i-i/4).toString()+"px";n.style.top=a;var o=(1.2*parseInt(newLoadingSettings.messageFontSize.slice(0,2))).toString()+"px";n.style.height=o,n.innerHTML=t,document.getElementById(loadingSettings.ID).appendChild(n);var r=document.getElementById(loadingSettings.ID).getElementsByTagName("div")[0],s="-"+Math.round(i-i/4).toString()+"px";r.style.top=s}}else notiflixConsoleError("Notiflix Error","Where is the new message?")},notiflixReportSvgSuccess=function(t,e){return''},notiflixReportSvgFailure=function(t,e){return''},notiflixReportSvgWarning=function(t,e){return''},notiflixReportSvgInfo=function(t,e){return''},notiflixLoadingSvgStandard=function(t,e){return''},notiflixLoadingSvgHourglass=function(t,e){return''},notiflixLoadingSvgCircle=function(t,e){return''},notiflixLoadingSvgArrows=function(t,e){return''},notiflixLoadingSvgDots=function(t,e){return''},notiflixLoadingSvgPulse=function(t,e){return''},notiflixLoadingSvgNotiflix=function(t,e,n){return''};