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