/*! * DollarJS 2.2.1 -- a light, fast, modular, jQuery replacement * Github: https://github.com/seebigs/dollar-js * Released under the MIT license: https://opensource.org/licenses/MIT */ (function(){var t,n,e=function(t,n){return new e.fn.init(t,n)},i="string",r="function",o=window,f=o.Element.prototype,s=Object.prototype,a=s.toString,u=s.hasOwnProperty,l=Array.prototype,c=l.slice,h=document,p=document.documentElement,d=/[\s\t\r\n\f]+/g;function y(){var t,i,r,o=e();return n.each(c.call(arguments),function(n){if(n)for(t=0,i=n.length;t1){for(var o=0,f=e.length;o)[^>]*)\s*$/.exec(t);if(s){if(t=s[1]){var a=h.getElementById(t);return a&&e!==a&&e.contains(a)?[a]:[]}if(t=s[2])return e.getElementsByTagName(t);if(t=s[3])return typeof e.getElementsByClassName===r?e.getElementsByClassName(t):e.querySelectorAll(t);if(t=s[4])return[x(t)]}else{var u=/(.*):(.+)/.exec(t);if(u){var l=u[1]||"*",d=u[2].split("("),y=v[d[0]];if(y)return y(l,e,d)}}return c.call(e.querySelectorAll(t))}var E=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.msMatchesSelector||f.oMatchesSelector||w;function w(t){var n=b(t);return-1!==l.indexOf.call(n,this)}function C(t,n,e){return!(!n||!t||1!==t.nodeType)&&(typeof n!==i?n.nodeType?t===n:typeof n===r?!!n.call(t,t,e):!!n.length&&-1!==n.indexOf(t):E.call(t,n))}function T(t,n){for(var e=[],i=0,r=t.length;i(?:<\/\1>|)$/.exec(t);if(n)return h.createElement(n[1]);var e=h.createElement("div");return e.innerHTML=t,e.childNodes[0]}function N(t){return typeof t===i?b(t):t.isDollar?t.get():1===t.nodeType||9===t.nodeType?[t]:Array.isArray(t)?t:[p]}var O="dollar-node-id",S=1,A={},D={};function j(t){var n=t&&t.nodeType;return n&&3!==n&&8!==n&&2!==n}function H(n){return 9===n.nodeType&&(n=n.documentElement),j(n)?n:t}function L(n,e){if(n)return n===n.window?n[e]:(n=H(n))&&n.hasAttribute(e)?n.getAttribute(e):t}function M(t,n,e){return t===t.window&&(t[n]=e),(t=H(t))&&t.setAttribute(n,e)}function q(n,e){return n===n.window&&(n[e]=t),(n=H(n))&&n.removeAttribute(e)}function B(n){return Number(L(n,O))||t}function W(t,n){return M(t,O,n)}function $(t,n,e){var i=B(n);if(i)return e?t[i]&&t[i][e]:t[i]}function k(t,n,e,i){var r=B(n);r||(W(n,r=S),S++),t[r]||(t[r]={}),t[r][e]=i}function I(t,n,e,i){var r=$(t,n,e)||[];r.push(i),k(t,n,e,r)}function z(t,n,e){var i=n+" "+F(e),r=t.style.transition?t.style.transition.split(/,\s?/):[],o=!1;return r.forEach(function(t,e){0===t.indexOf(n+" ")&&(r[e]=i,o=!0)}),o||r.push(i),r.join(", ")}function V(t,n){var e=[];return t.style.transition.split(/,\s?/).forEach(function(t){0!==t.indexOf(n+" ")&&e.push(t)}),e.join(", ")}function F(t){var n=[];return n.push(typeof t.duration===i?t.duration:(parseInt(t.duration)||400)+"ms"),n.push(t.easing||"ease"),n.push(typeof t.delay===i?t.delay:(parseInt(t.delay)||0)+"ms"),n.join(" ")}function P(t,n){var e,o,f,s,a,u,l=(t=[].concat.apply([],t)).length,c=this.length;function p(t){a.appendChild(t),f=!0}for(o=0;o=0?this[t]:this[this.length+t])},e.fn.filter=function(t){return this.length&&t?y(T(this,t)):e()},e.fn.find=function(t){return t&&this.length?y(g(t,this)):e()},e.fn.get=function(n){return n===t?c.call(this,0):n<0?this[n+this.length]:this[n]},e.fn.reverse=l.reverse,e.fn.animate=function(t,e,i){n.isObject(e)||(e={duration:e});var o="transitionend";return this.each(function(f,s){n.each(t,function(t,n){f.style.transition=z(f,n,e),f.style[n]=t;var a=function(t){f.removeEventListener(o,a,!0),f.style.transition=V(f,t),typeof i===r&&i.call(f,f,s)};f.addEventListener(o,a,!0)})}),this},e.fn.fadeIn=function(t,n){return this.animate({opacity:1},t,n)},e.fn.fadeOut=function(t,n){return this.animate({opacity:0},t,n)},e.fn.add=function(t,n){return t?y(this,e(t,n)):this},e.fn.concat=function(){var t=c.call(arguments);return t.unshift(this),y.apply(this,t)},e.fn.has=function(t){return t?this.filter(function(){return!!g(t,this).length}):e()},e.fn.is=function(t){return!(!t||!this.filter(t).length)},e.fn.map=function(t){if(typeof t!==r)return this;for(var e,i=[],o=0,f=this.length;o