vendor: 64,393 bytes, lines 1-1197
1!function (t, e) { 2 "object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.bulmaCarousel = e() : t.bulmaCarousel = e() 3}("undefined" != typeof self ? self : this, function () { 4 return function (i) { 5 var n = {}; 6 7 function s(t) { 8 if (n[t]) return n[t].exports; 9 var e = n[t] = {i: t, l: !1, exports: {}}; 10 return i[t].call(e.exports, e, e.exports, s), e.l = !0, e.exports 11 } 12 13 return s.m = i, s.c = n, s.d = function (t, e, i) { 14 s.o(t, e) || Object.defineProperty(t, e, {configurable: !1, enumerable: !0, get: i}) 15 }, s.n = function (t) { 16 var e = t && t.__esModule ? function () { 17 return t.default 18 } : function () { 19 return t 20 }; 21 return s.d(e, "a", e), e 22 }, s.o = function (t, e) { 23 return Object.prototype.hasOwnProperty.call(t, e) 24 }, s.p = "", s(s.s = 5) 25 }([function (t, e, i) { 26 "use strict"; 27 i.d(e, "d", function () { 28 return s 29 }), i.d(e, "e", function () { 30 return r 31 }), i.d(e, "b", function () { 32 return o 33 }), i.d(e, "c", function () { 34 return a 35 }), i.d(e, "a", function () { 36 return l 37 }); 38 var n = i(2), s = function (e, t) { 39 (t = Array.isArray(t) ? t : t.split(" ")).forEach(function (t) { 40 e.classList.remove(t) 41 }) 42 }, r = function (t) { 43 return t.getBoundingClientRect().width || t.offsetWidth 44 }, o = function (t) { 45 return t.getBoundingClientRect().height || t.offsetHeight 46 }, a = function (t) { 47 var e = 1 < arguments.length && void 0 !== arguments[1] && arguments[1], i = t.offsetHeight; 48 if (e) { 49 var n = window.getComputedStyle(t); 50 i += parseInt(n.marginTop) + parseInt(n.marginBottom) 51 } 52 return i 53 }, l = function (t, e) { 54 if (!e) return window.getComputedStyle(t); 55 if (Object(n.b)(e)) { 56 var i = ""; 57 Object.keys(e).forEach(function (t) { 58 i += t + ": " + e[t] + ";" 59 }), t.style.cssText += i 60 } 61 } 62 }, function (t, e, i) { 63 "use strict"; 64 e.a = function () { 65 var t = !1; 66 try { 67 var e = Object.defineProperty({}, "passive", { 68 get: function () { 69 t = !0 70 } 71 }); 72 window.addEventListener("testPassive", null, e), window.removeEventListener("testPassive", null, e) 73 } catch (t) { 74 } 75 return t 76 } 77 }, function (t, e, i) { 78 "use strict"; 79 i.d(e, "a", function () { 80 return s 81 }), i.d(e, "c", function () { 82 return r 83 }), i.d(e, "b", function () { 84 return o 85 }); 86 var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) { 87 return typeof t 88 } : function (t) { 89 return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t 90 }, s = function (t) { 91 return "function" == typeof t 92 }, r = function (t) { 93 return "string" == typeof t || !!t && "object" === (void 0 === t ? "undefined" : n(t)) && "[object String]" === Object.prototype.toString.call(t) 94 }, o = function (t) { 95 return ("function" == typeof t || "object" === (void 0 === t ? "undefined" : n(t)) && !!t) && !Array.isArray(t) 96 } 97 }, function (t, e, i) { 98 "use strict"; 99 var n = function () { 100 function n(t, e) { 101 for (var i = 0; i < e.length; i++) { 102 var n = e[i]; 103 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 104 } 105 } 106 107 return function (t, e, i) { 108 return e && n(t.prototype, e), i && n(t, i), t 109 } 110 }(); 111 var s = function () { 112 function e() { 113 var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : []; 114 !function (t, e) { 115 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 116 }(this, e), this.events = new Map(t) 117 } 118 119 return n(e, [{ 120 key: "on", value: function (t, e) { 121 var i = this; 122 return this.events.set(t, [].concat(function (t) { 123 if (Array.isArray(t)) { 124 for (var e = 0, i = Array(t.length); e < t.length; e++) i[e] = t[e]; 125 return i 126 } 127 return Array.from(t) 128 }(this.events.has(t) ? this.events.get(t) : []), [e])), function () { 129 return i.events.set(t, i.events.get(t).filter(function (t) { 130 return t !== e 131 })) 132 } 133 } 134 }, { 135 key: "emit", value: function (t) { 136 for (var e = arguments.length, i = Array(1 < e ? e - 1 : 0), n = 1; n < e; n++) i[n - 1] = arguments[n]; 137 return this.events.has(t) && this.events.get(t).map(function (t) { 138 return t.apply(void 0, i) 139 }) 140 } 141 }]), e 142 }(); 143 e.a = s 144 }, function (t, e, i) { 145 "use strict"; 146 var n = function () { 147 function n(t, e) { 148 for (var i = 0; i < e.length; i++) { 149 var n = e[i]; 150 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 151 } 152 } 153 154 return function (t, e, i) { 155 return e && n(t.prototype, e), i && n(t, i), t 156 } 157 }(); 158 var s = function () { 159 function s() { 160 var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : 0, 161 e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 0; 162 !function (t, e) { 163 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 164 }(this, s), this._x = t, this._y = e 165 } 166 167 return n(s, [{ 168 key: "add", value: function (t) { 169 return new s(this._x + t._x, this._y + t._y) 170 } 171 }, { 172 key: "sub", value: function (t) { 173 return new s(this._x - t._x, this._y - t._y) 174 } 175 }, { 176 key: "distance", value: function (t) { 177 var e = this._x - t._x, i = this._y - t._y; 178 return Math.sqrt(Math.pow(e, 2) + Math.pow(i, 2)) 179 } 180 }, { 181 key: "max", value: function (t) { 182 return new s(Math.max(this._x, t._x), Math.max(this._y, t._y)) 183 } 184 }, { 185 key: "equals", value: function (t) { 186 return this == t || !(!t || null == t) && (this._x == t._x && this._y == t._y) 187 } 188 }, { 189 key: "inside", value: function (t, e) { 190 return this._x >= t._x && this._x <= e._x && this._y >= t._y && this._y <= e._y 191 } 192 }, { 193 key: "constrain", value: function (t, e) { 194 if (t._x > e._x || t._y > e._y) return this; 195 var i = this._x, n = this._y; 196 return null !== t._x && (i = Math.max(i, t._x)), null !== e._x && (i = Math.min(i, e._x)), null !== t._y && (n = Math.max(n, t._y)), null !== e._y && (n = Math.min(n, e._y)), new s(i, n) 197 } 198 }, { 199 key: "reposition", value: function (t) { 200 t.style.top = this._y + "px", t.style.left = this._x + "px" 201 } 202 }, { 203 key: "toString", value: function () { 204 return "(" + this._x + "," + this._y + ")" 205 } 206 }, { 207 key: "x", get: function () { 208 return this._x 209 }, set: function () { 210 var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : 0; 211 return this._x = t, this 212 } 213 }, { 214 key: "y", get: function () { 215 return this._y 216 }, set: function () { 217 var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : 0; 218 return this._y = t, this 219 } 220 }]), s 221 }(); 222 e.a = s 223 }, function (t, e, i) { 224 "use strict"; 225 Object.defineProperty(e, "__esModule", {value: !0}); 226 var n = i(6), s = i(0), a = i(2), r = i(3), l = i(7), h = i(9), u = i(10), d = i(11), c = i(13), f = i(15), 227 p = i(18), v = i(19), y = i(22), _ = i(23), g = i(24), b = Object.assign || function (t) { 228 for (var e = 1; e < arguments.length; e++) { 229 var i = arguments[e]; 230 for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]) 231 } 232 return t 233 }, w = function () { 234 function n(t, e) { 235 for (var i = 0; i < e.length; i++) { 236 var n = e[i]; 237 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 238 } 239 } 240 241 return function (t, e, i) { 242 return e && n(t.prototype, e), i && n(t, i), t 243 } 244 }(); 245 var o = function (t) { 246 function o(t) { 247 var e = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}; 248 !function (t, e) { 249 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 250 }(this, o); 251 var r = function (t, e) { 252 if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 253 return !e || "object" != typeof e && "function" != typeof e ? t : e 254 }(this, (o.__proto__ || Object.getPrototypeOf(o)).call(this)); 255 if (r.element = Object(a.c)(t) ? document.querySelector(t) : t, !r.element) throw new Error("An invalid selector or non-DOM node has been provided."); 256 r._clickEvents = ["click", "touch"]; 257 var i = r.element.dataset ? Object.keys(r.element.dataset).filter(function (t) { 258 return Object.keys(y.a).includes(t) 259 }).reduce(function (t, e) { 260 return b({}, t, (i = {}, n = e, s = r.element.dataset[e], n in i ? Object.defineProperty(i, n, { 261 value: s, 262 enumerable: !0, 263 configurable: !0, 264 writable: !0 265 }) : i[n] = s, i)); 266 var i, n, s 267 }, {}) : {}; 268 return r.options = b({}, y.a, e, i), r._id = Object(n.a)("slider"), r.onShow = r.onShow.bind(r), r._init(), r 269 } 270 271 return function (t, e) { 272 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); 273 t.prototype = Object.create(e && e.prototype, { 274 constructor: { 275 value: t, 276 enumerable: !1, 277 writable: !0, 278 configurable: !0 279 } 280 }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) 281 }(o, r["a"]), w(o, [{ 282 key: "_init", value: function () { 283 return this._items = Array.from(this.element.children), this._breakpoint = new h.a(this), this._autoplay = new l.a(this), this._navigation = new c.a(this), this._pagination = new f.a(this), this._infinite = new u.a(this), this._loop = new d.a(this), this._swipe = new p.a(this), this._build(), Object(a.a)(this.options.onReady) && this.options.onReady(this), this 284 } 285 }, { 286 key: "_build", value: function () { 287 var i = this; 288 this.node = document.createRange().createContextualFragment(Object(_.a)(this.id)), this._ui = { 289 wrapper: this.node.firstChild, 290 container: this.node.querySelector(".slider-container") 291 }, this.element.appendChild(this.node), this._ui.wrapper.classList.add("is-loading"), this._ui.container.style.opacity = 0, this._transitioner = new v.a(this), this._slides = this._items.map(function (t, e) { 292 return i._createSlide(t, e) 293 }), this.reset(), this._bindEvents(), this._ui.container.style.opacity = 1, this._ui.wrapper.classList.remove("is-loading") 294 } 295 }, { 296 key: "_bindEvents", value: function () { 297 this.on("show", this.onShow) 298 } 299 }, { 300 key: "_unbindEvents", value: function () { 301 this.off("show", this.onShow) 302 } 303 }, { 304 key: "_createSlide", value: function (t, e) { 305 var i = document.createRange().createContextualFragment(Object(g.a)()).firstChild; 306 return i.dataset.sliderIndex = e, i.appendChild(t), i 307 } 308 }, { 309 key: "_setDimensions", value: function () { 310 var e = this; 311 this.options.vertical ? (this._ui.wrapper.style.height = Object(s.c)(this._slides[0]) * this.slidesToShow, this.options.centerMode && (this._ui.wrapper.style.padding = this.options.centerPadding + " 0px")) : this.options.centerMode && (this._ui.wrapper.style.padding = "0px " + this.options.centerPadding), this._wrapperWidth = Object(s.e)(this._ui.wrapper), this._wrapperHeight = Object(s.c)(this._ui.wrapper), this.options.vertical ? (this._slideWidth = Math.ceil(this._wrapperWidth), this._containerHeight = Math.ceil(Object(s.c)(this._slides[0]) * this._slides.length), this._ui.container.style.height = this._containerHeight + "px") : (this._slideWidth = Math.ceil(this._wrapperWidth / this.slidesToShow), this._containerWidth = Math.ceil(this._slideWidth * this._slides.length), this._ui.container.style.width = this._containerWidth + "px"), this._slides.forEach(function (t) { 312 t.style.width = e._slideWidth + "px" 313 }) 314 } 315 }, { 316 key: "_setHeight", value: function () { 317 "translate" !== this.options.effect && (this._ui.container.style.height = Object(s.c)(this._slides[this.state.index]) + "px") 318 } 319 }, { 320 key: "_setClasses", value: function () { 321 var e = this; 322 this._slides.forEach(function (t) { 323 Object(s.d)(t, "is-active is-current is-slide-previous is-slide-next"), Math.abs((e.state.index - 1) % e.state.length) === parseInt(t.dataset.sliderIndex, 10) && t.classList.add("is-slide-previous"), Math.abs(e.state.index % e.state.length) === parseInt(t.dataset.sliderIndex, 10) && t.classList.add("is-current"), Math.abs((e.state.index + 1) % e.state.length) === parseInt(t.dataset.sliderIndex, 10) && t.classList.add("is-slide-next") 324 }) 325 } 326 }, { 327 key: "onShow", value: function (t) { 328 this._navigation.refresh(), this._pagination.refresh(), this._setClasses() 329 } 330 }, { 331 key: "next", value: function () { 332 !this.options.loop && !this.options.infinite && this.state.index + this.slidesToScroll > this.state.length - this.slidesToShow && !this.options.centerMode ? this.state.next = this.state.index : this.state.next = this.state.index + this.slidesToScroll, this.show() 333 } 334 }, { 335 key: "previous", value: function () { 336 this.options.loop || this.options.infinite || 0 !== this.state.index ? this.state.next = this.state.index - this.slidesToScroll : this.state.next = this.state.index, this.show() 337 } 338 }, { 339 key: "start", value: function () { 340 this._autoplay.start() 341 } 342 }, { 343 key: "pause", value: function () { 344 this._autoplay.pause() 345 } 346 }, { 347 key: "stop", value: function () { 348 this._autoplay.stop() 349 } 350 }, { 351 key: "show", value: function (t) { 352 var e = 1 < arguments.length && void 0 !== arguments[1] && arguments[1]; 353 !this.state.length || this.state.length <= this.slidesToShow || ("Number" == typeof t && (this.state.next = t), this.options.loop && this._loop.apply(), this.options.infinite && this._infinite.apply(), this.state.index !== this.state.next && (this.emit("before:show", this.state), this._transitioner.apply(e, this._setHeight.bind(this)), this.emit("after:show", this.state), this.emit("show", this))) 354 } 355 }, { 356 key: "reset", value: function () { 357 var e = this; 358 this.state = { 359 length: this._items.length, 360 index: Math.abs(this.options.initialSlide), 361 next: Math.abs(this.options.initialSlide), 362 prev: void 0 363 }, this.options.loop && this.options.infinite && (this.options.loop = !1), this.options.slidesToScroll > this.options.slidesToShow && (this.options.slidesToScroll = this.slidesToShow), this._breakpoint.init(), this.state.index >= this.state.length && 0 !== this.state.index && (this.state.index = this.state.index - this.slidesToScroll), this.state.length <= this.slidesToShow && (this.state.index = 0), this._ui.wrapper.appendChild(this._navigation.init().render()), this._ui.wrapper.appendChild(this._pagination.init().render()), this.options.navigationSwipe ? this._swipe.bindEvents() : this._swipe._bindEvents(), this._breakpoint.apply(), this._slides.forEach(function (t) { 364 return e._ui.container.appendChild(t) 365 }), this._transitioner.init().apply(!0, this._setHeight.bind(this)), this.options.autoplay && this._autoplay.init().start() 366 } 367 }, { 368 key: "destroy", value: function () { 369 var e = this; 370 this._unbindEvents(), this._items.forEach(function (t) { 371 e.element.appendChild(t) 372 }), this.node.remove() 373 } 374 }, { 375 key: "id", get: function () { 376 return this._id 377 } 378 }, { 379 key: "index", set: function (t) { 380 this._index = t 381 }, get: function () { 382 return this._index 383 } 384 }, { 385 key: "length", set: function (t) { 386 this._length = t 387 }, get: function () { 388 return this._length 389 } 390 }, { 391 key: "slides", get: function () { 392 return this._slides 393 }, set: function (t) { 394 this._slides = t 395 } 396 }, { 397 key: "slidesToScroll", get: function () { 398 return "translate" === this.options.effect ? this._breakpoint.getSlidesToScroll() : 1 399 } 400 }, { 401 key: "slidesToShow", get: function () { 402 return "translate" === this.options.effect ? this._breakpoint.getSlidesToShow() : 1 403 } 404 }, { 405 key: "direction", get: function () { 406 return "rtl" === this.element.dir.toLowerCase() || "rtl" === this.element.style.direction ? "rtl" : "ltr" 407 } 408 }, { 409 key: "wrapper", get: function () { 410 return this._ui.wrapper 411 } 412 }, { 413 key: "wrapperWidth", get: function () { 414 return this._wrapperWidth || 0 415 } 416 }, { 417 key: "container", get: function () { 418 return this._ui.container 419 } 420 }, { 421 key: "containerWidth", get: function () { 422 return this._containerWidth || 0 423 } 424 }, { 425 key: "slideWidth", get: function () { 426 return this._slideWidth || 0 427 } 428 }, { 429 key: "transitioner", get: function () { 430 return this._transitioner 431 } 432 }], [{ 433 key: "attach", value: function () { 434 var i = this, t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : ".slider", 435 n = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {}, s = new Array, 436 e = Object(a.c)(t) ? document.querySelectorAll(t) : Array.isArray(t) ? t : [t]; 437 return [].forEach.call(e, function (t) { 438 if (void 0 === t[i.constructor.name]) { 439 var e = new o(t, n); 440 t[i.constructor.name] = e, s.push(e) 441 } else s.push(t[i.constructor.name]) 442 }), s 443 } 444 }]), o 445 }(); 446 e.default = o 447 }, function (t, e, i) { 448 "use strict"; 449 i.d(e, "a", function () { 450 return n 451 }); 452 var n = function () { 453 return (0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : "") + ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, function (t) { 454 return (t ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> t / 4).toString(16) 455 }) 456 } 457 }, function (t, e, i) { 458 "use strict"; 459 var n = i(3), s = i(8), r = function () { 460 function n(t, e) { 461 for (var i = 0; i < e.length; i++) { 462 var n = e[i]; 463 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 464 } 465 } 466 467 return function (t, e, i) { 468 return e && n(t.prototype, e), i && n(t, i), t 469 } 470 }(); 471 Symbol("onVisibilityChange"), Symbol("onMouseEnter"), Symbol("onMouseLeave"); 472 var o = function (t) { 473 function i(t) { 474 !function (t, e) { 475 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 476 }(this, i); 477 var e = function (t, e) { 478 if (!t) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 479 return !e || "object" != typeof e && "function" != typeof e ? t : e 480 }(this, (i.__proto__ || Object.getPrototypeOf(i)).call(this)); 481 return e.slider = t, e.onVisibilityChange = e.onVisibilityChange.bind(e), e.onMouseEnter = e.onMouseEnter.bind(e), e.onMouseLeave = e.onMouseLeave.bind(e), e 482 } 483 484 return function (t, e) { 485 if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function, not " + typeof e); 486 t.prototype = Object.create(e && e.prototype, { 487 constructor: { 488 value: t, 489 enumerable: !1, 490 writable: !0, 491 configurable: !0 492 } 493 }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) 494 }(i, n["a"]), r(i, [{ 495 key: "init", value: function () { 496 return this._bindEvents(), this 497 } 498 }, { 499 key: "_bindEvents", value: function () { 500 document.addEventListener("visibilitychange", this.onVisibilityChange), this.slider.options.pauseOnHover && (this.slider.container.addEventListener(s.a, this.onMouseEnter), this.slider.container.addEventListener(s.b, this.onMouseLeave)) 501 } 502 }, { 503 key: "_unbindEvents", value: function () { 504 document.removeEventListener("visibilitychange", this.onVisibilityChange), this.slider.container.removeEventListener(s.a, this.onMouseEnter), this.slider.container.removeEventListener(s.b, this.onMouseLeave) 505 } 506 }, { 507 key: "start", value: function () { 508 var t = this; 509 this.stop(), this.slider.options.autoplay && (this.emit("start", this), this._interval = setInterval(function () { 510 t._hovering && t.slider.options.pauseOnHover || (!t.slider.options.centerMode && t.slider.state.next >= t.slider.state.length - t.slider.slidesToShow && !t.slider.options.loop && !t.slider.options.infinite ? t.stop() : t.slider.next()) 511 }, this.slider.options.autoplaySpeed)) 512 } 513 }, { 514 key: "stop", value: function () { 515 this._interval = clearInterval(this._interval), this.emit("stop", this) 516 } 517 }, { 518 key: "pause", value: function () { 519 var t = this, e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : 0; 520 this.paused || (this.timer && this.stop(), this.paused = !0, 0 === e ? (this.paused = !1, this.start()) : this.slider.on("transition:end", function () { 521 t && (t.paused = !1, t.run ? t.start() : t.stop()) 522 })) 523 } 524 }, { 525 key: "onVisibilityChange", value: function (t) { 526 document.hidden ? this.stop() : this.start() 527 } 528 }, { 529 key: "onMouseEnter", value: function (t) { 530 this._hovering = !0, this.slider.options.pauseOnHover && this.pause() 531 } 532 }, { 533 key: "onMouseLeave", value: function (t) { 534 this._hovering = !1, this.slider.options.pauseOnHover && this.pause() 535 } 536 }]), i 537 }(); 538 e.a = o 539 }, function (t, e, i) { 540 "use strict"; 541 i.d(e, "a", function () { 542 return o 543 }), i.d(e, "b", function () { 544 return a 545 }); 546 window.navigator.pointerEnabled || window.navigator.msPointerEnabled, window.navigator.msPointerEnabled && 1 < window.navigator.msMaxTouchPoints || window.navigator.pointerEnabled && window.navigator.maxTouchPoints, navigator.userAgent.match(/(Android);?[\s\/]+([\d.]+)?/), navigator.userAgent.match(/(iPad).*OS\s([\d_]+)/), navigator.userAgent.match(/(iPod)(.*OS\s([\d_]+))?/), !navigator.userAgent.match(/(iPad).*OS\s([\d_]+)/) && navigator.userAgent.match(/(iPhone\sOS)\s([\d_]+)/), 0 <= navigator.userAgent.toLowerCase().indexOf("safari") && navigator.userAgent.toLowerCase().indexOf("chrome") < 0 && navigator.userAgent.toLowerCase().indexOf("android"), /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent); 547 var n = !!("ontouchstart" in window), s = !!("PointerEvent" in window), 548 r = n || window.DocumentTouch && document instanceof DocumentTouch || navigator.maxTouchPoints, 549 o = r && s ? "pointerenter" : "mouseenter", a = r && s ? "pointerleave" : "mouseleave" 550 }, function (t, e, i) { 551 "use strict"; 552 var n = function () { 553 function n(t, e) { 554 for (var i = 0; i < e.length; i++) { 555 var n = e[i]; 556 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 557 } 558 } 559 560 return function (t, e, i) { 561 return e && n(t.prototype, e), i && n(t, i), t 562 } 563 }(); 564 var s = Symbol("onResize"), r = function () { 565 function e(t) { 566 !function (t, e) { 567 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 568 }(this, e), this.slider = t, this.options = t.options, this[s] = this[s].bind(this), this._bindEvents() 569 } 570 571 return n(e, [{ 572 key: "init", value: function () { 573 return this._defaultBreakpoint = { 574 slidesToShow: this.options.slidesToShow, 575 slidesToScroll: this.options.slidesToScroll 576 }, this.options.breakpoints.sort(function (t, e) { 577 return parseInt(t.changePoint, 10) > parseInt(e.changePoint, 10) 578 }), this._currentBreakpoint = this._getActiveBreakpoint(), this 579 } 580 }, { 581 key: "destroy", value: function () { 582 this._unbindEvents() 583 } 584 }, { 585 key: "_bindEvents", value: function () { 586 window.addEventListener("resize", this[s]), window.addEventListener("orientationchange", this[s]) 587 } 588 }, { 589 key: "_unbindEvents", value: function () { 590 window.removeEventListener("resize", this[s]), window.removeEventListener("orientationchange", this[s]) 591 } 592 }, { 593 key: "_getActiveBreakpoint", value: function () { 594 var t = !0, e = !1, i = void 0; 595 try { 596 for (var n, s = this.options.breakpoints[Symbol.iterator](); !(t = (n = s.next()).done); t = !0) { 597 var r = n.value; 598 if (r.changePoint >= window.innerWidth) return r 599 } 600 } catch (t) { 601 e = !0, i = t 602 } finally { 603 try { 604 !t && s.return && s.return() 605 } finally { 606 if (e) throw i 607 } 608 } 609 return this._defaultBreakpoint 610 } 611 }, { 612 key: "getSlidesToShow", value: function () { 613 return this._currentBreakpoint ? this._currentBreakpoint.slidesToShow : this._defaultBreakpoint.slidesToShow 614 } 615 }, { 616 key: "getSlidesToScroll", value: function () { 617 return this._currentBreakpoint ? this._currentBreakpoint.slidesToScroll : this._defaultBreakpoint.slidesToScroll 618 } 619 }, { 620 key: "apply", value: function () { 621 this.slider.state.index >= this.slider.state.length && 0 !== this.slider.state.index && (this.slider.state.index = this.slider.state.index - this._currentBreakpoint.slidesToScroll), this.slider.state.length <= this._currentBreakpoint.slidesToShow && (this.slider.state.index = 0), this.options.loop && this.slider._loop.init().apply(), this.options.infinite && this.slider._infinite.init().apply(), this.slider._setDimensions(), this.slider._transitioner.init().apply(!0, this.slider._setHeight.bind(this.slider)), this.slider._setClasses(), this.slider._navigation.refresh(), this.slider._pagination.refresh() 622 } 623 }, { 624 key: s, value: function (t) { 625 var e = this._getActiveBreakpoint(); 626 e.slidesToShow !== this._currentBreakpoint.slidesToShow && (this._currentBreakpoint = e, this.apply()) 627 } 628 }]), e 629 }(); 630 e.a = r 631 }, function (t, e, i) { 632 "use strict"; 633 var n = function () { 634 function n(t, e) { 635 for (var i = 0; i < e.length; i++) { 636 var n = e[i]; 637 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 638 } 639 } 640 641 return function (t, e, i) { 642 return e && n(t.prototype, e), i && n(t, i), t 643 } 644 }(); 645 var s = function () { 646 function e(t) { 647 !function (t, e) { 648 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 649 }(this, e), this.slider = t 650 } 651 652 return n(e, [{ 653 key: "init", value: function () { 654 if (this.slider.options.infinite && "translate" === this.slider.options.effect) { 655 this.slider.options.centerMode ? this._infiniteCount = Math.ceil(this.slider.slidesToShow + this.slider.slidesToShow / 2) : this._infiniteCount = this.slider.slidesToShow; 656 for (var t = [], e = 0, i = this.slider.state.length; i > this.slider.state.length - 1 - this._infiniteCount; i -= 1) e = i - 1, t.unshift(this._cloneSlide(this.slider.slides[e], e - this.slider.state.length)); 657 for (var n = [], s = 0; s < this._infiniteCount + this.slider.state.length; s += 1) n.push(this._cloneSlide(this.slider.slides[s % this.slider.state.length], s + this.slider.state.length)); 658 this.slider.slides = [].concat(t, function (t) { 659 if (Array.isArray(t)) { 660 for (var e = 0, i = Array(t.length); e < t.length; e++) i[e] = t[e]; 661 return i 662 } 663 return Array.from(t) 664 }(this.slider.slides), n) 665 } 666 return this 667 } 668 }, { 669 key: "apply", value: function () { 670 } 671 }, { 672 key: "onTransitionEnd", value: function (t) { 673 this.slider.options.infinite && (this.slider.state.next >= this.slider.state.length ? (this.slider.state.index = this.slider.state.next = this.slider.state.next - this.slider.state.length, this.slider.transitioner.apply(!0)) : this.slider.state.next < 0 && (this.slider.state.index = this.slider.state.next = this.slider.state.length + this.slider.state.next, this.slider.transitioner.apply(!0))) 674 } 675 }, { 676 key: "_cloneSlide", value: function (t, e) { 677 var i = t.cloneNode(!0); 678 return i.dataset.sliderIndex = e, i.dataset.cloned = !0, (i.querySelectorAll("[id]") || []).forEach(function (t) { 679 t.setAttribute("id", "") 680 }), i 681 } 682 }]), e 683 }(); 684 e.a = s 685 }, function (t, e, i) { 686 "use strict"; 687 var n = i(12), s = function () { 688 function n(t, e) { 689 for (var i = 0; i < e.length; i++) { 690 var n = e[i]; 691 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 692 } 693 } 694 695 return function (t, e, i) { 696 return e && n(t.prototype, e), i && n(t, i), t 697 } 698 }(); 699 var r = function () { 700 function e(t) { 701 !function (t, e) { 702 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 703 }(this, e), this.slider = t 704 } 705 706 return s(e, [{ 707 key: "init", value: function () { 708 return this 709 } 710 }, { 711 key: "apply", value: function () { 712 this.slider.options.loop && (0 < this.slider.state.next ? this.slider.state.next < this.slider.state.length ? this.slider.state.next > this.slider.state.length - this.slider.slidesToShow && Object(n.a)(this.slider._slides[this.slider.state.length - 1], this.slider.wrapper) ? this.slider.state.next = 0 : this.slider.state.next = Math.min(Math.max(this.slider.state.next, 0), this.slider.state.length - this.slider.slidesToShow) : this.slider.state.next = 0 : this.slider.state.next <= 0 - this.slider.slidesToScroll ? this.slider.state.next = this.slider.state.length - this.slider.slidesToShow : this.slider.state.next = 0) 713 } 714 }]), e 715 }(); 716 e.a = r 717 }, function (t, e, i) { 718 "use strict"; 719 i.d(e, "a", function () { 720 return n 721 }); 722 var n = function (t, e) { 723 var i = t.getBoundingClientRect(); 724 return e = e || document.documentElement, 0 <= i.top && 0 <= i.left && i.bottom <= (window.innerHeight || e.clientHeight) && i.right <= (window.innerWidth || e.clientWidth) 725 } 726 }, function (t, e, i) { 727 "use strict"; 728 var n = i(14), s = i(1), r = function () { 729 function n(t, e) { 730 for (var i = 0; i < e.length; i++) { 731 var n = e[i]; 732 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 733 } 734 } 735 736 return function (t, e, i) { 737 return e && n(t.prototype, e), i && n(t, i), t 738 } 739 }(); 740 var o = function () { 741 function e(t) { 742 !function (t, e) { 743 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 744 }(this, e), this.slider = t, this._clickEvents = ["click", "touch"], this._supportsPassive = Object(s.a)(), this.onPreviousClick = this.onPreviousClick.bind(this), this.onNextClick = this.onNextClick.bind(this), this.onKeyUp = this.onKeyUp.bind(this) 745 } 746 747 return r(e, [{ 748 key: "init", value: function () { 749 return this.node = document.createRange().createContextualFragment(Object(n.a)(this.slider.options.icons)), this._ui = { 750 previous: this.node.querySelector(".slider-navigation-previous"), 751 next: this.node.querySelector(".slider-navigation-next") 752 }, this._unbindEvents(), this._bindEvents(), this.refresh(), this 753 } 754 }, { 755 key: "destroy", value: function () { 756 this._unbindEvents() 757 } 758 }, { 759 key: "_bindEvents", value: function () { 760 var e = this; 761 this.slider.wrapper.addEventListener("keyup", this.onKeyUp), this._clickEvents.forEach(function (t) { 762 e._ui.previous.addEventListener(t, e.onPreviousClick), e._ui.next.addEventListener(t, e.onNextClick) 763 }) 764 } 765 }, { 766 key: "_unbindEvents", value: function () { 767 var e = this; 768 this.slider.wrapper.removeEventListener("keyup", this.onKeyUp), this._clickEvents.forEach(function (t) { 769 e._ui.previous.removeEventListener(t, e.onPreviousClick), e._ui.next.removeEventListener(t, e.onNextClick) 770 }) 771 } 772 }, { 773 key: "onNextClick", value: function (t) { 774 this._supportsPassive || t.preventDefault(), this.slider.options.navigation && this.slider.next() 775 } 776 }, { 777 key: "onPreviousClick", value: function (t) { 778 this._supportsPassive || t.preventDefault(), this.slider.options.navigation && this.slider.previous() 779 } 780 }, { 781 key: "onKeyUp", value: function (t) { 782 this.slider.options.keyNavigation && ("ArrowRight" === t.key || "Right" === t.key ? this.slider.next() : "ArrowLeft" !== t.key && "Left" !== t.key || this.slider.previous()) 783 } 784 }, { 785 key: "refresh", value: function () { 786 this.slider.options.loop || this.slider.options.infinite || (this.slider.options.navigation && this.slider.state.length > this.slider.slidesToShow ? (this._ui.previous.classList.remove("is-hidden"), this._ui.next.classList.remove("is-hidden"), 0 === this.slider.state.next ? (this._ui.previous.classList.add("is-hidden"), this._ui.next.classList.remove("is-hidden")) : this.slider.state.next >= this.slider.state.length - this.slider.slidesToShow && !this.slider.options.centerMode ? (this._ui.previous.classList.remove("is-hidden"), this._ui.next.classList.add("is-hidden")) : this.slider.state.next >= this.slider.state.length - 1 && this.slider.options.centerMode && (this._ui.previous.classList.remove("is-hidden"), this._ui.next.classList.add("is-hidden"))) : (this._ui.previous.classList.add("is-hidden"), this._ui.next.classList.add("is-hidden"))) 787 } 788 }, { 789 key: "render", value: function () { 790 return this.node 791 } 792 }]), e 793 }(); 794 e.a = o 795 }, function (t, e, i) { 796 "use strict"; 797 e.a = function (t) { 798 return '<div class="slider-navigation-previous">' + t.previous + '</div>\n<div class="slider-navigation-next">' + t.next + "</div>" 799 } 800 }, function (t, e, i) { 801 "use strict"; 802 var n = i(16), s = i(17), r = i(1), o = function () { 803 function n(t, e) { 804 for (var i = 0; i < e.length; i++) { 805 var n = e[i]; 806 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 807 } 808 } 809 810 return function (t, e, i) { 811 return e && n(t.prototype, e), i && n(t, i), t 812 } 813 }(); 814 var a = function () { 815 function e(t) { 816 !function (t, e) { 817 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 818 }(this, e), this.slider = t, this._clickEvents = ["click", "touch"], this._supportsPassive = Object(r.a)(), this.onPageClick = this.onPageClick.bind(this), this.onResize = this.onResize.bind(this) 819 } 820 821 return o(e, [{ 822 key: "init", value: function () { 823 return this._pages = [], this.node = document.createRange().createContextualFragment(Object(n.a)()), this._ui = {container: this.node.firstChild}, this._count = Math.ceil((this.slider.state.length - this.slider.slidesToShow) / this.slider.slidesToScroll), this._draw(), this.refresh(), this 824 } 825 }, { 826 key: "destroy", value: function () { 827 this._unbindEvents() 828 } 829 }, { 830 key: "_bindEvents", value: function () { 831 var i = this; 832 window.addEventListener("resize", this.onResize), window.addEventListener("orientationchange", this.onResize), this._clickEvents.forEach(function (e) { 833 i._pages.forEach(function (t) { 834 return t.addEventListener(e, i.onPageClick) 835 }) 836 }) 837 } 838 }, { 839 key: "_unbindEvents", value: function () { 840 var i = this; 841 window.removeEventListener("resize", this.onResize), window.removeEventListener("orientationchange", this.onResize), this._clickEvents.forEach(function (e) { 842 i._pages.forEach(function (t) { 843 return t.removeEventListener(e, i.onPageClick) 844 }) 845 }) 846 } 847 }, { 848 key: "_draw", value: function () { 849 if (this._ui.container.innerHTML = "", this.slider.options.pagination && this.slider.state.length > this.slider.slidesToShow) { 850 for (var t = 0; t <= this._count; t++) { 851 var e = document.createRange().createContextualFragment(Object(s.a)()).firstChild; 852 e.dataset.index = t * this.slider.slidesToScroll, this._pages.push(e), this._ui.container.appendChild(e) 853 } 854 this._bindEvents() 855 } 856 } 857 }, { 858 key: "onPageClick", value: function (t) { 859 this._supportsPassive || t.preventDefault(), this.slider.state.next = t.currentTarget.dataset.index, this.slider.show() 860 } 861 }, { 862 key: "onResize", value: function () { 863 this._draw() 864 } 865 }, { 866 key: "refresh", value: function () { 867 var e = this, t = void 0; 868 (t = this.slider.options.infinite ? Math.ceil(this.slider.state.length - 1 / this.slider.slidesToScroll) : Math.ceil((this.slider.state.length - this.slider.slidesToShow) / this.slider.slidesToScroll)) !== this._count && (this._count = t, this._draw()), this._pages.forEach(function (t) { 869 t.classList.remove("is-active"), parseInt(t.dataset.index, 10) === e.slider.state.next % e.slider.state.length && t.classList.add("is-active") 870 }) 871 } 872 }, { 873 key: "render", value: function () { 874 return this.node 875 } 876 }]), e 877 }(); 878 e.a = a 879 }, function (t, e, i) { 880 "use strict"; 881 e.a = function () { 882 return '<div class="slider-pagination"></div>' 883 } 884 }, function (t, e, i) { 885 "use strict"; 886 e.a = function () { 887 return '<div class="slider-page"></div>' 888 } 889 }, function (t, e, i) { 890 "use strict"; 891 var n = i(4), s = i(1), r = function () { 892 function n(t, e) { 893 for (var i = 0; i < e.length; i++) { 894 var n = e[i]; 895 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 896 } 897 } 898 899 return function (t, e, i) { 900 return e && n(t.prototype, e), i && n(t, i), t 901 } 902 }(); 903 var o = function () { 904 function e(t) { 905 !function (t, e) { 906 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 907 }(this, e), this.slider = t, this._supportsPassive = Object(s.a)(), this.onStartDrag = this.onStartDrag.bind(this), this.onMoveDrag = this.onMoveDrag.bind(this), this.onStopDrag = this.onStopDrag.bind(this), this._init() 908 } 909 910 return r(e, [{ 911 key: "_init", value: function () { 912 } 913 }, { 914 key: "bindEvents", value: function () { 915 var e = this; 916 this.slider.container.addEventListener("dragstart", function (t) { 917 e._supportsPassive || t.preventDefault() 918 }), this.slider.container.addEventListener("mousedown", this.onStartDrag), this.slider.container.addEventListener("touchstart", this.onStartDrag), window.addEventListener("mousemove", this.onMoveDrag), window.addEventListener("touchmove", this.onMoveDrag), window.addEventListener("mouseup", this.onStopDrag), window.addEventListener("touchend", this.onStopDrag), window.addEventListener("touchcancel", this.onStopDrag) 919 } 920 }, { 921 key: "unbindEvents", value: function () { 922 var e = this; 923 this.slider.container.removeEventListener("dragstart", function (t) { 924 e._supportsPassive || t.preventDefault() 925 }), this.slider.container.removeEventListener("mousedown", this.onStartDrag), this.slider.container.removeEventListener("touchstart", this.onStartDrag), window.removeEventListener("mousemove", this.onMoveDrag), window.removeEventListener("touchmove", this.onMoveDrag), window.removeEventListener("mouseup", this.onStopDrag), window.removeEventListener("mouseup", this.onStopDrag), window.removeEventListener("touchcancel", this.onStopDrag) 926 } 927 }, { 928 key: "onStartDrag", value: function (t) { 929 if (t.touches) { 930 if (1 < t.touches.length) return; 931 t = t.touches[0] 932 } 933 this._origin = new n.a(t.screenX, t.screenY), this.width = this.slider.wrapperWidth, this.slider.transitioner.disable() 934 } 935 }, { 936 key: "onMoveDrag", value: function (t) { 937 if (this._origin) { 938 var e = t.touches ? t.touches[0] : t; 939 this._lastTranslate = new n.a(e.screenX - this._origin.x, e.screenY - this._origin.y), t.touches && Math.abs(this._lastTranslate.x) > Math.abs(this._lastTranslate.y) && (this._supportsPassive || t.preventDefault(), t.stopPropagation()) 940 } 941 } 942 }, { 943 key: "onStopDrag", value: function (t) { 944 this._origin && this._lastTranslate && (Math.abs(this._lastTranslate.x) > .2 * this.width ? this._lastTranslate.x < 0 ? this.slider.next() : this.slider.previous() : this.slider.show(!0)), this._origin = null, this._lastTranslate = null 945 } 946 }]), e 947 }(); 948 e.a = o 949 }, function (t, e, i) { 950 "use strict"; 951 var n = i(20), s = i(21), r = function () { 952 function n(t, e) { 953 for (var i = 0; i < e.length; i++) { 954 var n = e[i]; 955 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 956 } 957 } 958 959 return function (t, e, i) { 960 return e && n(t.prototype, e), i && n(t, i), t 961 } 962 }(); 963 var o = function () { 964 function e(t) { 965 !function (t, e) { 966 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 967 }(this, e), this.slider = t, this.options = t.options, this._animating = !1, this._animation = void 0, this._translate = new s.a(this, t, t.options), this._fade = new n.a(this, t, t.options) 968 } 969 970 return r(e, [{ 971 key: "init", value: function () { 972 return this._fade.init(), this._translate.init(), this 973 } 974 }, { 975 key: "isAnimating", value: function () { 976 return this._animating 977 } 978 }, { 979 key: "enable", value: function () { 980 this._animation && this._animation.enable() 981 } 982 }, { 983 key: "disable", value: function () { 984 this._animation && this._animation.disable() 985 } 986 }, { 987 key: "apply", value: function (t, e) { 988 if (!this._animating || t) { 989 switch (this.options.effect) { 990 case"fade": 991 this._animation = this._fade; 992 break; 993 case"translate": 994 default: 995 this._animation = this._translate 996 } 997 this._animationCallback = e, t ? this._animation && this._animation.disable() : (this._animation && this._animation.enable(), this._animating = !0), this._animation && this._animation.apply(), t && this.end() 998 } 999 } 1000 }, { 1001 key: "end", value: function () { 1002 this._animating = !1, this._animation = void 0, this.slider.state.index = this.slider.state.next, this._animationCallback && this._animationCallback() 1003 } 1004 }]), e 1005 }(); 1006 e.a = o 1007 }, function (t, e, i) { 1008 "use strict"; 1009 var s = i(0), r = Object.assign || function (t) { 1010 for (var e = 1; e < arguments.length; e++) { 1011 var i = arguments[e]; 1012 for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]) 1013 } 1014 return t 1015 }, o = function () { 1016 function n(t, e) { 1017 for (var i = 0; i < e.length; i++) { 1018 var n = e[i]; 1019 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 1020 } 1021 } 1022 1023 return function (t, e, i) { 1024 return e && n(t.prototype, e), i && n(t, i), t 1025 } 1026 }(); 1027 var n = function () { 1028 function n(t, e) { 1029 var i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}; 1030 !function (t, e) { 1031 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1032 }(this, n), this.transitioner = t, this.slider = e, this.options = r({}, i) 1033 } 1034 1035 return o(n, [{ 1036 key: "init", value: function () { 1037 var i = this; 1038 return "fade" === this.options.effect && this.slider.slides.forEach(function (t, e) { 1039 Object(s.a)(t, { 1040 position: "absolute", 1041 left: 0, 1042 top: 0, 1043 bottom: 0, 1044 "z-index": t.dataset.sliderIndex == i.slider.state.index ? 0 : -2, 1045 opacity: t.dataset.sliderIndex == i.slider.state.index ? 1 : 0 1046 }) 1047 }), this 1048 } 1049 }, { 1050 key: "enable", value: function () { 1051 var e = this; 1052 this._oldSlide = this.slider.slides.filter(function (t) { 1053 return t.dataset.sliderIndex == e.slider.state.index 1054 })[0], this._newSlide = this.slider.slides.filter(function (t) { 1055 return t.dataset.sliderIndex == e.slider.state.next 1056 })[0], this._newSlide && (this._newSlide.addEventListener("transitionend", this.onTransitionEnd.bind(this)), this._newSlide.style.transition = this.options.duration + "ms " + this.options.timing, this._oldSlide && (this._oldSlide.addEventListener("transitionend", this.onTransitionEnd.bind(this)), this._oldSlide.style.transition = this.options.duration + "ms " + this.options.timing)) 1057 } 1058 }, { 1059 key: "disable", value: function () { 1060 var e = this; 1061 this._oldSlide = this.slider.slides.filter(function (t) { 1062 return t.dataset.sliderIndex == e.slider.state.index 1063 })[0], this._newSlide = this.slider.slides.filter(function (t) { 1064 return t.dataset.sliderIndex == e.slider.state.next 1065 })[0], this._newSlide && (this._newSlide.removeEventListener("transitionend", this.onTransitionEnd.bind(this)), this._newSlide.style.transition = "none", this._oldSlide && (this._oldSlide.removeEventListener("transitionend", this.onTransitionEnd.bind(this)), this._oldSlide.style.transition = "none")) 1066 } 1067 }, { 1068 key: "apply", value: function (t) { 1069 var e = this; 1070 this._oldSlide = this.slider.slides.filter(function (t) { 1071 return t.dataset.sliderIndex == e.slider.state.index 1072 })[0], this._newSlide = this.slider.slides.filter(function (t) { 1073 return t.dataset.sliderIndex == e.slider.state.next 1074 })[0], this._oldSlide && this._newSlide && (Object(s.a)(this._oldSlide, {opacity: 0}), Object(s.a)(this._newSlide, { 1075 opacity: 1, 1076 "z-index": t ? 0 : -1 1077 })) 1078 } 1079 }, { 1080 key: "onTransitionEnd", value: function (t) { 1081 "fade" === this.options.effect && (this.transitioner.isAnimating() && t.target == this._newSlide && (this._newSlide && (Object(s.a)(this._newSlide, {"z-index": 0}), this._newSlide.removeEventListener("transitionend", this.onTransitionEnd.bind(this))), this._oldSlide && (Object(s.a)(this._oldSlide, {"z-index": -2}), this._oldSlide.removeEventListener("transitionend", this.onTransitionEnd.bind(this)))), this.transitioner.end()) 1082 } 1083 }]), n 1084 }(); 1085 e.a = n 1086 }, function (t, e, i) { 1087 "use strict"; 1088 var r = i(4), o = i(0), s = Object.assign || function (t) { 1089 for (var e = 1; e < arguments.length; e++) { 1090 var i = arguments[e]; 1091 for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]) 1092 } 1093 return t 1094 }, a = function () { 1095 function n(t, e) { 1096 for (var i = 0; i < e.length; i++) { 1097 var n = e[i]; 1098 n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(t, n.key, n) 1099 } 1100 } 1101 1102 return function (t, e, i) { 1103 return e && n(t.prototype, e), i && n(t, i), t 1104 } 1105 }(); 1106 var n = function () { 1107 function n(t, e) { 1108 var i = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}; 1109 !function (t, e) { 1110 if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function") 1111 }(this, n), this.transitioner = t, this.slider = e, this.options = s({}, i), this.onTransitionEnd = this.onTransitionEnd.bind(this) 1112 } 1113 1114 return a(n, [{ 1115 key: "init", value: function () { 1116 return this._position = new r.a(this.slider.container.offsetLeft, this.slider.container.offsetTop), this._bindEvents(), this 1117 } 1118 }, { 1119 key: "destroy", value: function () { 1120 this._unbindEvents() 1121 } 1122 }, { 1123 key: "_bindEvents", value: function () { 1124 this.slider.container.addEventListener("transitionend", this.onTransitionEnd) 1125 } 1126 }, { 1127 key: "_unbindEvents", value: function () { 1128 this.slider.container.removeEventListener("transitionend", this.onTransitionEnd) 1129 } 1130 }, { 1131 key: "enable", value: function () { 1132 this.slider.container.style.transition = this.options.duration + "ms " + this.options.timing 1133 } 1134 }, { 1135 key: "disable", value: function () { 1136 this.slider.container.style.transition = "none" 1137 } 1138 }, { 1139 key: "apply", value: function () { 1140 var e = this, t = void 0; 1141 if ("translate" === this.options.effect) { 1142 var i = this.slider.slides.filter(function (t) { 1143 return t.dataset.sliderIndex == e.slider.state.next 1144 })[0], n = new r.a(i.offsetLeft, i.offsetTop); 1145 t = this.options.centerMode ? new r.a(Math.round(Object(o.e)(this.slider.container)), Math.round(Object(o.b)(this.slider.container))) : new r.a(Math.round(Object(o.e)(this.slider.container) - Object(o.e)(this.slider.wrapper)), Math.round(Object(o.b)(this.slider.container) - Object(o.b)(this.slider.wrapper))); 1146 var s = new r.a(Math.min(Math.max(-1 * n.x, -1 * t.x), 0), Math.min(Math.max(-1 * n.y, -1 * t.y), 0)); 1147 this.options.loop && (!this.options.vertical && Math.abs(this._position.x) > t.x ? (s.x = 0, this.slider.state.next = 0) : this.options.vertical && Math.abs(this._position.y) > t.y && (s.y = 0, this.slider.state.next = 0)), this._position.x = s.x, this._position.y = s.y, this.options.centerMode && (this._position.x = this._position.x + this.slider.wrapperWidth / 2 - Object(o.e)(i) / 2), "rtl" === this.slider.direction && (this._position.x = -this._position.x, this._position.y = -this._position.y), this.slider.container.style.transform = "translate3d(" + this._position.x + "px, " + this._position.y + "px, 0)", n.x > t.x && this.slider.transitioner.end() 1148 } 1149 } 1150 }, { 1151 key: "onTransitionEnd", value: function (t) { 1152 "translate" === this.options.effect && (this.transitioner.isAnimating() && t.target == this.slider.container && this.options.infinite && this.slider._infinite.onTransitionEnd(t), this.transitioner.end()) 1153 } 1154 }]), n 1155 }(); 1156 e.a = n 1157 }, function (t, e, i) { 1158 "use strict"; 1159 e.a = { 1160 initialSlide: 0, 1161 slidesToScroll: 1, 1162 slidesToShow: 1, 1163 navigation: !0, 1164 navigationKeys: !0, 1165 navigationSwipe: !0, 1166 pagination: !0, 1167 loop: !1, 1168 infinite: !1, 1169 effect: "translate", 1170 duration: 300, 1171 timing: "ease", 1172 autoplay: !1, 1173 autoplaySpeed: 3e3, 1174 pauseOnHover: !0, 1175 breakpoints: [{changePoint: 480, slidesToShow: 1, slidesToScroll: 1}, { 1176 changePoint: 640, 1177 slidesToShow: 2, 1178 slidesToScroll: 2 1179 }, {changePoint: 768, slidesToShow: 3, slidesToScroll: 3}], 1180 onReady: null, 1181 icons: { 1182 previous: '<svg viewBox="0 0 50 80" xml:space="preserve">\n <polyline fill="currentColor" stroke-width=".5em" stroke-linecap="round" stroke-linejoin="round" points="45.63,75.8 0.375,38.087 45.63,0.375 "/>\n </svg>', 1183 next: '<svg viewBox="0 0 50 80" xml:space="preserve">\n <polyline fill="currentColor" stroke-width=".5em" stroke-linecap="round" stroke-linejoin="round" points="0.375,0.375 45.63,38.087 0.375,75.8 "/>\n </svg>' 1184 } 1185 } 1186 }, function (t, e, i) { 1187 "use strict"; 1188 e.a = function (t) { 1189 return '<div id="' + t + '" class="slider" tabindex="0">\n <div class="slider-container"></div>\n </div>' 1190 } 1191 }, function (t, e, i) { 1192 "use strict"; 1193 e.a = function () { 1194 return '<div class="slider-item"></div>' 1195 } 1196 }]).default 1197});
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.