vendor: 31,724 bytes, lines 1-449
1/** 2 * Owl Carousel v2.2.1 3 * Copyright 2013-2017 David Deutsch 4 * Licensed under MIT (https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE) 5 */ 6!function (a, b, c, d) { 7 function e(b, c) { 8 this.settings = null, this.options = a.extend({}, e.Defaults, c), this.$element = a(b), this._handlers = {}, this._plugins = {}, this._supress = {}, this._current = null, this._speed = null, this._coordinates = [], this._breakpoint = null, this._width = null, this._items = [], this._clones = [], this._mergers = [], this._widths = [], this._invalidated = {}, this._pipe = [], this._drag = { 9 time: null, 10 target: null, 11 pointer: null, 12 stage: {start: null, current: null}, 13 direction: null 14 }, this._states = { 15 current: {}, 16 tags: {initializing: ["busy"], animating: ["busy"], dragging: ["interacting"]} 17 }, a.each(["onResize", "onThrottledResize"], a.proxy(function (b, c) { 18 this._handlers[c] = a.proxy(this[c], this) 19 }, this)), a.each(e.Plugins, a.proxy(function (a, b) { 20 this._plugins[a.charAt(0).toLowerCase() + a.slice(1)] = new b(this) 21 }, this)), a.each(e.Workers, a.proxy(function (b, c) { 22 this._pipe.push({filter: c.filter, run: a.proxy(c.run, this)}) 23 }, this)), this.setup(), this.initialize() 24 } 25 26 e.Defaults = { 27 items: 3, 28 loop: !1, 29 center: !1, 30 rewind: !1, 31 mouseDrag: !0, 32 touchDrag: !0, 33 pullDrag: !0, 34 freeDrag: !1, 35 margin: 0, 36 stagePadding: 0, 37 merge: !1, 38 mergeFit: !0, 39 autoWidth: !1, 40 startPosition: 0, 41 rtl: !1, 42 smartSpeed: 250, 43 fluidSpeed: !1, 44 dragEndSpeed: !1, 45 responsive: {}, 46 responsiveRefreshRate: 200, 47 responsiveBaseElement: b, 48 fallbackEasing: "swing", 49 info: !1, 50 nestedItemSelector: !1, 51 itemElement: "div", 52 stageElement: "div", 53 refreshClass: "owl-refresh", 54 loadedClass: "owl-loaded", 55 loadingClass: "owl-loading", 56 rtlClass: "owl-rtl", 57 responsiveClass: "owl-responsive", 58 dragClass: "owl-drag", 59 itemClass: "owl-item", 60 stageClass: "owl-stage", 61 stageOuterClass: "owl-stage-outer", 62 grabClass: "owl-grab" 63 }, e.Width = {Default: "default", Inner: "inner", Outer: "outer"}, e.Type = { 64 Event: "event", 65 State: "state" 66 }, e.Plugins = {}, e.Workers = [{ 67 filter: ["width", "settings"], run: function () { 68 this._width = this.$element.width() 69 } 70 }, { 71 filter: ["width", "items", "settings"], run: function (a) { 72 a.current = this._items && this._items[this.relative(this._current)] 73 } 74 }, { 75 filter: ["items", "settings"], run: function () { 76 this.$stage.children(".cloned").remove() 77 } 78 }, { 79 filter: ["width", "items", "settings"], run: function (a) { 80 var b = this.settings.margin || "", c = !this.settings.autoWidth, d = this.settings.rtl, e = { 81 width: "auto", 82 "margin-left": d ? b : "", 83 "margin-right": d ? "" : b 84 }; 85 !c && this.$stage.children().css(e), a.css = e 86 } 87 }, { 88 filter: ["width", "items", "settings"], run: function (a) { 89 var b = (this.width() / this.settings.items).toFixed(3) - this.settings.margin, c = null, d = this._items.length, e = !this.settings.autoWidth, f = []; 90 for (a.items = { 91 merge: !1, 92 width: b 93 }; d--;)c = this._mergers[d], c = this.settings.mergeFit && Math.min(c, this.settings.items) || c, a.items.merge = c > 1 || a.items.merge, f[d] = e ? b * c : this._items[d].width(); 94 this._widths = f 95 } 96 }, { 97 filter: ["items", "settings"], run: function () { 98 var b = [], c = this._items, d = this.settings, e = Math.max(2 * d.items, 4), f = 2 * Math.ceil(c.length / 2), g = d.loop && c.length ? d.rewind ? e : Math.max(e, f) : 0, h = "", i = ""; 99 for (g /= 2; g--;)b.push(this.normalize(b.length / 2, !0)), h += c[b[b.length - 1]][0].outerHTML, b.push(this.normalize(c.length - 1 - (b.length - 1) / 2, !0)), i = c[b[b.length - 1]][0].outerHTML + i; 100 this._clones = b, a(h).addClass("cloned").appendTo(this.$stage), a(i).addClass("cloned").prependTo(this.$stage) 101 } 102 }, { 103 filter: ["width", "items", "settings"], run: function () { 104 for (var a = this.settings.rtl ? 1 : -1, b = this._clones.length + this._items.length, c = -1, d = 0, e = 0, f = []; ++c < b;)d = f[c - 1] || 0, e = this._widths[this.relative(c)] + this.settings.margin, f.push(d + e * a); 105 this._coordinates = f 106 } 107 }, { 108 filter: ["width", "items", "settings"], run: function () { 109 var a = this.settings.stagePadding, b = this._coordinates, c = { 110 width: Math.ceil(Math.abs(b[b.length - 1])) + 2 * a, 111 "padding-left": a || "", 112 "padding-right": a || "" 113 }; 114 this.$stage.css(c) 115 } 116 }, { 117 filter: ["width", "items", "settings"], run: function (a) { 118 var b = this._coordinates.length, c = !this.settings.autoWidth, d = this.$stage.children(); 119 if (c && a.items.merge)for (; b--;)a.css.width = this._widths[this.relative(b)], d.eq(b).css(a.css); else c && (a.css.width = a.items.width, d.css(a.css)) 120 } 121 }, { 122 filter: ["items"], run: function () { 123 this._coordinates.length < 1 && this.$stage.removeAttr("style") 124 } 125 }, { 126 filter: ["width", "items", "settings"], run: function (a) { 127 a.current = a.current ? this.$stage.children().index(a.current) : 0, a.current = Math.max(this.minimum(), Math.min(this.maximum(), a.current)), this.reset(a.current) 128 } 129 }, { 130 filter: ["position"], run: function () { 131 this.animate(this.coordinates(this._current)) 132 } 133 }, { 134 filter: ["width", "position", "items", "settings"], run: function () { 135 var a, b, c, d, e = this.settings.rtl ? 1 : -1, f = 2 * this.settings.stagePadding, g = this.coordinates(this.current()) + f, h = g + this.width() * e, i = []; 136 for (c = 0, d = this._coordinates.length; c < d; c++)a = this._coordinates[c - 1] || 0, b = Math.abs(this._coordinates[c]) + f * e, (this.op(a, "<=", g) && this.op(a, ">", h) || this.op(b, "<", g) && this.op(b, ">", h)) && i.push(c); 137 this.$stage.children(".active").removeClass("active"), this.$stage.children(":eq(" + i.join("), :eq(") + ")").addClass("active"), this.settings.center && (this.$stage.children(".center").removeClass("center"), this.$stage.children().eq(this.current()).addClass("center")) 138 } 139 }], e.prototype.initialize = function () { 140 if (this.enter("initializing"), this.trigger("initialize"), this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl), this.settings.autoWidth && !this.is("pre-loading")) { 141 var b, c, e; 142 b = this.$element.find("img"), c = this.settings.nestedItemSelector ? "." + this.settings.nestedItemSelector : d, e = this.$element.children(c).width(), b.length && e <= 0 && this.preloadAutoWidthImages(b) 143 } 144 this.$element.addClass(this.options.loadingClass), this.$stage = a("<" + this.settings.stageElement + ' class="' + this.settings.stageClass + '"/>').wrap('<div class="' + this.settings.stageOuterClass + '"/>'), this.$element.append(this.$stage.parent()), this.replace(this.$element.children().not(this.$stage.parent())), this.$element.is(":visible") ? this.refresh() : this.invalidate("width"), this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass), this.registerEventHandlers(), this.leave("initializing"), this.trigger("initialized") 145 }, e.prototype.setup = function () { 146 var b = this.viewport(), c = this.options.responsive, d = -1, e = null; 147 c ? (a.each(c, function (a) { 148 a <= b && a > d && (d = Number(a)) 149 }), e = a.extend({}, this.options, c[d]), "function" == typeof e.stagePadding && (e.stagePadding = e.stagePadding()), delete e.responsive, e.responsiveClass && this.$element.attr("class", this.$element.attr("class").replace(new RegExp("(" + this.options.responsiveClass + "-)\\S+\\s", "g"), "$1" + d))) : e = a.extend({}, this.options), this.trigger("change", { 150 property: { 151 name: "settings", 152 value: e 153 } 154 }), this._breakpoint = d, this.settings = e, this.invalidate("settings"), this.trigger("changed", { 155 property: { 156 name: "settings", 157 value: this.settings 158 } 159 }) 160 }, e.prototype.optionsLogic = function () { 161 this.settings.autoWidth && (this.settings.stagePadding = !1, this.settings.merge = !1) 162 }, e.prototype.prepare = function (b) { 163 var c = this.trigger("prepare", {content: b}); 164 return c.data || (c.data = a("<" + this.settings.itemElement + "/>").addClass(this.options.itemClass).append(b)), this.trigger("prepared", {content: c.data}), c.data 165 }, e.prototype.update = function () { 166 for (var b = 0, c = this._pipe.length, d = a.proxy(function (a) { 167 return this[a] 168 }, this._invalidated), e = {}; b < c;)(this._invalidated.all || a.grep(this._pipe[b].filter, d).length > 0) && this._pipe[b].run(e), b++; 169 this._invalidated = {}, !this.is("valid") && this.enter("valid") 170 }, e.prototype.width = function (a) { 171 switch (a = a || e.Width.Default) { 172 case e.Width.Inner: 173 case e.Width.Outer: 174 return this._width; 175 default: 176 return this._width - 2 * this.settings.stagePadding + this.settings.margin 177 } 178 }, e.prototype.refresh = function () { 179 this.enter("refreshing"), this.trigger("refresh"), this.setup(), this.optionsLogic(), this.$element.addClass(this.options.refreshClass), this.update(), this.$element.removeClass(this.options.refreshClass), this.leave("refreshing"), this.trigger("refreshed") 180 }, e.prototype.onThrottledResize = function () { 181 b.clearTimeout(this.resizeTimer), this.resizeTimer = b.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate) 182 }, e.prototype.onResize = function () { 183 return !!this._items.length && (this._width !== this.$element.width() && (!!this.$element.is(":visible") && (this.enter("resizing"), this.trigger("resize").isDefaultPrevented() ? (this.leave("resizing"), !1) : (this.invalidate("width"), this.refresh(), this.leave("resizing"), void this.trigger("resized"))))) 184 }, e.prototype.registerEventHandlers = function () { 185 a.support.transition && this.$stage.on(a.support.transition.end + ".owl.core", a.proxy(this.onTransitionEnd, this)), this.settings.responsive !== !1 && this.on(b, "resize", this._handlers.onThrottledResize), this.settings.mouseDrag && (this.$element.addClass(this.options.dragClass), this.$stage.on("mousedown.owl.core", a.proxy(this.onDragStart, this)), this.$stage.on("dragstart.owl.core selectstart.owl.core", function () { 186 return !1 187 })), this.settings.touchDrag && (this.$stage.on("touchstart.owl.core", a.proxy(this.onDragStart, this)), this.$stage.on("touchcancel.owl.core", a.proxy(this.onDragEnd, this))) 188 }, e.prototype.onDragStart = function (b) { 189 var d = null; 190 3 !== b.which && (a.support.transform ? (d = this.$stage.css("transform").replace(/.*\(|\)| /g, "").split(","), d = { 191 x: d[16 === d.length ? 12 : 4], 192 y: d[16 === d.length ? 13 : 5] 193 }) : (d = this.$stage.position(), d = { 194 x: this.settings.rtl ? d.left + this.$stage.width() - this.width() + this.settings.margin : d.left, 195 y: d.top 196 }), this.is("animating") && (a.support.transform ? this.animate(d.x) : this.$stage.stop(), this.invalidate("position")), this.$element.toggleClass(this.options.grabClass, "mousedown" === b.type), this.speed(0), this._drag.time = (new Date).getTime(), this._drag.target = a(b.target), this._drag.stage.start = d, this._drag.stage.current = d, this._drag.pointer = this.pointer(b), a(c).on("mouseup.owl.core touchend.owl.core", a.proxy(this.onDragEnd, this)), a(c).one("mousemove.owl.core touchmove.owl.core", a.proxy(function (b) { 197 var d = this.difference(this._drag.pointer, this.pointer(b)); 198 a(c).on("mousemove.owl.core touchmove.owl.core", a.proxy(this.onDragMove, this)), Math.abs(d.x) < Math.abs(d.y) && this.is("valid") || (b.preventDefault(), this.enter("dragging"), this.trigger("drag")) 199 }, this))) 200 }, e.prototype.onDragMove = function (a) { 201 var b = null, c = null, d = null, e = this.difference(this._drag.pointer, this.pointer(a)), f = this.difference(this._drag.stage.start, e); 202 this.is("dragging") && (a.preventDefault(), this.settings.loop ? (b = this.coordinates(this.minimum()), c = this.coordinates(this.maximum() + 1) - b, f.x = ((f.x - b) % c + c) % c + b) : (b = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum()), c = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum()), d = this.settings.pullDrag ? -1 * e.x / 5 : 0, f.x = Math.max(Math.min(f.x, b + d), c + d)), this._drag.stage.current = f, this.animate(f.x)) 203 }, e.prototype.onDragEnd = function (b) { 204 var d = this.difference(this._drag.pointer, this.pointer(b)), e = this._drag.stage.current, f = d.x > 0 ^ this.settings.rtl ? "left" : "right"; 205 a(c).off(".owl.core"), this.$element.removeClass(this.options.grabClass), (0 !== d.x && this.is("dragging") || !this.is("valid")) && (this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed), this.current(this.closest(e.x, 0 !== d.x ? f : this._drag.direction)), this.invalidate("position"), this.update(), this._drag.direction = f, (Math.abs(d.x) > 3 || (new Date).getTime() - this._drag.time > 300) && this._drag.target.one("click.owl.core", function () { 206 return !1 207 })), this.is("dragging") && (this.leave("dragging"), this.trigger("dragged")) 208 }, e.prototype.closest = function (b, c) { 209 var d = -1, e = 30, f = this.width(), g = this.coordinates(); 210 return this.settings.freeDrag || a.each(g, a.proxy(function (a, h) { 211 return "left" === c && b > h - e && b < h + e ? d = a : "right" === c && b > h - f - e && b < h - f + e ? d = a + 1 : this.op(b, "<", h) && this.op(b, ">", g[a + 1] || h - f) && (d = "left" === c ? a + 1 : a), d === -1 212 }, this)), this.settings.loop || (this.op(b, ">", g[this.minimum()]) ? d = b = this.minimum() : this.op(b, "<", g[this.maximum()]) && (d = b = this.maximum())), d 213 }, e.prototype.animate = function (b) { 214 var c = this.speed() > 0; 215 this.is("animating") && this.onTransitionEnd(), c && (this.enter("animating"), this.trigger("translate")), a.support.transform3d && a.support.transition ? this.$stage.css({ 216 transform: "translate3d(" + b + "px,0px,0px)", 217 transition: this.speed() / 1e3 + "s" 218 }) : c ? this.$stage.animate({left: b + "px"}, this.speed(), this.settings.fallbackEasing, a.proxy(this.onTransitionEnd, this)) : this.$stage.css({left: b + "px"}) 219 }, e.prototype.is = function (a) { 220 return this._states.current[a] && this._states.current[a] > 0 221 }, e.prototype.current = function (a) { 222 if (a === d)return this._current; 223 if (0 === this._items.length)return d; 224 if (a = this.normalize(a), this._current !== a) { 225 var b = this.trigger("change", {property: {name: "position", value: a}}); 226 b.data !== d && (a = this.normalize(b.data)), this._current = a, this.invalidate("position"), this.trigger("changed", { 227 property: { 228 name: "position", 229 value: this._current 230 } 231 }) 232 } 233 return this._current 234 }, e.prototype.invalidate = function (b) { 235 return "string" === a.type(b) && (this._invalidated[b] = !0, this.is("valid") && this.leave("valid")), a.map(this._invalidated, function (a, b) { 236 return b 237 }) 238 }, e.prototype.reset = function (a) { 239 a = this.normalize(a), a !== d && (this._speed = 0, this._current = a, this.suppress(["translate", "translated"]), this.animate(this.coordinates(a)), this.release(["translate", "translated"])) 240 }, e.prototype.normalize = function (a, b) { 241 var c = this._items.length, e = b ? 0 : this._clones.length; 242 return !this.isNumeric(a) || c < 1 ? a = d : (a < 0 || a >= c + e) && (a = ((a - e / 2) % c + c) % c + e / 2), a 243 }, e.prototype.relative = function (a) { 244 return a -= this._clones.length / 2, this.normalize(a, !0) 245 }, e.prototype.maximum = function (a) { 246 var b, c, d, e = this.settings, f = this._coordinates.length; 247 if (e.loop)f = this._clones.length / 2 + this._items.length - 1; else if (e.autoWidth || e.merge) { 248 for (b = this._items.length, c = this._items[--b].width(), d = this.$element.width(); b-- && (c += this._items[b].width() + this.settings.margin, !(c > d));); 249 f = b + 1 250 } else f = e.center ? this._items.length - 1 : this._items.length - e.items; 251 return a && (f -= this._clones.length / 2), Math.max(f, 0) 252 }, e.prototype.minimum = function (a) { 253 return a ? 0 : this._clones.length / 2 254 }, e.prototype.items = function (a) { 255 return a === d ? this._items.slice() : (a = this.normalize(a, !0), this._items[a]) 256 }, e.prototype.mergers = function (a) { 257 return a === d ? this._mergers.slice() : (a = this.normalize(a, !0), this._mergers[a]) 258 }, e.prototype.clones = function (b) { 259 var c = this._clones.length / 2, e = c + this._items.length, f = function (a) { 260 return a % 2 === 0 ? e + a / 2 : c - (a + 1) / 2 261 }; 262 return b === d ? a.map(this._clones, function (a, b) { 263 return f(b) 264 }) : a.map(this._clones, function (a, c) { 265 return a === b ? f(c) : null 266 }) 267 }, e.prototype.speed = function (a) { 268 return a !== d && (this._speed = a), this._speed 269 }, e.prototype.coordinates = function (b) { 270 var c, e = 1, f = b - 1; 271 return b === d ? a.map(this._coordinates, a.proxy(function (a, b) { 272 return this.coordinates(b) 273 }, this)) : (this.settings.center ? (this.settings.rtl && (e = -1, f = b + 1), c = this._coordinates[b], c += (this.width() - c + (this._coordinates[f] || 0)) / 2 * e) : c = this._coordinates[f] || 0, c = Math.ceil(c)) 274 }, e.prototype.duration = function (a, b, c) { 275 return 0 === c ? 0 : Math.min(Math.max(Math.abs(b - a), 1), 6) * Math.abs(c || this.settings.smartSpeed) 276 }, e.prototype.to = function (a, b) { 277 var c = this.current(), d = null, e = a - this.relative(c), f = (e > 0) - (e < 0), g = this._items.length, h = this.minimum(), i = this.maximum(); 278 this.settings.loop ? (!this.settings.rewind && Math.abs(e) > g / 2 && (e += f * -1 * g), a = c + e, d = ((a - h) % g + g) % g + h, d !== a && d - e <= i && d - e > 0 && (c = d - e, a = d, this.reset(c))) : this.settings.rewind ? (i += 1, a = (a % i + i) % i) : a = Math.max(h, Math.min(i, a)), this.speed(this.duration(c, a, b)), this.current(a), this.$element.is(":visible") && this.update() 279 }, e.prototype.next = function (a) { 280 a = a || !1, this.to(this.relative(this.current()) + 1, a) 281 }, e.prototype.prev = function (a) { 282 a = a || !1, this.to(this.relative(this.current()) - 1, a) 283 }, e.prototype.onTransitionEnd = function (a) { 284 if (a !== d && (a.stopPropagation(), (a.target || a.srcElement || a.originalTarget) !== this.$stage.get(0)))return !1; 285 this.leave("animating"), this.trigger("translated") 286 }, e.prototype.viewport = function () { 287 var d; 288 return this.options.responsiveBaseElement !== b ? d = a(this.options.responsiveBaseElement).width() : b.innerWidth ? d = b.innerWidth : c.documentElement && c.documentElement.clientWidth ? d = c.documentElement.clientWidth : console.warn("Can not detect viewport width."), d 289 }, e.prototype.replace = function (b) { 290 this.$stage.empty(), this._items = [], b && (b = b instanceof jQuery ? b : a(b)), this.settings.nestedItemSelector && (b = b.find("." + this.settings.nestedItemSelector)), b.filter(function () { 291 return 1 === this.nodeType 292 }).each(a.proxy(function (a, b) { 293 b = this.prepare(b), this.$stage.append(b), this._items.push(b), this._mergers.push(1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1) 294 }, this)), this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0), this.invalidate("items") 295 }, e.prototype.add = function (b, c) { 296 var e = this.relative(this._current); 297 c = c === d ? this._items.length : this.normalize(c, !0), b = b instanceof jQuery ? b : a(b), this.trigger("add", { 298 content: b, 299 position: c 300 }), b = this.prepare(b), 0 === this._items.length || c === this._items.length ? (0 === this._items.length && this.$stage.append(b), 0 !== this._items.length && this._items[c - 1].after(b), this._items.push(b), this._mergers.push(1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)) : (this._items[c].before(b), this._items.splice(c, 0, b), this._mergers.splice(c, 0, 1 * b.find("[data-merge]").addBack("[data-merge]").attr("data-merge") || 1)), this._items[e] && this.reset(this._items[e].index()), this.invalidate("items"), this.trigger("added", { 301 content: b, 302 position: c 303 }) 304 }, e.prototype.remove = function (a) { 305 a = this.normalize(a, !0), a !== d && (this.trigger("remove", { 306 content: this._items[a], 307 position: a 308 }), this._items[a].remove(), this._items.splice(a, 1), this._mergers.splice(a, 1), this.invalidate("items"), this.trigger("removed", { 309 content: null, 310 position: a 311 })) 312 }, e.prototype.preloadAutoWidthImages = function (b) { 313 b.each(a.proxy(function (b, c) { 314 this.enter("pre-loading"), c = a(c), a(new Image).one("load", a.proxy(function (a) { 315 c.attr("src", a.target.src), c.css("opacity", 1), this.leave("pre-loading"), !this.is("pre-loading") && !this.is("initializing") && this.refresh() 316 }, this)).attr("src", c.attr("src") || c.attr("data-src") || c.attr("data-src-retina")) 317 }, this)) 318 }, e.prototype.destroy = function () { 319 this.$element.off(".owl.core"), this.$stage.off(".owl.core"), a(c).off(".owl.core"), this.settings.responsive !== !1 && (b.clearTimeout(this.resizeTimer), this.off(b, "resize", this._handlers.onThrottledResize)); 320 for (var d in this._plugins)this._plugins[d].destroy(); 321 this.$stage.children(".cloned").remove(), this.$stage.unwrap(), this.$stage.children().contents().unwrap(), this.$stage.children().unwrap(), this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class", this.$element.attr("class").replace(new RegExp(this.options.responsiveClass + "-\\S+\\s", "g"), "")).removeData("owl.carousel") 322 }, e.prototype.op = function (a, b, c) { 323 var d = this.settings.rtl; 324 switch (b) { 325 case"<": 326 return d ? a > c : a < c; 327 case">": 328 return d ? a < c : a > c; 329 case">=": 330 return d ? a <= c : a >= c; 331 case"<=": 332 return d ? a >= c : a <= c 333 } 334 }, e.prototype.on = function (a, b, c, d) { 335 a.addEventListener ? a.addEventListener(b, c, d) : a.attachEvent && a.attachEvent("on" + b, c) 336 }, e.prototype.off = function (a, b, c, d) { 337 a.removeEventListener ? a.removeEventListener(b, c, d) : a.detachEvent && a.detachEvent("on" + b, c) 338 }, e.prototype.trigger = function (b, c, d, f, g) { 339 var h = { 340 item: { 341 count: this._items.length, 342 index: this.current() 343 } 344 }, i = a.camelCase(a.grep(["on", b, d], function (a) { 345 return a 346 }).join("-").toLowerCase()), j = a.Event([b, "owl", d || "carousel"].join(".").toLowerCase(), a.extend({relatedTarget: this}, h, c)); 347 return this._supress[b] || (a.each(this._plugins, function (a, b) { 348 b.onTrigger && b.onTrigger(j) 349 }), this.register({ 350 type: e.Type.Event, 351 name: b 352 }), this.$element.trigger(j), this.settings && "function" == typeof this.settings[i] && this.settings[i].call(this, j)), j 353 }, e.prototype.enter = function (b) { 354 a.each([b].concat(this._states.tags[b] || []), a.proxy(function (a, b) { 355 this._states.current[b] === d && (this._states.current[b] = 0), this._states.current[b]++ 356 }, this)) 357 }, e.prototype.leave = function (b) { 358 a.each([b].concat(this._states.tags[b] || []), a.proxy(function (a, b) { 359 this._states.current[b]-- 360 }, this)) 361 }, e.prototype.register = function (b) { 362 if (b.type === e.Type.Event) { 363 if (a.event.special[b.name] || (a.event.special[b.name] = {}), !a.event.special[b.name].owl) { 364 var c = a.event.special[b.name]._default; 365 a.event.special[b.name]._default = function (a) { 366 return !c || !c.apply || a.namespace && a.namespace.indexOf("owl") !== -1 ? a.namespace && a.namespace.indexOf("owl") > -1 : c.apply(this, arguments) 367 }, a.event.special[b.name].owl = !0 368 } 369 } else b.type === e.Type.State && (this._states.tags[b.name] ? this._states.tags[b.name] = this._states.tags[b.name].concat(b.tags) : this._states.tags[b.name] = b.tags, this._states.tags[b.name] = a.grep(this._states.tags[b.name], a.proxy(function (c, d) { 370 return a.inArray(c, this._states.tags[b.name]) === d 371 }, this))) 372 }, e.prototype.suppress = function (b) { 373 a.each(b, a.proxy(function (a, b) { 374 this._supress[b] = !0 375 }, this)) 376 }, e.prototype.release = function (b) { 377 a.each(b, a.proxy(function (a, b) { 378 delete this._supress[b] 379 }, this)) 380 }, e.prototype.pointer = function (a) { 381 var c = {x: null, y: null}; 382 return a = a.originalEvent || a || b.event, a = a.touches && a.touches.length ? a.touches[0] : a.changedTouches && a.changedTouches.length ? a.changedTouches[0] : a, a.pageX ? (c.x = a.pageX, c.y = a.pageY) : (c.x = a.clientX, c.y = a.clientY), c 383 }, e.prototype.isNumeric = function (a) { 384 return !isNaN(parseFloat(a)) 385 }, e.prototype.difference = function (a, b) { 386 return {x: a.x - b.x, y: a.y - b.y} 387 }, a.fn.owlCarousel = function (b) { 388 var c = Array.prototype.slice.call(arguments, 1); 389 return this.each(function () { 390 var d = a(this), f = d.data("owl.carousel"); 391 f || (f = new e(this, "object" == typeof b && b), d.data("owl.carousel", f), a.each(["next", "prev", "to", "destroy", "refresh", "replace", "add", "remove"], function (b, c) { 392 f.register({ 393 type: e.Type.Event, 394 name: c 395 }), f.$element.on(c + ".owl.carousel.core", a.proxy(function (a) { 396 a.namespace && a.relatedTarget !== this && (this.suppress([c]), f[c].apply(this, [].slice.call(arguments, 1)), this.release([c])) 397 }, f)) 398 })), "string" == typeof b && "_" !== b.charAt(0) && f[b].apply(f, c) 399 }) 400 }, a.fn.owlCarousel.Constructor = e 401}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 402 var e = function (b) { 403 this._core = b, this._interval = null, this._visible = null, this._handlers = { 404 "initialized.owl.carousel": a.proxy(function (a) { 405 a.namespace && this._core.settings.autoRefresh && this.watch() 406 }, this) 407 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) 408 }; 409 e.Defaults = {autoRefresh: !0, autoRefreshInterval: 500}, e.prototype.watch = function () { 410 this._interval || (this._visible = this._core.$element.is(":visible"), this._interval = b.setInterval(a.proxy(this.refresh, this), this._core.settings.autoRefreshInterval)) 411 }, e.prototype.refresh = function () { 412 this._core.$element.is(":visible") !== this._visible && (this._visible = !this._visible, this._core.$element.toggleClass("owl-hidden", !this._visible), this._visible && this._core.invalidate("width") && this._core.refresh()) 413 }, e.prototype.destroy = function () { 414 var a, c; 415 b.clearInterval(this._interval); 416 for (a in this._handlers)this._core.$element.off(a, this._handlers[a]); 417 for (c in Object.getOwnPropertyNames(this))"function" != typeof this[c] && (this[c] = null) 418 }, a.fn.owlCarousel.Constructor.Plugins.AutoRefresh = e 419}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 420 var e = function (b) { 421 this._core = b, this._loaded = [], this._handlers = { 422 "initialized.owl.carousel change.owl.carousel resized.owl.carousel": a.proxy(function (b) { 423 if (b.namespace && this._core.settings && this._core.settings.lazyLoad && (b.property && "position" == b.property.name || "initialized" == b.type))for (var c = this._core.settings, e = c.center && Math.ceil(c.items / 2) || c.items, f = c.center && e * -1 || 0, g = (b.property && b.property.value !== d ? b.property.value : this._core.current()) + f, h = this._core.clones().length, i = a.proxy(function (a, b) { 424 this.load(b) 425 }, this); f++ < e;)this.load(h / 2 + this._core.relative(g)), h && a.each(this._core.clones(this._core.relative(g)), i), g++ 426 }, this) 427 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) 428 }; 429 e.Defaults = {lazyLoad: !1}, e.prototype.load = function (c) { 430 var d = this._core.$stage.children().eq(c), e = d && d.find(".owl-lazy"); 431 !e || a.inArray(d.get(0), this._loaded) > -1 || (e.each(a.proxy(function (c, d) { 432 var e, f = a(d), g = b.devicePixelRatio > 1 && f.attr("data-src-retina") || f.attr("data-src"); 433 this._core.trigger("load", { 434 element: f, 435 url: g 436 }, "lazy"), f.is("img") ? f.one("load.owl.lazy", a.proxy(function () { 437 f.css("opacity", 1), this._core.trigger("loaded", {element: f, url: g}, "lazy") 438 }, this)).attr("src", g) : (e = new Image, e.onload = a.proxy(function () { 439 f.css({"background-image": 'url("' + g + '")', opacity: "1"}), this._core.trigger("loaded", { 440 element: f, 441 url: g 442 }, "lazy") 443 }, this), e.src = g) 444 }, this)), this._loaded.push(d.get(0))) 445 }, e.prototype.destroy = function () { 446 var a, b; 447 for (a in this.handlers)this._core.$element.off(a, this.handlers[a]); 448 for (b in Object.getOwnPropertyNames(this))"function" != typeof this[b] && (this[b] = null) 449 }, a.fn.owlCarousel.Constructor.Plugins.Lazy = e
vendor: 19,280 bytes, lines 450-697
450}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 451 var e = function (b) { 452 this._core = b, this._handlers = { 453 "initialized.owl.carousel refreshed.owl.carousel": a.proxy(function (a) { 454 a.namespace && this._core.settings.autoHeight && this.update() 455 }, this), "changed.owl.carousel": a.proxy(function (a) { 456 a.namespace && this._core.settings.autoHeight && "position" == a.property.name && this.update() 457 }, this), "loaded.owl.lazy": a.proxy(function (a) { 458 a.namespace && this._core.settings.autoHeight && a.element.closest("." + this._core.settings.itemClass).index() === this._core.current() && this.update() 459 }, this) 460 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers) 461 }; 462 e.Defaults = {autoHeight: !1, autoHeightClass: "owl-height"}, e.prototype.update = function () { 463 var b = this._core._current, c = b + this._core.settings.items, d = this._core.$stage.children().toArray().slice(b, c), e = [], f = 0; 464 a.each(d, function (b, c) { 465 e.push(a(c).height()) 466 }), f = Math.max.apply(null, e), this._core.$stage.parent().height(f).addClass(this._core.settings.autoHeightClass) 467 }, e.prototype.destroy = function () { 468 var a, b; 469 for (a in this._handlers)this._core.$element.off(a, this._handlers[a]); 470 for (b in Object.getOwnPropertyNames(this))"function" != typeof this[b] && (this[b] = null) 471 }, a.fn.owlCarousel.Constructor.Plugins.AutoHeight = e 472}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 473 var e = function (b) { 474 this._core = b, this._videos = {}, this._playing = null, this._handlers = { 475 "initialized.owl.carousel": a.proxy(function (a) { 476 a.namespace && this._core.register({type: "state", name: "playing", tags: ["interacting"]}) 477 }, this), "resize.owl.carousel": a.proxy(function (a) { 478 a.namespace && this._core.settings.video && this.isInFullScreen() && a.preventDefault() 479 }, this), "refreshed.owl.carousel": a.proxy(function (a) { 480 a.namespace && this._core.is("resizing") && this._core.$stage.find(".cloned .owl-video-frame").remove() 481 }, this), "changed.owl.carousel": a.proxy(function (a) { 482 a.namespace && "position" === a.property.name && this._playing && this.stop() 483 }, this), "prepared.owl.carousel": a.proxy(function (b) { 484 if (b.namespace) { 485 var c = a(b.content).find(".owl-video"); 486 c.length && (c.css("display", "none"), this.fetch(c, a(b.content))) 487 } 488 }, this) 489 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this._core.$element.on(this._handlers), this._core.$element.on("click.owl.video", ".owl-video-play-icon", a.proxy(function (a) { 490 this.play(a) 491 }, this)) 492 }; 493 e.Defaults = {video: !1, videoHeight: !1, videoWidth: !1}, e.prototype.fetch = function (a, b) { 494 var c = function () { 495 return a.attr("data-vimeo-id") ? "vimeo" : a.attr("data-vzaar-id") ? "vzaar" : "youtube" 496 }(), d = a.attr("data-vimeo-id") || a.attr("data-youtube-id") || a.attr("data-vzaar-id"), e = a.attr("data-width") || this._core.settings.videoWidth, f = a.attr("data-height") || this._core.settings.videoHeight, g = a.attr("href"); 497 if (!g)throw new Error("Missing video URL."); 498 if (d = g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/), d[3].indexOf("youtu") > -1)c = "youtube"; else if (d[3].indexOf("vimeo") > -1)c = "vimeo"; else { 499 if (!(d[3].indexOf("vzaar") > -1))throw new Error("Video URL not supported."); 500 c = "vzaar" 501 } 502 d = d[6], this._videos[g] = { 503 type: c, 504 id: d, 505 width: e, 506 height: f 507 }, b.attr("data-video", g), this.thumbnail(a, this._videos[g]) 508 }, e.prototype.thumbnail = function (b, c) { 509 var d, e, f, g = c.width && c.height ? 'style="width:' + c.width + "px;height:" + c.height + 'px;"' : "", h = b.find("img"), i = "src", j = "", k = this._core.settings, l = function (a) { 510 e = '<div class="owl-video-play-icon"></div>', d = k.lazyLoad ? '<div class="owl-video-tn ' + j + '" ' + i + '="' + a + '"></div>' : '<div class="owl-video-tn" style="opacity:1;background-image:url(' + a + ')"></div>', b.after(d), b.after(e) 511 }; 512 if (b.wrap('<div class="owl-video-wrapper"' + g + "></div>"), this._core.settings.lazyLoad && (i = "data-src", j = "owl-lazy"), h.length)return l(h.attr(i)), h.remove(), !1; 513 "youtube" === c.type ? (f = "//img.youtube.com/vi/" + c.id + "/hqdefault.jpg", l(f)) : "vimeo" === c.type ? a.ajax({ 514 type: "GET", 515 url: "//vimeo.com/api/v2/video/" + c.id + ".json", 516 jsonp: "callback", 517 dataType: "jsonp", 518 success: function (a) { 519 f = a[0].thumbnail_large, l(f) 520 } 521 }) : "vzaar" === c.type && a.ajax({ 522 type: "GET", 523 url: "//vzaar.com/api/videos/" + c.id + ".json", 524 jsonp: "callback", 525 dataType: "jsonp", 526 success: function (a) { 527 f = a.framegrab_url, l(f) 528 } 529 }) 530 }, e.prototype.stop = function () { 531 this._core.trigger("stop", null, "video"), this._playing.find(".owl-video-frame").remove(), this._playing.removeClass("owl-video-playing"), this._playing = null, this._core.leave("playing"), this._core.trigger("stopped", null, "video") 532 }, e.prototype.play = function (b) { 533 var c, d = a(b.target), e = d.closest("." + this._core.settings.itemClass), f = this._videos[e.attr("data-video")], g = f.width || "100%", h = f.height || this._core.$stage.height(); 534 this._playing || (this._core.enter("playing"), this._core.trigger("play", null, "video"), e = this._core.items(this._core.relative(e.index())), this._core.reset(e.index()), "youtube" === f.type ? c = '<iframe width="' + g + '" height="' + h + '" src="//www.youtube.com/embed/' + f.id + "?autoplay=1&rel=0&v=" + f.id + '" frameborder="0" allowfullscreen></iframe>' : "vimeo" === f.type ? c = '<iframe src="//player.vimeo.com/video/' + f.id + '?autoplay=1" width="' + g + '" height="' + h + '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>' : "vzaar" === f.type && (c = '<iframe frameborder="0"height="' + h + '"width="' + g + '" allowfullscreen mozallowfullscreen webkitAllowFullScreen src="//view.vzaar.com/' + f.id + '/player?autoplay=true"></iframe>'), a('<div class="owl-video-frame">' + c + "</div>").insertAfter(e.find(".owl-video")), this._playing = e.addClass("owl-video-playing")) 535 }, e.prototype.isInFullScreen = function () { 536 var b = c.fullscreenElement || c.mozFullScreenElement || c.webkitFullscreenElement; 537 return b && a(b).parent().hasClass("owl-video-frame") 538 }, e.prototype.destroy = function () { 539 var a, b; 540 this._core.$element.off("click.owl.video"); 541 for (a in this._handlers)this._core.$element.off(a, this._handlers[a]); 542 for (b in Object.getOwnPropertyNames(this))"function" != typeof this[b] && (this[b] = null) 543 }, a.fn.owlCarousel.Constructor.Plugins.Video = e 544}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 545 var e = function (b) { 546 this.core = b, this.core.options = a.extend({}, e.Defaults, this.core.options), this.swapping = !0, this.previous = d, this.next = d, this.handlers = { 547 "change.owl.carousel": a.proxy(function (a) { 548 a.namespace && "position" == a.property.name && (this.previous = this.core.current(), this.next = a.property.value) 549 }, this), "drag.owl.carousel dragged.owl.carousel translated.owl.carousel": a.proxy(function (a) { 550 a.namespace && (this.swapping = "translated" == a.type) 551 }, this), "translate.owl.carousel": a.proxy(function (a) { 552 a.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn) && this.swap() 553 }, this) 554 }, this.core.$element.on(this.handlers) 555 }; 556 e.Defaults = {animateOut: !1, animateIn: !1}, e.prototype.swap = function () { 557 if (1 === this.core.settings.items && a.support.animation && a.support.transition) { 558 this.core.speed(0); 559 var b, c = a.proxy(this.clear, this), d = this.core.$stage.children().eq(this.previous), e = this.core.$stage.children().eq(this.next), f = this.core.settings.animateIn, g = this.core.settings.animateOut; 560 this.core.current() !== this.previous && (g && (b = this.core.coordinates(this.previous) - this.core.coordinates(this.next), d.one(a.support.animation.end, c).css({left: b + "px"}).addClass("animated owl-animated-out").addClass(g)), f && e.one(a.support.animation.end, c).addClass("animated owl-animated-in").addClass(f)) 561 } 562 }, e.prototype.clear = function (b) { 563 a(b.target).css({left: ""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut), this.core.onTransitionEnd() 564 }, e.prototype.destroy = function () { 565 var a, b; 566 for (a in this.handlers)this.core.$element.off(a, this.handlers[a]); 567 for (b in Object.getOwnPropertyNames(this))"function" != typeof this[b] && (this[b] = null) 568 }, 569 a.fn.owlCarousel.Constructor.Plugins.Animate = e 570}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 571 var e = function (b) { 572 this._core = b, this._timeout = null, this._paused = !1, this._handlers = { 573 "changed.owl.carousel": a.proxy(function (a) { 574 a.namespace && "settings" === a.property.name ? this._core.settings.autoplay ? this.play() : this.stop() : a.namespace && "position" === a.property.name && this._core.settings.autoplay && this._setAutoPlayInterval() 575 }, this), "initialized.owl.carousel": a.proxy(function (a) { 576 a.namespace && this._core.settings.autoplay && this.play() 577 }, this), "play.owl.autoplay": a.proxy(function (a, b, c) { 578 a.namespace && this.play(b, c) 579 }, this), "stop.owl.autoplay": a.proxy(function (a) { 580 a.namespace && this.stop() 581 }, this), "mouseover.owl.autoplay": a.proxy(function () { 582 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() 583 }, this), "mouseleave.owl.autoplay": a.proxy(function () { 584 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.play() 585 }, this), "touchstart.owl.core": a.proxy(function () { 586 this._core.settings.autoplayHoverPause && this._core.is("rotating") && this.pause() 587 }, this), "touchend.owl.core": a.proxy(function () { 588 this._core.settings.autoplayHoverPause && this.play() 589 }, this) 590 }, this._core.$element.on(this._handlers), this._core.options = a.extend({}, e.Defaults, this._core.options) 591 }; 592 e.Defaults = { 593 autoplay: !1, 594 autoplayTimeout: 5e3, 595 autoplayHoverPause: !1, 596 autoplaySpeed: !1 597 }, e.prototype.play = function (a, b) { 598 this._paused = !1, this._core.is("rotating") || (this._core.enter("rotating"), this._setAutoPlayInterval()) 599 }, e.prototype._getNextTimeout = function (d, e) { 600 return this._timeout && b.clearTimeout(this._timeout), b.setTimeout(a.proxy(function () { 601 this._paused || this._core.is("busy") || this._core.is("interacting") || c.hidden || this._core.next(e || this._core.settings.autoplaySpeed) 602 }, this), d || this._core.settings.autoplayTimeout) 603 }, e.prototype._setAutoPlayInterval = function () { 604 this._timeout = this._getNextTimeout() 605 }, e.prototype.stop = function () { 606 this._core.is("rotating") && (b.clearTimeout(this._timeout), this._core.leave("rotating")) 607 }, e.prototype.pause = function () { 608 this._core.is("rotating") && (this._paused = !0) 609 }, e.prototype.destroy = function () { 610 var a, b; 611 this.stop(); 612 for (a in this._handlers)this._core.$element.off(a, this._handlers[a]); 613 for (b in Object.getOwnPropertyNames(this))"function" != typeof this[b] && (this[b] = null) 614 }, a.fn.owlCarousel.Constructor.Plugins.autoplay = e 615}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 616 "use strict"; 617 var e = function (b) { 618 this._core = b, this._initialized = !1, this._pages = [], this._controls = {}, this._templates = [], this.$element = this._core.$element, this._overrides = { 619 next: this._core.next, 620 prev: this._core.prev, 621 to: this._core.to 622 }, this._handlers = { 623 "prepared.owl.carousel": a.proxy(function (b) { 624 b.namespace && this._core.settings.dotsData && this._templates.push('<div class="' + this._core.settings.dotClass + '">' + a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot") + "</div>") 625 }, this), "added.owl.carousel": a.proxy(function (a) { 626 a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 0, this._templates.pop()) 627 }, this), "remove.owl.carousel": a.proxy(function (a) { 628 a.namespace && this._core.settings.dotsData && this._templates.splice(a.position, 1) 629 }, this), "changed.owl.carousel": a.proxy(function (a) { 630 a.namespace && "position" == a.property.name && this.draw() 631 }, this), "initialized.owl.carousel": a.proxy(function (a) { 632 a.namespace && !this._initialized && (this._core.trigger("initialize", null, "navigation"), this.initialize(), this.update(), this.draw(), this._initialized = !0, this._core.trigger("initialized", null, "navigation")) 633 }, this), "refreshed.owl.carousel": a.proxy(function (a) { 634 a.namespace && this._initialized && (this._core.trigger("refresh", null, "navigation"), this.update(), this.draw(), this._core.trigger("refreshed", null, "navigation")) 635 }, this) 636 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers) 637 }; 638 e.Defaults = { 639 nav: !1, 640 navText: ["prev", "next"], 641 navSpeed: !1, 642 navElement: "div", 643 navContainer: !1, 644 navContainerClass: "owl-nav", 645 navClass: ["owl-prev", "owl-next"], 646 slideBy: 1, 647 dotClass: "owl-dot", 648 dotsClass: "owl-dots", 649 dots: !0, 650 dotsEach: !1, 651 dotsData: !1, 652 dotsSpeed: !1, 653 dotsContainer: !1 654 }, e.prototype.initialize = function () { 655 var b, c = this._core.settings; 656 this._controls.$relative = (c.navContainer ? a(c.navContainer) : a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"), this._controls.$previous = a("<" + c.navElement + ">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click", a.proxy(function (a) { 657 this.prev(c.navSpeed) 658 }, this)), this._controls.$next = a("<" + c.navElement + ">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click", a.proxy(function (a) { 659 this.next(c.navSpeed) 660 }, this)), c.dotsData || (this._templates = [a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]), this._controls.$absolute = (c.dotsContainer ? a(c.dotsContainer) : a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"), this._controls.$absolute.on("click", "div", a.proxy(function (b) { 661 var d = a(b.target).parent().is(this._controls.$absolute) ? a(b.target).index() : a(b.target).parent().index(); 662 b.preventDefault(), this.to(d, c.dotsSpeed) 663 }, this)); 664 for (b in this._overrides)this._core[b] = a.proxy(this[b], this) 665 }, e.prototype.destroy = function () { 666 var a, b, c, d; 667 for (a in this._handlers)this.$element.off(a, this._handlers[a]); 668 for (b in this._controls)this._controls[b].remove(); 669 for (d in this.overides)this._core[d] = this._overrides[d]; 670 for (c in Object.getOwnPropertyNames(this))"function" != typeof this[c] && (this[c] = null) 671 }, e.prototype.update = function () { 672 var a, b, c, d = this._core.clones().length / 2, e = d + this._core.items().length, f = this._core.maximum(!0), g = this._core.settings, h = g.center || g.autoWidth || g.dotsData ? 1 : g.dotsEach || g.items; 673 if ("page" !== g.slideBy && (g.slideBy = Math.min(g.slideBy, g.items)), g.dots || "page" == g.slideBy)for (this._pages = [], a = d, b = 0, c = 0; a < e; a++) { 674 if (b >= h || 0 === b) { 675 if (this._pages.push({start: Math.min(f, a - d), end: a - d + h - 1}), Math.min(f, a - d) === f)break; 676 b = 0, ++c 677 } 678 b += this._core.mergers(this._core.relative(a)) 679 } 680 }, e.prototype.draw = function () { 681 var b, c = this._core.settings, d = this._core.items().length <= c.items, e = this._core.relative(this._core.current()), f = c.loop || c.rewind; 682 this._controls.$relative.toggleClass("disabled", !c.nav || d), c.nav && (this._controls.$previous.toggleClass("disabled", !f && e <= this._core.minimum(!0)), this._controls.$next.toggleClass("disabled", !f && e >= this._core.maximum(!0))), this._controls.$absolute.toggleClass("disabled", !c.dots || d), c.dots && (b = this._pages.length - this._controls.$absolute.children().length, c.dotsData && 0 !== b ? this._controls.$absolute.html(this._templates.join("")) : b > 0 ? this._controls.$absolute.append(new Array(b + 1).join(this._templates[0])) : b < 0 && this._controls.$absolute.children().slice(b).remove(), this._controls.$absolute.find(".active").removeClass("active"), this._controls.$absolute.children().eq(a.inArray(this.current(), this._pages)).addClass("active")) 683 }, e.prototype.onTrigger = function (b) { 684 var c = this._core.settings; 685 b.page = { 686 index: a.inArray(this.current(), this._pages), 687 count: this._pages.length, 688 size: c && (c.center || c.autoWidth || c.dotsData ? 1 : c.dotsEach || c.items) 689 } 690 }, e.prototype.current = function () { 691 var b = this._core.relative(this._core.current()); 692 return a.grep(this._pages, a.proxy(function (a, c) { 693 return a.start <= b && a.end >= b 694 }, this)).pop() 695 }, e.prototype.getPosition = function (b) { 696 var c, d, e = this._core.settings; 697 return "page" == e.slideBy ? (c = a.inArray(this.current(), this._pages), d = this._pages.length, b ? ++c : --c, c = this._pages[(c % d + d) % d].start) : (c = this._core.relative(this._core.current()), d = this._core.items().length, b ? c += e.
vendor: 4,334 bytes, lines 697-779
697slideBy : c -= e.slideBy), c 698 }, e.prototype.next = function (b) { 699 a.proxy(this._overrides.to, this._core)(this.getPosition(!0), b) 700 }, e.prototype.prev = function (b) { 701 a.proxy(this._overrides.to, this._core)(this.getPosition(!1), b) 702 }, e.prototype.to = function (b, c, d) { 703 var e; 704 !d && this._pages.length ? (e = this._pages.length, a.proxy(this._overrides.to, this._core)(this._pages[(b % e + e) % e].start, c)) : a.proxy(this._overrides.to, this._core)(b, c) 705 }, a.fn.owlCarousel.Constructor.Plugins.Navigation = e 706}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 707 "use strict"; 708 var e = function (c) { 709 this._core = c, this._hashes = {}, this.$element = this._core.$element, this._handlers = { 710 "initialized.owl.carousel": a.proxy(function (c) { 711 c.namespace && "URLHash" === this._core.settings.startPosition && a(b).trigger("hashchange.owl.navigation") 712 }, this), "prepared.owl.carousel": a.proxy(function (b) { 713 if (b.namespace) { 714 var c = a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash"); 715 if (!c)return; 716 this._hashes[c] = b.content 717 } 718 }, this), "changed.owl.carousel": a.proxy(function (c) { 719 if (c.namespace && "position" === c.property.name) { 720 var d = this._core.items(this._core.relative(this._core.current())), e = a.map(this._hashes, function (a, b) { 721 return a === d ? b : null 722 }).join(); 723 if (!e || b.location.hash.slice(1) === e)return; 724 b.location.hash = e 725 } 726 }, this) 727 }, this._core.options = a.extend({}, e.Defaults, this._core.options), this.$element.on(this._handlers), a(b).on("hashchange.owl.navigation", a.proxy(function (a) { 728 var c = b.location.hash.substring(1), e = this._core.$stage.children(), f = this._hashes[c] && e.index(this._hashes[c]); 729 f !== d && f !== this._core.current() && this._core.to(this._core.relative(f), !1, !0) 730 }, this)) 731 }; 732 e.Defaults = {URLhashListener: !1}, e.prototype.destroy = function () { 733 var c, d; 734 a(b).off("hashchange.owl.navigation"); 735 for (c in this._handlers)this._core.$element.off(c, this._handlers[c]); 736 for (d in Object.getOwnPropertyNames(this))"function" != typeof this[d] && (this[d] = null) 737 }, a.fn.owlCarousel.Constructor.Plugins.Hash = e 738}(window.Zepto || window.jQuery, window, document), function (a, b, c, d) { 739 function e(b, c) { 740 var e = !1, f = b.charAt(0).toUpperCase() + b.slice(1); 741 return a.each((b + " " + h.join(f + " ") + f).split(" "), function (a, b) { 742 if (g[b] !== d)return e = !c || b, !1 743 }), e 744 } 745 746 function f(a) { 747 return e(a, !0) 748 } 749 750 var g = a("<support>").get(0).style, h = "Webkit Moz O ms".split(" "), i = { 751 transition: { 752 end: { 753 WebkitTransition: "webkitTransitionEnd", 754 MozTransition: "transitionend", 755 OTransition: "oTransitionEnd", 756 transition: "transitionend" 757 } 758 }, 759 animation: { 760 end: { 761 WebkitAnimation: "webkitAnimationEnd", 762 MozAnimation: "animationend", 763 OAnimation: "oAnimationEnd", 764 animation: "animationend" 765 } 766 } 767 }, j = { 768 csstransforms: function () { 769 return !!e("transform") 770 }, csstransforms3d: function () { 771 return !!e("perspective") 772 }, csstransitions: function () { 773 return !!e("transition") 774 }, cssanimations: function () { 775 return !!e("animation") 776 } 777 }; 778 j.csstransitions() && (a.support.transition = new String(f("transition")), a.support.transition.end = i.transition.end[a.support.transition]), j.cssanimations() && (a.support.animation = new String(f("animation")), a.support.animation.end = i.animation.end[a.support.animation]), j.csstransforms() && (a.support.transform = new String(f("transform")), a.support.transform3d = j.csstransforms3d()) 779}(window.Zepto || window.jQuery, window, document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.