class Amin_Manipulator{constructor(t){Boolean(t)&&null!=t.tagName?this.items=[t]:this.items=document==t||t==window?[t]:document.querySelectorAll(t),this.c=this.items}loaded(t){this.items!=document&&this.items!=window||(this.items[0].onloadend=t);for(let e=0;e"}createPopUp(t="",e="#000000"){var s,i=document.createElement("dialog");return i.setAttribute("open",!0),i.innerHTML=this.getPopupHtml(t),s="width:30%;background:"+e,s+=";top:20px;border:0px solid black;",s+="color:white;padding-top:0px;",s+="box-shadow:2px 2px 2px lightgrey;border-radius:5px",i.style=s,i}popUp(what,v="",color="#000000;"){var e="('"+v+"')";try{v=eval("this."+what+e)}catch(e){try{let t=document.querySelector(what);v=t.outerHTML}catch(e){v=what}}let p=this.createPopUp(v,color);document.body.appendChild(p);try{document.querySelector("dialog "+what).style.display="block"}catch(e){}}delete(){return this.items[0].parentNode.removeChild(this.items[0]),this}deleteAll(){for(let t=0;t=0}removeClass(t){var e=this._classes.filter(function(e,s,i){return e!==t});return this.set("class",this.join(e)),this}}class Item_Validation extends Element_Attributes{constructor(t){super(t)}exist(){return this.c.length>0}equal(t,e){switch(typeof t){case"string":case"number":return t===e;case"object":return e.every(function(e){return t.indexOf(e)>=0});default:return t===e}}is_number(t){return"number"==typeof t}is_string(t){return"string"==typeof t}is_array(t){return[].constructor.isArray(t)}is_tag(t){return Boolean(t.tagName)}is_object(t){return"Object"===t.constructor.name}}class Encryptions extends Item_Validation{constructor(t){super(t),this.text=null,this.letters=[],this.set_letters()}set_letters(){this.letters="abcdefghijklmnopqrstuvwxyz"}get_letters(){return this.letters}encrypt(t=null,e=1){var s,i,r,n;for(let h=0;h=0?(i+=e,s+=this.letters[i%26]):(n=this.letters.indexOf(this.text[r].toLowerCase()))>=0?(n+=e,s+=this.letters[n%26].toUpperCase()):s+=this.text[r];this.setText(s,this.items[h])}return this}decrypt(t=null,e=1){var s,i,r,n;for(let h=0;h=0?((i-=e)<0&&(i+=26),s+=this.letters[i%26]):(n=this.letters.indexOf(this.text[r].toLowerCase()))>=0?((n-=e)<0&&(n+=26),s+=this.letters[n%26].toUpperCase()):s+=this.text[r];this.setText(s,this.items[h])}return this}}var dom=function(t){return new Encryptions(t)},d=function(t){return new Encryptions(t)},_=new Item_Validation;