text: !function(e){var t=function(){return e()["default"]};if("object"==typeof exports)module.exports=t();else if("function"==typeof define&&define.amd)define(t);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.$=t()}}(function(){return function e(t,n,r){function i(s,u){if(!n[s]){if(!t[s]){var a="function"==typeof require&&require;if(!u&&a)return a(s,!0);if(o)return o(s,!0);throw new Error("Cannot find module '"+s+"'")}var c=n[s]={exports:{}};t[s][0].call(c.exports,function(e){var n=t[s][1][e];return i(n?n:e)},c,c.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(e,t){"use strict";var n=e("./util").extend,r={},i={},o={},s=e("./array"),u=e("./attr"),a=e("./class"),c=e("./dom"),l=e("./dom_extra"),f=e("./event"),d=e("./html"),h=e("./selector"),v=e("./selector_extra");void 0!==h&&(o=h.$,o.matches=h.matches,r.find=h.find);var p=e("./mode");n(o,p);var m=e("./noconflict");n(o,m),n(r,s,u,a,c,l,f,d,v),n(i,s),o.version="0.6.1",o.extend=n,o._api=r,o._apiNodeList=i;var g=o;t.exports={"default":g,__esModule:!0}},{"./array":2,"./attr":3,"./class":4,"./dom":5,"./dom_extra":6,"./event":7,"./html":8,"./mode":10,"./noconflict":11,"./selector":12,"./selector_extra":13,"./util":14}],2:[function(e,t){"use strict";function n(e){var t="function"==typeof e?e:function(t){return a(t,e)};return u(c.filter.call(this,t))}function r(e){return o(this,e)}function i(){var e=c.slice.call(this);return u(c.reverse.call(e))}var o=e("./util").each,s=e("./selector"),u=s.$,a=s.matches,c=Array.prototype,l=r,f=c.map,d=c.every,h=c.some,v=c.indexOf;t.exports={each:r,every:d,filter:n,forEach:l,indexOf:v,map:f,reverse:i,some:h,__esModule:!0}},{"./selector":12,"./util":14}],3:[function(e,t){"use strict";function n(e,t){if("string"==typeof e&&"undefined"==typeof t){var n=this.nodeType?this:this[0];return n?n.getAttribute(e):void 0}return r(this,function(n){if("object"==typeof e)for(var r in e)n.setAttribute(r,e[r]);else n.setAttribute(e,t)}),this}var r=e("./util").each;t.exports={attr:n,__esModule:!0}},{"./util":14}],4:[function(e,t){"use strict";function n(e){return a(this,function(t){t.classList.add(e)}),this}function r(e){return a(this,function(t){t.classList.remove(e)}),this}function i(e){return a(this,function(t){t.classList.toggle(e)}),this}function o(e){return u(this).some(function(t){return t.classList.contains(e)})}var s=e("./util"),u=s.makeIterable,a=s.each;t.exports={addClass:n,removeClass:r,toggleClass:i,hasClass:o,__esModule:!0}},{"./util":14}],5:[function(e,t){"use strict";function n(e){if(this instanceof Node)if("string"==typeof e)this.insertAdjacentHTML("beforeend",e);else if(e instanceof Node)this.appendChild(e);else{var t=e instanceof NodeList?s(e):e;t.forEach(this.appendChild.bind(this))}else for(var r=this.length;r--;){var i=0===r?e:o(e);n.call(this[r],i)}return this}function r(e){if(this instanceof Node)if("string"==typeof e)this.insertAdjacentHTML("beforebegin",e);else if(e instanceof Node)this.parentNode.insertBefore(e,this);else{var t=e instanceof NodeList?s(e):e;t.forEach(r.bind(this))}else for(var n=this.length;n--;){var i=0===n?e:o(e);r.call(this[n],i)}return this}function i(e){if(this instanceof Node)if("string"==typeof e)this.insertAdjacentHTML("afterend",e);else if(e instanceof Node)this.parentNode.insertBefore(e,this.nextSibling);else{var t=e instanceof NodeList?s(e):e;t.reverse().forEach(i.bind(this))}else for(var n=this.length;n--;){var r=0===n?e:o(e);i.call(this[n],r)}return this}function o(e){return"string"==typeof e?e:e instanceof Node?e.cloneNode(!0):"length"in e?[].map.call(e,function(e){return e.cloneNode(!0)}):e}var s=e("./util").toArray;t.exports={append:n,before:r,after:i,__esModule:!0}},{"./util":14}],6:[function(e,t){"use strict";function n(e){var t="string"==typeof e?c(e):e;return u.call(t,this),this}function r(){return o(this,function(e){e.parentNode&&e.parentNode.removeChild(e)})}function i(){return a.apply(this,arguments).remove()}var o=e("./util").each,s=e("./dom"),u=s.append,a=s.before,c=(s.after,e("./selector").$);t.exports={appendTo:n,remove:r,replaceWith:i,__esModule:!0}},{"./dom":5,"./selector":12,"./util":14}],7:[function(e,t){"use strict";function n(e,t,n,r){"function"==typeof t&&(n=t,t=null);var i=e.split(".");e=i[0]||null;var o=i[1]||null,s=n;return v(this,function(i){t&&(s=f.bind(i,t,n)),i.addEventListener(e,s,r||!1),c(i).push({eventName:e,handler:n,eventListener:s,selector:t,namespace:o})}),this}function r(e,t,n,r){if("function"==typeof t&&(n=t,t=null),e){var i=e.split(".");e=i[0];var o=i[1]}return v(this,function(i){var s=c(i);e||o||t||n?(v(s.filter(function(r){return!(e&&r.eventName!==e||o&&r.namespace!==o||n&&r.handler!==n||t&&r.selector!==t)}),function(e){i.removeEventListener(e.eventName,e.eventListener,r||!1),s.splice(s.indexOf(e),1)}),0===s.length&&l(i)):(v(s,function(e){i.removeEventListener(e.eventName,e.eventListener,r||!1)}),l(i))}),this}function i(e,t,r){return n.call(this,t,e,r)}function o(e,t,n){return r.call(this,t,e,n)}function s(e){var t=void 0!==arguments[1]?arguments[1]:{bubbles:!0,cancelable:!0,detail:void 0},n=new CustomEvent(e,t);return v(this,function(r){!t.bubbles||N||u(r)?r.dispatchEvent(n):a(r,e,t)}),this}function u(e){if(e===window||e===document)return!0;var t=e.ownerDocument.documentElement;return t.contains?t.contains(e):t.compareDocumentPosition?!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_DISCONNECTED):!1}function a(e,t){var n=void 0!==arguments[2]?arguments[2]:{};n.bubbles=!1;var r=new CustomEvent(t,n);for(r._target=e;e.parentNode;)e.dispatchEvent(r),e=e.parentNode}function c(e){e[m]||(e[m]=0===b.length?++g:b.pop());var t=e[m];return y[t]||(y[t]=[])}function l(e){var t=e[m];y[t]&&(y[t]=null,e[t]=null,b.push(t))}function f(e,t,n){var r=n._target||n.target;p(r,e)&&(n.currentTarget||(n.currentTarget=r),t.call(r,n))}var d=e("./util"),h=d.global,v=d.each,p=e("./selector").matches,m="__domtastic",g=1,y={},b=[];!function(){function e(e){var t=void 0!==arguments[1]?arguments[1]:{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}e.prototype=h.CustomEvent&&h.CustomEvent.prototype,h.CustomEvent=e}();var N=function(){var e=!1,t=h.document;if(t){var n=t.createElement("div"),r=n.cloneNode();n.appendChild(r),n.addEventListener("e",function(){e=!0}),r.dispatchEvent(new CustomEvent("e",{bubbles:!0}))}return e}();t.exports={on:n,off:r,delegate:i,undelegate:o,trigger:s,__esModule:!0}},{"./selector":12,"./util":14}],8:[function(e,t){"use strict";function n(e){if("string"!=typeof e){var t=this.nodeType?this:this[0];return t?t.innerHTML:void 0}return r(this,function(t){t.innerHTML=e}),this}var r=e("./util").each;t.exports={html:n,__esModule:!0}},{"./util":14}],9:[function(e,t){"use strict";var n=e("./api").default,r=n;t.exports={"default":r,__esModule:!0}},{"./api":1}],10:[function(e,t){"use strict";function n(){var e=void 0!==arguments[0]?arguments[0]:!0,t=u;return u=e,s.$&&(s.$.isNative=u),!t&&u&&i(this._api,this._apiNodeList),t&&!u&&o(this._api,this._apiNodeList),u}function r(e,t,n){e.hasOwnProperty(t)||Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!1})}function i(e,t){var n;for(n in e)r(a,n,e[n]),r(c,n,e[n]);for(n in t)r(c,n,t[n])}function o(e,t){var n;for(n in e)l(a,n),l(c,n);for(n in t)l(c,n)}var s=e("./util").global,u=!1,a="undefined"!=typeof Node&&Node.prototype,c="undefined"!=typeof NodeList&&NodeList.prototype,l=function(e,t){delete e[t]};t.exports={isNative:u,"native":n,__esModule:!0}},{"./util":14}],11:[function(e,t){"use strict";function n(){return r.$=i,this}var r=e("./util").global,i=r.$;t.exports={noConflict:n,__esModule:!0}},{"./util":14}],12:[function(e,t){"use strict";function n(e){var t,r=void 0!==arguments[1]?arguments[1]:document;return e?"string"!=typeof e?t=l(e):d.test(e)?t=o(e):(r="string"==typeof r?document.querySelector(r):r.length?r[0]:r,t=i(e,r)):t=document.querySelectorAll(null),n.isNative?t:s(t)}function r(e){return n(e,this)}function i(e,t){var r=v.test(e);if(r&&!n.isNative){if("#"===e[0]){var i=(t.getElementById?t:document).getElementById(e.slice(1));return i?[i]:[]}return"."===e[0]?t.getElementsByClassName(e.slice(1)):t.getElementsByTagName(e)}return t.querySelectorAll(e)}function o(e){if(h.test(e))return[document.createElement(RegExp.$1)];var t=[],n=document.createElement("div"),r=n.childNodes;n.innerHTML=e;for(var i=0,o=r.length;o>i;i++)t.push(r[i]);return t}function s(e){return f||(u.prototype=n._api,u.prototype.constructor=u,f=!0),new u(e)}function u(e){for(var t=0,n=e.length;n>t;)this[t]=e[t++];this.length=n}var a=e("./util"),c=a.global,l=a.makeIterable,f=([].slice,!1),d=/^\s*<(\w+|!)[^>]*>/,h=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^[\.#]?[\w-]*$/,p=function(){var e="undefined"!=typeof Element?Element.prototype:c,t=e.matches||e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;return function(e,n){return t.call(e,n)}}();t.exports={$:n,find:r,matches:p,__esModule:!0}},{"./util":14}],13:[function(e,t){"use strict";function n(e){var t=[];return a(this,function(n){a(n.children,function(n){(!e||e&&f(n,e))&&t.push(n)})}),l(t)}function r(e){for(var t=this[0];t.nodeType!==t.DOCUMENT_NODE;t=t.parentNode)if(f(t,e))return l(t);return l()}function i(e){var t=[];return a(this,function(n){(!e||e&&f(n.parentNode,e))&&t.push(n.parentNode)}),l(t)}function o(e){return u.call(this,e,e+1)}function s(e){return this[e]}function u(){return l([].slice.apply(this,arguments))}var a=e("./util").each,c=e("./selector"),l=c.$,f=c.matches;t.exports={children:n,closest:r,parent:i,eq:o,get:s,slice:u,__esModule:!0}},{"./selector":12,"./util":14}],14:[function(e,t){"use strict";function n(e,t){var n=e.length;if(void 0!==n)for(var r=0;n>r;r++)t(e[r],r,e);else t(e,0,e);return e}function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){if(t)for(var n in t)e[n]=t[n]}),e}var i=new Function("return this")(),o=Array.prototype.slice,s=function(e){return o.call(e)},u=function(e){return void 0===e.length||e===window?[e]:e};t.exports={global:i,toArray:s,makeIterable:u,each:n,extend:r,__esModule:!0}},{}]},{},[9])(9)});