!function(a){functionb(){}functionc(a){functionc(b){b.prototype.option||(b.prototype.option=function(b){a.isPlainObject(b)&&(this.options=a.extend(!0,this.options,b))})}functione(b,c){a.fn[b]=function(e){if("string"==typeofe){for(varg=d.call(arguments,1),h=0,i=this.length;i>h;h++){varj=this[h],k=a.data(j,b);if(k)if(a.isFunction(k[e])&&"_"!==e.charAt(0)){varl=k[e].apply(k,g);if(void0!==l)returnl}elsef("no such method '"+e+"' for "+b+" instance");elsef("cannot call methods on "+b+" prior to initialization; attempted to call '"+e+"'")}returnthis}returnthis.each(function(){vard=a.data(this,b);d?(d.option(e),d._init()):(d=newc(this,e),a.data(this,b,d))})}}if(a){varf="undefined"==typeofconsole?b:function(a){console.error(a)};returna.bridget=function(a,b){c(b),e(a,b)},a.bridget}}vard=Array.prototype.slice;"function"==typeofdefine&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],c):c("object"==typeofexports?require("jquery"):a.jQuery)}(window),function(a){functionb(b){varc=a.event;returnc.target=c.target||c.srcElement||b,c}varc=document.documentElement,d=function(){};c.addEventListener?d=function(a,b,c){a.addEventListener(b,c,!1)}:c.attachEvent&&(d=function(a,c,d){a[c+d]=d.handleEvent?function(){varc=b(a);d.handleEvent.call(d,c)}:function(){varc=b(a);d.call(a,c)},a.attachEvent("on"+c,a[c+d])});vare=function(){};c.removeEventListener?e=function(a,b,c){a.removeEventListener(b,c,!1)}:c.detachEvent&&(e=function(a,b,c){a.detachEvent("on"+b,a[b+c]);try{deletea[b+c]}catch(d){a[b+c]=void0}});varf={bind:d,unbind:e};"function"==typeofdefine&&define.amd?define("eventie/eventie",f):"object"==typeofexports?module.exports=f:a.eventie=f}(window),function(){"use strict";functiona(){}functionb(a,b){for(varc=a.length;c--;)if(a[c].listener===b)returnc;return-1}functionc(a){returnfunction(){returnthis[a].apply(this,arguments)}}vard=a.prototype,e=this,f=e.EventEmitter;d.getListeners=function(a){varb,c,d=this._getEvents();if(ainstanceofRegExp){b={};for(cind)d.hasOwnProperty(c)&&a.test(c)&&(b[c]=d[c])}elseb=d[a]||(d[a]=[]);returnb},d.flattenListeners=function(a){varb,c=[];for(b=0;b<a.length;b+=1)c.push(a[b].listener);returnc},d.getListenersAsObject=function(a){varb,c=this.getListeners(a);returncinstanceofArray&&(b={},b[a]=c),b||c},d.addListener=function(a,c){vard,e=this.getListenersAsObject(a),f="object"==typeofc;for(dine)e.hasOwnProperty(d)&&-1===b(e[d],c)&&e[d].push(f?c:{listener:c,once:!1});returnthis},d.on=c("addListener"),d.addOnceListener=function(a,b){returnthis.addListener(a,{listener:b,once:!0})},d.once=c("addOnceListener"),d.defineEvent=function(a){returnthis.getListeners(a),this},d.defineEvents=function(a){for(varb=0;b<a.length;b+=1)this.defineEvent(a[b]);returnthis},d.removeListener=function(a,c){vard,e,f=this.getListenersAsObject(a);for(einf)f.hasOwnProperty(e)&&(d=b(f[e],c),-1!==d&&f[e].splice(d,1));returnthis},d.off=c("removeListener"),d.addListeners=function(a,b){returnthis.manipulateListeners(!1,a,b)},d.removeListeners=function(a,b){returnthis.manipulateListeners(!0,a,b)},d.manipulateListeners=function(a,b,c){vard,e,f=a?this.removeListener:this.addListener,g=a?this.removeListeners:this.addListeners;if("object"!=typeofb||binstanceofRegExp)for(d=c.length;d--;)f.call(this,b,c[d]);elsefor(dinb)b.hasOwnProperty(d)&&(e=b[d])&&("function"==typeofe?f.call(this,d,e):g.call(this,d,e));returnthis},d.removeEvent=function(a){varb,c=typeofa,d=this._getEvents();if("string"===c)deleted[a];elseif(ainstanceofRegExp)for(bind)d.hasOwnProperty(b)&&a.test(b)&&deleted[b];elsedeletethis._events;returnthis},d.removeAllListeners=c("removeEvent"),d.emitEvent=function(a,b){varc,d,e,f,g=this.getListenersAsObject(a);for(eing)if(g.hasOwnProperty(e))for(d=g[e].length;d--;)c=g[e][d],c.once===!0&&this.removeListener(a,c.listener),f=c.listener.apply(this,b||[]),f===this._getOnceReturnValue()&&this.removeListener(a,c.listener);returnthis},d.trigger=c("emitEvent"),d.emit=function(a){varb=Array.prototype.slice.call(arguments,1);returnthis.emitEvent(a,b)},d.setOnc