${e.name}`;document.getElementById("left-top-info").innerHTML=o;const n='\n
${e.name}, your account has been banned by system.
${e.email} has been blocked due to bad behavior, illegal activities, or violations of our terms.
Please contact the admin for further assistance.
`,icon:"error",iconColor:"red",allowOutsideClick:!1,allowEscapeKey:!1,showCloseButton:!0,showConfirmButton:!1}))}else{const n={username:e.name,email:e.email,user_account_status:0,picture:e.picture,date_of_creation:o};set(t,n).then((()=>{localStorage.setItem("NewUserStatus","yes"),window.location.reload()})).catch((e=>{system_fault("Security process failed !"),logout(),console.error("Error adding user to database:",e)}))}})).catch((e=>{system_fault("Database connection failed !"),console.error("Error retrieving user data:",e),logout()}))}function system_fault(e){localStorage.getItem("user")&&(localStorage.removeItem("user"),Swal.fire({title:"System failure !",text:e,icon:"info",iconColor:"purple",allowOutsideClick:!1,allowEscapeKey:!0,showCloseButton:!1,showConfirmButton:!0,confirmButtonText:"Ok",confirmButtonColor:"blue"}))}function pageLoadTimeOut(){Swal.fire({title:"Something Went Wrong !",text:"It seems the page is taking longer than expected to load. Please try refreshing the page or check your internet connection. We're working to fix this issue.",icon:"question",iconColor:"red",allowOutsideClick:!1,allowEscapeKey:!1,showCloseButton:!1,showConfirmButton:!0,confirmButtonText:"Refresh page",confirmButtonColor:"red",focusConfirm:!0}).then((e=>{e.isConfirmed&&window.location.reload()}))}function logout(){localStorage.removeItem("user");localStorage.getItem("NewUserStatus")&&localStorage.removeItem("NewUserStatus"),document.getElementById("google-login").style.display="block",document.getElementById("user-info").innerHTML="",document.getElementById("left-top-info").innerHTML="ICT Master",document.getElementById("logout-function").innerHTML=""}function repairMode(){document.body.innerHTML='\nWebsite Under Maintaince !
\nFinishing update...
\n${o.fileName}
\n Download\nNo items found !
';e.insertAdjacentHTML("beforeend",t),console.log("No files")}}catch(e){console.error("Error fetching files:",e)}finally{loading_data(!1)}}function errorLoginDownload(){butterup.toast({title:"Login or Signup Required !",message:"Please login for download files easily.",type:"error",location:"bottom-center"}),google.accounts.id.prompt()}function handleDownload(e){localStorage.getItem("user")?window.open(e,"_blank"):errorLoginDownload()}function handleLink(e){localStorage.getItem("user")?window.open(e,"_blank"):errorLoginDownload()}function clearCookies(){document.cookie.split(";").forEach((e=>{const t=e.split("=")[0].trim();document.cookie=`${t}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`}))}function clearSiteData(){"caches"in window&&caches.keys().then((function(e){e.forEach((function(e){caches.delete(e)}))})),"indexedDB"in window&&indexedDB.databases().then((function(e){e.forEach((function(e){indexedDB.deleteDatabase(e.name)}))})),localStorage.clear(),sessionStorage.clear()}function clearRefresh(){clearCookies(),clearSiteData(),location.reload()}window.onload=function(){if("ictmaster.xyz"===window.location.hostname){timeout=setTimeout((function(){pageLoadTimeOut()}),2e4),document.getElementById("preloader").style.display="none",clearTimeout(timeout),google.accounts.id.initialize({client_id:"264831906364-r08imrfbu8pg6e40d38jsa4hktisij19.apps.googleusercontent.com",callback:handleCredentialResponse}),google.accounts.id.renderButton(document.getElementById("google-login"),{theme:"outline",size:"large",data_auto_prompt:!0,data_auto_select:!0});let e=!1;onValue(repairRef,(t=>{if(1===t.val())repairMode(),e=!0;else{!0===e&&callRefreshOnUpdate();const t=localStorage.getItem("user");localStorage.getItem("NewUserStatus");t?updateUI(JSON.parse(t)):(document.getElementById("logout-function").innerHTML="",document.getElementById("left-top-info").innerHTML="ICT Master"),get(notification).then((e=>{const o=e.val(),n=o.title,a=o.body,i=o.icon,r=o.id,l=localStorage.getItem("notification"),s=localStorage.getItem("NewUserStatus");r.toString()!==l&&r>1&&null===s?callNewNotification(n,a,i,r):t||google.accounts.id.prompt()})).catch((e=>{console.error("Error while notification: "+e.message),t||google.accounts.id.prompt()}))}})),loading_data(!0),fetchAndRenderData()}else{document.getElementById("preloader").style.display="none";Swal.mixin({toast:!1,position:"center",timer:15e3,timerProgressBar:!1,didClose:e=>{window.location.replace("https://ictmaster.xyz")}}).fire({title:"We moved to new domain !",icon:"warning",text:"Please click below button for better experience.",showConfirmButton:!0,showCancelButton:!1,confirmButtonText:"Visit New Site",confirmButtonColor:"blue",allowOutsideClick:!1,allowEscapeKey:!1,focusConfirm:!0})}};