vendor: 28,993 bytes, lines 1-596
1/* 2 Copyright (C) Federico Zivolo 2017 popper.min 3 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). 4 */ 5(function (e, t) { 6 'object' == typeof exports && 'undefined' != typeof module ? module.exports = t() : 'function' == typeof define && define.amd ? define(t) : e.Popper = t() 7})(this, function () { 8 'use strict'; 9 10 function e(e) { 11 return e && '[object Function]' === {}.toString.call(e) 12 } 13 14 function t(e, t) { 15 if (1 !== e.nodeType) return []; 16 var o = getComputedStyle(e, null); 17 return t ? o[t] : o 18 } 19 20 function o(e) { 21 return 'HTML' === e.nodeName ? e : e.parentNode || e.host 22 } 23 24 function n(e) { 25 if (!e) return document.body; 26 switch (e.nodeName) { 27 case'HTML': 28 case'BODY': 29 return e.ownerDocument.body; 30 case'#document': 31 return e.body; 32 } 33 var i = t(e), r = i.overflow, p = i.overflowX, s = i.overflowY; 34 return /(auto|scroll)/.test(r + s + p) ? e : n(o(e)) 35 } 36 37 function r(e) { 38 var o = e && e.offsetParent, i = o && o.nodeName; 39 return i && 'BODY' !== i && 'HTML' !== i ? -1 !== ['TD', 'TABLE'].indexOf(o.nodeName) && 'static' === t(o, 'position') ? r(o) : o : e ? e.ownerDocument.documentElement : document.documentElement 40 } 41 42 function p(e) { 43 var t = e.nodeName; 44 return 'BODY' !== t && ('HTML' === t || r(e.firstElementChild) === e) 45 } 46 47 function s(e) { 48 return null === e.parentNode ? e : s(e.parentNode) 49 } 50 51 function d(e, t) { 52 if (!e || !e.nodeType || !t || !t.nodeType) return document.documentElement; 53 var o = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, i = o ? e : t, n = o ? t : e, 54 a = document.createRange(); 55 a.setStart(i, 0), a.setEnd(n, 0); 56 var l = a.commonAncestorContainer; 57 if (e !== l && t !== l || i.contains(n)) return p(l) ? l : r(l); 58 var f = s(e); 59 return f.host ? d(f.host, t) : d(e, s(t).host) 60 } 61 62 function a(e) { 63 var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 'top', 64 o = 'top' === t ? 'scrollTop' : 'scrollLeft', i = e.nodeName; 65 if ('BODY' === i || 'HTML' === i) { 66 var n = e.ownerDocument.documentElement, r = e.ownerDocument.scrollingElement || n; 67 return r[o] 68 } 69 return e[o] 70 } 71 72 function l(e, t) { 73 var o = 2 < arguments.length && void 0 !== arguments[2] && arguments[2], i = a(t, 'top'), n = a(t, 'left'), 74 r = o ? -1 : 1; 75 return e.top += i * r, e.bottom += i * r, e.left += n * r, e.right += n * r, e 76 } 77 78 function f(e, t) { 79 var o = 'x' === t ? 'Left' : 'Top', i = 'Left' == o ? 'Right' : 'Bottom'; 80 return parseFloat(e['border' + o + 'Width'], 10) + parseFloat(e['border' + i + 'Width'], 10) 81 } 82 83 function m(e, t, o, i) { 84 return J(t['offset' + e], t['scroll' + e], o['client' + e], o['offset' + e], o['scroll' + e], ie() ? o['offset' + e] + i['margin' + ('Height' === e ? 'Top' : 'Left')] + i['margin' + ('Height' === e ? 'Bottom' : 'Right')] : 0) 85 } 86 87 function h() { 88 var e = document.body, t = document.documentElement, o = ie() && getComputedStyle(t); 89 return {height: m('Height', e, t, o), width: m('Width', e, t, o)} 90 } 91 92 function c(e) { 93 return se({}, e, {right: e.left + e.width, bottom: e.top + e.height}) 94 } 95 96 function g(e) { 97 var o = {}; 98 if (ie()) try { 99 o = e.getBoundingClientRect(); 100 var i = a(e, 'top'), n = a(e, 'left'); 101 o.top += i, o.left += n, o.bottom += i, o.right += n 102 } catch (e) { 103 } else o = e.getBoundingClientRect(); 104 var r = {left: o.left, top: o.top, width: o.right - o.left, height: o.bottom - o.top}, 105 p = 'HTML' === e.nodeName ? h() : {}, s = p.width || e.clientWidth || r.right - r.left, 106 d = p.height || e.clientHeight || r.bottom - r.top, l = e.offsetWidth - s, m = e.offsetHeight - d; 107 if (l || m) { 108 var g = t(e); 109 l -= f(g, 'x'), m -= f(g, 'y'), r.width -= l, r.height -= m 110 } 111 return c(r) 112 } 113 114 function u(e, o) { 115 var i = ie(), r = 'HTML' === o.nodeName, p = g(e), s = g(o), d = n(e), a = t(o), 116 f = parseFloat(a.borderTopWidth, 10), m = parseFloat(a.borderLeftWidth, 10), 117 h = c({top: p.top - s.top - f, left: p.left - s.left - m, width: p.width, height: p.height}); 118 if (h.marginTop = 0, h.marginLeft = 0, !i && r) { 119 var u = parseFloat(a.marginTop, 10), b = parseFloat(a.marginLeft, 10); 120 h.top -= f - u, h.bottom -= f - u, h.left -= m - b, h.right -= m - b, h.marginTop = u, h.marginLeft = b 121 } 122 return (i ? o.contains(d) : o === d && 'BODY' !== d.nodeName) && (h = l(h, o)), h 123 } 124 125 function b(e) { 126 var t = e.ownerDocument.documentElement, o = u(e, t), i = J(t.clientWidth, window.innerWidth || 0), 127 n = J(t.clientHeight, window.innerHeight || 0), r = a(t), p = a(t, 'left'), 128 s = {top: r - o.top + o.marginTop, left: p - o.left + o.marginLeft, width: i, height: n}; 129 return c(s) 130 } 131 132 function w(e) { 133 var i = e.nodeName; 134 return 'BODY' === i || 'HTML' === i ? !1 : 'fixed' === t(e, 'position') || w(o(e)) 135 } 136 137 function y(e, t, i, r) { 138 var p = {top: 0, left: 0}, s = d(e, t); 139 if ('viewport' === r) p = b(s); else { 140 var a; 141 'scrollParent' === r ? (a = n(o(t)), 'BODY' === a.nodeName && (a = e.ownerDocument.documentElement)) : 'window' === r ? a = e.ownerDocument.documentElement : a = r; 142 var l = u(a, s); 143 if ('HTML' === a.nodeName && !w(s)) { 144 var f = h(), m = f.height, c = f.width; 145 p.top += l.top - l.marginTop, p.bottom = m + l.top, p.left += l.left - l.marginLeft, p.right = c + l.left 146 } else p = l 147 } 148 return p.left += i, p.top += i, p.right -= i, p.bottom -= i, p 149 } 150 151 function E(e) { 152 var t = e.width, o = e.height; 153 return t * o 154 } 155 156 function v(e, t, o, i, n) { 157 var r = 5 < arguments.length && void 0 !== arguments[5] ? arguments[5] : 0; 158 if (-1 === e.indexOf('auto')) return e; 159 var p = y(o, i, r, n), s = { 160 top: {width: p.width, height: t.top - p.top}, 161 right: {width: p.right - t.right, height: p.height}, 162 bottom: {width: p.width, height: p.bottom - t.bottom}, 163 left: {width: t.left - p.left, height: p.height} 164 }, d = Object.keys(s).map(function (e) { 165 return se({key: e}, s[e], {area: E(s[e])}) 166 }).sort(function (e, t) { 167 return t.area - e.area 168 }), a = d.filter(function (e) { 169 var t = e.width, i = e.height; 170 return t >= o.clientWidth && i >= o.clientHeight 171 }), l = 0 < a.length ? a[0].key : d[0].key, f = e.split('-')[1]; 172 return l + (f ? '-' + f : '') 173 } 174 175 function O(e, t, o) { 176 var i = d(t, o); 177 return u(o, i) 178 } 179 180 function L(e) { 181 var t = getComputedStyle(e), o = parseFloat(t.marginTop) + parseFloat(t.marginBottom), 182 i = parseFloat(t.marginLeft) + parseFloat(t.marginRight), 183 n = {width: e.offsetWidth + i, height: e.offsetHeight + o}; 184 return n 185 } 186 187 function x(e) { 188 var t = {left: 'right', right: 'left', bottom: 'top', top: 'bottom'}; 189 return e.replace(/left|right|bottom|top/g, function (e) { 190 return t[e] 191 }) 192 } 193 194 function S(e, t, o) { 195 o = o.split('-')[0]; 196 var i = L(e), n = {width: i.width, height: i.height}, r = -1 !== ['right', 'left'].indexOf(o), 197 p = r ? 'top' : 'left', s = r ? 'left' : 'top', d = r ? 'height' : 'width', a = r ? 'width' : 'height'; 198 return n[p] = t[p] + t[d] / 2 - i[d] / 2, n[s] = o === s ? t[s] - i[a] : t[x(s)], n 199 } 200 201 function T(e, t) { 202 return Array.prototype.find ? e.find(t) : e.filter(t)[0] 203 } 204 205 function D(e, t, o) { 206 if (Array.prototype.findIndex) return e.findIndex(function (e) { 207 return e[t] === o 208 }); 209 var i = T(e, function (e) { 210 return e[t] === o 211 }); 212 return e.indexOf(i) 213 } 214 215 function C(t, o, i) { 216 var n = void 0 === i ? t : t.slice(0, D(t, 'name', i)); 217 return n.forEach(function (t) { 218 t['function'] && console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); 219 var i = t['function'] || t.fn; 220 t.enabled && e(i) && (o.offsets.popper = c(o.offsets.popper), o.offsets.reference = c(o.offsets.reference), o = i(o, t)) 221 }), o 222 } 223 224 function N() { 225 if (!this.state.isDestroyed) { 226 var e = {instance: this, styles: {}, arrowStyles: {}, attributes: {}, flipped: !1, offsets: {}}; 227 e.offsets.reference = O(this.state, this.popper, this.reference), e.placement = v(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.offsets.popper = S(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = 'absolute', e = C(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e)) 228 } 229 } 230 231 function k(e, t) { 232 return e.some(function (e) { 233 var o = e.name, i = e.enabled; 234 return i && o === t 235 }) 236 } 237 238 function W(e) { 239 for (var t = [!1, 'ms', 'Webkit', 'Moz', 'O'], o = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < t.length - 1; n++) { 240 var i = t[n], r = i ? '' + i + o : e; 241 if ('undefined' != typeof document.body.style[r]) return r 242 } 243 return null 244 } 245 246 function P() { 247 return this.state.isDestroyed = !0, k(this.modifiers, 'applyStyle') && (this.popper.removeAttribute('x-placement'), this.popper.style.left = '', this.popper.style.position = '', this.popper.style.top = '', this.popper.style[W('transform')] = ''), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this 248 } 249 250 function B(e) { 251 var t = e.ownerDocument; 252 return t ? t.defaultView : window 253 } 254 255 function H(e, t, o, i) { 256 var r = 'BODY' === e.nodeName, p = r ? e.ownerDocument.defaultView : e; 257 p.addEventListener(t, o, {passive: !0}), r || H(n(p.parentNode), t, o, i), i.push(p) 258 } 259 260 function A(e, t, o, i) { 261 o.updateBound = i, B(e).addEventListener('resize', o.updateBound, {passive: !0}); 262 var r = n(e); 263 return H(r, 'scroll', o.updateBound, o.scrollParents), o.scrollElement = r, o.eventsEnabled = !0, o 264 } 265 266 function I() { 267 this.state.eventsEnabled || (this.state = A(this.reference, this.options, this.state, this.scheduleUpdate)) 268 } 269 270 function M(e, t) { 271 return B(e).removeEventListener('resize', t.updateBound), t.scrollParents.forEach(function (e) { 272 e.removeEventListener('scroll', t.updateBound) 273 }), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t 274 } 275 276 function R() { 277 this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = M(this.reference, this.state)) 278 } 279 280 function U(e) { 281 return '' !== e && !isNaN(parseFloat(e)) && isFinite(e) 282 } 283 284 function Y(e, t) { 285 Object.keys(t).forEach(function (o) { 286 var i = ''; 287 -1 !== ['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(o) && U(t[o]) && (i = 'px'), e.style[o] = t[o] + i 288 }) 289 } 290 291 function j(e, t) { 292 Object.keys(t).forEach(function (o) { 293 var i = t[o]; 294 !1 === i ? e.removeAttribute(o) : e.setAttribute(o, t[o]) 295 }) 296 } 297 298 function F(e, t, o) { 299 var i = T(e, function (e) { 300 var o = e.name; 301 return o === t 302 }), n = !!i && e.some(function (e) { 303 return e.name === o && e.enabled && e.order < i.order 304 }); 305 if (!n) { 306 var r = '`' + t + '`'; 307 console.warn('`' + o + '`' + ' modifier is required by ' + r + ' modifier in order to work, be sure to include it before ' + r + '!') 308 } 309 return n 310 } 311 312 function K(e) { 313 return 'end' === e ? 'start' : 'start' === e ? 'end' : e 314 } 315 316 function q(e) { 317 var t = 1 < arguments.length && void 0 !== arguments[1] && arguments[1], o = ae.indexOf(e), 318 i = ae.slice(o + 1).concat(ae.slice(0, o)); 319 return t ? i.reverse() : i 320 } 321 322 function V(e, t, o, i) { 323 var n = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), r = +n[1], p = n[2]; 324 if (!r) return e; 325 if (0 === p.indexOf('%')) { 326 var s; 327 switch (p) { 328 case'%p': 329 s = o; 330 break; 331 case'%': 332 case'%r': 333 default: 334 s = i; 335 } 336 var d = c(s); 337 return d[t] / 100 * r 338 } 339 if ('vh' === p || 'vw' === p) { 340 var a; 341 return a = 'vh' === p ? J(document.documentElement.clientHeight, window.innerHeight || 0) : J(document.documentElement.clientWidth, window.innerWidth || 0), a / 100 * r 342 } 343 return r 344 } 345 346 function z(e, t, o, i) { 347 var n = [0, 0], r = -1 !== ['right', 'left'].indexOf(i), p = e.split(/(\+|\-)/).map(function (e) { 348 return e.trim() 349 }), s = p.indexOf(T(p, function (e) { 350 return -1 !== e.search(/,|\s/) 351 })); 352 p[s] && -1 === p[s].indexOf(',') && console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); 353 var d = /\s*,\s*|\s+/, 354 a = -1 === s ? [p] : [p.slice(0, s).concat([p[s].split(d)[0]]), [p[s].split(d)[1]].concat(p.slice(s + 1))]; 355 return a = a.map(function (e, i) { 356 var n = (1 === i ? !r : r) ? 'height' : 'width', p = !1; 357 return e.reduce(function (e, t) { 358 return '' === e[e.length - 1] && -1 !== ['+', '-'].indexOf(t) ? (e[e.length - 1] = t, p = !0, e) : p ? (e[e.length - 1] += t, p = !1, e) : e.concat(t) 359 }, []).map(function (e) { 360 return V(e, n, t, o) 361 }) 362 }), a.forEach(function (e, t) { 363 e.forEach(function (o, i) { 364 U(o) && (n[t] += o * ('-' === e[i - 1] ? -1 : 1)) 365 }) 366 }), n 367 } 368 369 function G(e, t) { 370 var o, i = t.offset, n = e.placement, r = e.offsets, p = r.popper, s = r.reference, d = n.split('-')[0]; 371 return o = U(+i) ? [+i, 0] : z(i, p, s, d), 'left' === d ? (p.top += o[0], p.left -= o[1]) : 'right' === d ? (p.top += o[0], p.left += o[1]) : 'top' === d ? (p.left += o[0], p.top -= o[1]) : 'bottom' === d && (p.left += o[0], p.top += o[1]), e.popper = p, e 372 } 373 374 for (var _ = Math.min, X = Math.floor, J = Math.max, Q = 'undefined' != typeof window && 'undefined' != typeof document, Z = ['Edge', 'Trident', 'Firefox'], $ = 0, ee = 0; ee < Z.length; ee += 1) if (Q && 0 <= navigator.userAgent.indexOf(Z[ee])) { 375 $ = 1; 376 break 377 } 378 var i, te = Q && window.Promise, oe = te ? function (e) { 379 var t = !1; 380 return function () { 381 t || (t = !0, window.Promise.resolve().then(function () { 382 t = !1, e() 383 })) 384 } 385 } : function (e) { 386 var t = !1; 387 return function () { 388 t || (t = !0, setTimeout(function () { 389 t = !1, e() 390 }, $)) 391 } 392 }, ie = function () { 393 return void 0 == i && (i = -1 !== navigator.appVersion.indexOf('MSIE 10')), i 394 }, ne = function (e, t) { 395 if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') 396 }, re = function () { 397 function e(e, t) { 398 for (var o, n = 0; n < t.length; n++) o = t[n], o.enumerable = o.enumerable || !1, o.configurable = !0, 'value' in o && (o.writable = !0), Object.defineProperty(e, o.key, o) 399 } 400 401 return function (t, o, i) { 402 return o && e(t.prototype, o), i && e(t, i), t 403 } 404 }(), pe = function (e, t, o) { 405 return t in e ? Object.defineProperty(e, t, { 406 value: o, 407 enumerable: !0, 408 configurable: !0, 409 writable: !0 410 }) : e[t] = o, e 411 }, se = Object.assign || function (e) { 412 for (var t, o = 1; o < arguments.length; o++) for (var i in t = arguments[o], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); 413 return e 414 }, 415 de = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'], 416 ae = de.slice(3), le = {FLIP: 'flip', CLOCKWISE: 'clockwise', COUNTERCLOCKWISE: 'counterclockwise'}, 417 fe = function () { 418 function t(o, i) { 419 var n = this, r = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}; 420 ne(this, t), this.scheduleUpdate = function () { 421 return requestAnimationFrame(n.update) 422 }, this.update = oe(this.update.bind(this)), this.options = se({}, t.Defaults, r), this.state = { 423 isDestroyed: !1, 424 isCreated: !1, 425 scrollParents: [] 426 }, this.reference = o && o.jquery ? o[0] : o, this.popper = i && i.jquery ? i[0] : i, this.options.modifiers = {}, Object.keys(se({}, t.Defaults.modifiers, r.modifiers)).forEach(function (e) { 427 n.options.modifiers[e] = se({}, t.Defaults.modifiers[e] || {}, r.modifiers ? r.modifiers[e] : {}) 428 }), this.modifiers = Object.keys(this.options.modifiers).map(function (e) { 429 return se({name: e}, n.options.modifiers[e]) 430 }).sort(function (e, t) { 431 return e.order - t.order 432 }), this.modifiers.forEach(function (t) { 433 t.enabled && e(t.onLoad) && t.onLoad(n.reference, n.popper, n.options, t, n.state) 434 }), this.update(); 435 var p = this.options.eventsEnabled; 436 p && this.enableEventListeners(), this.state.eventsEnabled = p 437 } 438 439 return re(t, [{ 440 key: 'update', value: function () { 441 return N.call(this) 442 } 443 }, { 444 key: 'destroy', value: function () { 445 return P.call(this) 446 } 447 }, { 448 key: 'enableEventListeners', value: function () { 449 return I.call(this) 450 } 451 }, { 452 key: 'disableEventListeners', value: function () { 453 return R.call(this) 454 } 455 }]), t 456 }(); 457 return fe.Utils = ('undefined' == typeof window ? global : window).PopperUtils, fe.placements = de, fe.Defaults = { 458 placement: 'bottom', eventsEnabled: !0, removeOnDestroy: !1, onCreate: function () { 459 }, onUpdate: function () { 460 }, modifiers: { 461 shift: { 462 order: 100, enabled: !0, fn: function (e) { 463 var t = e.placement, o = t.split('-')[0], i = t.split('-')[1]; 464 if (i) { 465 var n = e.offsets, r = n.reference, p = n.popper, s = -1 !== ['bottom', 'top'].indexOf(o), 466 d = s ? 'left' : 'top', a = s ? 'width' : 'height', 467 l = {start: pe({}, d, r[d]), end: pe({}, d, r[d] + r[a] - p[a])}; 468 e.offsets.popper = se({}, p, l[i]) 469 } 470 return e 471 } 472 }, 473 offset: {order: 200, enabled: !0, fn: G, offset: 0}, 474 preventOverflow: { 475 order: 300, enabled: !0, fn: function (e, t) { 476 var o = t.boundariesElement || r(e.instance.popper); 477 e.instance.reference === o && (o = r(o)); 478 var i = y(e.instance.popper, e.instance.reference, t.padding, o); 479 t.boundaries = i; 480 var n = t.priority, p = e.offsets.popper, s = { 481 primary: function (e) { 482 var o = p[e]; 483 return p[e] < i[e] && !t.escapeWithReference && (o = J(p[e], i[e])), pe({}, e, o) 484 }, secondary: function (e) { 485 var o = 'right' === e ? 'left' : 'top', n = p[o]; 486 return p[e] > i[e] && !t.escapeWithReference && (n = _(p[o], i[e] - ('right' === e ? p.width : p.height))), pe({}, o, n) 487 } 488 }; 489 return n.forEach(function (e) { 490 var t = -1 === ['left', 'top'].indexOf(e) ? 'secondary' : 'primary'; 491 p = se({}, p, s[t](e)) 492 }), e.offsets.popper = p, e 493 }, priority: ['left', 'right', 'top', 'bottom'], padding: 5, boundariesElement: 'scrollParent' 494 }, 495 keepTogether: { 496 order: 400, enabled: !0, fn: function (e) { 497 var t = e.offsets, o = t.popper, i = t.reference, n = e.placement.split('-')[0], r = X, 498 p = -1 !== ['top', 'bottom'].indexOf(n), s = p ? 'right' : 'bottom', d = p ? 'left' : 'top', 499 a = p ? 'width' : 'height'; 500 return o[s] < r(i[d]) && (e.offsets.popper[d] = r(i[d]) - o[a]), o[d] > r(i[s]) && (e.offsets.popper[d] = r(i[s])), e 501 } 502 }, 503 arrow: { 504 order: 500, enabled: !0, fn: function (e, o) { 505 var i; 506 if (!F(e.instance.modifiers, 'arrow', 'keepTogether')) return e; 507 var n = o.element; 508 if ('string' == typeof n) { 509 if (n = e.instance.popper.querySelector(n), !n) return e; 510 } else if (!e.instance.popper.contains(n)) return console.warn('WARNING: `arrow.element` must be child of its popper element!'), e; 511 var r = e.placement.split('-')[0], p = e.offsets, s = p.popper, d = p.reference, 512 a = -1 !== ['left', 'right'].indexOf(r), l = a ? 'height' : 'width', f = a ? 'Top' : 'Left', 513 m = f.toLowerCase(), h = a ? 'left' : 'top', g = a ? 'bottom' : 'right', u = L(n)[l]; 514 d[g] - u < s[m] && (e.offsets.popper[m] -= s[m] - (d[g] - u)), d[m] + u > s[g] && (e.offsets.popper[m] += d[m] + u - s[g]), e.offsets.popper = c(e.offsets.popper); 515 var b = d[m] + d[l] / 2 - u / 2, w = t(e.instance.popper), y = parseFloat(w['margin' + f], 10), 516 E = parseFloat(w['border' + f + 'Width'], 10), v = b - e.offsets.popper[m] - y - E; 517 return v = J(_(s[l] - u, v), 0), e.arrowElement = n, e.offsets.arrow = (i = {}, pe(i, m, Math.round(v)), pe(i, h, ''), i), e 518 }, element: '[x-arrow]' 519 }, 520 flip: { 521 order: 600, enabled: !0, fn: function (e, t) { 522 if (k(e.instance.modifiers, 'inner')) return e; 523 if (e.flipped && e.placement === e.originalPlacement) return e; 524 var o = y(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement), 525 i = e.placement.split('-')[0], n = x(i), r = e.placement.split('-')[1] || '', p = []; 526 switch (t.behavior) { 527 case le.FLIP: 528 p = [i, n]; 529 break; 530 case le.CLOCKWISE: 531 p = q(i); 532 break; 533 case le.COUNTERCLOCKWISE: 534 p = q(i, !0); 535 break; 536 default: 537 p = t.behavior; 538 } 539 return p.forEach(function (s, d) { 540 if (i !== s || p.length === d + 1) return e; 541 i = e.placement.split('-')[0], n = x(i); 542 var a = e.offsets.popper, l = e.offsets.reference, f = X, 543 m = 'left' === i && f(a.right) > f(l.left) || 'right' === i && f(a.left) < f(l.right) || 'top' === i && f(a.bottom) > f(l.top) || 'bottom' === i && f(a.top) < f(l.bottom), 544 h = f(a.left) < f(o.left), c = f(a.right) > f(o.right), g = f(a.top) < f(o.top), 545 u = f(a.bottom) > f(o.bottom), 546 b = 'left' === i && h || 'right' === i && c || 'top' === i && g || 'bottom' === i && u, 547 w = -1 !== ['top', 'bottom'].indexOf(i), 548 y = !!t.flipVariations && (w && 'start' === r && h || w && 'end' === r && c || !w && 'start' === r && g || !w && 'end' === r && u); 549 (m || b || y) && (e.flipped = !0, (m || b) && (i = p[d + 1]), y && (r = K(r)), e.placement = i + (r ? '-' + r : ''), e.offsets.popper = se({}, e.offsets.popper, S(e.instance.popper, e.offsets.reference, e.placement)), e = C(e.instance.modifiers, e, 'flip')) 550 }), e 551 }, behavior: 'flip', padding: 5, boundariesElement: 'viewport' 552 }, 553 inner: { 554 order: 700, enabled: !1, fn: function (e) { 555 var t = e.placement, o = t.split('-')[0], i = e.offsets, n = i.popper, r = i.reference, 556 p = -1 !== ['left', 'right'].indexOf(o), s = -1 === ['top', 'left'].indexOf(o); 557 return n[p ? 'left' : 'top'] = r[o] - (s ? n[p ? 'width' : 'height'] : 0), e.placement = x(t), e.offsets.popper = c(n), e 558 } 559 }, 560 hide: { 561 order: 800, enabled: !0, fn: function (e) { 562 if (!F(e.instance.modifiers, 'hide', 'preventOverflow')) return e; 563 var t = e.offsets.reference, o = T(e.instance.modifiers, function (e) { 564 return 'preventOverflow' === e.name 565 }).boundaries; 566 if (t.bottom < o.top || t.left > o.right || t.top > o.bottom || t.right < o.left) { 567 if (!0 === e.hide) return e; 568 e.hide = !0, e.attributes['x-out-of-boundaries'] = '' 569 } else { 570 if (!1 === e.hide) return e; 571 e.hide = !1, e.attributes['x-out-of-boundaries'] = !1 572 } 573 return e 574 } 575 }, 576 computeStyle: { 577 order: 850, enabled: !0, fn: function (e, t) { 578 var o = t.x, i = t.y, n = e.offsets.popper, p = T(e.instance.modifiers, function (e) { 579 return 'applyStyle' === e.name 580 }).gpuAcceleration; 581 void 0 !== p && console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); 582 var s, d, a = void 0 === p ? t.gpuAcceleration : p, l = r(e.instance.popper), f = g(l), 583 m = {position: n.position}, 584 h = {left: X(n.left), top: X(n.top), bottom: X(n.bottom), right: X(n.right)}, 585 c = 'bottom' === o ? 'top' : 'bottom', u = 'right' === i ? 'left' : 'right', b = W('transform'); 586 if (d = 'bottom' == c ? -f.height + h.bottom : h.top, s = 'right' == u ? -f.width + h.right : h.left, a && b) m[b] = 'translate3d(' + s + 'px, ' + d + 'px, 0)', m[c] = 0, m[u] = 0, m.willChange = 'transform'; else { 587 var w = 'bottom' == c ? -1 : 1, y = 'right' == u ? -1 : 1; 588 m[c] = d * w, m[u] = s * y, m.willChange = c + ', ' + u 589 } 590 var E = {"x-placement": e.placement}; 591 return e.attributes = se({}, E, e.attributes), e.styles = se({}, m, e.styles), e.arrowStyles = se({}, e.offsets.arrow, e.arrowStyles), e 592 }, gpuAcceleration: !0, x: 'bottom', y: 'right' 593 }, 594 applyStyle: { 595 order: 900, enabled: !0, fn: function (e) { 596 return Y(e.instance.popper, e.styles), j(e.instance.popper, e.attributes), e.arrowElement && Ob
596ject.keys(e.arrowStyles).length && Y(e.arrowElement, e.arrowStyles), e 597 }, onLoad: function (e, t, o, i, n) { 598 var r = O(n, t, e), 599 p = v(o.placement, r, t, e, o.modifiers.flip.boundariesElement, o.modifiers.flip.padding); 600 return t.setAttribute('x-placement', p), Y(t, {position: 'absolute'}), o 601 }, gpuAcceleration: void 0 602 } 603 } 604 }, fe 605}); 606//# sourceMappingURL=popper.min.js.map 607 608 609/*! 610 * Bootstrap v4.0.0 (https://getbootstrap.com) 611 * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 612 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 613 */ 614!function (t, e) { 615 "object" == typeof exports && "undefined" != typeof module ? e(exports, require("jquery"), require("popper.js")) : "function" == typeof define && define.amd ? define(["exports", "jquery", "popper.js"], e) : e(t.bootstrap = {}, t.jQuery, t.Popper) 616}(this, function (t, e, n) { 617 "use strict"; 618 619 function i(t, e) { 620 for (var n = 0; n < e.length; n++) { 621 var i = e[n]; 622 i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(t, i.key, i) 623 } 624 } 625 626 function s(t, e, n) { 627 return e && i(t.prototype, e), n && i(t, n), t 628 } 629 630 function r() { 631 return (r = Object.assign || function (t) { 632 for (var e = 1; e < arguments.length; e++) { 633 var n = arguments[e]; 634 for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]) 635 } 636 return t 637 }).apply(this, arguments) 638 } 639 640 e = e && e.hasOwnProperty("default") ? e.default : e, n = n && n.hasOwnProperty("default") ? n.default : n; 641 var o, a, l, h, c, u, f, d, _, g, p, m, v, E, T, y, C, I, A, b, D, S, w, N, O, k, P = function (t) { 642 var e = !1; 643 644 function n(e) { 645 var n = this, s = !1; 646 return t(this).one(i.TRANSITION_END, function () { 647 s = !0 648 }), setTimeout(function () { 649 s || i.triggerTransitionEnd(n) 650 }, e), this 651 } 652 653 var i = { 654 TRANSITION_END: "bsTransitionEnd", getUID: function (t) { 655 do { 656 t += ~~(1e6 * Math.random()) 657 } while (document.getElementById(t)); 658 return t 659 }, getSelectorFromElement: function (e) { 660 var n, i = e.getAttribute("data-target"); 661 i && "#" !== i || (i = e.getAttribute("href") || ""), "#" === i.charAt(0) && (n = i, i = n = "function" == typeof t.escapeSelector ? t.escapeSelector(n).substr(1) : n.replace(/(:|\.|\[|\]|,|=|@)/g, "\\$1")); 662 try { 663 return t(document).find(i).length > 0 ? i : null 664 } catch (t) { 665 return null 666 } 667 }, reflow: function (t) { 668 return t.offsetHeight 669 }, triggerTransitionEnd: function (n) { 670 t(n).trigger(e.end) 671 }, supportsTransitionEnd: function () { 672 return Boolean(e) 673 }, isElement: function (t) { 674 return (t[0] || t).nodeType 675 }, typeCheckConfig: function (t, e, n) { 676 for (var s in n) if (Object.prototype.hasOwnProperty.call(n, s)) { 677 var r = n[s], o = e[s], 678 a = o && i.isElement(o) ? "element" : (l = o, {}.toString.call(l).match(/\s([a-zA-Z]+)/)[1].toLowerCase()); 679 if (!new RegExp(r).test(a)) throw new Error(t.toUpperCase() + ': Option "' + s + '" provided type "' + a + '" but expected type "' + r + '".') 680 } 681 var l 682 } 683 }; 684 return e = ("undefined" == typeof window || !window.QUnit) && {end: "transitionend"}, t.fn.emulateTransitionEnd = n, i.supportsTransitionEnd() && (t.event.special[i.TRANSITION_END] = { 685 bindType: e.end, 686 delegateType: e.end, 687 handle: function (e) { 688 if (t(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) 689 } 690 }), i 691 }(e), L = (a = "alert", h = "." + (l = "bs.alert"), c = (o = e).fn[a], u = { 692 CLOSE: "close" + h, 693 CLOSED: "closed" + h, 694 CLICK_DATA_API: "click" + h + ".data-api" 695 }, f = "alert", d = "fade", _ = "show", g = function () { 696 function t(t) { 697 this._element = t 698 } 699 700 var e = t.prototype; 701 return e.close = function (t) { 702 t = t || this._element; 703 var e = this._getRootElement(t); 704 this._triggerCloseEvent(e).isDefaultPrevented() || this._removeElement(e) 705 }, e.dispose = function () { 706 o.removeData(this._element, l), this._element = null 707 }, e._getRootElement = function (t) { 708 var e = P.getSelectorFromElement(t), n = !1; 709 return e && (n = o(e)[0]), n || (n = o(t).closest("." + f)[0]), n 710 }, e._triggerCloseEvent = function (t) { 711 var e = o.Event(u.CLOSE); 712 return o(t).trigger(e), e 713 }, e._removeElement = function (t) { 714 var e = this; 715 o(t).removeClass(_), P.supportsTransitionEnd() && o(t).hasClass(d) ? o(t).one(P.TRANSITION_END, function (n) { 716 return e._destroyElement(t, n) 717 }).emulateTransitionEnd(150) : this._destroyElement(t) 718 }, e._destroyElement = function (t) { 719 o(t).detach().trigger(u.CLOSED).remove() 720 }, t._jQueryInterface = function (e) { 721 return this.each(function () { 722 var n = o(this), i = n.data(l); 723 i || (i = new t(this), n.data(l, i)), "close" === e && i[e](this) 724 }) 725 }, t._handleDismiss = function (t) { 726 return function (e) { 727 e && e.preventDefault(), t.close(this) 728 } 729 }, s(t, null, [{ 730 key: "VERSION", get: function () { 731 return "4.0.0" 732 } 733 }]), t 734 }(), o(document).on(u.CLICK_DATA_API, '[data-dismiss="alert"]', g._handleDismiss(new g)), o.fn[a] = g._jQueryInterface, o.fn[a].Constructor = g, o.fn[a].noConflict = function () { 735 return o.fn[a] = c, g._jQueryInterface 736 }, g), 737 R = (m = "button", E = "." + (v = "bs.button"), T = ".data-api", y = (p = e).fn[m], C = "active", I = "btn", A = "focus", b = '[data-toggle^="button"]', D = '[data-toggle="buttons"]', S = "input", w = ".active", N = ".btn", O = { 738 CLICK_DATA_API: "click" + E + T, 739 FOCUS_BLUR_DATA_API: "focus" + E + T + " blur" + E + T 740 }, k = function () { 741 function t(t) { 742 this._element = t 743 } 744 745 var e = t.prototype; 746 return e.toggle = function () { 747 var t = !0, e = !0, n = p(this._element).closest(D)[0]; 748 if (n) { 749 var i = p(this._element).find(S)[0]; 750 if (i) { 751 if ("radio" === i.type) if (i.checked && p(this._element).hasClass(C)) t = !1; else { 752 var s = p(n).find(w)[0]; 753 s && p(s).removeClass(C) 754 } 755 if (t) { 756 if (i.hasAttribute("disabled") || n.hasAttribute("disabled") || i.classList.contains("disabled") || n.classList.contains("disabled")) return; 757 i.checked = !p(this._element).hasClass(C), p(i).trigger("change") 758 } 759 i.focus(), e = !1 760 } 761 } 762 e && this._element.setAttribute("aria-pressed", !p(this._element).hasClass(C)), t && p(this._element).toggleClass(C) 763 }, e.dispose = function () { 764 p.removeData(this._element, v), this._element = null 765 }, t._jQueryInterface = function (e) { 766 return this.each(function () { 767 var n = p(this).data(v); 768 n || (n = new t(this), p(this).data(v, n)), "toggle" === e && n[e]() 769 }) 770 }, s(t, null, [{ 771 key: "VERSION", get: function () { 772 return "4.0.0" 773 } 774 }]), t 775 }(), p(document).on(O.CLICK_DATA_API, b, function (t) { 776 t.preventDefault(); 777 var e = t.target; 778 p(e).hasClass(I) || (e = p(e).closest(N)), k._jQueryInterface.call(p(e), "toggle") 779 }).on(O.FOCUS_BLUR_DATA_API, b, function (t) { 780 var e = p(t.target).closest(N)[0]; 781 p(e).toggleClass(A, /^focus(in)?$/.test(t.type)) 782 }), p.fn[m] = k._jQueryInterface, p.fn[m].Constructor = k, p.fn[m].noConflict = function () {
783 return p.fn[m] = y, k._jQueryInterface 784 }, k), j = function (t) { 785 var e = "carousel", n = "bs.carousel", i = "." + n, o = t.fn[e], 786 a = {interval: 5e3, keyboard: !0, slide: !1, pause: "hover", wrap: !0}, l = { 787 interval: "(number|boolean)", 788 keyboard: "boolean", 789 slide: "(boolean|string)", 790 pause: "(string|boolean)", 791 wrap: "boolean" 792 }, h = "next", c = "prev", u = "left", f = "right", d = { 793 SLIDE: "slide" + i, 794 SLID: "slid" + i, 795 KEYDOWN: "keydown" + i, 796 MOUSEENTER: "mouseenter" + i, 797 MOUSELEAVE: "mouseleave" + i, 798 TOUCHEND: "touchend" + i, 799 LOAD_DATA_API: "load" + i + ".data-api", 800 CLICK_DATA_API: "click" + i + ".data-api" 801 }, _ = "carousel", g = "active", p = "slide", m = "carousel-item-right", v = "carousel-item-left", 802 E = "carousel-item-next", T = "carousel-item-prev", y = { 803 ACTIVE: ".active", 804 ACTIVE_ITEM: ".active.carousel-item", 805 ITEM: ".carousel-item", 806 NEXT_PREV: ".carousel-item-next, .carousel-item-prev", 807 INDICATORS: ".carousel-indicators", 808 DATA_SLIDE: "[data-slide], [data-slide-to]", 809 DATA_RIDE: '[data-ride="carousel"]' 810 }, C = function () { 811 function o(e, n) { 812 this._items = null, this._interval = null, this._activeElement = null, this._isPaused = !1, this._isSliding = !1, this.touchTimeout = null, this._config = this._getConfig(n), this._element = t(e)[0], this._indicatorsElement = t(this._element).find(y.INDICATORS)[0], this._addEventListeners() 813 } 814 815 var C = o.prototype; 816 return C.next = function () { 817 this._isSliding || this._slide(h) 818 }, C.nextWhenVisible = function () { 819 !document.hidden && t(this._element).is(":visible") && "hidden" !== t(this._element).css("visibility") && this.next() 820 }, C.prev = function () { 821 this._isSliding || this._slide(c) 822 }, C.pause = function (e) { 823 e || (this._isPaused = !0), t(this._element).find(y.NEXT_PREV)[0] && P.supportsTransitionEnd() && (P.triggerTransitionEnd(this._element), this.cycle(!0)), clearInterval(this._interval), this._interval = null 824 }, C.cycle = function (t) { 825 t || (this._isPaused = !1), this._interval && (clearInterval(this._interval), this._interval = null), this._config.interval && !this._isPaused && (this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval)) 826 }, C.to = function (e) { 827 var n = this; 828 this._activeElement = t(this._element).find(y.ACTIVE_ITEM)[0]; 829 var i = this._getItemIndex(this._activeElement); 830 if (!(e > this._items.length - 1 || e < 0)) if (this._isSliding) t(this._element).one(d.SLID, function () { 831 return n.to(e) 832 }); else { 833 if (i === e) return this.pause(), void this.cycle(); 834 var s = e > i ? h : c; 835 this._slide(s, this._items[e]) 836 } 837 }, C.dispose = function () { 838 t(this._element).off(i), t.removeData(this._element, n), this._items = null, this._config = null, this._element = null, this._interval = null, this._isPaused = null, this._isSliding = null, this._activeElement = null, this._indicatorsElement = null 839 }, C._getConfig = function (t) { 840 return t = r({}, a, t), P.typeCheckConfig(e, t, l), t 841 }, C._addEventListeners = function () { 842 var e = this; 843 this._config.keyboard && t(this._element).on(d.KEYDOWN, function (t) { 844 return e._keydown(t) 845 }), "hover" === this._config.pause && (t(this._element).on(d.MOUSEENTER, function (t) { 846 return e.pause(t) 847 }).on(d.MOUSELEAVE, function (t) { 848 return e.cycle(t) 849 }), "ontouchstart" in document.documentElement && t(this._element).on(d.TOUCHEND, function () { 850 e.pause(), e.touchTimeout && clearTimeout(e.touchTimeout), e.touchTimeout = setTimeout(function (t) { 851 return e.cycle(t) 852 }, 500 + e._config.interval) 853 })) 854 }, C._keydown = function (t) { 855 if (!/input|textarea/i.test(t.target.tagName)) switch (t.which) { 856 case 37: 857 t.preventDefault(), this.prev(); 858 break; 859 case 39: 860 t.preventDefault(), this.next() 861 } 862 }, C._getItemIndex = function (e) { 863 return this._items = t.makeArray(t(e).parent().find(y.ITEM)), this._items.indexOf(e) 864 }, C._getItemByDirection = function (t, e) { 865 var n = t === h, i = t === c, s = this._getItemIndex(e), r = this._items.length - 1; 866 if ((i && 0 === s || n && s === r) && !this._config.wrap) return e; 867 var o = (s + (t === c ? -1 : 1)) % this._items.length; 868 return -1 === o ? this._items[this._items.length - 1] : this._items[o] 869 }, C._triggerSlideEvent = function (e, n) { 870 var i = this._getItemIndex(e), s = this._getItemIndex(t(this._element).find(y.ACTIVE_ITEM)[0]), 871 r = t.Event(d.SLIDE, {relatedTarget: e, direction: n, from: s, to: i}); 872 return t(this._element).trigger(r), r 873 }
873, C._setActiveIndicatorElement = function (e) { 874 if (this._indicatorsElement) { 875 t(this._indicatorsElement).find(y.ACTIVE).removeClass(g); 876 var n = this._indicatorsElement.children[this._getItemIndex(e)]; 877 n && t(n).addClass(g) 878 } 879 }, C._slide = function (e, n) { 880 var i, s, r, o = this, a = t(this._element).find(y.ACTIVE_ITEM)[0], l = this._getItemIndex(a), 881 c = n || a && this._getItemByDirection(e, a), _ = this._getItemIndex(c), 882 C = Boolean(this._interval); 883 if (e === h ? (i = v, s = E, r = u) : (i = m, s = T, r = f), c && t(c).hasClass(g)) this._isSliding = !1; else if (!this._triggerSlideEvent(c, r).isDefaultPrevented() && a && c) { 884 this._isSliding = !0, C && this.pause(), this._setActiveIndicatorElement(c); 885 var I = t.Event(d.SLID, {relatedTarget: c, direction: r, from: l, to: _}); 886 P.supportsTransitionEnd() && t(this._element).hasClass(p) ? (t(c).addClass(s), P.reflow(c), t(a).addClass(i), t(c).addClass(i), t(a).one(P.TRANSITION_END, function () { 887 t(c).removeClass(i + " " + s).addClass(g), t(a).removeClass(g + " " + s + " " + i), o._isSliding = !1, setTimeout(function () { 888 return t(o._element).trigger(I) 889 }, 0) 890 }).emulateTransitionEnd(600)) : (t(a).removeClass(g), t(c).addClass(g), this._isSliding = !1, t(this._element).trigger(I)), C && this.cycle() 891 } 892 }, o._jQueryInterface = function (e) { 893 return this.each(function () { 894 var i = t(this).data(n), s = r({}, a, t(this).data()); 895 "object" == typeof e && (s = r({}, s, e)); 896 var l = "string" == typeof e ? e : s.slide; 897 if (i || (i = new o(this, s), t(this).data(n, i)), "number" == typeof e) i.to(e); else if ("string" == typeof l) { 898 if ("undefined" == typeof i[l]) throw new TypeError('No method named "' + l + '"'); 899 i[l]() 900 } else s.interval && (i.pause(), i.cycle()) 901 }) 902 }, o._dataApiClickHandler = function (e) { 903 var i = P.getSelectorFromElement(this); 904 if (i) { 905 var s = t(i)[0]; 906 if (s && t(s).hasClass(_)) { 907 var a = r({}, t(s).data(), t(this).data()), l = this.getAttribute("data-slide-to"); 908 l && (a.interval = !1), o._jQueryInterface.call(t(s), a), l && t(s).data(n).to(l), e.preventDefault() 909 } 910 } 911 }, s(o, null, [{ 912 key: "VERSION", get: function () { 913 return "4.0.0" 914 } 915 }, { 916 key: "Default", get: function () { 917 return a 918 } 919 }]), o 920 }(); 921 return t(document).on(d.CLICK_DATA_API, y.DATA_SLIDE, C._dataApiClickHandler), t(window).on(d.LOAD_DATA_API, function () { 922 t(y.DATA_RIDE).each(function () { 923 var e = t(this); 924 C._jQueryInterface.call(e, e.data()) 925 }) 926 }), t.fn[e] = C._jQueryInterface, t.fn[e].Constructor = C, t.fn[e].noConflict = function () { 927 return t.fn[e] = o, C._jQueryInterface 928 }, C 929 }(e), H = function (t) { 930 var e = "collapse", n = "bs.collapse", i = "." + n, o = t.fn[e], a = {toggle: !0, parent: ""}, 931 l = {toggle: "boolean", parent: "(string|element)"}, h = { 932 SHOW: "show" + i, 933 SHOWN: "shown" + i, 934 HIDE: "hide" + i, 935 HIDDEN: "hidden" + i, 936 CLICK_DATA_API: "click" + i + ".data-api" 937 }, c = "show", u = "collapse", f = "collapsing", d = "collapsed", _ = "width", g = "height", 938 p = {ACTIVES: ".show, .collapsing", DATA_TOGGLE: '[data-toggle="collapse"]'}, m = function () { 939 function i(e, n) { 940 this._isTransitioning = !1, this._element = e, this._config = this._getConfig(n), this._triggerArray = t.makeArray(t('[data-toggle="collapse"][href="#' + e.id + '"],[data-toggle="collapse"][data-target="#' + e.id + '"]')); 941 for (var i = t(p.DATA_TOGGLE), s = 0; s < i.length; s++) { 942 var r = i[s], o = P.getSelectorFromElement(r); 943 null !== o && t(o).filter(e).length > 0 && (this._selector = o, this._triggerArray.push(r)) 944 } 945 this._parent = this._config.parent ? this._getParent() : null, this._config.parent || this._addAriaAndCollapsedClass(this._element, this._triggerArray), this._config.toggle && this.toggle() 946 } 947 948 var o = i.prototype; 949 return o.toggle = function () { 950 t(this._element).hasClass(c) ? this.hide() : this.show() 951 }, o.show = function () { 952 var e, s, r = this; 953 if (!this._isTransitioning && !t(this._element).hasClass(c) && (this._parent && 0 === (e = t.makeArray(t(this._parent).find(p.ACTIVES).filter('[data-parent="' + this._config.parent + '"]'))).length && (e = null), !(e && (s = t(e).not(this._selector).data(n)) && s._isTransitioning))) { 954 var o = t.Event(h.SHOW); 955 if (t(this._element).trigger(o), !o.isDefaultPrevented()) { 956 e && (i._jQueryInterface.call(t(e).not(this._selector), "hide"), s || t(e).data(n, null)); 957 var a = this._getDimension(); 958 t(this._element).removeClass(u).addClass(f), this._element.style[a] = 0, this._triggerArray.length > 0 && t(this._triggerArray).removeClass(d).attr("aria-expanded", !0), this.setTransitioning(!0); 959 var l = function () { 960 t(r._element).removeClass(f).addClass(u).addClass(c), r._element.style[a] = "", r.setTransitioning(!1), t(r._element).trigger(h.SHOWN) 961 };
962 if (P.supportsTransitionEnd()) { 963 var _ = "scroll" + (a[0].toUpperCase() + a.slice(1)); 964 t(this._element).one(P.TRANSITION_END, l).emulateTransitionEnd(600), this._element.style[a] = this._element[_] + "px" 965 } else l() 966 } 967 } 968 }, o.hide = function () { 969 var e = this; 970 if (!this._isTransitioning && t(this._element).hasClass(c)) { 971 var n = t.Event(h.HIDE); 972 if (t(this._element).trigger(n), !n.isDefaultPrevented()) { 973 var i = this._getDimension(); 974 if (this._element.style[i] = this._element.getBoundingClientRect()[i] + "px", P.reflow(this._element), t(this._element).addClass(f).removeClass(u).removeClass(c), this._triggerArray.length > 0) for (var s = 0; s < this._triggerArray.length; s++) { 975 var r = this._triggerArray[s], o = P.getSelectorFromElement(r); 976 if (null !== o) t(o).hasClass(c) || t(r).addClass(d).attr("aria-expanded", !1) 977 } 978 this.setTransitioning(!0); 979 var a = function () { 980 e.setTransitioning(!1), t(e._element).removeClass(f).addClass(u).trigger(h.HIDDEN) 981 }; 982 this._element.style[i] = "", P.supportsTransitionEnd() ? t(this._element).one(P.TRANSITION_END, a).emulateTransitionEnd(600) : a() 983 } 984 } 985 }, o.setTransitioning = function (t) { 986 this._isTransitioning = t 987 }, o.dispose = function () { 988 t.removeData(this._element, n), this._config = null, this._parent = null, this._element = null, this._triggerArray = null, this._isTransitioning = null 989 }, o._getConfig = function (t) { 990 return (t = r({}, a, t)).toggle = Boolean(t.toggle), P.typeCheckConfig(e, t, l), t 991 }, o._getDimension = function () { 992 return t(this._element).hasClass(_) ? _ : g 993 }, o._getParent = function () { 994 var e = this, n = null; 995 P.isElement(this._config.parent) ? (n = this._config.parent, "undefined" != typeof this._config.parent.jquery && (n = this._config.parent[0])) : n = t(this._config.parent)[0]; 996 var s = '[data-toggle="collapse"][data-parent="' + this._config.parent + '"]'; 997 return t(n).find(s).each(function (t, n) { 998 e._addAriaAndCollapsedClass(i._getTargetFromElement(n), [n]) 999 }), n 1000 }, o._addAriaAndCollapsedClass = function (e, n) { 1001 if (e) { 1002 var i = t(e).hasClass(c); 1003 n.length > 0 && t(n).toggleClass(d, !i).attr("aria-expanded", i) 1004 } 1005 }, i._getTargetFromElement = function (e) { 1006 var n = P.getSelectorFromElement(e); 1007 return n ? t(n)[0] : null 1008 }, i._jQueryInterface = function (e) { 1009 return this.each(function () { 1010 var s = t(this), o = s.data(n), l = r({}, a, s.data(), "object" == typeof e && e); 1011 if (!o && l.toggle && /show|hide/.test(e) && (l.toggle = !1), o || (o = new i(this, l), s.data(n, o)), "string" == typeof e) { 1012 if ("undefined" == typeof o[e]) throw new TypeError('No method named "' + e + '"'); 1013 o[e]() 1014 } 1015 }) 1016 }, s(i, null, [{ 1017 key: "VERSION", get: function () { 1018 return "4.0.0" 1019 } 1020 }, { 1021 key: "Default", get: function () { 1022 return a 1023 } 1024 }]), i 1025 }(); 1026 return t(document).on(h.CLICK_DATA_API, p.DATA_TOGGLE, function (e) { 1027 "A" === e.currentTarget.tagName && e.preventDefault(); 1028 var i = t(this), s = P.getSelectorFromElement(this); 1029 t(s).each(function () { 1030 var e = t(this), s = e.data(n) ? "toggle" : i.data(); 1031 m._jQueryInterface.call(e, s) 1032 }) 1033 }), t.fn[e] = m._jQueryInterface, t.fn[e].Constructor = m, t.fn[e].noConflict = function () { 1034 return t.fn[e] = o, m._jQueryInterface 1035 }, m 1036 }(e), W = function (t) { 1037 var e = "dropdown", i = "bs.dropdown", o = "." + i, a = ".data-api", l = t.fn[e], h = new RegExp("38|40|27"), 1038 c = { 1039 HIDE: "hide" + o, 1040 HIDDEN: "hidden" + o, 1041 SHOW: "show" + o, 1042 SHOWN: "shown" + o, 1043 CLICK: "click" + o, 1044 CLICK_DATA_API: "click" + o + a, 1045 KEYDOWN_DATA_API: "keydown" + o + a, 1046 KEYUP_DATA_API: "keyup" + o + a 1047 }, u = "disabled", f = "show", d = "dropup", _ = "dropright", g = "dropleft", p = "dropdown-menu-right", 1048 m = "dropdown-menu-left", v = "position-static", E = '[data-toggle="dropdown"]', T = ".dropdown form", 1049 y = ".dropdown-menu", C = ".navbar-nav", I = ".dropdown-menu .dropdown-item:not(.disabled)", 1050 A = "top-start", b = "top-end", D = "bottom-start", S = "bottom-end", w = "right-start", N = "left-start", 1051 O = {offset: 0, flip: !0, boundary: "scrollParent"}, 1052 k = {offset: "(number|string|function)", flip: "boolean", boundary: "(string|element)"}, L = function () { 1053 function a(t, e) { 1054 this._element = t, this._popper = null, this._config = this._getConfig(e), this._menu = this._getMenuElement(), this._inNavbar = this._detectNavbar(), this._addEventListeners() 1055 } 1056 1057 var l = a.prototype; 1058 return l.toggle = function () { 1059 if (!this._element.disabled && !t(this._element).hasClass(u)) { 1060 var e = a._getParentFromElement(this._element), i = t(this._menu).hasClass(f); 1061 if (a._clearMenus(), !i) { 1062 var s = {relatedTarget: this._element}, r = t.Event(c.SHOW, s); 1063 if (t(e).trigger(r), !r.isDefaultPrevented()) { 1064 if (!this._inNavbar) { 1065 if ("undefined" == typeof n) throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)"); 1066 var o = this._element; 1067 t(e).hasClass(d) && (t(this._menu).hasClass(m) || t(this._menu).hasClass(p)) && (o = e), "scrollParent" !== this._config.boun
1067dary && t(e).addClass(v), this._popper = new n(o, this._menu, this._getPopperConfig()) 1068 } 1069 "ontouchstart" in document.documentElement && 0 === t(e).closest(C).length && t("body").children().on("mouseover", null, t.noop), this._element.focus(), this._element.setAttribute("aria-expanded", !0), t(this._menu).toggleClass(f), t(e).toggleClass(f).trigger(t.Event(c.SHOWN, s)) 1070 } 1071 } 1072 } 1073 }, l.dispose = function () { 1074 t.removeData(this._element, i), t(this._element).off(o), this._element = null, this._menu = null, null !== this._popper && (this._popper.destroy(), this._popper = null) 1075 }, l.update = function () { 1076 this._inNavbar = this._detectNavbar(), null !== this._popper && this._popper.scheduleUpdate() 1077 }, l._addEventListeners = function () { 1078 var e = this; 1079 t(this._element).on(c.CLICK, function (t) { 1080 t.preventDefault(), t.stopPropagation(), e.toggle() 1081 }) 1082 }, l._getConfig = function (n) { 1083 return n = r({}, this.constructor.Default, t(this._element).data(), n), P.typeCheckConfig(e, n, this.constructor.DefaultType), n 1084 }, l._getMenuElement = function () { 1085 if (!this._menu) { 1086 var e = a._getParentFromElement(this._element); 1087 this._menu = t(e).find(y)[0] 1088 } 1089 return this._menu 1090 }, l._getPlacement = function () { 1091 var e = t(this._element).parent(), n = D; 1092 return e.hasClass(d) ? (n = A, t(this._menu).hasClass(p) && (n = b)) : e.hasClass(_) ? n = w : e.hasClass(g) ? n = N : t(this._menu).hasClass(p) && (n = S), n 1093 }, l._detectNavbar = function () { 1094 return t(this._element).closest(".navbar").length > 0 1095 }, l._getPopperConfig = function () { 1096 var t = this, e = {}; 1097 return "function" == typeof this._config.offset ? e.fn = function (e) { 1098 return e.offsets = r({}, e.offsets, t._config.offset(e.offsets) || {}), e 1099 } : e.offset = this._config.offset, { 1100 placement: this._getPlacement(), 1101 modifiers: { 1102 offset: e, 1103 flip: {enabled: this._config.flip}, 1104 preventOverflow: {boundariesElement: this._config.boundary} 1105 } 1106 } 1107 }, a._jQueryInterface = function (e) { 1108 return this.each(function () { 1109 var n = t(this).data(i); 1110 if (n || (n = new a(this, "object" == typeof e ? e : null), t(this).data(i, n)), "string" == typeof e) { 1111 if ("undefined" == typeof n[e]) throw new TypeError('No method named "' + e + '"'); 1112 n[e]() 1113 } 1114 }) 1115 }, a._clearMenus = function (e) { 1116 if (!e || 3 !== e.which && ("keyup" !== e.type || 9 === e.which)) for (var n = t.makeArray(t(E)), s = 0; s < n.length; s++) { 1117 var r = a._getParentFromElement(n[s]), o = t(n[s]).data(i), l = {relatedTarget: n[s]}; 1118 if (o) { 1119 var h = o._menu; 1120 if (t(r).hasClass(f) && !(e && ("click" === e.type && /input|textarea/i.test(e.target.tagName) || "keyup" === e.type && 9 === e.which) && t.contains(r, e.target))) { 1121 var u = t.Event(c.HIDE, l); 1122 t(r).trigger(u), u.isDefaultPrevented() || ("ontouchstart" in document.documentElement && t("body").children().off("mouseover", null, t.noop), n[s].setAttribute("aria-expanded", "false"), t(h).removeClass(f), t(r).removeClass(f).trigger(t.Event(c.HIDDEN, l))) 1123 } 1124 } 1125 } 1126 }, a._getParentFromElement = function (e) { 1127 var n, i = P.getSelectorFromElement(e); 1128 return i && (n = t(i)[0]), n || e.parentNode 1129 }, a._dataApiKeydownHandler = function (e) { 1130 if ((/input|textarea/i.test(e.target.tagName) ? !(32 === e.which || 27 !== e.which && (40 !== e.which && 38 !== e.which || t(e.target).closest(y).length)) : h.test(e.which)) && (e.preventDefault(), e.stopPropagation(), !this.disabled && !t(this).hasClass(u))) { 1131 var n = a._getParentFromElement(this), i = t(n).hasClass(f); 1132 if ((i || 27 === e.which && 32 === e.which) && (!i || 27 !== e.which && 32 !== e.which)) { 1133 var s = t(n).find(I).get(); 1134 if (0 !== s.length) { 1135 var r = s.indexOf(e.target); 1136 38 === e.which && r > 0 && r--, 40 === e.which && r < s.length - 1 && r++, r < 0 && (r = 0), s[r].focus() 1137 } 1138 } else { 1139 if (27 === e.which) { 1140 var o = t(n).find(E)[0]; 1141 t(o).trigger("focus") 1142 } 1143 t(this).trigger("click") 1144 } 1145 } 1146 }, s(a, null, [{ 1147 key: "VERSION", get: function () { 1148 return "4.0.0" 1149 } 1150 }, { 1151 key: "Default", get: function () { 1152 return O 1153 } 1154 }, { 1155 key: "DefaultType", get: function () { 1156 return k 1157 } 1158 }]), a 1159 }(); 1160 return t(document).on(c.KEYDOWN_DATA_API, E, L._dataApiKeydownHandler).on(c.KEYDOWN_DATA_API, y, L._dataApiKeydownHandler).on(c.CLICK_DATA_API + " " + c.KEYUP_DATA_API, L._clearMenus).on(c.CLICK_DATA_API, E, function (e) { 1161 e.preventDefault(), e.stopPropagation(), L._jQueryInterface.call(t(this), "toggle") 1162 }).on(c.CLICK_DATA_API, T, function (t) { 1163 t.stopPropagation() 1164 }), t.fn[e] = L._jQueryInterface, t.fn[e].Constructor = L, t.fn[e].noConflict = function () { 1165 return t.fn[e] = l, L._jQueryInterface 1166 }, L 1167 }(e), M = function (t) { 1168 var e = "modal", n = "bs.modal", i = "." + n, o = t.fn.modal, 1169 a = {backdrop: !0, keyboard: !0, focus: !0, show: !0}, 1170 l = {backdrop: "(boolean|string)", keyboard: "boolean", focus: "boolean", show: "boolean"}, h = { 1171 HIDE: "hide" + i, 1172 HIDDEN: "hidden" + i, 1173 SHOW: "show" + i, 1174 SHOWN: "shown" + i, 1175 FOCUSIN: "focusin" + i, 1176 RESIZE: "resize" + i, 1177 CLICK_DISMISS: "click.dismiss" + i, 1178 KEYDOWN_DISMISS: "keydown.dismiss" + i, 1179 MOUSEUP_DISMISS: "mouseup.dismiss" + i, 1180 MOUSEDOWN_DISMISS: "mousedown.dismiss" + i, 1181 CLICK_DATA_API: "click" + i + ".data-api" 1182 }
1182, c = "modal-scrollbar-measure", u = "modal-backdrop", f = "modal-open", d = "fade", _ = "show", g = { 1183 DIALOG: ".modal-dialog", 1184 DATA_TOGGLE: '[data-toggle="modal"]', 1185 DATA_DISMISS: '[data-dismiss="modal"]', 1186 FIXED_CONTENT: ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", 1187 STICKY_CONTENT: ".sticky-top", 1188 NAVBAR_TOGGLER: ".navbar-toggler" 1189 }, p = function () { 1190 function o(e, n) { 1191 this._config = this._getConfig(n), this._element = e, this._dialog = t(e).find(g.DIALOG)[0], this._backdrop = null, this._isShown = !1, this._isBodyOverflowing = !1, this._ignoreBackdropClick = !1, this._originalBodyPadding = 0, this._scrollbarWidth = 0 1192 } 1193 1194 var p = o.prototype; 1195 return p.toggle = function (t) { 1196 return this._isShown ? this.hide() : this.show(t) 1197 }, p.show = function (e) { 1198 var n = this; 1199 if (!this._isTransitioning && !this._isShown) { 1200 P.supportsTransitionEnd() && t(this._element).hasClass(d) && (this._isTransitioning = !0); 1201 var i = t.Event(h.SHOW, {relatedTarget: e}); 1202 t(this._element).trigger(i), this._isShown || i.isDefaultPrevented() || (this._isShown = !0, this._checkScrollbar(), this._setScrollbar(), this._adjustDialog(), t(document.body).addClass(f), this._setEscapeEvent(), this._setResizeEvent(), t(this._element).on(h.CLICK_DISMISS, g.DATA_DISMISS, function (t) { 1203 return n.hide(t) 1204 }), t(this._dialog).on(h.MOUSEDOWN_DISMISS, function () { 1205 t(n._element).one(h.MOUSEUP_DISMISS, function (e) { 1206 t(e.target).is(n._element) && (n._ignoreBackdropClick = !0) 1207 }) 1208 }), this._showBackdrop(function () { 1209 return n._showElement(e) 1210 })) 1211 } 1212 }, p.hide = function (e) { 1213 var n = this; 1214 if (e && e.preventDefault(), !this._isTransitioning && this._isShown) { 1215 var i = t.Event(h.HIDE); 1216 if (t(this._element).trigger(i), this._isShown && !i.isDefaultPrevented()) { 1217 this._isShown = !1; 1218 var s = P.supportsTransitionEnd() && t(this._element).hasClass(d); 1219 s && (this._isTransitioning = !0), this._setEscapeEvent(), this._setResizeEvent(), t(document).off(h.FOCUSIN), t(this._element).removeClass(_), t(this._element).off(h.CLICK_DISMISS), t(this._dialog).off(h.MOUSEDOWN_DISMISS), s ? t(this._element).one(P.TRANSITION_END, function (t) { 1220 return n._hideModal(t) 1221 }).emulateTransitionEnd(300) : this._hideModal() 1222 } 1223 } 1224 }, p.dispose = function () { 1225 t.removeData(this._element, n), t(window, document, this._element, this._backdrop).off(i), this._config = null, this._element = null, this._dialog = null, this._backdrop = null, this._isShown = null, this._isBodyOverflowing = null, this._ignoreBackdropClick = null, this._scrollbarWidth = null 1226 }, p.handleUpdate = function () { 1227 this._adjustDialog() 1228 }, p._getConfig = function (t) { 1229 return t = r({}, a, t), P.typeCheckConfig(e, t, l), t 1230 }, p._showElement = function (e) { 1231 var n = this, i = P.supportsTransitionEnd() && t(this._element).hasClass(d); 1232 this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE || document.body.appendChild(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.scrollTop = 0, i && P.reflow(this._element), t(this._element).addClass(_), this._config.focus && this._enforceFocus(); 1233 var s = t.Event(h.SHOWN, {relatedTarget: e}), r = function () { 1234 n._config.focus && n._element.focus(), n._isTransitioning = !1, t(n._element).trigger(s) 1235 }; 1236 i ? t(this._dialog).one(P.TRANSITION_END, r).emulateTransitionEnd(300) : r() 1237 }, p._enforceFocus = function () { 1238 var e = this; 1239 t(document).off(h.FOCUSIN).on(h.FOCUSIN, function (n) { 1240 document !== n.target && e._element !== n.target && 0 === t(e._element).has(n.target).length && e._element.focus() 1241 }) 1242 }, p._setEscapeEvent = function () { 1243 var e = this; 1244 this._isShown && this._config.keyboard ? t(this._element).on(h.KEYDOWN_DISMISS, function (t) { 1245 27 === t.which && (t.preventDefault(), e.hide()) 1246 }) : this._isShown || t(this._element).off(h.KEYDOWN_DISMISS) 1247 }, p._setResizeEvent = function () { 1248 var e = this; 1249 this._isShown ? t(window).on(h.RESIZE, function (t) { 1250 return e.handleUpdate(t) 1251 }) : t(window).off(h.RESIZE) 1252 }, p._hideModal = function () { 1253 var e = this; 1254 this._element.style.display = "none", this._element.setAttribute("aria-hidden", !0), this._isTransitioning = !1, this._showBackdrop(function () { 1255 t(document.body).removeClass(f), e._resetAdjustments(), e._resetScrollbar(), t(e._element).trigger(h.HIDDEN) 1256 }) 1257 }, p._removeBackdrop = function () { 1258 this._backdrop && (t(this._backdrop).remove(), this._backdrop = null) 1259 }, p._showBackdrop = function (e) { 1260 var n = this, i = t(this._element).hasClass(d) ? d : ""; 1261 if (this._isShown && this._config.backdrop) { 1262 var s = P.supportsTransitionEnd() && i; 1263 if (this._backdrop = document.createElement("div"), this._backdrop.className = u, i && t(this._backdrop).addClass(i), t(this._backdrop).appendTo(document.body), t(this._element).on(h.CLICK_DISMISS, function (t) { 1264 n._ignoreBackdropClick ? n._ignoreBackdropClick = !1 : t.target === t.currentTarget && ("static" === n._config.backdrop ? n._element.focus() : n.hide()) 1265 }), s && P.reflow(this._backdrop), t(this._backdrop).addClass(_), !e) return; 1266 if (!s) return void e(); 1267 t(this._backdrop).one(P.TRANSITION_END, e).emulateTransitionEnd(150) 1268 } else if (!this._isShown && this._backdrop) { 1269 t(this._backdrop).removeClass(_); 1270 var r = function () { 1271 n._removeBackdrop(), e && e() 1272 }; 1273 P.supportsTransitionEnd() && t(this._element).hasClass(d) ? t(this._backdrop).one(P.TRANSITION_END, r).emulateTransitionEnd(150) : r() 1274 } else e && e() 1275 }, p._adjustDialog = function () { 1276 var t = this._element.scrollHeight > document.documentElement.clientHeight; 1277 !this._isBodyOverflowing && t && (this._element.style.paddingLeft = this._scrollbarWidth + "px"), this._isBodyOverflowing && !t && (this._element.style.paddingRight = this._scrollbarWidth + "px") 1278 }, p._resetAdjustments = function () { 1279 this._element.style.paddingLeft = "", this._element.style.paddingRight = "" 1280 }, p._checkScrollbar = function () { 1281 var t = document.body.getBoundingClientRect(); 1282 this._isBodyOverflowing = t.left + t.right < window.innerWidth, this._scrollbarWidth = this._getScrollbarWidth() 1283 }, p._setScrollbar = function () { 1284 var e = this; 1285 if (this._isBodyOverflowing) { 1286 t(g.FIXED_CONTENT).each(function (n, i) { 1287 var s = t(i)[0].style.paddingRight, r = t(i).css("padding-right"); 1288 t(i).data("padding-right", s).css("padding-right", parseFloat(r) + e._scrollbarWidth + "px") 1289 }), t(g.STICKY_CONTENT).each(function (n, i) { 1290 var s = t(i)[0].style.marginRight, r = t(i).css("margin-right"); 1291 t(i).data("margin-right", s).css("margin-right", parseFloat(r) - e._scrollbarWidth + "px") 1292 }), t(g.NAVBAR_TOGGLER).each(function (n, i) { 1293 var s = t(i)[0].style.marginRight, r = t(i).css("margin-right"); 1294 t(i).data("margin-right", s).css("margin-right", parseFloat(r) + e._scrollbarWidth + "px") 1295 }); 1296 var n = document.body.style.paddingRight, i = t("body").css("padding-right"); 1297 t("body").data("padding-right", n).css("padding-right", parseFloat(i) + this._scrollbarWidth + "px") 1298 } 1299 }, p._resetScrollbar = function () { 1300 t(g.FIXED_CONTENT).each(function (e, n) { 1301 var i = t(n).data("padding-right"); 1302 "undefined" != typeof i && t(n).css("padding-right", i).removeData("padding-right") 1303 }), t(g.STICKY_CONTENT + ", " + g.NAVBAR_TOGGLER).each(function (e, n) { 1304 var i = t(n).data("margin-right"); 1305 "undefined" != typeof i && t(n).css("margin-right", i).removeData("margin-right") 1306 }); 1307 var e = t("body").data("padding-right"); 1308 "undefined" != typeof e && t("body").css("padding-right", e).removeData("padding-right") 1309 }, p._getScrollbarWidth = function () { 1310 var t = document.createElement("div"); 1311 t.className = c, document.body.appendChild(t); 1312 var e = t.getBoundingClientRect().width - t.clientWidth; 1313 return document.body.removeChild(t), e 1314 }, o._jQueryInterface = function (e, i) { 1315 return this.each(function () { 1316 var s = t(this).data(n), a = r({}, o.Default, t(this).data(), "object" == typeof e && e); 1317 if (s || (s = new o(this, a), t(this).data(n, s)), "string" == typeof e) { 1318 if ("undefined" == typeof s[e]) throw new TypeError('No method n
1318amed "' + e + '"'); 1319 s[e](i) 1320 } else a.show && s.show(i) 1321 }) 1322 }, s(o, null, [{ 1323 key: "VERSION", get: function () { 1324 return "4.0.0" 1325 } 1326 }, { 1327 key: "Default", get: function () { 1328 return a 1329 } 1330 }]), o 1331 }(); 1332 return t(document).on(h.CLICK_DATA_API, g.DATA_TOGGLE, function (e) { 1333 var i, s = this, o = P.getSelectorFromElement(this); 1334 o && (i = t(o)[0]); 1335 var a = t(i).data(n) ? "toggle" : r({}, t(i).data(), t(this).data()); 1336 "A" !== this.tagName && "AREA" !== this.tagName || e.preventDefault(); 1337 var l = t(i).one(h.SHOW, function (e) { 1338 e.isDefaultPrevented() || l.one(h.HIDDEN, function () { 1339 t(s).is(":visible") && s.focus() 1340 }) 1341 }); 1342 p._jQueryInterface.call(t(i), a, this) 1343 }), t.fn.modal = p._jQueryInterface, t.fn.modal.Constructor = p, t.fn.modal.noConflict = function () { 1344 return t.fn.modal = o, p._jQueryInterface 1345 }, p 1346 }(e), U = function (t) { 1347 var e = "tooltip", i = "bs.tooltip", o = "." + i, a = t.fn[e], l = new RegExp("(^|\\s)bs-tooltip\\S+", "g"), 1348 h = { 1349 animation: "boolean", 1350 template: "string", 1351 title: "(string|element|function)", 1352 trigger: "string", 1353 delay: "(number|object)", 1354 html: "boolean", 1355 selector: "(string|boolean)", 1356 placement: "(string|function)", 1357 offset: "(number|string)", 1358 container: "(string|element|boolean)", 1359 fallbackPlacement: "(string|array)", 1360 boundary: "(string|element)" 1361 }, c = {AUTO: "auto", TOP: "top", RIGHT: "right", BOTTOM: "bottom", LEFT: "left"}, u = { 1362 animation: !0, 1363 template: '<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>', 1364 trigger: "hover focus", 1365 title: "", 1366 delay: 0, 1367 html: !1, 1368 selector: !1, 1369 placement: "top", 1370 offset: 0, 1371 container: !1, 1372 fallbackPlacement: "flip", 1373 boundary: "scrollParent" 1374 }, f = "show", d = "out", _ = { 1375 HIDE: "hide" + o, 1376 HIDDEN: "hidden" + o, 1377 SHOW: "show" + o, 1378 SHOWN: "shown" + o, 1379 INSERTED: "inserted" + o, 1380 CLICK: "click" + o, 1381 FOCUSIN: "focusin" + o, 1382 FOCUSOUT: "focusout" + o, 1383 MOUSEENTER: "mouseenter" + o, 1384 MOUSELEAVE: "mouseleave" + o 1385 }, g = "fade", p = "show", m = ".tooltip-inner", v = ".arrow", E = "hover", T = "focus", y = "click", 1386 C = "manual", I = function () { 1387 function a(t, e) { 1388 if ("undefined" == typeof n) throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)"); 1389 this._isEnabled = !0, this._timeout = 0, this._hoverState = "", this._activeTrigger = {}, this._popper = null, this.element = t, this.config = this._getConfig(e), this.tip = null, this._setListeners() 1390 } 1391 1392 var I = a.prototype; 1393 return I.enable = function () { 1394 this._isEnabled = !0 1395 }, I.disable = function () { 1396 this._isEnabled = !1 1397 }, I.toggleEnabled = function () { 1398 this._isEnabled = !this._isEnabled 1399 }, I.toggle = function (e) { 1400 if (this._isEnabled) if (e) { 1401 var n = this.constructor.DATA_KEY, i = t(e.currentTarget).data(n); 1402 i || (i = new this.constructor(e.currentTarget, this._getDelegateConfig()), t(e.currentTarget).data(n, i)
1402), i._activeTrigger.click = !i._activeTrigger.click, i._isWithActiveTrigger() ? i._enter(null, i) : i._leave(null, i) 1403 } else { 1404 if (t(this.getTipElement()).hasClass(p)) return void this._leave(null, this); 1405 this._enter(null, this) 1406 } 1407 }, I.dispose = function () { 1408 clearTimeout(this._timeout), t.removeData(this.element, this.constructor.DATA_KEY), t(this.element).off(this.constructor.EVENT_KEY), t(this.element).closest(".modal").off("hide.bs.modal"), this.tip && t(this.tip).remove(), this._isEnabled = null, this._timeout = null, this._hoverState = null, this._activeTrigger = null, null !== this._popper && this._popper.destroy(), this._popper = null, this.element = null, this.config = null, this.tip = null 1409 }, I.show = function () { 1410 var e = this; 1411 if ("none" === t(this.element).css("display")) throw new Error("Please use show on visible elements"); 1412 var i = t.Event(this.constructor.Event.SHOW); 1413 if (this.isWithContent() && this._isEnabled) { 1414 t(this.element).trigger(i); 1415 var s = t.contains(this.element.ownerDocument.documentElement, this.element); 1416 if (i.isDefaultPrevented() || !s) return; 1417 var r = this.getTipElement(), o = P.getUID(this.constructor.NAME); 1418 r.setAttribute("id", o), this.element.setAttribute("aria-describedby", o), this.setContent(), this.config.animation && t(r).addClass(g); 1419 var l = "function" == typeof this.config.placement ? this.config.placement.call(this, r, this.element) : this.config.placement, 1420 h = this._getAttachment(l); 1421 this.addAttachmentClass(h); 1422 var c = !1 === this.config.container ? document.body : t(this.config.container); 1423 t(r).data(this.constructor.DATA_KEY, this), t.contains(this.element.ownerDocument.documentElement, this.tip) || t(r).appendTo(c), t(this.element).trigger(this.constructor.Event.INSERTED), this._popper = new n(this.element, r, { 1424 placement: h, 1425 modifiers: { 1426 offset: {offset: this.config.offset}, 1427 flip: {behavior: this.config.fallbackPlacement}, 1428 arrow: {element: v}, 1429 preventOverflow: {boundariesElement: this.config.boundary} 1430 }, 1431 onCreate: function (t) { 1432 t.originalPlacement !== t.placement && e._handlePopperPlacementChange(t) 1433 }, 1434 onUpdate: function (t) { 1435 e._handlePopperPlacementChange(t) 1436 } 1437 }), t(r).addClass(p), "ontouchstart" in document.documentElement && t("body").children().on("mouseover", null, t.noop); 1438 var u = function () { 1439 e.config.animation && e._fixTransition(); 1440 var n = e._hoverState; 1441 e._hoverState = null, t(e.element).trigger(e.constructor.Event.SHOWN), n === d && e._leave(null, e) 1442 }; 1443 P.supportsTransitionEnd() && t(this.tip).hasClass(g) ? t(this.tip).one(P.TRANSITION_END, u).emulateTransitionEnd(a._TRANSITION_DURATION) : u() 1444 } 1445 }, I.hide = function (e) { 1446 var n = this, i = this.getTipElement(), s = t.Event(this.constructor.Event.HIDE), r = function () { 1447 n._hoverState !== f && i.parentNode && i.parentNode.removeChild(i), n._cleanTipClass(), n.element.removeAttribute("aria-describedby"), t(n.element).trigger(n.constructor.Event.HIDDEN), null !== n._popper && n._popper.destroy(), e && e() 1448 }; 1449 t(this.element).trigger(s), s.isDefaultPrevented() || (t(i).removeClass(p), "ontouchstart" in document.documentElement && t("body").children().off("mouseover", null, t.noop), this._activeTrigger[y] = !1, this._activeTrigger[T] = !1, this._activeTrigger[E] = !1, P.supportsTransitionEnd() && t(this.tip).hasClass(g) ? t(i).one(P.TRANSITION_END, r).emulateTransitionEnd(150) : r(), this._hoverState = "") 1450 }, I.update = function () { 1451 null !== this._popper && this._popper.scheduleUpdate() 1452 }, I.isWithContent = function () { 1453 return Boolean(this.getTitle()) 1454 }, I.addAttachmentClass = function (e) { 1455 t(this.getTipElement()).addClass("bs-tooltip-" + e) 1456 }, I.getTipElement = function () { 1457 return this.tip = this.tip || t(this.config.template)[0], this.tip 1458 }, I.setContent = function () { 1459 var e = t(this.getTipElement()); 1460 this.setElementContent(e.find(m), this.getTitle()), e.removeClass(g + " " + p) 1461 }, I.setElementContent = function (e, n) { 1462 var i = this.config.html; 1463 "object" == typeof n && (n.nodeType || n.jquery) ? i ? t(n).parent().is(e) || e.empty().append(n) : e.text(t(n).text()) : e[i ? "html" : "text"](n) 1464 }, I.getTitle = function () { 1465 var t = this.element.getAttribute("data-original-title"); 1466 return t || (t = "function" == typeof this.config.title ? this.config.title.call(this.element) : this.config.title), t 1467 }, I._getAttachment = function (t) { 1468 return c[t.toUpperCase()] 1469 }, I._setListeners = function () { 1470 var e = this; 1471 this.config.trigger.split(" ").forEach(function (n) { 1472 if ("click" === n) t(e.element).on(e.constructor.Event.CLICK, e.config.selector, function (t) { 1473 return e.toggle(t) 1474 }); else if (n !== C) { 1475 var i = n === E ? e.constructor.Event.MOUSEENTER : e.constructor.Event.FOCUSIN, 1476 s = n === E ? e.constructor.Event.MOUSELEAVE : e.constructor.Event.FOCUSOUT; 1477 t(e.element).on(i, e.config.selector, function (t) { 1478 return e._enter(t) 1479 }).on(s, e.config.selector, function (t) { 1480 return e._leave(t) 1481 }) 1482 } 1483 t(e.element).closest(".modal").on("hide.bs.modal", function () { 1484 return e.hide() 1485 }) 1486 }), this.config.selector ? this.config = r({}, this.config, { 1487 trigger: "manual", 1488 selector: "" 1489 }) : this._fixTitle() 1490 }, I._fixTitle = function () { 1491 var t = typeof this.element.getAttribute("data-original-title"); 1492 (this.element.getAttribute("title") || "string" !== t) && (this.element.setAttribute("data-original-title", this.element.getAttribute("title") || ""), this.element.setAttribute("title", "")) 1493 }, I._enter = function (e, n) { 1494 var i = this.constructor.DATA_KEY; 1495 (n = n || t(e.currentTarget).data(i)) || (n = new this.constructor(e.currentTarget, this._getDelegateConfig()), t(e.currentTarget).data(i, n)), e && (n._activeTrigger["focusin" === e.type ? T : E] = !0), t(n.getTipElement()).hasClass(p) || n._hoverState === f ? n._hoverState = f : (clearTimeout(n._timeout), n._hoverState = f, n.config.delay && n.config.delay.show ? n._timeout = setTimeout(function () { 1496 n._hoverState === f && n.show() 1497 }, n.config.delay.show) : n.show()) 1498 }, I._leave = function (e, n) { 1499 var i = this.constructor.DATA_KEY; 1500 (n = n || t(e.currentTarget).data(i)) || (n = new this.constructor(e.currentTarget, this._getDelegateConfig()), t(e.currentTarget).data(i, n)), e && (n._activeTrigger["focusout" === e.type ? T : E] = !1), n._isWithActiveTrigger() || (clearTimeout(n._timeout), n._hoverState = d, n.config.delay && n.config.delay.hide ? n._timeout = setTimeout(function () { 1501 n._hoverState === d && n.hide() 1502 }, n.config.delay.hide) : n.hide()) 1503 }, I._isWithActiveTrigger = function () { 1504 for (var t in this._activeTrigger) if (this._activeTrigger[t]) return !0; 1505 return !1 1506 }, I._getConfig = function (n) { 1507 return "number" == typeof (n = r({}, this.constructor.Default, t(this.element).data(), n)).delay && (n.delay = { 1508 show: n.delay, 1509 hide: n.delay 1510 }), "number" == typeof n.title && (n.title = n.title.toString()), "number" == typeof n.content && (n.content = n.content.toString()), P.typeCheckConfig(e, n, this.constructor.DefaultType), n 1511 }, I._getDelegateConfig = function () { 1512 var t = {}; 1513 if (this.config) for (var e in this.config) this.constructor.Default[e] !== this.config[e] && (t[e] = this.config[e]); 1514 return t 1515 }, I._cleanTipClass = function () { 1516 var e = t(this.getTipElement()), n = e.attr("class").match(l); 1517 null !== n && n.length > 0 && e.removeClass(n.join("")) 1518 }, I._handlePopperPlacementChange = function (t) { 1519 this._cleanTipClass(), this.addAttachmentClass(this._getAttachment(t.placement)) 1520 }, I._fixTransition = function () { 1521 var e = this.getTipElement(), n = this.config.animation; 1522 null === e.getAttribute("x-placement") && (t(e).removeClass(g), this.config.animation = !1, this.hide(), this.show(), this.config.animation = n) 1523 }, a._jQueryInterface = function (e) { 1524 return this.each(function () { 1525 var n = t(this).data(i), s = "object" == typeof e && e; 1526 if ((n || !/dispose|hide/.test(e)) && (n || (n = new a(this, s), t(this).data(i, n)), "string" == typeof e)) { 1527 if ("undefined" == typeof n[e]) throw new TypeError('No method n
1527amed "' + e + '"'); 1528 n[e]() 1529 } 1530 }) 1531 }, s(a, null, [{ 1532 key: "VERSION", get: function () { 1533 return "4.0.0" 1534 } 1535 }, { 1536 key: "Default", get: function () { 1537 return u 1538 } 1539 }, { 1540 key: "NAME", get: function () { 1541 return e 1542 } 1543 }, { 1544 key: "DATA_KEY", get: function () { 1545 return i 1546 } 1547 }, { 1548 key: "Event", get: function () { 1549 return _ 1550 } 1551 }, { 1552 key: "EVENT_KEY", get: function () { 1553 return o 1554 } 1555 }, { 1556 key: "DefaultType", get: function () { 1557 return h 1558 } 1559 }]), a 1560 }(); 1561 return t.fn[e] = I._jQueryInterface, t.fn[e].Constructor = I, t.fn[e].noConflict = function () { 1562 return t.fn[e] = a, I._jQueryInterface 1563 }, I 1564 }(e), x = function (t) { 1565 var e = "popover", n = "bs.popover", i = "." + n, o = t.fn[e], a = new RegExp("(^|\\s)bs-popover\\S+", "g"), 1566 l = r({}, U.Default, { 1567 placement: "right", 1568 trigger: "click", 1569 content: "", 1570 template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>' 1571 }), h = r({}, U.DefaultType, {content: "(string|element|function)"}), c = "fade", u = "show", 1572 f = ".popover-header", d = ".popover-body", _ = { 1573 HIDE: "hide" + i, 1574 HIDDEN: "hidden" + i, 1575 SHOW: "show" + i, 1576 SHOWN: "shown" + i, 1577 INSERTED: "inserted" + i, 1578 CLICK: "click" + i, 1579 FOCUSIN: "focusin" + i, 1580 FOCUSOUT: "focusout" + i, 1581 MOUSEENTER: "mouseenter" + i, 1582 MOUSELEAVE: "mouseleave" + i 1583 }, g = function (r) { 1584 var o, g; 1585 1586 function p() { 1587 return r.apply(this, arguments) || this 1588 } 1589 1590 g = r, (o = p).prototype = Object.create(g.prototype), o.prototype.constructor = o, o.__proto__ = g; 1591 var m = p.prototype; 1592 return m.isWithContent = function () { 1593 return this.getTitle() || this._getContent() 1594 }, m.addAttachmentClass = function (e) { 1595 t(this.getTipElement()).addClass("bs-popover-" + e) 1596 }, m.getTipElement = function () { 1597 return this.tip = this.tip || t(this.config.template)[0], this.tip 1598 }, m.setContent = function () { 1599 var e = t(this.getTipElement()); 1600 this.setElementContent(e.find(f), this.getTitle()); 1601 var n = this._getContent(); 1602 "function" == typeof n && (n = n.call(this.element)), this.setElementContent(e.find(d), n), e.removeClass(c + " " + u) 1603 }, m._getContent = function () { 1604 return this.element.getAttribute("data-content") || this.config.content 1605 }, m._cleanTipClass = function () { 1606 var e = t(this.getTipElement()), n = e.attr("class").match(a); 1607 null !== n && n.length > 0 && e.removeClass(n.join("")) 1608 }, p._jQueryInterface = function (e) { 1609 return this.each(function () { 1610 var i = t(this).data(n), s = "object" == typeof e ? e : null; 1611 if ((i || !/destroy|hide/.test(e)) && (i || (i = new p(this, s), t(this).data(n, i)
1611), "string" == typeof e)) { 1612 if ("undefined" == typeof i[e]) throw new TypeError('No method named "' + e + '"'); 1613 i[e]() 1614 } 1615 }) 1616 }, s(p, null, [{ 1617 key: "VERSION", get: function () { 1618 return "4.0.0" 1619 } 1620 }, { 1621 key: "Default", get: function () { 1622 return l 1623 } 1624 }, { 1625 key: "NAME", get: function () { 1626 return e 1627 } 1628 }, { 1629 key: "DATA_KEY", get: function () { 1630 return n 1631 } 1632 }, { 1633 key: "Event", get: function () { 1634 return _ 1635 } 1636 }, { 1637 key: "EVENT_KEY", get: function () { 1638 return i 1639 } 1640 }, { 1641 key: "DefaultType", get: function () { 1642 return h 1643 } 1644 }]), p 1645 }(U); 1646 return t.fn[e] = g._jQueryInterface, t.fn[e].Constructor = g, t.fn[e].noConflict = function () { 1647 return t.fn[e] = o, g._jQueryInterface 1648 }, g 1649 }(e), K = function (t) { 1650 var e = "scrollspy", n = "bs.scrollspy", i = "." + n, o = t.fn[e], a = {offset: 10, method: "auto", target: ""}, 1651 l = {offset: "number", method: "string", target: "(string|element)"}, 1652 h = {ACTIVATE: "activate" + i, SCROLL: "scroll" + i, LOAD_DATA_API: "load" + i + ".data-api"}, 1653 c = "dropdown-item", u = "active", f = { 1654 DATA_SPY: '[data-spy="scroll"]', 1655 ACTIVE: ".active", 1656 NAV_LIST_GROUP: ".nav, .list-group", 1657 NAV_LINKS: ".nav-link", 1658 NAV_ITEMS: ".nav-item", 1659 LIST_ITEMS: ".list-group-item", 1660 DROPDOWN: ".dropdown", 1661 DROPDOWN_ITEMS: ".dropdown-item", 1662 DROPDOWN_TOGGLE: ".dropdown-toggle" 1663 }, d = "offset", _ = "position", g = function () { 1664 function o(e, n) { 1665 var i = this; 1666 this._element = e, this._scrollElement = "BODY" === e.tagName ? window : e, this._config = this._getConfig(n), this._selector = this._config.target + " " + f.NAV_LINKS + "," + this._config.target + " " + f.LIST_ITEMS + "," + this._config.target + " " + f.DROPDOWN_ITEMS, this._offsets = [], this._targets = [], this._activeTarget = null, this._scrollHeight = 0, t(this._scrollElement).on(h.SCROLL, function (t) { 1667 return i._process(t) 1668 }), this.refresh(), this._process() 1669 } 1670 1671 var g = o.prototype; 1672 return g.refresh = function () { 1673 var e = this, n = this._scrollElement === this._scrollElement.window ? d : _, 1674 i = "auto" === this._config.method ? n : this._config.method, 1675 s = i === _ ? this._getScrollTop() : 0; 1676 this._offsets = [], this._targets = [], this._scrollHeight = this._getScrollHeight(), t.makeArray(t(this._selector)).map(function (e) { 1677 var n, r = P.getSelectorFromElement(e); 1678 if (r && (n = t(r)[0]), n) { 1679 var o = n.getBoundingClientRect(); 1680 if (o.width || o.height) return [t(n)[i]().top + s, r] 1681 } 1682 return null 1683 }).filter(function (t) { 1684 return t 1685 }).sort(function (t, e) { 1686 return t[0] - e[0] 1687 }
1687).forEach(function (t) { 1688 e._offsets.push(t[0]), e._targets.push(t[1]) 1689 }) 1690 }, g.dispose = function () { 1691 t.removeData(this._element, n), t(this._scrollElement).off(i), this._element = null, this._scrollElement = null, this._config = null, this._selector = null, this._offsets = null, this._targets = null, this._activeTarget = null, this._scrollHeight = null 1692 }, g._getConfig = function (n) { 1693 if ("string" != typeof (n = r({}, a, n)).target) { 1694 var i = t(n.target).attr("id"); 1695 i || (i = P.getUID(e), t(n.target).attr("id", i)), n.target = "#" + i 1696 } 1697 return P.typeCheckConfig(e, n, l), n 1698 }, g._getScrollTop = function () { 1699 return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop 1700 }, g._getScrollHeight = function () { 1701 return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight) 1702 }, g._getOffsetHeight = function () { 1703 return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height 1704 }, g._process = function () { 1705 var t = this._getScrollTop() + this._config.offset, e = this._getScrollHeight(), 1706 n = this._config.offset + e - this._getOffsetHeight(); 1707 if (this._scrollHeight !== e && this.refresh(), t >= n) { 1708 var i = this._targets[this._targets.length - 1]; 1709 this._activeTarget !== i && this._activate(i) 1710 } else { 1711 if (this._activeTarget && t < this._offsets[0] && this._offsets[0] > 0) return this._activeTarget = null, void this._clear(); 1712 for (var s = this._offsets.length; s--;) { 1713 this._activeTarget !== this._targets[s] && t >= this._offsets[s] && ("undefined" == typeof this._offsets[s + 1] || t < this._offsets[s + 1]) && this._activate(this._targets[s]) 1714 } 1715 } 1716 }, g._activate = function (e) { 1717 this._activeTarget = e, this._clear(); 1718 var n = this._selector.split(","); 1719 n = n.map(function (t) { 1720 return t + '[data-target="' + e + '"],' + t + '[href="' + e + '"]' 1721 }); 1722 var i = t(n.join(",")); 1723 i.hasClass(c) ? (i.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(u), i.addClass(u)) : (i.addClass(u), i.parents(f.NAV_LIST_GROUP).prev(f.NAV_LINKS + ", " + f.LIST_ITEMS).addClass(u), i.parents(f.NAV_LIST_GROUP).prev(f.NAV_ITEMS).children(f.NAV_LINKS).addClass(u)), t(this._scrollElement).trigger(h.ACTIVATE, {relatedTarget: e}) 1724 }, g._clear = function () { 1725 t(this._selector).filter(f.ACTIVE).removeClass(u) 1726 }, o._jQueryInterface = function (e) { 1727 return this.each(function () { 1728 var i = t(this).data(n); 1729 if (i || (i = new o(this, "object" == typeof e && e), t(this).data(n, i)), "string" == typeof e) { 1730 if ("undefined" == typeof i[e]) throw new TypeError('No method named "' + e + '"'); 1731 i[e]() 1732 } 1733 }) 1734 }, s(o, null, [{ 1735 key: "VERSION", get: function () { 1736 return "4.0.0" 1737 } 1738 }, { 1739 key: "Default", get: function () { 1740 return a 1741 } 1742 }]), o 1743 }(); 1744 return t(window).on(h.LOAD_DATA_API, function () { 1745 for (var e = t.makeArray(t(f.DATA_SPY)), n = e.length; n--;) { 1746 var i = t(e[n]); 1747 g._jQueryInterface.call(i, i.data()) 1748 } 1749 }), t.fn[e] = g._jQueryInterface, t.fn[e].Constructor = g, t.fn[e].noConflict = function () { 1750 return t.fn[e] = o, g._jQueryInterface 1751 }, g 1752 }(e), V = function (t) { 1753 var e = "bs.tab", n = "." + e, i = t.fn.tab, r = { 1754 HIDE: "hide" + n, 1755 HIDDEN: "hidden" + n, 1756 SHOW: "show" + n, 1757 SHOWN: "shown" + n, 1758 CLICK_DATA_API: "click.bs.tab.data-api" 1759 }, o = "dropdown-menu", a = "active", l = "disabled", h = "fade", c = "show", u = ".dropdown", 1760 f = ".nav, .list-group", d = ".active", _ = "> li > .active", 1761 g = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]', p = ".dropdown-toggle", 1762 m = "> .dropdown-menu .active", v = function () { 1763 function n(t) { 1764 this._element = t 1765 } 1766 1767 var i = n.prototype; 1768 return i.show = function () { 1769 var e = this; 1770 if (!(this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && t(this._element).hasClass(a) || t(this._element).hasClass(l))) { 1771 var n, i, s = t(this._element).closest(f)[0], o = P.getSelectorFromElement(this._element); 1772 if (s) { 1773 var h = "UL" === s.nodeName ? _ : d; 1774 i = (i = t.makeArray(t(s).find(h)))[i.length - 1] 1775 } 1776 var c = t.Event(r.HIDE, {relatedTarget: this._element}), u = t.Event(r.SHOW, {relatedTarget: i}); 1777 if (i && t(i).trigger(c), t(this._element).trigger(u), !u.isDefaultPrevented() && !c.isDefaultPrevented()) { 1778 o && (n = t(o)[0]), this._activate(this._element, s); 1779 var g = function () { 1780 var n = t.Event(r.HIDDEN, {relatedTarget: e._element}), 1781 s = t.Event(r.SHOWN, {relatedTarget: i}); 1782 t(i).trigger(n), t(e._element).trigger(s) 1783 }; 1784 n ? this._activate(n, n.parentNode, g) : g() 1785 } 1786 } 1787 }, i.dispose = function () { 1788 t.removeData(this._element, e), this._element = null 1789 }, i._activate = function (e, n, i) { 1790 var s = this, r = ("UL" === n.nodeName ? t(n).find(_)
vendor: 11,577 bytes, lines 1790-2020
1790: t(n).children(d))[0], 1791 o = i && P.supportsTransitionEnd() && r && t(r).hasClass(h), a = function () { 1792 return s._transitionComplete(e, r, i) 1793 }; 1794 r && o ? t(r).one(P.TRANSITION_END, a).emulateTransitionEnd(150) : a() 1795 }, i._transitionComplete = function (e, n, i) { 1796 if (n) { 1797 t(n).removeClass(c + " " + a); 1798 var s = t(n.parentNode).find(m)[0]; 1799 s && t(s).removeClass(a), "tab" === n.getAttribute("role") && n.setAttribute("aria-selected", !1) 1800 } 1801 if (t(e).addClass(a), "tab" === e.getAttribute("role") && e.setAttribute("aria-selected", !0), P.reflow(e), t(e).addClass(c), e.parentNode && t(e.parentNode).hasClass(o)) { 1802 var r = t(e).closest(u)[0]; 1803 r && t(r).find(p).addClass(a), e.setAttribute("aria-expanded", !0) 1804 } 1805 i && i() 1806 }, n._jQueryInterface = function (i) { 1807 return this.each(function () { 1808 var s = t(this), r = s.data(e); 1809 if (r || (r = new n(this), s.data(e, r)), "string" == typeof i) { 1810 if ("undefined" == typeof r[i]) throw new TypeError('No method named "' + i + '"'); 1811 r[i]() 1812 } 1813 }) 1814 }, s(n, null, [{ 1815 key: "VERSION", get: function () { 1816 return "4.0.0" 1817 } 1818 }]), n 1819 }(); 1820 return t(document).on(r.CLICK_DATA_API, g, function (e) { 1821 e.preventDefault(), v._jQueryInterface.call(t(this), "show") 1822 }), t.fn.tab = v._jQueryInterface, t.fn.tab.Constructor = v, t.fn.tab.noConflict = function () { 1823 return t.fn.tab = i, v._jQueryInterface 1824 }, v 1825 }(e); 1826 !function (t) { 1827 if ("undefined" == typeof t) throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript."); 1828 var e = t.fn.jquery.split(" ")[0].split("."); 1829 if (e[0] < 2 && e[1] < 9 || 1 === e[0] && 9 === e[1] && e[2] < 1 || e[0] >= 4) throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0") 1830 }(e), t.Util = P, t.Alert = L, t.Button = R, t.Carousel = j, t.Collapse = H, t.Dropdown = W, t.Modal = M, t.Popover = x, t.Scrollspy = K, t.Tab = V, t.Tooltip = U, Object.defineProperty(t, "__esModule", {value: !0}) 1831}); 1832//# sourceMappingURL=bootstrap.min.js.map 1833 1834/** 1835 * Swiper 5.2.0 1836 * Most modern mobile touch slider and framework with hardware accelerated transitions 1837 * http://swiperjs.com 1838 * 1839 * Copyright 2014-2019 Vladimir Kharlampidi 1840 * 1841 * Released under the MIT License 1842 * 1843 * Released on: October 26, 2019 1844 */ 1845 1846!function (e, t) { 1847 "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = e || self).Swiper = t() 1848}(this, (function () { 1849 "use strict"; 1850 var e = "undefined" == typeof document ? { 1851 body: {}, addEventListener: function () { 1852 }, removeEventListener: function () { 1853 }, activeElement: { 1854 blur: function () { 1855 }, nodeName: "" 1856 }, querySelector: function () { 1857 return null 1858 }, querySelectorAll: function () { 1859 return [] 1860 }, getElementById: function () { 1861 return null 1862 }, createEvent: function () { 1863 return { 1864 initEvent: function () { 1865 } 1866 } 1867 }, createElement: function () { 1868 return { 1869 children: [], childNodes: [], style: {}, setAttribute: function () { 1870 }, getElementsByTagName: function () { 1871 return [] 1872 } 1873 } 1874 }, location: {hash: ""} 1875 } : document, t = "undefined" == typeof window ? { 1876 document: e, 1877 navigator: {userAgent: ""}, 1878 location: {}, 1879 history: {}, 1880 CustomEvent: function () { 1881 return this 1882 }, 1883 addEventListener: function () { 1884 }, 1885 removeEventListener: function () { 1886 }, 1887 getComputedStyle: function () { 1888 return { 1889 getPropertyValue: function () { 1890 return "" 1891 } 1892 } 1893 }, 1894 Image: function () { 1895 }, 1896 Date: function () { 1897 }, 1898 screen: {}, 1899 setTimeout: function () { 1900 }, 1901 clearTimeout: function () { 1902 } 1903 } : window, i = function (e) { 1904 for (var t = 0; t < e.length; t += 1) this[t] = e[t]; 1905 return this.length = e.length, this 1906 }; 1907 1908 function s(s, a) { 1909 var r = [], n = 0; 1910 if (s && !a && s instanceof i) return s; 1911 if (s) if ("string" == typeof s) { 1912 var o, l, d = s.trim(); 1913 if (d.indexOf("<") >= 0 && d.indexOf(">") >= 0) { 1914 var h = "div"; 1915 for (0 === d.indexOf("<li") && (h = "ul"), 0 === d.indexOf("<tr") && (h = "tbody"), 0 !== d.indexOf("<td") && 0 !== d.indexOf("<th") || (h = "tr"), 0 === d.indexOf("<tbody") && (h = "table"), 0 === d.indexOf("<option") && (h = "select"), (l = e.createElement(h)).innerHTML = d, n = 0; n < l.childNodes.length; n += 1) r.push(l.childNodes[n]) 1916 } else for (o = a || "#" !== s[0] || s.match(/[ .<>:~]/) ? (a || e).querySelectorAll(s.trim()) : [e.getElementById(s.trim().split("#")[1])], n = 0; n < o.length; n += 1) o[n] && r.push(o[n]) 1917 } else if (s.nodeType || s === t || s === e) r.push(s); else if (s.length > 0 && s[0].nodeType) for (n = 0; n < s.length; n += 1) r.push(s[n]); 1918 return new i(r) 1919 } 1920 1921 function a(e) { 1922 for (var t = [], i = 0; i < e.length; i += 1) -1 === t.indexOf(e[i]) && t.push(e[i]); 1923 return t 1924 } 1925 1926 s.fn = i.prototype, s.Class = i, s.Dom7 = i; 1927 var r = { 1928 addClass: function (e) { 1929 if (void 0 === e) return this; 1930 for (var t = e.split(" "), i = 0; i < t.length; i += 1) for (var s = 0; s < this.length; s += 1) void 0 !== this[s] && void 0 !== this[s].classList && this[s].classList.add(t[i]); 1931 return this 1932 }, removeClass: function (e) { 1933 for (var t = e.split(" "), i = 0; i < t.length; i += 1) for (var s = 0; s < this.length; s += 1) void 0 !== this[s] && void 0 !== this[s].classList && this[s].classList.remove(t[i]); 1934 return this 1935 }, hasClass: function (e) { 1936 return !!this[0] && this[0].classList.contains(e) 1937 }, toggleClass: function (e) { 1938 for (var t = e.split(" "), i = 0; i < t.length; i += 1) for (var s = 0; s < this.length; s += 1) void 0 !== this[s] && void 0 !== this[s].classList && this[s].classList.toggle(t[i]); 1939 return this 1940 }, attr: function (e, t) { 1941 var i = arguments; 1942 if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; 1943 for (var s = 0; s < this.length; s += 1) if (2 === i.length) this[s].setAttribute(e, t); else for (var a in e) this[s][a] = e[a], this[s].setAttribute(a, e[a]); 1944 return this 1945 }, removeAttr: function (e) { 1946 for (var t = 0; t < this.length; t += 1) this[t].removeAttribute(e); 1947 return this 1948 }, data: function (e, t) { 1949 var i; 1950 if (void 0 !== t) { 1951 for (var s = 0; s < this.length; s += 1) (i = this[s]).dom7ElementDataStorage || (i.dom7ElementDataStorage = {}), i.dom7ElementDataStorage[e] = t; 1952 return this 1953 } 1954 if (i = this[0]) { 1955 if (i.dom7ElementDataStorage && e in i.dom7ElementDataStorage) return i.dom7ElementDataStorage[e]; 1956 var a = i.getAttribute("data-" + e); 1957 return a || void 0 1958 } 1959 }, transform: function (e) { 1960 for (var t = 0; t < this.length; t += 1) { 1961 var i = this[t].style; 1962 i.webkitTransform = e, i.transform = e 1963 } 1964 return this 1965 }, transition: function (e) { 1966 "string" != typeof e && (e += "ms"); 1967 for (var t = 0; t < this.length; t += 1) { 1968 var i = this[t].style; 1969 i.webkitTransitionDuration = e, i.transitionDuration = e 1970 } 1971 return this 1972 }, on: function () { 1973 for (var e, t = [], i = arguments.length; i--;) t[i] = arguments[i]; 1974 var a = t[0], r = t[1], n = t[2], o = t[3]; 1975 1976 function l(e) { 1977 var t = e.target; 1978 if (t) { 1979 var i = e.target.dom7EventData || []; 1980 if (i.indexOf(e) < 0 && i.unshift(e), s(t).is(r)) n.apply(t, i); else for (var a = s(t).parents(), o = 0; o < a.length; o += 1) s(a[o]).is(r) && n.apply(a[o], i) 1981 } 1982 } 1983 1984 function d(e) { 1985 var t = e && e.target && e.target.dom7EventData || []; 1986 t.indexOf(e) < 0 && t.unshift(e), n.apply(this, t) 1987 } 1988 1989 "function" == typeof t[1] && (a = (e = t)[0], n = e[1], o = e[2], r = void 0), o || (o = !1); 1990 for (var h, p = a.split(" "), c = 0; c < this.length; c += 1) { 1991 var u = this[c]; 1992 if (r) for (h = 0; h < p.length; h += 1) { 1993 var v = p[h]; 1994 u.dom7LiveListeners || (u.dom7LiveListeners = {}), u.dom7LiveListeners[v] || (u.dom7LiveListeners[v] = []), u.dom7LiveListeners[v].push({ 1995 listener: n, 1996 proxyListener: l 1997 }), u.addEventListener(v, l, o) 1998 } else for (h = 0; h < p.length; h += 1) { 1999 var f = p[h]; 2000 u.dom7Listeners || (u.dom7Listeners = {}), u.dom7Listeners[f] || (u.dom7Listeners[f] = []), u.dom7Listeners[f].push({ 2001 listener: n, 2002 proxyListener: d 2003 }), u.addEventListener(f, d, o) 2004 } 2005 } 2006 return this 2007 }, off: function () { 2008 for (var e, t = [], i = arguments.length; i--;) t[i] = arguments[i]; 2009 var s = t[0], a = t[1], r = t[2], n = t[3]; 2010 "function" == typeof t[1] && (s = (e = t)[0], r = e[1], n = e[2], a = void 0), n || (n = !1); 2011 for (var o = s.split(" "), l = 0; l < o.length; l += 1) for (var d = o[l], h = 0; h < this.length; h += 1) { 2012 var p = this[h], c = void 0; 2013 if (!a && p.dom7Listeners ? c = p.dom7Listeners[d] : a && p.dom7LiveListeners && (c = p.dom7LiveListeners[d]), c && c.length) for (var u = c.length - 1; u >= 0; u -= 1) { 2014 var v = c[u]; 2015 r && v.listener === r ? (p.removeEventListener(d, v.proxyListener, n), c.splice(u, 1)) : r && v.listener && v.listener.dom7proxy && v.listener.dom7proxy === r ? (p.removeEventListener(d, v.proxyListener, n), c.splice(u, 1)) : r || (p.removeEventListener(d, v.proxyListener, n), c.splice(u, 1)) 2016 } 2017 } 2018 return this 2019 }, trigger: function () { 2020 for (var i = [], s = arguments.length; s--;) i[s] = arguments[s];
vendor: 12,543 bytes, lines 2021-2262
2021 for (var a = i[0].split(" "), r = i[1], n = 0; n < a.length; n += 1) for (var o = a[n], l = 0; l < this.length; l += 1) { 2022 var d = this[l], h = void 0; 2023 try { 2024 h = new t.CustomEvent(o, {detail: r, bubbles: !0, cancelable: !0}) 2025 } catch (t) { 2026 (h = e.createEvent("Event")).initEvent(o, !0, !0), h.detail = r 2027 } 2028 d.dom7EventData = i.filter((function (e, t) { 2029 return t > 0 2030 })), d.dispatchEvent(h), d.dom7EventData = [], delete d.dom7EventData 2031 } 2032 return this 2033 }, transitionEnd: function (e) { 2034 var t, i = ["webkitTransitionEnd", "transitionend"], s = this; 2035 2036 function a(r) { 2037 if (r.target === this) for (e.call(this, r), t = 0; t < i.length; t += 1) s.off(i[t], a) 2038 } 2039 2040 if (e) for (t = 0; t < i.length; t += 1) s.on(i[t], a); 2041 return this 2042 }, outerWidth: function (e) { 2043 if (this.length > 0) { 2044 if (e) { 2045 var t = this.styles(); 2046 return this[0].offsetWidth + parseFloat(t.getPropertyValue("margin-right")) + parseFloat(t.getPropertyValue("margin-left")) 2047 } 2048 return this[0].offsetWidth 2049 } 2050 return null 2051 }, outerHeight: function (e) { 2052 if (this.length > 0) { 2053 if (e) { 2054 var t = this.styles(); 2055 return this[0].offsetHeight + parseFloat(t.getPropertyValue("margin-top")) + parseFloat(t.getPropertyValue("margin-bottom")) 2056 } 2057 return this[0].offsetHeight 2058 } 2059 return null 2060 }, offset: function () { 2061 if (this.length > 0) { 2062 var i = this[0], s = i.getBoundingClientRect(), a = e.body, r = i.clientTop || a.clientTop || 0, 2063 n = i.clientLeft || a.clientLeft || 0, o = i === t ? t.scrollY : i.scrollTop, 2064 l = i === t ? t.scrollX : i.scrollLeft; 2065 return {top: s.top + o - r, left: s.left + l - n} 2066 } 2067 return null 2068 }, css: function (e, i) { 2069 var s; 2070 if (1 === arguments.length) { 2071 if ("string" != typeof e) { 2072 for (s = 0; s < this.length; s += 1) for (var a in e) this[s].style[a] = e[a]; 2073 return this 2074 } 2075 if (this[0]) return t.getComputedStyle(this[0], null).getPropertyValue(e) 2076 } 2077 if (2 === arguments.length && "string" == typeof e) { 2078 for (s = 0; s < this.length; s += 1) this[s].style[e] = i; 2079 return this 2080 } 2081 return this 2082 }, each: function (e) { 2083 if (!e) return this; 2084 for (var t = 0; t < this.length; t += 1) if (!1 === e.call(this[t], t, this[t])) return this; 2085 return this 2086 }, html: function (e) { 2087 if (void 0 === e) return this[0] ? this[0].innerHTML : void 0; 2088 for (var t = 0; t < this.length; t += 1) this[t].innerHTML = e; 2089 return this 2090 }, text: function (e) { 2091 if (void 0 === e) return this[0] ? this[0].textContent.trim() : null; 2092 for (var t = 0; t < this.length; t += 1) this[t].textContent = e; 2093 return this 2094 }, is: function (a) { 2095 var r, n, o = this[0]; 2096 if (!o || void 0 === a) return !1; 2097 if ("string" == typeof a) { 2098 if (o.matches) return o.matches(a); 2099 if (o.webkitMatchesSelector) return o.webkitMatchesSelector(a); 2100 if (o.msMatchesSelector) return o.msMatchesSelector(a); 2101 for (r = s(a), n = 0; n < r.length; n += 1) if (r[n] === o) return !0; 2102 return !1 2103 } 2104 if (a === e) return o === e; 2105 if (a === t) return o === t; 2106 if (a.nodeType || a instanceof i) { 2107 for (r = a.nodeType ? [a] : a, n = 0; n < r.length; n += 1) if (r[n] === o) return !0; 2108 return !1 2109 } 2110 return !1 2111 }, index: function () { 2112 var e, t = this[0]; 2113 if (t) { 2114 for (e = 0; null !== (t = t.previousSibling);) 1 === t.nodeType && (e += 1); 2115 return e 2116 } 2117 }, eq: function (e) { 2118 if (void 0 === e) return this; 2119 var t, s = this.length; 2120 return new i(e > s - 1 ? [] : e < 0 ? (t = s + e) < 0 ? [] : [this[t]] : [this[e]]) 2121 }, append: function () { 2122 for (var t, s = [], a = arguments.length; a--;) s[a] = arguments[a]; 2123 for (var r = 0; r < s.length; r += 1) { 2124 t = s[r]; 2125 for (var n = 0; n < this.length; n += 1) if ("string" == typeof t) { 2126 var o = e.createElement("div"); 2127 for (o.innerHTML = t; o.firstChild;) this[n].appendChild(o.firstChild) 2128 } else if (t instanceof i) for (var l = 0; l < t.length; l += 1) this[n].appendChild(t[l]); else this[n].appendChild(t) 2129 } 2130 return this 2131 }, prepend: function (t) { 2132 var s, a; 2133 for (s = 0; s < this.length; s += 1) if ("string" == typeof t) { 2134 var r = e.createElement("div"); 2135 for (r.innerHTML = t, a = r.childNodes.length - 1; a >= 0; a -= 1) this[s].insertBefore(r.childNodes[a], this[s].childNodes[0]) 2136 } else if (t instanceof i) for (a = 0; a < t.length; a += 1) this[s].insertBefore(t[a], this[s].childNodes[0]); else this[s].insertBefore(t, this[s].childNodes[0]); 2137 return this 2138 }, next: function (e) { 2139 return this.length > 0 ? e ? this[0].nextElementSibling && s(this[0].nextElementSibling).is(e) ? new i([this[0].nextElementSibling]) : new i([]) : this[0].nextElementSibling ? new i([this[0].nextElementSibling]) : new i([]) : new i([]) 2140 }, nextAll: function (e) { 2141 var t = [], a = this[0]; 2142 if (!a) return new i([]); 2143 for (; a.nextElementSibling;) { 2144 var r = a.nextElementSibling; 2145 e ? s(r).is(e) && t.push(r) : t.push(r), a = r 2146 } 2147 return new i(t) 2148 }, prev: function (e) { 2149 if (this.length > 0) { 2150 var t = this[0]; 2151 return e ? t.previousElementSibling && s(t.previousElementSibling).is(e) ? new i([t.previousElementSibling]) : new i([]) : t.previousElementSibling ? new i([t.previousElementSibling]) : new i([]) 2152 } 2153 return new i([]) 2154 }, prevAll: function (e) { 2155 var t = [], a = this[0]; 2156 if (!a) return new i([]); 2157 for (; a.previousElementSibling;) { 2158 var r = a.previousElementSibling; 2159 e ? s(r).is(e) && t.push(r) : t.push(r), a = r 2160 } 2161 return new i(t) 2162 }, parent: function (e) { 2163 for (var t = [], i = 0; i < this.length; i += 1) null !== this[i].parentNode && (e ? s(this[i].parentNode).is(e) && t.push(this[i].parentNode) : t.push(this[i].parentNode)); 2164 return s(a(t)) 2165 }, parents: function (e) { 2166 for (var t = [], i = 0; i < this.length; i += 1) for (var r = this[i].parentNode; r;) e ? s(r).is(e) && t.push(r) : t.push(r), r = r.parentNode; 2167 return s(a(t)) 2168 }, closest: function (e) { 2169 var t = this; 2170 return void 0 === e ? new i([]) : (t.is(e) || (t = t.parents(e).eq(0)), t) 2171 }, find: function (e) { 2172 for (var t = [], s = 0; s < this.length; s += 1) for (var a = this[s].querySelectorAll(e), r = 0; r < a.length; r += 1) t.push(a[r]); 2173 return new i(t) 2174 }, children: function (e) { 2175 for (var t = [], r = 0; r < this.length; r += 1) for (var n = this[r].childNodes, o = 0; o < n.length; o += 1) e ? 1 === n[o].nodeType && s(n[o]).is(e) && t.push(n[o]) : 1 === n[o].nodeType && t.push(n[o]); 2176 return new i(a(t)) 2177 }, filter: function (e) { 2178 for (var t = [], s = 0; s < this.length; s += 1) e.call(this[s], s, this[s]) && t.push(this[s]); 2179 return new i(t) 2180 }, remove: function () { 2181 for (var e = 0; e < this.length; e += 1) this[e].parentNode && this[e].parentNode.removeChild(this[e]); 2182 return this 2183 }, add: function () { 2184 for (var e = [], t = arguments.length; t--;) e[t] = arguments[t]; 2185 var i, a; 2186 for (i = 0; i < e.length; i += 1) { 2187 var r = s(e[i]); 2188 for (a = 0; a < r.length; a += 1) this[this.length] = r[a], this.length += 1 2189 } 2190 return this 2191 }, styles: function () { 2192 return this[0] ? t.getComputedStyle(this[0], null) : {} 2193 } 2194 }; 2195 Object.keys(r).forEach((function (e) { 2196 s.fn[e] = s.fn[e] || r[e] 2197 })); 2198 var n = { 2199 deleteProps: function (e) { 2200 var t = e; 2201 Object.keys(t).forEach((function (e) { 2202 try { 2203 t[e] = null 2204 } catch (e) { 2205 } 2206 try { 2207 delete t[e] 2208 } catch (e) { 2209 } 2210 })) 2211 }, nextTick: function (e, t) { 2212 return void 0 === t && (t = 0), setTimeout(e, t) 2213 }, now: function () { 2214 return Date.now() 2215 }, getTranslate: function (e, i) { 2216 var s, a, r; 2217 void 0 === i && (i = "x"); 2218 var n = t.getComputedStyle(e, null); 2219 return t.WebKitCSSMatrix ? ((a = n.transform || n.webkitTransform).split(",").length > 6 && (a = a.split(", ").map((function (e) { 2220 return e.replace(",", ".") 2221 })).join(", ")), r = new t.WebKitCSSMatrix("none" === a ? "" : a)) : s = (r = n.MozTransform || n.OTransform || n.MsTransform || n.msTransform || n.transform || n.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,")).toString().split(","), "x" === i && (a = t.WebKitCSSMatrix ? r.m41 : 16 === s.length ? parseFloat(s[12]) : parseFloat(s[4])), "y" === i && (a = t.WebKitCSSMatrix ? r.m42 : 16 === s.length ? parseFloat(s[13]) : parseFloat(s[5])), a || 0 2222 }, parseUrlQuery: function (e) { 2223 var i, s, a, r, n = {}, o = e || t.location.href; 2224 if ("string" == typeof o && o.length) for (r = (s = (o = o.indexOf("?") > -1 ? o.replace(/\S*\?/, "") : "").split("&").filter((function (e) { 2225 return "" !== e 2226 }))).length, i = 0; i < r; i += 1) a = s[i].replace(/#\S+/g, "").split("="), n[decodeURIComponent(a[0])] = void 0 === a[1] ? void 0 : decodeURIComponent(a[1]) || ""; 2227 return n 2228 }, isObject: function (e) { 2229 return "object" == typeof e && null !== e && e.constructor && e.constructor === Object 2230 }, extend: function () { 2231 for (var e = [], t = arguments.length; t--;) e[t] = arguments[t]; 2232 for (var i = Object(e[0]), s = 1; s < e.length; s += 1) { 2233 var a = e[s]; 2234 if (null != a) for (var r = Object.keys(Object(a)), o = 0, l = r.length; o < l; o += 1) { 2235 var d = r[o], h = Object.getOwnPropertyDescriptor(a, d); 2236 void 0 !== h && h.enumerable && (n.isObject(i[d]) && n.isObject(a[d]) ? n.extend(i[d], a[d]) : !n.isObject(i[d]) && n.isObject(a[d]) ? (i[d] = {}, n.extend(i[d], a[d])) : i[d] = a[d]) 2237 } 2238 } 2239 return i 2240 } 2241 }, o = { 2242 touch: t.Modernizr && !0 === t.Modernizr.touch || !!(t.navigator.maxTouchPoints > 0 || "ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch), 2243 pointerEvents: !!t.PointerEvent && "maxTouchPoints" in t.navigator && t.navigator.maxTouchPoints > 0, 2244 observer: "MutationObserver" in t || "WebkitMutationObserver" in t, 2245 passiveListener: function () { 2246 var e = !1; 2247 try { 2248 var i = Object.defineProperty({}, "passive", { 2249 get: function () { 2250 e = !0 2251 } 2252 }); 2253 t.addEventListener("testPassiveListener", null, i) 2254 } catch (e) { 2255 } 2256 return e 2257 }(), 2258 gestures: "ongesturestart" in t 2259 }, l = function (e) { 2260 void 0 === e && (e = {}); 2261 var t = this; 2262 t.params = e, t.eventsListeners = {}
2262, t.params && t.params.on && Object.keys(t.params.on).forEach((function (e) { 2263 t.on(e, t.params.on[e]) 2264 })) 2265 }, d = {components: {configurable: !0}}; 2266 l.prototype.on = function (e, t, i) { 2267 var s = this; 2268 if ("function" != typeof t) return s; 2269 var a = i ? "unshift" : "push"; 2270 return e.split(" ").forEach((function (e) { 2271 s.eventsListeners[e] || (s.eventsListeners[e] = []), s.eventsListeners[e][a](t) 2272 })), s 2273 }, l.prototype.once = function (e, t, i) { 2274 var s = this; 2275 if ("function" != typeof t) return s; 2276 2277 function a() { 2278 for (var i = [], r = arguments.length; r--;) i[r] = arguments[r]; 2279 t.apply(s, i), s.off(e, a), a.f7proxy && delete a.f7proxy 2280 } 2281 2282 return a.f7proxy = t, s.on(e, a, i) 2283 }, l.prototype.off = function (e, t) { 2284 var i = this; 2285 return i.eventsListeners ? (e.split(" ").forEach((function (e) { 2286 void 0 === t ? i.eventsListeners[e] = [] : i.eventsListeners[e] && i.eventsListeners[e].length && i.eventsListeners[e].forEach((function (s, a) { 2287 (s === t || s.f7proxy && s.f7proxy === t) && i.eventsListeners[e].splice(a, 1) 2288 })) 2289 })), i) : i 2290 }, l.prototype.emit = function () { 2291 for (var e = [], t = arguments.length; t--;) e[t] = arguments[t]; 2292 var i, s, a, r = this; 2293 if (!r.eventsListeners) return r; 2294 "string" == typeof e[0] || Array.isArray(e[0]) ? (i = e[0], s = e.slice(1, e.length), a = r) : (i = e[0].events, s = e[0].data, a = e[0].context || r); 2295 var n = Array.isArray(i) ? i : i.split(" "); 2296 return n.forEach((function (e) { 2297 if (r.eventsListeners && r.eventsListeners[e]) { 2298 var t = []; 2299 r.eventsListeners[e].forEach((function (e) { 2300 t.push(e) 2301 })), t.forEach((function (e) { 2302 e.apply(a, s) 2303 })) 2304 } 2305 })), r 2306 }, l.prototype.useModulesParams = function (e) { 2307 var t = this; 2308 t.modules && Object.keys(t.modules).forEach((function (i) { 2309 var s = t.modules[i]; 2310 s.params && n.extend(e, s.params) 2311 })) 2312 }, l.prototype.useModules = function (e) { 2313 void 0 === e && (e = {}); 2314 var t = this; 2315 t.modules && Object.keys(t.modules).forEach((function (i) { 2316 var s = t.modules[i], a = e[i] || {}; 2317 s.instance && Object.keys(s.instance).forEach((function (e) { 2318 var i = s.instance[e]; 2319 t[e] = "function" == typeof i ? i.bind(t) : i 2320 })), s.on && t.on && Object.keys(s.on).forEach((function (e) { 2321 t.on(e, s.on[e]) 2322 })), s.create && s.create.bind(t)(a) 2323 })) 2324 }, d.components.set = function (e) { 2325 this.use && this.use(e) 2326 }, l.installModule = function (e) { 2327 for (var t = [], i = arguments.length - 1; i-- > 0;) t[i] = arguments[i + 1]; 2328 var s = this; 2329 s.prototype.modules || (s.prototype.modules = {}); 2330 var a = e.name || Object.keys(s.prototype.modules).length + "_" + n.now(); 2331 return s.prototype.modules[a] = e, e.proto && Object.keys(e.proto).forEach((function (t) { 2332 s.prototype[t] = e.proto[t] 2333 })), e.static && Object.keys(e.static).forEach((function (t) { 2334 s[t] = e.static[t] 2335 })), e.install && e.install.apply(s, t), s 2336 }, l.use = function (e) { 2337 for (var t = [], i = arguments.length - 1; i-- > 0;) t[i] = arguments[i + 1]; 2338 var s = this; 2339 return Array.isArray(e) ? (e.forEach((function (e) { 2340 return s.installModule(e) 2341 })), s) : s.installModule.apply(s, [e].concat(t)) 2342 }, Object.defineProperties(l, d); 2343 var h = { 2344 updateSize: function () { 2345 var e, t, i = this.$el; 2346 e = void 0 !== this.params.width ? this.params.width : i[0].clientWidth, t = void 0 !== this.params.height ? this.params.height : i[0].clientHeight, 0 === e && this.isHorizontal() || 0 === t && this.isVertical() || (e = e - parseInt(i.css("padding-left"), 10) - parseInt(i.css("padding-right"), 10), t = t - parseInt(i.css("padding-top"), 10) - parseInt(i.css("padding-bottom"), 10), n.extend(this, { 2347 width: e, 2348 height: t, 2349 size: this.isHorizontal() ? e : t 2350 })) 2351 }, updateSlides: function () { 2352 var e = this.params, i = this.$wrapperEl, s = this.size, a = this.rtlTranslate, r = this.wrongRTL, 2353 o = this.virtual && e.virtual.enabled, l = o ? this.virtual.slides.length : this.slides.length, 2354 d = i.children("." + this.params.slideClass), h = o ? this.virtual.slides.length : d.length, p = [], 2355 c = [], u = []; 2356 2357 function v(t) { 2358 return !e.cssMode || t !== d.length - 1 2359 } 2360 2361 var f = e.slidesOffsetBefore; 2362 "function" == typeof f && (f = e.slidesOffsetBefore.call(this)); 2363 var m = e.slidesOffsetAfter; 2364 "function" == typeof m && (m = e.slidesOffsetAfter.call(this)); 2365 var g = this.snapGrid.length, b = this.snapGrid.length, w = e.spaceBetween, y = -f, x = 0, T = 0; 2366 if (void 0 !== s) { 2367 var E, C; 2368 "string" == typeof w && w.indexOf("%") >= 0 && (w = parseFloat(w.replace("%", "")) / 100 * s), this.virtualSize = -w, a ? d.css({ 2369 marginLeft: "", 2370 marginTop: "" 2371 }) : d.css({ 2372 marginRight: "", 2373 marginBottom: "" 2374 }), e.slidesPerColumn > 1 && (E = Math.floor(h / e.slidesPerColumn) === h / this.params.slidesPerColumn ? h : Math.ceil(h / e.slidesPerColumn) * e.slidesPerColumn, "auto" !== e.slidesPerView && "row" === e.slidesPerColumnFill && (E = Math.max(E, e.slidesPerView * e.slidesPerColumn))); 2375 for (var S, M = e.slidesPerColumn, P = E / M, z = Math.floor(h / e.slidesPerColumn), k = 0; k < h; k += 1) { 2376 C = 0; 2377 var $ = d.eq(k); 2378 if (e.slidesPerColumn > 1) { 2379 var L = void 0, I = void 0, D = void 0; 2380 if ("row" === e.slidesPerColumnFill && e.slidesPerGroup > 1) { 2381 var O = Math.floor(k / (e.slidesPerGroup * e.slidesPerColumn)), 2382 A = k - e.slidesPerColumn * e.slidesPerGroup * O, 2383 G = 0 === O ? e.slidesPerGroup : Math.min(Math.ceil((h - O * M * e.slidesPerGroup) / M), e.slidesPerGroup); 2384 L = (I = A - (D = Math.floor(A / G)) * G + O * e.slidesPerGroup) + D * E / M, $.css({ 2385 "-webkit-box-ordinal-group": L, 2386 "-moz-box-ordinal-group": L, 2387 "-ms-flex-order": L, 2388 "-webkit-order": L, 2389 order: L 2390 }) 2391 } else "column" === e.slidesPerColumnFill ? (D = k - (I = Math.floor(k / M)) * M, (I > z || I === z && D === M - 1) && (D += 1) >
2391= M && (D = 0, I += 1)) : I = k - (D = Math.floor(k / P)) * P; 2392 $.css("margin-" + (this.isHorizontal() ? "top" : "left"), 0 !== D && e.spaceBetween && e.spaceBetween + "px") 2393 } 2394 if ("none" !== $.css("display")) { 2395 if ("auto" === e.slidesPerView) { 2396 var B = t.getComputedStyle($[0], null), H = $[0].style.transform, 2397 N = $[0].style.webkitTransform; 2398 if (H && ($[0].style.transform = "none"), N && ($[0].style.webkitTransform = "none"), e.roundLengths) C = this.isHorizontal() ? $.outerWidth(!0) : $.outerHeight(!0); else if (this.isHorizontal()) { 2399 var X = parseFloat(B.getPropertyValue("width")), 2400 V = parseFloat(B.getPropertyValue("padding-left")), 2401 Y = parseFloat(B.getPropertyValue("padding-right")), 2402 F = parseFloat(B.getPropertyValue("margin-left")), 2403 W = parseFloat(B.getPropertyValue("margin-right")), 2404 R = B.getPropertyValue("box-sizing"); 2405 C = R && "border-box" === R ? X + F + W : X + V + Y + F + W 2406 } else { 2407 var q = parseFloat(B.getPropertyValue("height")), 2408 j = parseFloat(B.getPropertyValue("padding-top")), 2409 K = parseFloat(B.getPropertyValue("padding-bottom")), 2410 U = parseFloat(B.getPropertyValue("margin-top")), 2411 _ = parseFloat(B.getPropertyValue("margin-bottom")), 2412 Z = B.getPropertyValue("box-sizing"); 2413 C = Z && "border-box" === Z ? q + U + _ : q + j + K + U + _ 2414 } 2415 H && ($[0].style.transform = H), N && ($[0].style.webkitTransform = N), e.roundLengths && (C = Math.floor(C)) 2416 } else C = (s - (e.slidesPerView - 1) * w) / e.slidesPerView, e.roundLengths && (C = Math.floor(C)), d[k] && (this.isHorizontal() ? d[k].style.width = C + "px" : d[k].style.height = C + "px"); 2417 d[k] && (d[k].swiperSlideSize = C), u.push(C), e.centeredSlides ? (y = y + C / 2 + x / 2 + w, 0 === x && 0 !== k && (y = y - s / 2 - w), 0 === k && (y = y - s / 2 - w), Math.abs(y) < .001 && (y = 0), e.roundLengths && (y = Math.floor(y)), T % e.slidesPerGroup == 0 && p.push(y), c.push(y)) : (e.roundLengths && (y = Math.floor(y)), T % e.slidesPerGroup == 0 && p.push(y), c.push(y), y = y + C + w), this.virtualSize += C + w, x = C, T += 1 2418 } 2419 } 2420 if (this.virtualSize = Math.max(this.virtualSize, s) + m, a && r && ("slide" === e.effect || "coverflow" === e.effect) && i.css({width: this.virtualSize + e.spaceBetween + "px"}), e.setWrapperSize && (this.isHorizontal() ? i.css({width: this.virtualSize + e.spaceBetween + "px"}) : i.css({height: this.virtualSize + e.spaceBetween + "px"})), e.slidesPerColumn > 1 && (this.virtualSize = (C + e.spaceBetween) * E, this.virtualSize = Math.ceil(this.virtualSize / e.slidesPerColumn) - e.spaceBetween, this.isHorizontal() ? i.css({width: this.virtualSize + e.spaceBetween + "px"}) : i.css({height: this.virtualSize + e.spaceBetween + "px"}), e.centeredSlides)) { 2421 S = []; 2422 for (var Q = 0; Q < p.length; Q += 1) { 2423 var J = p[Q]; 2424 e.roundLengths && (J = Math.floor(J)), p[Q] < this.virtualSize + p[0] && S.push(J) 2425 } 2426 p = S 2427 } 2428 if (!e.centeredSlides) { 2429 S = []; 2430 for (var ee = 0; ee < p.length; ee += 1) { 2431 var te = p[ee]; 2432 e.roundLengths && (te = Math.floor(te)), p[ee] <= this.virtualSize - s && S.push(te) 2433 } 2434 p = S, Math.floor(this.virtualSize - s) - Math.floor(p[p.length - 1]) > 1 && p.push(this.virtualSize - s) 2435 } 2436 if (0 === p.length && (p = [0]), 0 !== e.spaceBetween && (this.isHorizontal() ? a ? d.filter(v).css({marginLeft: w + "px"}) : d.filter(v).css({marginRight: w + "px"}) : d.filter(v).css({marginBottom: w + "px"}
2436)), e.centeredSlides && e.centeredSlidesBounds) { 2437 var ie = 0; 2438 u.forEach((function (t) { 2439 ie += t + (e.spaceBetween ? e.spaceBetween : 0) 2440 })); 2441 var se = (ie -= e.spaceBetween) - s; 2442 p = p.map((function (e) { 2443 return e < 0 ? -f : e > se ? se + m : e 2444 })) 2445 } 2446 if (e.centerInsufficientSlides) { 2447 var ae = 0; 2448 if (u.forEach((function (t) { 2449 ae += t + (e.spaceBetween ? e.spaceBetween : 0) 2450 })), (ae -= e.spaceBetween) < s) { 2451 var re = (s - ae) / 2; 2452 p.forEach((function (e, t) { 2453 p[t] = e - re 2454 })), c.forEach((function (e, t) { 2455 c[t] = e + re 2456 })) 2457 } 2458 } 2459 n.extend(this, { 2460 slides: d, 2461 snapGrid: p, 2462 slidesGrid: c, 2463 slidesSizesGrid: u 2464 }), h !== l && this.emit("slidesLengthChange"), p.length !== g && (this.params.watchOverflow && this.checkOverflow(), this.emit("snapGridLengthChange")), c.length !== b && this.emit("slidesGridLengthChange"), (e.watchSlidesProgress || e.watchSlidesVisibility) && this.updateSlidesOffset() 2465 } 2466 }, updateAutoHeight: function (e) { 2467 var t, i = [], s = 0; 2468 if ("number" == typeof e ? this.setTransition(e) : !0 === e && this.setTransition(this.params.speed), "auto" !== this.params.slidesPerView && this.params.slidesPerView > 1) for (t = 0; t < Math.ceil(this.params.slidesPerView); t += 1) { 2469 var a = this.activeIndex + t; 2470 if (a > this.slides.length) break; 2471 i.push(this.slides.eq(a)[0]) 2472 } else i.push(this.slides.eq(this.activeIndex)[0]); 2473 for (t = 0; t < i.length; t += 1) if (void 0 !== i[t]) { 2474 var r = i[t].offsetHeight; 2475 s = r > s ? r : s 2476 } 2477 s && this.$wrapperEl.css("height", s + "px") 2478 }, updateSlidesOffset: function () { 2479 for (var e = this.slides, t = 0; t < e.length; t += 1) e[t].swiperSlideOffset = this.isHorizontal() ? e[t].offsetLeft : e[t].offsetTop 2480 }, updateSlidesProgress: function (e) { 2481 void 0 === e && (e = this && this.translate || 0); 2482 var t = this.params, i = this.slides, a = this.rtlTranslate; 2483 if (0 !== i.length) { 2484 void 0 === i[0].swiperSlideOffset && this.updateSlidesOffset(); 2485 var r = -e; 2486 a && (r = e), i.removeClass(t.slideVisibleClass), this.visibleSlidesIndexes = [], this.visibleSlides = []; 2487 for (var n = 0; n < i.length; n += 1) { 2488 var o = i[n], 2489 l = (r + (t.centeredSlides ? this.minTranslate() : 0) - o.swiperSlideOffset) / (o.swiperSlideSize + t.spaceBetween); 2490 if (t.watchSlidesVisibility) { 2491 var d = -(r - o.swiperSlideOffset), h = d + this.slidesSizesGrid[n]; 2492 (d >= 0 && d < this.size - 1 || h > 1 && h <= this.size || d <= 0 && h >= this.size) && (this.visibleSlides.push(o), this.visibleSlidesIndexes.push(n), i.eq(n).addClass(t.slideVisibleClass)) 2493 } 2494 o.progress = a ? -l : l 2495 } 2496 this.visibleSlides = s(this.visibleSlides) 2497 } 2498 }, updateProgress: function (e) { 2499 if (void 0 === e) { 2500 var t = this.rtlTranslate ? -1 : 1; 2501 e = this && this.translate && this.translate * t || 0 2502 } 2503 var i = this.params, s = this.maxTranslate() - this.minTranslate(), a = this.progress, r = this.isBeginning, 2504 o = this.isEnd, l = r, d = o; 2505 0 === s ? (a = 0, r = !0, o = !0) : (r = (a = (e - this.minTranslate()) / s) <= 0, o = a >= 1), n.extend(this, { 2506 progress: a, 2507 isBeginning: r, 2508 isEnd: o 2509 }), (i.watchSlidesProgress || i.watchSlidesVisibility) && this.updateSlidesProgress(e), r && !l && this.emit
2509("reachBeginning toEdge"), o && !d && this.emit("reachEnd toEdge"), (l && !r || d && !o) && this.emit("fromEdge"), this.emit("progress", a) 2510 }, updateSlidesClasses: function () { 2511 var e, t = this.slides, i = this.params, s = this.$wrapperEl, a = this.activeIndex, r = this.realIndex, 2512 n = this.virtual && i.virtual.enabled; 2513 t.removeClass(i.slideActiveClass + " " + i.slideNextClass + " " + i.slidePrevClass + " " + i.slideDuplicateActiveClass + " " + i.slideDuplicateNextClass + " " + i.slideDuplicatePrevClass), (e = n ? this.$wrapperEl.find("." + i.slideClass + '[data-swiper-slide-index="' + a + '"]') : t.eq(a)).addClass(i.slideActiveClass), i.loop && (e.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + r + '"]').addClass(i.slideDuplicateActiveClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + r + '"]').addClass(i.slideDuplicateActiveClass)); 2514 var o = e.nextAll("." + i.slideClass).eq(0).addClass(i.slideNextClass); 2515 i.loop && 0 === o.length && (o = t.eq(0)).addClass(i.slideNextClass); 2516 var l = e.prevAll("." + i.slideClass).eq(0).addClass(i.slidePrevClass); 2517 i.loop && 0 === l.length && (l = t.eq(-1)).addClass(i.slidePrevClass), i.loop && (o.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicateNextClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + o.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicateNextClass), l.hasClass(i.slideDuplicateClass) ? s.children("." + i.slideClass + ":not(." + i.slideDuplicateClass + ')[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicatePrevClass) : s.children("." + i.slideClass + "." + i.slideDuplicateClass + '[data-swiper-slide-index="' + l.attr("data-swiper-slide-index") + '"]').addClass(i.slideDuplicatePrevClass)) 2518 }, updateActiveIndex: function (e) { 2519 var t, i = this.rtlTranslate ? this.translate : -this.translate, s = this.slidesGrid, a = this.snapGrid, 2520 r = this.params, o = this.activeIndex, l = this.realIndex, d = this.snapIndex, h = e; 2521 if (void 0 === h) { 2522 for (var p = 0; p < s.length; p += 1) void 0 !== s[p + 1] ? i >= s[p] && i < s[p + 1] - (s[p + 1] - s[p]) / 2 ? h = p : i >= s[p] && i < s[p + 1] && (h = p + 1) : i >= s[p] && (h = p);
2523 r.normalizeSlideIndex && (h < 0 || void 0 === h) && (h = 0) 2524 } 2525 if ((t = a.indexOf(i) >= 0 ? a.indexOf(i) : Math.floor(h / r.slidesPerGroup)) >= a.length && (t = a.length - 1), h !== o) { 2526 var c = parseInt(this.slides.eq(h).attr("data-swiper-slide-index") || h, 10); 2527 n.extend(this, { 2528 snapIndex: t, 2529 realIndex: c, 2530 previousIndex: o, 2531 activeIndex: h 2532 }), this.emit("activeIndexChange"), this.emit("snapIndexChange"), l !== c && this.emit("realIndexChange"), (this.initialized || this.runCallbacksOnInit) && this.emit("slideChange") 2533 } else t !== d && (this.snapIndex = t, this.emit("snapIndexChange")) 2534 }, updateClickedSlide: function (e) { 2535 var t = this.params, i = s(e.target).closest("." + t.slideClass)[0], a = !1; 2536 if (i) for (var r = 0; r < this.slides.length; r += 1) this.slides[r] === i && (a = !0); 2537 if (!i || !a) return this.clickedSlide = void 0, void (this.clickedIndex = void 0); 2538 this.clickedSlide = i, this.virtual && this.params.virtual.enabled ? this.clickedIndex = parseInt(s(i).attr("data-swiper-slide-index"), 10) : this.clickedIndex = s(i).index(), t.slideToClickedSlide && void 0 !== this.clickedIndex && this.clickedIndex !== this.activeIndex && this.slideToClickedSlide() 2539 } 2540 }; 2541 var p = { 2542 getTranslate: function (e) { 2543 void 0 === e && (e = this.isHorizontal() ? "x" : "y"); 2544 var t = this.params, i = this.rtlTranslate, s = this.translate, a = this.$wrapperEl; 2545 if (t.virtualTranslate) return i ? -s : s; 2546 if (t.cssMode) return s; 2547 var r = n.getTranslate(a[0], e); 2548 return i && (r = -r), r || 0 2549 }, setTranslate: function (e, t) { 2550 var i = this.rtlTranslate, s = this.params, a = this.$wrapperEl, r = this.wrapperEl, n = this.progress, 2551 o = 0, l = 0; 2552 this.isHorizontal() ? o = i ? -e : e : l = e, s.roundLengths && (o = Math.floor(o), l = Math.floor(l)), s.cssMode ? r[this.isHorizontal() ? "scrollLeft" : "scrollTop"] = this.isHorizontal() ? -o : -l : s.virtualTranslate || a.transform("translate3d(" + o + "px, " + l + "px, 0px)"), this.previousTranslate = this.translate, this.translate = this.isHorizontal() ? o : l; 2553 var d = this.maxTranslate() - this.minTranslate(); 2554 (0 === d ? 0 : (e - this.minTranslate()) / d) !== n && this.updateProgress(e), this.emit("setTranslate", this.translate, t) 2555 }, minTranslate: function () { 2556 return -this.snapGrid[0] 2557 }, maxTranslate: function () { 2558 return -this.snapGrid[this.snapGrid.length - 1] 2559 }, translateTo: function (e, t, i, s, a) { 2560 var r; 2561 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0), void 0 === s && (s = !0); 2562 var n = this, o = n.params, l = n.wrapperEl; 2563 if (n.animating && o.preventInteractionOnTransition) return !1; 2564 var d, h = n.minTranslate(), p = n.maxTranslate(); 2565 if (d = s && e > h ? h : s && e < p ? p : e, n.updateProgress(d), o.cssMode) { 2566 var c = n.isHorizontal(); 2567 return 0 === t ? l[c ? "scrollLeft" : "scrollTop"] = -d : l.scrollTo ? l.scrollTo(((r = {})[c ? "left" : "top"] = -d, r.behavior = "smooth", r)) : l[c ? "scrollLeft" : "scrollTop"] = -d, !0 2568 } 2569 return 0 === t ? (n.setTransition(0), n.setTranslate(d), i && (n.emit("beforeTransitionStart", t, a), n.emit("transitionEnd"))) : (n.setTransition(t), n.setTranslate(d), i && (n.emit("beforeTransitionStart", t, a), n.emit("transitionStart")), n.animating || (n.animating = !0, n.onTranslateToWrapperTransitionEnd || (n.onTranslateToWrapperTransitionEnd = function (e) { 2570 n && !n.destroyed && e.target === this && (n.$wrapperEl[0].removeEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.$wrapperEl[0].removeEventListener("webkitTransitionEnd", n.onTranslateToWrapperTransitionEnd), n.onTranslateToWrapperTransitionEnd = null, delete n.onTranslateToWrapperTransitionEnd, i && n.emit("transitionEnd")) 2571 }), n.$wrapperEl[0].addEventListener("transitionend", n.onTranslateToWrapperTransitionEnd), n.$wrapperEl[0].addEventListener("webkitTransitionEnd", n.onTranslateToWrapperTransitionEnd))), !0 2572 } 2573 }; 2574 var c = { 2575 setTransition: function (e, t) { 2576 this.params.cssMode || this.$wrapperEl.transition(e), this.emit
2576("setTransition", e, t) 2577 }, transitionStart: function (e, t) { 2578 void 0 === e && (e = !0); 2579 var i = this.activeIndex, s = this.params, a = this.previousIndex; 2580 if (!s.cssMode) { 2581 s.autoHeight && this.updateAutoHeight(); 2582 var r = t; 2583 if (r || (r = i > a ? "next" : i < a ? "prev" : "reset"), this.emit("transitionStart"), e && i !== a) { 2584 if ("reset" === r) return void this.emit("slideResetTransitionStart"); 2585 this.emit("slideChangeTransitionStart"), "next" === r ? this.emit("slideNextTransitionStart") : this.emit("slidePrevTransitionStart") 2586 } 2587 } 2588 }, transitionEnd: function (e, t) { 2589 void 0 === e && (e = !0); 2590 var i = this.activeIndex, s = this.previousIndex, a = this.params; 2591 if (this.animating = !1, !a.cssMode) { 2592 this.setTransition(0); 2593 var r = t; 2594 if (r || (r = i > s ? "next" : i < s ? "prev" : "reset"), this.emit("transitionEnd"), e && i !== s) { 2595 if ("reset" === r) return void this.emit("slideResetTransitionEnd"); 2596 this.emit("slideChangeTransitionEnd"), "next" === r ? this.emit("slideNextTransitionEnd") : this.emit("slidePrevTransitionEnd") 2597 } 2598 } 2599 } 2600 }; 2601 var u = { 2602 slideTo: function (e, t, i, s) { 2603 var a; 2604 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0); 2605 var r = this, n = e; 2606 n < 0 && (n = 0); 2607 var o = r.params, l = r.snapGrid, d = r.slidesGrid, h = r.previousIndex, p = r.activeIndex, 2608 c = r.rtlTranslate, u = r.wrapperEl; 2609 if (r.animating && o.preventInteractionOnTransition) return !1; 2610 var v = Math.floor(n / o.slidesPerGroup); 2611 v >= l.length && (v = l.length - 1), (p || o.initialSlide || 0) === (h || 0) && i && r.emit("beforeSlideChangeStart"); 2612 var f, m = -l[v]; 2613 if (r.updateProgress(m), o.normalizeSlideIndex) for (var g = 0; g < d.length; g += 1) -Math.floor(100 * m) >= Math.floor(100 * d[g]) && (n = g); 2614 if (r.initialized && n !== p) { 2615 if (!r.allowSlideNext && m < r.translate && m < r.minTranslate()) return !1; 2616 if (!r.allowSlidePrev && m > r.translate && m > r.maxTranslate() && (p || 0) !== n) return !1 2617 } 2618 if (f = n > p ? "next" : n < p ? "prev" : "reset", c && -m === r.translate || !c && m === r.translate) return r.updateActiveIndex(n), o.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), "slide" !== o.effect && r.setTranslate(m), "reset" !== f && (r.transitionStart(i, f), r.transitionEnd(i, f)), !1; 2619 if (o.cssMode) { 2620 var b = r.isHorizontal(); 2621 return 0 === t ? u[b ? "scrollLeft" : "scrollTop"] = -m : u.scrollTo ? u.scrollTo(((a = {})[b ? "left" : "top"] = -m, a.behavior = "smooth", a)) : u[b ? "scrollLeft" : "scrollTop"] = -m, !0 2622 } 2623 return 0 === t ? (r.setTransition(0), r.setTranslate(m), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, s), r.transitionStart(i, f), r.transitionEnd(i, f)) : (r.setTransition(t), r.setTranslate(m), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, s), r.transitionStart(i, f), r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function (e) { 2624 r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(i, f)) 2625 }), r.$wrapperEl[0].addEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].addEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd))), !0 2626 }, slideToLoop: function (e, t, i, s) { 2627 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === i && (i = !0); 2628 var a = e; 2629 return this.params.loop && (a += this.loopedSlides), this.slideTo(a, t, i, s) 2630 }, slideNext: function (e, t, i) { 2631 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 2632 var s = this.params, a = this.animating; 2633 return s.loop ? !a && (this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft, this.slideTo(this.activeIndex + s.slidesPerGroup, e, t, i)) : this.slideTo(this.activeIndex + s.slidesPerGroup, e, t, i) 2634 }, slidePrev: function (e, t, i) { 2635 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 2636 var s = this.params, a = this.animating, r = this.snapGrid, n = this.slidesGrid, o = this.rtlTranslate; 2637 if (s.loop) { 2638 if (a) return !1; 2639 this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft 2640 } 2641 2642 function l(e) { 2643 return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e) 2644 } 2645 2646 var d, h = l(o ? this.translate : -this.translate), p = r.map((function (e) { 2647 return l(e) 2648 })), c = (n.map((function (e) { 2649 return l(e) 2650 })), r[p.indexOf(h)], r[p.indexOf(h) - 1]); 2651 return void 0 === c && s.cssMode && r.forEach((function (e) { 2652 !c && h >= e && (c = e) 2653 })), void 0 !== c && (d = n.indexOf(c)) < 0 && (d = this.activeIndex - 1), this.slideTo(d, e, t, i) 2654 }, slideReset: function (e, t, i) { 2655 return void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), this.slideTo(this.activeIndex, e, t, i) 2656 }, slideToClosest: function (e, t, i, s) { 2657 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), void 0 === s && (s = .5); 2658 var a = this.activeIndex, r = Math.floor(a / this.params.slidesPerGroup), 2659 n = this.rtlTranslate ? this.translate : -this.translate; 2660 if (n >= this.snapGrid[r]) { 2661 var o = this.snapGrid[r]; 2662 n - o > (this.snapGrid[r + 1] - o) * s && (a += this.params.slidesPerGroup) 2663 } else { 2664 var l = this.snapGrid[r - 1]; 2665 n - l <= (this.snapGrid[r] - l) * s && (a -= this.params.slidesPerGroup) 2666 } 2667 return a = Math.max(a, 0), a = Math.min(a, this.snapGrid.length - 1), this.slideTo(a, e, t, i) 2668 }, slideToClickedSlide: function () { 2669 var e, t = this, i = t.params, a = t.$wrapperEl, 2670 r = "auto" === i.slidesPerView ? t.slidesPerViewDynamic() : i.slidesPerView, o = t.clickedIndex; 2671 if (i.loop) { 2672 if (t.animating) return; 2673 e = parseInt(s(t.clickedSlide).attr("data-swiper-slide-index"), 10), i.centeredSlides ? o < t.loopedSlides - r / 2 || o > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), o = a.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(), n.nextTick((function () { 2674 t.slideTo(o) 2675 }))) : t.slideTo(o) : o > t.slides.length - r ? (t.loopFix(), o = a.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]:not(.' + i.slideDuplicateClass + ")").eq(0).index(), n.nextTick((function () { 2676 t.slideTo(o) 2677 }))) : t.slideTo(o) 2678 } else t.slideTo(o) 2679 } 2680 }; 2681 var v = { 2682 loopCreate: function () { 2683 var t = this, i = t.params, a = t.$wrapperEl; 2684 a.children("." + i.slideClass + "." + i.slideDuplicateClass).remove();
2685 var r = a.children("." + i.slideClass); 2686 if (i.loopFillGroupWithBlank) { 2687 var n = i.slidesPerGroup - r.length % i.slidesPerGroup; 2688 if (n !== i.slidesPerGroup) { 2689 for (var o = 0; o < n; o += 1) { 2690 var l = s(e.createElement("div")).addClass(i.slideClass + " " + i.slideBlankClass); 2691 a.append(l) 2692 } 2693 r = a.children("." + i.slideClass) 2694 } 2695 } 2696 "auto" !== i.slidesPerView || i.loopedSlides || (i.loopedSlides = r.length), t.loopedSlides = Math.ceil(parseFloat(i.loopedSlides || i.slidesPerView, 10)), t.loopedSlides += i.loopAdditionalSlides, t.loopedSlides > r.length && (t.loopedSlides = r.length); 2697 var d = [], h = []; 2698 r.each((function (e, i) { 2699 var a = s(i); 2700 e < t.loopedSlides && h.push(i), e < r.length && e >= r.length - t.loopedSlides && d.push(i), a.attr("data-swiper-slide-index", e) 2701 })); 2702 for (var p = 0; p < h.length; p += 1) a.append(s(h[p].cloneNode(!0)).addClass(i.slideDuplicateClass)); 2703 for (var c = d.length - 1; c >= 0; c -= 1) a.prepend(s(d[c].cloneNode(!0)).addClass(i.slideDuplicateClass)) 2704 }, loopFix: function () { 2705 var e, t = this.activeIndex, i = this.slides, s = this.loopedSlides, a = this.allowSlidePrev, 2706 r = this.allowSlideNext, n = this.snapGrid, o = this.rtlTranslate; 2707 this.allowSlidePrev = !0, this.allowSlideNext = !0; 2708 var l = -n[t] - this.getTranslate(); 2709 if (t < s) e = i.length - 3 * s + t, e += s, this.slideTo(e, 0, !1, !0) && 0 !== l && this.setTranslate((o ? -this.translate : this.translate) - l); else if (t >= i.length - s) { 2710 e = -i.length + t + s, e += s, this.slideTo(e, 0, !1, !0) && 0 !== l && this.setTranslate((o ? -this.translate : this.translate) - l) 2711 } 2712 this.allowSlidePrev = a, this.allowSlideNext = r 2713 }, loopDestroy: function () { 2714 var e = this.$wrapperEl, t = this.params, i = this.slides; 2715 e.children("." + t.slideClass + "." + t.slideDuplicateClass + ",." + t.slideClass + "." + t.slideBlankClass).remove(), i.removeAttr("data-swiper-slide-index") 2716 } 2717 }; 2718 var f = { 2719 setGrabCursor: function (e) { 2720 if (!(o.touch || !this.params.simulateTouch || this.params.watchOverflow && this.isLocked || this.params.cssMode)) { 2721 var t = this.el; 2722 t.style.cursor = "move", t.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", t.style.cursor = e ? "-moz-grabbin" : "-moz-grab", t.style.cursor = e ? "grabbing" : "grab" 2723 } 2724 }, unsetGrabCursor: function () { 2725 o.touch || this.params.watchOverflow && this.isLocked || this.params.cssMode || (this.el.style.cursor = "") 2726 } 2727 }; 2728 var m, g, b, w, y, x, T, E, C, S, M, P, z, k, $, L = { 2729 appendSlide: function (e) { 2730 var t = this.$wrapperEl, i = this.params; 2731 if (i.loop && this.loopDestroy(), "object" == typeof e && "length" in e) for (var s = 0; s < e.length; s += 1) e[s] && t.append(e[s]); else t.append(e); 2732 i.loop && this.loopCreate(), i.observer && o.observer || this.update() 2733 }, prependSlide: function (e) { 2734 var t = this.params, i = this.$wrapperEl, s = this.activeIndex; 2735 t.loop && this.loopDestroy(); 2736 var a = s + 1; 2737 if ("object" == typeof e && "length" in e) { 2738 for (var r = 0; r < e.length; r += 1) e[r] && i.prepend(e[r]); 2739 a = s + e.length 2740 } else i.prepend(e); 2741 t.loop && this.loopCreate(), t.observer && o.observer || this.update(), this.slideTo(a, 0, !1) 2742 }, addSlide: function (e, t) { 2743 var i = this.$wrapperEl, s = this.params, a = this.activeIndex; 2744 s.loop && (a -= this.loopedSlides, this.loopDestroy(), this.slides = i.children("." + s.slideClass)); 2745 var r = this.slides.length; 2746 if (e <= 0) this.prependSlide(t); else if (e >= r) this.appendSlide(t); else { 2747 for (var n = a > e ? a + 1 : a, l = [], d = r - 1; d >= e; d -= 1) { 2748 var h = this.slides.eq(d); 2749 h.remove(), l.unshift(h) 2750 } 2751 if ("object" == typeof t && "length" in t) { 2752 for (var p = 0; p < t.length; p += 1) t[p] && i.append(t[p]); 2753 n = a > e ? a + t.length : a 2754 } else i.append(t); 2755 for (var c = 0; c < l.length; c += 1) i.append(l[c]); 2756 s.loop && this.loopCreate(), s.observer && o.observer || this.update(), s.loop ? this.slideTo(n + this.loopedSlides, 0, !1) : this.slideTo(n, 0, !1) 2757 } 2758 }, removeSlide: function (e) { 2759 var t = this.params, i = this.$wrapperEl, s = this.activeIndex; 2760 t.loop && (s -= this.loopedSlides, this.loopDestroy(), this.slides = i.children("." + t.slideClass)); 2761 var a, r = s; 2762 if ("object" == typeof e && "length" in e) { 2763 for (var n = 0; n < e.length; n += 1) a = e[n], this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1); 2764 r = Math.max(r, 0) 2765 } else a = e, this.slides[a] && this.slides.eq(a).remove(), a < r && (r -= 1), r = Math.max(r, 0); 2766 t.loop && this.loopCreate(), t.observer && o.observer || this.update(), t.loop ? this.slideTo(r + this.loopedSlides, 0, !1) : this.slideTo(r, 0, !1) 2767 }, removeAllSlides: function () { 2768 for (var e = [], t = 0; t < this.slides.length; t += 1) e.push(t); 2769 this.removeSlide(e) 2770 } 2771 }, I = (m = t.navigator.platform, g = t.navigator.userAgent, b = { 2772 ios: !1, 2773 android: !1, 2774 androidChrome: !1, 2775 desktop: !1, 2776 iphone: !1, 2777 ipod: !1, 2778 ipad: !1, 2779 edge: !1, 2780 ie: !1, 2781 firefox: !1, 2782 macos: !1, 2783 windows: !1, 2784 cordova: !(!t.cordova && !t.phonegap), 2785 phonegap: !(!t.cordova && !t.phonegap), 2786 electron: !1 2787 }, w = t.screen.width, y = t.screen.height, x = g.match(/(Android);?[\s\/]+([\d.]+)?/), T = g.match(/(iPad).*OS\s([\d_]+)/), E = g.match(/(iPod)(.*OS\s([\d_]+))?/), C = !T && g.match(/(iPhone\sOS|iOS)\s([\d_]+)/), S = g.indexOf("MSIE ") >= 0 || g.indexOf("Trident/") >= 0, M = g.indexOf("Edge/") >= 0, P = g.indexOf("Gecko/") >= 0 && g.indexOf("Firefox/") >= 0, z = "Win32" === m, k = g.toLowerCase().indexOf("electron") >= 0, $ = "MacIntel" === m, !T && $ && o.touch && (1024 === w && 1366 === y || 834 === w && 1194 === y || 834 === w && 1112 === y || 768 === w && 1024 === y) && (T = g.match(/(Version)\/([\d.]+)/), $ = !1), b.ie = S, b.edge = M, b.firefox = P, x && !z && (b.os = "android", b.osVersion = x[2], b.android = !0, b.androidChrome = g.toLowerCase().indexOf("chrome") >= 0), (T || C || E) && (b.os = "ios", b.ios = !0), C && !E && (b.osVersion = C[2].replace(/_/g, "."), b.iphone = !0), T && (b.osVersion = T[2].replace(/_/g, "."), b.ipad = !0), E && (b.osVersion = E[3] ? E[3].replace(/_/g, ".") : null, b.ipod = !0), b.ios && b.osVersion && g.indexOf("Version/") >= 0 && "10" === b.osVersion.split(".")[0] && (b.osVersion = g.toLowerCase().split("version/")[1].split(" ")[0]), b.webView = !(!(C || T || E) || !g.match(/.*AppleWeb
2787Kit(?!.*Safari)/i) && !t.navigator.standalone) || t.matchMedia && t.matchMedia("(display-mode: standalone)").matches, b.webview = b.webView, b.standalone = b.webView, b.desktop = !(b.ios || b.android) || k, b.desktop && (b.electron = k, b.macos = $, b.windows = z, b.macos && (b.os = "macos"), b.windows && (b.os = "windows")), b.pixelRatio = t.devicePixelRatio || 1, b); 2788 2789 function D(i) { 2790 var a = this.touchEventsData, r = this.params, o = this.touches; 2791 if (!this.animating || !r.preventInteractionOnTransition) { 2792 var l = i; 2793 l.originalEvent && (l = l.originalEvent); 2794 var d = s(l.target); 2795 if (("wrapper" !== r.touchEventsTarget || d.closest(this.wrapperEl).length) && (a.isTouchEvent = "touchstart" === l.type, (a.isTouchEvent || !("which" in l) || 3 !== l.which) && !(!a.isTouchEvent && "button" in l && l.button > 0 || a.isTouched && a.isMoved))) if (r.noSwiping && d.closest(r.noSwipingSelector ? r.noSwipingSelector : "." + r.noSwipingClass)[0]) this.allowClick = !0; else if (!r.swipeHandler || d.closest(r.swipeHandler)[0]) { 2796 o.currentX = "touchstart" === l.type ? l.targetTouches[0].pageX : l.pageX, o.currentY = "touchstart" === l.type ? l.targetTouches[0].pageY : l.pageY; 2797 var h = o.currentX, p = o.currentY, c = r.edgeSwipeDetection || r.iOSEdgeSwipeDetection, 2798 u = r.edgeSwipeThreshold || r.iOSEdgeSwipeThreshold; 2799 if (!c || !(h <= u || h >= t.screen.width - u)) { 2800 if (n.extend(a, { 2801 isTouched: !0, 2802 isMoved: !1, 2803 allowTouchCallbacks: !0, 2804 isScrolling: void 0, 2805 startMoving: void 0 2806 }), o.startX = h, o.startY = p, a.touchStartTime = n.now(), this.allowClick = !0, this.updateSize(), this.swipeDirection = void 0, r.threshold > 0 && (a.allowThresholdMove = !1), "touchstart" !== l.type) { 2807 var v = !0; 2808 d.is(a.formElements) && (v = !1), e.activeElement && s(e.activeElement).is(a.formElements) && e.activeElement !== d[0] && e.activeElement.blur(); 2809 var f = v && this.allowTouchMove && r.touchStartPreventDefault; 2810 (r.touchStartForcePreventDefault || f) && l.preventDefault() 2811 } 2812 this.emit("touchStart", l) 2813 } 2814 } 2815 } 2816 } 2817 2818 function O(t) { 2819 var i = this.touchEventsData, a = this.params, r = this.touches, o = this.rtlTranslate, l = t; 2820 if (l.originalEvent && (l = l.originalEvent), i.isTouched) { 2821 if (!i.isTouchEvent || "mousemove" !== l.type) { 2822 var d = "touchmove" === l.type && l.targetTouches && (l.targetTouches[0] || l.changedTouches[0]), 2823 h = "touchmove" === l.type ? d.pageX : l.pageX, p = "touchmove" === l.type ? d.pageY : l.pageY; 2824 if (l.preventedByNestedSwiper) return r.startX = h, void (r.startY = p); 2825 if (!this.allowTouchMove) return this.allowClick = !1, void (i.isTouched && (n.extend(r, { 2826 startX: h, 2827 startY: p, 2828 currentX: h, 2829 currentY: p 2830 }), i.touchStartTime = n.now())); 2831 if (i.isTouchEvent && a.touchReleaseOnEdges && !a.loop) if (this.isVertical()) { 2832 if (p < r.startY && this.translate <= this.maxTranslate() || p > r.startY && this.translate >= this.minTranslate()) return i.isTouched = !1, void (i.isMoved = !1) 2833 } else if (h < r.startX && this.translate <= this.maxTranslate() || h > r.startX && this.translate >= this.minTranslate()) return; 2834 if (i.isTouchEvent && e.activeElement && l.target === e.activeElement && s(l.target).is(i.formElements)) return i.isMoved = !0, void (this.allowClick = !1); 2835 if (i.allowTouchCallbacks && this.emit("touchMove", l), !(l.targetTouches && l.targetTouches.length > 1)) { 2836 r.currentX = h, r.currentY = p; 2837 var c = r.currentX - r.startX, u = r.currentY - r.startY; 2838 if (!(this.params.threshold && Math.sqrt(Math.pow(c, 2) + Math.pow(u, 2)) < this.params.threshold)) { 2839 var v; 2840 if (void 0 === i.isScrolling) this.isHorizontal() && r.currentY === r.startY || this.isVertical() && r.currentX === r.startX ? i.isScrolling = !1 : c * c + u * u >= 25 && (v = 180 * Math.atan2(Math.abs(u), Math.abs(c)) / Math.PI, i.isScrolling = this.isHorizontal() ? v > a.touchAngle : 90 - v > a.touchAngle);
2841 if (i.isScrolling && this.emit("touchMoveOpposite", l), void 0 === i.startMoving && (r.currentX === r.startX && r.currentY === r.startY || (i.startMoving = !0)), i.isScrolling) i.isTouched = !1; else if (i.startMoving) { 2842 this.allowClick = !1, a.cssMode || l.preventDefault(), a.touchMoveStopPropagation && !a.nested && l.stopPropagation(), i.isMoved || (a.loop && this.loopFix(), i.startTranslate = this.getTranslate(), this.setTransition(0), this.animating && this.$wrapperEl.trigger("webkitTransitionEnd transitionend"), i.allowMomentumBounce = !1, !a.grabCursor || !0 !== this.allowSlideNext && !0 !== this.allowSlidePrev || this.setGrabCursor(!0), this.emit("sliderFirstMove", l)), this.emit("sliderMove", l), i.isMoved = !0; 2843 var f = this.isHorizontal() ? c : u; 2844 r.diff = f, f *= a.touchRatio, o && (f = -f), this.swipeDirection = f > 0 ? "prev" : "next", i.currentTranslate = f + i.startTranslate; 2845 var m = !0, g = a.resistanceRatio; 2846 if (a.touchReleaseOnEdges && (g = 0), f > 0 && i.currentTranslate > this.minTranslate() ? (m = !1, a.resistance && (i.currentTranslate = this.minTranslate() - 1 + Math.pow(-this.minTranslate() + i.startTranslate + f, g))) : f < 0 && i.currentTranslate < this.maxTranslate() && (m = !1, a.resistance && (i.currentTranslate = this.maxTranslate() + 1 - Math.pow(this.maxTranslate() - i.startTranslate - f, g))), m && (l.preventedByNestedSwiper = !0), !this.allowSlideNext && "next" === this.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !this.allowSlidePrev && "prev" === this.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), a.threshold > 0) { 2847 if (!(Math.abs(f) > a.threshold || i.allowThresholdMove)) return void (i.currentTranslate = i.startTranslate); 2848 if (!i.allowThresholdMove) return i.allowThresholdMove = !0, r.startX = r.currentX, r.startY = r.currentY, i.currentTranslate = i.startTranslate, void (r.diff = this.isHorizontal() ? r.currentX - r.startX : r.currentY - r.startY) 2849 } 2850 a.followFinger && !a.cssMode && ((a.freeMode || a.watchSlidesProgress || a.watchSlidesVisibility) && (this.updateActiveIndex(), this.updateSlidesClasses()), a.freeMode && (0 === i.velocities.length && i.velocities.push({ 2851 position: r[this.isHorizontal() ? "startX" : "startY"], 2852 time: i.touchStartTime 2853 }), i.velocities.push({ 2854 position: r[this.isHorizontal() ? "currentX" : "currentY"], 2855 time: n.now() 2856 })), this.updateProgress(i.currentTranslate), this.setTranslate(i.currentTranslate)) 2857 } 2858 } 2859 } 2860 } 2861 } else i.startMoving && i.isScrolling && this.emit("touchMoveOpposite", l) 2862 } 2863 2864 function A(e) { 2865 var t = this, i = t.touchEventsData, s = t.params, a = t.touches, r = t.rtlTranslate, o = t.$wrapperEl, 2866 l = t.slidesGrid, d = t.snapGrid, h = e; 2867 if (h.originalEvent && (h = h.originalEvent), i.allowTouchCallbacks && t.emit("touchEnd", h), i.allowTouchCallbacks = !1, !i.isTouched) return i.isMoved && s.grabCursor && t.setGrabCursor(!1), i.isMoved = !1, void (i.startMoving = !1); 2868 s.grabCursor && i.isMoved && i.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1); 2869 var p, c = n.now(), u = c - i.touchStartTime; 2870 if (t.allowClick && (t.updateClickedSlide(h), t.emit("tap click", h), u < 300 && c - i.lastClickTime < 300 && t.emit("doubleTap doubleClick", h)), i.lastClickTime = n.now(), n.nextTick((function () { 2871 t.destroyed || (t.allowClick = !0) 2872 })), !i.isTouched || !i.isMoved || !t.swipeDirection || 0 === a.diff || i.currentTranslate === i.startTranslate) return i.isTouched = !1, i.isMoved = !1, void (i.startMoving = !1); 2873 if (i.isTouched = !1, i.isMoved = !1, i.startMoving = !1, p = s.followFinger ? r ? t.translate : -t.translate : -i.currentTranslate, !s.cssMode) if (s.freeMode) { 2874 if (p < -t.minTranslate()) return void t.slideTo(t.activeIndex); 2875 if (p > -t.maxTranslate()) return void (t.slides.length < d.length ? t.slideTo(d.length - 1) : t.slideTo(t.slides.length - 1)); 2876 if (s.freeModeMomentum) { 2877 if (i.velocities.length > 1) { 2878 var v = i.velocities.pop(), f = i.velocities.pop(), m = v.position - f.position, 2879 g = v.time - f.time; 2880 t.velocity = m / g, t.velocity /= 2, Math.abs(t.velocity) < s.freeModeMinimumVelocity && (t.velocity = 0), (g > 150 || n.now() - v.time > 300) && (t.velocity = 0) 2881 } else t.velocity = 0; 2882 t.velocity *= s.freeModeMomentumVelocityRatio, i.velocities.length = 0; 2883 var b = 1e3 * s.freeModeMomentumRatio, w = t.velocity * b, y = t.translate + w; 2884 r && (y = -y); 2885 var x, T, E = !1, C = 20 * Math.abs(t.velocity) * s.freeModeMomentumBounceRatio; 2886 if (y < t.maxTranslate()) s.freeModeMomentumBounce ? (y + t.maxTranslate() < -C && (y = t.maxTranslate() - C), x = t.maxTranslate(), E = !0, i.allowMomentumBounce = !0) : y = t.maxTranslate(), s.loop && s.centeredSlides && (T = !0); else if (y > t.minTranslate()) s.freeModeMomentumBounce ? (y - t.minTranslate() > C && (y = t.minTranslate() + C), x = t.minTranslate(), E = !0, i.allowMomentumBounce = !0) : y = t.minTranslate(), s.loop && s.centeredSlides && (T = !0); else if (s.freeModeSticky) { 2887 for (var S, M = 0; M < d.length; M += 1) if (d[M] > -y) { 2888 S = M; 2889 break 2890 } 2891 y = -(y = Math.abs(d[S] - y) < Math.abs(d[S - 1] - y) || "next" === t.swipeDirection ? d[S] : d[S - 1]) 2892 } 2893 if (T && t.once("transitionEnd", (function () { 2894 t.loopFix() 2895 })), 0 !== t.velocity) { 2896 if (b = r ? Math.abs((-y - t.translate) / t.velocity) : Math.abs((y - t.translate) / t.velocity), s.freeModeSticky) { 2897 var P = Math.abs((r ? -y : y) - t.translate), z = t.slidesSizesGrid[t.activeIndex]; 2898 b = P < z ? s.speed : P < 2 * z ? 1.5 * s.speed : 2.5 * s.speed 2899 } 2900 } else if (s.freeModeSticky) return void t.slideToClosest(); 2901 s.freeModeMomentumBounce && E ? (t.updateProgress(x), t.setTransition(b), t.setTranslate(y), t.transitionStart(!0, t.swipeDirection), t.animating = !0, o.transitionEnd((function () { 2902 t && !t.destroyed && i.allowMomentumBounce && (t.emit("momentumBounce"), t.setTransition(s.speed), t.setTranslate(x), o.transitionEnd((function () { 2903 t && !t.destroyed && t.transitionEnd() 2904 }))) 2905 }))) : t.velocity ? (t.updateProgress(y), t.setTransition(b), t.setTranslate(y), t.transitionStart(!0, t.swipeDirection), t.animating || (t.animating = !0, o.transitionEnd((function () { 2906 t && !t.destroyed && t.transitionEnd() 2907 })))) : t.updateProgress(y), t.updateActiveIndex(), t.updateSlidesClasses() 2908 } else if (s.freeModeSticky) return void t.slideToClosest(); 2909 (!s.freeModeMomentum || u >= s.longSwipesMs) && (t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses()) 2910 } else { 2911 for (var k = 0, $ = t.slidesSizesGrid[0], L = 0; L < l.length; L += s.slidesPerGroup) void 0 !== l[L + s.slidesPerGroup] ? p >= l[L] && p < l[L + s.slidesPerGroup] && (k = L, $ = l[L + s.slidesPerGroup] - l[L]) : p >= l[L] && (k = L, $ = l[l.length - 1] - l[l.length - 2]); 2912 var I = (p - l[k]) / $; 2913 if (u > s.longSwipesMs) { 2914 if (!s.longSwipes) return void t.slideTo(t.activeIndex); 2915 "next" === t.swipeDirection && (I >= s.longSwipesRatio ? t.slideTo(k + s.slidesPerGroup) : t.slideTo(k)), "prev" === t.swipeDirection && (I > 1 - s.longSwipesRatio ? t.slideTo(k + s.slidesPerGroup) : t.slideTo(k)) 2916 } else { 2917 if (!s.shortSwipes) return void t.slideTo(t.activeIndex); 2918 t.navigation && (h.target === t.navigation.nextEl || h.target === t.navigation.prevEl) ? h.target === t.navigation.nextEl ? t.slideTo(k + s.slidesPerGroup) : t.slideTo(k) : ("next" === t.swipeDirection && t.slideTo(k + s.slidesPerGroup), "prev" === t.swipeDirection && t.slideTo(k)) 2919 } 2920 } 2921 } 2922 2923 function G() { 2924 var e = this.params, t = this.el; 2925 if (!t || 0 !== t.offsetWidth) { 2926 e.breakpoints && this.setBreakpoint(); 2927 var i = this.allowSlideNext, s = this.allowSlidePrev, a = this.snapGrid; 2928 this.allowSlideNext = !0, this.allowSlidePrev = !0, this.updateSize(), this.updateSlides(), this.updateSlidesClasses(), ("auto" === e.slidesPerView || e.slidesPerView > 1) && this.isEnd && !this.params.centeredSlides ? this.slideTo(this.slides.length - 1, 0, !1, !0) : this.slideTo(this.activeIndex, 0, !1, !0), this.autoplay && this.autoplay.running && this.autoplay.paused && this.autoplay.run(), this.allowSlidePrev = s, this.allowSlideNext = i, this.params.watchOverflow && a !== this.snapGrid && this.checkOverflow() 2929 } 2930 } 2931 2932 function B(e) { 2933 this.allowClick || (this.params.preventClicks && e.preventDefault(), this.params.preventClicksPropagation && this.animating && (e.stopPropagation(), e.stopImmediatePropagation())) 2934 } 2935 2936 function H() { 2937 var e = this.wrapperEl; 2938 this.previousTranslate = this.translate, this.translate = this.isHorizontal() ? -e.scrollLeft : -e.scrollTop, -0 === this.translate && (this.translate = 0), this.updateActiveIndex(), this.updateSlidesClasses(); 2939 var t = this.maxTranslate() - this.minTranslate(); 2940 (0 === t ? 0 : (this.translate - this.minTranslate()) / t) !== this.progress && this.updateProgress(this.translate), this.emit
2940("setTranslate", this.translate, !1) 2941 } 2942 2943 var N = !1; 2944 2945 function X() { 2946 } 2947 2948 var V = { 2949 init: !0, 2950 direction: "horizontal", 2951 touchEventsTarget: "container", 2952 initialSlide: 0, 2953 speed: 300, 2954 cssMode: !1, 2955 preventInteractionOnTransition: !1, 2956 edgeSwipeDetection: !1, 2957 edgeSwipeThreshold: 20, 2958 freeMode: !1, 2959 freeModeMomentum: !0, 2960 freeModeMomentumRatio: 1, 2961 freeModeMomentumBounce: !0, 2962 freeModeMomentumBounceRatio: 1, 2963 freeModeMomentumVelocityRatio: 1, 2964 freeModeSticky: !1, 2965 freeModeMinimumVelocity: .02, 2966 autoHeight: !1, 2967 setWrapperSize: !1, 2968 virtualTranslate: !1, 2969 effect: "slide", 2970 breakpoints: void 0, 2971 spaceBetween: 0, 2972 slidesPerView: 1, 2973 slidesPerColumn: 1, 2974 slidesPerColumnFill: "column", 2975 slidesPerGroup: 1, 2976 centeredSlides: !1, 2977 centeredSlidesBounds: !1, 2978 slidesOffsetBefore: 0, 2979 slidesOffsetAfter: 0, 2980 normalizeSlideIndex: !0, 2981 centerInsufficientSlides: !1, 2982 watchOverflow: !1, 2983 roundLengths: !1, 2984 touchRatio: 1, 2985 touchAngle: 45, 2986 simulateTouch: !0, 2987 shortSwipes: !0, 2988 longSwipes: !0, 2989 longSwipesRatio: .5, 2990 longSwipesMs: 300, 2991 followFinger: !0, 2992 allowTouchMove: !0, 2993 threshold: 0, 2994 touchMoveStopPropagation: !1, 2995 touchStartPreventDefault: !0, 2996 touchStartForcePreventDefault: !1, 2997 touchReleaseOnEdges: !1, 2998 uniqueNavElements: !0, 2999 resistance: !0, 3000 resistanceRatio: .85, 3001 watchSlidesProgress: !1, 3002 watchSlidesVisibility: !1, 3003 grabCursor: !1, 3004 preventClicks: !0, 3005 preventClicksPropagation: !0, 3006 slideToClickedSlide: !1, 3007 preloadImages: !0, 3008 updateOnImagesReady: !0, 3009 loop: !1, 3010 loopAdditionalSlides: 0, 3011 loopedSlides: null, 3012 loopFillGroupWithBlank: !1, 3013 allowSlidePrev: !0, 3014 allowSlideNext: !0, 3015 swipeHandler: null, 3016 noSwiping: !0, 3017 noSwipingClass: "swiper-no-swiping", 3018 noSwipingSelector: null, 3019 passiveListeners: !0, 3020 containerModifierClass: "swiper-container-", 3021 slideClass: "swiper-slide", 3022 slideBlankClass: "swiper-slide-invisible-blank", 3023 slideActiveClass: "swiper-slide-active", 3024 slideDuplicateActiveClass: "swiper-slide-duplicate-active", 3025 slideVisibleClass: "swiper-slide-visible", 3026 slideDuplicateClass: "swiper-slide-duplicate", 3027 slideNextClass: "swiper-slide-next", 3028 slideDuplicateNextClass: "swiper-slide-duplicate-next", 3029 slidePrevClass: "swiper-slide-prev", 3030 slideDuplicatePrevClass: "swiper-slide-duplicate-prev", 3031 wrapperClass: "swiper-wrapper", 3032 runCallbacksOnInit: !0 3033 }, Y = { 3034 update: h, translate: p, transition: c, slide: u, loop: v, grabCursor: f, manipulation: L, events: { 3035 attachEvents: function () { 3036 var t = this.params, i = this.touchEvents, s = this.el, a = this.wrapperEl; 3037 this.onTouchStart = D.bind(this), this.onTouchMove = O.bind(this), this.onTouchEnd = A.bind(this), t.cssMode && (this.onScroll = H.bind(this)), this.onClick = B.bind(this); 3038 var r = !!t.nested; 3039 if (!o.touch && o.pointerEvents) s.addEventListener(i.start, this.onTouchStart, !1), e.addEventListener(i.move, this.onTouchMove, r), e.addEventListener(i.end, this.onTouchEnd, !1); else { 3040 if (o.touch) { 3041 var n = !("touchstart" !== i.start || !o.passiveListener || !t.passiveListeners) && { 3042 passive: !0, 3043 capture: !1 3044 }; 3045 s.addEventListener(i.start, this.onTouchStart, n), s.addEventListener(i.move, this.onTouchMove, o.passiveListener ? { 3046 passive: !1, 3047 capture: r 3048 } : r), s.addEventListener(i.end, this.onTouchEnd, n), i.cancel && s.addEventListener(i.cancel, this.onTouchEnd, n), N || (e.addEventListener("touchstart", X), N = !0) 3049 } 3050 (t.simulateTouch && !I.ios && !I.android || t.simulateTouch && !o.touch && I.ios) && (s.addEventListener("mousedown", this.onTouchStart, !1), e.addEventListener("mousemove", this.onTouchMove, r), e.addEventListener("mouseup", this.onTouchEnd, !1)) 3051 } 3052 (t.preventClicks || t.preventClicksPropagation) && s.addEventListener("click", this.onClick, !0), t.cssMode && a.addEventListener("scroll", this.onScroll), this.on(I.ios || I.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", G, !0) 3053 }, detachEvents: function () { 3054 var t = this.params, i = this.touchEvents, s = this.el, a = this.wrapperEl, r = !!t.nested; 3055 if (!o.touch && o.pointerEvents) s.removeEventListener(i.start, this.onTouchStart, !1), e.removeEventListener(i.move, this.onTouchMove, r), e.removeEventListener(i.end, this.onTouchEnd, !1); else { 3056 if (o.touch) { 3057 var n = !("onTouchStart" !== i.start || !o.passiveListener || !t.passiveListeners) && { 3058 passive: !0, 3059 capture: !1 3060 }; 3061 s.removeEventListener(i.start, this.onTouchStart, n), s.removeEventListener(i.move, this.onTouchMove, r), s.removeEventListener(i.end, this.onTouchEnd, n), i.cancel && s.removeEventListener(i.cancel, this.onTouchEnd, n) 3062 } 3063 (t.simulateTouch && !I.ios && !I.android || t.simulateTouch && !o.touch && I.ios) && (s.removeEventListener("mousedown", this.onTouchStart, !1), e.removeEventListener("mousemove", this.onTouchMove, r), e.removeEventListener("mouseup", this.onTouchEnd, !1)) 3064 } 3065 (t.preventClicks || t.preventClicksPropagation) && s.removeEventListener("click", this.onClick, !0), t.cssMode && a.removeEventListener("scroll", this.onScroll), this.off(I.ios || I.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", G) 3066 } 3067 }, breakpoints: { 3068 setBreakpoint: function () { 3069 var e = this.activeIndex, t = this.initialized, i = this.loopedSlides; 3070 void 0 === i && (i = 0); 3071 var s = this.params, a = this.$el, r = s.breakpoints; 3072 if (r && (!r || 0 !== Object.keys(r).length)) {
3073 var o = this.getBreakpoint(r); 3074 if (o && this.currentBreakpoint !== o) { 3075 var l = o in r ? r[o] : void 0; 3076 l && ["slidesPerView", "spaceBetween", "slidesPerGroup", "slidesPerColumn"].forEach((function (e) { 3077 var t = l[e]; 3078 void 0 !== t && (l[e] = "slidesPerView" !== e || "AUTO" !== t && "auto" !== t ? "slidesPerView" === e ? parseFloat(t) : parseInt(t, 10) : "auto") 3079 })); 3080 var d = l || this.originalParams, h = s.slidesPerColumn > 1, p = d.slidesPerColumn > 1; 3081 h && !p ? a.removeClass(s.containerModifierClass + "multirow " + s.containerModifierClass + "multirow-column") : !h && p && (a.addClass(s.containerModifierClass + "multirow"), "column" === d.slidesPerColumnFill && a.addClass(s.containerModifierClass + "multirow-column")); 3082 var c = d.direction && d.direction !== s.direction, 3083 u = s.loop && (d.slidesPerView !== s.slidesPerView || c); 3084 c && t && this.changeDirection(), n.extend(this.params, d), n.extend(this, { 3085 allowTouchMove: this.params.allowTouchMove, 3086 allowSlideNext: this.params.allowSlideNext, 3087 allowSlidePrev: this.params.allowSlidePrev 3088 }), this.currentBreakpoint = o, u && t && (this.loopDestroy(), this.loopCreate(), this.updateSlides(), this.slideTo(e - i + this.loopedSlides, 0, !1)), this.emit("breakpoint", d) 3089 } 3090 } 3091 }, getBreakpoint: function (e) { 3092 if (e) { 3093 var i = !1, s = []; 3094 Object.keys(e).forEach((function (e) { 3095 s.push(e) 3096 })), s.sort((function (e, t) { 3097 return parseInt(e, 10) - parseInt(t, 10) 3098 })); 3099 for (var a = 0; a < s.length; a += 1) { 3100 var r = s[a]; 3101 r <= t.innerWidth && (i = r) 3102 } 3103 return i || "max" 3104 } 3105 } 3106 }, checkOverflow: { 3107 checkOverflow: function () { 3108 var e = this.params, t = this.isLocked, 3109 i = this.slides.length > 0 && e.slidesOffsetBefore + e.spaceBetween * (this.slides.length - 1) + this.slides[0].offsetWidth * this.slides.length; 3110 e.slidesOffsetBefore && e.slidesOffsetAfter && i ? this.isLocked = i <= this.size : this.isLocked = 1 === this.snapGrid.length, this.allowSlideNext = !this.isLocked, this.allowSlidePrev = !this.isLocked, t !== this.isLocked && this.emit(this.isLocked ? "lock" : "unlock"), t && t !== this.isLocked && (this.isEnd = !1, this.navigation.update()) 3111 } 3112 }, classes: { 3113 addClasses: function () { 3114 var e = this.classNames, t = this.params, i = this.rtl, s = this.$el, a = []; 3115 a.push("initialized"), a.push(t.direction), t.freeMode && a.push("free-mode"), t.autoHeight && a.push("autoheight"), i && a.push("rtl"), t.slidesPerColumn > 1 && (a.push("multirow"), "column" === t.slidesPerColumnFill && a.push("multirow-column")), I.android && a.push("android"), I.ios && a.push("ios"), t.cssMode && a.push("css-mode"), a.forEach((function (i) { 3116 e.push(t.containerModifierClass + i) 3117 })), s.addClass(e.join(" ")) 3118 }, removeClasses: function () { 3119 var e = this.$el, t = this.classNames; 3120 e.removeClass(t.join(" ")) 3121 } 3122 }, images: { 3123 loadImage: function (e, i, s, a, r, n) { 3124 var o; 3125 3126 function l() { 3127 n && n() 3128 } 3129 3130 e.complete && r ? l() : i ? ((o = new t.Image).onload = l, o.onerror = l, a && (
3130o.sizes = a), s && (o.srcset = s), i && (o.src = i)) : l() 3131 }, preloadImages: function () { 3132 var e = this; 3133 3134 function t() { 3135 null != e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1), e.imagesLoaded === e.imagesToLoad.length && (e.params.updateOnImagesReady && e.update(), e.emit("imagesReady"))) 3136 } 3137 3138 e.imagesToLoad = e.$el.find("img"); 3139 for (var i = 0; i < e.imagesToLoad.length; i += 1) { 3140 var s = e.imagesToLoad[i]; 3141 e.loadImage(s, s.currentSrc || s.getAttribute("src"), s.srcset || s.getAttribute("srcset"), s.sizes || s.getAttribute("sizes"), !0, t) 3142 } 3143 } 3144 } 3145 }, F = {}, W = function (e) { 3146 function t() { 3147 for (var i, a, r, l = [], d = arguments.length; d--;) l[d] = arguments[d]; 3148 1 === l.length && l[0].constructor && l[0].constructor === Object ? r = l[0] : (a = (i = l)[0], r = i[1]), r || (r = {}), r = n.extend({}, r), a && !r.el && (r.el = a), e.call(this, r), Object.keys(Y).forEach((function (e) {
3149 Object.keys(Y[e]).forEach((function (i) { 3150 t.prototype[i] || (t.prototype[i] = Y[e][i]) 3151 })) 3152 })); 3153 var h = this; 3154 void 0 === h.modules && (h.modules = {}), Object.keys(h.modules).forEach((function (e) { 3155 var t = h.modules[e]; 3156 if (t.params) { 3157 var i = Object.keys(t.params)[0], s = t.params[i]; 3158 if ("object" != typeof s || null === s) return; 3159 if (!(i in r && "enabled" in s)) return; 3160 !0 === r[i] && (r[i] = {enabled: !0}), "object" != typeof r[i] || "enabled" in r[i] || (r[i].enabled = !0), r[i] || (r[i] = {enabled: !1}) 3161 } 3162 })); 3163 var p = n.extend({}, V); 3164 h.useModulesParams(p), h.params = n.extend({}, p, F, r), h.originalParams = n.extend({}, h.params), h.passedParams = n.extend({}, r), h.$ = s; 3165 var c = s(h.params.el); 3166 if (a = c[0]) { 3167 if (c.length > 1) { 3168 var u = []; 3169 return c.each((function (e, i) { 3170 var s = n.extend({}, r, {el: i}); 3171 u.push(new t(s)) 3172 })), u 3173 } 3174 var v, f, m; 3175 return a.swiper = h, c.data("swiper", h), a && a.shadowRoot && a.shadowRoot.querySelector ? (v = s(a.shadowRoot.querySelector("." + h.params.wrapperClass))).children = function (e) { 3176 return c.children(e) 3177 } : v = c.children("." + h.params.wrapperClass), n.extend(h, { 3178 $el: c, 3179 el: a, 3180 $wrapperEl: v, 3181 wrapperEl: v[0], 3182 classNames: [], 3183 slides: s(), 3184 slidesGrid: [], 3185 snapGrid: [], 3186 slidesSizesGrid: [], 3187 isHorizontal: function () { 3188 return "horizontal" === h.params.direction 3189 }, 3190 isVertical: function () { 3191 return "vertical" === h.params.direction 3192 }, 3193 rtl: "rtl" === a.dir.toLowerCase() || "rtl" === c.css("direction"), 3194 rtlTranslate: "horizontal" === h.params.direction && ("rtl" === a.dir.toLowerCase() || "rtl" === c.css("direction")), 3195 wrongRTL: "-webkit-box" === v.css("display"), 3196 activeIndex: 0, 3197 realIndex: 0, 3198 isBeginning: !0, 3199 isEnd: !1, 3200 translate: 0, 3201 previousTranslate: 0, 3202 progress: 0, 3203 velocity: 0, 3204 animating: !1, 3205 allowSlideNext: h.params.allowSlideNext, 3206 allowSlidePrev: h.params.allowSlidePrev, 3207 touchEvents: (f = ["touchstart", "touchmove", "touchend", "touchcancel"], m = ["mousedown", "mousemove", "mouseup"], o.pointerEvents && (m = ["pointerdown", "pointermove", "pointerup"]), h.touchEventsTouch = { 3208 start: f[0], 3209 move: f[1], 3210 end: f[2], 3211 cancel: f[3] 3212 }, h.touchEventsDesktop = { 3213 start: m[0], 3214 move: m[1], 3215 end: m[2] 3216 }, o.touch || !h.params.simulateTouch ? h.touchEventsTouch : h.touchEventsDesktop), 3217 touchEventsData: { 3218 isTouched: void 0, 3219 isMoved: void 0, 3220 allowTouchCallbacks: void 0, 3221 touchStartTime: void 0, 3222 isScrolling: void 0, 3223 currentTranslate: void 0, 3224 startTranslate: void 0, 3225 allowThresholdMove: void 0, 3226 formElements: "input, select, option, textarea, button, video", 3227 lastClickTime: n.now(), 3228 clickTimeout: void 0, 3229 velocities: [], 3230 allowMomentumBounce: void 0, 3231 isTouchEvent: void 0, 3232 startMoving: void 0 3233 }, 3234 allowClick: !0, 3235 allowTouchMove: h.params.allowTouchMove, 3236 touches: {startX: 0, startY: 0, currentX: 0, currentY: 0, diff: 0}, 3237 imagesToLoad: [], 3238 imagesLoaded: 0 3239 }), h.useModules(), h.params.init && h.init(), h 3240 } 3241 } 3242 3243 e && (t.__proto__ = e), t.prototype = Object.create(e && e.prototype), t.prototype.constructor = t; 3244 var i = { 3245 extendedDefaults: {configurable: !0}, 3246 defaults: {configurable: !0}, 3247 Class: {configurable: !0}, 3248 $: {configurable: !0} 3249 }; 3250 return t.prototype.slidesPerViewDynamic = function () { 3251 var e = this.params, t = this.slides, i = this.slidesGrid, s = this.size, a = this.activeIndex, r = 1; 3252 if (e.centeredSlides) { 3253 for (var n, o = t[a].swiperSlideSize, l = a + 1; l < t.length; l += 1) t[l] && !n && (r += 1, (o += t[l].swiperSlideSize) > s && (n = !0)); 3254 for (var d = a - 1; d >= 0; d -= 1) t[d] && !n && (r += 1, (o += t[d].swiperSlideSize) > s && (n = !0)) 3255 } else for (var h = a + 1; h < t.length; h += 1) i[h] - i[a] < s && (r += 1); 3256 return r 3257 }, t.prototype.update = function () { 3258 var e = this; 3259 if (e && !e.destroyed) { 3260 var t = e.snapGrid, i = e.params; 3261 i.breakpoints && e.setBreakpoint(), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.params.freeMode ? (s(), e.params.autoHeight && e.updateAutoHeight()) : (("auto" === e.params.slidesPerView || e.params.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0)) || s(), i.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update") 3262 } 3263 3264 function s() { 3265 var t = e.rtlTranslate ? -1 * e.translate : e.translate, 3266 i = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate()); 3267 e.setTranslate(i), e.updateActiveIndex(), e.updateSlidesClasses() 3268 } 3269 }, t.prototype.changeDirection = function (e, t) { 3270 void 0 === t && (t = !0); 3271 var i = this.params.direction; 3272 return e || (e = "horizontal" === i ? "vertical" : "horizontal"), e === i || "horizontal" !== e && "vertical" !== e ? this : (this.$el.removeClass("" + this.params.containerModifierClass + i
3272).addClass("" + this.params.containerModifierClass + e), this.params.direction = e, this.slides.each((function (t, i) { 3273 "vertical" === e ? i.style.width = "" : i.style.height = "" 3274 })), this.emit("changeDirection"), t && this.update(), this) 3275 }, t.prototype.init = function () { 3276 this.initialized || (this.emit("beforeInit"), this.params.breakpoints && this.setBreakpoint(), this.addClasses(), this.params.loop && this.loopCreate(), this.updateSize(), this.updateSlides(), this.params.watchOverflow && this.checkOverflow(), this.params.grabCursor && this.setGrabCursor(), this.params.preloadImages && this.preloadImages(), this.params.loop ? this.slideTo(this.params.initialSlide + this.loopedSlides, 0, this.params.runCallbacksOnInit) : this.slideTo(this.params.initialSlide, 0, this.params.runCallbacksOnInit), this.attachEvents(), this.initialized = !0, this.emit("init")) 3277 }, t.prototype.destroy = function (e, t) { 3278 void 0 === e && (e = !0), void 0 === t && (t = !0); 3279 var i = this, s = i.params, a = i.$el, r = i.$wrapperEl, o = i.slides; 3280 return void 0 === i.params || i.destroyed ? null : (i.emit("beforeDestroy"), i.initialized = !1, i.detachEvents(), s.loop && i.loopDestroy(), t && (i.removeClasses(), a.removeAttr("style"), r.removeAttr("style"), o && o.length && o.removeClass([s.slideVisibleClass, s.slideActiveClass, s.slideNextClass, s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")), i.emit("destroy"), Object.keys(i.eventsListeners).forEach((function (e) { 3281 i.off(e) 3282 })), !1 !== e && (i.$el[0].swiper = null, i.$el.data("swiper", null), n.deleteProps(i)), i.destroyed = !0, null) 3283 }, t.extendDefaults = function (e) { 3284 n.extend(F, e) 3285 }, i.extendedDefaults.get = function () { 3286 return F 3287 }, i.defaults.get = function () { 3288 return V 3289 }, i.Class.get = function () { 3290 return e 3291 }, i.$.get = function () { 3292 return s 3293 }, Object.defineProperties(t, i), t 3294 }(l), R = {name: "device", proto: {device: I}, static: {device: I}}, 3295 q = {name: "support", proto: {support: o}, static: {support: o}}, j = { 3296 isEdge: !!t.navigator.userAgent.match(/Edge/g), isSafari: function () { 3297 var e = t.navigator.userAgent.toLowerCase(); 3298 return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0 3299 }(), isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent) 3300 }, K = {name: "browser", proto: {browser: j}, static: {browser: j}}, U = { 3301 name: "resize", create: function () { 3302 var e = this; 3303 n.extend(e, { 3304 resize: { 3305 resizeHandler: function () { 3306 e && !e.destroyed && e.initialized && (e.emit("beforeResize"), e.emit("resize")) 3307 }, orientationChangeHandler: function () { 3308 e && !e.destroyed && e.initialized && e.emit("orientationchange") 3309 } 3310 } 3311 }) 3312 }, on: { 3313 init: function () { 3314 t.addEventListener("resize", this.resize.resizeHandler), t.addEventListener("orientationchange", this.resize.orientationChangeHandler) 3315 }, destroy: function () { 3316 t.removeEventListener("resize", this.resize.resizeHandler), t.removeEventListener("orientationchange", this.resize.orientationChangeHandler) 3317 } 3318 } 3319 }, _ = { 3320 func: t.MutationObserver || t.WebkitMutationObserver, attach: function (e, i) { 3321 void 0 === i && (i = {}); 3322 var s = this, a = new (0, _.func)((function (e) { 3323 if (1 !== e.length) { 3324 var i = function () { 3325 s.emit("observerUpdate", e[0]) 3326 }; 3327 t.requestAnimationFrame ? t.requestAnimationFrame(i) : t.setTimeout(i, 0) 3328 } else s.emit("observerUpdate", e[0]) 3329 })); 3330 a.observe(e, { 3331 attributes: void 0 === i.attributes || i.attributes, 3332 childList: void 0 === i.childList || i.childList, 3333 characterData: void 0 === i.characterData || i.characterData 3334 }), s.observer.observers.push(a) 3335 }, init: function () { 3336 if (o.observer && this.params.observer) { 3337 if (this.params.observeParents) for (var e = this.$el.parents(), t = 0; t < e.length; t += 1) this.observer.attach(e[t]); 3338 this.observer.attach(this.$el[0], {childList: this.params.observeSlideChildren}), this.observer.attach(this.$wrapperEl[0], {attributes: !1}) 3339 } 3340 }, destroy: function () {
3341 this.observer.observers.forEach((function (e) { 3342 e.disconnect() 3343 })), this.observer.observers = [] 3344 } 3345 }, Z = { 3346 name: "observer", 3347 params: {observer: !1, observeParents: !1, observeSlideChildren: !1}, 3348 create: function () { 3349 n.extend(this, { 3350 observer: { 3351 init: _.init.bind(this), 3352 attach: _.attach.bind(this), 3353 destroy: _.destroy.bind(this), 3354 observers: [] 3355 } 3356 }) 3357 }, 3358 on: { 3359 init: function () { 3360 this.observer.init() 3361 }, destroy: function () { 3362 this.observer.destroy() 3363 } 3364 } 3365 }, Q = { 3366 update: function (e) { 3367 var t = this, i = t.params, s = i.slidesPerView, a = i.slidesPerGroup, r = i.centeredSlides, 3368 o = t.params.virtual, l = o.addSlidesBefore, d = o.addSlidesAfter, h = t.virtual, p = h.from, c = h.to, 3369 u = h.slides, v = h.slidesGrid, f = h.renderSlide, m = h.offset; 3370 t.updateActiveIndex(); 3371 var g, b, w, y = t.activeIndex || 0; 3372 g = t.rtlTranslate ? "right" : t.isHorizontal() ? "left" : "top", r ? (b = Math.floor(s / 2) + a + l, w = Math.floor(s / 2) + a + d) : (b = s + (a - 1) + l, w = a + d); 3373 var x = Math.max((y || 0) - w, 0), T = Math.min((y || 0) + b, u.length - 1), 3374 E = (t.slidesGrid[x] || 0) - (t.slidesGrid[0] || 0); 3375 3376 function C() { 3377 t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.lazy && t.params.lazy.enabled && t.lazy.load() 3378 } 3379 3380 if (n.extend(t.virtual, { 3381 from: x, 3382 to: T, 3383 offset: E, 3384 slidesGrid: t.slidesGrid 3385 }), p === x && c === T && !e) return t.slidesGrid !== v && E !== m && t.slides.css(g, E + "px"), void t.updateProgress(); 3386 if (t.params.virtual.renderExternal) return t.params.virtual.renderExternal.call(t, { 3387 offset: E, 3388 from: x, 3389 to: T, 3390 slides: function () { 3391 for (var e = [], t = x; t <= T; t += 1) e.push(u[t]); 3392 return e 3393 }() 3394 }), void C(); 3395 var S = [], M = []; 3396 if (e) t.$wrapperEl.find("." + t.params.slideClass).remove(); else for (var P = p; P <= c; P += 1) (P < x || P > T) && t.$wrapperEl.find("." + t.params.slideClass + '[data-swiper-slide-index="' + P + '"]').remove(); 3397 for (var z = 0; z < u.length; z += 1) z >= x && z <= T && (void 0 === c || e ? M.push(z) : (z > c && M.push(z), z < p && S.push(z))); 3398 M.forEach((function (e) { 3399 t.$wrapperEl.append(f(u[e], e)) 3400 })), S.sort((function (e, t) { 3401 return t - e 3402 })).forEach((function (e) { 3403 t.$wrapperEl.prepend(f(u[e], e)) 3404 })), t.$wrapperEl.children(".swiper-slide").css(g, E + "px"), C() 3405 }, renderSlide: function (e, t) { 3406 var i = this.params.virtual; 3407 if (i.cache && this.virtual.cache[t]) return this.virtual.cache[t]; 3408 var a = i.renderSlide ? s(i.renderSlide.call(this, e, t)) : s('<div class="' + this.params.slideClass + '" data-swiper-slide-index="' + t + '">' + e + "</div>"); 3409 return a.attr("data-swiper-slide-index") || a.attr("data-swiper-slide-index", t), i.cache && (this.virtual.cache[t] = a), a 3410 }, appendSlide: function (e) { 3411 if ("object" == typeof e && "length" in e) for (var t = 0; t < e.length; t += 1) e[t] && this.virtual.slides.push(e[t]); else this.virtual.slides.push(e); 3412 this.virtual.update(!0) 3413 }, prependSlide: function (e) { 3414 var t = this.activeIndex, i = t + 1, s = 1; 3415 if (Array.isArray(e)) { 3416 for (var a = 0; a < e.length; a += 1) e[a] && this.virtual.slides.unshift(e[a]); 3417 i = t + e.length, s = e.length 3418 } else this.virtual.slides.unshift(e); 3419 if (this.params.virtual.cache) { 3420 var r = this.virtual.cache, n = {}; 3421 Object.keys(r).forEach((function (e) { 3422 var t = r[e], i = t.attr("data-swiper-slide-index"); 3423 i && t.attr("data-swiper-slide-index", parseInt(i, 10) + 1), n[parseInt(e, 10) + s] = t 3424 })), this.virtual.cache = n 3425 } 3426 this.virtual.update(!0), this.slideTo(i, 0) 3427 }, removeSlide: function (e) { 3428 if (null != e) { 3429 var t = this.activeIndex; 3430 if (Array.isArray(e)) for (var i = e.length - 1; i >= 0; i -= 1) this.virtual.slides.splice(e[i], 1), this.params.virtual.cache && delete this.virtual.cache[e[i]], e[i] < t && (t -= 1), t = Math.max(t, 0); else this.virtual.slides.splice(e, 1), this.params.virtual.cache && delete this.virtual.cache[e], e < t && (t -= 1), t = Math.max(t, 0); 3431 this.virtual.update(!0), this.slideTo(t, 0) 3432 } 3433 }, removeAllSlides: function () { 3434 this.virtual.slides = [], this.params.virtual.cache && (this.virtual.cache = {}), this.virtual.update(!0), this.slideTo(0, 0) 3435 } 3436 }, J = { 3437 name: "virtual", 3438 params: { 3439 virtual: { 3440 enabled: !1, 3441 slides: [], 3442 cache: !0, 3443 renderSlide: null, 3444 renderExternal: null, 3445 addSlidesBefore: 0, 3446 addSlidesAfter: 0 3447 } 3448 }, 3449 create: function () { 3450 n.extend(this, { 3451 virtual: { 3452 update: Q.update.bind(this), 3453 appendSlide: Q.appendSlide.bind(this), 3454 prependSlide: Q.prependSlide.bind(this), 3455 removeSlide: Q.removeSlide.bind(this), 3456 removeAllSlides: Q.removeAllSlides.bind(this), 3457 renderSlide: Q.renderSlide.bind(this), 3458 slides: this.params.virtual.slides, 3459 cache: {} 3460 } 3461 }) 3462 }, 3463 on: { 3464 beforeInit: function () { 3465 if (this.params.virtual.enabled) { 3466 this.classNames.push(this.params.containerModifierClass + "virtual"); 3467 var e = {watchSlidesProgress: !0}; 3468 n.extend(this.params, e), n.extend(this.originalParams, e), this.params.initialSlide || this.virtual.update(
3468) 3469 } 3470 }, setTranslate: function () { 3471 this.params.virtual.enabled && this.virtual.update() 3472 } 3473 } 3474 }, ee = { 3475 handle: function (i) { 3476 var s = this.rtlTranslate, a = i; 3477 a.originalEvent && (a = a.originalEvent); 3478 var r = a.keyCode || a.charCode; 3479 if (!this.allowSlideNext && (this.isHorizontal() && 39 === r || this.isVertical() && 40 === r || 34 === r)) return !1; 3480 if (!this.allowSlidePrev && (this.isHorizontal() && 37 === r || this.isVertical() && 38 === r || 33 === r)) return !1; 3481 if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || e.activeElement && e.activeElement.nodeName && ("input" === e.activeElement.nodeName.toLowerCase() || "textarea" === e.activeElement.nodeName.toLowerCase()))) { 3482 if (this.params.keyboard.onlyInViewport && (33 === r || 34 === r || 37 === r || 39 === r || 38 === r || 40 === r)) { 3483 var n = !1; 3484 if (this.$el.parents("." + this.params.slideClass).length > 0 && 0 === this.$el.parents("." + this.params.slideActiveClass).length) return; 3485 var o = t.innerWidth, l = t.innerHeight, d = this.$el.offset(); 3486 s && (d.left -= this.$el[0].scrollLeft); 3487 for (var h = [[d.left, d.top], [d.left + this.width, d.top], [d.left, d.top + this.height], [d.left + this.width, d.top + this.height]], p = 0; p < h.length; p += 1) { 3488 var c = h[p]; 3489 c[0] >= 0 && c[0] <= o && c[1] >= 0 && c[1] <= l && (n = !0) 3490 } 3491 if (!n) return 3492 } 3493 this.isHorizontal() ? (33 !== r && 34 !== r && 37 !== r && 39 !== r || (a.preventDefault ? a.preventDefault() : a.returnValue = !1), (34 !== r && 39 !== r || s) && (33 !== r && 37 !== r || !s) || this.slideNext(), (33 !== r && 37 !== r || s) && (34 !== r && 39 !== r || !s) || this.slidePrev()) : (33 !== r && 34 !== r && 38 !== r && 40 !== r || (a.preventDefault ? a.preventDefault() : a.returnValue = !1), 34 !== r && 40 !== r || this.slideNext(), 33 !== r && 38 !== r || this.slidePrev()), this.emit("keyPress", r) 3494 } 3495 }, enable: function () { 3496 this.keyboard.enabled || (s(e).on("keydown", this.keyboard.handle), this.keyboard.enabled = !0) 3497 }, disable: function () { 3498 this.keyboard.enabled && (s(e).off("keydown", this.keyboard.handle), this.keyboard.enabled = !1) 3499 } 3500 }, te = { 3501 name: "keyboard", params: {keyboard: {enabled: !1, onlyInViewport: !0}}, create: function () { 3502 n.extend(this, { 3503 keyboard: { 3504 enabled: !1, 3505 enable: ee.enable.bind(this), 3506 disable: ee.disable.bind(this), 3507 handle: ee.handle.bind(this) 3508 } 3509 }) 3510 }, on: { 3511 init: function () { 3512 this.params.keyboard.enabled && this.keyboard.enable() 3513 }, destroy: function () { 3514 this.keyboard.enabled && this.keyboard.disable() 3515 } 3516 } 3517 }; 3518 var ie = { 3519 lastScrollTime: n.now(), lastEventBeforeSnap: void 0, recentWheelEvents: [], event: function () { 3520 return t.navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : function () { 3521 var t = "onwheel" in e; 3522 if (!t) { 3523 var i = e.createElement("div"); 3524 i.setAttribute("onwheel", "return;"), t = "function" == typeof i.onwheel 3525 } 3526 return !t && e.implementation && e.implementation.hasFeature && !0 !== e.implementation.hasFeature("", "") && (t = e.implementation.hasFeature("Events.wheel", "3.0")), t 3527 }() ? "wheel" : "mousewheel" 3528 }, normalize: function (e) { 3529 var t = 0, i = 0, s = 0, a = 0; 3530 return "detail" in e && (i = e.detail), "wheelDelta" in e && (i = -e.wheelDelta / 120), "wheelDeltaY" in e && (i = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = i, i = 0), s = 10 * t, a = 10 * i, "deltaY" in e && (a = e.deltaY), "deltaX" in e && (s = e.deltaX), e.shiftKey && !s && (s = a, a = 0), (s || a) && e.deltaMode && (1 === e.deltaMode ? (s *= 40, a *= 40) : (s *= 800, a *= 800)), s && !t && (t = s < 1 ? -1 : 1), a && !i && (i = a < 1 ? -1 : 1), { 3531 spinX: t, 3532 spinY: i, 3533 pixelX: s, 3534 pixelY: a 3535 } 3536 }, handleMouseEnter: function () { 3537 this.mouseEntered = !0 3538 }, handleMouseLeave: function () { 3539 this.mouseEntered = !1 3540 }, handle: function (e) { 3541 var i = e, s = this, a = s.params.mousewheel; 3542 if (s.params.cssMode && i.preventDefault(), !s.mouseEntered && !a.releaseOnEdges) return !0; 3543 i.originalEvent && (i = i.originalEvent); 3544 var r = 0, o = s.rtlTranslate ? -1 : 1, l = ie.normalize(i); 3545 if (a.forceToAxis) if (s.isHorizontal()) { 3546 if (!(Math.abs(l.pixelX) > Math.abs(l.pixelY))) return !0; 3547 r = l.pixelX * o 3548 } else { 3549 if (!(Math.abs(l.pixelY) > Math.abs(l.pixelX))) return !0; 3550 r = l.pixelY 3551 } else r = Math.abs(l.pixelX) > Math.abs(l.pixelY) ? -l.pixelX * o : -l.pixelY; 3552 if (0 === r) return !0; 3553 if (a.invert && (r = -r), s.params.freeMode) { 3554 var d = {time: n.now(), delta: Math.abs(r), direction: Math.sign(r)}, 3555 h = s.mousewheel.lastEventBeforeSnap, 3556 p = h && d.time < h.time + 500 && d.delta <= h.delta && d.direction === h.direction; 3557 if (!p) { 3558 s.mousewheel.lastEventBeforeSnap = void 0, s.params.loop && s.loopFix(); 3559 var c = s.getTranslate() + r * a.sensitivity, u = s.isBeginning, v = s.isEnd; 3560 if (c >= s.minTranslate() && (c = s.minTranslate()), c <= s.maxTranslate() && (c = s.maxTranslate()), s.setTransition(0), s.setTranslate(c), s.updateProgress(), s.updateActiveIndex(), s.updateSlidesClasses(), (!u && s.isBeginning || !v && s.isEnd) && s.updateSlidesClasses(), s.params.freeModeSticky) { 3561 clearTimeout(s.mousewheel.timeout), s.mousewheel.timeout = void 0; 3562 var f = s.mousewheel.recentWheelEvents; 3563 f.length >= 15 && f.shift(); 3564 var m = f.length ? f[f.length - 1] : void 0, g = f[0]; 3565 if (f.push(d), m && (d.delta > m.delta || d.direction !== m.direction)) f.splice(0); else if (f.length >= 15 && d.time - g.time < 500 && g.delta - d.delta >= 1 && d.delta <= 6) { 3566 var b = r > 0 ? .8 : .2; 3567 s.mousewheel.lastEventBeforeSnap = d, f.splice(0), s.mousewheel.timeout = n.nextTick((function () { 3568 s.slideToClosest(s.params.speed, !0, void 0, b) 3569 }), 0) 3570 } 3571 s.mousewheel.timeout || (s.mousewheel.timeout = n.nextTick((function () { 3572 s.mousewheel.lastEventBeforeSnap = d, f.splice(0), s.slideToClosest(s.params.speed, !0, void 0, .5) 3573 }), 500)) 3574 } 3575 if (p || s.emit("scroll", i), s.params.autoplay && s.params.autoplayDisableOnInteraction && s.autoplay.stop(), c === s.minTranslate() || c === s.maxTranslate()) return !0 3576 } 3577 } else { 3578 if (n.now() - s.mousewheel.lastScrollTime > 60) if (r < 0) if (s.isEnd && !s.params.loop || s.animating) { 3579 if (a.releaseOnEdges) return !0 3580 } else s.slideNext(), s.emit("scroll", i); else if (s.isBeginning && !s.params.loop || s.animating) { 3581 if (a.releaseOnEdges) return !0 3582 } else s.slidePrev(), s.emit("scroll", i); 3583 s.mousewheel.lastScrollTime = (new t.Date).getTime() 3584 } 3585 return i.preventDefault ? i.preventDefault() : i.returnValue = !1, !1 3586 }, enable: function () { 3587 var e = ie.event(); 3588 if (this.params.cssMode) return this.wrapperEl.removeEventListener(e, this.mousewheel.handle), !0; 3589 if (!e) return !1; 3590 if (this.mousewheel.enabled) return !1; 3591 var t = this.$el; 3592 return "container" !== this.params.mousewheel.eventsTarged && (t = s(this.params.mousewheel.eventsTarged)), t.on("mouseenter", this.mousewheel.handleMouseEnter), t.on("mouseleave", this.mousewheel.handleMouseLeave), t.on(e, this.mousewheel.handle), this.mousewheel.enabled = !0, !0 3593 }, disable: function () { 3594 var e = ie.event(); 3595 if (this.params.cssMode) return this.wrapperEl.addEventListener(e, this.mousewheel.handle), !0; 3596 if (!e) return !1; 3597 if (!this.mousewheel.enabled) return !1; 3598 var t = this.$el; 3599 return "container" !== this.params.mousewheel.eventsTarged && (t = s(this.params.mousewheel.eventsTarged)), t.off(e, this.mousewheel.handle), this.mousewheel.enabled = !1, !0 3600 } 3601 }, se = { 3602 update: function () { 3603 var e = this.params.navigation; 3604 if (!this.params.loop) { 3605 var t = this.navigation, i = t.$nextEl, s = t.$prevEl; 3606 s && s.length >
3606 0 && (this.isBeginning ? s.addClass(e.disabledClass) : s.removeClass(e.disabledClass), s[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](e.lockClass)), i && i.length > 0 && (this.isEnd ? i.addClass(e.disabledClass) : i.removeClass(e.disabledClass), i[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](e.lockClass)) 3607 } 3608 }, onPrevClick: function (e) { 3609 e.preventDefault(), this.isBeginning && !this.params.loop || this.slidePrev() 3610 }, onNextClick: function (e) { 3611 e.preventDefault(), this.isEnd && !this.params.loop || this.slideNext() 3612 }, init: function () { 3613 var e, t, i = this.params.navigation; 3614 (i.nextEl || i.prevEl) && (i.nextEl && (e = s(i.nextEl), this.params.uniqueNavElements && "string" == typeof i.nextEl && e.length > 1 && 1 === this.$el.find(i.nextEl).length && (e = this.$el.find(i.nextEl))), i.prevEl && (t = s(i.prevEl), this.params.uniqueNavElements && "string" == typeof i.prevEl && t.length > 1 && 1 === this.$el.find(i.prevEl).length && (t = this.$el.find(i.prevEl))), e && e.length > 0 && e.on("click", this.navigation.onNextClick), t && t.length > 0 && t.on("click", this.navigation.onPrevClick), n.extend(this.navigation, { 3615 $nextEl: e, 3616 nextEl: e && e[0], 3617 $prevEl: t, 3618 prevEl: t && t[0] 3619 })) 3620 }, destroy: function () { 3621 var e = this.navigation, t = e.$nextEl, i = e.$prevEl; 3622 t && t.length && (t.off("click", this.navigation.onNextClick), t.removeClass(this.params.navigation.disabledClass)), i && i.length && (i.off("click", this.navigation.onPrevClick), i.removeClass(this.params.navigation.disabledClass)) 3623 } 3624 }, ae = { 3625 update: function () { 3626 var e = this.rtl, t = this.params.pagination; 3627 if (t.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { 3628 var i, 3629 a = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length, 3630 r = this.pagination.$el, 3631 n = this.params.loop ? Math.ceil((a - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid.length; 3632 if (this.params.loop ? ((i = Math.ceil((this.activeIndex - this.loopedSlides) / this.params.slidesPerGroup)) > a - 1 - 2 * this.loopedSlides && (i -= a - 2 * this.loopedSlides), i > n - 1 && (i -= n), i < 0 && "bullets" !== this.params.paginationType && (i = n + i)) : i = void 0 !== this.snapIndex ? this.snapIndex : this.activeIndex || 0, "bullets" === t.type && this.pagination.bullets && this.pagination.bullets.length > 0) { 3633 var o, l, d, h = this.pagination.bullets; 3634 if (t.dynamicBullets && (this.pagination.bulletSize = h.eq(0)[this.isHorizontal() ? "outerWidth" : "outerHeight"](!0), r.css(this.isHorizontal() ? "width" : "height", this.pagination.bulletSize * (t.dynamicMainBullets + 4) + "px"), t.dynamicMainBullets > 1 && void 0 !== this.previousIndex && (this.pagination.dynamicBulletIndex += i - this.previousIndex, this.pagination.dynamicBulletIndex > t.dynamicMainBullets - 1 ? this.pagination.dynamicBulletIndex = t.dynamicMainBullets - 1 : this.pagination.dynamicBulletIndex < 0 && (this.pagination.dynamicBulletIndex = 0)), o = i - this.pagination.dynamicBulletIndex, d = ((l = o + (Math.min(h.length, t.dynamicMainBullets) - 1)) + o) / 2), h.removeClass(t.bulletActiveClass + " " + t.bulletActiveClass + "-next " + t.bulletActiveClass + "-next-next " + t.bulletActiveClass + "-prev " + t.bulletActiveClass + "-prev-prev " + t.bulletActiveClass + "-main"), r.length > 1) h.each((function (e, a) { 3635 var r = s(a), n = r.index(); 3636 n === i && r.addClass(t.bulletActiveClass), t.dynamicBullets && (n >= o && n <= l && r.addClass(t.bulletActiveClass + "-main"), n === o && r.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"), n === l && r.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next")) 3637 })); else { 3638 var p = h.eq(i), c = p.index(); 3639 if (p.addClass(t.bulletActiveClass), t.dynamicBullets) { 3640 for (var u = h.eq(o), v = h.eq(l), f = o;
3640 f <= l; f += 1) h.eq(f).addClass(t.bulletActiveClass + "-main"); 3641 if (this.params.loop) if (c >= h.length - t.dynamicMainBullets) { 3642 for (var m = t.dynamicMainBullets; m >= 0; m -= 1) h.eq(h.length - m).addClass(t.bulletActiveClass + "-main"); 3643 h.eq(h.length - t.dynamicMainBullets - 1).addClass(t.bulletActiveClass + "-prev") 3644 } else u.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"), v.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next"); else u.prev().addClass(t.bulletActiveClass + "-prev").prev().addClass(t.bulletActiveClass + "-prev-prev"), v.next().addClass(t.bulletActiveClass + "-next").next().addClass(t.bulletActiveClass + "-next-next") 3645 } 3646 } 3647 if (t.dynamicBullets) { 3648 var g = Math.min(h.length, t.dynamicMainBullets + 4), 3649 b = (this.pagination.bulletSize * g - this.pagination.bulletSize) / 2 - d * this.pagination.bulletSize, 3650 w = e ? "right" : "left"; 3651 h.css(this.isHorizontal() ? w : "top", b + "px") 3652 } 3653 } 3654 if ("fraction" === t.type && (r.find("." + t.currentClass).text(t.formatFractionCurrent(i + 1)), r.find("." + t.totalClass).text(t.formatFractionTotal(n))), "progressbar" === t.type) { 3655 var y; 3656 y = t.progressbarOpposite ? this.isHorizontal() ? "vertical" : "horizontal" : this.isHorizontal() ? "horizontal" : "vertical"; 3657 var x = (i + 1) / n, T = 1, E = 1; 3658 "horizontal" === y ? T = x : E = x, r.find("." + t.progressbarFillClass).transform("translate3d(0,0,0) scaleX(" + T + ") scaleY(" + E + ")").transition(this.params.speed) 3659 } 3660 "custom" === t.type && t.renderCustom ? (r.html(t.renderCustom(this, i + 1, n)), this.emit("paginationRender", this, r[0])) : this.emit("paginationUpdate", this, r[0]), r[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](t.lockClass) 3661 } 3662 }, render: function () { 3663 var e = this.params.pagination; 3664 if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { 3665 var t = this.virtual && this.params.virtual.enabled ? this.virtual.slides.length : this.slides.length, 3666 i = this.pagination.$el, s = ""; 3667 if ("bullets" === e.type) { 3668 for (var a = this.params.loop ? Math.ceil((t - 2 * this.loopedSlides) / this.params.slidesPerGroup) : this.snapGrid.length, r = 0; r < a; r += 1) e.renderBullet ? s += e.renderBullet.call(this, r, e.bulletClass) : s += "<" + e.bulletElement + ' class="' + e.bulletClass + '"></' + e.bulletElement + ">"; 3669 i.html(s), this.pagination.bullets = i.find("." + e.bulletClass) 3670 } 3671 "fraction" === e.type && (s = e.renderFraction ? e.renderFraction.call(this, e.currentClass, e.totalClass) : '<span class="' + e.currentClass + '"></span> / <span class="' + e.totalClass + '"></span>', i.html(s)), "progressbar" === e.type && (s = e.renderProgressbar ? e.renderProgressbar.call(this, e.progressbarFillClass) : '<span class="' + e.progressbarFillClass + '"></span>', i.html(s)), "custom" !== e.type && this.emit("paginationRender", this.pagination.$el[0]) 3672 } 3673 }, init: function () { 3674 var e = this, t = e.params.pagination; 3675 if (t.el) { 3676 var i = s(t.el); 3677 0 !== i.length && (e.params.uniqueNavElements && "string" == typeof t.el && i.length > 1 && 1 === e.$el.find(t.el).length && (i = e.$el.find(t.el)), "bullets" === t.type && t.clickable && i.addClass(t.clickableClass), i.addClass(t.modifierClass + t.type), "bullets" === t.type && t.dynamicBullets && (i.addClass("" + t.modifierClass + t.type + "-dynamic"), e.pagination.dynamicBulletIndex = 0, t.dynamicMainBullets < 1 && (t.dynamicMainBullets = 1)), "progressbar" === t.type && t.progressbarOpposite && i.addClass(t.progressbarOppositeClass), t.clickable && i.on("click", "." + t.bulletClass, (function (t) { 3678 t.preventDefault(); 3679 var i = s(this).index() * e.params.slidesPerGroup; 3680 e.params.loop && (i += e.loopedSlides), e.slideTo(i) 3681 })), n.extend(e.pagination, {$el: i, el: i[0]})) 3682 } 3683 }, destroy: function () { 3684 var e = this.params.pagination; 3685 if (e.el && this.pagination.el && this.pagination.$el && 0 !== this.pagination.$el.length) { 3686 var t = this.pagination.$el; 3687 t.removeClass(e.hiddenClass), t.removeClass(e.modifierClass + e.type), this.pagination.bullets && this.pagination.bullets.removeClass(e.bulletActiveClass), e.clickable && t.off("click", "." + e.bulletClass) 3688 } 3689 } 3690 }, re = { 3691 setTranslate: function () { 3692 if (this.params.scrollbar.el && this.scrollbar.el) { 3693 var e = this.scrollbar, t = this.rtlTranslate, i = this.progress, s = e.dragSize, a = e.trackSize, 3694 r = e.$dragEl, n = e.$el, o = this.params.scrollbar, l = s, d = (a
3694- s) * i; 3695 t ? (d = -d) > 0 ? (l = s - d, d = 0) : -d + s > a && (l = a + d) : d < 0 ? (l = s + d, d = 0) : d + s > a && (l = a - d), this.isHorizontal() ? (r.transform("translate3d(" + d + "px, 0, 0)"), r[0].style.width = l + "px") : (r.transform("translate3d(0px, " + d + "px, 0)"), r[0].style.height = l + "px"), o.hide && (clearTimeout(this.scrollbar.timeout), n[0].style.opacity = 1, this.scrollbar.timeout = setTimeout((function () { 3696 n[0].style.opacity = 0, n.transition(400) 3697 }), 1e3)) 3698 } 3699 }, setTransition: function (e) { 3700 this.params.scrollbar.el && this.scrollbar.el && this.scrollbar.$dragEl.transition(e) 3701 }, updateSize: function () { 3702 if (this.params.scrollbar.el && this.scrollbar.el) { 3703 var e = this.scrollbar, t = e.$dragEl, i = e.$el; 3704 t[0].style.width = "", t[0].style.height = ""; 3705 var s, a = this.isHorizontal() ? i[0].offsetWidth : i[0].offsetHeight, r = this.size / this.virtualSize, 3706 o = r * (a / this.size); 3707 s = "auto" === this.params.scrollbar.dragSize ? a * r : parseInt(this.params.scrollbar.dragSize, 10), this.isHorizontal() ? t[0].style.width = s + "px" : t[0].style.height = s + "px", i[0].style.display = r >= 1 ? "none" : "", this.params.scrollbar.hide && (i[0].style.opacity = 0), n.extend(e, { 3708 trackSize: a, 3709 divider: r, 3710 moveDivider: o, 3711 dragSize: s 3712 }), e.$el[this.params.watchOverflow && this.isLocked ? "addClass" : "removeClass"](this.params.scrollbar.lockClass) 3713 } 3714 }, getPointerPosition: function (e) { 3715 return this.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientX : e.clientX : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientY : e.clientY 3716 }, setDragPosition: function (e) { 3717 var t, i = this.scrollbar, s = this.rtlTranslate, a = i.$el, r = i.dragSize, n = i.trackSize, 3718 o = i.dragStartPos; 3719 t = (i.getPointerPosition(e) - a.offset()[this.isHorizontal() ? "left" : "top"] - (null !== o ? o : r / 2)) / (n - r), t = Math.max(Math.min(t, 1), 0), s && (t = 1 - t); 3720 var l = this.minTranslate() + (this.maxTranslate() - this.minTranslate()) * t; 3721 this.updateProgress(l), this.setTranslate(l), this.updateActiveIndex(), this.updateSlidesClasses() 3722 }, onDragStart: function (e) { 3723 var t = this.params.scrollbar, i = this.scrollbar, s = this.$wrapperEl, a = i.$el, r = i.$dragEl; 3724 this.scrollbar.isTouched = !0, this.scrollbar.dragStartPos = e.target === r[0] || e.target === r ? i.getPointerPosition(e) - e.target.getBoundingClientRect()[this.isHorizontal() ? "left" : "top"] : null, e.preventDefault(), e.stopPropagation(), s.transition(100), r.transition(100), i.setDragPosition(e), clearTimeout(this.scrollbar.dragTimeout), a.transition(0), t.hide && a.css("opacity", 1), this.params.cssMode && this.$wrapperEl.css("scroll-snap-type", "none"), this.emit("scrollbarDragStart", e) 3725 }, onDragMove: function (e) { 3726 var t = this.scrollbar, i = this.$wrapperEl, s = t.$el, a = t.$dragEl; 3727 this.scrollbar.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, t.setDragPosition(e), i.transition(0), s.transition(0), a.transition(0), this.emit("scrollbarDragMove", e)) 3728 }, onDragEnd: function (e) { 3729 var t = this.params.scrollbar, i = this.scrollbar, s = this.$wrapperEl, a = i.$el; 3730 this.scrollbar.isTouched && (this.scrollbar.isTouched = !1, this.params.cssMode && (this.$wrapperEl.css("scroll-snap-type", ""), s.transition("")), t.hide && (clearTimeout(this.scrollbar.dragTimeout), this.scrollbar.dragTimeout = n.nextTick((function () { 3731 a.css("opacity", 0), a.transition(400) 3732 }), 1e3)), this.emit("scrollbarDragEnd", e), t.snapOnRelease && this.slideToClosest()) 3733 }, enableDraggable: function () { 3734 if (this.params.scrollbar.el) { 3735 var t = this.scrollbar, i = this.touchEventsTouch, s = this.touchEventsDesktop, a = this.params, 3736 r = t.$el[0], n = !(!o.passiveListener || !a.passiveListeners) && {passive: !1, capture: !1}, 3737 l = !(!o.passiveListener || !a.passiveListeners) && {passive: !0, capture: !1}; 3738 o.touch ? (r.addEventListener(i.start, this.scrollbar.onDragStart, n), r.addEventListener(i.move, this.scrollbar.onDragMove, n), r.addEventListener(i.end, this.scrollbar.onDragEnd, l)) : (r.addEventListener(s.start, this.scrollbar.onDragStart, n), e.addEventListener(s.move, this.scrollbar.onDragMove, n), e.addEventListener(s.end, this.scrollbar.onDragEnd, l)) 3739 } 3740 }, disableDraggable: function () { 3741 if (this.params.scrollbar.el) { 3742 var t = this.scrollbar, i = this.touchEventsTouch, s = this.touchEventsDesktop, a = this.params, 3743 r = t.$el[0], n = !(!o.passiveListener || !a.passiveListeners) && {passive: !1, capture: !1}, 3744 l = !(!o.passiveListener || !a.passiveListeners) && {passive: !0, capture: !1}; 3745 o.touch ? (r.removeEventListener(i.start, this.scrollbar.onDragStart, n), r.removeEventListener(i.move, this.scrollbar.onDragMove, n), r.removeEventListener(i.end, this.scrollbar.onDragEnd, l)) : (r.removeEventListener(s.start, this.scrollbar.onDragStart, n), e.removeEventListener(s.move, this.scrollbar.onDragMove, n), e.removeEventListener(s.end, this.scrollbar.onDragEnd, l)) 3746 } 3747 }, init: function () { 3748 if (this.params.scrollbar.el) { 3749 var e = this.scrollbar, t = this.$el, i = this.params.scrollbar, a = s(i.el); 3750 this.params.uniqueNavElements && "string" == typeof i.el && a.length > 1 && 1 === t.find(i.el).length && (a = t.find(i.el)); 3751 var r = a.find("." + this.params.scrollbar.dragClass); 3752 0 === r.length && (r = s('<div class="' + this.params.scrollbar.dragClass + '"></div>'), a.append(r)), n.extend(e, { 3753 $el: a, 3754 el: a[0], 3755 $dragEl: r, 3756 dragEl: r[0] 3757 }), i.draggable && e.enableDraggable() 3758 } 3759 }, destroy: function () { 3760 this.scrollbar.disableDraggable() 3761 } 3762 }, ne = { 3763 setTransform: function (e, t) { 3764 var i = this.rtl, a = s(e), r = i ? -1 : 1, n = a.attr("data-swiper-parallax") || "0", 3765 o = a.attr("data-swiper-parallax-x"), l = a.attr("data-swiper-parallax-y"), 3766 d = a.attr("data-swiper-parallax-scale"), h = a.attr("data-swiper-parallax-opacity"); 3767 if (o || l ? (o = o || "0", l = l || "0") : this.isHorizontal() ? (o = n, l = "0") : (l = n, o = "0"), o = o.indexOf("%") >= 0 ? parseInt(o, 10) * t * r + "%" : o * t * r + "px", l = l.indexOf("%") >= 0 ? parseInt(l, 10) * t + "%" : l * t + "px", null != h) { 3768 var p = h - (h - 1) * (1 - Math.abs(t)); 3769 a[0].style.opacity = p 3770 } 3771 if (null == d) a.transform("translate3d(" + o + ", " + l + ", 0px)"); else { 3772 var c = d - (d - 1) * (1 - Math.abs(t)); 3773 a.transform("translate3d(" + o + ", " + l + ", 0px) scale(" + c + ")") 3774 } 3775 }, setTranslate: function () { 3776 var e = this, t = e.$el, i = e.slides, a = e.progress, r = e.snapGrid; 3777 t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function (t, i) { 3778 e.parallax.setTransform(i, a) 3779 })), i.each((function (t, i) { 3780 var n = i.progress; 3781 e.params.slidesPerGroup > 1 && "auto" !== e.params.slidesPerView && (n += Math.ceil(t / 2) - a * (r.length - 1)), n = Math.min(Math.max(n, -1), 1), s(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function (t, i) { 3782 e.parallax.setTransform(i, n) 3783 })) 3784 })) 3785 }, setTransition: function (e) { 3786 void 0 === e && (e = this.params.speed); 3787 this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function (t, i) { 3788 var a = s(i), r = parseInt(a.attr("data-swiper-parallax-duration"), 10) || e; 3789 0 === e && (r = 0), a.transition(r) 3790 })) 3791 } 3792 }, oe = { 3793 getDistanceBetweenTouches: function (e) { 3794 if (e.targetTouches.length < 2) return 1; 3795 var t = e.targetTouches[0].pageX, i = e.targetTouches[0].pageY, s = e.targetTouches[1].pageX, 3796 a = e.targetTouches[1].pageY; 3797 return Math.sqrt(Math.pow(s - t, 2) + Math.pow(a - i, 2)) 3798 }, onGestureStart: function (e) { 3799 var t = this.params.zoom, i = this.zoom, a = i.gesture; 3800 if (i.fakeGestureTouched = !1, i.fakeGestureMoved = !1, !o.gestures) { 3801 if ("touchstart" !== e.type || "touchstart" === e.type && e.targetTouches.length < 2) return; 3802 i.fakeGestureTouched = !0, a.scaleStart = oe.getDistanceBetweenTouches(e) 3803 } 3804 a.$slideEl && a.$slideEl.length || (a.$slideEl = s(e.target).closest(".swiper-slide"), 0 === a.$slideEl.length && (a.$slideEl = this.slides.eq(this.activeIndex)), a.$imageEl = a.$slideEl.find("img, svg, canvas"), a.$imageWrapEl = a.$imageEl.parent("." + t.containerClass), a.maxRatio = a.$imageWrapEl.attr("data-swiper-zoom") || t.maxRatio, 0 !== a.$imageWrapEl.length) ? (a.$imageEl.transition(0), this.zoom.isScaling = !0) : a.$imageEl = void 0 3805 }, onGestureChange: function (e) { 3806 var t = this.params.zoom, i = this.zoom, s = i.gesture; 3807 if (!o.gestures) { 3808 if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return; 3809 i.fakeGestureMoved = !0, s.scaleMove = oe.getDistanceBetweenTouches(e) 3810 } 3811 s.$imageEl && 0 !== s.$imageEl.length && (o.gestures ? i.scale = e.scale * i.currentScale : i.scale = s.scaleMove / s.scaleStart * i.currentScale, i.scale > s.maxRatio && (i.scale = s.maxRatio - 1 + Math.pow(i.scale - s.maxRatio + 1, .5)), i.scale < t.minRatio && (i.scale = t.minRatio + 1 - Math.pow(t.minRatio - i.scale + 1, .5)), s.$imageEl.transform("translate3d(0,
vendor: 5,056 bytes, lines 3811-3846
38110,0) scale(" + i.scale + ")")) 3812 }, onGestureEnd: function (e) { 3813 var t = this.params.zoom, i = this.zoom, s = i.gesture; 3814 if (!o.gestures) { 3815 if (!i.fakeGestureTouched || !i.fakeGestureMoved) return; 3816 if ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2 && !I.android) return; 3817 i.fakeGestureTouched = !1, i.fakeGestureMoved = !1 3818 } 3819 s.$imageEl && 0 !== s.$imageEl.length && (i.scale = Math.max(Math.min(i.scale, s.maxRatio), t.minRatio), s.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale(" + i.scale + ")"), i.currentScale = i.scale, i.isScaling = !1, 1 === i.scale && (s.$slideEl = void 0)) 3820 }, onTouchStart: function (e) { 3821 var t = this.zoom, i = t.gesture, s = t.image; 3822 i.$imageEl && 0 !== i.$imageEl.length && (s.isTouched || (I.android && e.preventDefault(), s.isTouched = !0, s.touchesStart.x = "touchstart" === e.type ? e.targetTouches[0].pageX : e.pageX, s.touchesStart.y = "touchstart" === e.type ? e.targetTouches[0].pageY : e.pageY)) 3823 }, onTouchMove: function (e) { 3824 var t = this.zoom, i = t.gesture, s = t.image, a = t.velocity; 3825 if (i.$imageEl && 0 !== i.$imageEl.length && (this.allowClick = !1, s.isTouched && i.$slideEl)) { 3826 s.isMoved || (s.width = i.$imageEl[0].offsetWidth, s.height = i.$imageEl[0].offsetHeight, s.startX = n.getTranslate(i.$imageWrapEl[0], "x") || 0, s.startY = n.getTranslate(i.$imageWrapEl[0], "y") || 0, i.slideWidth = i.$slideEl[0].offsetWidth, i.slideHeight = i.$slideEl[0].offsetHeight, i.$imageWrapEl.transition(0), this.rtl && (s.startX = -s.startX, s.startY = -s.startY)); 3827 var r = s.width * t.scale, o = s.height * t.scale; 3828 if (!(r < i.slideWidth && o < i.slideHeight)) { 3829 if (s.minX = Math.min(i.slideWidth / 2 - r / 2, 0), s.maxX = -s.minX, s.minY = Math.min(i.slideHeight / 2 - o / 2, 0), s.maxY = -s.minY, s.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, s.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, !s.isMoved && !t.isScaling) { 3830 if (this.isHorizontal() && (Math.floor(s.minX) === Math.floor(s.startX) && s.touchesCurrent.x < s.touchesStart.x || Math.floor(s.maxX) === Math.floor(s.startX) && s.touchesCurrent.x > s.touchesStart.x)) return void (s.isTouched = !1); 3831 if (!this.isHorizontal() && (Math.floor(s.minY) === Math.floor(s.startY) && s.touchesCurrent.y < s.touchesStart.y || Math.floor(s.maxY) === Math.floor(s.startY) && s.touchesCurrent.y > s.touchesStart.y)) return void (s.isTouched = !1) 3832 } 3833 e.preventDefault(), e.stopPropagation(), s.isMoved = !0, s.currentX = s.touchesCurrent.x - s.touchesStart.x + s.startX, s.currentY = s.touchesCurrent.y - s.touchesStart.y + s.startY, s.currentX < s.minX && (s.currentX = s.minX + 1 - Math.pow(s.minX - s.currentX + 1, .8)), s.currentX > s.maxX && (s.currentX = s.maxX - 1 + Math.pow(s.currentX - s.maxX + 1, .8)), s.currentY < s.minY && (s.currentY = s.minY + 1 - Math.pow(s.minY - s.currentY + 1, .8)), s.currentY > s.maxY && (s.currentY = s.maxY - 1 + Math.pow(s.currentY - s.maxY + 1, .8)), a.prevPositionX || (a.prevPositionX = s.touchesCurrent.x), a.prevPositionY || (a.prevPositionY = s.touchesCurrent.y), a.prevTime || (a.prevTime = Date.now()), a.x = (s.touchesCurrent.x - a.prevPositionX) / (Date.now() - a.prevTime) / 2, a.y = (s.touchesCurrent.y - a.prevPositionY) / (Date.now() - a.prevTime) / 2, Math.abs(s.touchesCurrent.x - a.prevPositionX) < 2 && (a.x = 0), Math.abs(s.touchesCurrent.y - a.prevPositionY) < 2 && (a.y = 0), a.prevPositionX = s.touchesCurrent.x, a.prevPositionY = s.touchesCurrent.y, a.prevTime = Date.now(), i.$imageWrapEl.transform("translate3d(" + s.currentX + "px, " + s.currentY + "px,0)") 3834 } 3835 } 3836 }, onTouchEnd: function () { 3837 var e = this.zoom, t = e.gesture, i = e.image, s = e.velocity; 3838 if (t.$imageEl && 0 !== t.$imageEl.length) { 3839 if (!i.isTouched || !i.isMoved) return i.isTouched = !1, void (i.isMoved = !1); 3840 i.isTouched = !1, i.isMoved = !1; 3841 var a = 300, r = 300, n = s.x * a, o = i.currentX + n, l = s.y * r, d = i.currentY + l; 3842 0 !== s.x && (a = Math.abs((o - i.currentX) / s.x)), 0 !== s.y && (r = Math.abs((d - i.currentY) / s.y)); 3843 var h = Math.max(a, r); 3844 i.currentX = o, i.currentY = d; 3845 var p = i.width * e.scale, c = i.height * e.scale; 3846 i.minX = Math.min(t.slideWidth / 2 - p / 2, 0), i.maxX = -i.minX, i.minY = Math.min(t.slideHeight / 2 - c / 2, 0), i.maxY = -i.minY, i.currentX = Math.max(Math.min(i.currentX, i.maxX), i.minX), i.currentY = Math.max(Math.min(i.currentY, i.maxY), i.minY), t.$imageWrapEl.transition(h).transform("translate3d(" + i.currentX + "px, " + i.currentY + "px,0
3846)") 3847 } 3848 }, onTransitionEnd: function () { 3849 var e = this.zoom, t = e.gesture; 3850 t.$slideEl && this.previousIndex !== this.activeIndex && (t.$imageEl.transform("translate3d(0,0,0) scale(1)"), t.$imageWrapEl.transform("translate3d(0,0,0)"), e.scale = 1, e.currentScale = 1, t.$slideEl = void 0, t.$imageEl = void 0, t.$imageWrapEl = void 0) 3851 }, toggle: function (e) { 3852 var t = this.zoom; 3853 t.scale && 1 !== t.scale ? t.out() : t.in(e) 3854 }, in: function (e) { 3855 var t, i, a, r, n, o, l, d, h, p, c, u, v, f, m, g, b = this.zoom, w = this.params.zoom, y = b.gesture, 3856 x = b.image; 3857 (y.$slideEl || (y.$slideEl = this.clickedSlide ? s(this.clickedSlide) : this.slides.eq(this.activeIndex), y.$imageEl = y.$slideEl.find("img, svg, canvas"), y.$imageWrapEl = y.$imageEl.parent("." + w.containerClass)), y.$imageEl && 0 !== y.$imageEl.length) && (y.$slideEl.addClass("" + w.zoomedSlideClass), void 0 === x.touchesStart.x && e ? (t = "touchend" === e.type ? e.changedTouches[0].pageX : e.pageX, i = "touchend" === e.type ? e.changedTouches[0].pageY : e.pageY) : (t = x.touchesStart.x, i = x.touchesStart.y), b.scale = y.$imageWrapEl.attr("data-swiper-zoom") || w.maxRatio, b.currentScale = y.$imageWrapEl.attr("data-swiper-zoom") || w.maxRatio, e ? (m = y.$slideEl[0].offsetWidth, g = y.$slideEl[0].offsetHeight, a = y.$slideEl.offset().left + m / 2 - t, r = y.$slideEl.offset().top + g / 2 - i, l = y.$imageEl[0].offsetWidth, d = y.$imageEl[0].offsetHeight, h = l * b.scale, p = d * b.scale, v = -(c = Math.min(m / 2 - h / 2, 0)), f = -(u = Math.min(g / 2 - p / 2, 0)), (n = a * b.scale) < c && (n = c), n > v && (n = v), (o = r * b.scale) < u && (o = u), o > f && (o = f)) : (n = 0, o = 0), y.$imageWrapEl.transition(300).transform("translate3d(" + n + "px, " + o + "px,0)"), y.$imageEl.transition(300).transform("translate3d(0,0,0) scale(" + b.scale + ")")) 3858 }, out: function () { 3859 var e = this.zoom, t = this.params.zoom, i = e.gesture; 3860 i.$slideEl || (i.$slideEl = this.clickedSlide ? s(this.clickedSlide) : this.slides.eq(this.activeIndex), i.$imageEl = i.$slideEl.find("img, svg, canvas"), i.$imageWrapEl = i.$imageEl.parent("." + t.containerClass)), i.$imageEl && 0 !== i.$imageEl.length && (e.scale = 1, e.currentScale = 1, i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"), i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"), i.$slideEl.removeClass("" + t.zoomedSlideClass), i.$slideEl = void 0) 3861 }, enable: function () { 3862 var e = this.zoom; 3863 if (!e.enabled) { 3864 e.enabled = !0; 3865 var t = !("touchstart" !== this.touchEvents.start || !o.passiveListener || !this.params.passiveListeners) && { 3866 passive: !0, 3867 capture: !1 3868 }, i = !o.passiveListener || {passive: !1, capture: !0}; 3869 o.gestures ? (this.$wrapperEl.on("gesturestart", ".swiper-slide", e.onGestureStart, t), this.$wrapperEl.on("gesturechange", ".swiper-slide", e.onGestureChange, t), this.$wrapperEl.on("gestureend", ".swiper-slide", e.onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.on(this.touchEvents.start, ".swiper-slide", e.onGestureStart, t), this.$wrapperEl.on(this.touchEvents.move, ".swiper-slide", e.onGestureChange, i), this.$wrapperEl.on(this.touchEvents.end, ".swiper-slide", e.onGestureEnd, t), this.touchEvents.cancel && this.$wrapperEl.on(this.touchEvents.cancel, ".swiper-slide", e.onGestureEnd, t)), this.$wrapperEl.on(this.touchEvents.move, "." + this.params.zoom.containerClass, e.onTouchMove, i) 3870 } 3871 }, disable: function () { 3872 var e = this.zoom; 3873 if (e.enabled) { 3874 this.zoom.enabled = !1; 3875 var t = !("touchstart" !== this.touchEvents.start || !o.passiveListener || !this.params.passiveListeners) && { 3876 passive: !0, 3877 capture: !1 3878 }, i = !o.passiveListener || {passive: !1, capture: !0}; 3879 o.gestures ? (this.$wrapperEl.off("gesturestart", ".swiper-slide", e.onGestureStart, t), this.$wrapperEl.off("gesturechange", ".swiper-slide", e.onGestureChange, t), this.$wrapperEl.off("gestureend", ".swiper-slide", e.onGestureEnd, t)) : "touchstart" === this.touchEvents.start && (this.$wrapperEl.off(this.touchEvents.start, ".swiper-slide", e.onGestureStart, t), this.$wrapperEl.off(this.touchEvents.move, ".swiper-slide", e.onGestureChange, i), this.$wrapperEl.off(this.touchEvents.end, ".swiper-slide", e.onGestureEnd, t), this.touchEvents.cancel && this.$wrapperEl.off(this.touchEvents.cancel, ".swiper-slide", e.onGestureEnd, t)), this.$wrapperEl.off(this.touchEvents.move, "." + this.params.zoom.containerClass, e.onTouchMove, i) 3880 } 3881 } 3882 }, le = { 3883 loadInSlide: function (e, t) { 3884 void 0 === t && (t = !0); 3885 var i = this, a = i.params.lazy; 3886 if (void 0 !== e && 0 !== i.slides.length) { 3887 var r = i.virtual && i.params.virtual.enabled ? i.$wrapperEl.children("." + i.params.slideClass + '[data-swiper-slide-index="' + e + '"]') : i.slides.eq(e), 3888 n = r.find("." + a.elementClass + ":not(." + a.loadedClass + "):not(." + a.loadingClass + ")"); 3889 !r.hasClass(a.elementClass) || r.hasClass(a.loadedClass) || r.hasClass(a.loadingClass) || (n = n.add(r[0])), 0 !== n.length && n.each((function (e, n) { 3890 var o = s(n); 3891 o.addClass(a.loadingClass); 3892 var l = o.attr("data-background"), d = o.attr("data-src"), h = o.attr("data-srcset"), 3893 p = o.attr("data-sizes"); 3894 i.loadImage(o[0], d || l, h, p, !1, (function () { 3895 if (null != i && i && (!i || i.params) && !i.destroyed) { 3896 if (l ? (o.css("background-image", 'url("' + l + '")'), o.removeAttr("data-background")) : (h && (o.attr("srcset", h), o.removeAttr("data-srcset")), p && (o.attr("sizes", p), o.removeAttr("data-sizes")), d && (o.attr("src", d), o.removeAttr("data-src"))), o.addClass(a.loadedClass).removeClass(a.loadingClass), r.find("." + a.preloaderClass).remove(), i.params.loop && t) { 3897 var e = r.attr("data-swiper-slide-index"); 3898 if (r.hasClass(i.params.slideDuplicateClass)) { 3899 var s = i.$wrapperEl.children('[data-swiper-slide-index="' + e + '"]:not(.' + i.params.slideDuplicateClass + ")"); 3900 i.lazy.loadInSlide(s.index(), !1) 3901 } else { 3902 var n = i.$wrapperEl.children("." + i.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]'); 3903 i.lazy.loadInSlide(n.index(), !1) 3904 } 3905 } 3906 i.emit("lazyImageReady", r[0], o[0]) 3907 } 3908 })), i.emit("lazyImageLoad", r[0], o[0]) 3909 })) 3910 } 3911 }, load: function () { 3912 var e = this, t = e.$wrapperEl, i = e.params, a = e.slides, r = e.activeIndex, 3913 n = e.virtual && i.virtual.enabled, o = i.lazy, l = i.slidesPerView; 3914 3915 function d(e) { 3916 if (n) { 3917 if (t.children("." + i.slideClass + '[data-swiper-slide-index="' + e + '"]').length) return !0 3918 } else if (a[e]) return !0; 3919 return !1 3920 } 3921 3922 function h(e) { 3923 return n ? s(e).attr("data-swiper-slide-index") : s(e).index() 3924 } 3925 3926 if ("auto" === l && (l = 0), e.lazy.initialImageLoaded || (e.lazy.initialImageLoaded = !0), e.params.watchSlidesVisibility) t.children("." + i.slideVisibleClass).each((function (t, i) { 3927 var a = n ? s(i).attr("data-swiper-slide-index") : s(i).index(); 3928 e.lazy.loadInSlide(a) 3929 })); else if (l > 1) for (var p = r; p < r + l; p += 1) d(p) && e.lazy.loadInSlide(p); else e.lazy.loadInSlide(r); 3930 if (o.loadPrevNext) if (l > 1 || o.loadPrevNextAmount && o.loadPrevNextAmount > 1) { 3931 for (var c = o.loadPrevNextAmount, u = l, v = Math.min(r + u + Math.max(c, u), a.length), f = Math.max(r - Math.max(u, c), 0), m = r + l; m < v; m += 1) d(m) && e.lazy.loadInSlide(m); 3932 for (var g = f; g < r; g += 1) d(g) && e.lazy.loadInSlide(g) 3933 } else { 3934 var b = t.children("." + i.slideNextClass); 3935 b.length > 0 && e.lazy.loadInSlide(h(b)); 3936 var w = t.children("." + i.slidePrevClass); 3937 w.length > 0 && e.lazy.loadInSlide(h(w)) 3938 } 3939 } 3940 }, de = { 3941 LinearSpline: function (e, t) { 3942 var i, s, a, r, n, o = function (e, t) { 3943 for (s = -1, i = e.length; i - s > 1;) e[a = i + s >> 1] <= t ? s = a : i = a; 3944 return i 3945 }; 3946 return this.x = e, this.y = t, this.lastIndex = e.length - 1, this.interpolate = function (e) { 3947 return e ? (n = o(this.x, e), r = n - 1, (e - this.x[r]) * (this.y[n] - this.y[r]) / (this.x[n] - this.x[r]) + this.y[r]) : 0 3948 }, this 3949 }, getInterpolateFunction: function (e) { 3950 this.controller.spline || (this.controller.spline = this.params.loop ? new de.LinearSpline(this.slidesGrid, e.slidesGrid) : new de.LinearSpline(this.snapGrid, e.snapGrid)) 3951 }, setTranslate: function (e, t) {
3952 var i, s, a = this, r = a.controller.control; 3953 3954 function n(e) { 3955 var t = a.rtlTranslate ? -a.translate : a.translate; 3956 "slide" === a.params.controller.by && (a.controller.getInterpolateFunction(e), s = -a.controller.spline.interpolate(-t)), s && "container" !== a.params.controller.by || (i = (e.maxTranslate() - e.minTranslate()) / (a.maxTranslate() - a.minTranslate()), s = (t - a.minTranslate()) * i + e.minTranslate()), a.params.controller.inverse && (s = e.maxTranslate() - s), e.updateProgress(s), e.setTranslate(s, a), e.updateActiveIndex(), e.updateSlidesClasses() 3957 } 3958 3959 if (Array.isArray(r)) for (var o = 0; o < r.length; o += 1) r[o] !== t && r[o] instanceof W && n(r[o]); else r instanceof W && t !== r && n(r) 3960 }, setTransition: function (e, t) { 3961 var i, s = this, a = s.controller.control; 3962 3963 function r(t) { 3964 t.setTransition(e, s), 0 !== e && (t.transitionStart(), t.params.autoHeight && n.nextTick((function () { 3965 t.updateAutoHeight() 3966 })), t.$wrapperEl.transitionEnd((function () { 3967 a && (t.params.loop && "slide" === s.params.controller.by && t.loopFix(), t.transitionEnd()) 3968 }))) 3969 } 3970 3971 if (Array.isArray(a)) for (i = 0; i < a.length; i += 1) a[i] !== t && a[i] instanceof W && r(a[i]); else a instanceof W && t !== a && r(a) 3972 } 3973 }, he = { 3974 makeElFocusable: function (e) { 3975 return e.attr("tabIndex", "0"), e 3976 }, addElRole: function (e, t) { 3977 return e.attr("role", t), e 3978 }, addElLabel: function (e, t) { 3979 return e.attr("aria-label", t), e 3980 }, disableEl: function (e) { 3981 return e.attr("aria-disabled", !0), e 3982 }, enableEl: function (e) { 3983 return e.attr("aria-disabled", !1), e 3984 }, onEnterKey: function (e) { 3985 var t = this.params.a11y; 3986 if (13 === e.keyCode) { 3987 var i = s(e.target); 3988 this.navigation && this.navigation.$nextEl && i.is(this.navigation.$nextEl) && (this.isEnd && !this.params.loop || this.slideNext(), this.isEnd ? this.a11y.notify(t.lastSlideMessage) : this.a11y.notify(t.nextSlideMessage)), this.navigation && this.navigation.$prevEl && i.is(this.navigation.$prevEl) && (this.isBeginning && !this.params.loop || this.slidePrev(), this.isBeginning ? this.a11y.notify(t.firstSlideMessage) : this.a11y.notify(t.prevSlideMessage)), this.pagination && i.is("." + this.params.pagination.bulletClass) && i[0].click() 3989 } 3990 }, notify: function (e) { 3991 var t = this.a11y.liveRegion; 3992 0 !== t.length && (t.html(""), t.html(e)) 3993 }, updateNavigation: function () { 3994 if (!this.params.loop) { 3995 var e = this.navigation, t = e.$nextEl, i = e.$prevEl; 3996 i && i.length > 0 && (this.isBeginning ? this.a11y.disableEl(i) : this.a11y.enableEl(i)), t && t.length > 0 && (this.isEnd ? this.a11y.disableEl(t) : this.a11y.enableEl(t)) 3997 } 3998 }, updatePagination: function () { 3999 var e = this, t = e.params.a11y; 4000 e.pagination && e.params.pagination.clickable && e.pagination.bullets && e.pagination.bullets.length && e.pagination.bullets.each((function (i, a) { 4001 var r = s(a); 4002 e.a11y.makeElFocusable(r), e.a11y.addElRole(r, "button"), e.a11y.addElLabel(r, t.paginationBulletMessage.replace(/{{index}}/, r.index() + 1)) 4003 })) 4004 }, init: function () { 4005 this.$el.append(this.a11y.liveRegion); 4006 var e, t, i = this.params.a11y; 4007 this.navigation && this.navigation.$nextEl && (e = this.navigation.$nextEl), this.navigation && this.navigation.$prevEl && (t = this.navigation.$prevEl), e && (this.a11y.makeElFocusable(e), this.a11y.addElRole(e, "button"), this.a11y.addElLabel(e, i.nextSlideMessage), e.on("keydown", this.a11y.onEnterKey)), t && (this.a11y.makeElFocusable(t), this.a11y.addElRole(t, "button"), this.a11y.addElLabel(t, i.prevSlideMessage), t.on("key
4007down", this.a11y.onEnterKey)), this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.on("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey) 4008 }, destroy: function () { 4009 var e, t; 4010 this.a11y.liveRegion && this.a11y.liveRegion.length > 0 && this.a11y.liveRegion.remove(), this.navigation && this.navigation.$nextEl && (e = this.navigation.$nextEl), this.navigation && this.navigation.$prevEl && (t = this.navigation.$prevEl), e && e.off("keydown", this.a11y.onEnterKey), t && t.off("keydown", this.a11y.onEnterKey), this.pagination && this.params.pagination.clickable && this.pagination.bullets && this.pagination.bullets.length && this.pagination.$el.off("keydown", "." + this.params.pagination.bulletClass, this.a11y.onEnterKey) 4011 } 4012 }, pe = { 4013 init: function () { 4014 if (this.params.history) { 4015 if (!t.history || !t.history.pushState) return this.params.history.enabled = !1, void (this.params.hashNavigation.enabled = !0); 4016 var e = this.history; 4017 e.initialized = !0, e.paths = pe.getPathValues(), (e.paths.key || e.paths.value) && (e.scrollToSlide(0, e.paths.value, this.params.runCallbacksOnInit), this.params.history.replaceState || t.addEventListener("popstate", this.history.setHistoryPopState)) 4018 } 4019 }, destroy: function () { 4020 this.params.history.replaceState || t.removeEventListener("popstate", this.history.setHistoryPopState) 4021 }, setHistoryPopState: function () { 4022 this.history.paths = pe.getPathValues(), this.history.scrollToSlide(this.params.speed, this.history.paths.value, !1) 4023 }, getPathValues: function () { 4024 var e = t.location.pathname.slice(1).split("/").filter((function (e) { 4025 return "" !== e 4026 })), i = e.length; 4027 return {key: e[i - 2], value: e[i - 1]} 4028 }, setHistory: function (e, i) { 4029 if (this.history.initialized && this.params.history.enabled) { 4030 var s = this.slides.eq(i), a = pe.slugify(s.attr("data-history")); 4031 t.location.pathname.includes(e) || (a = e + "/" + a); 4032 var r = t.history.state; 4033 r && r.value === a || (this.params.history.replaceState ? t.history.replaceState({value: a}, null, a) : t.history.pushState({value: a}, null, a)) 4034 } 4035 }, slugify: function (e) { 4036 return e.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, "") 4037 }, scrollToSlide: function (e, t, i) { 4038 if (t) for (var s = 0, a = this.slides.length; s < a; s += 1) { 4039 var r = this.slides.eq(s); 4040 if (pe.slugify(r.attr("data-history")) === t && !r.hasClass(this.params.slideDuplicateClass)) { 4041 var n = r.index(); 4042 this.slideTo(n, e, i) 4043 } 4044 } else this.slideTo(0, e, i) 4045 } 4046 }, ce = { 4047 onHashCange: function () { 4048 var t = e.location.hash.replace("#", ""); 4049 if (t !== this.slides.eq(this.activeIndex).attr("data-hash")) { 4050 var i = this.$wrapperEl.children("." + this.params.slideClass + '[data-hash="' + t + '"]').index(); 4051 if (void 0 === i) return; 4052 this.slideTo(i) 4053 } 4054 }, setHash: function () { 4055 if (this.hashNavigation.initialized && this.params.hashNavigation.enabled) if (this.params.hashNavigation.replaceState && t.history && t.history.replaceState) t.history.replaceState(null, null, "#" + this.slides.eq(this.activeIndex).attr("data-hash") || ""); else { 4056 var i = this.slides.eq(this.activeIndex), s = i.attr("data-hash") || i.attr("data-history"); 4057 e.location.hash = s || "" 4058 } 4059 }, init: function () { 4060 if (!(!this.params.hashNavigation.enabled || this.params.history && this.params.history.enabled)) { 4061 this.hashNavigation.initialized = !0; 4062 var i = e.location.hash.replace("#", ""); 4063 if (i) for (var a = 0, r = this.slides.length; a < r; a += 1) { 4064 var n = this.slides.eq(a); 4065 if ((n.attr("data-hash") || n.attr("data-history")) === i && !n.hasClass(this.params.slideDuplicateClass)) { 4066 var o = n.index(); 4067 this.slideTo(o, 0, this.params.runCallbacksOnInit, !0) 4068 } 4069 } 4070 this.params.hashNavigation.watchState && s(t).on("hashchange", this.hashNavigation.onHashCange) 4071 } 4072 }, destroy: function () { 4073 this.params.hashNavigation.watchState && s(t).off("hashchange", this.hashNavigation.onHashCange) 4074 } 4075 }, ue = { 4076 run: function () { 4077 var e = this, t = e.slides.eq(e.activeIndex), i = e.params.autoplay.delay; 4078 t.attr("data-swiper-autoplay") && (i = t.attr("data-swiper-autoplay") || e.params.autoplay.delay), clearTimeout(e.autoplay.timeout), e.autoplay.timeout = n.nextTick((function () { 4079 e.params.autoplay.reverseDirection ? e.params.loop ? (e.loopFix(), e.slidePrev(e.params.speed, !0, !0), e.emit("autoplay")) : e.isBeginning ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(e.slides.length - 1, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slidePrev(e.params.speed, !0, !0), e.emit("autoplay")) : e.params.loop ? (e.loopFix(), e.slideNext(e.params.speed, !0, !0), e.emit("autoplay")) : e.isEnd ? e.params.autoplay.stopOnLastSlide ? e.autoplay.stop() : (e.slideTo(0, e.params.speed, !0, !0), e.emit("autoplay")) : (e.slideNext(e.params.speed, !0, !0), e.emit("autoplay")), e.params.cssMode && e.autoplay.running && e.autoplay.run() 4080 }), i) 4081 }, start: function () { 4082 return void 0 === this.autoplay.timeout && (!this.autoplay.running && (this.autoplay.running = !0, this.emit
4082("autoplayStart"), this.autoplay.run(), !0)) 4083 }, stop: function () { 4084 return !!this.autoplay.running && (void 0 !== this.autoplay.timeout && (this.autoplay.timeout && (clearTimeout(this.autoplay.timeout), this.autoplay.timeout = void 0), this.autoplay.running = !1, this.emit("autoplayStop"), !0)) 4085 }, pause: function (e) { 4086 this.autoplay.running && (this.autoplay.paused || (this.autoplay.timeout && clearTimeout(this.autoplay.timeout), this.autoplay.paused = !0, 0 !== e && this.params.autoplay.waitForTransition ? (this.$wrapperEl[0].addEventListener("transitionend", this.autoplay.onTransitionEnd), this.$wrapperEl[0].addEventListener("webkitTransitionEnd", this.autoplay.onTransitionEnd)) : (this.autoplay.paused = !1, this.autoplay.run()))) 4087 } 4088 }, ve = { 4089 setTranslate: function () { 4090 for (var e = this.slides, t = 0; t < e.length; t += 1) { 4091 var i = this.slides.eq(t), s = -i[0].swiperSlideOffset; 4092 this.params.virtualTranslate || (s -= this.translate); 4093 var a = 0; 4094 this.isHorizontal() || (a = s, s = 0); 4095 var r = this.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(i[0].progress), 0) : 1 + Math.min(Math.max(i[0].progress, -1), 0); 4096 i.css({opacity: r}).transform("translate3d(" + s + "px, " + a + "px, 0px)") 4097 } 4098 }, setTransition: function (e) { 4099 var t = this, i = t.slides, s = t.$wrapperEl; 4100 if (i.transition(e), t.params.virtualTranslate && 0 !== e) { 4101 var a = !1; 4102 i.transitionEnd((function () { 4103 if (!a && t && !t.destroyed) { 4104 a = !0, t.animating = !1; 4105 for (var e = ["webkitTransitionEnd", "transitionend"], i = 0; i < e.length; i += 1) s.trigger(e[i]) 4106 } 4107 })) 4108 } 4109 } 4110 }, fe = { 4111 setTranslate: function () { 4112 var e, t = this.$el, i = this.$wrapperEl, a = this.slides, r = this.width, n = this.height, 4113 o = this.rtlTranslate, l = this.size, d = this.params.cubeEffect, h = this.isHorizontal(), 4114 p = this.virtual && this.params.virtual.enabled, c = 0; 4115 d.shadow && (h ? (0 === (e = i.find(".swiper-cube-shadow")).length && (e = s('<div class="swiper-cube-shadow"></div>'), i.append(e)), e.css({height: r + "px"})) : 0 === (e = t.find(".swiper-cube-shadow")).length && (e = s('<div class="swiper-cube-shadow"></div>'), t.append(e))); 4116 for (var u = 0; u < a.length; u += 1) { 4117 var v = a.eq(u), f = u; 4118 p && (f = parseInt(v.attr("data-swiper-slide-index"), 10)); 4119 var m = 90 * f, g = Math.floor(m / 360);
4120 o && (m = -m, g = Math.floor(-m / 360)); 4121 var b = Math.max(Math.min(v[0].progress, 1), -1), w = 0, y = 0, x = 0; 4122 f % 4 == 0 ? (w = 4 * -g * l, x = 0) : (f - 1) % 4 == 0 ? (w = 0, x = 4 * -g * l) : (f - 2) % 4 == 0 ? (w = l + 4 * g * l, x = l) : (f - 3) % 4 == 0 && (w = -l, x = 3 * l + 4 * l * g), o && (w = -w), h || (y = w, w = 0); 4123 var T = "rotateX(" + (h ? 0 : -m) + "deg) rotateY(" + (h ? m : 0) + "deg) translate3d(" + w + "px, " + y + "px, " + x + "px)"; 4124 if (b <= 1 && b > -1 && (c = 90 * f + 90 * b, o && (c = 90 * -f - 90 * b)), v.transform(T), d.slideShadows) { 4125 var E = h ? v.find(".swiper-slide-shadow-left") : v.find(".swiper-slide-shadow-top"), 4126 C = h ? v.find(".swiper-slide-shadow-right") : v.find(".swiper-slide-shadow-bottom"); 4127 0 === E.length && (E = s('<div class="swiper-slide-shadow-' + (h ? "left" : "top") + '"></div>'), v.append(E)), 0 === C.length && (C = s('<div class="swiper-slide-shadow-' + (h ? "right" : "bottom") + '"></div>'), v.append(C)), E.length && (E[0].style.opacity = Math.max(-b, 0)), C.length && (C[0].style.opacity = Math.max(b, 0)) 4128 } 4129 } 4130 if (i.css({ 4131 "-webkit-transform-origin": "50% 50% -" + l / 2 + "px", 4132 "-moz-transform-origin": "50% 50% -" + l / 2 + "px", 4133 "-ms-transform-origin": "50% 50% -" + l / 2 + "px", 4134 "transform-origin": "50% 50% -" + l / 2 + "px" 4135 }), d.shadow) if (h) e.transform("translate3d(0px, " + (r / 2 + d.shadowOffset) + "px, " + -r / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + d.shadowScale + ")"); else { 4136 var S = Math.abs(c) - 90 * Math.floor(Math.abs(c) / 90), 4137 M = 1.5 - (Math.sin(2 * S * Math.PI / 360) / 2 + Math.cos(2 * S * Math.PI / 360) / 2), 4138 P = d.shadowScale, z = d.shadowScale / M, k = d.shadowOffset; 4139 e.transform("scale3d(" + P + ", 1, " + z + ") translate3d(0px, " + (n / 2 + k) + "px, " + -n / 2 / z + "px) rotateX(-90deg)") 4140 } 4141 var $ = j.isSafari || j.isUiWebView ? -l / 2 : 0; 4142 i.transform("translate3d(0px,0," + $ + "px) rotateX(" + (this.isHorizontal() ? 0 : c) + "deg) rotateY(" + (this.isHorizontal() ? -c : 0) + "deg)") 4143 }, setTransition: function (e) { 4144 var t = this.$el; 4145 this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), this.params.cubeEffect.shadow && !this.isHorizontal() && t.find(".swiper-cube-shadow").transition(e) 4146 } 4147 }, me = { 4148 setTranslate: function () { 4149 for (var e = this.slides, t = this.rtlTranslate, i = 0; i < e.length; i += 1) { 4150 var a = e.eq(i), r = a[0].progress; 4151 this.params.flipEffect.limitRotation && (r = Math.max(Math.min(a[0].progress, 1), -1)); 4152 var n = -180 * r, o = 0, l = -a[0].swiperSlideOffset, d = 0; 4153 if (this.isHorizontal() ? t && (n = -n) : (d = l, l = 0, o = -n, n = 0), a[0].style.zIndex = -Math.abs(Math.round(r)) + e.length, this.params.flipEffect.slideShadows) { 4154 var h = this.isHorizontal() ? a.find(".swiper-slide-shadow-left") : a.find(".swiper-slide-shadow-top"), 4155 p = this.isHorizontal() ? a.find(".swiper-slide-shadow-right") : a.find(".swiper-slide-shadow-bottom"); 4156 0 === h.length && (h = s('<div class="swiper-slide-shadow-' + (this.isHorizontal() ? "left" : "top") + '"></div>'), a.append(h)), 0 === p.length && (p = s('<div class="swiper-slide-shadow-' + (this.isHorizontal() ? "right" : "bottom") + '"></div>'), a.append(p)), h.length && (h[0].style.opacity = Math.max(-r, 0)), p.length && (p[0].style.opacity = Math.max(r, 0)) 4157 } 4158 a.transform("translate3d(" + l + "px, " + d + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)") 4159 } 4160 }, setTransition: function (e) { 4161 var t = this, i = t.slides, s = t.activeIndex, a = t.$wrapperEl; 4162 if (i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), t.params.virtualTranslate && 0 !== e) { 4163 var r = !1; 4164 i.eq(s).transitionEnd((function () { 4165 if (!r && t && !t.destroyed) { 4166 r = !0, t.animating = !1; 4167 for (var e = ["webkitTransitionEnd", "transitionend"], i = 0; i < e.length; i += 1) a.trigger(e[i]) 4168 } 4169 })) 4170 } 4171 } 4172 }, ge = { 4173 setTranslate: function () { 4174 for (var e = this.width, t = this.height, i = this.slides, a = this.$wrapperEl, r = this.slidesSizesGrid, n = this.params.coverflowEffect, l = this.isHorizontal(), d = this.translate, h = l ? e / 2 - d : t / 2 - d, p = l ? n.rotate : -n.rotate, c = n.depth, u = 0, v = i.length; u < v; u += 1) { 4175 var f = i.eq(u), m = r[u], g = (h - f[0].swiperSlideOffset - m / 2) / m * n.modifier, b = l ? p * g : 0,
4176 w = l ? 0 : p * g, y = -c * Math.abs(g), x = l ? 0 : n.stretch * g, T = l ? n.stretch * g : 0; 4177 Math.abs(T) < .001 && (T = 0), Math.abs(x) < .001 && (x = 0), Math.abs(y) < .001 && (y = 0), Math.abs(b) < .001 && (b = 0), Math.abs(w) < .001 && (w = 0); 4178 var E = "translate3d(" + T + "px," + x + "px," + y + "px) rotateX(" + w + "deg) rotateY(" + b + "deg)"; 4179 if (f.transform(E), f[0].style.zIndex = 1 - Math.abs(Math.round(g)), n.slideShadows) { 4180 var C = l ? f.find(".swiper-slide-shadow-left") : f.find(".swiper-slide-shadow-top"), 4181 S = l ? f.find(".swiper-slide-shadow-right") : f.find(".swiper-slide-shadow-bottom"); 4182 0 === C.length && (C = s('<div class="swiper-slide-shadow-' + (l ? "left" : "top") + '"></div>'), f.append(C)), 0 === S.length && (S = s('<div class="swiper-slide-shadow-' + (l ? "right" : "bottom") + '"></div>'), f.append(S)), C.length && (C[0].style.opacity = g > 0 ? g : 0), S.length && (S[0].style.opacity = -g > 0 ? -g : 0) 4183 } 4184 } 4185 (o.pointerEvents || o.prefixedPointerEvents) && (a[0].style.perspectiveOrigin = h + "px 50%") 4186 }, setTransition: function (e) { 4187 this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e) 4188 } 4189 }, be = { 4190 init: function () { 4191 var e = this.params.thumbs, t = this.constructor; 4192 e.swiper instanceof t ? (this.thumbs.swiper = e.swiper, n.extend(this.thumbs.swiper.originalParams, { 4193 watchSlidesProgress: !0, 4194 slideToClickedSlide: !1 4195 }), n.extend(this.thumbs.swiper.params, { 4196 watchSlidesProgress: !0, 4197 slideToClickedSlide: !1 4198 })) : n.isObject(e.swiper) && (this.thumbs.swiper = new t(n.extend({}, e.swiper, { 4199 watchSlidesVisibility: !0, 4200 watchSlidesProgress: !0, 4201 slideToClickedSlide: !1 4202 })), this.thumbs.swiperCreated = !0), this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass), this.thumbs.swiper.on("tap", this.thumbs.onThumbClick) 4203 }, onThumbClick: function () { 4204 var e = this.thumbs.swiper; 4205 if (e) { 4206 var t = e.clickedIndex, i = e.clickedSlide; 4207 if (!(i && s(i).hasClass(this.params.thumbs.slideThumbActiveClass) || null == t)) { 4208 var a; 4209 if (a = e.params.loop ? parseInt(s(e.clickedSlide).attr("data-swiper-slide-index"), 10) : t, this.params.loop) { 4210 var r = this.activeIndex; 4211 this.slides.eq(r).hasClass(this.params.slideDuplicateClass) && (this.loopFix(), this._clientLeft = this.$wrapperEl[0].clientLeft, r = this.activeIndex); 4212 var n = this.slides.eq(r).prevAll('[data-swiper-slide-index="' + a + '"]').eq(0).index(), 4213 o = this.slides.eq(r).nextAll('[data-swiper-slide-index="' + a + '"]').eq(0).index(); 4214 a = void 0 === n ? o : void 0 === o ? n : o - r < r - n ? o : n 4215 } 4216 this.slideTo(a) 4217 } 4218 } 4219 }, update: function (e) { 4220 var t = this.thumbs.swiper; 4221 if (t) { 4222 var i = "auto" === t.params.slidesPerView ? t.slidesPerViewDynamic() : t.params.slidesPerView; 4223 if (this.realIndex !== t.realIndex) { 4224 var s, a = t.activeIndex; 4225 if (t.params.loop) { 4226 t.slides.eq(a).hasClass(t.params.slideDuplicateClass) && (t.loopFix(), t._clientLeft = t.$wrapperEl[0].clientLeft, a = t.activeIndex); 4227 var r = t.slides.eq(a).prevAll('[data-swiper-slide-index="' + this.realIndex + '"]').eq(0).index(), 4228 n = t.slides.eq(a).nextAll('[data-swiper-slide-index="' + this.realIndex + '"]').eq(0).index(); 4229 s = void 0 === r ? n : void 0 === n ? r : n - a == a - r ? a : n - a < a - r ? n : r 4230 } else s = this.realIndex; 4231 t.visibleSlidesIndexes && t.visibleSlidesIndexes.indexOf(s) < 0 && (t.params.centeredSlides ? s = s > a ? s - Math.floor(i / 2) + 1 : s + Math.floor(i / 2) - 1 : s > a && (s = s - i + 1), t.slideTo(s, e ? 0 : void 0)) 4232 } 4233 var o = 1, l = this.params.thumbs.slideThumbActiveClass; 4234 if (this.params.slidesPerView > 1 && !this.params.centeredSlides && (o = this.params.slidesPerView), t.slides.removeClass(l), t.params.loop || t.params.virtual && t.params.virtual.enabled) for (var d = 0; d < o; d += 1) t.$wrapperEl.children('[data-swiper-slide-index="' + (this.realIndex + d) + '"]').addClass(l); else for (var h = 0; h < o; h += 1) t.slides.eq(this.realIndex + h).addClass(l) 4235 } 4236 } 4237 }, we = [R, q, K, U, Z, J, te, { 4238 name: "mousewheel", 4239 params: { 4240 mousewheel: { 4241 enabled: !1, 4242 releaseOnEdges: !1, 4243 invert: !1, 4244 forceToAxis: !1, 4245 sensitivity: 1, 4246 eventsTarged: "container" 4247 } 4248 }, 4249 create: function () { 4250 n.extend(this, { 4251 mousewheel: { 4252 enabled: !1, 4253 enable: ie.enable.bind(this), 4254 disable: ie.disable.bind(this), 4255 handle: ie.handle.bind(this), 4256 handleMouseEnter: ie.handleMouseEnter.bind(this), 4257 handleMouseLeave: ie.handleMouseLeave.bind(this), 4258 lastScrollTime: n.now(), 4259 lastEventBeforeSnap: void 0, 4260 recentWheelEvents: [] 4261 } 4262 }) 4263 }, 4264 on: { 4265 init: function () { 4266 !this.params.mousewheel.enabled && this.params.cssMode && this.mousewheel.disable(), this.params.mousewheel.enabled && this.mousewheel.enable() 4267 }, destroy: function () { 4268 this.params.cssMode && this.mousewheel.enable(), this.mousewheel.enabled && this.mousewheel.disable() 4269 } 4270 } 4271 }, {
4272 name: "navigation", 4273 params: { 4274 navigation: { 4275 nextEl: null, 4276 prevEl: null, 4277 hideOnClick: !1, 4278 disabledClass: "swiper-button-disabled", 4279 hiddenClass: "swiper-button-hidden", 4280 lockClass: "swiper-button-lock" 4281 } 4282 }, 4283 create: function () { 4284 n.extend(this, { 4285 navigation: { 4286 init: se.init.bind(this), 4287 update: se.update.bind(this), 4288 destroy: se.destroy.bind(this), 4289 onNextClick: se.onNextClick.bind(this), 4290 onPrevClick: se.onPrevClick.bind(this) 4291 } 4292 }) 4293 }, 4294 on: { 4295 init: function () { 4296 this.navigation.init(), this.navigation.update() 4297 }, toEdge: function () { 4298 this.navigation.update() 4299 }, fromEdge: function () { 4300 this.navigation.update() 4301 }, destroy: function () { 4302 this.navigation.destroy() 4303 }, click: function (e) { 4304 var t, i = this.navigation, a = i.$nextEl, r = i.$prevEl; 4305 !this.params.navigation.hideOnClick || s(e.target).is(r) || s(e.target).is(a) || (a ? t = a.hasClass(this.params.navigation.hiddenClass) : r && (t = r.hasClass(this.params.navigation.hiddenClass)), !0 === t ? this.emit("navigationShow", this) : this.emit("navigationHide", this), a && a.toggleClass(this.params.navigation.hiddenClass), r && r.toggleClass(this.params.navigation.hiddenClass)) 4306 } 4307 } 4308 }, { 4309 name: "pagination", 4310 params: { 4311 pagination: { 4312 el: null, 4313 bulletElement: "span", 4314 clickable: !1, 4315 hideOnClick: !1, 4316 renderBullet: null, 4317 renderProgressbar: null, 4318 renderFraction: null, 4319 renderCustom: null, 4320 progressbarOpposite: !1, 4321 type: "bullets", 4322 dynamicBullets: !1, 4323 dynamicMainBullets: 1, 4324 formatFractionCurrent: function (e) { 4325 return e 4326 }, 4327 formatFractionTotal: function (e) { 4328 return e 4329 }, 4330 bulletClass: "swiper-pagination-bullet", 4331 bulletActiveClass: "swiper-pagination-bullet-active", 4332 modifierClass: "swiper-pagination-", 4333 currentClass: "swiper-pagination-current", 4334 totalClass: "swiper-pagination-total", 4335 hiddenClass: "swiper-pagination-hidden", 4336 progressbarFillClass: "swiper-pagination-progressbar-fill", 4337 progressbarOppositeClass: "swiper-pagination-progressbar-opposite", 4338 clickableClass: "swiper-pagination-clickable", 4339 lockClass: "swiper-pagination-lock" 4340 } 4341 }, 4342 create: function () { 4343 n.extend(this, { 4344 pagination: { 4345 init: ae.init.bind(this), 4346 render: ae.render.bind(this), 4347 update: ae.update.bind(this), 4348 destroy: ae.destroy.bind(this), 4349 dynamicBulletIndex: 0 4350 } 4351 }) 4352 }, 4353 on: { 4354 init: function () { 4355 this.pagination.init(), this.pagination.render(), this.pagination.update() 4356 }, activeIndexChange: function () { 4357 this.params.loop ? this.pagination.update() : void 0 === this.snapIndex && this.pagination.update() 4358 }, snapIndexChange: function () { 4359 this.params.loop || this.pagination.update() 4360 }, slidesLengthChange: function () { 4361 this.params.loop && (this.pagination.render(), this.pagination.update()) 4362 }, snapGridLengthChange: function () { 4363 this.params.loop || (this.pagination.render(), this.pagination.update()) 4364 }, destroy: function () { 4365 this.pagination.destroy() 4366 }, click: function (e) { 4367 this.params.pagination.el && this.params.pagination.hideOnClick && this.pagination.$el.length > 0 && !s(e.target).hasClass(this.params.pagination.bulletClass) && (!0 === this.pagination.$el.hasClass(this.params.pagination.hiddenClass) ? this.emit
vendor: 6,239 bytes, lines 4367-4519
4367("paginationShow", this) : this.emit("paginationHide", this), this.pagination.$el.toggleClass(this.params.pagination.hiddenClass)) 4368 } 4369 } 4370 }, { 4371 name: "scrollbar", 4372 params: { 4373 scrollbar: { 4374 el: null, 4375 dragSize: "auto", 4376 hide: !1, 4377 draggable: !1, 4378 snapOnRelease: !0, 4379 lockClass: "swiper-scrollbar-lock", 4380 dragClass: "swiper-scrollbar-drag" 4381 } 4382 }, 4383 create: function () { 4384 n.extend(this, { 4385 scrollbar: { 4386 init: re.init.bind(this), 4387 destroy: re.destroy.bind(this), 4388 updateSize: re.updateSize.bind(this), 4389 setTranslate: re.setTranslate.bind(this), 4390 setTransition: re.setTransition.bind(this), 4391 enableDraggable: re.enableDraggable.bind(this), 4392 disableDraggable: re.disableDraggable.bind(this), 4393 setDragPosition: re.setDragPosition.bind(this), 4394 getPointerPosition: re.getPointerPosition.bind(this), 4395 onDragStart: re.onDragStart.bind(this), 4396 onDragMove: re.onDragMove.bind(this), 4397 onDragEnd: re.onDragEnd.bind(this), 4398 isTouched: !1, 4399 timeout: null, 4400 dragTimeout: null 4401 } 4402 }) 4403 }, 4404 on: { 4405 init: function () { 4406 this.scrollbar.init(), this.scrollbar.updateSize(), this.scrollbar.setTranslate() 4407 }, update: function () { 4408 this.scrollbar.updateSize() 4409 }, resize: function () { 4410 this.scrollbar.updateSize() 4411 }, observerUpdate: function () { 4412 this.scrollbar.updateSize() 4413 }, setTranslate: function () { 4414 this.scrollbar.setTranslate() 4415 }, setTransition: function (e) { 4416 this.scrollbar.setTransition(e) 4417 }, destroy: function () { 4418 this.scrollbar.destroy() 4419 } 4420 } 4421 }, { 4422 name: "parallax", params: {parallax: {enabled: !1}}, create: function () { 4423 n.extend(this, { 4424 parallax: { 4425 setTransform: ne.setTransform.bind(this), 4426 setTranslate: ne.setTranslate.bind(this), 4427 setTransition: ne.setTransition.bind(this) 4428 } 4429 }) 4430 }, on: { 4431 beforeInit: function () { 4432 this.params.parallax.enabled && (this.params.watchSlidesProgress = !0, this.originalParams.watchSlidesProgress = !0) 4433 }, init: function () { 4434 this.params.parallax.enabled && this.parallax.setTranslate() 4435 }, setTranslate: function () { 4436 this.params.parallax.enabled && this.parallax.setTranslate() 4437 }, setTransition: function (e) { 4438 this.params.parallax.enabled && this.parallax.setTransition(e) 4439 } 4440 } 4441 }, { 4442 name: "zoom", 4443 params: { 4444 zoom: { 4445 enabled: !1, 4446 maxRatio: 3, 4447 minRatio: 1, 4448 toggle: !0, 4449 containerClass: "swiper-zoom-container", 4450 zoomedSlideClass: "swiper-slide-zoomed" 4451 } 4452 }, 4453 create: function () { 4454 var e = this, t = { 4455 enabled: !1, 4456 scale: 1, 4457 currentScale: 1, 4458 isScaling: !1, 4459 gesture: { 4460 $slideEl: void 0, 4461 slideWidth: void 0, 4462 slideHeight: void 0, 4463 $imageEl: void 0, 4464 $imageWrapEl: void 0, 4465 maxRatio: 3 4466 }, 4467 image: { 4468 isTouched: void 0, 4469 isMoved: void 0, 4470 currentX: void 0, 4471 currentY: void 0, 4472 minX: void 0, 4473 minY: void 0, 4474 maxX: void 0, 4475 maxY: void 0, 4476 width: void 0, 4477 height: void 0, 4478 startX: void 0, 4479 startY: void 0, 4480 touchesStart: {}, 4481 touchesCurrent: {} 4482 }, 4483 velocity: {x: void 0, y: void 0, prevPositionX: void 0, prevPositionY: void 0, prevTime: void 0} 4484 }; 4485 "onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function (i) { 4486 t[i] = oe[i].bind(e) 4487 })), n.extend(e, {zoom: t}); 4488 var i = 1; 4489 Object.defineProperty(e.zoom, "scale", { 4490 get: function () { 4491 return i 4492 }, set: function (t) { 4493 if (i !== t) { 4494 var s = e.zoom.gesture.$imageEl ? e.zoom.gesture.$imageEl[0] : void 0, 4495 a = e.zoom.gesture.$slideEl ? e.zoom.gesture.$slideEl[0] : void 0; 4496 e.emit("zoomChange", t, s, a) 4497 } 4498 i = t 4499 } 4500 }) 4501 }, 4502 on: { 4503 init: function () { 4504 this.params.zoom.enabled && this.zoom.enable() 4505 }, destroy: function () { 4506 this.zoom.disable() 4507 }, touchStart: function (e) { 4508 this.zoom.enabled && this.zoom.onTouchStart(e) 4509 }, touchEnd: function (e) { 4510 this.zoom.enabled && this.zoom.onTouchEnd(e) 4511 }, doubleTap: function (e) { 4512 this.params.zoom.enabled && this.zoom.enabled && this.params.zoom.toggle && this.zoom.toggle(e) 4513 }, transitionEnd: function () { 4514 this.zoom.enabled && this.params.zoom.enabled && this.zoom.onTransitionEnd() 4515 }, slideChange: function () { 4516 this.zoom.enabled && this.params.zoom.enabled && this.params.cssMode && this.zoom.onTransitionEnd() 4517 } 4518 } 4519 }, {
4520 name: "lazy", 4521 params: { 4522 lazy: { 4523 enabled: !1, 4524 loadPrevNext: !1, 4525 loadPrevNextAmount: 1, 4526 loadOnTransitionStart: !1, 4527 elementClass: "swiper-lazy", 4528 loadingClass: "swiper-lazy-loading", 4529 loadedClass: "swiper-lazy-loaded", 4530 preloaderClass: "swiper-lazy-preloader" 4531 } 4532 }, 4533 create: function () { 4534 n.extend(this, { 4535 lazy: { 4536 initialImageLoaded: !1, 4537 load: le.load.bind(this), 4538 loadInSlide: le.loadInSlide.bind(this) 4539 } 4540 }) 4541 }, 4542 on: { 4543 beforeInit: function () { 4544 this.params.lazy.enabled && this.params.preloadImages && (this.params.preloadImages = !1) 4545 }, init: function () { 4546 this.params.lazy.enabled && !this.params.loop && 0 === this.params.initialSlide && this.lazy.load() 4547 }, scroll: function () { 4548 this.params.freeMode && !this.params.freeModeSticky && this.lazy.load() 4549 }, resize: function () { 4550 this.params.lazy.enabled && this.lazy.load() 4551 }, scrollbarDragMove: function () { 4552 this.params.lazy.enabled && this.lazy.load() 4553 }, transitionStart: function () { 4554 this.params.lazy.enabled && (this.params.lazy.loadOnTransitionStart || !this.params.lazy.loadOnTransitionStart && !this.lazy.initialImageLoaded) && this.lazy.load() 4555 }, transitionEnd: function () { 4556 this.params.lazy.enabled && !this.params.lazy.loadOnTransitionStart && this.lazy.load() 4557 }, slideChange: function () { 4558 this.params.lazy.enabled && this.params.cssMode && this.lazy.load() 4559 } 4560 } 4561 }, { 4562 name: "controller", params: {controller: {control: void 0, inverse: !1, by: "slide"}}, create: function () { 4563 n.extend(this, { 4564 controller: { 4565 control: this.params.controller.control, 4566 getInterpolateFunction: de.getInterpolateFunction.bind(this), 4567 setTranslate: de.setTranslate.bind(this), 4568 setTransition: de.setTransition.bind(this) 4569 } 4570 }) 4571 }, on: { 4572 update: function () { 4573 this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline) 4574 }, resize: function () { 4575 this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline) 4576 }, observerUpdate: function () { 4577 this.controller.control && this.controller.spline && (this.controller.spline = void 0, delete this.controller.spline) 4578 }, setTranslate: function (e, t) { 4579 this.controller.control && this.controller.setTranslate(e, t) 4580 }, setTransition: function (e, t) { 4581 this.controller.control && this.controller.setTransition(e, t) 4582 } 4583 } 4584 }, { 4585 name: "a11y", 4586 params: { 4587 a11y: { 4588 enabled: !0, 4589 notificationClass: "swiper-notification", 4590 prevSlideMessage: "Previous slide", 4591 nextSlideMessage: "Next slide", 4592 firstSlideMessage: "This is the first slide", 4593 lastSlideMessage: "This is the last slide", 4594 paginationBulletMessage: "Go to slide {{index}}" 4595 } 4596 }, 4597 create: function () { 4598 var e = this; 4599 n.extend(e, {a11y: {liveRegion: s('<span class="' + e.params.a11y.notificationClass + '" aria-live="assertive" aria-atomic="true"></span>')}}), Object.keys(he).forEach((function (t) { 4600 e.a11y[t] = he[t].bind(e) 4601 })) 4602 }, 4603 on: { 4604 init: function () { 4605 this.params.a11y.enabled && (this.a11y.init(), this.a11y.updateNavigation()) 4606 }, toEdge: function () { 4607 this.params.a11y.enabled && this.a11y.updateNavigation() 4608 }, fromEdge: function () { 4609 this.params.a11y.enabled && this.a11y.updateNavigation() 4610 }, paginationUpdate: function () { 4611 this.params.a11y.enabled && this.a11y.updatePagination() 4612 }, destroy: function () { 4613 this.params.a11y.enabled && this.a11y.destroy() 4614 } 4615 } 4616 }, {
4617 name: "history", params: {history: {enabled: !1, replaceState: !1, key: "slides"}}, create: function () { 4618 n.extend(this, { 4619 history: { 4620 init: pe.init.bind(this), 4621 setHistory: pe.setHistory.bind(this), 4622 setHistoryPopState: pe.setHistoryPopState.bind(this), 4623 scrollToSlide: pe.scrollToSlide.bind(this), 4624 destroy: pe.destroy.bind(this) 4625 } 4626 }) 4627 }, on: { 4628 init: function () { 4629 this.params.history.enabled && this.history.init() 4630 }, destroy: function () { 4631 this.params.history.enabled && this.history.destroy() 4632 }, transitionEnd: function () { 4633 this.history.initialized && this.history.setHistory(this.params.history.key, this.activeIndex) 4634 }, slideChange: function () { 4635 this.history.initialized && this.params.cssMode && this.history.setHistory(this.params.history.key, this.activeIndex) 4636 } 4637 } 4638 }, { 4639 name: "hash-navigation", 4640 params: {hashNavigation: {enabled: !1, replaceState: !1, watchState: !1}}, 4641 create: function () { 4642 n.extend(this, { 4643 hashNavigation: { 4644 initialized: !1, 4645 init: ce.init.bind(this), 4646 destroy: ce.destroy.bind(this), 4647 setHash: ce.setHash.bind(this), 4648 onHashCange: ce.onHashCange.bind(this) 4649 } 4650 }) 4651 }, 4652 on: { 4653 init: function () { 4654 this.params.hashNavigation.enabled && this.hashNavigation.init() 4655 }, destroy: function () { 4656 this.params.hashNavigation.enabled && this.hashNavigation.destroy() 4657 }, transitionEnd: function () { 4658 this.hashNavigation.initialized && this.hashNavigation.setHash() 4659 }, slideChange: function () { 4660 this.hashNavigation.initialized && this.params.cssMode && this.hashNavigation.setHash() 4661 } 4662 } 4663 }, { 4664 name: "autoplay", 4665 params: { 4666 autoplay: { 4667 enabled: !1, 4668 delay: 3e3, 4669 waitForTransition: !0, 4670 disableOnInteraction: !0, 4671 stopOnLastSlide: !1, 4672 reverseDirection: !1 4673 } 4674 }, 4675 create: function () { 4676 var e = this; 4677 n.extend(e, { 4678 autoplay: { 4679 running: !1, 4680 paused: !1, 4681 run: ue.run.bind(e), 4682 start: ue.start.bind(e), 4683 stop: ue.stop.bind(e), 4684 pause: ue.pause.bind(e), 4685 onVisibilityChange: function () { 4686 "hidden" === document.visibilityState && e.autoplay.running && e.autoplay.pause(), "visible" === document.visibilityState && e.autoplay.paused && (e.autoplay.run(), e.autoplay.paused = !1) 4687 }, 4688 onTransitionEnd: function (t) { 4689 e && !e.destroyed && e.$wrapperEl && t.target === this && (e.$wrapperEl[0].removeEventListener("transitionend", e.autoplay.onTransitionEnd), e.$wrapperEl[0].removeEventListener("webkitTransitionEnd", e.autoplay.onTransitionEnd), e.autoplay.paused = !1, e.autoplay.running ? e.autoplay.run() : e.autoplay.stop()) 4690 } 4691 } 4692 }) 4693 }, 4694 on: { 4695 init: function () { 4696 this.params.autoplay.enabled && (this.autoplay.start(), document.addEventListener("visibilitychange", this.autoplay.onVisibilityChange)) 4697 }, beforeTransitionStart: function (e, t) { 4698 this.autoplay.running && (t || !this.params.autoplay.disableOnInteraction ? this.autoplay.pause(e) : this.autoplay.stop()) 4699 }, sliderFirstMove: function () { 4700 this.autoplay.running && (this.params.autoplay.disableOnInteraction ? this.autoplay.stop() : this.autoplay.pause()) 4701 }, touchEnd: function () { 4702 this.params.cssMode && this.autoplay.paused && !this.params.autoplay.disableOnInteraction && this.autoplay.run() 4703 }, destroy: function () { 4704 this.autoplay.running && this.autoplay.stop(), document.removeEventListener("visibilitychange", this.autoplay.onVisibilityChange) 4705 } 4706 } 4707 }, {
4708 name: "effect-fade", params: {fadeEffect: {crossFade: !1}}, create: function () { 4709 n.extend(this, { 4710 fadeEffect: { 4711 setTranslate: ve.setTranslate.bind(this), 4712 setTransition: ve.setTransition.bind(this) 4713 } 4714 }) 4715 }, on: { 4716 beforeInit: function () { 4717 if ("fade" === this.params.effect) { 4718 this.classNames.push(this.params.containerModifierClass + "fade"); 4719 var e = { 4720 slidesPerView: 1, 4721 slidesPerColumn: 1, 4722 slidesPerGroup: 1, 4723 watchSlidesProgress: !0, 4724 spaceBetween: 0, 4725 virtualTranslate: !0 4726 }; 4727 n.extend(this.params, e), n.extend(this.originalParams, e) 4728 } 4729 }, setTranslate: function () { 4730 "fade" === this.params.effect && this.fadeEffect.setTranslate() 4731 }, setTransition: function (e) { 4732 "fade" === this.params.effect && this.fadeEffect.setTransition(e) 4733 } 4734 } 4735 }, { 4736 name: "effect-cube", 4737 params: {cubeEffect: {slideShadows: !0, shadow: !0, shadowOffset: 20, shadowScale: .94}}, 4738 create: function () { 4739 n.extend(this, { 4740 cubeEffect: { 4741 setTranslate: fe.setTranslate.bind(this), 4742 setTransition: fe.setTransition.bind(this) 4743 } 4744 }) 4745 }, 4746 on: { 4747 beforeInit: function () { 4748 if ("cube" === this.params.effect) { 4749 this.classNames.push(this.params.containerModifierClass + "cube"), this.classNames.push(this.params.containerModifierClass + "3d"); 4750 var e = { 4751 slidesPerView: 1, 4752 slidesPerColumn: 1, 4753 slidesPerGroup: 1, 4754 watchSlidesProgress: !0, 4755 resistanceRatio: 0, 4756 spaceBetween: 0, 4757 centeredSlides: !1, 4758 virtualTranslate: !0 4759 }; 4760 n.extend(this.params, e), n.extend(this.originalParams, e) 4761 } 4762 }, setTranslate: function () { 4763 "cube" === this.params.effect && this.cubeEffect.setTranslate() 4764 }, setTransition: function (e) { 4765 "cube" === this.params.effect && this.cubeEffect.setTransition(e) 4766 } 4767 } 4768 }, { 4769 name: "effect-flip", params: {flipEffect: {slideShadows: !0, limitRotation: !0}}, create: function () { 4770 n.extend(this, { 4771 flipEffect: { 4772 setTranslate: me.setTranslate.bind(this), 4773 setTransition: me.setTransition.bind(this) 4774 } 4775 }) 4776 }, on: { 4777 beforeInit: function () { 4778 if ("flip" === this.params.effect) { 4779 this.classNames.push(this.params.containerModifierClass + "flip"), this.classNames.push(this.params.containerModifierClass + "3d"); 4780 var e = { 4781 slidesPerView: 1, 4782 slidesPerColumn: 1, 4783 slidesPerGroup: 1, 4784 watchSlidesProgress: !0, 4785 spaceBetween: 0, 4786 virtualTranslate: !0 4787 }; 4788 n.extend(this.params, e), n.extend(this.originalParams, e) 4789 } 4790 }, setTranslate: function () { 4791 "flip" === this.params.effect && this.flipEffect.setTranslate() 4792 }, setTransition: function (e) { 4793 "flip" === this.params.effect && this.flipEffect.setTransition(e) 4794 } 4795 } 4796 }, { 4797 name: "effect-coverflow", 4798 params: {coverflowEffect: {rotate: 50, stretch: 0, depth: 100, modifier: 1, slideShadows: !0}}, 4799 create: function () { 4800 n.extend(this, { 4801 coverflowEffect: { 4802 setTranslate: ge.setTranslate.bind(this), 4803 setTransition: ge.setTransition.bind(this) 4804 } 4805 }) 4806 }, 4807 on: { 4808 beforeInit: function () { 4809 "coverflow" === this.params.effect && (this.classNames.push(this.params.containerModifierClass + "coverflow"), this.classNames.push(this.params.containerModifierClass + "3d"), this.params.watchSlidesProgress = !0, this.originalParams.watchSlidesProgress = !0) 4810 }, setTranslate: function () { 4811 "coverflow" === this.params.effect && this.coverflowEffect.setTranslate() 4812 }, setTransition: function (e) { 4813 "coverflow" === this.params.effect && this.coverflowEffect.setTransition(e) 4814 } 4815 } 4816 }, {
vendor: 1,611 bytes, lines 4817-4859
4817 name: "thumbs", 4818 params: { 4819 thumbs: { 4820 swiper: null, 4821 slideThumbActiveClass: "swiper-slide-thumb-active", 4822 thumbsContainerClass: "swiper-container-thumbs" 4823 } 4824 }, 4825 create: function () { 4826 n.extend(this, { 4827 thumbs: { 4828 swiper: null, 4829 init: be.init.bind(this), 4830 update: be.update.bind(this), 4831 onThumbClick: be.onThumbClick.bind(this) 4832 } 4833 }) 4834 }, 4835 on: { 4836 beforeInit: function () { 4837 var e = this.params.thumbs; 4838 e && e.swiper && (this.thumbs.init(), this.thumbs.update(!0)) 4839 }, slideChange: function () { 4840 this.thumbs.swiper && this.thumbs.update() 4841 }, update: function () { 4842 this.thumbs.swiper && this.thumbs.update() 4843 }, resize: function () { 4844 this.thumbs.swiper && this.thumbs.update() 4845 }, observerUpdate: function () { 4846 this.thumbs.swiper && this.thumbs.update() 4847 }, setTransition: function (e) { 4848 var t = this.thumbs.swiper; 4849 t && t.setTransition(e) 4850 }, beforeDestroy: function () { 4851 var e = this.thumbs.swiper; 4852 e && this.thumbs.swiperCreated && e && e.destroy() 4853 } 4854 } 4855 }]; 4856 return void 0 === W.use && (W.use = W.Class.use, W.installModule = W.Class.installModule), W.use(we), W 4857})); 4858//# sourceMappingURL=swiper.min.js.map 4859
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.