text: function echo(...e){return e.join(" ")}function projects(){return"github: https://github.com/Sigmanor"}function contacts(){return"facebook - https://www.fb.com/SlGMANOR\ntelegram - https://t.me/Sigmanor\nemail - sigmanor@pm.me"}echo.usage="echo arg [arg ...]",echo.doc="Echos to output whatever arguments are input",projects.usage="",projects.doc="List of my projects",contacts.usage="",contacts.doc="How can you contact me";const getUserInformation=new Promise(((e,t)=>{$.getJSON("https://ipgeolocation.abstractapi.com/v1/?api_key=44853bfc7d424428ab97f0d16c43ac7c",(function(t){e(JSON.stringify(t,null,1))}))}));function user(){return getUserInformation.then((e=>e.replace(/(?:,|"|{|})/g,"").replace("security:","\n[security]").replace("ip_address:","[location]\nip_address:").replace("timezone:","[timezone]").replace("flag:","[flag]").replace("currency:","[currency]").replace("connection:","[connection]")))}function about(){return"My name is Alexander, I`m from Ukraine. One of my hobbies is Programming.\nYou can look to my github page https://github.com/Sigmanor\nMaybe you will find there something interesting.\n \nThis website was created using:\nhttps://codepen.io/MattCowley/pen/jqBbdG\n \nLicence:\nhttps://raw.githubusercontent.com/Sigmanor/sigmanor.github.io/master/LICENSE"}function clear(){$("#outputs").html("")}function help(e){if(e){let t="",o=cmds[e].usage,n=cmds[e].doc;return t+="function"==typeof o?o():o,t+="\n",t+="function"==typeof n?n():n,t}{let e="**Commands:**\n\n";print=Object.keys(cmds);for(let t of print)e+="- "+t+"\n";return e}}user.usage="",user.doc="All I can know about you (but I swear I will don't remember this data)",about.usage="",about.doc="A little bit about me and this website",clear.usage="",clear.doc="Clears the terminal screen",help.usage="help [command]",help.doc="Without an argument, lists available commands. If used with an argument displays the usage & docs for the command.";var cmds={projects:projects,contacts:contacts,about:about,user:user,clear:clear,echo:echo,help:help};function input(){var e=$(".console-input").val();return $("#outputs").append("<div class='output-cmd'>"+e+"</div>"),$(".console-input").val(""),autosize.update($("textarea")),$("html, body").animate({scrollTop:$(document).height()},300),e}function output(e){var t=new Remarkable({breaks:!0,linkify:!0,linkTarget:!0});$("#outputs").append(t.render(e)),$(".console").scrollTop($(".console-inner").height())}$(".console").click((function(){$(".console-input").focus()}));var newLine="<br/> &nbsp;";autosize($("textarea"));var count_particles,stats,update,cmdHistory=[],cursor=-1;$(".console-input").on("keydown",(function(e){if(38===e.which)cursor=Math.min(++cursor,cmdHistory.length-1),$(".console-input").val(cmdHistory[cursor]);else if(40===e.which)-1===(cursor=Math.max(--cursor,-1))?$(".console-input").val(""):$(".console-input").val(cmdHistory[cursor]);else if(13==e.keyCode){e.preventDefault(),cursor=-1;let t=input(),o=getTokens(t)[0],n=o.shift().value;if(o=o.filter((e=>"whitespace"!==e.type)).map((e=>e.value)),cmdHistory.unshift(t),"function"==typeof cmds[n]){let e=cmds[n](...o);void 0===e||(e instanceof Promise?e.then(output):(console.log(e),output(e)))}else""===n.trim()?output(""):(output("Command not found: `"+n+"`"),output("Use 'help' for list of commands."));"easteregg"===n.trim()&&console.log("Wow, you found an easter egg, congratulations, now you can tell your friends how clever you are :) You can click this link, and I will also find out about it http://bit.ly/8oqSuiUnNDcTBL160hmTACShEUoqH9uFIChMolipEm8N1NEPkuyayjQ Who knows, maybe this link is another easter egg?")}})),$(document).ready((function(){})),particlesJS("particles-js",{particles:{number:{value:80,density:{enable:!0,value_area:800}},color:{value:"#ffffff"},shape:{type:"circle",stroke:{width:0,color:"#000000"},polygon:{nb_sides:5},image:{src:"img/github.svg",width:100,height:100}},opacity:{value:.5,random:!1,anim:{enable:!1,speed:1,opacity_min:.1,sync:!1}},size:{value:3,random:!0,anim:{enable:!1,speed:40,size_min:.1,sync:!1}},line_linked:{enable:!0,distance:150,color:"#ffffff",opacity:.4,width:1},move:{enable:!0,speed:6,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:600,rotateY:1200}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!1,mode:"repulse"},onclick:{enable:!1,mode:"push"},resize:!0},modes:{grab:{distance:400,line_linked:{opacity:1}},bubble:{distance:400,size:40,duration:2,opacity:8,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!0}),(stats=new Stats).setMode(0),stats.domElement.style.position="absolute",stats.domElement.style.left="0px",stats.domElement.style.top="0px",document.body.appendChild(stats.domElement),count_particles=document.querySelector(".js-count-particles"),update=function(){stats.begin(),stats.end(),window.pJSDom[0].pJS.particles&&window.pJSDom[0].pJS.particles.array&&(count_particles.innerText=window.pJSDom[0].pJS.particles.array.length),requestAnimationFrame(update)},requestAnimationFrame(update);