!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.domDelegate=t()}}(function(){return function t(e,i,n){function r(o,a){if(!i[o]){if(!e[o]){var l="function"==typeof require&&require;if(!a&&l)return l(o,!0);if(s)return s(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var c=i[o]={exports:{}};e[o][0].call(c.exports,function(t){var i=e[o][1][t];return r(i?i:t)},c,c.exports,t,e,i,n)}return i[o].exports}for(var s="function"==typeof require&&require,o=0;o=0;r--)s=a[r],e&&e!==s.selector||i&&i!==s.handler||a.splice(r,1);return a.length||(delete o[t],this.rootElement&&this.rootElement.removeEventListener(t,this.handle,n)),this},n.prototype.handle=function(t){var e,i,n,r,s,o,a,l=t.type,h=[],c="ftLabsDelegateIgnore";if(t[c]!==!0){switch(a=t.target,3===a.nodeType&&(a=a.parentNode),n=this.rootElement,r=t.eventPhase||(t.target!==t.currentTarget?3:2)){case 1:h=this.listenerMap[1][l];break;case 2:this.listenerMap[0]&&this.listenerMap[0][l]&&(h=h.concat(this.listenerMap[0][l])),this.listenerMap[1]&&this.listenerMap[1][l]&&(h=h.concat(this.listenerMap[1][l]));break;case 3:h=this.listenerMap[0][l]}for(i=h.length;a&&i;){for(e=0;e0&&e.preventDefault(),i.scrollHeight-i.scrollTop<=i.clientHeight&&n<0&&e.preventDefault()}};return function(t,o){"undefined"!=typeof o&&(e=o,i=document.querySelector(o));var a=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){a=!0}}))}catch(l){}!0===t?(i&&(i.addEventListener("touchstart",r,!1),i.addEventListener("touchmove",s,!1)),document.body.addEventListener("touchmove",n,!!a&&{capture:!1,passive:!1})):(i&&(i.removeEventListener("touchstart",r,!1),i.removeEventListener("touchmove",s,!1)),document.body.removeEventListener("touchmove",n,!!a&&{capture:!1,passive:!1}))}}();!function(t){"use strict";function e(){var e=this;e.reads=[],e.writes=[],e.raf=l.bind(t),a("initialized",e)}function i(t){t.scheduled||(t.scheduled=!0,t.raf(n.bind(null,t)),a("flush scheduled"))}function n(t){a("flush");var e,n=t.writes,s=t.reads;try{a("flushing reads",s.length),r(s),a("flushing writes",n.length),r(n)}catch(o){e=o}if(t.scheduled=!1,(s.length||n.length)&&i(t),e){if(a("task errored",e.message),!t["catch"])throw e;t["catch"](e)}}function r(t){a("run tasks");for(var e;e=t.shift();)e()}function s(t,e){var i=t.indexOf(e);return!!~i&&!!t.splice(i,1)}function o(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}var a=function(){},l=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){return setTimeout(t,16)};e.prototype={constructor:e,measure:function(t,e){a("measure");var n=e?t.bind(e):t;return this.reads.push(n),i(this),n},mutate:function(t,e){a("mutate");var n=e?t.bind(e):t;return this.writes.push(n),i(this),n},clear:function(t){return a("clear",t),s(this.reads,t)||s(this.writes,t)},extend:function(t){if(a("extend",t),"object"!=typeof t)throw new Error("expected object");var e=Object.create(this);return o(e,t),e.fastdom=this,e.initialize&&e.initialize(),e},"catch":null};var h=t.fastdom=t.fastdom||new e;"function"==typeof define?define(function(){return h}):"object"==typeof module&&(module.exports=h)}("undefined"!=typeof window?window:this),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function l(t,e,n){var r,s="$()."+i+'("'+e+'")';return t.each(function(t,l){var h=a.data(l,i);if(!h)return void o(i+" not initialized. Cannot call methods, i.e. "+s);var c=h[e];if(!c||"_"==e.charAt(0))return void o(s+" is not a valid method");var u=c.apply(h,n);r=void 0===r?u:r}),void 0!==r?r:t}function h(t,e){t.each(function(t,n){var r=a.data(n,i);r?(r.option(e),r._init()):(r=new s(n,e),a.data(n,i,r))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=r.call(arguments,1);return l(this,t,e)}return h(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var r=Array.prototype.slice,s=t.console,o="undefined"==typeof s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],r=0;r