[];a.listeners[b].push({callback:c,_listener:e})}elseconsole.log("Failed to _attach event:"+b+" on "+a)};g=function(a,b,c){if(typeofa.detachEvent!=="undefined"){vare=a.KIS_0_6_0;if(e&&e.listeners&&e.listeners[b])for(varf=e.listeners[b],g=f.length,i=0;i<g;i++)if(f[i].callback===c){a.detachEvent("on"+b,f[i]._listener);f.splice(i,1);f.length===0&&deletee.listeners[b];break}}}}f=function(a,b,c,h){varj,k;if(typeofa==="undefined"){console.log(arguments);console.log(b);returnfalse}if(b.match(/^([\w\-]+)$/))h===
"undefined"!==typeofdocument&&!("classList"indocument.createElement("a"))&&function(e){vare=(e.HTMLElement||e.Element).prototype,g=Object,f=String.prototype.trim||function(){returnthis.replace(/^\s+|\s+$/g,"")},b=Array.prototype.indexOf||function(a){for(varb=0,c=this.length;b<c;b++)if(binthis&&this[b]===a)returnb;return-1},a=function(a,b){this.name=a;this.code=DOMException[a];this.message=b},d=function(c,d){if(d==="")thrownewa("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(d))thrownewa("INVALID_CHARACTER_ERR",
"String contains an invalid character");returnb.call(c,d)},c=function(a){for(varb=f.call(a.className),b=b?b.split(/\s+/):[],c=0,d=b.length;c<d;c++)this.push(b[c]);this._updateClassName=function(){a.className=this.toString()}},h=c.prototype=[],j=function(){returnnewc(this)};a.prototype=Error.prototype;h.item=function(a){returnthis[a]||null};h.contains=function(a){returnd(this,a+"")!==-1};h.add=function(a){a=a+"";if(d(this,a)===-1){this.push(a);this._updateClassName()}};h.remove=function(a){a=
(function(){functione(b,a,d){varc,e;if(typeofb.hasAttribute!=="undefined"){b.hasAttribute(a)&&(c=b.getAttribute(a));e=true}elseif(typeofb[a]!=="undefined"){c=b[a];e=false}elseif(a==="class"&&typeofb.className!=="undefined"){a="className";c=b.className;e=false}if(typeofc==="undefined"&&(typeofd==="undefined"||d===null)){console.log(d);console.log(b);console.log("Element does not have the selected attribute");returnnull}if(typeofd==="undefined")returnc;typeofd!=="undefined"&&d!==null?e===
d;returnnull}if(b.style[c[a]]){b.style[c[a]]=d;returnnull}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){vard=this.el;if(d.length>1&&typeofa==="undefined"){console.log(d);console.log("Must be a singular element")}elseif(d.length>