Path: blob/master/sites/bitcoin/themes/default/js/helper-plugins.min.js
777 views
function Swipe(t, e) {1function n() {2p = v.children, m = new Array(p.length), g = t.getBoundingClientRect().width || t.offsetWidth, v.style.width = p.length * g + "px";3for (var e = p.length; e--;) {4var n = p[e];5n.style.width = g + "px", n.setAttribute("data-index", e), d.transitions && (n.style.left = e * -g + "px", r(e, y > e ? -g : e > y ? g : 0, 0))6}7d.transitions || (v.style.left = y * -g + "px"), t.style.visibility = "visible"8}910function i() {11y ? o(y - 1) : e.continuous && o(p.length - 1)12}1314function s() {15y < p.length - 1 ? o(y + 1) : e.continuous && o(0)16}1718function o(t, n) {19if (y != t) {20if (d.transitions) {21for (var i = Math.abs(y - t) - 1, s = Math.abs(y - t) / (y - t); i--;) r((t > y ? t : y) - i - 1, g * s, 0);22r(y, g * s, n || w), r(t, 0, n || w)23} else u(y * -g, t * -g, n || w);24y = t, f(e.callback && e.callback(y, p[y]))25}26}2728function r(t, e, n) {29a(t, e, n), m[t] = e30}3132function a(t, e, n) {33var i = p[t],34s = i && i.style;35s && (s.webkitTransitionDuration = s.MozTransitionDuration = s.msTransitionDuration = s.OTransitionDuration = s.transitionDuration = n + "ms", s.webkitTransform = "translate(" + e + "px,0)translateZ(0)", s.msTransform = s.MozTransform = s.OTransform = "translateX(" + e + "px)")36}3738function u(t, n, i) {39if (!i) return void(v.style.left = n + "px");40var s = +new Date,41o = setInterval(function() {42var r = +new Date - s;43return r > i ? (v.style.left = n + "px", x && c(), e.transitionEnd && e.transitionEnd.call(event, y, p[y]), void clearInterval(o)) : void(v.style.left = (n - t) * (Math.floor(r / i * 100) / 100) + t + "px")44}, 4)45}4647function c() {48b = setTimeout(s, x)49}5051function l() {52x = 0, clearTimeout(b)53}54var h = function() {},55f = function(t) {56setTimeout(t || h, 0)57},58d = {59addEventListener: !!window.addEventListener,60touch: "ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch,61transitions: function(t) {62var e = ["transitionProperty", "WebkitTransition", "MozTransition", "OTransition", "msTransition"];63for (var n in e)64if (void 0 !== t.style[e[n]]) return !0;65return !166}(document.createElement("swipe"))67};68if (t) {69var p, m, g, v = t.children[0];70e = e || {};71var y = parseInt(e.startSlide, 10) || 0,72w = e.speed || 300;73e.continuous = void 0 !== e.continuous ? e.continuous : !0;74var b, _, x = e.auto || 0,75k = {},76M = {},77A = {78handleEvent: function(t) {79switch (t.type) {80case "touchstart":81this.start(t);82break;83case "touchmove":84this.move(t);85break;86case "touchend":87f(this.end(t));88break;89case "webkitTransitionEnd":90case "msTransitionEnd":91case "oTransitionEnd":92case "otransitionend":93case "transitionend":94f(this.transitionEnd(t));95break;96case "resize":97f(n.call())98}99e.stopPropagation && t.stopPropagation()100},101start: function(t) {102var e = t.touches[0];103k = {104x: e.pageX,105y: e.pageY,106time: +new Date107}, _ = void 0, M = {}, v.addEventListener("touchmove", this, !1), v.addEventListener("touchend", this, !1)108},109move: function(t) {110if (!(t.touches.length > 1 || t.scale && 1 !== t.scale)) {111e.disableScroll && t.preventDefault();112var n = t.touches[0];113M = {114x: n.pageX - k.x,115y: n.pageY - k.y116}, "undefined" == typeof _ && (_ = !!(_ || Math.abs(M.x) < Math.abs(M.y))), _ || (t.preventDefault(), l(), M.x = M.x / (!y && M.x > 0 || y == p.length - 1 && M.x < 0 ? Math.abs(M.x) / g + 1 : 1), a(y - 1, M.x + m[y - 1], 0), a(y, M.x + m[y], 0), a(y + 1, M.x + m[y + 1], 0))117}118},119end: function(t) {120var n = +new Date - k.time,121i = Number(n) < 250 && Math.abs(M.x) > 20 || Math.abs(M.x) > g / 2,122s = !y && M.x > 0 || y == p.length - 1 && M.x < 0,123o = M.x < 0;124_ || (i && !s ? (o ? (r(y - 1, -g, 0), r(y, m[y] - g, w), r(y + 1, m[y + 1] - g, w), y += 1) : (r(y + 1, g, 0), r(y, m[y] + g, w), r(y - 1, m[y - 1] + g, w), y += -1), e.callback && e.callback(y, p[y])) : (r(y - 1, -g, w), r(y, 0, w), r(y + 1, g, w))), v.removeEventListener("touchmove", A, !1), v.removeEventListener("touchend", A, !1)125},126transitionEnd: function(t) {127parseInt(t.target.getAttribute("data-index"), 10) == y && (x && c(), e.transitionEnd && e.transitionEnd.call(t, y, p[y]))128}129};130return n(), x && c(), d.addEventListener ? (d.touch && v.addEventListener("touchstart", A, !1), d.transitions && (v.addEventListener("webkitTransitionEnd", A, !1), v.addEventListener("msTransitionEnd", A, !1), v.addEventListener("oTransitionEnd", A, !1), v.addEventListener("otransitionend", A, !1), v.addEventListener("transitionend", A, !1)), window.addEventListener("resize", A, !1)) : window.onresize = function() {131n()132}, {133setup: function() {134n()135},136slide: function(t, e) {137l(), o(t, e)138},139prev: function() {140l(), i()141},142next: function() {143l(), s()144},145getPos: function() {146return y147},148getNumSlides: function() {149return p.length150},151kill: function() {152l(), v.style.width = "auto", v.style.left = 0;153for (var t = p.length; t--;) {154var e = p[t];155e.style.width = "100%", e.style.left = 0, d.transitions && a(t, 0, 0)156}157d.addEventListener ? (v.removeEventListener("touchstart", A, !1), v.removeEventListener("webkitTransitionEnd", A, !1), v.removeEventListener("msTransitionEnd", A, !1), v.removeEventListener("oTransitionEnd", A, !1), v.removeEventListener("otransitionend", A, !1), v.removeEventListener("transitionend", A, !1), window.removeEventListener("resize", A, !1)) : window.onresize = null158}159}160}161}! function(t) {162var e, n, i = t.event;163e = i.special.debouncedresize = {164setup: function() {165t(this).on("resize", e.handler)166},167teardown: function() {168t(this).off("resize", e.handler)169},170handler: function(t, s) {171var o = this,172r = arguments,173a = function() {174t.type = "debouncedresize", i.dispatch.apply(o, r)175};176n && clearTimeout(n), s ? a() : n = setTimeout(a, e.threshold)177},178threshold: 150179}180}(jQuery),181function(t) {182var e = {183topSpacing: 0,184bottomSpacing: 0,185className: "is-sticky",186wrapperClassName: "sticky-wrapper",187center: !1,188getWidthFrom: ""189},190n = t(window),191i = t(document),192s = [],193o = n.height(),194r = function() {195for (var e = n.scrollTop(), r = i.height(), a = r - o, u = e > a ? a - e : 0, c = 0; c < s.length; c++) {196var l = s[c],197h = l.stickyWrapper.offset().top,198f = h - l.topSpacing - u;199if (f >= e) null !== l.currentTop && (l.stickyElement.css("position", "").css("top", ""), l.stickyElement.parent().removeClass(l.className), l.currentTop = null);200else {201var d = r - l.stickyElement.outerHeight() - l.topSpacing - l.bottomSpacing - e - u;2020 > d ? d += l.topSpacing : d = l.topSpacing, l.currentTop != d && (l.stickyElement.css("position", "fixed").css("top", d), "undefined" != typeof l.getWidthFrom && l.stickyElement.css("width", t(l.getWidthFrom).width()), l.stickyElement.parent().addClass(l.className), l.currentTop = d)203}204}205},206a = function() {207o = n.height()208},209u = {210init: function(n) {211var i = t.extend(e, n);212return this.each(function() {213var e = t(this),214n = e.attr("id"),215o = t("<div></div>").attr("id", n + "-sticky-wrapper").addClass(i.wrapperClassName);216e.wrapAll(o), i.center && e.parent().css({217width: e.outerWidth(),218marginLeft: "auto",219marginRight: "auto"220}), "right" == e.css("float") && e.css({221"float": "none"222}).parent().css({223"float": "right"224});225var r = e.parent();226r.css("height", e.outerHeight()), s.push({227topSpacing: i.topSpacing,228bottomSpacing: i.bottomSpacing,229stickyElement: e,230currentTop: null,231stickyWrapper: r,232className: i.className,233getWidthFrom: i.getWidthFrom234})235})236},237update: r238};239window.addEventListener ? (window.addEventListener("scroll", r, !1), window.addEventListener("resize", a, !1)) : window.attachEvent && (window.attachEvent("onscroll", r), window.attachEvent("onresize", a)), t.fn.sticky = function(e) {240return u[e] ? u[e].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" != typeof e && e ? void t.error("Method " + e + " does not exist on jQuery.sticky") : u.init.apply(this, arguments)241}, t(function() {242setTimeout(r, 0)243})244}(jQuery),245function(t, e, n) {246"use strict";247var i, s = t.document,248o = t.Modernizr,249r = function(t) {250return t.charAt(0).toUpperCase() + t.slice(1)251},252a = "Moz Webkit O Ms".split(" "),253u = function(t) {254var e, n = s.documentElement.style;255if ("string" == typeof n[t]) return t;256t = r(t);257for (var i = 0, o = a.length; o > i; i++)258if (e = a[i] + t, "string" == typeof n[e]) return e259},260c = u("transform"),261l = u("transitionProperty"),262h = {263csstransforms: function() {264return !!c265},266csstransforms3d: function() {267var t = !!u("perspective");268if (t) {269var n = " -o- -moz- -ms- -webkit- -khtml- ".split(" "),270i = "@media (" + n.join("transform-3d),(") + "modernizr)",271s = e("<style>" + i + "{#modernizr{height:3px}}</style>").appendTo("head"),272o = e('<div id="modernizr" />').appendTo("html");273t = 3 === o.height(), o.remove(), s.remove()274}275return t276},277csstransitions: function() {278return !!l279}280};281if (o)282for (i in h) o.hasOwnProperty(i) || o.addTest(i, h[i]);283else {284o = t.Modernizr = {285_version: "1.6ish: miniModernizr for Isotope"286};287var f, d = " ";288for (i in h) f = h[i](), o[i] = f, d += " " + (f ? "" : "no-") + i;289e("html").addClass(d)290}291if (o.csstransforms) {292var p = o.csstransforms3d ? {293translate: function(t) {294return "translate3d(" + t[0] + "px, " + t[1] + "px, 0) "295},296scale: function(t) {297return "scale3d(" + t + ", " + t + ", 1) "298}299} : {300translate: function(t) {301return "translate(" + t[0] + "px, " + t[1] + "px) "302},303scale: function(t) {304return "scale(" + t + ") "305}306},307m = function(t, n, i) {308var s, o, r = e.data(t, "isoTransform") || {},309a = {},310u = {};311a[n] = i, e.extend(r, a);312for (s in r) o = r[s], u[s] = p[s](o);313var l = u.translate || "",314h = u.scale || "",315f = l + h;316e.data(t, "isoTransform", r), t.style[c] = f317};318e.cssNumber.scale = !0, e.cssHooks.scale = {319set: function(t, e) {320m(t, "scale", e)321},322get: function(t, n) {323var i = e.data(t, "isoTransform");324return i && i.scale ? i.scale : 1325}326}, e.fx.step.scale = function(t) {327e.cssHooks.scale.set(t.elem, t.now + t.unit)328}, e.cssNumber.translate = !0, e.cssHooks.translate = {329set: function(t, e) {330m(t, "translate", e)331},332get: function(t, n) {333var i = e.data(t, "isoTransform");334return i && i.translate ? i.translate : [0, 0]335}336}337}338var g, v;339o.csstransitions && (g = {340WebkitTransitionProperty: "webkitTransitionEnd",341MozTransitionProperty: "transitionend",342OTransitionProperty: "oTransitionEnd otransitionend",343transitionProperty: "transitionend"344}[l], v = u("transitionDuration"));345var y, w = e.event,346b = e.event.handle ? "handle" : "dispatch";347w.special.smartresize = {348setup: function() {349e(this).bind("resize", w.special.smartresize.handler)350},351teardown: function() {352e(this).unbind("resize", w.special.smartresize.handler)353},354handler: function(t, e) {355var n = this,356i = arguments;357t.type = "smartresize", y && clearTimeout(y), y = setTimeout(function() {358w[b].apply(n, i)359}, "execAsap" === e ? 0 : 100)360}361}, e.fn.smartresize = function(t) {362return t ? this.bind("smartresize", t) : this.trigger("smartresize", ["execAsap"])363}, e.Isotope = function(t, n, i) {364this.element = e(n), this._create(t), this._init(i)365};366var _ = ["width", "height"],367x = e(t);368e.Isotope.settings = {369resizable: !0,370layoutMode: "masonry",371containerClass: "isotope",372itemClass: "isotope-item",373hiddenClass: "isotope-hidden",374hiddenStyle: {375opacity: 0,376scale: .001377},378visibleStyle: {379opacity: 1,380scale: 1381},382containerStyle: {383position: "relative",384overflow: "hidden"385},386animationEngine: "best-available",387animationOptions: {388queue: !1,389duration: 800390},391sortBy: "original-order",392sortAscending: !0,393resizesContainer: !0,394transformsEnabled: !0,395itemPositionDataEnabled: !1396}, e.Isotope.prototype = {397_create: function(t) {398this.options = e.extend({}, e.Isotope.settings, t), this.styleQueue = [], this.elemCount = 0;399var n = this.element[0].style;400this.originalStyle = {};401var i = _.slice(0);402for (var s in this.options.containerStyle) i.push(s);403for (var o = 0, r = i.length; r > o; o++) s = i[o], this.originalStyle[s] = n[s] || "";404this.element.css(this.options.containerStyle), this._updateAnimationEngine(), this._updateUsingTransforms();405var a = {406"original-order": function(t, e) {407return e.elemCount++, e.elemCount408},409random: function() {410return Math.random()411}412};413this.options.getSortData = e.extend(this.options.getSortData, a), this.reloadItems(), this.offset = {414left: parseInt(this.element.css("padding-left") || 0, 10),415top: parseInt(this.element.css("padding-top") || 0, 10)416};417var u = this;418setTimeout(function() {419u.element.addClass(u.options.containerClass)420}, 0), this.options.resizable && x.bind("smartresize.isotope", function() {421u.resize()422}), this.element.delegate("." + this.options.hiddenClass, "click", function() {423return !1424})425},426_getAtoms: function(t) {427var e = this.options.itemSelector,428n = e ? t.filter(e).add(t.find(e)) : t,429i = {430position: "absolute"431};432return n = n.filter(function(t, e) {433return 1 === e.nodeType434}), this.usingTransforms && (i.left = 0, i.top = 0), n.css(i).addClass(this.options.itemClass), this.updateSortData(n, !0), n435},436_init: function(t) {437this.$filteredAtoms = this._filter(this.$allAtoms), this._sort(), this.reLayout(t)438},439option: function(t) {440if (e.isPlainObject(t)) {441this.options = e.extend(!0, this.options, t);442var n;443for (var i in t) n = "_update" + r(i), this[n] && this[n]()444}445},446_updateAnimationEngine: function() {447var t, e = this.options.animationEngine.toLowerCase().replace(/[ _\-]/g, "");448switch (e) {449case "css":450case "none":451t = !1;452break;453case "jquery":454t = !0;455break;456default:457t = !o.csstransitions458}459this.isUsingJQueryAnimation = t, this._updateUsingTransforms()460},461_updateTransformsEnabled: function() {462this._updateUsingTransforms()463},464_updateUsingTransforms: function() {465var t = this.usingTransforms = this.options.transformsEnabled && o.csstransforms && o.csstransitions && !this.isUsingJQueryAnimation;466t || (delete this.options.hiddenStyle.scale, delete this.options.visibleStyle.scale), this.getPositionStyles = t ? this._translate : this._positionAbs467},468_filter: function(t) {469var e = "" === this.options.filter ? "*" : this.options.filter;470if (!e) return t;471var n = this.options.hiddenClass,472i = "." + n,473s = t.filter(i),474o = s;475if ("*" !== e) {476o = s.filter(e);477var r = t.not(i).not(e).addClass(n);478this.styleQueue.push({479$el: r,480style: this.options.hiddenStyle481})482}483return this.styleQueue.push({484$el: o,485style: this.options.visibleStyle486}), o.removeClass(n), t.filter(e)487},488updateSortData: function(t, n) {489var i, s, o = this,490r = this.options.getSortData;491t.each(function() {492i = e(this), s = {};493for (var t in r) n || "original-order" !== t ? s[t] = r[t](i, o) : s[t] = e.data(this, "isotope-sort-data")[t];494e.data(this, "isotope-sort-data", s)495})496},497_sort: function() {498var t = this.options.sortBy,499e = this._getSorter,500n = this.options.sortAscending ? 1 : -1,501i = function(i, s) {502var o = e(i, t),503r = e(s, t);504return o === r && "original-order" !== t && (o = e(i, "original-order"), r = e(s, "original-order")), (o > r ? 1 : r > o ? -1 : 0) * n505};506this.$filteredAtoms.sort(i)507},508_getSorter: function(t, n) {509return e.data(t, "isotope-sort-data")[n]510},511_translate: function(t, e) {512return {513translate: [t, e]514}515},516_positionAbs: function(t, e) {517return {518left: t,519top: e520}521},522_pushPosition: function(t, e, n) {523e = Math.round(e + this.offset.left), n = Math.round(n + this.offset.top);524var i = this.getPositionStyles(e, n);525this.styleQueue.push({526$el: t,527style: i528}), this.options.itemPositionDataEnabled && t.data("isotope-item-position", {529x: e,530y: n531})532},533layout: function(t, e) {534var n = this.options.layoutMode;535if (this["_" + n + "Layout"](t), this.options.resizesContainer) {536var i = this["_" + n + "GetContainerSize"]();537this.styleQueue.push({538$el: this.element,539style: i540})541}542this._processStyleQueue(t, e), this.isLaidOut = !0543},544_processStyleQueue: function(t, n) {545var i, s, r, a, u = this.isLaidOut && this.isUsingJQueryAnimation ? "animate" : "css",546c = this.options.animationOptions,547l = this.options.onLayout;548if (s = function(t, e) {549e.$el[u](e.style, c)550}, this._isInserting && this.isUsingJQueryAnimation) s = function(t, e) {551i = e.$el.hasClass("no-transition") ? "css" : u, e.$el[i](e.style, c)552};553else if (n || l || c.complete) {554var h = !1,555f = [n, l, c.complete],556d = this;557if (r = !0, a = function() {558if (!h) {559for (var e, n = 0, i = f.length; i > n; n++) e = f[n], "function" == typeof e && e.call(d.element, t, d);560h = !0561}562}, this.isUsingJQueryAnimation && "animate" === u) c.complete = a, r = !1;563else if (o.csstransitions) {564for (var p, m = 0, y = this.styleQueue[0], w = y && y.$el; !w || !w.length;) {565if (p = this.styleQueue[m++], !p) return;566w = p.$el567}568var b = parseFloat(getComputedStyle(w[0])[v]);569b > 0 && (s = function(t, e) {570e.$el[u](e.style, c).one(g, a)571}, r = !1)572}573}574e.each(this.styleQueue, s), r && a(), this.styleQueue = []575},576resize: function() {577this["_" + this.options.layoutMode + "ResizeChanged"]() && this.reLayout()578},579reLayout: function(t) {580this["_" + this.options.layoutMode + "Reset"](), this.layout(this.$filteredAtoms, t)581},582addItems: function(t, e) {583var n = this._getAtoms(t);584this.$allAtoms = this.$allAtoms.add(n), e && e(n)585},586insert: function(t, e) {587this.element.append(t);588var n = this;589this.addItems(t, function(t) {590var i = n._filter(t);591n._addHideAppended(i), n._sort(), n.reLayout(), n._revealAppended(i, e)592})593},594appended: function(t, e) {595var n = this;596this.addItems(t, function(t) {597n._addHideAppended(t), n.layout(t), n._revealAppended(t, e)598})599},600_addHideAppended: function(t) {601this.$filteredAtoms = this.$filteredAtoms.add(t), t.addClass("no-transition"), this._isInserting = !0, this.styleQueue.push({602$el: t,603style: this.options.hiddenStyle604})605},606_revealAppended: function(t, e) {607var n = this;608setTimeout(function() {609t.removeClass("no-transition"), n.styleQueue.push({610$el: t,611style: n.options.visibleStyle612}), n._isInserting = !1, n._processStyleQueue(t, e)613}, 10)614},615reloadItems: function() {616this.$allAtoms = this._getAtoms(this.element.children())617},618remove: function(t, e) {619this.$allAtoms = this.$allAtoms.not(t), this.$filteredAtoms = this.$filteredAtoms.not(t);620var n = this,621i = function() {622t.remove(), e && e.call(n.element)623};624t.filter(":not(." + this.options.hiddenClass + ")").length ? (this.styleQueue.push({625$el: t,626style: this.options.hiddenStyle627}), this._sort(), this.reLayout(i)) : i()628},629shuffle: function(t) {630this.updateSortData(this.$allAtoms), this.options.sortBy = "random", this._sort(), this.reLayout(t)631},632destroy: function() {633var t = this.usingTransforms,634e = this.options;635this.$allAtoms.removeClass(e.hiddenClass + " " + e.itemClass).each(function() {636var e = this.style;637e.position = "", e.top = "", e.left = "", e.opacity = "", t && (e[c] = "")638});639var n = this.element[0].style;640for (var i in this.originalStyle) n[i] = this.originalStyle[i];641this.element.unbind(".isotope").undelegate("." + e.hiddenClass, "click").removeClass(e.containerClass).removeData("isotope"), x.unbind(".isotope")642},643_getSegments: function(t) {644var e, n = this.options.layoutMode,645i = t ? "rowHeight" : "columnWidth",646s = t ? "height" : "width",647o = t ? "rows" : "cols",648a = this.element[s](),649u = this.options[n] && this.options[n][i] || this.$filteredAtoms["outer" + r(s)](!0) || a;650e = Math.floor(a / u), e = Math.max(e, 1), this[n][o] = e, this[n][i] = u651},652_checkIfSegmentsChanged: function(t) {653var e = this.options.layoutMode,654n = t ? "rows" : "cols",655i = this[e][n];656return this._getSegments(t), this[e][n] !== i657},658_masonryReset: function() {659this.masonry = {}, this._getSegments();660var t = this.masonry.cols;661for (this.masonry.colYs = []; t--;) this.masonry.colYs.push(0)662},663_masonryLayout: function(t) {664var n = this,665i = n.masonry;666t.each(function() {667var t = e(this),668s = Math.ceil(t.outerWidth(!0) / i.columnWidth);669if (s = Math.min(s, i.cols), 1 === s) n._masonryPlaceBrick(t, i.colYs);670else {671var o, r, a = i.cols + 1 - s,672u = [];673for (r = 0; a > r; r++) o = i.colYs.slice(r, r + s), u[r] = Math.max.apply(Math, o);674n._masonryPlaceBrick(t, u)675}676})677},678_masonryPlaceBrick: function(t, e) {679for (var n = Math.min.apply(Math, e), i = 0, s = 0, o = e.length; o > s; s++)680if (e[s] === n) {681i = s;682break683}684var r = this.masonry.columnWidth * i,685a = n;686this._pushPosition(t, r, a);687var u = n + t.outerHeight(!0),688c = this.masonry.cols + 1 - o;689for (s = 0; c > s; s++) this.masonry.colYs[i + s] = u690},691_masonryGetContainerSize: function() {692var t = Math.max.apply(Math, this.masonry.colYs);693return {694height: t695}696},697_masonryResizeChanged: function() {698return this._checkIfSegmentsChanged()699},700_fitRowsReset: function() {701this.fitRows = {702x: 0,703y: 0,704height: 0705}706},707_fitRowsLayout: function(t) {708var n = this,709i = this.element.width(),710s = this.fitRows;711t.each(function() {712var t = e(this),713o = t.outerWidth(!0),714r = t.outerHeight(!0);7150 !== s.x && o + s.x > i && (s.x = 0, s.y = s.height), n._pushPosition(t, s.x, s.y), s.height = Math.max(s.y + r, s.height), s.x += o716})717},718_fitRowsGetContainerSize: function() {719return {720height: this.fitRows.height721}722},723_fitRowsResizeChanged: function() {724return !0725},726_cellsByRowReset: function() {727this.cellsByRow = {728index: 0729}, this._getSegments(), this._getSegments(!0)730},731_cellsByRowLayout: function(t) {732var n = this,733i = this.cellsByRow;734t.each(function() {735var t = e(this),736s = i.index % i.cols,737o = Math.floor(i.index / i.cols),738r = (s + .5) * i.columnWidth - t.outerWidth(!0) / 2,739a = (o + .5) * i.rowHeight - t.outerHeight(!0) / 2;740n._pushPosition(t, r, a), i.index++741})742},743_cellsByRowGetContainerSize: function() {744return {745height: Math.ceil(this.$filteredAtoms.length / this.cellsByRow.cols) * this.cellsByRow.rowHeight + this.offset.top746}747},748_cellsByRowResizeChanged: function() {749return this._checkIfSegmentsChanged()750},751_straightDownReset: function() {752this.straightDown = {753y: 0754}755},756_straightDownLayout: function(t) {757var n = this;758t.each(function(t) {759var i = e(this);760n._pushPosition(i, 0, n.straightDown.y), n.straightDown.y += i.outerHeight(!0)761})762},763_straightDownGetContainerSize: function() {764return {765height: this.straightDown.y766}767},768_straightDownResizeChanged: function() {769return !0770},771_masonryHorizontalReset: function() {772this.masonryHorizontal = {}, this._getSegments(!0);773var t = this.masonryHorizontal.rows;774for (this.masonryHorizontal.rowXs = []; t--;) this.masonryHorizontal.rowXs.push(0)775},776_masonryHorizontalLayout: function(t) {777var n = this,778i = n.masonryHorizontal;779t.each(function() {780var t = e(this),781s = Math.ceil(t.outerHeight(!0) / i.rowHeight);782if (s = Math.min(s, i.rows), 1 === s) n._masonryHorizontalPlaceBrick(t, i.rowXs);783else {784var o, r, a = i.rows + 1 - s,785u = [];786for (r = 0; a > r; r++) o = i.rowXs.slice(r, r + s), u[r] = Math.max.apply(Math, o);787n._masonryHorizontalPlaceBrick(t, u)788}789})790},791_masonryHorizontalPlaceBrick: function(t, e) {792for (var n = Math.min.apply(Math, e), i = 0, s = 0, o = e.length; o > s; s++)793if (e[s] === n) {794i = s;795break796}797var r = n,798a = this.masonryHorizontal.rowHeight * i;799this._pushPosition(t, r, a);800var u = n + t.outerWidth(!0),801c = this.masonryHorizontal.rows + 1 - o;802for (s = 0; c > s; s++) this.masonryHorizontal.rowXs[i + s] = u803},804_masonryHorizontalGetContainerSize: function() {805var t = Math.max.apply(Math, this.masonryHorizontal.rowXs);806return {807width: t808}809},810_masonryHorizontalResizeChanged: function() {811return this._checkIfSegmentsChanged(!0)812},813_fitColumnsReset: function() {814this.fitColumns = {815x: 0,816y: 0,817width: 0818}819},820_fitColumnsLayout: function(t) {821var n = this,822i = this.element.height(),823s = this.fitColumns;824t.each(function() {825var t = e(this),826o = t.outerWidth(!0),827r = t.outerHeight(!0);8280 !== s.y && r + s.y > i && (s.x = s.width, s.y = 0), n._pushPosition(t, s.x, s.y), s.width = Math.max(s.x + o, s.width), s.y += r829})830},831_fitColumnsGetContainerSize: function() {832return {833width: this.fitColumns.width834}835},836_fitColumnsResizeChanged: function() {837return !0838},839_cellsByColumnReset: function() {840this.cellsByColumn = {841index: 0842}, this._getSegments(), this._getSegments(!0)843},844_cellsByColumnLayout: function(t) {845var n = this,846i = this.cellsByColumn;847t.each(function() {848var t = e(this),849s = Math.floor(i.index / i.rows),850o = i.index % i.rows,851r = (s + .5) * i.columnWidth - t.outerWidth(!0) / 2,852a = (o + .5) * i.rowHeight - t.outerHeight(!0) / 2;853n._pushPosition(t, r, a), i.index++854})855},856_cellsByColumnGetContainerSize: function() {857return {858width: Math.ceil(this.$filteredAtoms.length / this.cellsByColumn.rows) * this.cellsByColumn.columnWidth859}860},861_cellsByColumnResizeChanged: function() {862return this._checkIfSegmentsChanged(!0)863},864_straightAcrossReset: function() {865this.straightAcross = {866x: 0867}868},869_straightAcrossLayout: function(t) {870var n = this;871t.each(function(t) {872var i = e(this);873n._pushPosition(i, n.straightAcross.x, 0), n.straightAcross.x += i.outerWidth(!0)874})875},876_straightAcrossGetContainerSize: function() {877return {878width: this.straightAcross.x879}880},881_straightAcrossResizeChanged: function() {882return !0883}884}, e.fn.imagesLoaded = function(t) {885function n() {886t.call(s, o)887}888889function i(t) {890var s = t.target;891s.src !== a && -1 === e.inArray(s, u) && (u.push(s), --r <= 0 && (setTimeout(n), o.unbind(".imagesLoaded", i)))892}893var s = this,894o = s.find("img").add(s.filter("img")),895r = o.length,896a = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",897u = [];898return r || n(), o.bind("load.imagesLoaded error.imagesLoaded", i).each(function() {899var t = this.src;900this.src = a, this.src = t901}), s902};903var k = function(e) {904t.console && t.console.error(e)905};906e.fn.isotope = function(t, n) {907if ("string" == typeof t) {908var i = Array.prototype.slice.call(arguments, 1);909this.each(function() {910var n = e.data(this, "isotope");911return n ? e.isFunction(n[t]) && "_" !== t.charAt(0) ? void n[t].apply(n, i) : void k("no such method '" + t + "' for isotope instance") : void k("cannot call methods on isotope prior to initialization; attempted to call method '" + t + "'")912})913} else this.each(function() {914var i = e.data(this, "isotope");915i ? (i.option(t), i._init(n)) : e.data(this, "isotope", new e.Isotope(t, this, n))916});917return this918}919}(window, jQuery),920function(t, e) {921e.extend(e.Isotope.prototype, {922_sloppyMasonryReset: function() {923var t = this.element.width(),924e = this.options.sloppyMasonry && this.options.sloppyMasonry.columnWidth || this.$filteredAtoms.outerWidth(!0) || t;925this.sloppyMasonry = {926cols: Math.round(t / e),927columnWidth: e928};929var n = this.sloppyMasonry.cols;930for (this.sloppyMasonry.colYs = []; n--;) this.sloppyMasonry.colYs.push(0)931},932_sloppyMasonryLayout: function(t) {933var n = this,934i = n.sloppyMasonry;935t.each(function() {936var t = e(this),937s = Math.round(t.outerWidth(!0) / i.columnWidth);938if (s = Math.min(s, i.cols), 1 === s) n._sloppyMasonryPlaceBrick(t, i.colYs);939else {940var o, r, a = i.cols + 1 - s,941u = [];942for (r = 0; a > r; r++) o = i.colYs.slice(r, r + s), u[r] = Math.max.apply(Math, o);943n._sloppyMasonryPlaceBrick(t, u)944}945})946},947_sloppyMasonryPlaceBrick: function(t, e) {948for (var n = Math.min.apply(Math, e), i = 0, s = 0, o = e.length; o > s; s++)949if (e[s] === n) {950i = s;951break952}953var r = this.sloppyMasonry.columnWidth * i,954a = n;955this._pushPosition(t, r, a);956var u = n + t.outerHeight(!0),957c = this.sloppyMasonry.cols + 1 - o;958for (s = 0; c > s; s++) this.sloppyMasonry.colYs[i + s] = u959},960_sloppyMasonryGetContainerSize: function() {961var t = Math.max.apply(Math, this.sloppyMasonry.colYs);962return {963height: t964}965},966_sloppyMasonryResizeChanged: function() {967return !0968}969})970}(this, this.jQuery),971function(t) {972function e(e) {973return !e || void 0 !== e.allowPageScroll || void 0 === e.swipe && void 0 === e.swipeStatus || (e.allowPageScroll = a), e || (e = {}), e = t.extend({}, t.fn.swipe.defaults, e), this.each(function() {974var i = t(this),975s = i.data(v);976s || (s = new n(this, e), i.data(v, s))977})978}979980function n(e, n) {981function y(t) {982var e, t = t.originalEvent,983i = g ? t.touches[0] : t;984return B = f, g ? W = t.touches.length : t.preventDefault(), P = 0, j = null, H = 0, g && W !== n.fingers && n.fingers !== h ? _(t) : (E = S = i.pageX, C = z = i.pageY, Y = (new Date).getTime(), n.swipeStatus && (e = x(t, B))), !1 === e ? (B = m, x(t, B), e) : (R.bind(L, w), void R.bind(Q, b))985}986987function w(t) {988if (t = t.originalEvent, B !== p && B !== m) {989var e, f = g ? t.touches[0] : t;990S = f.pageX, z = f.pageY, $ = (new Date).getTime(), j = A(), g && (W = t.touches.length), B = d;991var f = t,992v = j;993if (n.allowPageScroll === a) f.preventDefault();994else {995var y = n.allowPageScroll === u;996switch (v) {997case i:998(n.swipeLeft && y || !y && n.allowPageScroll != c) && f.preventDefault();999break;1000case s:1001(n.swipeRight && y || !y && n.allowPageScroll != c) && f.preventDefault();1002break;1003case o:1004(n.swipeUp && y || !y && n.allowPageScroll != l) && f.preventDefault();1005break;1006case r:1007(n.swipeDown && y || !y && n.allowPageScroll != l) && f.preventDefault()1008}1009}1010W !== n.fingers && n.fingers !== h && g ? (B = m, x(t, B)) : (P = M(), H = $ - Y, n.swipeStatus && (e = x(t, B, j, P, H)), n.triggerOnTouchEnd || (f = !(n.maxTimeThreshold ? !(H >= n.maxTimeThreshold) : 1), !0 === k() ? (B = p, e = x(t, B)) : f && (B = m, x(t, B)))), !1 === e && (B = m, x(t, B))1011}1012}10131014function b(t) {1015if (t = t.originalEvent, t.preventDefault(), $ = (new Date).getTime(), P = M(), j = A(), H = $ - Y, n.triggerOnTouchEnd || !1 === n.triggerOnTouchEnd && B === d)1016if (B = p, W !== n.fingers && n.fingers !== h && g || 0 === S) B = m, x(t, B);1017else {1018var e = !(n.maxTimeThreshold ? !(H >= n.maxTimeThreshold) : 1);1019!0 !== k() && null !== k() || e ? (e || !1 === k()) && (B = m, x(t, B)) : x(t, B)1020}1021else B === d && (B = m, x(t, B));1022R.unbind(L, w, !1), R.unbind(Q, b, !1)1023}10241025function _() {1026Y = $ = z = S = C = E = W = 01027}10281029function x(t, e) {1030var a = void 0;1031if (n.swipeStatus && (a = n.swipeStatus.call(R, t, e, j || null, P || 0, H || 0, W)), e !== m || !n.click || 1 !== W && g || !isNaN(P) && 0 !== P || (a = n.click.call(R, t, t.target)), e == p) switch (n.swipe && (a = n.swipe.call(R, t, j, P, H, W)), j) {1032case i:1033n.swipeLeft && (a = n.swipeLeft.call(R, t, j, P, H, W));1034break;1035case s:1036n.swipeRight && (a = n.swipeRight.call(R, t, j, P, H, W));1037break;1038case o:1039n.swipeUp && (a = n.swipeUp.call(R, t, j, P, H, W));1040break;1041case r:1042n.swipeDown && (a = n.swipeDown.call(R, t, j, P, H, W))1043}1044return (e === m || e === p) && _(t), a1045}10461047function k() {1048return null !== n.threshold ? P >= n.threshold : null1049}10501051function M() {1052return Math.round(Math.sqrt(Math.pow(S - E, 2) + Math.pow(z - C, 2)))1053}10541055function A() {1056var t;1057return t = Math.atan2(z - C, E - S), t = Math.round(180 * t / Math.PI), 0 > t && (t = 360 - Math.abs(t)), 45 >= t && t >= 0 ? i : 360 >= t && t >= 315 ? i : t >= 135 && 225 >= t ? s : t > 45 && 135 > t ? r : o1058}10591060function T() {1061R.unbind(O, y), R.unbind(D, _), R.unbind(L, w), R.unbind(Q, b)1062}1063var S, z, E, C, I = g || !n.fallbackToMouseEvents,1064O = I ? "touchstart" : "mousedown",1065L = I ? "touchmove" : "mousemove",1066Q = I ? "touchend" : "mouseup",1067D = "touchcancel",1068P = 0,1069j = null,1070H = 0,1071R = t(e),1072B = "start",1073W = 0,1074Y = z = S = C = E = 0,1075$ = 0;1076try {1077R.bind(O, y), R.bind(D, _)1078} catch (N) {1079t.error("events not supported " + O + "," + D + " on jQuery.swipe")1080}1081this.enable = function() {1082return R.bind(O, y), R.bind(D, _), R1083}, this.disable = function() {1084return T(), R1085}, this.destroy = function() {1086return T(), R.data(v, null), R1087}1088}1089var i = "left",1090s = "right",1091o = "up",1092r = "down",1093a = "none",1094u = "auto",1095c = "horizontal",1096l = "vertical",1097h = "all",1098f = "start",1099d = "move",1100p = "end",1101m = "cancel",1102g = "ontouchstart" in window,1103v = "TouchSwipe";1104t.fn.swipe = function(n) {1105var i = t(this),1106s = i.data(v);1107if (s && "string" == typeof n) {1108if (s[n]) return s[n].apply(this, Array.prototype.slice.call(arguments, 1));1109t.error("Method " + n + " does not exist on jQuery.swipe")1110} else if (!(s || "object" != typeof n && n)) return e.apply(this, arguments);1111return i1112}, t.fn.swipe.defaults = {1113fingers: 1,1114threshold: 75,1115maxTimeThreshold: null,1116swipe: null,1117swipeLeft: null,1118swipeRight: null,1119swipeUp: null,1120swipeDown: null,1121swipeStatus: null,1122click: null,1123triggerOnTouchEnd: !0,1124allowPageScroll: "auto",1125fallbackToMouseEvents: !01126}, t.fn.swipe.phases = {1127PHASE_START: f,1128PHASE_MOVE: d,1129PHASE_END: p,1130PHASE_CANCEL: m1131}, t.fn.swipe.directions = {1132LEFT: i,1133RIGHT: s,1134UP: o,1135DOWN: r1136}, t.fn.swipe.pageScroll = {1137NONE: a,1138HORIZONTAL: c,1139VERTICAL: l,1140AUTO: u1141}, t.fn.swipe.fingers = {1142ONE: 1,1143TWO: 2,1144THREE: 3,1145ALL: h1146}1147}(jQuery),1148function(t, e) {1149var n, i = t.jQuery || t.Cowboy || (t.Cowboy = {});1150i.throttle = n = function(t, n, s, o) {1151function r() {1152function i() {1153u = +new Date, s.apply(c, h)1154}11551156function r() {1157a = e1158}1159var c = this,1160l = +new Date - u,1161h = arguments;1162o && !a && i(), a && clearTimeout(a), o === e && l > t ? i() : n !== !0 && (a = setTimeout(o ? r : i, o === e ? t - l : t))1163}1164var a, u = 0;1165return "boolean" != typeof n && (o = s, s = n, n = e), i.guid && (r.guid = s.guid = s.guid || i.guid++), r1166}, i.debounce = function(t, i, s) {1167return s === e ? n(t, i, !1) : n(t, s, i !== !1)1168}1169}(this),1170function(t) {1171function e(e, n, i) {1172var s = n.hash.slice(1),1173o = document.getElementById(s) || document.getElementsByName(s)[0];1174if (o) {1175e && e.preventDefault();1176var r = t(i.target);1177if (!(i.lock && r.is(":animated") || i.onBefore && i.onBefore.call(i, e, o, r) === !1)) {1178if (i.stop && r.stop(!0), i.hash) {1179var a = o.id == s ? "id" : "name",1180u = t("<a> </a>").attr(a, s).css({1181position: "absolute",1182top: t(window).scrollTop(),1183left: t(window).scrollLeft()1184});1185o[a] = "", t("body").prepend(u), location = n.hash, u.remove(), o[a] = s1186}1187r.scrollTo(o, i).trigger("notify.serialScroll", [o])1188}1189}1190}1191var n = location.href.replace(/#.*/, ""),1192i = t.localScroll = function(e) {1193t("body").localScroll(e)1194};1195i.defaults = {1196duration: 1e3,1197axis: "y",1198event: "click",1199stop: !0,1200target: window,1201reset: !01202}, i.hash = function(n) {1203if (location.hash) {1204if (n = t.extend({}, i.defaults, n), n.hash = !1, n.reset) {1205var s = n.duration;1206delete n.duration, t(n.target).scrollTo(0, n), n.duration = s1207}1208e(0, location, n)1209}1210}, t.fn.localScroll = function(s) {1211function o() {1212return !!this.href && !!this.hash && this.href.replace(this.hash, "") == n && (!s.filter || t(this).is(s.filter))1213}1214return s = t.extend({}, i.defaults, s), s.lazy ? this.bind(s.event, function(n) {1215var i = t([n.target, n.target.parentNode]).filter(o)[0];1216i && e(n, i, s)1217}) : this.find("a,area").filter(o).bind(s.event, function(t) {1218e(t, this, s)1219}).end().end()1220}1221}(jQuery),1222function(t, e) {1223var n = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";1224t.fn.imagesLoaded = function(i) {1225function s() {1226var e = t(f),1227n = t(d);1228u && (d.length ? u.reject(l, e, n) : u.resolve(l)), t.isFunction(i) && i.call(a, l, e, n)1229}12301231function o(t) {1232r(t.target, "error" === t.type)1233}12341235function r(e, i) {1236e.src !== n && -1 === t.inArray(e, h) && (h.push(e), i ? d.push(e) : f.push(e), t.data(e, "imagesLoaded", {1237isBroken: i,1238src: e.src1239}), c && u.notifyWith(t(e), [i, l, t(f), t(d)]), l.length === h.length && (setTimeout(s), l.unbind(".imagesLoaded", o)))1240}1241var a = this,1242u = t.isFunction(t.Deferred) ? t.Deferred() : 0,1243c = t.isFunction(u.notify),1244l = a.find("img").add(a.filter("img")),1245h = [],1246f = [],1247d = [];1248return t.isPlainObject(i) && t.each(i, function(t, e) {1249"callback" === t ? i = e : u && u[t](e)1250}), l.length ? l.bind("load.imagesLoaded error.imagesLoaded", o).each(function(i, s) {1251var o = s.src,1252a = t.data(s, "imagesLoaded");1253return a && a.src === o ? void r(s, a.isBroken) : s.complete && s.naturalWidth !== e ? void r(s, 0 === s.naturalWidth || 0 === s.naturalHeight) : void((s.readyState || s.complete) && (s.src = n, s.src = o))1254}) : s(), u ? u.promise(a) : a1255}1256}(jQuery), jQuery.easing.jswing = jQuery.easing.swing, jQuery.extend(jQuery.easing, {1257def: "easeOutQuad",1258swing: function(t, e, n, i, s) {1259return jQuery.easing[jQuery.easing.def](t, e, n, i, s)1260},1261easeInQuad: function(t, e, n, i, s) {1262return i * (e /= s) * e + n1263},1264easeOutQuad: function(t, e, n, i, s) {1265return -i * (e /= s) * (e - 2) + n1266},1267easeInOutQuad: function(t, e, n, i, s) {1268return (e /= s / 2) < 1 ? i / 2 * e * e + n : -i / 2 * (--e * (e - 2) - 1) + n1269},1270easeInCubic: function(t, e, n, i, s) {1271return i * (e /= s) * e * e + n1272},1273easeOutCubic: function(t, e, n, i, s) {1274return i * ((e = e / s - 1) * e * e + 1) + n1275},1276easeInOutCubic: function(t, e, n, i, s) {1277return (e /= s / 2) < 1 ? i / 2 * e * e * e + n : i / 2 * ((e -= 2) * e * e + 2) + n1278},1279easeInQuart: function(t, e, n, i, s) {1280return i * (e /= s) * e * e * e + n1281},1282easeOutQuart: function(t, e, n, i, s) {1283return -i * ((e = e / s - 1) * e * e * e - 1) + n1284},1285easeInOutQuart: function(t, e, n, i, s) {1286return (e /= s / 2) < 1 ? i / 2 * e * e * e * e + n : -i / 2 * ((e -= 2) * e * e * e - 2) + n1287},1288easeInQuint: function(t, e, n, i, s) {1289return i * (e /= s) * e * e * e * e + n1290},1291easeOutQuint: function(t, e, n, i, s) {1292return i * ((e = e / s - 1) * e * e * e * e + 1) + n1293},1294easeInOutQuint: function(t, e, n, i, s) {1295return (e /= s / 2) < 1 ? i / 2 * e * e * e * e * e + n : i / 2 * ((e -= 2) * e * e * e * e + 2) + n1296},1297easeInSine: function(t, e, n, i, s) {1298return -i * Math.cos(e / s * (Math.PI / 2)) + i + n1299},1300easeOutSine: function(t, e, n, i, s) {1301return i * Math.sin(e / s * (Math.PI / 2)) + n1302},1303easeInOutSine: function(t, e, n, i, s) {1304return -i / 2 * (Math.cos(Math.PI * e / s) - 1) + n1305},1306easeInExpo: function(t, e, n, i, s) {1307return 0 == e ? n : i * Math.pow(2, 10 * (e / s - 1)) + n1308},1309easeOutExpo: function(t, e, n, i, s) {1310return e == s ? n + i : i * (-Math.pow(2, -10 * e / s) + 1) + n1311},1312easeInOutExpo: function(t, e, n, i, s) {1313return 0 == e ? n : e == s ? n + i : (e /= s / 2) < 1 ? i / 2 * Math.pow(2, 10 * (e - 1)) + n : i / 2 * (-Math.pow(2, -10 * --e) + 2) + n1314},1315easeInCirc: function(t, e, n, i, s) {1316return -i * (Math.sqrt(1 - (e /= s) * e) - 1) + n1317},1318easeOutCirc: function(t, e, n, i, s) {1319return i * Math.sqrt(1 - (e = e / s - 1) * e) + n1320},1321easeInOutCirc: function(t, e, n, i, s) {1322return (e /= s / 2) < 1 ? -i / 2 * (Math.sqrt(1 - e * e) - 1) + n : i / 2 * (Math.sqrt(1 - (e -= 2) * e) + 1) + n1323},1324easeInElastic: function(t, e, n, i, s) {1325var o = 1.70158,1326r = 0,1327a = i;1328if (0 == e) return n;1329if (1 == (e /= s)) return n + i;1330if (r || (r = .3 * s), a < Math.abs(i)) {1331a = i;1332var o = r / 41333} else var o = r / (2 * Math.PI) * Math.asin(i / a);1334return -(a * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * s - o) * (2 * Math.PI) / r)) + n1335},1336easeOutElastic: function(t, e, n, i, s) {1337var o = 1.70158,1338r = 0,1339a = i;1340if (0 == e) return n;1341if (1 == (e /= s)) return n + i;1342if (r || (r = .3 * s), a < Math.abs(i)) {1343a = i;1344var o = r / 41345} else var o = r / (2 * Math.PI) * Math.asin(i / a);1346return a * Math.pow(2, -10 * e) * Math.sin((e * s - o) * (2 * Math.PI) / r) + i + n1347},1348easeInOutElastic: function(t, e, n, i, s) {1349var o = 1.70158,1350r = 0,1351a = i;1352if (0 == e) return n;1353if (2 == (e /= s / 2)) return n + i;1354if (r || (r = s * (.3 * 1.5)), a < Math.abs(i)) {1355a = i;1356var o = r / 41357} else var o = r / (2 * Math.PI) * Math.asin(i / a);1358return 1 > e ? -.5 * (a * Math.pow(2, 10 * (e -= 1)) * Math.sin((e * s - o) * (2 * Math.PI) / r)) + n : a * Math.pow(2, -10 * (e -= 1)) * Math.sin((e * s - o) * (2 * Math.PI) / r) * .5 + i + n1359},1360easeInBack: function(t, e, n, i, s, o) {1361return void 0 == o && (o = 1.70158), i * (e /= s) * e * ((o + 1) * e - o) + n1362},1363easeOutBack: function(t, e, n, i, s, o) {1364return void 0 == o && (o = 1.70158), i * ((e = e / s - 1) * e * ((o + 1) * e + o) + 1) + n1365},1366easeInOutBack: function(t, e, n, i, s, o) {1367return void 0 == o && (o = 1.70158), (e /= s / 2) < 1 ? i / 2 * (e * e * (((o *= 1.525) + 1) * e - o)) + n : i / 2 * ((e -= 2) * e * (((o *= 1.525) + 1) * e + o) + 2) + n1368},1369easeInBounce: function(t, e, n, i, s) {1370return i - jQuery.easing.easeOutBounce(t, s - e, 0, i, s) + n1371},1372easeOutBounce: function(t, e, n, i, s) {1373return (e /= s) < 1 / 2.75 ? i * (7.5625 * e * e) + n : 2 / 2.75 > e ? i * (7.5625 * (e -= 1.5 / 2.75) * e + .75) + n : 2.5 / 2.75 > e ? i * (7.5625 * (e -= 2.25 / 2.75) * e + .9375) + n : i * (7.5625 * (e -= 2.625 / 2.75) * e + .984375) + n1374},1375easeInOutBounce: function(t, e, n, i, s) {1376return s / 2 > e ? .5 * jQuery.easing.easeInBounce(t, 2 * e, 0, i, s) + n : .5 * jQuery.easing.easeOutBounce(t, 2 * e - s, 0, i, s) + .5 * i + n1377}1378}),1379function(t) {1380(jQuery.browser = jQuery.browser || {}).mobile = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4))1381}(navigator.userAgent || navigator.vendor || window.opera),1382function(t, e) {1383var n, i = t.jQuery || t.Cowboy || (t.Cowboy = {});1384i.throttle = n = function(t, n, s, o) {1385function r() {1386function i() {1387u = +new Date, s.apply(c, h)1388}13891390function r() {1391a = e1392}1393var c = this,1394l = +new Date - u,1395h = arguments;1396o && !a && i(), a && clearTimeout(a), o === e && l > t ? i() : n !== !0 && (a = setTimeout(o ? r : i, o === e ? t - l : t))1397}1398var a, u = 0;1399return "boolean" != typeof n && (o = s, s = n, n = e), i.guid && (r.guid = s.guid = s.guid || i.guid++), r1400}, i.debounce = function(t, i, s) {1401return s === e ? n(t, i, !1) : n(t, s, i !== !1)1402}1403}(this),1404function(t) {1405t.fn.hoverIntent = function(e, n, i) {1406var s = {1407interval: 100,1408sensitivity: 7,1409timeout: 01410};1411s = "object" == typeof e ? t.extend(s, e) : t.isFunction(n) ? t.extend(s, {1412over: e,1413out: n,1414selector: i1415}) : t.extend(s, {1416over: e,1417out: e,1418selector: n1419});1420var o, r, a, u, c = function(t) {1421o = t.pageX, r = t.pageY1422},1423l = function(e, n) {1424return n.hoverIntent_t = clearTimeout(n.hoverIntent_t), Math.abs(a - o) + Math.abs(u - r) < s.sensitivity ? (t(n).off("mousemove.hoverIntent", c), n.hoverIntent_s = 1, s.over.apply(n, [e])) : (a = o, u = r, n.hoverIntent_t = setTimeout(function() {1425l(e, n)1426}, s.interval), void 0)1427},1428h = function(t, e) {1429return e.hoverIntent_t = clearTimeout(e.hoverIntent_t), e.hoverIntent_s = 0, s.out.apply(e, [t])1430},1431f = function(e) {1432var n = jQuery.extend({}, e),1433i = this;1434i.hoverIntent_t && (i.hoverIntent_t = clearTimeout(i.hoverIntent_t)), "mouseenter" == e.type ? (a = n.pageX, u = n.pageY, t(i).on("mousemove.hoverIntent", c), 1 != i.hoverIntent_s && (i.hoverIntent_t = setTimeout(function() {1435l(n, i)1436}, s.interval))) : (t(i).off("mousemove.hoverIntent", c), 1 == i.hoverIntent_s && (i.hoverIntent_t = setTimeout(function() {1437h(n, i)1438}, s.timeout)))1439};1440return this.on({1441"mouseenter.hoverIntent": f,1442"mouseleave.hoverIntent": f1443}, s.selector)1444}1445}(jQuery),1446function(t) {1447function e(t) {1448return "object" == typeof t ? t : {1449top: t,1450left: t1451}1452}1453var n = t.scrollTo = function(e, n, i) {1454t(window).scrollTo(e, n, i)1455};1456n.defaults = {1457axis: "xy",1458duration: parseFloat(t.fn.jquery) >= 1.3 ? 0 : 1,1459limit: !01460}, n.window = function(e) {1461return t(window)._scrollable()1462}, t.fn._scrollable = function() {1463return this.map(function() {1464var e = this,1465n = !e.nodeName || -1 != t.inArray(e.nodeName.toLowerCase(), ["iframe", "#document", "html", "body"]);1466if (!n) return e;1467var i = (e.contentWindow || e).document || e.ownerDocument || e;1468return /webkit/i.test(navigator.userAgent) || "BackCompat" == i.compatMode ? i.body : i.documentElement1469})1470}, t.fn.scrollTo = function(i, s, o) {1471return "object" == typeof s && (o = s, s = 0), "function" == typeof o && (o = {1472onAfter: o1473}), "max" == i && (i = 9e9), o = t.extend({}, n.defaults, o), s = s || o.duration, o.queue = o.queue && o.axis.length > 1, o.queue && (s /= 2), o.offset = e(o.offset), o.over = e(o.over), this._scrollable().each(function() {1474function r(t) {1475c.animate(h, s, o.easing, t && function() {1476t.call(this, i, o)1477})1478}1479if (null != i) {1480var a, u = this,1481c = t(u),1482l = i,1483h = {},1484f = c.is("html,body");1485switch (typeof l) {1486case "number":1487case "string":1488if (/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(l)) {1489l = e(l);1490break1491}1492if (l = t(l, this), !l.length) return;1493case "object":1494(l.is || l.style) && (a = (l = t(l)).offset())1495}1496t.each(o.axis.split(""), function(t, e) {1497var i = "x" == e ? "Left" : "Top",1498s = i.toLowerCase(),1499d = "scroll" + i,1500p = u[d],1501m = n.max(u, e);1502if (a) h[d] = a[s] + (f ? 0 : p - c.offset()[s]), o.margin && (h[d] -= parseInt(l.css("margin" + i)) || 0, h[d] -= parseInt(l.css("border" + i + "Width")) || 0), h[d] += o.offset[s] || 0, o.over[s] && (h[d] += l["x" == e ? "width" : "height"]() * o.over[s]);1503else {1504var g = l[s];1505h[d] = g.slice && "%" == g.slice(-1) ? parseFloat(g) / 100 * m : g1506}1507o.limit && /^\d+$/.test(h[d]) && (h[d] = h[d] <= 0 ? 0 : Math.min(h[d], m)), !t && o.queue && (p != h[d] && r(o.onAfterFirst), delete h[d])1508}), r(o.onAfter)1509}1510}).end()1511}, n.max = function(e, n) {1512var i = "x" == n ? "Width" : "Height",1513s = "scroll" + i;1514if (!t(e).is("html,body")) return e[s] - t(e)[i.toLowerCase()]();1515var o = "client" + i,1516r = e.ownerDocument.documentElement,1517a = e.ownerDocument.body;1518return Math.max(r[s], a[s]) - Math.min(r[o], a[o])1519}1520}(jQuery),1521function(t) {1522"function" == typeof define && define.amd && define.amd.jQuery ? define(["jquery"], t) : t(jQuery)1523}(function(t) {1524function e(t) {1525return t1526}15271528function n(t) {1529return decodeURIComponent(t.replace(s, " "))1530}15311532function i(t) {15330 === t.indexOf('"') && (t = t.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, "\\"));1534try {1535return o.json ? JSON.parse(t) : t1536} catch (e) {}1537}1538var s = /\+/g,1539o = t.cookie = function(s, r, a) {1540if (void 0 !== r) {1541if (a = t.extend({}, o.defaults, a), "number" == typeof a.expires) {1542var u = a.expires,1543c = a.expires = new Date;1544c.setDate(c.getDate() + u)1545}1546return r = o.json ? JSON.stringify(r) : String(r), document.cookie = [encodeURIComponent(s), "=", o.raw ? r : encodeURIComponent(r), a.expires ? "; expires=" + a.expires.toUTCString() : "", a.path ? "; path=" + a.path : "", a.domain ? "; domain=" + a.domain : "", a.secure ? "; secure" : ""].join("")1547}1548for (var l = o.raw ? e : n, h = document.cookie.split("; "), f = s ? void 0 : {}, d = 0, p = h.length; p > d; d++) {1549var m = h[d].split("="),1550g = l(m.shift()),1551v = l(m.join("="));1552if (s && s === g) {1553f = i(v);1554break1555}1556s || (f[g] = i(v))1557}1558return f1559};1560o.defaults = {}, t.removeCookie = function(e, n) {1561return void 0 !== t.cookie(e) ? (t.cookie(e, "", t.extend(n, {1562expires: -11563})), !0) : !11564}1565}), (window.jQuery || window.Zepto) && ! function(t) {1566t.fn.Swipe = function(e) {1567return this.each(function() {1568t(this).data("Swipe", new Swipe(t(this)[0], e))1569})1570}1571}(window.jQuery || window.Zepto),1572function(t) {1573t.fn.twittie = function(e) {1574var n = t.extend({1575count: 10,1576hideReplies: !1,1577dateFormat: "%b/%d/%Y",1578template: "{{date}} - {{tweet}}"1579}, e),1580i = function(t) {1581for (var e = t.split(" "), n = "", i = 0, s = e.length; s > i; i++) {1582var o = e[i],1583r = "https://twitter.com/#!/"; - 1 !== o.indexOf("#") && (o = '<a href="' + r + "search/" + o.replace("#", "%23").replace(/[^A-Za-z0-9]/, "") + '" target="_blank">' + o + "</a>"), -1 !== o.indexOf("@") && (o = '<a href="' + r + o.replace("@", "").replace(/[^A-Za-z0-9]/, "") + '" target="_blank">' + o + "</a>"), -1 !== o.indexOf("http://") && (o = '<a href="' + o + '" target="_blank">' + o + "</a>"), n += o + " "1584}1585return n1586},1587s = function(t) {1588var e = t.split(" ");1589t = new Date(Date.parse(e[1] + " " + e[2] + ", " + e[5] + " " + e[3] + " UTC"));1590for (var i = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], s = {1591"%d": t.getDate(),1592"%m": t.getMonth() + 1,1593"%b": i[t.getMonth()].substr(0, 3),1594"%B": i[t.getMonth()],1595"%y": String(t.getFullYear()).slice(-2),1596"%Y": t.getFullYear()1597}, o = n.dateFormat, r = n.dateFormat.match(/%[dmbByY]/g), a = 0, u = r.length; u > a; a++) o = o.replace(r[a], s[r[a]]);1598return o1599},1600o = function(t) {1601for (var e = n.template, i = ["date", "tweet", "avatar"], s = 0, o = i.length; o > s; s++) e = e.replace(new RegExp("{{" + i[s] + "}}", "gi"), t[i[s]]);1602return e1603};1604this.html("<span>Loading...</span>");1605var r = this;1606t.getJSON("api/tweet.php", {1607count: n.count,1608exclude_replies: n.hideReplies1609}, function(t) {1610r.find("span").fadeOut("fast", function() {1611r.html("<ul></ul>");1612for (var e = 0; e < n.count && t[e]; e++) {1613var a = {1614date: s(t[e].created_at),1615tweet: i(t[e].text),1616avatar: '<img src="' + t[e].user.profile_image_url + '" />'1617};1618r.find("ul").append("<li>" + o(a) + "</li>")1619}1620})1621})1622}1623}(jQuery),1624function(t) {1625t.fn.appear = function(e, n) {1626var i = t.extend({1627data: void 0,1628one: !0,1629accX: 0,1630accY: 01631}, n);1632return this.each(function() {1633var n = t(this);1634if (n.appeared = !1, !e) return void n.trigger("appear", i.data);1635var s = t(window),1636o = function() {1637if (!n.is(":visible")) return void(n.appeared = !1);1638var t = s.scrollLeft(),1639e = s.scrollTop(),1640o = n.offset(),1641r = o.left,1642a = o.top,1643u = i.accX,1644c = i.accY,1645l = n.height(),1646h = s.height(),1647f = n.width(),1648d = s.width();1649a + l + c >= e && e + h + c >= a && r + f + u >= t && t + d + u >= r ? n.appeared || n.trigger("appear", i.data) : n.appeared = !11650},1651r = function() {1652if (n.appeared = !0, i.one) {1653s.unbind("scroll", o);1654var r = t.inArray(o, t.fn.appear.checks);1655r >= 0 && t.fn.appear.checks.splice(r, 1)1656}1657e.apply(this, arguments)1658};1659i.one ? n.one("appear", i.data, r) : n.bind("appear", i.data, r), s.scroll(o), t.fn.appear.checks.push(o), o()1660})1661}, t.extend(t.fn.appear, {1662checks: [],1663timeout: null,1664checkAll: function() {1665var e = t.fn.appear.checks.length;1666if (e > 0)1667for (; e--;) t.fn.appear.checks[e]()1668},1669run: function() {1670t.fn.appear.timeout && clearTimeout(t.fn.appear.timeout), t.fn.appear.timeout = setTimeout(t.fn.appear.checkAll, 20)1671}1672}), t.each(["append", "prepend", "after", "before", "attr", "removeAttr", "addClass", "removeClass", "toggleClass", "remove", "css", "show", "hide"], function(e, n) {1673var i = t.fn[n];1674i && (t.fn[n] = function() {1675var e = i.apply(this, arguments);1676return t.fn.appear.run(), e1677})1678})1679}(jQuery),1680function(t) {1681var e = t(window),1682n = e.height();1683e.resize(function() {1684n = e.height()1685}), t.fn.parallax = function(i, s, o) {1686function r() {1687c.each(function() {1688u = c.offset().top1689}), a = o ? function(t) {1690return t.outerHeight(!0)1691} : function(t) {1692return t.height()1693}, (arguments.length < 1 || null === i) && (i = "50%"), (arguments.length < 2 || null === s) && (s = .5), (arguments.length < 3 || null === o) && (o = !0);1694var r = e.scrollTop();1695c.each(function() {1696var e = t(this),1697o = e.offset().top,1698l = a(e);1699r > o + l || o > r + n || c.css("backgroundPosition", i + " " + Math.round((u - r) * s) + "px")1700})1701}1702var a, u, c = t(this);1703e.bind("scroll", r).resize(r), r()1704}1705}(jQuery),1706function(t) {1707function e(t) {1708if (t in a.style) return t;1709var e = ["Moz", "Webkit", "O", "ms"],1710n = t.charAt(0).toUpperCase() + t.substr(1);1711if (t in a.style) return t;1712for (t = 0; t < e.length; ++t) {1713var i = e[t] + n;1714if (i in a.style) return i1715}1716}17171718function n(t) {1719return "string" == typeof t && this.parse(t), this1720}17211722function i(e, n, i, s) {1723var o = [];1724t.each(e, function(e) {1725e = t.camelCase(e), e = t.transit.propertyMap[e] || t.cssProps[e] || e, e = e.replace(/([A-Z])/g, function(t) {1726return "-" + t.toLowerCase()1727}), -1 === t.inArray(e, o) && o.push(e)1728}), t.cssEase[i] && (i = t.cssEase[i]);1729var a = "" + r(n) + " " + i;17300 < parseInt(s, 10) && (a += " " + r(s));1731var u = [];1732return t.each(o, function(t, e) {1733u.push(e + " " + a)1734}), u.join(", ")1735}17361737function s(e, n) {1738n || (t.cssNumber[e] = !0), t.transit.propertyMap[e] = u.transform, t.cssHooks[e] = {1739get: function(n) {1740return t(n).css("transit:transform").get(e)1741},1742set: function(n, i) {1743var s = t(n).css("transit:transform");1744s.setFromString(e, i), t(n).css({1745"transit:transform": s1746})1747}1748}1749}17501751function o(t, e) {1752return "string" != typeof t || t.match(/^[\-0-9\.]+$/) ? "" + t + e : t1753}17541755function r(e) {1756return t.fx.speeds[e] && (e = t.fx.speeds[e]), o(e, "ms")1757}1758t.transit = {1759version: "0.9.9",1760propertyMap: {1761marginLeft: "margin",1762marginRight: "margin",1763marginBottom: "margin",1764marginTop: "margin",1765paddingLeft: "padding",1766paddingRight: "padding",1767paddingBottom: "padding",1768paddingTop: "padding"1769},1770enabled: !0,1771useTransitionEnd: !11772};1773var a = document.createElement("div"),1774u = {},1775c = -1 < navigator.userAgent.toLowerCase().indexOf("chrome");1776u.transition = e("transition"), u.transitionDelay = e("transitionDelay"), u.transform = e("transform"), u.transformOrigin = e("transformOrigin"), a.style[u.transform] = "", a.style[u.transform] = "rotateY(90deg)", u.transform3d = "" !== a.style[u.transform];1777var l, h = u.transitionEnd = {1778transition: "transitionEnd",1779MozTransition: "transitionend",1780OTransition: "oTransitionEnd",1781WebkitTransition: "webkitTransitionEnd",1782msTransition: "MSTransitionEnd"1783}[u.transition] || null;1784for (l in u) u.hasOwnProperty(l) && "undefined" == typeof t.support[l] && (t.support[l] = u[l]);1785a = null, t.cssEase = {1786_default: "ease",1787"in": "ease-in",1788out: "ease-out",1789"in-out": "ease-in-out",1790snap: "cubic-bezier(0,1,.5,1)",1791easeOutCubic: "cubic-bezier(.215,.61,.355,1)",1792easeInOutCubic: "cubic-bezier(.645,.045,.355,1)",1793easeInCirc: "cubic-bezier(.6,.04,.98,.335)",1794easeOutCirc: "cubic-bezier(.075,.82,.165,1)",1795easeInOutCirc: "cubic-bezier(.785,.135,.15,.86)",1796easeInExpo: "cubic-bezier(.95,.05,.795,.035)",1797easeOutExpo: "cubic-bezier(.19,1,.22,1)",1798easeInOutExpo: "cubic-bezier(1,0,0,1)",1799easeInQuad: "cubic-bezier(.55,.085,.68,.53)",1800easeOutQuad: "cubic-bezier(.25,.46,.45,.94)",1801easeInOutQuad: "cubic-bezier(.455,.03,.515,.955)",1802easeInQuart: "cubic-bezier(.895,.03,.685,.22)",1803easeOutQuart: "cubic-bezier(.165,.84,.44,1)",1804easeInOutQuart: "cubic-bezier(.77,0,.175,1)",1805easeInQuint: "cubic-bezier(.755,.05,.855,.06)",1806easeOutQuint: "cubic-bezier(.23,1,.32,1)",1807easeInOutQuint: "cubic-bezier(.86,0,.07,1)",1808easeInSine: "cubic-bezier(.47,0,.745,.715)",1809easeOutSine: "cubic-bezier(.39,.575,.565,1)",1810easeInOutSine: "cubic-bezier(.445,.05,.55,.95)",1811easeInBack: "cubic-bezier(.6,-.28,.735,.045)",1812easeOutBack: "cubic-bezier(.175, .885,.32,1.275)",1813easeInOutBack: "cubic-bezier(.68,-.55,.265,1.55)"1814}, t.cssHooks["transit:transform"] = {1815get: function(e) {1816return t(e).data("transform") || new n1817},1818set: function(e, i) {1819var s = i;1820s instanceof n || (s = new n(s)), e.style[u.transform] = "WebkitTransform" !== u.transform || c ? s.toString() : s.toString(!0), t(e).data("transform", s)1821}1822}, t.cssHooks.transform = {1823set: t.cssHooks["transit:transform"].set1824}, "1.8" > t.fn.jquery && (t.cssHooks.transformOrigin = {1825get: function(t) {1826return t.style[u.transformOrigin]1827},1828set: function(t, e) {1829t.style[u.transformOrigin] = e1830}1831}, t.cssHooks.transition = {1832get: function(t) {1833return t.style[u.transition]1834},1835set: function(t, e) {1836t.style[u.transition] = e1837}1838}), s("scale"), s("translate"), s("rotate"), s("rotateX"), s("rotateY"), s("rotate3d"), s("perspective"), s("skewX"), s("skewY"), s("x", !0), s("y", !0), n.prototype = {1839setFromString: function(t, e) {1840var i = "string" == typeof e ? e.split(",") : e.constructor === Array ? e : [e];1841i.unshift(t), n.prototype.set.apply(this, i)1842},1843set: function(t) {1844var e = Array.prototype.slice.apply(arguments, [1]);1845this.setter[t] ? this.setter[t].apply(this, e) : this[t] = e.join(",")1846},1847get: function(t) {1848return this.getter[t] ? this.getter[t].apply(this) : this[t] || 01849},1850setter: {1851rotate: function(t) {1852this.rotate = o(t, "deg")1853},1854rotateX: function(t) {1855this.rotateX = o(t, "deg")1856},1857rotateY: function(t) {1858this.rotateY = o(t, "deg")1859},1860scale: function(t, e) {1861void 0 === e && (e = t), this.scale = t + "," + e1862},1863skewX: function(t) {1864this.skewX = o(t, "deg")1865},1866skewY: function(t) {1867this.skewY = o(t, "deg")1868},1869perspective: function(t) {1870this.perspective = o(t, "px")1871},1872x: function(t) {1873this.set("translate", t, null)1874},1875y: function(t) {1876this.set("translate", null, t)1877},1878translate: function(t, e) {1879void 0 === this._translateX && (this._translateX = 0), void 0 === this._translateY && (this._translateY = 0), null !== t && void 0 !== t && (this._translateX = o(t, "px")), null !== e && void 0 !== e && (this._translateY = o(e, "px")), this.translate = this._translateX + "," + this._translateY1880}1881},1882getter: {1883x: function() {1884return this._translateX || 01885},1886y: function() {1887return this._translateY || 01888},1889scale: function() {1890var t = (this.scale || "1,1").split(",");1891return t[0] && (t[0] = parseFloat(t[0])), t[1] && (t[1] = parseFloat(t[1])), t[0] === t[1] ? t[0] : t1892},1893rotate3d: function() {1894for (var t = (this.rotate3d || "0,0,0,0deg").split(","), e = 0; 3 >= e; ++e) t[e] && (t[e] = parseFloat(t[e]));1895return t[3] && (t[3] = o(t[3], "deg")), t1896}1897},1898parse: function(t) {1899var e = this;1900t.replace(/([a-zA-Z0-9]+)\((.*?)\)/g, function(t, n, i) {1901e.setFromString(n, i)1902})1903},1904toString: function(t) {1905var e, n = [];1906for (e in this) this.hasOwnProperty(e) && (u.transform3d || "rotateX" !== e && "rotateY" !== e && "perspective" !== e && "transformOrigin" !== e) && "_" !== e[0] && (t && "scale" === e ? n.push(e + "3d(" + this[e] + ",1)") : t && "translate" === e ? n.push(e + "3d(" + this[e] + ",0)") : n.push(e + "(" + this[e] + ")"));1907return n.join(" ")1908}1909}, t.fn.transition = t.fn.transit = function(e, n, s, o) {1910var a = this,1911c = 0,1912l = !0;1913"function" == typeof n && (o = n, n = void 0), "function" == typeof s && (o = s, s = void 0), "undefined" != typeof e.easing && (s = e.easing, delete e.easing), "undefined" != typeof e.duration && (n = e.duration, delete e.duration), "undefined" != typeof e.complete && (o = e.complete, delete e.complete), "undefined" != typeof e.queue && (l = e.queue, delete e.queue), "undefined" != typeof e.delay && (c = e.delay, delete e.delay), "undefined" == typeof n && (n = t.fx.speeds._default), "undefined" == typeof s && (s = t.cssEase._default), n = r(n);1914var f = i(e, n, s, c),1915d = t.transit.enabled && u.transition ? parseInt(n, 10) + parseInt(c, 10) : 0;1916if (0 === d) return n = l, s = function(t) {1917a.css(e), o && o.apply(a), t && t()1918}, !0 === n ? a.queue(s) : n ? a.queue(n, s) : s(), a;1919var p = {};1920return n = l, s = function(n) {1921this.offsetWidth;1922var i = !1,1923s = function() {1924i && a.unbind(h, s), d > 0 && a.each(function() {1925this.style[u.transition] = p[this] || null1926}), "function" == typeof o && o.apply(a), "function" == typeof n && n()1927};1928d > 0 && h && t.transit.useTransitionEnd ? (i = !0, a.bind(h, s)) : window.setTimeout(s, d), a.each(function() {1929d > 0 && (this.style[u.transition] = f), t(this).css(e)1930})1931}, !0 === n ? a.queue(s) : n ? a.queue(n, s) : s(), this1932}, t.transit.getTransitionValue = i1933}(jQuery),1934function(t) {1935function e(e) {1936var n = e || window.event,1937i = [].slice.call(arguments, 1),1938s = 0,1939o = 0,1940r = 0;1941return e = t.event.fix(n), e.type = "mousewheel", n.wheelDelta && (s = n.wheelDelta / 120), n.detail && (s = -n.detail / 3), r = s, void 0 !== n.axis && n.axis === n.HORIZONTAL_AXIS && (r = 0, o = -1 * s), void 0 !== n.wheelDeltaY && (r = n.wheelDeltaY / 120), void 0 !== n.wheelDeltaX && (o = -1 * n.wheelDeltaX / 120), i.unshift(e, s, o, r), (t.event.dispatch || t.event.handle).apply(this, i)1942}1943var n = ["DOMMouseScroll", "mousewheel"];1944if (t.event.fixHooks)1945for (var i = n.length; i;) t.event.fixHooks[n[--i]] = t.event.mouseHooks;1946t.event.special.mousewheel = {1947setup: function() {1948if (this.addEventListener)1949for (var t = n.length; t;) this.addEventListener(n[--t], e, !1);1950else this.onmousewheel = e1951},1952teardown: function() {1953if (this.removeEventListener)1954for (var t = n.length; t;) this.removeEventListener(n[--t], e, !1);1955else this.onmousewheel = null1956}1957}, t.fn.extend({1958mousewheel: function(t) {1959return t ? this.bind("mousewheel", t) : this.trigger("mousewheel")1960},1961unmousewheel: function(t) {1962return this.unbind("mousewheel", t)1963}1964})1965}(jQuery);19661967