typeofdocument!=="undefined"&&!("classList"indocument.createElement("a"))&&function(d){vard=(d.HTMLElement||d.Element).prototype,h=Object,f=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},b=Array.prototype.indexOf||function(a){for(varc=0,b=this.length;c<b;c++)if(cinthis&&this[c]===a)returnc;return-1},a=function(a,c){this.name=a;this.code=DOMException[a];this.message=c},c=function(c,e){if(e==="")thrownewa("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))thrownewa("INVALID_CHARACTER_ERR",
"String contains an invalid character");returnb.call(c,e)},e=function(a){for(varc=f.call(a.className),c=c?c.split(/\s+/):[],b=0,e=c.length;b<e;b++)this.push(c[b]);this._updateClassName=function(){a.className=this.toString()}},g=e.prototype=[],j=function(){returnnewe(this)};a.prototype=Error.prototype;g.item=function(a){returnthis[a]||null};g.contains=function(a){a+="";returnc(this,a)!==-1};g.add=function(a){a+="";c(this,a)===-1&&(this.push(a),this._updateClassName())};g.remove=function(a){a+=
(function(){functiond(b,a,c){vare,g;if(typeofb.hasAttribute!=="undefined")b.hasAttribute(a)&&(e=b.getAttribute(a)),g=true;elseif(typeofb[a]!=="undefined")e=b[a],g=false;elseif(a==="class"&&typeofb.className!=="undefined")a="className",e=b.className,g=false;if(typeofe==="undefined"&&(typeofc==="undefined"||c===null))console.log(c),console.log(b),console.log("Element does not have the selected attribute");else{if(typeofc==="undefined")returne;typeofc!=="undefined"&&c!==null?g===true?b.setAttribute(a,
b.style[e[a]]=c:console.log("Property "+a+" nor an equivalent seems to exist")}$_.ext("dom",{addClass:function(b){$_.each(function(a){a.classList.add(b)})},removeClass:function(b){$_.each(function(a){a.classList.remove(b)})},hide:function(){this.css("display","none")},show:function(b){typeofb==="undefined"&&(b="block");this.css("display",b)},attr:function(b,a){varc=this.el;if(c.length>1&&typeofa==="undefined")console.log(c),console.log("Must be a singular element");elseif(c.length>1&&typeofa!==
e=0;$_.type(f)!=="array"&&(f=this.object_values(f));$_.type(b)!=="array"&&(b=this.object_values(b));c=f.length;if(c!==b.length)returnconsole.log("Object combine requires two arrays of the same size"),false;for(e=0;e<c;e++)a[f[e]]=b[e];returna},object_merge:function(){varf=Array.prototype.slice.call(arguments),b=f.length,a={},c,e=0,g,d,h;c=true;for(g=0;g<b;g++)if($_.type(f[g])!=="array"){c=false;break}if(c){a=[];for(g=0;g<b;g++)a=a.contact(f[g]);returna}for(g=0,h=0;g<b;g++)if(c=f[g],$_.type(c)==
[],a.listeners[c].push({callback:b,listener:d})):console.log("Failed to _attach event:"+c+" on "+a)},h=function(a,c,b){if(typeofa.detachEvent!=="undefined"){vard=a.KIS_0_5_0;if(d&&d.listeners&&d.listeners[c])for(varf=d.listeners[c],h=f.length,i=0;i<h;i++)if(f[i].callback===b){a.detachEvent("on"+c,f[i].listener);f.splice(i,1);f.length===0&&deleted.listeners[c];break}}});f=function(a,c,b,g){varj,k;if(typeofa==="undefined")returnconsole.log(arguments),console.log(c),false;if(c.match(/^([\w\-]+)$/))g===