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