function filesRefresh(){return""==filesGetCookie("filemode")&&filesSetCookie("filemode","list",90),"grid"==filesGetCookie("filemode")?filesGrid():"list"==filesGetCookie("filemode")?filesList():void 0}function switchFilesLayout(){return"grid"==filesGetCookie("filemode")?filesList():"list"==filesGetCookie("filemode")?filesGrid():void 0}function filesGrid(){var e,i;"grid"!=currentFileMode&&(currentFileMode="grid",e=document.getElementById("filesGrid"),i=document.getElementById("filesList"),e.classList.add("file-manager-active"),i.classList.remove("file-manager-active"),fetchStyle("/extensions/nebula/libraries/squareFileManager.css","squareFileManager"),filesSetCookie("filemode","grid",90))}function filesList(){var e;"list"!=currentFileMode&&(currentFileMode="list",e=document.getElementById("filesGrid"),document.getElementById("filesList").classList.add("file-manager-active"),e.classList.remove("file-manager-active"),filesSetCookie("filemode","list",90),removeStyle("squareFileManager"))}function fileModeGet(){return currentFileMode}function filesSetCookie(e,i,t){var l=new Date,l=(l.setTime(l.getTime()+24*t*60*60*1e3),"expires="+l.toUTCString());document.cookie=e+"="+i+";"+l+";path=/"}function filesGetCookie(e){var i=e+"=",t=document.cookie.split(";");for(let l=0;l<t.length;l++){let e=t[l];for(;" "==e.charAt(0);)e=e.substring(1);if(0==e.indexOf(i))return e.substring(i.length,e.length)}return""}function fileModeShow(){document.getElementById("fileMode").style.display="inline"}function fileModeHide(){document.getElementById("fileMode").style.display="none"}console.log("nebula#~ fileMode.js"),currentFileMode="";