Browse code

Refactor and rewrite as contao bundle

Benjamin Roth authored on04/11/2022 22:32:32
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,9471 @@
1
+/**
2
+ * Swiper 6.4.5
3
+ * Most modern mobile touch slider and framework with hardware accelerated transitions
4
+ * https://swiperjs.com
5
+ *
6
+ * Copyright 2014-2020 Vladimir Kharlampidi
7
+ *
8
+ * Released under the MIT License
9
+ *
10
+ * Released on: December 18, 2020
11
+ */
12
+
13
+function _defineProperties(target, props) {
14
+  for (var i = 0; i < props.length; i++) {
15
+    var descriptor = props[i];
16
+    descriptor.enumerable = descriptor.enumerable || false;
17
+    descriptor.configurable = true;
18
+    if ("value" in descriptor) descriptor.writable = true;
19
+    Object.defineProperty(target, descriptor.key, descriptor);
20
+  }
21
+}
22
+
23
+function _createClass(Constructor, protoProps, staticProps) {
24
+  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
25
+  if (staticProps) _defineProperties(Constructor, staticProps);
26
+  return Constructor;
27
+}
28
+
29
+function _extends() {
30
+  _extends = Object.assign || function (target) {
31
+    for (var i = 1; i < arguments.length; i++) {
32
+      var source = arguments[i];
33
+
34
+      for (var key in source) {
35
+        if (Object.prototype.hasOwnProperty.call(source, key)) {
36
+          target[key] = source[key];
37
+        }
38
+      }
39
+    }
40
+
41
+    return target;
42
+  };
43
+
44
+  return _extends.apply(this, arguments);
45
+}
46
+
47
+/**
48
+ * SSR Window 3.0.0
49
+ * Better handling for window object in SSR environment
50
+ * https://github.com/nolimits4web/ssr-window
51
+ *
52
+ * Copyright 2020, Vladimir Kharlampidi
53
+ *
54
+ * Licensed under MIT
55
+ *
56
+ * Released on: November 9, 2020
57
+ */
58
+
59
+/* eslint-disable no-param-reassign */
60
+function isObject(obj) {
61
+  return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;
62
+}
63
+
64
+function extend(target, src) {
65
+  if (target === void 0) {
66
+    target = {};
67
+  }
68
+
69
+  if (src === void 0) {
70
+    src = {};
71
+  }
72
+
73
+  Object.keys(src).forEach(function (key) {
74
+    if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject(src[key]) && isObject(target[key]) && Object.keys(src[key]).length > 0) {
75
+      extend(target[key], src[key]);
76
+    }
77
+  });
78
+}
79
+
80
+var ssrDocument = {
81
+  body: {},
82
+  addEventListener: function addEventListener() {},
83
+  removeEventListener: function removeEventListener() {},
84
+  activeElement: {
85
+    blur: function blur() {},
86
+    nodeName: ''
87
+  },
88
+  querySelector: function querySelector() {
89
+    return null;
90
+  },
91
+  querySelectorAll: function querySelectorAll() {
92
+    return [];
93
+  },
94
+  getElementById: function getElementById() {
95
+    return null;
96
+  },
97
+  createEvent: function createEvent() {
98
+    return {
99
+      initEvent: function initEvent() {}
100
+    };
101
+  },
102
+  createElement: function createElement() {
103
+    return {
104
+      children: [],
105
+      childNodes: [],
106
+      style: {},
107
+      setAttribute: function setAttribute() {},
108
+      getElementsByTagName: function getElementsByTagName() {
109
+        return [];
110
+      }
111
+    };
112
+  },
113
+  createElementNS: function createElementNS() {
114
+    return {};
115
+  },
116
+  importNode: function importNode() {
117
+    return null;
118
+  },
119
+  location: {
120
+    hash: '',
121
+    host: '',
122
+    hostname: '',
123
+    href: '',
124
+    origin: '',
125
+    pathname: '',
126
+    protocol: '',
127
+    search: ''
128
+  }
129
+};
130
+
131
+function getDocument() {
132
+  var doc = typeof document !== 'undefined' ? document : {};
133
+  extend(doc, ssrDocument);
134
+  return doc;
135
+}
136
+
137
+var ssrWindow = {
138
+  document: ssrDocument,
139
+  navigator: {
140
+    userAgent: ''
141
+  },
142
+  location: {
143
+    hash: '',
144
+    host: '',
145
+    hostname: '',
146
+    href: '',
147
+    origin: '',
148
+    pathname: '',
149
+    protocol: '',
150
+    search: ''
151
+  },
152
+  history: {
153
+    replaceState: function replaceState() {},
154
+    pushState: function pushState() {},
155
+    go: function go() {},
156
+    back: function back() {}
157
+  },
158
+  CustomEvent: function CustomEvent() {
159
+    return this;
160
+  },
161
+  addEventListener: function addEventListener() {},
162
+  removeEventListener: function removeEventListener() {},
163
+  getComputedStyle: function getComputedStyle() {
164
+    return {
165
+      getPropertyValue: function getPropertyValue() {
166
+        return '';
167
+      }
168
+    };
169
+  },
170
+  Image: function Image() {},
171
+  Date: function Date() {},
172
+  screen: {},
173
+  setTimeout: function setTimeout() {},
174
+  clearTimeout: function clearTimeout() {},
175
+  matchMedia: function matchMedia() {
176
+    return {};
177
+  },
178
+  requestAnimationFrame: function requestAnimationFrame(callback) {
179
+    if (typeof setTimeout === 'undefined') {
180
+      callback();
181
+      return null;
182
+    }
183
+
184
+    return setTimeout(callback, 0);
185
+  },
186
+  cancelAnimationFrame: function cancelAnimationFrame(id) {
187
+    if (typeof setTimeout === 'undefined') {
188
+      return;
189
+    }
190
+
191
+    clearTimeout(id);
192
+  }
193
+};
194
+
195
+function getWindow() {
196
+  var win = typeof window !== 'undefined' ? window : {};
197
+  extend(win, ssrWindow);
198
+  return win;
199
+}
200
+
201
+/**
202
+ * Dom7 3.0.0
203
+ * Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API
204
+ * https://framework7.io/docs/dom7.html
205
+ *
206
+ * Copyright 2020, Vladimir Kharlampidi
207
+ *
208
+ * Licensed under MIT
209
+ *
210
+ * Released on: November 9, 2020
211
+ */
212
+
213
+function _inheritsLoose(subClass, superClass) {
214
+  subClass.prototype = Object.create(superClass.prototype);
215
+  subClass.prototype.constructor = subClass;
216
+  subClass.__proto__ = superClass;
217
+}
218
+
219
+function _getPrototypeOf(o) {
220
+  _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
221
+    return o.__proto__ || Object.getPrototypeOf(o);
222
+  };
223
+  return _getPrototypeOf(o);
224
+}
225
+
226
+function _setPrototypeOf(o, p) {
227
+  _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
228
+    o.__proto__ = p;
229
+    return o;
230
+  };
231
+
232
+  return _setPrototypeOf(o, p);
233
+}
234
+
235
+function _isNativeReflectConstruct() {
236
+  if (typeof Reflect === "undefined" || !Reflect.construct) return false;
237
+  if (Reflect.construct.sham) return false;
238
+  if (typeof Proxy === "function") return true;
239
+
240
+  try {
241
+    Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
242
+    return true;
243
+  } catch (e) {
244
+    return false;
245
+  }
246
+}
247
+
248
+function _construct(Parent, args, Class) {
249
+  if (_isNativeReflectConstruct()) {
250
+    _construct = Reflect.construct;
251
+  } else {
252
+    _construct = function _construct(Parent, args, Class) {
253
+      var a = [null];
254
+      a.push.apply(a, args);
255
+      var Constructor = Function.bind.apply(Parent, a);
256
+      var instance = new Constructor();
257
+      if (Class) _setPrototypeOf(instance, Class.prototype);
258
+      return instance;
259
+    };
260
+  }
261
+
262
+  return _construct.apply(null, arguments);
263
+}
264
+
265
+function _isNativeFunction(fn) {
266
+  return Function.toString.call(fn).indexOf("[native code]") !== -1;
267
+}
268
+
269
+function _wrapNativeSuper(Class) {
270
+  var _cache = typeof Map === "function" ? new Map() : undefined;
271
+
272
+  _wrapNativeSuper = function _wrapNativeSuper(Class) {
273
+    if (Class === null || !_isNativeFunction(Class)) return Class;
274
+
275
+    if (typeof Class !== "function") {
276
+      throw new TypeError("Super expression must either be null or a function");
277
+    }
278
+
279
+    if (typeof _cache !== "undefined") {
280
+      if (_cache.has(Class)) return _cache.get(Class);
281
+
282
+      _cache.set(Class, Wrapper);
283
+    }
284
+
285
+    function Wrapper() {
286
+      return _construct(Class, arguments, _getPrototypeOf(this).constructor);
287
+    }
288
+
289
+    Wrapper.prototype = Object.create(Class.prototype, {
290
+      constructor: {
291
+        value: Wrapper,
292
+        enumerable: false,
293
+        writable: true,
294
+        configurable: true
295
+      }
296
+    });
297
+    return _setPrototypeOf(Wrapper, Class);
298
+  };
299
+
300
+  return _wrapNativeSuper(Class);
301
+}
302
+
303
+function _assertThisInitialized(self) {
304
+  if (self === void 0) {
305
+    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
306
+  }
307
+
308
+  return self;
309
+}
310
+/* eslint-disable no-proto */
311
+
312
+
313
+function makeReactive(obj) {
314
+  var proto = obj.__proto__;
315
+  Object.defineProperty(obj, '__proto__', {
316
+    get: function get() {
317
+      return proto;
318
+    },
319
+    set: function set(value) {
320
+      proto.__proto__ = value;
321
+    }
322
+  });
323
+}
324
+
325
+var Dom7 = /*#__PURE__*/function (_Array) {
326
+  _inheritsLoose(Dom7, _Array);
327
+
328
+  function Dom7(items) {
329
+    var _this;
330
+
331
+    _this = _Array.call.apply(_Array, [this].concat(items)) || this;
332
+    makeReactive(_assertThisInitialized(_this));
333
+    return _this;
334
+  }
335
+
336
+  return Dom7;
337
+}( /*#__PURE__*/_wrapNativeSuper(Array));
338
+
339
+function arrayFlat(arr) {
340
+  if (arr === void 0) {
341
+    arr = [];
342
+  }
343
+
344
+  var res = [];
345
+  arr.forEach(function (el) {
346
+    if (Array.isArray(el)) {
347
+      res.push.apply(res, arrayFlat(el));
348
+    } else {
349
+      res.push(el);
350
+    }
351
+  });
352
+  return res;
353
+}
354
+
355
+function arrayFilter(arr, callback) {
356
+  return Array.prototype.filter.call(arr, callback);
357
+}
358
+
359
+function arrayUnique(arr) {
360
+  var uniqueArray = [];
361
+
362
+  for (var i = 0; i < arr.length; i += 1) {
363
+    if (uniqueArray.indexOf(arr[i]) === -1) uniqueArray.push(arr[i]);
364
+  }
365
+
366
+  return uniqueArray;
367
+}
368
+
369
+function qsa(selector, context) {
370
+  if (typeof selector !== 'string') {
371
+    return [selector];
372
+  }
373
+
374
+  var a = [];
375
+  var res = context.querySelectorAll(selector);
376
+
377
+  for (var i = 0; i < res.length; i += 1) {
378
+    a.push(res[i]);
379
+  }
380
+
381
+  return a;
382
+}
383
+
384
+function $(selector, context) {
385
+  var window = getWindow();
386
+  var document = getDocument();
387
+  var arr = [];
388
+
389
+  if (!context && selector instanceof Dom7) {
390
+    return selector;
391
+  }
392
+
393
+  if (!selector) {
394
+    return new Dom7(arr);
395
+  }
396
+
397
+  if (typeof selector === 'string') {
398
+    var html = selector.trim();
399
+
400
+    if (html.indexOf('<') >= 0 && html.indexOf('>') >= 0) {
401
+      var toCreate = 'div';
402
+      if (html.indexOf('<li') === 0) toCreate = 'ul';
403
+      if (html.indexOf('<tr') === 0) toCreate = 'tbody';
404
+      if (html.indexOf('<td') === 0 || html.indexOf('<th') === 0) toCreate = 'tr';
405
+      if (html.indexOf('<tbody') === 0) toCreate = 'table';
406
+      if (html.indexOf('<option') === 0) toCreate = 'select';
407
+      var tempParent = document.createElement(toCreate);
408
+      tempParent.innerHTML = html;
409
+
410
+      for (var i = 0; i < tempParent.childNodes.length; i += 1) {
411
+        arr.push(tempParent.childNodes[i]);
412
+      }
413
+    } else {
414
+      arr = qsa(selector.trim(), context || document);
415
+    } // arr = qsa(selector, document);
416
+
417
+  } else if (selector.nodeType || selector === window || selector === document) {
418
+    arr.push(selector);
419
+  } else if (Array.isArray(selector)) {
420
+    if (selector instanceof Dom7) return selector;
421
+    arr = selector;
422
+  }
423
+
424
+  return new Dom7(arrayUnique(arr));
425
+}
426
+
427
+$.fn = Dom7.prototype;
428
+
429
+function addClass() {
430
+  for (var _len = arguments.length, classes = new Array(_len), _key = 0; _key < _len; _key++) {
431
+    classes[_key] = arguments[_key];
432
+  }
433
+
434
+  var classNames = arrayFlat(classes.map(function (c) {
435
+    return c.split(' ');
436
+  }));
437
+  this.forEach(function (el) {
438
+    var _el$classList;
439
+
440
+    (_el$classList = el.classList).add.apply(_el$classList, classNames);
441
+  });
442
+  return this;
443
+}
444
+
445
+function removeClass() {
446
+  for (var _len2 = arguments.length, classes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
447
+    classes[_key2] = arguments[_key2];
448
+  }
449
+
450
+  var classNames = arrayFlat(classes.map(function (c) {
451
+    return c.split(' ');
452
+  }));
453
+  this.forEach(function (el) {
454
+    var _el$classList2;
455
+
456
+    (_el$classList2 = el.classList).remove.apply(_el$classList2, classNames);
457
+  });
458
+  return this;
459
+}
460
+
461
+function toggleClass() {
462
+  for (var _len3 = arguments.length, classes = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
463
+    classes[_key3] = arguments[_key3];
464
+  }
465
+
466
+  var classNames = arrayFlat(classes.map(function (c) {
467
+    return c.split(' ');
468
+  }));
469
+  this.forEach(function (el) {
470
+    classNames.forEach(function (className) {
471
+      el.classList.toggle(className);
472
+    });
473
+  });
474
+}
475
+
476
+function hasClass() {
477
+  for (var _len4 = arguments.length, classes = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
478
+    classes[_key4] = arguments[_key4];
479
+  }
480
+
481
+  var classNames = arrayFlat(classes.map(function (c) {
482
+    return c.split(' ');
483
+  }));
484
+  return arrayFilter(this, function (el) {
485
+    return classNames.filter(function (className) {
486
+      return el.classList.contains(className);
487
+    }).length > 0;
488
+  }).length > 0;
489
+}
490
+
491
+function attr(attrs, value) {
492
+  if (arguments.length === 1 && typeof attrs === 'string') {
493
+    // Get attr
494
+    if (this[0]) return this[0].getAttribute(attrs);
495
+    return undefined;
496
+  } // Set attrs
497
+
498
+
499
+  for (var i = 0; i < this.length; i += 1) {
500
+    if (arguments.length === 2) {
501
+      // String
502
+      this[i].setAttribute(attrs, value);
503
+    } else {
504
+      // Object
505
+      for (var attrName in attrs) {
506
+        this[i][attrName] = attrs[attrName];
507
+        this[i].setAttribute(attrName, attrs[attrName]);
508
+      }
509
+    }
510
+  }
511
+
512
+  return this;
513
+}
514
+
515
+function removeAttr(attr) {
516
+  for (var i = 0; i < this.length; i += 1) {
517
+    this[i].removeAttribute(attr);
518
+  }
519
+
520
+  return this;
521
+}
522
+
523
+function transform(transform) {
524
+  for (var i = 0; i < this.length; i += 1) {
525
+    this[i].style.transform = transform;
526
+  }
527
+
528
+  return this;
529
+}
530
+
531
+function transition(duration) {
532
+  for (var i = 0; i < this.length; i += 1) {
533
+    this[i].style.transitionDuration = typeof duration !== 'string' ? duration + "ms" : duration;
534
+  }
535
+
536
+  return this;
537
+}
538
+
539
+function on() {
540
+  for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
541
+    args[_key5] = arguments[_key5];
542
+  }
543
+
544
+  var eventType = args[0],
545
+      targetSelector = args[1],
546
+      listener = args[2],
547
+      capture = args[3];
548
+
549
+  if (typeof args[1] === 'function') {
550
+    eventType = args[0];
551
+    listener = args[1];
552
+    capture = args[2];
553
+    targetSelector = undefined;
554
+  }
555
+
556
+  if (!capture) capture = false;
557
+
558
+  function handleLiveEvent(e) {
559
+    var target = e.target;
560
+    if (!target) return;
561
+    var eventData = e.target.dom7EventData || [];
562
+
563
+    if (eventData.indexOf(e) < 0) {
564
+      eventData.unshift(e);
565
+    }
566
+
567
+    if ($(target).is(targetSelector)) listener.apply(target, eventData);else {
568
+      var _parents = $(target).parents(); // eslint-disable-line
569
+
570
+
571
+      for (var k = 0; k < _parents.length; k += 1) {
572
+        if ($(_parents[k]).is(targetSelector)) listener.apply(_parents[k], eventData);
573
+      }
574
+    }
575
+  }
576
+
577
+  function handleEvent(e) {
578
+    var eventData = e && e.target ? e.target.dom7EventData || [] : [];
579
+
580
+    if (eventData.indexOf(e) < 0) {
581
+      eventData.unshift(e);
582
+    }
583
+
584
+    listener.apply(this, eventData);
585
+  }
586
+
587
+  var events = eventType.split(' ');
588
+  var j;
589
+
590
+  for (var i = 0; i < this.length; i += 1) {
591
+    var el = this[i];
592
+
593
+    if (!targetSelector) {
594
+      for (j = 0; j < events.length; j += 1) {
595
+        var event = events[j];
596
+        if (!el.dom7Listeners) el.dom7Listeners = {};
597
+        if (!el.dom7Listeners[event]) el.dom7Listeners[event] = [];
598
+        el.dom7Listeners[event].push({
599
+          listener: listener,
600
+          proxyListener: handleEvent
601
+        });
602
+        el.addEventListener(event, handleEvent, capture);
603
+      }
604
+    } else {
605
+      // Live events
606
+      for (j = 0; j < events.length; j += 1) {
607
+        var _event = events[j];
608
+        if (!el.dom7LiveListeners) el.dom7LiveListeners = {};
609
+        if (!el.dom7LiveListeners[_event]) el.dom7LiveListeners[_event] = [];
610
+
611
+        el.dom7LiveListeners[_event].push({
612
+          listener: listener,
613
+          proxyListener: handleLiveEvent
614
+        });
615
+
616
+        el.addEventListener(_event, handleLiveEvent, capture);
617
+      }
618
+    }
619
+  }
620
+
621
+  return this;
622
+}
623
+
624
+function off() {
625
+  for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
626
+    args[_key6] = arguments[_key6];
627
+  }
628
+
629
+  var eventType = args[0],
630
+      targetSelector = args[1],
631
+      listener = args[2],
632
+      capture = args[3];
633
+
634
+  if (typeof args[1] === 'function') {
635
+    eventType = args[0];
636
+    listener = args[1];
637
+    capture = args[2];
638
+    targetSelector = undefined;
639
+  }
640
+
641
+  if (!capture) capture = false;
642
+  var events = eventType.split(' ');
643
+
644
+  for (var i = 0; i < events.length; i += 1) {
645
+    var event = events[i];
646
+
647
+    for (var j = 0; j < this.length; j += 1) {
648
+      var el = this[j];
649
+      var handlers = void 0;
650
+
651
+      if (!targetSelector && el.dom7Listeners) {
652
+        handlers = el.dom7Listeners[event];
653
+      } else if (targetSelector && el.dom7LiveListeners) {
654
+        handlers = el.dom7LiveListeners[event];
655
+      }
656
+
657
+      if (handlers && handlers.length) {
658
+        for (var k = handlers.length - 1; k >= 0; k -= 1) {
659
+          var handler = handlers[k];
660
+
661
+          if (listener && handler.listener === listener) {
662
+            el.removeEventListener(event, handler.proxyListener, capture);
663
+            handlers.splice(k, 1);
664
+          } else if (listener && handler.listener && handler.listener.dom7proxy && handler.listener.dom7proxy === listener) {
665
+            el.removeEventListener(event, handler.proxyListener, capture);
666
+            handlers.splice(k, 1);
667
+          } else if (!listener) {
668
+            el.removeEventListener(event, handler.proxyListener, capture);
669
+            handlers.splice(k, 1);
670
+          }
671
+        }
672
+      }
673
+    }
674
+  }
675
+
676
+  return this;
677
+}
678
+
679
+function trigger() {
680
+  var window = getWindow();
681
+
682
+  for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
683
+    args[_key9] = arguments[_key9];
684
+  }
685
+
686
+  var events = args[0].split(' ');
687
+  var eventData = args[1];
688
+
689
+  for (var i = 0; i < events.length; i += 1) {
690
+    var event = events[i];
691
+
692
+    for (var j = 0; j < this.length; j += 1) {
693
+      var el = this[j];
694
+
695
+      if (window.CustomEvent) {
696
+        var evt = new window.CustomEvent(event, {
697
+          detail: eventData,
698
+          bubbles: true,
699
+          cancelable: true
700
+        });
701
+        el.dom7EventData = args.filter(function (data, dataIndex) {
702
+          return dataIndex > 0;
703
+        });
704
+        el.dispatchEvent(evt);
705
+        el.dom7EventData = [];
706
+        delete el.dom7EventData;
707
+      }
708
+    }
709
+  }
710
+
711
+  return this;
712
+}
713
+
714
+function transitionEnd(callback) {
715
+  var dom = this;
716
+
717
+  function fireCallBack(e) {
718
+    if (e.target !== this) return;
719
+    callback.call(this, e);
720
+    dom.off('transitionend', fireCallBack);
721
+  }
722
+
723
+  if (callback) {
724
+    dom.on('transitionend', fireCallBack);
725
+  }
726
+
727
+  return this;
728
+}
729
+
730
+function outerWidth(includeMargins) {
731
+  if (this.length > 0) {
732
+    if (includeMargins) {
733
+      var _styles = this.styles();
734
+
735
+      return this[0].offsetWidth + parseFloat(_styles.getPropertyValue('margin-right')) + parseFloat(_styles.getPropertyValue('margin-left'));
736
+    }
737
+
738
+    return this[0].offsetWidth;
739
+  }
740
+
741
+  return null;
742
+}
743
+
744
+function outerHeight(includeMargins) {
745
+  if (this.length > 0) {
746
+    if (includeMargins) {
747
+      var _styles2 = this.styles();
748
+
749
+      return this[0].offsetHeight + parseFloat(_styles2.getPropertyValue('margin-top')) + parseFloat(_styles2.getPropertyValue('margin-bottom'));
750
+    }
751
+
752
+    return this[0].offsetHeight;
753
+  }
754
+
755
+  return null;
756
+}
757
+
758
+function offset() {
759
+  if (this.length > 0) {
760
+    var window = getWindow();
761
+    var document = getDocument();
762
+    var el = this[0];
763
+    var box = el.getBoundingClientRect();
764
+    var body = document.body;
765
+    var clientTop = el.clientTop || body.clientTop || 0;
766
+    var clientLeft = el.clientLeft || body.clientLeft || 0;
767
+    var scrollTop = el === window ? window.scrollY : el.scrollTop;
768
+    var scrollLeft = el === window ? window.scrollX : el.scrollLeft;
769
+    return {
770
+      top: box.top + scrollTop - clientTop,
771
+      left: box.left + scrollLeft - clientLeft
772
+    };
773
+  }
774
+
775
+  return null;
776
+}
777
+
778
+function styles() {
779
+  var window = getWindow();
780
+  if (this[0]) return window.getComputedStyle(this[0], null);
781
+  return {};
782
+}
783
+
784
+function css(props, value) {
785
+  var window = getWindow();
786
+  var i;
787
+
788
+  if (arguments.length === 1) {
789
+    if (typeof props === 'string') {
790
+      // .css('width')
791
+      if (this[0]) return window.getComputedStyle(this[0], null).getPropertyValue(props);
792
+    } else {
793
+      // .css({ width: '100px' })
794
+      for (i = 0; i < this.length; i += 1) {
795
+        for (var _prop in props) {
796
+          this[i].style[_prop] = props[_prop];
797
+        }
798
+      }
799
+
800
+      return this;
801
+    }
802
+  }
803
+
804
+  if (arguments.length === 2 && typeof props === 'string') {
805
+    // .css('width', '100px')
806
+    for (i = 0; i < this.length; i += 1) {
807
+      this[i].style[props] = value;
808
+    }
809
+
810
+    return this;
811
+  }
812
+
813
+  return this;
814
+}
815
+
816
+function each(callback) {
817
+  if (!callback) return this;
818
+  this.forEach(function (el, index) {
819
+    callback.apply(el, [el, index]);
820
+  });
821
+  return this;
822
+}
823
+
824
+function filter(callback) {
825
+  var result = arrayFilter(this, callback);
826
+  return $(result);
827
+}
828
+
829
+function html(html) {
830
+  if (typeof html === 'undefined') {
831
+    return this[0] ? this[0].innerHTML : null;
832
+  }
833
+
834
+  for (var i = 0; i < this.length; i += 1) {
835
+    this[i].innerHTML = html;
836
+  }
837
+
838
+  return this;
839
+}
840
+
841
+function text(text) {
842
+  if (typeof text === 'undefined') {
843
+    return this[0] ? this[0].textContent.trim() : null;
844
+  }
845
+
846
+  for (var i = 0; i < this.length; i += 1) {
847
+    this[i].textContent = text;
848
+  }
849
+
850
+  return this;
851
+}
852
+
853
+function is(selector) {
854
+  var window = getWindow();
855
+  var document = getDocument();
856
+  var el = this[0];
857
+  var compareWith;
858
+  var i;
859
+  if (!el || typeof selector === 'undefined') return false;
860
+
861
+  if (typeof selector === 'string') {
862
+    if (el.matches) return el.matches(selector);
863
+    if (el.webkitMatchesSelector) return el.webkitMatchesSelector(selector);
864
+    if (el.msMatchesSelector) return el.msMatchesSelector(selector);
865
+    compareWith = $(selector);
866
+
867
+    for (i = 0; i < compareWith.length; i += 1) {
868
+      if (compareWith[i] === el) return true;
869
+    }
870
+
871
+    return false;
872
+  }
873
+
874
+  if (selector === document) {
875
+    return el === document;
876
+  }
877
+
878
+  if (selector === window) {
879
+    return el === window;
880
+  }
881
+
882
+  if (selector.nodeType || selector instanceof Dom7) {
883
+    compareWith = selector.nodeType ? [selector] : selector;
884
+
885
+    for (i = 0; i < compareWith.length; i += 1) {
886
+      if (compareWith[i] === el) return true;
887
+    }
888
+
889
+    return false;
890
+  }
891
+
892
+  return false;
893
+}
894
+
895
+function index() {
896
+  var child = this[0];
897
+  var i;
898
+
899
+  if (child) {
900
+    i = 0; // eslint-disable-next-line
901
+
902
+    while ((child = child.previousSibling) !== null) {
903
+      if (child.nodeType === 1) i += 1;
904
+    }
905
+
906
+    return i;
907
+  }
908
+
909
+  return undefined;
910
+}
911
+
912
+function eq(index) {
913
+  if (typeof index === 'undefined') return this;
914
+  var length = this.length;
915
+
916
+  if (index > length - 1) {
917
+    return $([]);
918
+  }
919
+
920
+  if (index < 0) {
921
+    var returnIndex = length + index;
922
+    if (returnIndex < 0) return $([]);
923
+    return $([this[returnIndex]]);
924
+  }
925
+
926
+  return $([this[index]]);
927
+}
928
+
929
+function append() {
930
+  var newChild;
931
+  var document = getDocument();
932
+
933
+  for (var k = 0; k < arguments.length; k += 1) {
934
+    newChild = k < 0 || arguments.length <= k ? undefined : arguments[k];
935
+
936
+    for (var i = 0; i < this.length; i += 1) {
937
+      if (typeof newChild === 'string') {
938
+        var tempDiv = document.createElement('div');
939
+        tempDiv.innerHTML = newChild;
940
+
941
+        while (tempDiv.firstChild) {
942
+          this[i].appendChild(tempDiv.firstChild);
943
+        }
944
+      } else if (newChild instanceof Dom7) {
945
+        for (var j = 0; j < newChild.length; j += 1) {
946
+          this[i].appendChild(newChild[j]);
947
+        }
948
+      } else {
949
+        this[i].appendChild(newChild);
950
+      }
951
+    }
952
+  }
953
+
954
+  return this;
955
+}
956
+
957
+function prepend(newChild) {
958
+  var document = getDocument();
959
+  var i;
960
+  var j;
961
+
962
+  for (i = 0; i < this.length; i += 1) {
963
+    if (typeof newChild === 'string') {
964
+      var tempDiv = document.createElement('div');
965
+      tempDiv.innerHTML = newChild;
966
+
967
+      for (j = tempDiv.childNodes.length - 1; j >= 0; j -= 1) {
968
+        this[i].insertBefore(tempDiv.childNodes[j], this[i].childNodes[0]);
969
+      }
970
+    } else if (newChild instanceof Dom7) {
971
+      for (j = 0; j < newChild.length; j += 1) {
972
+        this[i].insertBefore(newChild[j], this[i].childNodes[0]);
973
+      }
974
+    } else {
975
+      this[i].insertBefore(newChild, this[i].childNodes[0]);
976
+    }
977
+  }
978
+
979
+  return this;
980
+}
981
+
982
+function next(selector) {
983
+  if (this.length > 0) {
984
+    if (selector) {
985
+      if (this[0].nextElementSibling && $(this[0].nextElementSibling).is(selector)) {
986
+        return $([this[0].nextElementSibling]);
987
+      }
988
+
989
+      return $([]);
990
+    }
991
+
992
+    if (this[0].nextElementSibling) return $([this[0].nextElementSibling]);
993
+    return $([]);
994
+  }
995
+
996
+  return $([]);
997
+}
998
+
999
+function nextAll(selector) {
1000
+  var nextEls = [];
1001
+  var el = this[0];
1002
+  if (!el) return $([]);
1003
+
1004
+  while (el.nextElementSibling) {
1005
+    var _next = el.nextElementSibling; // eslint-disable-line
1006
+
1007
+    if (selector) {
1008
+      if ($(_next).is(selector)) nextEls.push(_next);
1009
+    } else nextEls.push(_next);
1010
+
1011
+    el = _next;
1012
+  }
1013
+
1014
+  return $(nextEls);
1015
+}
1016
+
1017
+function prev(selector) {
1018
+  if (this.length > 0) {
1019
+    var el = this[0];
1020
+
1021
+    if (selector) {
1022
+      if (el.previousElementSibling && $(el.previousElementSibling).is(selector)) {
1023
+        return $([el.previousElementSibling]);
1024
+      }
1025
+
1026
+      return $([]);
1027
+    }
1028
+
1029
+    if (el.previousElementSibling) return $([el.previousElementSibling]);
1030
+    return $([]);
1031
+  }
1032
+
1033
+  return $([]);
1034
+}
1035
+
1036
+function prevAll(selector) {
1037
+  var prevEls = [];
1038
+  var el = this[0];
1039
+  if (!el) return $([]);
1040
+
1041
+  while (el.previousElementSibling) {
1042
+    var _prev = el.previousElementSibling; // eslint-disable-line
1043
+
1044
+    if (selector) {
1045
+      if ($(_prev).is(selector)) prevEls.push(_prev);
1046
+    } else prevEls.push(_prev);
1047
+
1048
+    el = _prev;
1049
+  }
1050
+
1051
+  return $(prevEls);
1052
+}
1053
+
1054
+function parent(selector) {
1055
+  var parents = []; // eslint-disable-line
1056
+
1057
+  for (var i = 0; i < this.length; i += 1) {
1058
+    if (this[i].parentNode !== null) {
1059
+      if (selector) {
1060
+        if ($(this[i].parentNode).is(selector)) parents.push(this[i].parentNode);
1061
+      } else {
1062
+        parents.push(this[i].parentNode);
1063
+      }
1064
+    }
1065
+  }
1066
+
1067
+  return $(parents);
1068
+}
1069
+
1070
+function parents(selector) {
1071
+  var parents = []; // eslint-disable-line
1072
+
1073
+  for (var i = 0; i < this.length; i += 1) {
1074
+    var _parent = this[i].parentNode; // eslint-disable-line
1075
+
1076
+    while (_parent) {
1077
+      if (selector) {
1078
+        if ($(_parent).is(selector)) parents.push(_parent);
1079
+      } else {
1080
+        parents.push(_parent);
1081
+      }
1082
+
1083
+      _parent = _parent.parentNode;
1084
+    }
1085
+  }
1086
+
1087
+  return $(parents);
1088
+}
1089
+
1090
+function closest(selector) {
1091
+  var closest = this; // eslint-disable-line
1092
+
1093
+  if (typeof selector === 'undefined') {
1094
+    return $([]);
1095
+  }
1096
+
1097
+  if (!closest.is(selector)) {
1098
+    closest = closest.parents(selector).eq(0);
1099
+  }
1100
+
1101
+  return closest;
1102
+}
1103
+
1104
+function find(selector) {
1105
+  var foundElements = [];
1106
+
1107
+  for (var i = 0; i < this.length; i += 1) {
1108
+    var found = this[i].querySelectorAll(selector);
1109
+
1110
+    for (var j = 0; j < found.length; j += 1) {
1111
+      foundElements.push(found[j]);
1112
+    }
1113
+  }
1114
+
1115
+  return $(foundElements);
1116
+}
1117
+
1118
+function children(selector) {
1119
+  var children = []; // eslint-disable-line
1120
+
1121
+  for (var i = 0; i < this.length; i += 1) {
1122
+    var childNodes = this[i].children;
1123
+
1124
+    for (var j = 0; j < childNodes.length; j += 1) {
1125
+      if (!selector || $(childNodes[j]).is(selector)) {
1126
+        children.push(childNodes[j]);
1127
+      }
1128
+    }
1129
+  }
1130
+
1131
+  return $(children);
1132
+}
1133
+
1134
+function remove() {
1135
+  for (var i = 0; i < this.length; i += 1) {
1136
+    if (this[i].parentNode) this[i].parentNode.removeChild(this[i]);
1137
+  }
1138
+
1139
+  return this;
1140
+}
1141
+
1142
+var Methods = {
1143
+  addClass: addClass,
1144
+  removeClass: removeClass,
1145
+  hasClass: hasClass,
1146
+  toggleClass: toggleClass,
1147
+  attr: attr,
1148
+  removeAttr: removeAttr,
1149
+  transform: transform,
1150
+  transition: transition,
1151
+  on: on,
1152
+  off: off,
1153
+  trigger: trigger,
1154
+  transitionEnd: transitionEnd,
1155
+  outerWidth: outerWidth,
1156
+  outerHeight: outerHeight,
1157
+  styles: styles,
1158
+  offset: offset,
1159
+  css: css,
1160
+  each: each,
1161
+  html: html,
1162
+  text: text,
1163
+  is: is,
1164
+  index: index,
1165
+  eq: eq,
1166
+  append: append,
1167
+  prepend: prepend,
1168
+  next: next,
1169
+  nextAll: nextAll,
1170
+  prev: prev,
1171
+  prevAll: prevAll,
1172
+  parent: parent,
1173
+  parents: parents,
1174
+  closest: closest,
1175
+  find: find,
1176
+  children: children,
1177
+  filter: filter,
1178
+  remove: remove
1179
+};
1180
+Object.keys(Methods).forEach(function (methodName) {
1181
+  $.fn[methodName] = Methods[methodName];
1182
+});
1183
+
1184
+function deleteProps(obj) {
1185
+  var object = obj;
1186
+  Object.keys(object).forEach(function (key) {
1187
+    try {
1188
+      object[key] = null;
1189
+    } catch (e) {// no getter for object
1190
+    }
1191
+
1192
+    try {
1193
+      delete object[key];
1194
+    } catch (e) {// something got wrong
1195
+    }
1196
+  });
1197
+}
1198
+
1199
+function nextTick(callback, delay) {
1200
+  if (delay === void 0) {
1201
+    delay = 0;
1202
+  }
1203
+
1204
+  return setTimeout(callback, delay);
1205
+}
1206
+
1207
+function now() {
1208
+  return Date.now();
1209
+}
1210
+
1211
+function getTranslate(el, axis) {
1212
+  if (axis === void 0) {
1213
+    axis = 'x';
1214
+  }
1215
+
1216
+  var window = getWindow();
1217
+  var matrix;
1218
+  var curTransform;
1219
+  var transformMatrix;
1220
+  var curStyle = window.getComputedStyle(el, null);
1221
+
1222
+  if (window.WebKitCSSMatrix) {
1223
+    curTransform = curStyle.transform || curStyle.webkitTransform;
1224
+
1225
+    if (curTransform.split(',').length > 6) {
1226
+      curTransform = curTransform.split(', ').map(function (a) {
1227
+        return a.replace(',', '.');
1228
+      }).join(', ');
1229
+    } // Some old versions of Webkit choke when 'none' is passed; pass
1230
+    // empty string instead in this case
1231
+
1232
+
1233
+    transformMatrix = new window.WebKitCSSMatrix(curTransform === 'none' ? '' : curTransform);
1234
+  } else {
1235
+    transformMatrix = curStyle.MozTransform || curStyle.OTransform || curStyle.MsTransform || curStyle.msTransform || curStyle.transform || curStyle.getPropertyValue('transform').replace('translate(', 'matrix(1, 0, 0, 1,');
1236
+    matrix = transformMatrix.toString().split(',');
1237
+  }
1238
+
1239
+  if (axis === 'x') {
1240
+    // Latest Chrome and webkits Fix
1241
+    if (window.WebKitCSSMatrix) curTransform = transformMatrix.m41; // Crazy IE10 Matrix
1242
+    else if (matrix.length === 16) curTransform = parseFloat(matrix[12]); // Normal Browsers
1243
+      else curTransform = parseFloat(matrix[4]);
1244
+  }
1245
+
1246
+  if (axis === 'y') {
1247
+    // Latest Chrome and webkits Fix
1248
+    if (window.WebKitCSSMatrix) curTransform = transformMatrix.m42; // Crazy IE10 Matrix
1249
+    else if (matrix.length === 16) curTransform = parseFloat(matrix[13]); // Normal Browsers
1250
+      else curTransform = parseFloat(matrix[5]);
1251
+  }
1252
+
1253
+  return curTransform || 0;
1254
+}
1255
+
1256
+function isObject$1(o) {
1257
+  return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object;
1258
+}
1259
+
1260
+function extend$1() {
1261
+  var to = Object(arguments.length <= 0 ? undefined : arguments[0]);
1262
+
1263
+  for (var i = 1; i < arguments.length; i += 1) {
1264
+    var nextSource = i < 0 || arguments.length <= i ? undefined : arguments[i];
1265
+
1266
+    if (nextSource !== undefined && nextSource !== null) {
1267
+      var keysArray = Object.keys(Object(nextSource));
1268
+
1269
+      for (var nextIndex = 0, len = keysArray.length; nextIndex < len; nextIndex += 1) {
1270
+        var nextKey = keysArray[nextIndex];
1271
+        var desc = Object.getOwnPropertyDescriptor(nextSource, nextKey);
1272
+
1273
+        if (desc !== undefined && desc.enumerable) {
1274
+          if (isObject$1(to[nextKey]) && isObject$1(nextSource[nextKey])) {
1275
+            extend$1(to[nextKey], nextSource[nextKey]);
1276
+          } else if (!isObject$1(to[nextKey]) && isObject$1(nextSource[nextKey])) {
1277
+            to[nextKey] = {};
1278
+            extend$1(to[nextKey], nextSource[nextKey]);
1279
+          } else {
1280
+            to[nextKey] = nextSource[nextKey];
1281
+          }
1282
+        }
1283
+      }
1284
+    }
1285
+  }
1286
+
1287
+  return to;
1288
+}
1289
+
1290
+function bindModuleMethods(instance, obj) {
1291
+  Object.keys(obj).forEach(function (key) {
1292
+    if (isObject$1(obj[key])) {
1293
+      Object.keys(obj[key]).forEach(function (subKey) {
1294
+        if (typeof obj[key][subKey] === 'function') {
1295
+          obj[key][subKey] = obj[key][subKey].bind(instance);
1296
+        }
1297
+      });
1298
+    }
1299
+
1300
+    instance[key] = obj[key];
1301
+  });
1302
+}
1303
+
1304
+var support;
1305
+
1306
+function calcSupport() {
1307
+  var window = getWindow();
1308
+  var document = getDocument();
1309
+  return {
1310
+    touch: !!('ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch),
1311
+    pointerEvents: !!window.PointerEvent && 'maxTouchPoints' in window.navigator && window.navigator.maxTouchPoints >= 0,
1312
+    observer: function checkObserver() {
1313
+      return 'MutationObserver' in window || 'WebkitMutationObserver' in window;
1314
+    }(),
1315
+    passiveListener: function checkPassiveListener() {
1316
+      var supportsPassive = false;
1317
+
1318
+      try {
1319
+        var opts = Object.defineProperty({}, 'passive', {
1320
+          // eslint-disable-next-line
1321
+          get: function get() {
1322
+            supportsPassive = true;
1323
+          }
1324
+        });
1325
+        window.addEventListener('testPassiveListener', null, opts);
1326
+      } catch (e) {// No support
1327
+      }
1328
+
1329
+      return supportsPassive;
1330
+    }(),
1331
+    gestures: function checkGestures() {
1332
+      return 'ongesturestart' in window;
1333
+    }()
1334
+  };
1335
+}
1336
+
1337
+function getSupport() {
1338
+  if (!support) {
1339
+    support = calcSupport();
1340
+  }
1341
+
1342
+  return support;
1343
+}
1344
+
1345
+var device;
1346
+
1347
+function calcDevice(_temp) {
1348
+  var _ref = _temp === void 0 ? {} : _temp,
1349
+      userAgent = _ref.userAgent;
1350
+
1351
+  var support = getSupport();
1352
+  var window = getWindow();
1353
+  var platform = window.navigator.platform;
1354
+  var ua = userAgent || window.navigator.userAgent;
1355
+  var device = {
1356
+    ios: false,
1357
+    android: false
1358
+  };
1359
+  var screenWidth = window.screen.width;
1360
+  var screenHeight = window.screen.height;
1361
+  var android = ua.match(/(Android);?[\s\/]+([\d.]+)?/); // eslint-disable-line
1362
+
1363
+  var ipad = ua.match(/(iPad).*OS\s([\d_]+)/);
1364
+  var ipod = ua.match(/(iPod)(.*OS\s([\d_]+))?/);
1365
+  var iphone = !ipad && ua.match(/(iPhone\sOS|iOS)\s([\d_]+)/);
1366
+  var windows = platform === 'Win32';
1367
+  var macos = platform === 'MacIntel'; // iPadOs 13 fix
1368
+
1369
+  var iPadScreens = ['1024x1366', '1366x1024', '834x1194', '1194x834', '834x1112', '1112x834', '768x1024', '1024x768', '820x1180', '1180x820', '810x1080', '1080x810'];
1370
+
1371
+  if (!ipad && macos && support.touch && iPadScreens.indexOf(screenWidth + "x" + screenHeight) >= 0) {
1372
+    ipad = ua.match(/(Version)\/([\d.]+)/);
1373
+    if (!ipad) ipad = [0, 1, '13_0_0'];
1374
+    macos = false;
1375
+  } // Android
1376
+
1377
+
1378
+  if (android && !windows) {
1379
+    device.os = 'android';
1380
+    device.android = true;
1381
+  }
1382
+
1383
+  if (ipad || iphone || ipod) {
1384
+    device.os = 'ios';
1385
+    device.ios = true;
1386
+  } // Export object
1387
+
1388
+
1389
+  return device;
1390
+}
1391
+
1392
+function getDevice(overrides) {
1393
+  if (overrides === void 0) {
1394
+    overrides = {};
1395
+  }
1396
+
1397
+  if (!device) {
1398
+    device = calcDevice(overrides);
1399
+  }
1400
+
1401
+  return device;
1402
+}
1403
+
1404
+var browser;
1405
+
1406
+function calcBrowser() {
1407
+  var window = getWindow();
1408
+
1409
+  function isSafari() {
1410
+    var ua = window.navigator.userAgent.toLowerCase();
1411
+    return ua.indexOf('safari') >= 0 && ua.indexOf('chrome') < 0 && ua.indexOf('android') < 0;
1412
+  }
1413
+
1414
+  return {
1415
+    isEdge: !!window.navigator.userAgent.match(/Edge/g),
1416
+    isSafari: isSafari(),
1417
+    isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(window.navigator.userAgent)
1418
+  };
1419
+}
1420
+
1421
+function getBrowser() {
1422
+  if (!browser) {
1423
+    browser = calcBrowser();
1424
+  }
1425
+
1426
+  return browser;
1427
+}
1428
+
1429
+var Resize = {
1430
+  name: 'resize',
1431
+  create: function create() {
1432
+    var swiper = this;
1433
+    extend$1(swiper, {
1434
+      resize: {
1435
+        resizeHandler: function resizeHandler() {
1436
+          if (!swiper || swiper.destroyed || !swiper.initialized) return;
1437
+          swiper.emit('beforeResize');
1438
+          swiper.emit('resize');
1439
+        },
1440
+        orientationChangeHandler: function orientationChangeHandler() {
1441
+          if (!swiper || swiper.destroyed || !swiper.initialized) return;
1442
+          swiper.emit('orientationchange');
1443
+        }
1444
+      }
1445
+    });
1446
+  },
1447
+  on: {
1448
+    init: function init(swiper) {
1449
+      var window = getWindow(); // Emit resize
1450
+
1451
+      window.addEventListener('resize', swiper.resize.resizeHandler); // Emit orientationchange
1452
+
1453
+      window.addEventListener('orientationchange', swiper.resize.orientationChangeHandler);
1454
+    },
1455
+    destroy: function destroy(swiper) {
1456
+      var window = getWindow();
1457
+      window.removeEventListener('resize', swiper.resize.resizeHandler);
1458
+      window.removeEventListener('orientationchange', swiper.resize.orientationChangeHandler);
1459
+    }
1460
+  }
1461
+};
1462
+
1463
+var Observer = {
1464
+  attach: function attach(target, options) {
1465
+    if (options === void 0) {
1466
+      options = {};
1467
+    }
1468
+
1469
+    var window = getWindow();
1470
+    var swiper = this;
1471
+    var ObserverFunc = window.MutationObserver || window.WebkitMutationObserver;
1472
+    var observer = new ObserverFunc(function (mutations) {
1473
+      // The observerUpdate event should only be triggered
1474
+      // once despite the number of mutations.  Additional
1475
+      // triggers are redundant and are very costly
1476
+      if (mutations.length === 1) {
1477
+        swiper.emit('observerUpdate', mutations[0]);
1478
+        return;
1479
+      }
1480
+
1481
+      var observerUpdate = function observerUpdate() {
1482
+        swiper.emit('observerUpdate', mutations[0]);
1483
+      };
1484
+
1485
+      if (window.requestAnimationFrame) {
1486
+        window.requestAnimationFrame(observerUpdate);
1487
+      } else {
1488
+        window.setTimeout(observerUpdate, 0);
1489
+      }
1490
+    });
1491
+    observer.observe(target, {
1492
+      attributes: typeof options.attributes === 'undefined' ? true : options.attributes,
1493
+      childList: typeof options.childList === 'undefined' ? true : options.childList,
1494
+      characterData: typeof options.characterData === 'undefined' ? true : options.characterData
1495
+    });
1496
+    swiper.observer.observers.push(observer);
1497
+  },
1498
+  init: function init() {
1499
+    var swiper = this;
1500
+    if (!swiper.support.observer || !swiper.params.observer) return;
1501
+
1502
+    if (swiper.params.observeParents) {
1503
+      var containerParents = swiper.$el.parents();
1504
+
1505
+      for (var i = 0; i < containerParents.length; i += 1) {
1506
+        swiper.observer.attach(containerParents[i]);
1507
+      }
1508
+    } // Observe container
1509
+
1510
+
1511
+    swiper.observer.attach(swiper.$el[0], {
1512
+      childList: swiper.params.observeSlideChildren
1513
+    }); // Observe wrapper
1514
+
1515
+    swiper.observer.attach(swiper.$wrapperEl[0], {
1516
+      attributes: false
1517
+    });
1518
+  },
1519
+  destroy: function destroy() {
1520
+    var swiper = this;
1521
+    swiper.observer.observers.forEach(function (observer) {
1522
+      observer.disconnect();
1523
+    });
1524
+    swiper.observer.observers = [];
1525
+  }
1526
+};
1527
+var Observer$1 = {
1528
+  name: 'observer',
1529
+  params: {
1530
+    observer: false,
1531
+    observeParents: false,
1532
+    observeSlideChildren: false
1533
+  },
1534
+  create: function create() {
1535
+    var swiper = this;
1536
+    bindModuleMethods(swiper, {
1537
+      observer: _extends({}, Observer, {
1538
+        observers: []
1539
+      })
1540
+    });
1541
+  },
1542
+  on: {
1543
+    init: function init(swiper) {
1544
+      swiper.observer.init();
1545
+    },
1546
+    destroy: function destroy(swiper) {
1547
+      swiper.observer.destroy();
1548
+    }
1549
+  }
1550
+};
1551
+
1552
+var modular = {
1553
+  useParams: function useParams(instanceParams) {
1554
+    var instance = this;
1555
+    if (!instance.modules) return;
1556
+    Object.keys(instance.modules).forEach(function (moduleName) {
1557
+      var module = instance.modules[moduleName]; // Extend params
1558
+
1559
+      if (module.params) {
1560
+        extend$1(instanceParams, module.params);
1561
+      }
1562
+    });
1563
+  },
1564
+  useModules: function useModules(modulesParams) {
1565
+    if (modulesParams === void 0) {
1566
+      modulesParams = {};
1567
+    }
1568
+
1569
+    var instance = this;
1570
+    if (!instance.modules) return;
1571
+    Object.keys(instance.modules).forEach(function (moduleName) {
1572
+      var module = instance.modules[moduleName];
1573
+      var moduleParams = modulesParams[moduleName] || {}; // Add event listeners
1574
+
1575
+      if (module.on && instance.on) {
1576
+        Object.keys(module.on).forEach(function (moduleEventName) {
1577
+          instance.on(moduleEventName, module.on[moduleEventName]);
1578
+        });
1579
+      } // Module create callback
1580
+
1581
+
1582
+      if (module.create) {
1583
+        module.create.bind(instance)(moduleParams);
1584
+      }
1585
+    });
1586
+  }
1587
+};
1588
+
1589
+/* eslint-disable no-underscore-dangle */
1590
+var eventsEmitter = {
1591
+  on: function on(events, handler, priority) {
1592
+    var self = this;
1593
+    if (typeof handler !== 'function') return self;
1594
+    var method = priority ? 'unshift' : 'push';
1595
+    events.split(' ').forEach(function (event) {
1596
+      if (!self.eventsListeners[event]) self.eventsListeners[event] = [];
1597
+      self.eventsListeners[event][method](handler);
1598
+    });
1599
+    return self;
1600
+  },
1601
+  once: function once(events, handler, priority) {
1602
+    var self = this;
1603
+    if (typeof handler !== 'function') return self;
1604
+
1605
+    function onceHandler() {
1606
+      self.off(events, onceHandler);
1607
+
1608
+      if (onceHandler.__emitterProxy) {
1609
+        delete onceHandler.__emitterProxy;
1610
+      }
1611
+
1612
+      for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1613
+        args[_key] = arguments[_key];
1614
+      }
1615
+
1616
+      handler.apply(self, args);
1617
+    }
1618
+
1619
+    onceHandler.__emitterProxy = handler;
1620
+    return self.on(events, onceHandler, priority);
1621
+  },
1622
+  onAny: function onAny(handler, priority) {
1623
+    var self = this;
1624
+    if (typeof handler !== 'function') return self;
1625
+    var method = priority ? 'unshift' : 'push';
1626
+
1627
+    if (self.eventsAnyListeners.indexOf(handler) < 0) {
1628
+      self.eventsAnyListeners[method](handler);
1629
+    }
1630
+
1631
+    return self;
1632
+  },
1633
+  offAny: function offAny(handler) {
1634
+    var self = this;
1635
+    if (!self.eventsAnyListeners) return self;
1636
+    var index = self.eventsAnyListeners.indexOf(handler);
1637
+
1638
+    if (index >= 0) {
1639
+      self.eventsAnyListeners.splice(index, 1);
1640
+    }
1641
+
1642
+    return self;
1643
+  },
1644
+  off: function off(events, handler) {
1645
+    var self = this;
1646
+    if (!self.eventsListeners) return self;
1647
+    events.split(' ').forEach(function (event) {
1648
+      if (typeof handler === 'undefined') {
1649
+        self.eventsListeners[event] = [];
1650
+      } else if (self.eventsListeners[event]) {
1651
+        self.eventsListeners[event].forEach(function (eventHandler, index) {
1652
+          if (eventHandler === handler || eventHandler.__emitterProxy && eventHandler.__emitterProxy === handler) {
1653
+            self.eventsListeners[event].splice(index, 1);
1654
+          }
1655
+        });
1656
+      }
1657
+    });
1658
+    return self;
1659
+  },
1660
+  emit: function emit() {
1661
+    var self = this;
1662
+    if (!self.eventsListeners) return self;
1663
+    var events;
1664
+    var data;
1665
+    var context;
1666
+
1667
+    for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1668
+      args[_key2] = arguments[_key2];
1669
+    }
1670
+
1671
+    if (typeof args[0] === 'string' || Array.isArray(args[0])) {
1672
+      events = args[0];
1673
+      data = args.slice(1, args.length);
1674
+      context = self;
1675
+    } else {
1676
+      events = args[0].events;
1677
+      data = args[0].data;
1678
+      context = args[0].context || self;
1679
+    }
1680
+
1681
+    data.unshift(context);
1682
+    var eventsArray = Array.isArray(events) ? events : events.split(' ');
1683
+    eventsArray.forEach(function (event) {
1684
+      if (self.eventsAnyListeners && self.eventsAnyListeners.length) {
1685
+        self.eventsAnyListeners.forEach(function (eventHandler) {
1686
+          eventHandler.apply(context, [event].concat(data));
1687
+        });
1688
+      }
1689
+
1690
+      if (self.eventsListeners && self.eventsListeners[event]) {
1691
+        self.eventsListeners[event].forEach(function (eventHandler) {
1692
+          eventHandler.apply(context, data);
1693
+        });
1694
+      }
1695
+    });
1696
+    return self;
1697
+  }
1698
+};
1699
+
1700
+function updateSize() {
1701
+  var swiper = this;
1702
+  var width;
1703
+  var height;
1704
+  var $el = swiper.$el;
1705
+
1706
+  if (typeof swiper.params.width !== 'undefined' && swiper.params.width !== null) {
1707
+    width = swiper.params.width;
1708
+  } else {
1709
+    width = $el[0].clientWidth;
1710
+  }
1711
+
1712
+  if (typeof swiper.params.height !== 'undefined' && swiper.params.height !== null) {
1713
+    height = swiper.params.height;
1714
+  } else {
1715
+    height = $el[0].clientHeight;
1716
+  }
1717
+
1718
+  if (width === 0 && swiper.isHorizontal() || height === 0 && swiper.isVertical()) {
1719
+    return;
1720
+  } // Subtract paddings
1721
+
1722
+
1723
+  width = width - parseInt($el.css('padding-left') || 0, 10) - parseInt($el.css('padding-right') || 0, 10);
1724
+  height = height - parseInt($el.css('padding-top') || 0, 10) - parseInt($el.css('padding-bottom') || 0, 10);
1725
+  if (Number.isNaN(width)) width = 0;
1726
+  if (Number.isNaN(height)) height = 0;
1727
+  extend$1(swiper, {
1728
+    width: width,
1729
+    height: height,
1730
+    size: swiper.isHorizontal() ? width : height
1731
+  });
1732
+}
1733
+
1734
+function updateSlides() {
1735
+  var swiper = this;
1736
+  var window = getWindow();
1737
+  var params = swiper.params;
1738
+  var $wrapperEl = swiper.$wrapperEl,
1739
+      swiperSize = swiper.size,
1740
+      rtl = swiper.rtlTranslate,
1741
+      wrongRTL = swiper.wrongRTL;
1742
+  var isVirtual = swiper.virtual && params.virtual.enabled;
1743
+  var previousSlidesLength = isVirtual ? swiper.virtual.slides.length : swiper.slides.length;
1744
+  var slides = $wrapperEl.children("." + swiper.params.slideClass);
1745
+  var slidesLength = isVirtual ? swiper.virtual.slides.length : slides.length;
1746
+  var snapGrid = [];
1747
+  var slidesGrid = [];
1748
+  var slidesSizesGrid = [];
1749
+
1750
+  function slidesForMargin(slideEl, slideIndex) {
1751
+    if (!params.cssMode) return true;
1752
+
1753
+    if (slideIndex === slides.length - 1) {
1754
+      return false;
1755
+    }
1756
+
1757
+    return true;
1758
+  }
1759
+
1760
+  var offsetBefore = params.slidesOffsetBefore;
1761
+
1762
+  if (typeof offsetBefore === 'function') {
1763
+    offsetBefore = params.slidesOffsetBefore.call(swiper);
1764
+  }
1765
+
1766
+  var offsetAfter = params.slidesOffsetAfter;
1767
+
1768
+  if (typeof offsetAfter === 'function') {
1769
+    offsetAfter = params.slidesOffsetAfter.call(swiper);
1770
+  }
1771
+
1772
+  var previousSnapGridLength = swiper.snapGrid.length;
1773
+  var previousSlidesGridLength = swiper.slidesGrid.length;
1774
+  var spaceBetween = params.spaceBetween;
1775
+  var slidePosition = -offsetBefore;
1776
+  var prevSlideSize = 0;
1777
+  var index = 0;
1778
+
1779
+  if (typeof swiperSize === 'undefined') {
1780
+    return;
1781
+  }
1782
+
1783
+  if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {
1784
+    spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiperSize;
1785
+  }
1786
+
1787
+  swiper.virtualSize = -spaceBetween; // reset margins
1788
+
1789
+  if (rtl) slides.css({
1790
+    marginLeft: '',
1791
+    marginTop: ''
1792
+  });else slides.css({
1793
+    marginRight: '',
1794
+    marginBottom: ''
1795
+  });
1796
+  var slidesNumberEvenToRows;
1797
+
1798
+  if (params.slidesPerColumn > 1) {
1799
+    if (Math.floor(slidesLength / params.slidesPerColumn) === slidesLength / swiper.params.slidesPerColumn) {
1800
+      slidesNumberEvenToRows = slidesLength;
1801
+    } else {
1802
+      slidesNumberEvenToRows = Math.ceil(slidesLength / params.slidesPerColumn) * params.slidesPerColumn;
1803
+    }
1804
+
1805
+    if (params.slidesPerView !== 'auto' && params.slidesPerColumnFill === 'row') {
1806
+      slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, params.slidesPerView * params.slidesPerColumn);
1807
+    }
1808
+  } // Calc slides
1809
+
1810
+
1811
+  var slideSize;
1812
+  var slidesPerColumn = params.slidesPerColumn;
1813
+  var slidesPerRow = slidesNumberEvenToRows / slidesPerColumn;
1814
+  var numFullColumns = Math.floor(slidesLength / params.slidesPerColumn);
1815
+
1816
+  for (var i = 0; i < slidesLength; i += 1) {
1817
+    slideSize = 0;
1818
+    var slide = slides.eq(i);
1819
+
1820
+    if (params.slidesPerColumn > 1) {
1821
+      // Set slides order
1822
+      var newSlideOrderIndex = void 0;
1823
+      var column = void 0;
1824
+      var row = void 0;
1825
+
1826
+      if (params.slidesPerColumnFill === 'row' && params.slidesPerGroup > 1) {
1827
+        var groupIndex = Math.floor(i / (params.slidesPerGroup * params.slidesPerColumn));
1828
+        var slideIndexInGroup = i - params.slidesPerColumn * params.slidesPerGroup * groupIndex;
1829
+        var columnsInGroup = groupIndex === 0 ? params.slidesPerGroup : Math.min(Math.ceil((slidesLength - groupIndex * slidesPerColumn * params.slidesPerGroup) / slidesPerColumn), params.slidesPerGroup);
1830
+        row = Math.floor(slideIndexInGroup / columnsInGroup);
1831
+        column = slideIndexInGroup - row * columnsInGroup + groupIndex * params.slidesPerGroup;
1832
+        newSlideOrderIndex = column + row * slidesNumberEvenToRows / slidesPerColumn;
1833
+        slide.css({
1834
+          '-webkit-box-ordinal-group': newSlideOrderIndex,
1835
+          '-moz-box-ordinal-group': newSlideOrderIndex,
1836
+          '-ms-flex-order': newSlideOrderIndex,
1837
+          '-webkit-order': newSlideOrderIndex,
1838
+          order: newSlideOrderIndex
1839
+        });
1840
+      } else if (params.slidesPerColumnFill === 'column') {
1841
+        column = Math.floor(i / slidesPerColumn);
1842
+        row = i - column * slidesPerColumn;
1843
+
1844
+        if (column > numFullColumns || column === numFullColumns && row === slidesPerColumn - 1) {
1845
+          row += 1;
1846
+
1847
+          if (row >= slidesPerColumn) {
1848
+            row = 0;
1849
+            column += 1;
1850
+          }
1851
+        }
1852
+      } else {
1853
+        row = Math.floor(i / slidesPerRow);
1854
+        column = i - row * slidesPerRow;
1855
+      }
1856
+
1857
+      slide.css("margin-" + (swiper.isHorizontal() ? 'top' : 'left'), row !== 0 && params.spaceBetween && params.spaceBetween + "px");
1858
+    }
1859
+
1860
+    if (slide.css('display') === 'none') continue; // eslint-disable-line
1861
+
1862
+    if (params.slidesPerView === 'auto') {
1863
+      var slideStyles = window.getComputedStyle(slide[0], null);
1864
+      var currentTransform = slide[0].style.transform;
1865
+      var currentWebKitTransform = slide[0].style.webkitTransform;
1866
+
1867
+      if (currentTransform) {
1868
+        slide[0].style.transform = 'none';
1869
+      }
1870
+
1871
+      if (currentWebKitTransform) {
1872
+        slide[0].style.webkitTransform = 'none';
1873
+      }
1874
+
1875
+      if (params.roundLengths) {
1876
+        slideSize = swiper.isHorizontal() ? slide.outerWidth(true) : slide.outerHeight(true);
1877
+      } else {
1878
+        // eslint-disable-next-line
1879
+        if (swiper.isHorizontal()) {
1880
+          var width = parseFloat(slideStyles.getPropertyValue('width') || 0);
1881
+          var paddingLeft = parseFloat(slideStyles.getPropertyValue('padding-left') || 0);
1882
+          var paddingRight = parseFloat(slideStyles.getPropertyValue('padding-right') || 0);
1883
+          var marginLeft = parseFloat(slideStyles.getPropertyValue('margin-left') || 0);
1884
+          var marginRight = parseFloat(slideStyles.getPropertyValue('margin-right') || 0);
1885
+          var boxSizing = slideStyles.getPropertyValue('box-sizing');
1886
+
1887
+          if (boxSizing && boxSizing === 'border-box') {
1888
+            slideSize = width + marginLeft + marginRight;
1889
+          } else {
1890
+            var _slide$ = slide[0],
1891
+                clientWidth = _slide$.clientWidth,
1892
+                offsetWidth = _slide$.offsetWidth;
1893
+            slideSize = width + paddingLeft + paddingRight + marginLeft + marginRight + (offsetWidth - clientWidth);
1894
+          }
1895
+        } else {
1896
+          var height = parseFloat(slideStyles.getPropertyValue('height') || 0);
1897
+          var paddingTop = parseFloat(slideStyles.getPropertyValue('padding-top') || 0);
1898
+          var paddingBottom = parseFloat(slideStyles.getPropertyValue('padding-bottom') || 0);
1899
+          var marginTop = parseFloat(slideStyles.getPropertyValue('margin-top') || 0);
1900
+          var marginBottom = parseFloat(slideStyles.getPropertyValue('margin-bottom') || 0);
1901
+
1902
+          var _boxSizing = slideStyles.getPropertyValue('box-sizing');
1903
+
1904
+          if (_boxSizing && _boxSizing === 'border-box') {
1905
+            slideSize = height + marginTop + marginBottom;
1906
+          } else {
1907
+            var _slide$2 = slide[0],
1908
+                clientHeight = _slide$2.clientHeight,
1909
+                offsetHeight = _slide$2.offsetHeight;
1910
+            slideSize = height + paddingTop + paddingBottom + marginTop + marginBottom + (offsetHeight - clientHeight);
1911
+          }
1912
+        }
1913
+      }
1914
+
1915
+      if (currentTransform) {
1916
+        slide[0].style.transform = currentTransform;
1917
+      }
1918
+
1919
+      if (currentWebKitTransform) {
1920
+        slide[0].style.webkitTransform = currentWebKitTransform;
1921
+      }
1922
+
1923
+      if (params.roundLengths) slideSize = Math.floor(slideSize);
1924
+    } else {
1925
+      slideSize = (swiperSize - (params.slidesPerView - 1) * spaceBetween) / params.slidesPerView;
1926
+      if (params.roundLengths) slideSize = Math.floor(slideSize);
1927
+
1928
+      if (slides[i]) {
1929
+        if (swiper.isHorizontal()) {
1930
+          slides[i].style.width = slideSize + "px";
1931
+        } else {
1932
+          slides[i].style.height = slideSize + "px";
1933
+        }
1934
+      }
1935
+    }
1936
+
1937
+    if (slides[i]) {
1938
+      slides[i].swiperSlideSize = slideSize;
1939
+    }
1940
+
1941
+    slidesSizesGrid.push(slideSize);
1942
+
1943
+    if (params.centeredSlides) {
1944
+      slidePosition = slidePosition + slideSize / 2 + prevSlideSize / 2 + spaceBetween;
1945
+      if (prevSlideSize === 0 && i !== 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;
1946
+      if (i === 0) slidePosition = slidePosition - swiperSize / 2 - spaceBetween;
1947
+      if (Math.abs(slidePosition) < 1 / 1000) slidePosition = 0;
1948
+      if (params.roundLengths) slidePosition = Math.floor(slidePosition);
1949
+      if (index % params.slidesPerGroup === 0) snapGrid.push(slidePosition);
1950
+      slidesGrid.push(slidePosition);
1951
+    } else {
1952
+      if (params.roundLengths) slidePosition = Math.floor(slidePosition);
1953
+      if ((index - Math.min(swiper.params.slidesPerGroupSkip, index)) % swiper.params.slidesPerGroup === 0) snapGrid.push(slidePosition);
1954
+      slidesGrid.push(slidePosition);
1955
+      slidePosition = slidePosition + slideSize + spaceBetween;
1956
+    }
1957
+
1958
+    swiper.virtualSize += slideSize + spaceBetween;
1959
+    prevSlideSize = slideSize;
1960
+    index += 1;
1961
+  }
1962
+
1963
+  swiper.virtualSize = Math.max(swiper.virtualSize, swiperSize) + offsetAfter;
1964
+  var newSlidesGrid;
1965
+
1966
+  if (rtl && wrongRTL && (params.effect === 'slide' || params.effect === 'coverflow')) {
1967
+    $wrapperEl.css({
1968
+      width: swiper.virtualSize + params.spaceBetween + "px"
1969
+    });
1970
+  }
1971
+
1972
+  if (params.setWrapperSize) {
1973
+    if (swiper.isHorizontal()) $wrapperEl.css({
1974
+      width: swiper.virtualSize + params.spaceBetween + "px"
1975
+    });else $wrapperEl.css({
1976
+      height: swiper.virtualSize + params.spaceBetween + "px"
1977
+    });
1978
+  }
1979
+
1980
+  if (params.slidesPerColumn > 1) {
1981
+    swiper.virtualSize = (slideSize + params.spaceBetween) * slidesNumberEvenToRows;
1982
+    swiper.virtualSize = Math.ceil(swiper.virtualSize / params.slidesPerColumn) - params.spaceBetween;
1983
+    if (swiper.isHorizontal()) $wrapperEl.css({
1984
+      width: swiper.virtualSize + params.spaceBetween + "px"
1985
+    });else $wrapperEl.css({
1986
+      height: swiper.virtualSize + params.spaceBetween + "px"
1987
+    });
1988
+
1989
+    if (params.centeredSlides) {
1990
+      newSlidesGrid = [];
1991
+
1992
+      for (var _i = 0; _i < snapGrid.length; _i += 1) {
1993
+        var slidesGridItem = snapGrid[_i];
1994
+        if (params.roundLengths) slidesGridItem = Math.floor(slidesGridItem);
1995
+        if (snapGrid[_i] < swiper.virtualSize + snapGrid[0]) newSlidesGrid.push(slidesGridItem);
1996
+      }
1997
+
1998
+      snapGrid = newSlidesGrid;
1999
+    }
2000
+  } // Remove last grid elements depending on width
2001
+
2002
+
2003
+  if (!params.centeredSlides) {
2004
+    newSlidesGrid = [];
2005
+
2006
+    for (var _i2 = 0; _i2 < snapGrid.length; _i2 += 1) {
2007
+      var _slidesGridItem = snapGrid[_i2];
2008
+      if (params.roundLengths) _slidesGridItem = Math.floor(_slidesGridItem);
2009
+
2010
+      if (snapGrid[_i2] <= swiper.virtualSize - swiperSize) {
2011
+        newSlidesGrid.push(_slidesGridItem);
2012
+      }
2013
+    }
2014
+
2015
+    snapGrid = newSlidesGrid;
2016
+
2017
+    if (Math.floor(swiper.virtualSize - swiperSize) - Math.floor(snapGrid[snapGrid.length - 1]) > 1) {
2018
+      snapGrid.push(swiper.virtualSize - swiperSize);
2019
+    }
2020
+  }
2021
+
2022
+  if (snapGrid.length === 0) snapGrid = [0];
2023
+
2024
+  if (params.spaceBetween !== 0) {
2025
+    if (swiper.isHorizontal()) {
2026
+      if (rtl) slides.filter(slidesForMargin).css({
2027
+        marginLeft: spaceBetween + "px"
2028
+      });else slides.filter(slidesForMargin).css({
2029
+        marginRight: spaceBetween + "px"
2030
+      });
2031
+    } else slides.filter(slidesForMargin).css({
2032
+      marginBottom: spaceBetween + "px"
2033
+    });
2034
+  }
2035
+
2036
+  if (params.centeredSlides && params.centeredSlidesBounds) {
2037
+    var allSlidesSize = 0;
2038
+    slidesSizesGrid.forEach(function (slideSizeValue) {
2039
+      allSlidesSize += slideSizeValue + (params.spaceBetween ? params.spaceBetween : 0);
2040
+    });
2041
+    allSlidesSize -= params.spaceBetween;
2042
+    var maxSnap = allSlidesSize - swiperSize;
2043
+    snapGrid = snapGrid.map(function (snap) {
2044
+      if (snap < 0) return -offsetBefore;
2045
+      if (snap > maxSnap) return maxSnap + offsetAfter;
2046
+      return snap;
2047
+    });
2048
+  }
2049
+
2050
+  if (params.centerInsufficientSlides) {
2051
+    var _allSlidesSize = 0;
2052
+    slidesSizesGrid.forEach(function (slideSizeValue) {
2053
+      _allSlidesSize += slideSizeValue + (params.spaceBetween ? params.spaceBetween : 0);
2054
+    });
2055
+    _allSlidesSize -= params.spaceBetween;
2056
+
2057
+    if (_allSlidesSize < swiperSize) {
2058
+      var allSlidesOffset = (swiperSize - _allSlidesSize) / 2;
2059
+      snapGrid.forEach(function (snap, snapIndex) {
2060
+        snapGrid[snapIndex] = snap - allSlidesOffset;
2061
+      });
2062
+      slidesGrid.forEach(function (snap, snapIndex) {
2063
+        slidesGrid[snapIndex] = snap + allSlidesOffset;
2064
+      });
2065
+    }
2066
+  }
2067
+
2068
+  extend$1(swiper, {
2069
+    slides: slides,
2070
+    snapGrid: snapGrid,
2071
+    slidesGrid: slidesGrid,
2072
+    slidesSizesGrid: slidesSizesGrid
2073
+  });
2074
+
2075
+  if (slidesLength !== previousSlidesLength) {
2076
+    swiper.emit('slidesLengthChange');
2077
+  }
2078
+
2079
+  if (snapGrid.length !== previousSnapGridLength) {
2080
+    if (swiper.params.watchOverflow) swiper.checkOverflow();
2081
+    swiper.emit('snapGridLengthChange');
2082
+  }
2083
+
2084
+  if (slidesGrid.length !== previousSlidesGridLength) {
2085
+    swiper.emit('slidesGridLengthChange');
2086
+  }
2087
+
2088
+  if (params.watchSlidesProgress || params.watchSlidesVisibility) {
2089
+    swiper.updateSlidesOffset();
2090
+  }
2091
+}
2092
+
2093
+function updateAutoHeight(speed) {
2094
+  var swiper = this;
2095
+  var activeSlides = [];
2096
+  var newHeight = 0;
2097
+  var i;
2098
+
2099
+  if (typeof speed === 'number') {
2100
+    swiper.setTransition(speed);
2101
+  } else if (speed === true) {
2102
+    swiper.setTransition(swiper.params.speed);
2103
+  } // Find slides currently in view
2104
+
2105
+
2106
+  if (swiper.params.slidesPerView !== 'auto' && swiper.params.slidesPerView > 1) {
2107
+    if (swiper.params.centeredSlides) {
2108
+      swiper.visibleSlides.each(function (slide) {
2109
+        activeSlides.push(slide);
2110
+      });
2111
+    } else {
2112
+      for (i = 0; i < Math.ceil(swiper.params.slidesPerView); i += 1) {
2113
+        var index = swiper.activeIndex + i;
2114
+        if (index > swiper.slides.length) break;
2115
+        activeSlides.push(swiper.slides.eq(index)[0]);
2116
+      }
2117
+    }
2118
+  } else {
2119
+    activeSlides.push(swiper.slides.eq(swiper.activeIndex)[0]);
2120
+  } // Find new height from highest slide in view
2121
+
2122
+
2123
+  for (i = 0; i < activeSlides.length; i += 1) {
2124
+    if (typeof activeSlides[i] !== 'undefined') {
2125
+      var height = activeSlides[i].offsetHeight;
2126
+      newHeight = height > newHeight ? height : newHeight;
2127
+    }
2128
+  } // Update Height
2129
+
2130
+
2131
+  if (newHeight) swiper.$wrapperEl.css('height', newHeight + "px");
2132
+}
2133
+
2134
+function updateSlidesOffset() {
2135
+  var swiper = this;
2136
+  var slides = swiper.slides;
2137
+
2138
+  for (var i = 0; i < slides.length; i += 1) {
2139
+    slides[i].swiperSlideOffset = swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop;
2140
+  }
2141
+}
2142
+
2143
+function updateSlidesProgress(translate) {
2144
+  if (translate === void 0) {
2145
+    translate = this && this.translate || 0;
2146
+  }
2147
+
2148
+  var swiper = this;
2149
+  var params = swiper.params;
2150
+  var slides = swiper.slides,
2151
+      rtl = swiper.rtlTranslate;
2152
+  if (slides.length === 0) return;
2153
+  if (typeof slides[0].swiperSlideOffset === 'undefined') swiper.updateSlidesOffset();
2154
+  var offsetCenter = -translate;
2155
+  if (rtl) offsetCenter = translate; // Visible Slides
2156
+
2157
+  slides.removeClass(params.slideVisibleClass);
2158
+  swiper.visibleSlidesIndexes = [];
2159
+  swiper.visibleSlides = [];
2160
+
2161
+  for (var i = 0; i < slides.length; i += 1) {
2162
+    var slide = slides[i];
2163
+    var slideProgress = (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0) - slide.swiperSlideOffset) / (slide.swiperSlideSize + params.spaceBetween);
2164
+
2165
+    if (params.watchSlidesVisibility || params.centeredSlides && params.autoHeight) {
2166
+      var slideBefore = -(offsetCenter - slide.swiperSlideOffset);
2167
+      var slideAfter = slideBefore + swiper.slidesSizesGrid[i];
2168
+      var isVisible = slideBefore >= 0 && slideBefore < swiper.size - 1 || slideAfter > 1 && slideAfter <= swiper.size || slideBefore <= 0 && slideAfter >= swiper.size;
2169
+
2170
+      if (isVisible) {
2171
+        swiper.visibleSlides.push(slide);
2172
+        swiper.visibleSlidesIndexes.push(i);
2173
+        slides.eq(i).addClass(params.slideVisibleClass);
2174
+      }
2175
+    }
2176
+
2177
+    slide.progress = rtl ? -slideProgress : slideProgress;
2178
+  }
2179
+
2180
+  swiper.visibleSlides = $(swiper.visibleSlides);
2181
+}
2182
+
2183
+function updateProgress(translate) {
2184
+  var swiper = this;
2185
+
2186
+  if (typeof translate === 'undefined') {
2187
+    var multiplier = swiper.rtlTranslate ? -1 : 1; // eslint-disable-next-line
2188
+
2189
+    translate = swiper && swiper.translate && swiper.translate * multiplier || 0;
2190
+  }
2191
+
2192
+  var params = swiper.params;
2193
+  var translatesDiff = swiper.maxTranslate() - swiper.minTranslate();
2194
+  var progress = swiper.progress,
2195
+      isBeginning = swiper.isBeginning,
2196
+      isEnd = swiper.isEnd;
2197
+  var wasBeginning = isBeginning;
2198
+  var wasEnd = isEnd;
2199
+
2200
+  if (translatesDiff === 0) {
2201
+    progress = 0;
2202
+    isBeginning = true;
2203
+    isEnd = true;
2204
+  } else {
2205
+    progress = (translate - swiper.minTranslate()) / translatesDiff;
2206
+    isBeginning = progress <= 0;
2207
+    isEnd = progress >= 1;
2208
+  }
2209
+
2210
+  extend$1(swiper, {
2211
+    progress: progress,
2212
+    isBeginning: isBeginning,
2213
+    isEnd: isEnd
2214
+  });
2215
+  if (params.watchSlidesProgress || params.watchSlidesVisibility || params.centeredSlides && params.autoHeight) swiper.updateSlidesProgress(translate);
2216
+
2217
+  if (isBeginning && !wasBeginning) {
2218
+    swiper.emit('reachBeginning toEdge');
2219
+  }
2220
+
2221
+  if (isEnd && !wasEnd) {
2222
+    swiper.emit('reachEnd toEdge');
2223
+  }
2224
+
2225
+  if (wasBeginning && !isBeginning || wasEnd && !isEnd) {
2226
+    swiper.emit('fromEdge');
2227
+  }
2228
+
2229
+  swiper.emit('progress', progress);
2230
+}
2231
+
2232
+function updateSlidesClasses() {
2233
+  var swiper = this;
2234
+  var slides = swiper.slides,
2235
+      params = swiper.params,
2236
+      $wrapperEl = swiper.$wrapperEl,
2237
+      activeIndex = swiper.activeIndex,
2238
+      realIndex = swiper.realIndex;
2239
+  var isVirtual = swiper.virtual && params.virtual.enabled;
2240
+  slides.removeClass(params.slideActiveClass + " " + params.slideNextClass + " " + params.slidePrevClass + " " + params.slideDuplicateActiveClass + " " + params.slideDuplicateNextClass + " " + params.slideDuplicatePrevClass);
2241
+  var activeSlide;
2242
+
2243
+  if (isVirtual) {
2244
+    activeSlide = swiper.$wrapperEl.find("." + params.slideClass + "[data-swiper-slide-index=\"" + activeIndex + "\"]");
2245
+  } else {
2246
+    activeSlide = slides.eq(activeIndex);
2247
+  } // Active classes
2248
+
2249
+
2250
+  activeSlide.addClass(params.slideActiveClass);
2251
+
2252
+  if (params.loop) {
2253
+    // Duplicate to all looped slides
2254
+    if (activeSlide.hasClass(params.slideDuplicateClass)) {
2255
+      $wrapperEl.children("." + params.slideClass + ":not(." + params.slideDuplicateClass + ")[data-swiper-slide-index=\"" + realIndex + "\"]").addClass(params.slideDuplicateActiveClass);
2256
+    } else {
2257
+      $wrapperEl.children("." + params.slideClass + "." + params.slideDuplicateClass + "[data-swiper-slide-index=\"" + realIndex + "\"]").addClass(params.slideDuplicateActiveClass);
2258
+    }
2259
+  } // Next Slide
2260
+
2261
+
2262
+  var nextSlide = activeSlide.nextAll("." + params.slideClass).eq(0).addClass(params.slideNextClass);
2263
+
2264
+  if (params.loop && nextSlide.length === 0) {
2265
+    nextSlide = slides.eq(0);
2266
+    nextSlide.addClass(params.slideNextClass);
2267
+  } // Prev Slide
2268
+
2269
+
2270
+  var prevSlide = activeSlide.prevAll("." + params.slideClass).eq(0).addClass(params.slidePrevClass);
2271
+
2272
+  if (params.loop && prevSlide.length === 0) {
2273
+    prevSlide = slides.eq(-1);
2274
+    prevSlide.addClass(params.slidePrevClass);
2275
+  }
2276
+
2277
+  if (params.loop) {
2278
+    // Duplicate to all looped slides
2279
+    if (nextSlide.hasClass(params.slideDuplicateClass)) {
2280
+      $wrapperEl.children("." + params.slideClass + ":not(." + params.slideDuplicateClass + ")[data-swiper-slide-index=\"" + nextSlide.attr('data-swiper-slide-index') + "\"]").addClass(params.slideDuplicateNextClass);
2281
+    } else {
2282
+      $wrapperEl.children("." + params.slideClass + "." + params.slideDuplicateClass + "[data-swiper-slide-index=\"" + nextSlide.attr('data-swiper-slide-index') + "\"]").addClass(params.slideDuplicateNextClass);
2283
+    }
2284
+
2285
+    if (prevSlide.hasClass(params.slideDuplicateClass)) {
2286
+      $wrapperEl.children("." + params.slideClass + ":not(." + params.slideDuplicateClass + ")[data-swiper-slide-index=\"" + prevSlide.attr('data-swiper-slide-index') + "\"]").addClass(params.slideDuplicatePrevClass);
2287
+    } else {
2288
+      $wrapperEl.children("." + params.slideClass + "." + params.slideDuplicateClass + "[data-swiper-slide-index=\"" + prevSlide.attr('data-swiper-slide-index') + "\"]").addClass(params.slideDuplicatePrevClass);
2289
+    }
2290
+  }
2291
+
2292
+  swiper.emitSlidesClasses();
2293
+}
2294
+
2295
+function updateActiveIndex(newActiveIndex) {
2296
+  var swiper = this;
2297
+  var translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;
2298
+  var slidesGrid = swiper.slidesGrid,
2299
+      snapGrid = swiper.snapGrid,
2300
+      params = swiper.params,
2301
+      previousIndex = swiper.activeIndex,
2302
+      previousRealIndex = swiper.realIndex,
2303
+      previousSnapIndex = swiper.snapIndex;
2304
+  var activeIndex = newActiveIndex;
2305
+  var snapIndex;
2306
+
2307
+  if (typeof activeIndex === 'undefined') {
2308
+    for (var i = 0; i < slidesGrid.length; i += 1) {
2309
+      if (typeof slidesGrid[i + 1] !== 'undefined') {
2310
+        if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1] - (slidesGrid[i + 1] - slidesGrid[i]) / 2) {
2311
+          activeIndex = i;
2312
+        } else if (translate >= slidesGrid[i] && translate < slidesGrid[i + 1]) {
2313
+          activeIndex = i + 1;
2314
+        }
2315
+      } else if (translate >= slidesGrid[i]) {
2316
+        activeIndex = i;
2317
+      }
2318
+    } // Normalize slideIndex
2319
+
2320
+
2321
+    if (params.normalizeSlideIndex) {
2322
+      if (activeIndex < 0 || typeof activeIndex === 'undefined') activeIndex = 0;
2323
+    }
2324
+  }
2325
+
2326
+  if (snapGrid.indexOf(translate) >= 0) {
2327
+    snapIndex = snapGrid.indexOf(translate);
2328
+  } else {
2329
+    var skip = Math.min(params.slidesPerGroupSkip, activeIndex);
2330
+    snapIndex = skip + Math.floor((activeIndex - skip) / params.slidesPerGroup);
2331
+  }
2332
+
2333
+  if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;
2334
+
2335
+  if (activeIndex === previousIndex) {
2336
+    if (snapIndex !== previousSnapIndex) {
2337
+      swiper.snapIndex = snapIndex;
2338
+      swiper.emit('snapIndexChange');
2339
+    }
2340
+
2341
+    return;
2342
+  } // Get real index
2343
+
2344
+
2345
+  var realIndex = parseInt(swiper.slides.eq(activeIndex).attr('data-swiper-slide-index') || activeIndex, 10);
2346
+  extend$1(swiper, {
2347
+    snapIndex: snapIndex,
2348
+    realIndex: realIndex,
2349
+    previousIndex: previousIndex,
2350
+    activeIndex: activeIndex
2351
+  });
2352
+  swiper.emit('activeIndexChange');
2353
+  swiper.emit('snapIndexChange');
2354
+
2355
+  if (previousRealIndex !== realIndex) {
2356
+    swiper.emit('realIndexChange');
2357
+  }
2358
+
2359
+  if (swiper.initialized || swiper.params.runCallbacksOnInit) {
2360
+    swiper.emit('slideChange');
2361
+  }
2362
+}
2363
+
2364
+function updateClickedSlide(e) {
2365
+  var swiper = this;
2366
+  var params = swiper.params;
2367
+  var slide = $(e.target).closest("." + params.slideClass)[0];
2368
+  var slideFound = false;
2369
+
2370
+  if (slide) {
2371
+    for (var i = 0; i < swiper.slides.length; i += 1) {
2372
+      if (swiper.slides[i] === slide) slideFound = true;
2373
+    }
2374
+  }
2375
+
2376
+  if (slide && slideFound) {
2377
+    swiper.clickedSlide = slide;
2378
+
2379
+    if (swiper.virtual && swiper.params.virtual.enabled) {
2380
+      swiper.clickedIndex = parseInt($(slide).attr('data-swiper-slide-index'), 10);
2381
+    } else {
2382
+      swiper.clickedIndex = $(slide).index();
2383
+    }
2384
+  } else {
2385
+    swiper.clickedSlide = undefined;
2386
+    swiper.clickedIndex = undefined;
2387
+    return;
2388
+  }
2389
+
2390
+  if (params.slideToClickedSlide && swiper.clickedIndex !== undefined && swiper.clickedIndex !== swiper.activeIndex) {
2391
+    swiper.slideToClickedSlide();
2392
+  }
2393
+}
2394
+
2395
+var update = {
2396
+  updateSize: updateSize,
2397
+  updateSlides: updateSlides,
2398
+  updateAutoHeight: updateAutoHeight,
2399
+  updateSlidesOffset: updateSlidesOffset,
2400
+  updateSlidesProgress: updateSlidesProgress,
2401
+  updateProgress: updateProgress,
2402
+  updateSlidesClasses: updateSlidesClasses,
2403
+  updateActiveIndex: updateActiveIndex,
2404
+  updateClickedSlide: updateClickedSlide
2405
+};
2406
+
2407
+function getSwiperTranslate(axis) {
2408
+  if (axis === void 0) {
2409
+    axis = this.isHorizontal() ? 'x' : 'y';
2410
+  }
2411
+
2412
+  var swiper = this;
2413
+  var params = swiper.params,
2414
+      rtl = swiper.rtlTranslate,
2415
+      translate = swiper.translate,
2416
+      $wrapperEl = swiper.$wrapperEl;
2417
+
2418
+  if (params.virtualTranslate) {
2419
+    return rtl ? -translate : translate;
2420
+  }
2421
+
2422
+  if (params.cssMode) {
2423
+    return translate;
2424
+  }
2425
+
2426
+  var currentTranslate = getTranslate($wrapperEl[0], axis);
2427
+  if (rtl) currentTranslate = -currentTranslate;
2428
+  return currentTranslate || 0;
2429
+}
2430
+
2431
+function setTranslate(translate, byController) {
2432
+  var swiper = this;
2433
+  var rtl = swiper.rtlTranslate,
2434
+      params = swiper.params,
2435
+      $wrapperEl = swiper.$wrapperEl,
2436
+      wrapperEl = swiper.wrapperEl,
2437
+      progress = swiper.progress;
2438
+  var x = 0;
2439
+  var y = 0;
2440
+  var z = 0;
2441
+
2442
+  if (swiper.isHorizontal()) {
2443
+    x = rtl ? -translate : translate;
2444
+  } else {
2445
+    y = translate;
2446
+  }
2447
+
2448
+  if (params.roundLengths) {
2449
+    x = Math.floor(x);
2450
+    y = Math.floor(y);
2451
+  }
2452
+
2453
+  if (params.cssMode) {
2454
+    wrapperEl[swiper.isHorizontal() ? 'scrollLeft' : 'scrollTop'] = swiper.isHorizontal() ? -x : -y;
2455
+  } else if (!params.virtualTranslate) {
2456
+    $wrapperEl.transform("translate3d(" + x + "px, " + y + "px, " + z + "px)");
2457
+  }
2458
+
2459
+  swiper.previousTranslate = swiper.translate;
2460
+  swiper.translate = swiper.isHorizontal() ? x : y; // Check if we need to update progress
2461
+
2462
+  var newProgress;
2463
+  var translatesDiff = swiper.maxTranslate() - swiper.minTranslate();
2464
+
2465
+  if (translatesDiff === 0) {
2466
+    newProgress = 0;
2467
+  } else {
2468
+    newProgress = (translate - swiper.minTranslate()) / translatesDiff;
2469
+  }
2470
+
2471
+  if (newProgress !== progress) {
2472
+    swiper.updateProgress(translate);
2473
+  }
2474
+
2475
+  swiper.emit('setTranslate', swiper.translate, byController);
2476
+}
2477
+
2478
+function minTranslate() {
2479
+  return -this.snapGrid[0];
2480
+}
2481
+
2482
+function maxTranslate() {
2483
+  return -this.snapGrid[this.snapGrid.length - 1];
2484
+}
2485
+
2486
+function translateTo(translate, speed, runCallbacks, translateBounds, internal) {
2487
+  if (translate === void 0) {
2488
+    translate = 0;
2489
+  }
2490
+
2491
+  if (speed === void 0) {
2492
+    speed = this.params.speed;
2493
+  }
2494
+
2495
+  if (runCallbacks === void 0) {
2496
+    runCallbacks = true;
2497
+  }
2498
+
2499
+  if (translateBounds === void 0) {
2500
+    translateBounds = true;
2501
+  }
2502
+
2503
+  var swiper = this;
2504
+  var params = swiper.params,
2505
+      wrapperEl = swiper.wrapperEl;
2506
+
2507
+  if (swiper.animating && params.preventInteractionOnTransition) {
2508
+    return false;
2509
+  }
2510
+
2511
+  var minTranslate = swiper.minTranslate();
2512
+  var maxTranslate = swiper.maxTranslate();
2513
+  var newTranslate;
2514
+  if (translateBounds && translate > minTranslate) newTranslate = minTranslate;else if (translateBounds && translate < maxTranslate) newTranslate = maxTranslate;else newTranslate = translate; // Update progress
2515
+
2516
+  swiper.updateProgress(newTranslate);
2517
+
2518
+  if (params.cssMode) {
2519
+    var isH = swiper.isHorizontal();
2520
+
2521
+    if (speed === 0) {
2522
+      wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = -newTranslate;
2523
+    } else {
2524
+      // eslint-disable-next-line
2525
+      if (wrapperEl.scrollTo) {
2526
+        var _wrapperEl$scrollTo;
2527
+
2528
+        wrapperEl.scrollTo((_wrapperEl$scrollTo = {}, _wrapperEl$scrollTo[isH ? 'left' : 'top'] = -newTranslate, _wrapperEl$scrollTo.behavior = 'smooth', _wrapperEl$scrollTo));
2529
+      } else {
2530
+        wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = -newTranslate;
2531
+      }
2532
+    }
2533
+
2534
+    return true;
2535
+  }
2536
+
2537
+  if (speed === 0) {
2538
+    swiper.setTransition(0);
2539
+    swiper.setTranslate(newTranslate);
2540
+
2541
+    if (runCallbacks) {
2542
+      swiper.emit('beforeTransitionStart', speed, internal);
2543
+      swiper.emit('transitionEnd');
2544
+    }
2545
+  } else {
2546
+    swiper.setTransition(speed);
2547
+    swiper.setTranslate(newTranslate);
2548
+
2549
+    if (runCallbacks) {
2550
+      swiper.emit('beforeTransitionStart', speed, internal);
2551
+      swiper.emit('transitionStart');
2552
+    }
2553
+
2554
+    if (!swiper.animating) {
2555
+      swiper.animating = true;
2556
+
2557
+      if (!swiper.onTranslateToWrapperTransitionEnd) {
2558
+        swiper.onTranslateToWrapperTransitionEnd = function transitionEnd(e) {
2559
+          if (!swiper || swiper.destroyed) return;
2560
+          if (e.target !== this) return;
2561
+          swiper.$wrapperEl[0].removeEventListener('transitionend', swiper.onTranslateToWrapperTransitionEnd);
2562
+          swiper.$wrapperEl[0].removeEventListener('webkitTransitionEnd', swiper.onTranslateToWrapperTransitionEnd);
2563
+          swiper.onTranslateToWrapperTransitionEnd = null;
2564
+          delete swiper.onTranslateToWrapperTransitionEnd;
2565
+
2566
+          if (runCallbacks) {
2567
+            swiper.emit('transitionEnd');
2568
+          }
2569
+        };
2570
+      }
2571
+
2572
+      swiper.$wrapperEl[0].addEventListener('transitionend', swiper.onTranslateToWrapperTransitionEnd);
2573
+      swiper.$wrapperEl[0].addEventListener('webkitTransitionEnd', swiper.onTranslateToWrapperTransitionEnd);
2574
+    }
2575
+  }
2576
+
2577
+  return true;
2578
+}
2579
+
2580
+var translate = {
2581
+  getTranslate: getSwiperTranslate,
2582
+  setTranslate: setTranslate,
2583
+  minTranslate: minTranslate,
2584
+  maxTranslate: maxTranslate,
2585
+  translateTo: translateTo
2586
+};
2587
+
2588
+function setTransition(duration, byController) {
2589
+  var swiper = this;
2590
+
2591
+  if (!swiper.params.cssMode) {
2592
+    swiper.$wrapperEl.transition(duration);
2593
+  }
2594
+
2595
+  swiper.emit('setTransition', duration, byController);
2596
+}
2597
+
2598
+function transitionStart(runCallbacks, direction) {
2599
+  if (runCallbacks === void 0) {
2600
+    runCallbacks = true;
2601
+  }
2602
+
2603
+  var swiper = this;
2604
+  var activeIndex = swiper.activeIndex,
2605
+      params = swiper.params,
2606
+      previousIndex = swiper.previousIndex;
2607
+  if (params.cssMode) return;
2608
+
2609
+  if (params.autoHeight) {
2610
+    swiper.updateAutoHeight();
2611
+  }
2612
+
2613
+  var dir = direction;
2614
+
2615
+  if (!dir) {
2616
+    if (activeIndex > previousIndex) dir = 'next';else if (activeIndex < previousIndex) dir = 'prev';else dir = 'reset';
2617
+  }
2618
+
2619
+  swiper.emit('transitionStart');
2620
+
2621
+  if (runCallbacks && activeIndex !== previousIndex) {
2622
+    if (dir === 'reset') {
2623
+      swiper.emit('slideResetTransitionStart');
2624
+      return;
2625
+    }
2626
+
2627
+    swiper.emit('slideChangeTransitionStart');
2628
+
2629
+    if (dir === 'next') {
2630
+      swiper.emit('slideNextTransitionStart');
2631
+    } else {
2632
+      swiper.emit('slidePrevTransitionStart');
2633
+    }
2634
+  }
2635
+}
2636
+
2637
+function transitionEnd$1(runCallbacks, direction) {
2638
+  if (runCallbacks === void 0) {
2639
+    runCallbacks = true;
2640
+  }
2641
+
2642
+  var swiper = this;
2643
+  var activeIndex = swiper.activeIndex,
2644
+      previousIndex = swiper.previousIndex,
2645
+      params = swiper.params;
2646
+  swiper.animating = false;
2647
+  if (params.cssMode) return;
2648
+  swiper.setTransition(0);
2649
+  var dir = direction;
2650
+
2651
+  if (!dir) {
2652
+    if (activeIndex > previousIndex) dir = 'next';else if (activeIndex < previousIndex) dir = 'prev';else dir = 'reset';
2653
+  }
2654
+
2655
+  swiper.emit('transitionEnd');
2656
+
2657
+  if (runCallbacks && activeIndex !== previousIndex) {
2658
+    if (dir === 'reset') {
2659
+      swiper.emit('slideResetTransitionEnd');
2660
+      return;
2661
+    }
2662
+
2663
+    swiper.emit('slideChangeTransitionEnd');
2664
+
2665
+    if (dir === 'next') {
2666
+      swiper.emit('slideNextTransitionEnd');
2667
+    } else {
2668
+      swiper.emit('slidePrevTransitionEnd');
2669
+    }
2670
+  }
2671
+}
2672
+
2673
+var transition$1 = {
2674
+  setTransition: setTransition,
2675
+  transitionStart: transitionStart,
2676
+  transitionEnd: transitionEnd$1
2677
+};
2678
+
2679
+function slideTo(index, speed, runCallbacks, internal) {
2680
+  if (index === void 0) {
2681
+    index = 0;
2682
+  }
2683
+
2684
+  if (speed === void 0) {
2685
+    speed = this.params.speed;
2686
+  }
2687
+
2688
+  if (runCallbacks === void 0) {
2689
+    runCallbacks = true;
2690
+  }
2691
+
2692
+  if (typeof index !== 'number' && typeof index !== 'string') {
2693
+    throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. [" + typeof index + "] given.");
2694
+  }
2695
+
2696
+  if (typeof index === 'string') {
2697
+    /**
2698
+     * The `index` argument converted from `string` to `number`.
2699
+     * @type {number}
2700
+     */
2701
+    var indexAsNumber = parseInt(index, 10);
2702
+    /**
2703
+     * Determines whether the `index` argument is a valid `number`
2704
+     * after being converted from the `string` type.
2705
+     * @type {boolean}
2706
+     */
2707
+
2708
+    var isValidNumber = isFinite(indexAsNumber);
2709
+
2710
+    if (!isValidNumber) {
2711
+      throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. [" + index + "] given.");
2712
+    } // Knowing that the converted `index` is a valid number,
2713
+    // we can update the original argument's value.
2714
+
2715
+
2716
+    index = indexAsNumber;
2717
+  }
2718
+
2719
+  var swiper = this;
2720
+  var slideIndex = index;
2721
+  if (slideIndex < 0) slideIndex = 0;
2722
+  var params = swiper.params,
2723
+      snapGrid = swiper.snapGrid,
2724
+      slidesGrid = swiper.slidesGrid,
2725
+      previousIndex = swiper.previousIndex,
2726
+      activeIndex = swiper.activeIndex,
2727
+      rtl = swiper.rtlTranslate,
2728
+      wrapperEl = swiper.wrapperEl;
2729
+
2730
+  if (swiper.animating && params.preventInteractionOnTransition) {
2731
+    return false;
2732
+  }
2733
+
2734
+  var skip = Math.min(swiper.params.slidesPerGroupSkip, slideIndex);
2735
+  var snapIndex = skip + Math.floor((slideIndex - skip) / swiper.params.slidesPerGroup);
2736
+  if (snapIndex >= snapGrid.length) snapIndex = snapGrid.length - 1;
2737
+
2738
+  if ((activeIndex || params.initialSlide || 0) === (previousIndex || 0) && runCallbacks) {
2739
+    swiper.emit('beforeSlideChangeStart');
2740
+  }
2741
+
2742
+  var translate = -snapGrid[snapIndex]; // Update progress
2743
+
2744
+  swiper.updateProgress(translate); // Normalize slideIndex
2745
+
2746
+  if (params.normalizeSlideIndex) {
2747
+    for (var i = 0; i < slidesGrid.length; i += 1) {
2748
+      if (-Math.floor(translate * 100) >= Math.floor(slidesGrid[i] * 100)) {
2749
+        slideIndex = i;
2750
+      }
2751
+    }
2752
+  } // Directions locks
2753
+
2754
+
2755
+  if (swiper.initialized && slideIndex !== activeIndex) {
2756
+    if (!swiper.allowSlideNext && translate < swiper.translate && translate < swiper.minTranslate()) {
2757
+      return false;
2758
+    }
2759
+
2760
+    if (!swiper.allowSlidePrev && translate > swiper.translate && translate > swiper.maxTranslate()) {
2761
+      if ((activeIndex || 0) !== slideIndex) return false;
2762
+    }
2763
+  }
2764
+
2765
+  var direction;
2766
+  if (slideIndex > activeIndex) direction = 'next';else if (slideIndex < activeIndex) direction = 'prev';else direction = 'reset'; // Update Index
2767
+
2768
+  if (rtl && -translate === swiper.translate || !rtl && translate === swiper.translate) {
2769
+    swiper.updateActiveIndex(slideIndex); // Update Height
2770
+
2771
+    if (params.autoHeight) {
2772
+      swiper.updateAutoHeight();
2773
+    }
2774
+
2775
+    swiper.updateSlidesClasses();
2776
+
2777
+    if (params.effect !== 'slide') {
2778
+      swiper.setTranslate(translate);
2779
+    }
2780
+
2781
+    if (direction !== 'reset') {
2782
+      swiper.transitionStart(runCallbacks, direction);
2783
+      swiper.transitionEnd(runCallbacks, direction);
2784
+    }
2785
+
2786
+    return false;
2787
+  }
2788
+
2789
+  if (params.cssMode) {
2790
+    var isH = swiper.isHorizontal();
2791
+    var t = -translate;
2792
+
2793
+    if (rtl) {
2794
+      t = wrapperEl.scrollWidth - wrapperEl.offsetWidth - t;
2795
+    }
2796
+
2797
+    if (speed === 0) {
2798
+      wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = t;
2799
+    } else {
2800
+      // eslint-disable-next-line
2801
+      if (wrapperEl.scrollTo) {
2802
+        var _wrapperEl$scrollTo;
2803
+
2804
+        wrapperEl.scrollTo((_wrapperEl$scrollTo = {}, _wrapperEl$scrollTo[isH ? 'left' : 'top'] = t, _wrapperEl$scrollTo.behavior = 'smooth', _wrapperEl$scrollTo));
2805
+      } else {
2806
+        wrapperEl[isH ? 'scrollLeft' : 'scrollTop'] = t;
2807
+      }
2808
+    }
2809
+
2810
+    return true;
2811
+  }
2812
+
2813
+  if (speed === 0) {
2814
+    swiper.setTransition(0);
2815
+    swiper.setTranslate(translate);
2816
+    swiper.updateActiveIndex(slideIndex);
2817
+    swiper.updateSlidesClasses();
2818
+    swiper.emit('beforeTransitionStart', speed, internal);
2819
+    swiper.transitionStart(runCallbacks, direction);
2820
+    swiper.transitionEnd(runCallbacks, direction);
2821
+  } else {
2822
+    swiper.setTransition(speed);
2823
+    swiper.setTranslate(translate);
2824
+    swiper.updateActiveIndex(slideIndex);
2825
+    swiper.updateSlidesClasses();
2826
+    swiper.emit('beforeTransitionStart', speed, internal);
2827
+    swiper.transitionStart(runCallbacks, direction);
2828
+
2829
+    if (!swiper.animating) {
2830
+      swiper.animating = true;
2831
+
2832
+      if (!swiper.onSlideToWrapperTransitionEnd) {
2833
+        swiper.onSlideToWrapperTransitionEnd = function transitionEnd(e) {
2834
+          if (!swiper || swiper.destroyed) return;
2835
+          if (e.target !== this) return;
2836
+          swiper.$wrapperEl[0].removeEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);
2837
+          swiper.$wrapperEl[0].removeEventListener('webkitTransitionEnd', swiper.onSlideToWrapperTransitionEnd);
2838
+          swiper.onSlideToWrapperTransitionEnd = null;
2839
+          delete swiper.onSlideToWrapperTransitionEnd;
2840
+          swiper.transitionEnd(runCallbacks, direction);
2841
+        };
2842
+      }
2843
+
2844
+      swiper.$wrapperEl[0].addEventListener('transitionend', swiper.onSlideToWrapperTransitionEnd);
2845
+      swiper.$wrapperEl[0].addEventListener('webkitTransitionEnd', swiper.onSlideToWrapperTransitionEnd);
2846
+    }
2847
+  }
2848
+
2849
+  return true;
2850
+}
2851
+
2852
+function slideToLoop(index, speed, runCallbacks, internal) {
2853
+  if (index === void 0) {
2854
+    index = 0;
2855
+  }
2856
+
2857
+  if (speed === void 0) {
2858
+    speed = this.params.speed;
2859
+  }
2860
+
2861
+  if (runCallbacks === void 0) {
2862
+    runCallbacks = true;
2863
+  }
2864
+
2865
+  var swiper = this;
2866
+  var newIndex = index;
2867
+
2868
+  if (swiper.params.loop) {
2869
+    newIndex += swiper.loopedSlides;
2870
+  }
2871
+
2872
+  return swiper.slideTo(newIndex, speed, runCallbacks, internal);
2873
+}
2874
+
2875
+/* eslint no-unused-vars: "off" */
2876
+function slideNext(speed, runCallbacks, internal) {
2877
+  if (speed === void 0) {
2878
+    speed = this.params.speed;
2879
+  }
2880
+
2881
+  if (runCallbacks === void 0) {
2882
+    runCallbacks = true;
2883
+  }
2884
+
2885
+  var swiper = this;
2886
+  var params = swiper.params,
2887
+      animating = swiper.animating;
2888
+  var increment = swiper.activeIndex < params.slidesPerGroupSkip ? 1 : params.slidesPerGroup;
2889
+
2890
+  if (params.loop) {
2891
+    if (animating && params.loopPreventsSlide) return false;
2892
+    swiper.loopFix(); // eslint-disable-next-line
2893
+
2894
+    swiper._clientLeft = swiper.$wrapperEl[0].clientLeft;
2895
+  }
2896
+
2897
+  return swiper.slideTo(swiper.activeIndex + increment, speed, runCallbacks, internal);
2898
+}
2899
+
2900
+/* eslint no-unused-vars: "off" */
2901
+function slidePrev(speed, runCallbacks, internal) {
2902
+  if (speed === void 0) {
2903
+    speed = this.params.speed;
2904
+  }
2905
+
2906
+  if (runCallbacks === void 0) {
2907
+    runCallbacks = true;
2908
+  }
2909
+
2910
+  var swiper = this;
2911
+  var params = swiper.params,
2912
+      animating = swiper.animating,
2913
+      snapGrid = swiper.snapGrid,
2914
+      slidesGrid = swiper.slidesGrid,
2915
+      rtlTranslate = swiper.rtlTranslate;
2916
+
2917
+  if (params.loop) {
2918
+    if (animating && params.loopPreventsSlide) return false;
2919
+    swiper.loopFix(); // eslint-disable-next-line
2920
+
2921
+    swiper._clientLeft = swiper.$wrapperEl[0].clientLeft;
2922
+  }
2923
+
2924
+  var translate = rtlTranslate ? swiper.translate : -swiper.translate;
2925
+
2926
+  function normalize(val) {
2927
+    if (val < 0) return -Math.floor(Math.abs(val));
2928
+    return Math.floor(val);
2929
+  }
2930
+
2931
+  var normalizedTranslate = normalize(translate);
2932
+  var normalizedSnapGrid = snapGrid.map(function (val) {
2933
+    return normalize(val);
2934
+  });
2935
+  var currentSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate)];
2936
+  var prevSnap = snapGrid[normalizedSnapGrid.indexOf(normalizedTranslate) - 1];
2937
+
2938
+  if (typeof prevSnap === 'undefined' && params.cssMode) {
2939
+    snapGrid.forEach(function (snap) {
2940
+      if (!prevSnap && normalizedTranslate >= snap) prevSnap = snap;
2941
+    });
2942
+  }
2943
+
2944
+  var prevIndex;
2945
+
2946
+  if (typeof prevSnap !== 'undefined') {
2947
+    prevIndex = slidesGrid.indexOf(prevSnap);
2948
+    if (prevIndex < 0) prevIndex = swiper.activeIndex - 1;
2949
+  }
2950
+
2951
+  return swiper.slideTo(prevIndex, speed, runCallbacks, internal);
2952
+}
2953
+
2954
+/* eslint no-unused-vars: "off" */
2955
+function slideReset(speed, runCallbacks, internal) {
2956
+  if (speed === void 0) {
2957
+    speed = this.params.speed;
2958
+  }
2959
+
2960
+  if (runCallbacks === void 0) {
2961
+    runCallbacks = true;
2962
+  }
2963
+
2964
+  var swiper = this;
2965
+  return swiper.slideTo(swiper.activeIndex, speed, runCallbacks, internal);
2966
+}
2967
+
2968
+/* eslint no-unused-vars: "off" */
2969
+function slideToClosest(speed, runCallbacks, internal, threshold) {
2970
+  if (speed === void 0) {
2971
+    speed = this.params.speed;
2972
+  }
2973
+
2974
+  if (runCallbacks === void 0) {
2975
+    runCallbacks = true;
2976
+  }
2977
+
2978
+  if (threshold === void 0) {
2979
+    threshold = 0.5;
2980
+  }
2981
+
2982
+  var swiper = this;
2983
+  var index = swiper.activeIndex;
2984
+  var skip = Math.min(swiper.params.slidesPerGroupSkip, index);
2985
+  var snapIndex = skip + Math.floor((index - skip) / swiper.params.slidesPerGroup);
2986
+  var translate = swiper.rtlTranslate ? swiper.translate : -swiper.translate;
2987
+
2988
+  if (translate >= swiper.snapGrid[snapIndex]) {
2989
+    // The current translate is on or after the current snap index, so the choice
2990
+    // is between the current index and the one after it.
2991
+    var currentSnap = swiper.snapGrid[snapIndex];
2992
+    var nextSnap = swiper.snapGrid[snapIndex + 1];
2993
+
2994
+    if (translate - currentSnap > (nextSnap - currentSnap) * threshold) {
2995
+      index += swiper.params.slidesPerGroup;
2996
+    }
2997
+  } else {
2998
+    // The current translate is before the current snap index, so the choice
2999
+    // is between the current index and the one before it.
3000
+    var prevSnap = swiper.snapGrid[snapIndex - 1];
3001
+    var _currentSnap = swiper.snapGrid[snapIndex];
3002
+
3003
+    if (translate - prevSnap <= (_currentSnap - prevSnap) * threshold) {
3004
+      index -= swiper.params.slidesPerGroup;
3005
+    }
3006
+  }
3007
+
3008
+  index = Math.max(index, 0);
3009
+  index = Math.min(index, swiper.slidesGrid.length - 1);
3010
+  return swiper.slideTo(index, speed, runCallbacks, internal);
3011
+}
3012
+
3013
+function slideToClickedSlide() {
3014
+  var swiper = this;
3015
+  var params = swiper.params,
3016
+      $wrapperEl = swiper.$wrapperEl;
3017
+  var slidesPerView = params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : params.slidesPerView;
3018
+  var slideToIndex = swiper.clickedIndex;
3019
+  var realIndex;
3020
+
3021
+  if (params.loop) {
3022
+    if (swiper.animating) return;
3023
+    realIndex = parseInt($(swiper.clickedSlide).attr('data-swiper-slide-index'), 10);
3024
+
3025
+    if (params.centeredSlides) {
3026
+      if (slideToIndex < swiper.loopedSlides - slidesPerView / 2 || slideToIndex > swiper.slides.length - swiper.loopedSlides + slidesPerView / 2) {
3027
+        swiper.loopFix();
3028
+        slideToIndex = $wrapperEl.children("." + params.slideClass + "[data-swiper-slide-index=\"" + realIndex + "\"]:not(." + params.slideDuplicateClass + ")").eq(0).index();
3029
+        nextTick(function () {
3030
+          swiper.slideTo(slideToIndex);
3031
+        });
3032
+      } else {
3033
+        swiper.slideTo(slideToIndex);
3034
+      }
3035
+    } else if (slideToIndex > swiper.slides.length - slidesPerView) {
3036
+      swiper.loopFix();
3037
+      slideToIndex = $wrapperEl.children("." + params.slideClass + "[data-swiper-slide-index=\"" + realIndex + "\"]:not(." + params.slideDuplicateClass + ")").eq(0).index();
3038
+      nextTick(function () {
3039
+        swiper.slideTo(slideToIndex);
3040
+      });
3041
+    } else {
3042
+      swiper.slideTo(slideToIndex);
3043
+    }
3044
+  } else {
3045
+    swiper.slideTo(slideToIndex);
3046
+  }
3047
+}
3048
+
3049
+var slide = {
3050
+  slideTo: slideTo,
3051
+  slideToLoop: slideToLoop,
3052
+  slideNext: slideNext,
3053
+  slidePrev: slidePrev,
3054
+  slideReset: slideReset,
3055
+  slideToClosest: slideToClosest,
3056
+  slideToClickedSlide: slideToClickedSlide
3057
+};
3058
+
3059
+function loopCreate() {
3060
+  var swiper = this;
3061
+  var document = getDocument();
3062
+  var params = swiper.params,
3063
+      $wrapperEl = swiper.$wrapperEl; // Remove duplicated slides
3064
+
3065
+  $wrapperEl.children("." + params.slideClass + "." + params.slideDuplicateClass).remove();
3066
+  var slides = $wrapperEl.children("." + params.slideClass);
3067
+
3068
+  if (params.loopFillGroupWithBlank) {
3069
+    var blankSlidesNum = params.slidesPerGroup - slides.length % params.slidesPerGroup;
3070
+
3071
+    if (blankSlidesNum !== params.slidesPerGroup) {
3072
+      for (var i = 0; i < blankSlidesNum; i += 1) {
3073
+        var blankNode = $(document.createElement('div')).addClass(params.slideClass + " " + params.slideBlankClass);
3074
+        $wrapperEl.append(blankNode);
3075
+      }
3076
+
3077
+      slides = $wrapperEl.children("." + params.slideClass);
3078
+    }
3079
+  }
3080
+
3081
+  if (params.slidesPerView === 'auto' && !params.loopedSlides) params.loopedSlides = slides.length;
3082
+  swiper.loopedSlides = Math.ceil(parseFloat(params.loopedSlides || params.slidesPerView, 10));
3083
+  swiper.loopedSlides += params.loopAdditionalSlides;
3084
+
3085
+  if (swiper.loopedSlides > slides.length) {
3086
+    swiper.loopedSlides = slides.length;
3087
+  }
3088
+
3089
+  var prependSlides = [];
3090
+  var appendSlides = [];
3091
+  slides.each(function (el, index) {
3092
+    var slide = $(el);
3093
+
3094
+    if (index < swiper.loopedSlides) {
3095
+      appendSlides.push(el);
3096
+    }
3097
+
3098
+    if (index < slides.length && index >= slides.length - swiper.loopedSlides) {
3099
+      prependSlides.push(el);
3100
+    }
3101
+
3102
+    slide.attr('data-swiper-slide-index', index);
3103
+  });
3104
+
3105
+  for (var _i = 0; _i < appendSlides.length; _i += 1) {
3106
+    $wrapperEl.append($(appendSlides[_i].cloneNode(true)).addClass(params.slideDuplicateClass));
3107
+  }
3108
+
3109
+  for (var _i2 = prependSlides.length - 1; _i2 >= 0; _i2 -= 1) {
3110
+    $wrapperEl.prepend($(prependSlides[_i2].cloneNode(true)).addClass(params.slideDuplicateClass));
3111
+  }
3112
+}
3113
+
3114
+function loopFix() {
3115
+  var swiper = this;
3116
+  swiper.emit('beforeLoopFix');
3117
+  var activeIndex = swiper.activeIndex,
3118
+      slides = swiper.slides,
3119
+      loopedSlides = swiper.loopedSlides,
3120
+      allowSlidePrev = swiper.allowSlidePrev,
3121
+      allowSlideNext = swiper.allowSlideNext,
3122
+      snapGrid = swiper.snapGrid,
3123
+      rtl = swiper.rtlTranslate;
3124
+  var newIndex;
3125
+  swiper.allowSlidePrev = true;
3126
+  swiper.allowSlideNext = true;
3127
+  var snapTranslate = -snapGrid[activeIndex];
3128
+  var diff = snapTranslate - swiper.getTranslate(); // Fix For Negative Oversliding
3129
+
3130
+  if (activeIndex < loopedSlides) {
3131
+    newIndex = slides.length - loopedSlides * 3 + activeIndex;
3132
+    newIndex += loopedSlides;
3133
+    var slideChanged = swiper.slideTo(newIndex, 0, false, true);
3134
+
3135
+    if (slideChanged && diff !== 0) {
3136
+      swiper.setTranslate((rtl ? -swiper.translate : swiper.translate) - diff);
3137
+    }
3138
+  } else if (activeIndex >= slides.length - loopedSlides) {
3139
+    // Fix For Positive Oversliding
3140
+    newIndex = -slides.length + activeIndex + loopedSlides;
3141
+    newIndex += loopedSlides;
3142
+
3143
+    var _slideChanged = swiper.slideTo(newIndex, 0, false, true);
3144
+
3145
+    if (_slideChanged && diff !== 0) {
3146
+      swiper.setTranslate((rtl ? -swiper.translate : swiper.translate) - diff);
3147
+    }
3148
+  }
3149
+
3150
+  swiper.allowSlidePrev = allowSlidePrev;
3151
+  swiper.allowSlideNext = allowSlideNext;
3152
+  swiper.emit('loopFix');
3153
+}
3154
+
3155
+function loopDestroy() {
3156
+  var swiper = this;
3157
+  var $wrapperEl = swiper.$wrapperEl,
3158
+      params = swiper.params,
3159
+      slides = swiper.slides;
3160
+  $wrapperEl.children("." + params.slideClass + "." + params.slideDuplicateClass + ",." + params.slideClass + "." + params.slideBlankClass).remove();
3161
+  slides.removeAttr('data-swiper-slide-index');
3162
+}
3163
+
3164
+var loop = {
3165
+  loopCreate: loopCreate,
3166
+  loopFix: loopFix,
3167
+  loopDestroy: loopDestroy
3168
+};
3169
+
3170
+function setGrabCursor(moving) {
3171
+  var swiper = this;
3172
+  if (swiper.support.touch || !swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;
3173
+  var el = swiper.el;
3174
+  el.style.cursor = 'move';
3175
+  el.style.cursor = moving ? '-webkit-grabbing' : '-webkit-grab';
3176
+  el.style.cursor = moving ? '-moz-grabbin' : '-moz-grab';
3177
+  el.style.cursor = moving ? 'grabbing' : 'grab';
3178
+}
3179
+
3180
+function unsetGrabCursor() {
3181
+  var swiper = this;
3182
+
3183
+  if (swiper.support.touch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) {
3184
+    return;
3185
+  }
3186
+
3187
+  swiper.el.style.cursor = '';
3188
+}
3189
+
3190
+var grabCursor = {
3191
+  setGrabCursor: setGrabCursor,
3192
+  unsetGrabCursor: unsetGrabCursor
3193
+};
3194
+
3195
+function appendSlide(slides) {
3196
+  var swiper = this;
3197
+  var $wrapperEl = swiper.$wrapperEl,
3198
+      params = swiper.params;
3199
+
3200
+  if (params.loop) {
3201
+    swiper.loopDestroy();
3202
+  }
3203
+
3204
+  if (typeof slides === 'object' && 'length' in slides) {
3205
+    for (var i = 0; i < slides.length; i += 1) {
3206
+      if (slides[i]) $wrapperEl.append(slides[i]);
3207
+    }
3208
+  } else {
3209
+    $wrapperEl.append(slides);
3210
+  }
3211
+
3212
+  if (params.loop) {
3213
+    swiper.loopCreate();
3214
+  }
3215
+
3216
+  if (!(params.observer && swiper.support.observer)) {
3217
+    swiper.update();
3218
+  }
3219
+}
3220
+
3221
+function prependSlide(slides) {
3222
+  var swiper = this;
3223
+  var params = swiper.params,
3224
+      $wrapperEl = swiper.$wrapperEl,
3225
+      activeIndex = swiper.activeIndex;
3226
+
3227
+  if (params.loop) {
3228
+    swiper.loopDestroy();
3229
+  }
3230
+
3231
+  var newActiveIndex = activeIndex + 1;
3232
+
3233
+  if (typeof slides === 'object' && 'length' in slides) {
3234
+    for (var i = 0; i < slides.length; i += 1) {
3235
+      if (slides[i]) $wrapperEl.prepend(slides[i]);
3236
+    }
3237
+
3238
+    newActiveIndex = activeIndex + slides.length;
3239
+  } else {
3240
+    $wrapperEl.prepend(slides);
3241
+  }
3242
+
3243
+  if (params.loop) {
3244
+    swiper.loopCreate();
3245
+  }
3246
+
3247
+  if (!(params.observer && swiper.support.observer)) {
3248
+    swiper.update();
3249
+  }
3250
+
3251
+  swiper.slideTo(newActiveIndex, 0, false);
3252
+}
3253
+
3254
+function addSlide(index, slides) {
3255
+  var swiper = this;
3256
+  var $wrapperEl = swiper.$wrapperEl,
3257
+      params = swiper.params,
3258
+      activeIndex = swiper.activeIndex;
3259
+  var activeIndexBuffer = activeIndex;
3260
+
3261
+  if (params.loop) {
3262
+    activeIndexBuffer -= swiper.loopedSlides;
3263
+    swiper.loopDestroy();
3264
+    swiper.slides = $wrapperEl.children("." + params.slideClass);
3265
+  }
3266
+
3267
+  var baseLength = swiper.slides.length;
3268
+
3269
+  if (index <= 0) {
3270
+    swiper.prependSlide(slides);
3271
+    return;
3272
+  }
3273
+
3274
+  if (index >= baseLength) {
3275
+    swiper.appendSlide(slides);
3276
+    return;
3277
+  }
3278
+
3279
+  var newActiveIndex = activeIndexBuffer > index ? activeIndexBuffer + 1 : activeIndexBuffer;
3280
+  var slidesBuffer = [];
3281
+
3282
+  for (var i = baseLength - 1; i >= index; i -= 1) {
3283
+    var currentSlide = swiper.slides.eq(i);
3284
+    currentSlide.remove();
3285
+    slidesBuffer.unshift(currentSlide);
3286
+  }
3287
+
3288
+  if (typeof slides === 'object' && 'length' in slides) {
3289
+    for (var _i = 0; _i < slides.length; _i += 1) {
3290
+      if (slides[_i]) $wrapperEl.append(slides[_i]);
3291
+    }
3292
+
3293
+    newActiveIndex = activeIndexBuffer > index ? activeIndexBuffer + slides.length : activeIndexBuffer;
3294
+  } else {
3295
+    $wrapperEl.append(slides);
3296
+  }
3297
+
3298
+  for (var _i2 = 0; _i2 < slidesBuffer.length; _i2 += 1) {
3299
+    $wrapperEl.append(slidesBuffer[_i2]);
3300
+  }
3301
+
3302
+  if (params.loop) {
3303
+    swiper.loopCreate();
3304
+  }
3305
+
3306
+  if (!(params.observer && swiper.support.observer)) {
3307
+    swiper.update();
3308
+  }
3309
+
3310
+  if (params.loop) {
3311
+    swiper.slideTo(newActiveIndex + swiper.loopedSlides, 0, false);
3312
+  } else {
3313
+    swiper.slideTo(newActiveIndex, 0, false);
3314
+  }
3315
+}
3316
+
3317
+function removeSlide(slidesIndexes) {
3318
+  var swiper = this;
3319
+  var params = swiper.params,
3320
+      $wrapperEl = swiper.$wrapperEl,
3321
+      activeIndex = swiper.activeIndex;
3322
+  var activeIndexBuffer = activeIndex;
3323
+
3324
+  if (params.loop) {
3325
+    activeIndexBuffer -= swiper.loopedSlides;
3326
+    swiper.loopDestroy();
3327
+    swiper.slides = $wrapperEl.children("." + params.slideClass);
3328
+  }
3329
+
3330
+  var newActiveIndex = activeIndexBuffer;
3331
+  var indexToRemove;
3332
+
3333
+  if (typeof slidesIndexes === 'object' && 'length' in slidesIndexes) {
3334
+    for (var i = 0; i < slidesIndexes.length; i += 1) {
3335
+      indexToRemove = slidesIndexes[i];
3336
+      if (swiper.slides[indexToRemove]) swiper.slides.eq(indexToRemove).remove();
3337
+      if (indexToRemove < newActiveIndex) newActiveIndex -= 1;
3338
+    }
3339
+
3340
+    newActiveIndex = Math.max(newActiveIndex, 0);
3341
+  } else {
3342
+    indexToRemove = slidesIndexes;
3343
+    if (swiper.slides[indexToRemove]) swiper.slides.eq(indexToRemove).remove();
3344
+    if (indexToRemove < newActiveIndex) newActiveIndex -= 1;
3345
+    newActiveIndex = Math.max(newActiveIndex, 0);
3346
+  }
3347
+
3348
+  if (params.loop) {
3349
+    swiper.loopCreate();
3350
+  }
3351
+
3352
+  if (!(params.observer && swiper.support.observer)) {
3353
+    swiper.update();
3354
+  }
3355
+
3356
+  if (params.loop) {
3357
+    swiper.slideTo(newActiveIndex + swiper.loopedSlides, 0, false);
3358
+  } else {
3359
+    swiper.slideTo(newActiveIndex, 0, false);
3360
+  }
3361
+}
3362
+
3363
+function removeAllSlides() {
3364
+  var swiper = this;
3365
+  var slidesIndexes = [];
3366
+
3367
+  for (var i = 0; i < swiper.slides.length; i += 1) {
3368
+    slidesIndexes.push(i);
3369
+  }
3370
+
3371
+  swiper.removeSlide(slidesIndexes);
3372
+}
3373
+
3374
+var manipulation = {
3375
+  appendSlide: appendSlide,
3376
+  prependSlide: prependSlide,
3377
+  addSlide: addSlide,
3378
+  removeSlide: removeSlide,
3379
+  removeAllSlides: removeAllSlides
3380
+};
3381
+
3382
+function onTouchStart(event) {
3383
+  var swiper = this;
3384
+  var document = getDocument();
3385
+  var window = getWindow();
3386
+  var data = swiper.touchEventsData;
3387
+  var params = swiper.params,
3388
+      touches = swiper.touches;
3389
+
3390
+  if (swiper.animating && params.preventInteractionOnTransition) {
3391
+    return;
3392
+  }
3393
+
3394
+  var e = event;
3395
+  if (e.originalEvent) e = e.originalEvent;
3396
+  var $targetEl = $(e.target);
3397
+
3398
+  if (params.touchEventsTarget === 'wrapper') {
3399
+    if (!$targetEl.closest(swiper.wrapperEl).length) return;
3400
+  }
3401
+
3402
+  data.isTouchEvent = e.type === 'touchstart';
3403
+  if (!data.isTouchEvent && 'which' in e && e.which === 3) return;
3404
+  if (!data.isTouchEvent && 'button' in e && e.button > 0) return;
3405
+  if (data.isTouched && data.isMoved) return; // change target el for shadow root componenet
3406
+
3407
+  var swipingClassHasValue = !!params.noSwipingClass && params.noSwipingClass !== '';
3408
+
3409
+  if (swipingClassHasValue && e.target && e.target.shadowRoot && event.path && event.path[0]) {
3410
+    $targetEl = $(event.path[0]);
3411
+  }
3412
+
3413
+  if (params.noSwiping && $targetEl.closest(params.noSwipingSelector ? params.noSwipingSelector : "." + params.noSwipingClass)[0]) {
3414
+    swiper.allowClick = true;
3415
+    return;
3416
+  }
3417
+
3418
+  if (params.swipeHandler) {
3419
+    if (!$targetEl.closest(params.swipeHandler)[0]) return;
3420
+  }
3421
+
3422
+  touches.currentX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
3423
+  touches.currentY = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
3424
+  var startX = touches.currentX;
3425
+  var startY = touches.currentY; // Do NOT start if iOS edge swipe is detected. Otherwise iOS app cannot swipe-to-go-back anymore
3426
+
3427
+  var edgeSwipeDetection = params.edgeSwipeDetection || params.iOSEdgeSwipeDetection;
3428
+  var edgeSwipeThreshold = params.edgeSwipeThreshold || params.iOSEdgeSwipeThreshold;
3429
+
3430
+  if (edgeSwipeDetection && (startX <= edgeSwipeThreshold || startX >= window.innerWidth - edgeSwipeThreshold)) {
3431
+    return;
3432
+  }
3433
+
3434
+  extend$1(data, {
3435
+    isTouched: true,
3436
+    isMoved: false,
3437
+    allowTouchCallbacks: true,
3438
+    isScrolling: undefined,
3439
+    startMoving: undefined
3440
+  });
3441
+  touches.startX = startX;
3442
+  touches.startY = startY;
3443
+  data.touchStartTime = now();
3444
+  swiper.allowClick = true;
3445
+  swiper.updateSize();
3446
+  swiper.swipeDirection = undefined;
3447
+  if (params.threshold > 0) data.allowThresholdMove = false;
3448
+
3449
+  if (e.type !== 'touchstart') {
3450
+    var preventDefault = true;
3451
+    if ($targetEl.is(data.formElements)) preventDefault = false;
3452
+
3453
+    if (document.activeElement && $(document.activeElement).is(data.formElements) && document.activeElement !== $targetEl[0]) {
3454
+      document.activeElement.blur();
3455
+    }
3456
+
3457
+    var shouldPreventDefault = preventDefault && swiper.allowTouchMove && params.touchStartPreventDefault;
3458
+
3459
+    if ((params.touchStartForcePreventDefault || shouldPreventDefault) && !$targetEl[0].isContentEditable) {
3460
+      e.preventDefault();
3461
+    }
3462
+  }
3463
+
3464
+  swiper.emit('touchStart', e);
3465
+}
3466
+
3467
+function onTouchMove(event) {
3468
+  var document = getDocument();
3469
+  var swiper = this;
3470
+  var data = swiper.touchEventsData;
3471
+  var params = swiper.params,
3472
+      touches = swiper.touches,
3473
+      rtl = swiper.rtlTranslate;
3474
+  var e = event;
3475
+  if (e.originalEvent) e = e.originalEvent;
3476
+
3477
+  if (!data.isTouched) {
3478
+    if (data.startMoving && data.isScrolling) {
3479
+      swiper.emit('touchMoveOpposite', e);
3480
+    }
3481
+
3482
+    return;
3483
+  }
3484
+
3485
+  if (data.isTouchEvent && e.type !== 'touchmove') return;
3486
+  var targetTouch = e.type === 'touchmove' && e.targetTouches && (e.targetTouches[0] || e.changedTouches[0]);
3487
+  var pageX = e.type === 'touchmove' ? targetTouch.pageX : e.pageX;
3488
+  var pageY = e.type === 'touchmove' ? targetTouch.pageY : e.pageY;
3489
+
3490
+  if (e.preventedByNestedSwiper) {
3491
+    touches.startX = pageX;
3492
+    touches.startY = pageY;
3493
+    return;
3494
+  }
3495
+
3496
+  if (!swiper.allowTouchMove) {
3497
+    // isMoved = true;
3498
+    swiper.allowClick = false;
3499
+
3500
+    if (data.isTouched) {
3501
+      extend$1(touches, {
3502
+        startX: pageX,
3503
+        startY: pageY,
3504
+        currentX: pageX,
3505
+        currentY: pageY
3506
+      });
3507
+      data.touchStartTime = now();
3508
+    }
3509
+
3510
+    return;
3511
+  }
3512
+
3513
+  if (data.isTouchEvent && params.touchReleaseOnEdges && !params.loop) {
3514
+    if (swiper.isVertical()) {
3515
+      // Vertical
3516
+      if (pageY < touches.startY && swiper.translate <= swiper.maxTranslate() || pageY > touches.startY && swiper.translate >= swiper.minTranslate()) {
3517
+        data.isTouched = false;
3518
+        data.isMoved = false;
3519
+        return;
3520
+      }
3521
+    } else if (pageX < touches.startX && swiper.translate <= swiper.maxTranslate() || pageX > touches.startX && swiper.translate >= swiper.minTranslate()) {
3522
+      return;
3523
+    }
3524
+  }
3525
+
3526
+  if (data.isTouchEvent && document.activeElement) {
3527
+    if (e.target === document.activeElement && $(e.target).is(data.formElements)) {
3528
+      data.isMoved = true;
3529
+      swiper.allowClick = false;
3530
+      return;
3531
+    }
3532
+  }
3533
+
3534
+  if (data.allowTouchCallbacks) {
3535
+    swiper.emit('touchMove', e);
3536
+  }
3537
+
3538
+  if (e.targetTouches && e.targetTouches.length > 1) return;
3539
+  touches.currentX = pageX;
3540
+  touches.currentY = pageY;
3541
+  var diffX = touches.currentX - touches.startX;
3542
+  var diffY = touches.currentY - touches.startY;
3543
+  if (swiper.params.threshold && Math.sqrt(Math.pow(diffX, 2) + Math.pow(diffY, 2)) < swiper.params.threshold) return;
3544
+
3545
+  if (typeof data.isScrolling === 'undefined') {
3546
+    var touchAngle;
3547
+
3548
+    if (swiper.isHorizontal() && touches.currentY === touches.startY || swiper.isVertical() && touches.currentX === touches.startX) {
3549
+      data.isScrolling = false;
3550
+    } else {
3551
+      // eslint-disable-next-line
3552
+      if (diffX * diffX + diffY * diffY >= 25) {
3553
+        touchAngle = Math.atan2(Math.abs(diffY), Math.abs(diffX)) * 180 / Math.PI;
3554
+        data.isScrolling = swiper.isHorizontal() ? touchAngle > params.touchAngle : 90 - touchAngle > params.touchAngle;
3555
+      }
3556
+    }
3557
+  }
3558
+
3559
+  if (data.isScrolling) {
3560
+    swiper.emit('touchMoveOpposite', e);
3561
+  }
3562
+
3563
+  if (typeof data.startMoving === 'undefined') {
3564
+    if (touches.currentX !== touches.startX || touches.currentY !== touches.startY) {
3565
+      data.startMoving = true;
3566
+    }
3567
+  }
3568
+
3569
+  if (data.isScrolling) {
3570
+    data.isTouched = false;
3571
+    return;
3572
+  }
3573
+
3574
+  if (!data.startMoving) {
3575
+    return;
3576
+  }
3577
+
3578
+  swiper.allowClick = false;
3579
+
3580
+  if (!params.cssMode && e.cancelable) {
3581
+    e.preventDefault();
3582
+  }
3583
+
3584
+  if (params.touchMoveStopPropagation && !params.nested) {
3585
+    e.stopPropagation();
3586
+  }
3587
+
3588
+  if (!data.isMoved) {
3589
+    if (params.loop) {
3590
+      swiper.loopFix();
3591
+    }
3592
+
3593
+    data.startTranslate = swiper.getTranslate();
3594
+    swiper.setTransition(0);
3595
+
3596
+    if (swiper.animating) {
3597
+      swiper.$wrapperEl.trigger('webkitTransitionEnd transitionend');
3598
+    }
3599
+
3600
+    data.allowMomentumBounce = false; // Grab Cursor
3601
+
3602
+    if (params.grabCursor && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {
3603
+      swiper.setGrabCursor(true);
3604
+    }
3605
+
3606
+    swiper.emit('sliderFirstMove', e);
3607
+  }
3608
+
3609
+  swiper.emit('sliderMove', e);
3610
+  data.isMoved = true;
3611
+  var diff = swiper.isHorizontal() ? diffX : diffY;
3612
+  touches.diff = diff;
3613
+  diff *= params.touchRatio;
3614
+  if (rtl) diff = -diff;
3615
+  swiper.swipeDirection = diff > 0 ? 'prev' : 'next';
3616
+  data.currentTranslate = diff + data.startTranslate;
3617
+  var disableParentSwiper = true;
3618
+  var resistanceRatio = params.resistanceRatio;
3619
+
3620
+  if (params.touchReleaseOnEdges) {
3621
+    resistanceRatio = 0;
3622
+  }
3623
+
3624
+  if (diff > 0 && data.currentTranslate > swiper.minTranslate()) {
3625
+    disableParentSwiper = false;
3626
+    if (params.resistance) data.currentTranslate = swiper.minTranslate() - 1 + Math.pow(-swiper.minTranslate() + data.startTranslate + diff, resistanceRatio);
3627
+  } else if (diff < 0 && data.currentTranslate < swiper.maxTranslate()) {
3628
+    disableParentSwiper = false;
3629
+    if (params.resistance) data.currentTranslate = swiper.maxTranslate() + 1 - Math.pow(swiper.maxTranslate() - data.startTranslate - diff, resistanceRatio);
3630
+  }
3631
+
3632
+  if (disableParentSwiper) {
3633
+    e.preventedByNestedSwiper = true;
3634
+  } // Directions locks
3635
+
3636
+
3637
+  if (!swiper.allowSlideNext && swiper.swipeDirection === 'next' && data.currentTranslate < data.startTranslate) {
3638
+    data.currentTranslate = data.startTranslate;
3639
+  }
3640
+
3641
+  if (!swiper.allowSlidePrev && swiper.swipeDirection === 'prev' && data.currentTranslate > data.startTranslate) {
3642
+    data.currentTranslate = data.startTranslate;
3643
+  } // Threshold
3644
+
3645
+
3646
+  if (params.threshold > 0) {
3647
+    if (Math.abs(diff) > params.threshold || data.allowThresholdMove) {
3648
+      if (!data.allowThresholdMove) {
3649
+        data.allowThresholdMove = true;
3650
+        touches.startX = touches.currentX;
3651
+        touches.startY = touches.currentY;
3652
+        data.currentTranslate = data.startTranslate;
3653
+        touches.diff = swiper.isHorizontal() ? touches.currentX - touches.startX : touches.currentY - touches.startY;
3654
+        return;
3655
+      }
3656
+    } else {
3657
+      data.currentTranslate = data.startTranslate;
3658
+      return;
3659
+    }
3660
+  }
3661
+
3662
+  if (!params.followFinger || params.cssMode) return; // Update active index in free mode
3663
+
3664
+  if (params.freeMode || params.watchSlidesProgress || params.watchSlidesVisibility) {
3665
+    swiper.updateActiveIndex();
3666
+    swiper.updateSlidesClasses();
3667
+  }
3668
+
3669
+  if (params.freeMode) {
3670
+    // Velocity
3671
+    if (data.velocities.length === 0) {
3672
+      data.velocities.push({
3673
+        position: touches[swiper.isHorizontal() ? 'startX' : 'startY'],
3674
+        time: data.touchStartTime
3675
+      });
3676
+    }
3677
+
3678
+    data.velocities.push({
3679
+      position: touches[swiper.isHorizontal() ? 'currentX' : 'currentY'],
3680
+      time: now()
3681
+    });
3682
+  } // Update progress
3683
+
3684
+
3685
+  swiper.updateProgress(data.currentTranslate); // Update translate
3686
+
3687
+  swiper.setTranslate(data.currentTranslate);
3688
+}
3689
+
3690
+function onTouchEnd(event) {
3691
+  var swiper = this;
3692
+  var data = swiper.touchEventsData;
3693
+  var params = swiper.params,
3694
+      touches = swiper.touches,
3695
+      rtl = swiper.rtlTranslate,
3696
+      $wrapperEl = swiper.$wrapperEl,
3697
+      slidesGrid = swiper.slidesGrid,
3698
+      snapGrid = swiper.snapGrid;
3699
+  var e = event;
3700
+  if (e.originalEvent) e = e.originalEvent;
3701
+
3702
+  if (data.allowTouchCallbacks) {
3703
+    swiper.emit('touchEnd', e);
3704
+  }
3705
+
3706
+  data.allowTouchCallbacks = false;
3707
+
3708
+  if (!data.isTouched) {
3709
+    if (data.isMoved && params.grabCursor) {
3710
+      swiper.setGrabCursor(false);
3711
+    }
3712
+
3713
+    data.isMoved = false;
3714
+    data.startMoving = false;
3715
+    return;
3716
+  } // Return Grab Cursor
3717
+
3718
+
3719
+  if (params.grabCursor && data.isMoved && data.isTouched && (swiper.allowSlideNext === true || swiper.allowSlidePrev === true)) {
3720
+    swiper.setGrabCursor(false);
3721
+  } // Time diff
3722
+
3723
+
3724
+  var touchEndTime = now();
3725
+  var timeDiff = touchEndTime - data.touchStartTime; // Tap, doubleTap, Click
3726
+
3727
+  if (swiper.allowClick) {
3728
+    swiper.updateClickedSlide(e);
3729
+    swiper.emit('tap click', e);
3730
+
3731
+    if (timeDiff < 300 && touchEndTime - data.lastClickTime < 300) {
3732
+      swiper.emit('doubleTap doubleClick', e);
3733
+    }
3734
+  }
3735
+
3736
+  data.lastClickTime = now();
3737
+  nextTick(function () {
3738
+    if (!swiper.destroyed) swiper.allowClick = true;
3739
+  });
3740
+
3741
+  if (!data.isTouched || !data.isMoved || !swiper.swipeDirection || touches.diff === 0 || data.currentTranslate === data.startTranslate) {
3742
+    data.isTouched = false;
3743
+    data.isMoved = false;
3744
+    data.startMoving = false;
3745
+    return;
3746
+  }
3747
+
3748
+  data.isTouched = false;
3749
+  data.isMoved = false;
3750
+  data.startMoving = false;
3751
+  var currentPos;
3752
+
3753
+  if (params.followFinger) {
3754
+    currentPos = rtl ? swiper.translate : -swiper.translate;
3755
+  } else {
3756
+    currentPos = -data.currentTranslate;
3757
+  }
3758
+
3759
+  if (params.cssMode) {
3760
+    return;
3761
+  }
3762
+
3763
+  if (params.freeMode) {
3764
+    if (currentPos < -swiper.minTranslate()) {
3765
+      swiper.slideTo(swiper.activeIndex);
3766
+      return;
3767
+    }
3768
+
3769
+    if (currentPos > -swiper.maxTranslate()) {
3770
+      if (swiper.slides.length < snapGrid.length) {
3771
+        swiper.slideTo(snapGrid.length - 1);
3772
+      } else {
3773
+        swiper.slideTo(swiper.slides.length - 1);
3774
+      }
3775
+
3776
+      return;
3777
+    }
3778
+
3779
+    if (params.freeModeMomentum) {
3780
+      if (data.velocities.length > 1) {
3781
+        var lastMoveEvent = data.velocities.pop();
3782
+        var velocityEvent = data.velocities.pop();
3783
+        var distance = lastMoveEvent.position - velocityEvent.position;
3784
+        var time = lastMoveEvent.time - velocityEvent.time;
3785
+        swiper.velocity = distance / time;
3786
+        swiper.velocity /= 2;
3787
+
3788
+        if (Math.abs(swiper.velocity) < params.freeModeMinimumVelocity) {
3789
+          swiper.velocity = 0;
3790
+        } // this implies that the user stopped moving a finger then released.
3791
+        // There would be no events with distance zero, so the last event is stale.
3792
+
3793
+
3794
+        if (time > 150 || now() - lastMoveEvent.time > 300) {
3795
+          swiper.velocity = 0;
3796
+        }
3797
+      } else {
3798
+        swiper.velocity = 0;
3799
+      }
3800
+
3801
+      swiper.velocity *= params.freeModeMomentumVelocityRatio;
3802
+      data.velocities.length = 0;
3803
+      var momentumDuration = 1000 * params.freeModeMomentumRatio;
3804
+      var momentumDistance = swiper.velocity * momentumDuration;
3805
+      var newPosition = swiper.translate + momentumDistance;
3806
+      if (rtl) newPosition = -newPosition;
3807
+      var doBounce = false;
3808
+      var afterBouncePosition;
3809
+      var bounceAmount = Math.abs(swiper.velocity) * 20 * params.freeModeMomentumBounceRatio;
3810
+      var needsLoopFix;
3811
+
3812
+      if (newPosition < swiper.maxTranslate()) {
3813
+        if (params.freeModeMomentumBounce) {
3814
+          if (newPosition + swiper.maxTranslate() < -bounceAmount) {
3815
+            newPosition = swiper.maxTranslate() - bounceAmount;
3816
+          }
3817
+
3818
+          afterBouncePosition = swiper.maxTranslate();
3819
+          doBounce = true;
3820
+          data.allowMomentumBounce = true;
3821
+        } else {
3822
+          newPosition = swiper.maxTranslate();
3823
+        }
3824
+
3825
+        if (params.loop && params.centeredSlides) needsLoopFix = true;
3826
+      } else if (newPosition > swiper.minTranslate()) {
3827
+        if (params.freeModeMomentumBounce) {
3828
+          if (newPosition - swiper.minTranslate() > bounceAmount) {
3829
+            newPosition = swiper.minTranslate() + bounceAmount;
3830
+          }
3831
+
3832
+          afterBouncePosition = swiper.minTranslate();
3833
+          doBounce = true;
3834
+          data.allowMomentumBounce = true;
3835
+        } else {
3836
+          newPosition = swiper.minTranslate();
3837
+        }
3838
+
3839
+        if (params.loop && params.centeredSlides) needsLoopFix = true;
3840
+      } else if (params.freeModeSticky) {
3841
+        var nextSlide;
3842
+
3843
+        for (var j = 0; j < snapGrid.length; j += 1) {
3844
+          if (snapGrid[j] > -newPosition) {
3845
+            nextSlide = j;
3846
+            break;
3847
+          }
3848
+        }
3849
+
3850
+        if (Math.abs(snapGrid[nextSlide] - newPosition) < Math.abs(snapGrid[nextSlide - 1] - newPosition) || swiper.swipeDirection === 'next') {
3851
+          newPosition = snapGrid[nextSlide];
3852
+        } else {
3853
+          newPosition = snapGrid[nextSlide - 1];
3854
+        }
3855
+
3856
+        newPosition = -newPosition;
3857
+      }
3858
+
3859
+      if (needsLoopFix) {
3860
+        swiper.once('transitionEnd', function () {
3861
+          swiper.loopFix();
3862
+        });
3863
+      } // Fix duration
3864
+
3865
+
3866
+      if (swiper.velocity !== 0) {
3867
+        if (rtl) {
3868
+          momentumDuration = Math.abs((-newPosition - swiper.translate) / swiper.velocity);
3869
+        } else {
3870
+          momentumDuration = Math.abs((newPosition - swiper.translate) / swiper.velocity);
3871
+        }
3872
+
3873
+        if (params.freeModeSticky) {
3874
+          // If freeModeSticky is active and the user ends a swipe with a slow-velocity
3875
+          // event, then durations can be 20+ seconds to slide one (or zero!) slides.
3876
+          // It's easy to see this when simulating touch with mouse events. To fix this,
3877
+          // limit single-slide swipes to the default slide duration. This also has the
3878
+          // nice side effect of matching slide speed if the user stopped moving before
3879
+          // lifting finger or mouse vs. moving slowly before lifting the finger/mouse.
3880
+          // For faster swipes, also apply limits (albeit higher ones).
3881
+          var moveDistance = Math.abs((rtl ? -newPosition : newPosition) - swiper.translate);
3882
+          var currentSlideSize = swiper.slidesSizesGrid[swiper.activeIndex];
3883
+
3884
+          if (moveDistance < currentSlideSize) {
3885
+            momentumDuration = params.speed;
3886
+          } else if (moveDistance < 2 * currentSlideSize) {
3887
+            momentumDuration = params.speed * 1.5;
3888
+          } else {
3889
+            momentumDuration = params.speed * 2.5;
3890
+          }
3891
+        }
3892
+      } else if (params.freeModeSticky) {
3893
+        swiper.slideToClosest();
3894
+        return;
3895
+      }
3896
+
3897
+      if (params.freeModeMomentumBounce && doBounce) {
3898
+        swiper.updateProgress(afterBouncePosition);
3899
+        swiper.setTransition(momentumDuration);
3900
+        swiper.setTranslate(newPosition);
3901
+        swiper.transitionStart(true, swiper.swipeDirection);
3902
+        swiper.animating = true;
3903
+        $wrapperEl.transitionEnd(function () {
3904
+          if (!swiper || swiper.destroyed || !data.allowMomentumBounce) return;
3905
+          swiper.emit('momentumBounce');
3906
+          swiper.setTransition(params.speed);
3907
+          setTimeout(function () {
3908
+            swiper.setTranslate(afterBouncePosition);
3909
+            $wrapperEl.transitionEnd(function () {
3910
+              if (!swiper || swiper.destroyed) return;
3911
+              swiper.transitionEnd();
3912
+            });
3913
+          }, 0);
3914
+        });
3915
+      } else if (swiper.velocity) {
3916
+        swiper.updateProgress(newPosition);
3917
+        swiper.setTransition(momentumDuration);
3918
+        swiper.setTranslate(newPosition);
3919
+        swiper.transitionStart(true, swiper.swipeDirection);
3920
+
3921
+        if (!swiper.animating) {
3922
+          swiper.animating = true;
3923
+          $wrapperEl.transitionEnd(function () {
3924
+            if (!swiper || swiper.destroyed) return;
3925
+            swiper.transitionEnd();
3926
+          });
3927
+        }
3928
+      } else {
3929
+        swiper.updateProgress(newPosition);
3930
+      }
3931
+
3932
+      swiper.updateActiveIndex();
3933
+      swiper.updateSlidesClasses();
3934
+    } else if (params.freeModeSticky) {
3935
+      swiper.slideToClosest();
3936
+      return;
3937
+    }
3938
+
3939
+    if (!params.freeModeMomentum || timeDiff >= params.longSwipesMs) {
3940
+      swiper.updateProgress();
3941
+      swiper.updateActiveIndex();
3942
+      swiper.updateSlidesClasses();
3943
+    }
3944
+
3945
+    return;
3946
+  } // Find current slide
3947
+
3948
+
3949
+  var stopIndex = 0;
3950
+  var groupSize = swiper.slidesSizesGrid[0];
3951
+
3952
+  for (var i = 0; i < slidesGrid.length; i += i < params.slidesPerGroupSkip ? 1 : params.slidesPerGroup) {
3953
+    var _increment = i < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;
3954
+
3955
+    if (typeof slidesGrid[i + _increment] !== 'undefined') {
3956
+      if (currentPos >= slidesGrid[i] && currentPos < slidesGrid[i + _increment]) {
3957
+        stopIndex = i;
3958
+        groupSize = slidesGrid[i + _increment] - slidesGrid[i];
3959
+      }
3960
+    } else if (currentPos >= slidesGrid[i]) {
3961
+      stopIndex = i;
3962
+      groupSize = slidesGrid[slidesGrid.length - 1] - slidesGrid[slidesGrid.length - 2];
3963
+    }
3964
+  } // Find current slide size
3965
+
3966
+
3967
+  var ratio = (currentPos - slidesGrid[stopIndex]) / groupSize;
3968
+  var increment = stopIndex < params.slidesPerGroupSkip - 1 ? 1 : params.slidesPerGroup;
3969
+
3970
+  if (timeDiff > params.longSwipesMs) {
3971
+    // Long touches
3972
+    if (!params.longSwipes) {
3973
+      swiper.slideTo(swiper.activeIndex);
3974
+      return;
3975
+    }
3976
+
3977
+    if (swiper.swipeDirection === 'next') {
3978
+      if (ratio >= params.longSwipesRatio) swiper.slideTo(stopIndex + increment);else swiper.slideTo(stopIndex);
3979
+    }
3980
+
3981
+    if (swiper.swipeDirection === 'prev') {
3982
+      if (ratio > 1 - params.longSwipesRatio) swiper.slideTo(stopIndex + increment);else swiper.slideTo(stopIndex);
3983
+    }
3984
+  } else {
3985
+    // Short swipes
3986
+    if (!params.shortSwipes) {
3987
+      swiper.slideTo(swiper.activeIndex);
3988
+      return;
3989
+    }
3990
+
3991
+    var isNavButtonTarget = swiper.navigation && (e.target === swiper.navigation.nextEl || e.target === swiper.navigation.prevEl);
3992
+
3993
+    if (!isNavButtonTarget) {
3994
+      if (swiper.swipeDirection === 'next') {
3995
+        swiper.slideTo(stopIndex + increment);
3996
+      }
3997
+
3998
+      if (swiper.swipeDirection === 'prev') {
3999
+        swiper.slideTo(stopIndex);
4000
+      }
4001
+    } else if (e.target === swiper.navigation.nextEl) {
4002
+      swiper.slideTo(stopIndex + increment);
4003
+    } else {
4004
+      swiper.slideTo(stopIndex);
4005
+    }
4006
+  }
4007
+}
4008
+
4009
+function onResize() {
4010
+  var swiper = this;
4011
+  var params = swiper.params,
4012
+      el = swiper.el;
4013
+  if (el && el.offsetWidth === 0) return; // Breakpoints
4014
+
4015
+  if (params.breakpoints) {
4016
+    swiper.setBreakpoint();
4017
+  } // Save locks
4018
+
4019
+
4020
+  var allowSlideNext = swiper.allowSlideNext,
4021
+      allowSlidePrev = swiper.allowSlidePrev,
4022
+      snapGrid = swiper.snapGrid; // Disable locks on resize
4023
+
4024
+  swiper.allowSlideNext = true;
4025
+  swiper.allowSlidePrev = true;
4026
+  swiper.updateSize();
4027
+  swiper.updateSlides();
4028
+  swiper.updateSlidesClasses();
4029
+
4030
+  if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !swiper.isBeginning && !swiper.params.centeredSlides) {
4031
+    swiper.slideTo(swiper.slides.length - 1, 0, false, true);
4032
+  } else {
4033
+    swiper.slideTo(swiper.activeIndex, 0, false, true);
4034
+  }
4035
+
4036
+  if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {
4037
+    swiper.autoplay.run();
4038
+  } // Return locks after resize
4039
+
4040
+
4041
+  swiper.allowSlidePrev = allowSlidePrev;
4042
+  swiper.allowSlideNext = allowSlideNext;
4043
+
4044
+  if (swiper.params.watchOverflow && snapGrid !== swiper.snapGrid) {
4045
+    swiper.checkOverflow();
4046
+  }
4047
+}
4048
+
4049
+function onClick(e) {
4050
+  var swiper = this;
4051
+
4052
+  if (!swiper.allowClick) {
4053
+    if (swiper.params.preventClicks) e.preventDefault();
4054
+
4055
+    if (swiper.params.preventClicksPropagation && swiper.animating) {
4056
+      e.stopPropagation();
4057
+      e.stopImmediatePropagation();
4058
+    }
4059
+  }
4060
+}
4061
+
4062
+function onScroll() {
4063
+  var swiper = this;
4064
+  var wrapperEl = swiper.wrapperEl,
4065
+      rtlTranslate = swiper.rtlTranslate;
4066
+  swiper.previousTranslate = swiper.translate;
4067
+
4068
+  if (swiper.isHorizontal()) {
4069
+    if (rtlTranslate) {
4070
+      swiper.translate = wrapperEl.scrollWidth - wrapperEl.offsetWidth - wrapperEl.scrollLeft;
4071
+    } else {
4072
+      swiper.translate = -wrapperEl.scrollLeft;
4073
+    }
4074
+  } else {
4075
+    swiper.translate = -wrapperEl.scrollTop;
4076
+  } // eslint-disable-next-line
4077
+
4078
+
4079
+  if (swiper.translate === -0) swiper.translate = 0;
4080
+  swiper.updateActiveIndex();
4081
+  swiper.updateSlidesClasses();
4082
+  var newProgress;
4083
+  var translatesDiff = swiper.maxTranslate() - swiper.minTranslate();
4084
+
4085
+  if (translatesDiff === 0) {
4086
+    newProgress = 0;
4087
+  } else {
4088
+    newProgress = (swiper.translate - swiper.minTranslate()) / translatesDiff;
4089
+  }
4090
+
4091
+  if (newProgress !== swiper.progress) {
4092
+    swiper.updateProgress(rtlTranslate ? -swiper.translate : swiper.translate);
4093
+  }
4094
+
4095
+  swiper.emit('setTranslate', swiper.translate, false);
4096
+}
4097
+
4098
+var dummyEventAttached = false;
4099
+
4100
+function dummyEventListener() {}
4101
+
4102
+function attachEvents() {
4103
+  var swiper = this;
4104
+  var document = getDocument();
4105
+  var params = swiper.params,
4106
+      touchEvents = swiper.touchEvents,
4107
+      el = swiper.el,
4108
+      wrapperEl = swiper.wrapperEl,
4109
+      device = swiper.device,
4110
+      support = swiper.support;
4111
+  swiper.onTouchStart = onTouchStart.bind(swiper);
4112
+  swiper.onTouchMove = onTouchMove.bind(swiper);
4113
+  swiper.onTouchEnd = onTouchEnd.bind(swiper);
4114
+
4115
+  if (params.cssMode) {
4116
+    swiper.onScroll = onScroll.bind(swiper);
4117
+  }
4118
+
4119
+  swiper.onClick = onClick.bind(swiper);
4120
+  var capture = !!params.nested; // Touch Events
4121
+
4122
+  if (!support.touch && support.pointerEvents) {
4123
+    el.addEventListener(touchEvents.start, swiper.onTouchStart, false);
4124
+    document.addEventListener(touchEvents.move, swiper.onTouchMove, capture);
4125
+    document.addEventListener(touchEvents.end, swiper.onTouchEnd, false);
4126
+  } else {
4127
+    if (support.touch) {
4128
+      var passiveListener = touchEvents.start === 'touchstart' && support.passiveListener && params.passiveListeners ? {
4129
+        passive: true,
4130
+        capture: false
4131
+      } : false;
4132
+      el.addEventListener(touchEvents.start, swiper.onTouchStart, passiveListener);
4133
+      el.addEventListener(touchEvents.move, swiper.onTouchMove, support.passiveListener ? {
4134
+        passive: false,
4135
+        capture: capture
4136
+      } : capture);
4137
+      el.addEventListener(touchEvents.end, swiper.onTouchEnd, passiveListener);
4138
+
4139
+      if (touchEvents.cancel) {
4140
+        el.addEventListener(touchEvents.cancel, swiper.onTouchEnd, passiveListener);
4141
+      }
4142
+
4143
+      if (!dummyEventAttached) {
4144
+        document.addEventListener('touchstart', dummyEventListener);
4145
+        dummyEventAttached = true;
4146
+      }
4147
+    }
4148
+
4149
+    if (params.simulateTouch && !device.ios && !device.android || params.simulateTouch && !support.touch && device.ios) {
4150
+      el.addEventListener('mousedown', swiper.onTouchStart, false);
4151
+      document.addEventListener('mousemove', swiper.onTouchMove, capture);
4152
+      document.addEventListener('mouseup', swiper.onTouchEnd, false);
4153
+    }
4154
+  } // Prevent Links Clicks
4155
+
4156
+
4157
+  if (params.preventClicks || params.preventClicksPropagation) {
4158
+    el.addEventListener('click', swiper.onClick, true);
4159
+  }
4160
+
4161
+  if (params.cssMode) {
4162
+    wrapperEl.addEventListener('scroll', swiper.onScroll);
4163
+  } // Resize handler
4164
+
4165
+
4166
+  if (params.updateOnWindowResize) {
4167
+    swiper.on(device.ios || device.android ? 'resize orientationchange observerUpdate' : 'resize observerUpdate', onResize, true);
4168
+  } else {
4169
+    swiper.on('observerUpdate', onResize, true);
4170
+  }
4171
+}
4172
+
4173
+function detachEvents() {
4174
+  var swiper = this;
4175
+  var document = getDocument();
4176
+  var params = swiper.params,
4177
+      touchEvents = swiper.touchEvents,
4178
+      el = swiper.el,
4179
+      wrapperEl = swiper.wrapperEl,
4180
+      device = swiper.device,
4181
+      support = swiper.support;
4182
+  var capture = !!params.nested; // Touch Events
4183
+
4184
+  if (!support.touch && support.pointerEvents) {
4185
+    el.removeEventListener(touchEvents.start, swiper.onTouchStart, false);
4186
+    document.removeEventListener(touchEvents.move, swiper.onTouchMove, capture);
4187
+    document.removeEventListener(touchEvents.end, swiper.onTouchEnd, false);
4188
+  } else {
4189
+    if (support.touch) {
4190
+      var passiveListener = touchEvents.start === 'onTouchStart' && support.passiveListener && params.passiveListeners ? {
4191
+        passive: true,
4192
+        capture: false
4193
+      } : false;
4194
+      el.removeEventListener(touchEvents.start, swiper.onTouchStart, passiveListener);
4195
+      el.removeEventListener(touchEvents.move, swiper.onTouchMove, capture);
4196
+      el.removeEventListener(touchEvents.end, swiper.onTouchEnd, passiveListener);
4197
+
4198
+      if (touchEvents.cancel) {
4199
+        el.removeEventListener(touchEvents.cancel, swiper.onTouchEnd, passiveListener);
4200
+      }
4201
+    }
4202
+
4203
+    if (params.simulateTouch && !device.ios && !device.android || params.simulateTouch && !support.touch && device.ios) {
4204
+      el.removeEventListener('mousedown', swiper.onTouchStart, false);
4205
+      document.removeEventListener('mousemove', swiper.onTouchMove, capture);
4206
+      document.removeEventListener('mouseup', swiper.onTouchEnd, false);
4207
+    }
4208
+  } // Prevent Links Clicks
4209
+
4210
+
4211
+  if (params.preventClicks || params.preventClicksPropagation) {
4212
+    el.removeEventListener('click', swiper.onClick, true);
4213
+  }
4214
+
4215
+  if (params.cssMode) {
4216
+    wrapperEl.removeEventListener('scroll', swiper.onScroll);
4217
+  } // Resize handler
4218
+
4219
+
4220
+  swiper.off(device.ios || device.android ? 'resize orientationchange observerUpdate' : 'resize observerUpdate', onResize);
4221
+}
4222
+
4223
+var events = {
4224
+  attachEvents: attachEvents,
4225
+  detachEvents: detachEvents
4226
+};
4227
+
4228
+function setBreakpoint() {
4229
+  var swiper = this;
4230
+  var activeIndex = swiper.activeIndex,
4231
+      initialized = swiper.initialized,
4232
+      _swiper$loopedSlides = swiper.loopedSlides,
4233
+      loopedSlides = _swiper$loopedSlides === void 0 ? 0 : _swiper$loopedSlides,
4234
+      params = swiper.params,
4235
+      $el = swiper.$el;
4236
+  var breakpoints = params.breakpoints;
4237
+  if (!breakpoints || breakpoints && Object.keys(breakpoints).length === 0) return; // Get breakpoint for window width and update parameters
4238
+
4239
+  var breakpoint = swiper.getBreakpoint(breakpoints);
4240
+
4241
+  if (breakpoint && swiper.currentBreakpoint !== breakpoint) {
4242
+    var breakpointOnlyParams = breakpoint in breakpoints ? breakpoints[breakpoint] : undefined;
4243
+
4244
+    if (breakpointOnlyParams) {
4245
+      ['slidesPerView', 'spaceBetween', 'slidesPerGroup', 'slidesPerGroupSkip', 'slidesPerColumn'].forEach(function (param) {
4246
+        var paramValue = breakpointOnlyParams[param];
4247
+        if (typeof paramValue === 'undefined') return;
4248
+
4249
+        if (param === 'slidesPerView' && (paramValue === 'AUTO' || paramValue === 'auto')) {
4250
+          breakpointOnlyParams[param] = 'auto';
4251
+        } else if (param === 'slidesPerView') {
4252
+          breakpointOnlyParams[param] = parseFloat(paramValue);
4253
+        } else {
4254
+          breakpointOnlyParams[param] = parseInt(paramValue, 10);
4255
+        }
4256
+      });
4257
+    }
4258
+
4259
+    var breakpointParams = breakpointOnlyParams || swiper.originalParams;
4260
+    var wasMultiRow = params.slidesPerColumn > 1;
4261
+    var isMultiRow = breakpointParams.slidesPerColumn > 1;
4262
+
4263
+    if (wasMultiRow && !isMultiRow) {
4264
+      $el.removeClass(params.containerModifierClass + "multirow " + params.containerModifierClass + "multirow-column");
4265
+      swiper.emitContainerClasses();
4266
+    } else if (!wasMultiRow && isMultiRow) {
4267
+      $el.addClass(params.containerModifierClass + "multirow");
4268
+
4269
+      if (breakpointParams.slidesPerColumnFill === 'column') {
4270
+        $el.addClass(params.containerModifierClass + "multirow-column");
4271
+      }
4272
+
4273
+      swiper.emitContainerClasses();
4274
+    }
4275
+
4276
+    var directionChanged = breakpointParams.direction && breakpointParams.direction !== params.direction;
4277
+    var needsReLoop = params.loop && (breakpointParams.slidesPerView !== params.slidesPerView || directionChanged);
4278
+
4279
+    if (directionChanged && initialized) {
4280
+      swiper.changeDirection();
4281
+    }
4282
+
4283
+    extend$1(swiper.params, breakpointParams);
4284
+    extend$1(swiper, {
4285
+      allowTouchMove: swiper.params.allowTouchMove,
4286
+      allowSlideNext: swiper.params.allowSlideNext,
4287
+      allowSlidePrev: swiper.params.allowSlidePrev
4288
+    });
4289
+    swiper.currentBreakpoint = breakpoint;
4290
+    swiper.emit('_beforeBreakpoint', breakpointParams);
4291
+
4292
+    if (needsReLoop && initialized) {
4293
+      swiper.loopDestroy();
4294
+      swiper.loopCreate();
4295
+      swiper.updateSlides();
4296
+      swiper.slideTo(activeIndex - loopedSlides + swiper.loopedSlides, 0, false);
4297
+    }
4298
+
4299
+    swiper.emit('breakpoint', breakpointParams);
4300
+  }
4301
+}
4302
+
4303
+function getBreakpoints(breakpoints) {
4304
+  var window = getWindow(); // Get breakpoint for window width
4305
+
4306
+  if (!breakpoints) return undefined;
4307
+  var breakpoint = false;
4308
+  var points = Object.keys(breakpoints).map(function (point) {
4309
+    if (typeof point === 'string' && point.indexOf('@') === 0) {
4310
+      var minRatio = parseFloat(point.substr(1));
4311
+      var value = window.innerHeight * minRatio;
4312
+      return {
4313
+        value: value,
4314
+        point: point
4315
+      };
4316
+    }
4317
+
4318
+    return {
4319
+      value: point,
4320
+      point: point
4321
+    };
4322
+  });
4323
+  points.sort(function (a, b) {
4324
+    return parseInt(a.value, 10) - parseInt(b.value, 10);
4325
+  });
4326
+
4327
+  for (var i = 0; i < points.length; i += 1) {
4328
+    var _points$i = points[i],
4329
+        point = _points$i.point,
4330
+        value = _points$i.value;
4331
+
4332
+    if (value <= window.innerWidth) {
4333
+      breakpoint = point;
4334
+    }
4335
+  }
4336
+
4337
+  return breakpoint || 'max';
4338
+}
4339
+
4340
+var breakpoints = {
4341
+  setBreakpoint: setBreakpoint,
4342
+  getBreakpoint: getBreakpoints
4343
+};
4344
+
4345
+function addClasses() {
4346
+  var swiper = this;
4347
+  var classNames = swiper.classNames,
4348
+      params = swiper.params,
4349
+      rtl = swiper.rtl,
4350
+      $el = swiper.$el,
4351
+      device = swiper.device;
4352
+  var suffixes = [];
4353
+  suffixes.push('initialized');
4354
+  suffixes.push(params.direction);
4355
+
4356
+  if (params.freeMode) {
4357
+    suffixes.push('free-mode');
4358
+  }
4359
+
4360
+  if (params.autoHeight) {
4361
+    suffixes.push('autoheight');
4362
+  }
4363
+
4364
+  if (rtl) {
4365
+    suffixes.push('rtl');
4366
+  }
4367
+
4368
+  if (params.slidesPerColumn > 1) {
4369
+    suffixes.push('multirow');
4370
+
4371
+    if (params.slidesPerColumnFill === 'column') {
4372
+      suffixes.push('multirow-column');
4373
+    }
4374
+  }
4375
+
4376
+  if (device.android) {
4377
+    suffixes.push('android');
4378
+  }
4379
+
4380
+  if (device.ios) {
4381
+    suffixes.push('ios');
4382
+  }
4383
+
4384
+  if (params.cssMode) {
4385
+    suffixes.push('css-mode');
4386
+  }
4387
+
4388
+  suffixes.forEach(function (suffix) {
4389
+    classNames.push(params.containerModifierClass + suffix);
4390
+  });
4391
+  $el.addClass(classNames.join(' '));
4392
+  swiper.emitContainerClasses();
4393
+}
4394
+
4395
+function removeClasses() {
4396
+  var swiper = this;
4397
+  var $el = swiper.$el,
4398
+      classNames = swiper.classNames;
4399
+  $el.removeClass(classNames.join(' '));
4400
+  swiper.emitContainerClasses();
4401
+}
4402
+
4403
+var classes = {
4404
+  addClasses: addClasses,
4405
+  removeClasses: removeClasses
4406
+};
4407
+
4408
+function loadImage(imageEl, src, srcset, sizes, checkForComplete, callback) {
4409
+  var window = getWindow();
4410
+  var image;
4411
+
4412
+  function onReady() {
4413
+    if (callback) callback();
4414
+  }
4415
+
4416
+  var isPicture = $(imageEl).parent('picture')[0];
4417
+
4418
+  if (!isPicture && (!imageEl.complete || !checkForComplete)) {
4419
+    if (src) {
4420
+      image = new window.Image();
4421
+      image.onload = onReady;
4422
+      image.onerror = onReady;
4423
+
4424
+      if (sizes) {
4425
+        image.sizes = sizes;
4426
+      }
4427
+
4428
+      if (srcset) {
4429
+        image.srcset = srcset;
4430
+      }
4431
+
4432
+      if (src) {
4433
+        image.src = src;
4434
+      }
4435
+    } else {
4436
+      onReady();
4437
+    }
4438
+  } else {
4439
+    // image already loaded...
4440
+    onReady();
4441
+  }
4442
+}
4443
+
4444
+function preloadImages() {
4445
+  var swiper = this;
4446
+  swiper.imagesToLoad = swiper.$el.find('img');
4447
+
4448
+  function onReady() {
4449
+    if (typeof swiper === 'undefined' || swiper === null || !swiper || swiper.destroyed) return;
4450
+    if (swiper.imagesLoaded !== undefined) swiper.imagesLoaded += 1;
4451
+
4452
+    if (swiper.imagesLoaded === swiper.imagesToLoad.length) {
4453
+      if (swiper.params.updateOnImagesReady) swiper.update();
4454
+      swiper.emit('imagesReady');
4455
+    }
4456
+  }
4457
+
4458
+  for (var i = 0; i < swiper.imagesToLoad.length; i += 1) {
4459
+    var imageEl = swiper.imagesToLoad[i];
4460
+    swiper.loadImage(imageEl, imageEl.currentSrc || imageEl.getAttribute('src'), imageEl.srcset || imageEl.getAttribute('srcset'), imageEl.sizes || imageEl.getAttribute('sizes'), true, onReady);
4461
+  }
4462
+}
4463
+
4464
+var images = {
4465
+  loadImage: loadImage,
4466
+  preloadImages: preloadImages
4467
+};
4468
+
4469
+function checkOverflow() {
4470
+  var swiper = this;
4471
+  var params = swiper.params;
4472
+  var wasLocked = swiper.isLocked;
4473
+  var lastSlidePosition = swiper.slides.length > 0 && params.slidesOffsetBefore + params.spaceBetween * (swiper.slides.length - 1) + swiper.slides[0].offsetWidth * swiper.slides.length;
4474
+
4475
+  if (params.slidesOffsetBefore && params.slidesOffsetAfter && lastSlidePosition) {
4476
+    swiper.isLocked = lastSlidePosition <= swiper.size;
4477
+  } else {
4478
+    swiper.isLocked = swiper.snapGrid.length === 1;
4479
+  }
4480
+
4481
+  swiper.allowSlideNext = !swiper.isLocked;
4482
+  swiper.allowSlidePrev = !swiper.isLocked; // events
4483
+
4484
+  if (wasLocked !== swiper.isLocked) swiper.emit(swiper.isLocked ? 'lock' : 'unlock');
4485
+
4486
+  if (wasLocked && wasLocked !== swiper.isLocked) {
4487
+    swiper.isEnd = false;
4488
+    if (swiper.navigation) swiper.navigation.update();
4489
+  }
4490
+}
4491
+
4492
+var checkOverflow$1 = {
4493
+  checkOverflow: checkOverflow
4494
+};
4495
+
4496
+var defaults = {
4497
+  init: true,
4498
+  direction: 'horizontal',
4499
+  touchEventsTarget: 'container',
4500
+  initialSlide: 0,
4501
+  speed: 300,
4502
+  cssMode: false,
4503
+  updateOnWindowResize: true,
4504
+  nested: false,
4505
+  // Overrides
4506
+  width: null,
4507
+  height: null,
4508
+  //
4509
+  preventInteractionOnTransition: false,
4510
+  // ssr
4511
+  userAgent: null,
4512
+  url: null,
4513
+  // To support iOS's swipe-to-go-back gesture (when being used in-app).
4514
+  edgeSwipeDetection: false,
4515
+  edgeSwipeThreshold: 20,
4516
+  // Free mode
4517
+  freeMode: false,
4518
+  freeModeMomentum: true,
4519
+  freeModeMomentumRatio: 1,
4520
+  freeModeMomentumBounce: true,
4521
+  freeModeMomentumBounceRatio: 1,
4522
+  freeModeMomentumVelocityRatio: 1,
4523
+  freeModeSticky: false,
4524
+  freeModeMinimumVelocity: 0.02,
4525
+  // Autoheight
4526
+  autoHeight: false,
4527
+  // Set wrapper width
4528
+  setWrapperSize: false,
4529
+  // Virtual Translate
4530
+  virtualTranslate: false,
4531
+  // Effects
4532
+  effect: 'slide',
4533
+  // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
4534
+  // Breakpoints
4535
+  breakpoints: undefined,
4536
+  // Slides grid
4537
+  spaceBetween: 0,
4538
+  slidesPerView: 1,
4539
+  slidesPerColumn: 1,
4540
+  slidesPerColumnFill: 'column',
4541
+  slidesPerGroup: 1,
4542
+  slidesPerGroupSkip: 0,
4543
+  centeredSlides: false,
4544
+  centeredSlidesBounds: false,
4545
+  slidesOffsetBefore: 0,
4546
+  // in px
4547
+  slidesOffsetAfter: 0,
4548
+  // in px
4549
+  normalizeSlideIndex: true,
4550
+  centerInsufficientSlides: false,
4551
+  // Disable swiper and hide navigation when container not overflow
4552
+  watchOverflow: false,
4553
+  // Round length
4554
+  roundLengths: false,
4555
+  // Touches
4556
+  touchRatio: 1,
4557
+  touchAngle: 45,
4558
+  simulateTouch: true,
4559
+  shortSwipes: true,
4560
+  longSwipes: true,
4561
+  longSwipesRatio: 0.5,
4562
+  longSwipesMs: 300,
4563
+  followFinger: true,
4564
+  allowTouchMove: true,
4565
+  threshold: 0,
4566
+  touchMoveStopPropagation: false,
4567
+  touchStartPreventDefault: true,
4568
+  touchStartForcePreventDefault: false,
4569
+  touchReleaseOnEdges: false,
4570
+  // Unique Navigation Elements
4571
+  uniqueNavElements: true,
4572
+  // Resistance
4573
+  resistance: true,
4574
+  resistanceRatio: 0.85,
4575
+  // Progress
4576
+  watchSlidesProgress: false,
4577
+  watchSlidesVisibility: false,
4578
+  // Cursor
4579
+  grabCursor: false,
4580
+  // Clicks
4581
+  preventClicks: true,
4582
+  preventClicksPropagation: true,
4583
+  slideToClickedSlide: false,
4584
+  // Images
4585
+  preloadImages: true,
4586
+  updateOnImagesReady: true,
4587
+  // loop
4588
+  loop: false,
4589
+  loopAdditionalSlides: 0,
4590
+  loopedSlides: null,
4591
+  loopFillGroupWithBlank: false,
4592
+  loopPreventsSlide: true,
4593
+  // Swiping/no swiping
4594
+  allowSlidePrev: true,
4595
+  allowSlideNext: true,
4596
+  swipeHandler: null,
4597
+  // '.swipe-handler',
4598
+  noSwiping: true,
4599
+  noSwipingClass: 'swiper-no-swiping',
4600
+  noSwipingSelector: null,
4601
+  // Passive Listeners
4602
+  passiveListeners: true,
4603
+  // NS
4604
+  containerModifierClass: 'swiper-container-',
4605
+  // NEW
4606
+  slideClass: 'swiper-slide',
4607
+  slideBlankClass: 'swiper-slide-invisible-blank',
4608
+  slideActiveClass: 'swiper-slide-active',
4609
+  slideDuplicateActiveClass: 'swiper-slide-duplicate-active',
4610
+  slideVisibleClass: 'swiper-slide-visible',
4611
+  slideDuplicateClass: 'swiper-slide-duplicate',
4612
+  slideNextClass: 'swiper-slide-next',
4613
+  slideDuplicateNextClass: 'swiper-slide-duplicate-next',
4614
+  slidePrevClass: 'swiper-slide-prev',
4615
+  slideDuplicatePrevClass: 'swiper-slide-duplicate-prev',
4616
+  wrapperClass: 'swiper-wrapper',
4617
+  // Callbacks
4618
+  runCallbacksOnInit: true,
4619
+  // Internals
4620
+  _emitClasses: false
4621
+};
4622
+
4623
+var prototypes = {
4624
+  modular: modular,
4625
+  eventsEmitter: eventsEmitter,
4626
+  update: update,
4627
+  translate: translate,
4628
+  transition: transition$1,
4629
+  slide: slide,
4630
+  loop: loop,
4631
+  grabCursor: grabCursor,
4632
+  manipulation: manipulation,
4633
+  events: events,
4634
+  breakpoints: breakpoints,
4635
+  checkOverflow: checkOverflow$1,
4636
+  classes: classes,
4637
+  images: images
4638
+};
4639
+var extendedDefaults = {};
4640
+
4641
+var Swiper = /*#__PURE__*/function () {
4642
+  function Swiper() {
4643
+    var el;
4644
+    var params;
4645
+
4646
+    for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4647
+      args[_key] = arguments[_key];
4648
+    }
4649
+
4650
+    if (args.length === 1 && args[0].constructor && args[0].constructor === Object) {
4651
+      params = args[0];
4652
+    } else {
4653
+      el = args[0];
4654
+      params = args[1];
4655
+    }
4656
+
4657
+    if (!params) params = {};
4658
+    params = extend$1({}, params);
4659
+    if (el && !params.el) params.el = el; // Swiper Instance
4660
+
4661
+    var swiper = this;
4662
+    swiper.support = getSupport();
4663
+    swiper.device = getDevice({
4664
+      userAgent: params.userAgent
4665
+    });
4666
+    swiper.browser = getBrowser();
4667
+    swiper.eventsListeners = {};
4668
+    swiper.eventsAnyListeners = [];
4669
+
4670
+    if (typeof swiper.modules === 'undefined') {
4671
+      swiper.modules = {};
4672
+    }
4673
+
4674
+    Object.keys(swiper.modules).forEach(function (moduleName) {
4675
+      var module = swiper.modules[moduleName];
4676
+
4677
+      if (module.params) {
4678
+        var moduleParamName = Object.keys(module.params)[0];
4679
+        var moduleParams = module.params[moduleParamName];
4680
+        if (typeof moduleParams !== 'object' || moduleParams === null) return;
4681
+        if (!(moduleParamName in params && 'enabled' in moduleParams)) return;
4682
+
4683
+        if (params[moduleParamName] === true) {
4684
+          params[moduleParamName] = {
4685
+            enabled: true
4686
+          };
4687
+        }
4688
+
4689
+        if (typeof params[moduleParamName] === 'object' && !('enabled' in params[moduleParamName])) {
4690
+          params[moduleParamName].enabled = true;
4691
+        }
4692
+
4693
+        if (!params[moduleParamName]) params[moduleParamName] = {
4694
+          enabled: false
4695
+        };
4696
+      }
4697
+    }); // Extend defaults with modules params
4698
+
4699
+    var swiperParams = extend$1({}, defaults);
4700
+    swiper.useParams(swiperParams); // Extend defaults with passed params
4701
+
4702
+    swiper.params = extend$1({}, swiperParams, extendedDefaults, params);
4703
+    swiper.originalParams = extend$1({}, swiper.params);
4704
+    swiper.passedParams = extend$1({}, params); // add event listeners
4705
+
4706
+    if (swiper.params && swiper.params.on) {
4707
+      Object.keys(swiper.params.on).forEach(function (eventName) {
4708
+        swiper.on(eventName, swiper.params.on[eventName]);
4709
+      });
4710
+    }
4711
+
4712
+    if (swiper.params && swiper.params.onAny) {
4713
+      swiper.onAny(swiper.params.onAny);
4714
+    } // Save Dom lib
4715
+
4716
+
4717
+    swiper.$ = $; // Find el
4718
+
4719
+    var $el = $(swiper.params.el);
4720
+    el = $el[0];
4721
+
4722
+    if (!el) {
4723
+      return undefined;
4724
+    }
4725
+
4726
+    if ($el.length > 1) {
4727
+      var swipers = [];
4728
+      $el.each(function (containerEl) {
4729
+        var newParams = extend$1({}, params, {
4730
+          el: containerEl
4731
+        });
4732
+        swipers.push(new Swiper(newParams));
4733
+      });
4734
+      return swipers;
4735
+    }
4736
+
4737
+    el.swiper = swiper; // Find Wrapper
4738
+
4739
+    var $wrapperEl;
4740
+
4741
+    if (el && el.shadowRoot && el.shadowRoot.querySelector) {
4742
+      $wrapperEl = $(el.shadowRoot.querySelector("." + swiper.params.wrapperClass)); // Children needs to return slot items
4743
+
4744
+      $wrapperEl.children = function (options) {
4745
+        return $el.children(options);
4746
+      };
4747
+    } else {
4748
+      $wrapperEl = $el.children("." + swiper.params.wrapperClass);
4749
+    } // Extend Swiper
4750
+
4751
+
4752
+    extend$1(swiper, {
4753
+      $el: $el,
4754
+      el: el,
4755
+      $wrapperEl: $wrapperEl,
4756
+      wrapperEl: $wrapperEl[0],
4757
+      // Classes
4758
+      classNames: [],
4759
+      // Slides
4760
+      slides: $(),
4761
+      slidesGrid: [],
4762
+      snapGrid: [],
4763
+      slidesSizesGrid: [],
4764
+      // isDirection
4765
+      isHorizontal: function isHorizontal() {
4766
+        return swiper.params.direction === 'horizontal';
4767
+      },
4768
+      isVertical: function isVertical() {
4769
+        return swiper.params.direction === 'vertical';
4770
+      },
4771
+      // RTL
4772
+      rtl: el.dir.toLowerCase() === 'rtl' || $el.css('direction') === 'rtl',
4773
+      rtlTranslate: swiper.params.direction === 'horizontal' && (el.dir.toLowerCase() === 'rtl' || $el.css('direction') === 'rtl'),
4774
+      wrongRTL: $wrapperEl.css('display') === '-webkit-box',
4775
+      // Indexes
4776
+      activeIndex: 0,
4777
+      realIndex: 0,
4778
+      //
4779
+      isBeginning: true,
4780
+      isEnd: false,
4781
+      // Props
4782
+      translate: 0,
4783
+      previousTranslate: 0,
4784
+      progress: 0,
4785
+      velocity: 0,
4786
+      animating: false,
4787
+      // Locks
4788
+      allowSlideNext: swiper.params.allowSlideNext,
4789
+      allowSlidePrev: swiper.params.allowSlidePrev,
4790
+      // Touch Events
4791
+      touchEvents: function touchEvents() {
4792
+        var touch = ['touchstart', 'touchmove', 'touchend', 'touchcancel'];
4793
+        var desktop = ['mousedown', 'mousemove', 'mouseup'];
4794
+
4795
+        if (swiper.support.pointerEvents) {
4796
+          desktop = ['pointerdown', 'pointermove', 'pointerup'];
4797
+        }
4798
+
4799
+        swiper.touchEventsTouch = {
4800
+          start: touch[0],
4801
+          move: touch[1],
4802
+          end: touch[2],
4803
+          cancel: touch[3]
4804
+        };
4805
+        swiper.touchEventsDesktop = {
4806
+          start: desktop[0],
4807
+          move: desktop[1],
4808
+          end: desktop[2]
4809
+        };
4810
+        return swiper.support.touch || !swiper.params.simulateTouch ? swiper.touchEventsTouch : swiper.touchEventsDesktop;
4811
+      }(),
4812
+      touchEventsData: {
4813
+        isTouched: undefined,
4814
+        isMoved: undefined,
4815
+        allowTouchCallbacks: undefined,
4816
+        touchStartTime: undefined,
4817
+        isScrolling: undefined,
4818
+        currentTranslate: undefined,
4819
+        startTranslate: undefined,
4820
+        allowThresholdMove: undefined,
4821
+        // Form elements to match
4822
+        formElements: 'input, select, option, textarea, button, video, label',
4823
+        // Last click time
4824
+        lastClickTime: now(),
4825
+        clickTimeout: undefined,
4826
+        // Velocities
4827
+        velocities: [],
4828
+        allowMomentumBounce: undefined,
4829
+        isTouchEvent: undefined,
4830
+        startMoving: undefined
4831
+      },
4832
+      // Clicks
4833
+      allowClick: true,
4834
+      // Touches
4835
+      allowTouchMove: swiper.params.allowTouchMove,
4836
+      touches: {
4837
+        startX: 0,
4838
+        startY: 0,
4839
+        currentX: 0,
4840
+        currentY: 0,
4841
+        diff: 0
4842
+      },
4843
+      // Images
4844
+      imagesToLoad: [],
4845
+      imagesLoaded: 0
4846
+    }); // Install Modules
4847
+
4848
+    swiper.useModules();
4849
+    swiper.emit('_swiper'); // Init
4850
+
4851
+    if (swiper.params.init) {
4852
+      swiper.init();
4853
+    } // Return app instance
4854
+
4855
+
4856
+    return swiper;
4857
+  }
4858
+
4859
+  var _proto = Swiper.prototype;
4860
+
4861
+  _proto.emitContainerClasses = function emitContainerClasses() {
4862
+    var swiper = this;
4863
+    if (!swiper.params._emitClasses || !swiper.el) return;
4864
+    var classes = swiper.el.className.split(' ').filter(function (className) {
4865
+      return className.indexOf('swiper-container') === 0 || className.indexOf(swiper.params.containerModifierClass) === 0;
4866
+    });
4867
+    swiper.emit('_containerClasses', classes.join(' '));
4868
+  };
4869
+
4870
+  _proto.getSlideClasses = function getSlideClasses(slideEl) {
4871
+    var swiper = this;
4872
+    return slideEl.className.split(' ').filter(function (className) {
4873
+      return className.indexOf('swiper-slide') === 0 || className.indexOf(swiper.params.slideClass) === 0;
4874
+    }).join(' ');
4875
+  };
4876
+
4877
+  _proto.emitSlidesClasses = function emitSlidesClasses() {
4878
+    var swiper = this;
4879
+    if (!swiper.params._emitClasses || !swiper.el) return;
4880
+    swiper.slides.each(function (slideEl) {
4881
+      var classNames = swiper.getSlideClasses(slideEl);
4882
+      swiper.emit('_slideClass', slideEl, classNames);
4883
+    });
4884
+  };
4885
+
4886
+  _proto.slidesPerViewDynamic = function slidesPerViewDynamic() {
4887
+    var swiper = this;
4888
+    var params = swiper.params,
4889
+        slides = swiper.slides,
4890
+        slidesGrid = swiper.slidesGrid,
4891
+        swiperSize = swiper.size,
4892
+        activeIndex = swiper.activeIndex;
4893
+    var spv = 1;
4894
+
4895
+    if (params.centeredSlides) {
4896
+      var slideSize = slides[activeIndex].swiperSlideSize;
4897
+      var breakLoop;
4898
+
4899
+      for (var i = activeIndex + 1; i < slides.length; i += 1) {
4900
+        if (slides[i] && !breakLoop) {
4901
+          slideSize += slides[i].swiperSlideSize;
4902
+          spv += 1;
4903
+          if (slideSize > swiperSize) breakLoop = true;
4904
+        }
4905
+      }
4906
+
4907
+      for (var _i = activeIndex - 1; _i >= 0; _i -= 1) {
4908
+        if (slides[_i] && !breakLoop) {
4909
+          slideSize += slides[_i].swiperSlideSize;
4910
+          spv += 1;
4911
+          if (slideSize > swiperSize) breakLoop = true;
4912
+        }
4913
+      }
4914
+    } else {
4915
+      for (var _i2 = activeIndex + 1; _i2 < slides.length; _i2 += 1) {
4916
+        if (slidesGrid[_i2] - slidesGrid[activeIndex] < swiperSize) {
4917
+          spv += 1;
4918
+        }
4919
+      }
4920
+    }
4921
+
4922
+    return spv;
4923
+  };
4924
+
4925
+  _proto.update = function update() {
4926
+    var swiper = this;
4927
+    if (!swiper || swiper.destroyed) return;
4928
+    var snapGrid = swiper.snapGrid,
4929
+        params = swiper.params; // Breakpoints
4930
+
4931
+    if (params.breakpoints) {
4932
+      swiper.setBreakpoint();
4933
+    }
4934
+
4935
+    swiper.updateSize();
4936
+    swiper.updateSlides();
4937
+    swiper.updateProgress();
4938
+    swiper.updateSlidesClasses();
4939
+
4940
+    function setTranslate() {
4941
+      var translateValue = swiper.rtlTranslate ? swiper.translate * -1 : swiper.translate;
4942
+      var newTranslate = Math.min(Math.max(translateValue, swiper.maxTranslate()), swiper.minTranslate());
4943
+      swiper.setTranslate(newTranslate);
4944
+      swiper.updateActiveIndex();
4945
+      swiper.updateSlidesClasses();
4946
+    }
4947
+
4948
+    var translated;
4949
+
4950
+    if (swiper.params.freeMode) {
4951
+      setTranslate();
4952
+
4953
+      if (swiper.params.autoHeight) {
4954
+        swiper.updateAutoHeight();
4955
+      }
4956
+    } else {
4957
+      if ((swiper.params.slidesPerView === 'auto' || swiper.params.slidesPerView > 1) && swiper.isEnd && !swiper.params.centeredSlides) {
4958
+        translated = swiper.slideTo(swiper.slides.length - 1, 0, false, true);
4959
+      } else {
4960
+        translated = swiper.slideTo(swiper.activeIndex, 0, false, true);
4961
+      }
4962
+
4963
+      if (!translated) {
4964
+        setTranslate();
4965
+      }
4966
+    }
4967
+
4968
+    if (params.watchOverflow && snapGrid !== swiper.snapGrid) {
4969
+      swiper.checkOverflow();
4970
+    }
4971
+
4972
+    swiper.emit('update');
4973
+  };
4974
+
4975
+  _proto.changeDirection = function changeDirection(newDirection, needUpdate) {
4976
+    if (needUpdate === void 0) {
4977
+      needUpdate = true;
4978
+    }
4979
+
4980
+    var swiper = this;
4981
+    var currentDirection = swiper.params.direction;
4982
+
4983
+    if (!newDirection) {
4984
+      // eslint-disable-next-line
4985
+      newDirection = currentDirection === 'horizontal' ? 'vertical' : 'horizontal';
4986
+    }
4987
+
4988
+    if (newDirection === currentDirection || newDirection !== 'horizontal' && newDirection !== 'vertical') {
4989
+      return swiper;
4990
+    }
4991
+
4992
+    swiper.$el.removeClass("" + swiper.params.containerModifierClass + currentDirection).addClass("" + swiper.params.containerModifierClass + newDirection);
4993
+    swiper.emitContainerClasses();
4994
+    swiper.params.direction = newDirection;
4995
+    swiper.slides.each(function (slideEl) {
4996
+      if (newDirection === 'vertical') {
4997
+        slideEl.style.width = '';
4998
+      } else {
4999
+        slideEl.style.height = '';
5000
+      }
5001
+    });
5002
+    swiper.emit('changeDirection');
5003
+    if (needUpdate) swiper.update();
5004
+    return swiper;
5005
+  };
5006
+
5007
+  _proto.init = function init() {
5008
+    var swiper = this;
5009
+    if (swiper.initialized) return;
5010
+    swiper.emit('beforeInit'); // Set breakpoint
5011
+
5012
+    if (swiper.params.breakpoints) {
5013
+      swiper.setBreakpoint();
5014
+    } // Add Classes
5015
+
5016
+
5017
+    swiper.addClasses(); // Create loop
5018
+
5019
+    if (swiper.params.loop) {
5020
+      swiper.loopCreate();
5021
+    } // Update size
5022
+
5023
+
5024
+    swiper.updateSize(); // Update slides
5025
+
5026
+    swiper.updateSlides();
5027
+
5028
+    if (swiper.params.watchOverflow) {
5029
+      swiper.checkOverflow();
5030
+    } // Set Grab Cursor
5031
+
5032
+
5033
+    if (swiper.params.grabCursor) {
5034
+      swiper.setGrabCursor();
5035
+    }
5036
+
5037
+    if (swiper.params.preloadImages) {
5038
+      swiper.preloadImages();
5039
+    } // Slide To Initial Slide
5040
+
5041
+
5042
+    if (swiper.params.loop) {
5043
+      swiper.slideTo(swiper.params.initialSlide + swiper.loopedSlides, 0, swiper.params.runCallbacksOnInit);
5044
+    } else {
5045
+      swiper.slideTo(swiper.params.initialSlide, 0, swiper.params.runCallbacksOnInit);
5046
+    } // Attach events
5047
+
5048
+
5049
+    swiper.attachEvents(); // Init Flag
5050
+
5051
+    swiper.initialized = true; // Emit
5052
+
5053
+    swiper.emit('init');
5054
+    swiper.emit('afterInit');
5055
+  };
5056
+
5057
+  _proto.destroy = function destroy(deleteInstance, cleanStyles) {
5058
+    if (deleteInstance === void 0) {
5059
+      deleteInstance = true;
5060
+    }
5061
+
5062
+    if (cleanStyles === void 0) {
5063
+      cleanStyles = true;
5064
+    }
5065
+
5066
+    var swiper = this;
5067
+    var params = swiper.params,
5068
+        $el = swiper.$el,
5069
+        $wrapperEl = swiper.$wrapperEl,
5070
+        slides = swiper.slides;
5071
+
5072
+    if (typeof swiper.params === 'undefined' || swiper.destroyed) {
5073
+      return null;
5074
+    }
5075
+
5076
+    swiper.emit('beforeDestroy'); // Init Flag
5077
+
5078
+    swiper.initialized = false; // Detach events
5079
+
5080
+    swiper.detachEvents(); // Destroy loop
5081
+
5082
+    if (params.loop) {
5083
+      swiper.loopDestroy();
5084
+    } // Cleanup styles
5085
+
5086
+
5087
+    if (cleanStyles) {
5088
+      swiper.removeClasses();
5089
+      $el.removeAttr('style');
5090
+      $wrapperEl.removeAttr('style');
5091
+
5092
+      if (slides && slides.length) {
5093
+        slides.removeClass([params.slideVisibleClass, params.slideActiveClass, params.slideNextClass, params.slidePrevClass].join(' ')).removeAttr('style').removeAttr('data-swiper-slide-index');
5094
+      }
5095
+    }
5096
+
5097
+    swiper.emit('destroy'); // Detach emitter events
5098
+
5099
+    Object.keys(swiper.eventsListeners).forEach(function (eventName) {
5100
+      swiper.off(eventName);
5101
+    });
5102
+
5103
+    if (deleteInstance !== false) {
5104
+      swiper.$el[0].swiper = null;
5105
+      deleteProps(swiper);
5106
+    }
5107
+
5108
+    swiper.destroyed = true;
5109
+    return null;
5110
+  };
5111
+
5112
+  Swiper.extendDefaults = function extendDefaults(newDefaults) {
5113
+    extend$1(extendedDefaults, newDefaults);
5114
+  };
5115
+
5116
+  Swiper.installModule = function installModule(module) {
5117
+    if (!Swiper.prototype.modules) Swiper.prototype.modules = {};
5118
+    var name = module.name || Object.keys(Swiper.prototype.modules).length + "_" + now();
5119
+    Swiper.prototype.modules[name] = module;
5120
+  };
5121
+
5122
+  Swiper.use = function use(module) {
5123
+    if (Array.isArray(module)) {
5124
+      module.forEach(function (m) {
5125
+        return Swiper.installModule(m);
5126
+      });
5127
+      return Swiper;
5128
+    }
5129
+
5130
+    Swiper.installModule(module);
5131
+    return Swiper;
5132
+  };
5133
+
5134
+  _createClass(Swiper, null, [{
5135
+    key: "extendedDefaults",
5136
+    get: function get() {
5137
+      return extendedDefaults;
5138
+    }
5139
+  }, {
5140
+    key: "defaults",
5141
+    get: function get() {
5142
+      return defaults;
5143
+    }
5144
+  }]);
5145
+
5146
+  return Swiper;
5147
+}();
5148
+
5149
+Object.keys(prototypes).forEach(function (prototypeGroup) {
5150
+  Object.keys(prototypes[prototypeGroup]).forEach(function (protoMethod) {
5151
+    Swiper.prototype[protoMethod] = prototypes[prototypeGroup][protoMethod];
5152
+  });
5153
+});
5154
+Swiper.use([Resize, Observer$1]);
5155
+
5156
+var Virtual = {
5157
+  update: function update(force) {
5158
+    var swiper = this;
5159
+    var _swiper$params = swiper.params,
5160
+        slidesPerView = _swiper$params.slidesPerView,
5161
+        slidesPerGroup = _swiper$params.slidesPerGroup,
5162
+        centeredSlides = _swiper$params.centeredSlides;
5163
+    var _swiper$params$virtua = swiper.params.virtual,
5164
+        addSlidesBefore = _swiper$params$virtua.addSlidesBefore,
5165
+        addSlidesAfter = _swiper$params$virtua.addSlidesAfter;
5166
+    var _swiper$virtual = swiper.virtual,
5167
+        previousFrom = _swiper$virtual.from,
5168
+        previousTo = _swiper$virtual.to,
5169
+        slides = _swiper$virtual.slides,
5170
+        previousSlidesGrid = _swiper$virtual.slidesGrid,
5171
+        renderSlide = _swiper$virtual.renderSlide,
5172
+        previousOffset = _swiper$virtual.offset;
5173
+    swiper.updateActiveIndex();
5174
+    var activeIndex = swiper.activeIndex || 0;
5175
+    var offsetProp;
5176
+    if (swiper.rtlTranslate) offsetProp = 'right';else offsetProp = swiper.isHorizontal() ? 'left' : 'top';
5177
+    var slidesAfter;
5178
+    var slidesBefore;
5179
+
5180
+    if (centeredSlides) {
5181
+      slidesAfter = Math.floor(slidesPerView / 2) + slidesPerGroup + addSlidesAfter;
5182
+      slidesBefore = Math.floor(slidesPerView / 2) + slidesPerGroup + addSlidesBefore;
5183
+    } else {
5184
+      slidesAfter = slidesPerView + (slidesPerGroup - 1) + addSlidesAfter;
5185
+      slidesBefore = slidesPerGroup + addSlidesBefore;
5186
+    }
5187
+
5188
+    var from = Math.max((activeIndex || 0) - slidesBefore, 0);
5189
+    var to = Math.min((activeIndex || 0) + slidesAfter, slides.length - 1);
5190
+    var offset = (swiper.slidesGrid[from] || 0) - (swiper.slidesGrid[0] || 0);
5191
+    extend$1(swiper.virtual, {
5192
+      from: from,
5193
+      to: to,
5194
+      offset: offset,
5195
+      slidesGrid: swiper.slidesGrid
5196
+    });
5197
+
5198
+    function onRendered() {
5199
+      swiper.updateSlides();
5200
+      swiper.updateProgress();
5201
+      swiper.updateSlidesClasses();
5202
+
5203
+      if (swiper.lazy && swiper.params.lazy.enabled) {
5204
+        swiper.lazy.load();
5205
+      }
5206
+    }
5207
+
5208
+    if (previousFrom === from && previousTo === to && !force) {
5209
+      if (swiper.slidesGrid !== previousSlidesGrid && offset !== previousOffset) {
5210
+        swiper.slides.css(offsetProp, offset + "px");
5211
+      }
5212
+
5213
+      swiper.updateProgress();
5214
+      return;
5215
+    }
5216
+
5217
+    if (swiper.params.virtual.renderExternal) {
5218
+      swiper.params.virtual.renderExternal.call(swiper, {
5219
+        offset: offset,
5220
+        from: from,
5221
+        to: to,
5222
+        slides: function getSlides() {
5223
+          var slidesToRender = [];
5224
+
5225
+          for (var i = from; i <= to; i += 1) {
5226
+            slidesToRender.push(slides[i]);
5227
+          }
5228
+
5229
+          return slidesToRender;
5230
+        }()
5231
+      });
5232
+
5233
+      if (swiper.params.virtual.renderExternalUpdate) {
5234
+        onRendered();
5235
+      }
5236
+
5237
+      return;
5238
+    }
5239
+
5240
+    var prependIndexes = [];
5241
+    var appendIndexes = [];
5242
+
5243
+    if (force) {
5244
+      swiper.$wrapperEl.find("." + swiper.params.slideClass).remove();
5245
+    } else {
5246
+      for (var i = previousFrom; i <= previousTo; i += 1) {
5247
+        if (i < from || i > to) {
5248
+          swiper.$wrapperEl.find("." + swiper.params.slideClass + "[data-swiper-slide-index=\"" + i + "\"]").remove();
5249
+        }
5250
+      }
5251
+    }
5252
+
5253
+    for (var _i = 0; _i < slides.length; _i += 1) {
5254
+      if (_i >= from && _i <= to) {
5255
+        if (typeof previousTo === 'undefined' || force) {
5256
+          appendIndexes.push(_i);
5257
+        } else {
5258
+          if (_i > previousTo) appendIndexes.push(_i);
5259
+          if (_i < previousFrom) prependIndexes.push(_i);
5260
+        }
5261
+      }
5262
+    }
5263
+
5264
+    appendIndexes.forEach(function (index) {
5265
+      swiper.$wrapperEl.append(renderSlide(slides[index], index));
5266
+    });
5267
+    prependIndexes.sort(function (a, b) {
5268
+      return b - a;
5269
+    }).forEach(function (index) {
5270
+      swiper.$wrapperEl.prepend(renderSlide(slides[index], index));
5271
+    });
5272
+    swiper.$wrapperEl.children('.swiper-slide').css(offsetProp, offset + "px");
5273
+    onRendered();
5274
+  },
5275
+  renderSlide: function renderSlide(slide, index) {
5276
+    var swiper = this;
5277
+    var params = swiper.params.virtual;
5278
+
5279
+    if (params.cache && swiper.virtual.cache[index]) {
5280
+      return swiper.virtual.cache[index];
5281
+    }
5282
+
5283
+    var $slideEl = params.renderSlide ? $(params.renderSlide.call(swiper, slide, index)) : $("<div class=\"" + swiper.params.slideClass + "\" data-swiper-slide-index=\"" + index + "\">" + slide + "</div>");
5284
+    if (!$slideEl.attr('data-swiper-slide-index')) $slideEl.attr('data-swiper-slide-index', index);
5285
+    if (params.cache) swiper.virtual.cache[index] = $slideEl;
5286
+    return $slideEl;
5287
+  },
5288
+  appendSlide: function appendSlide(slides) {
5289
+    var swiper = this;
5290
+
5291
+    if (typeof slides === 'object' && 'length' in slides) {
5292
+      for (var i = 0; i < slides.length; i += 1) {
5293
+        if (slides[i]) swiper.virtual.slides.push(slides[i]);
5294
+      }
5295
+    } else {
5296
+      swiper.virtual.slides.push(slides);
5297
+    }
5298
+
5299
+    swiper.virtual.update(true);
5300
+  },
5301
+  prependSlide: function prependSlide(slides) {
5302
+    var swiper = this;
5303
+    var activeIndex = swiper.activeIndex;
5304
+    var newActiveIndex = activeIndex + 1;
5305
+    var numberOfNewSlides = 1;
5306
+
5307
+    if (Array.isArray(slides)) {
5308
+      for (var i = 0; i < slides.length; i += 1) {
5309
+        if (slides[i]) swiper.virtual.slides.unshift(slides[i]);
5310
+      }
5311
+
5312
+      newActiveIndex = activeIndex + slides.length;
5313
+      numberOfNewSlides = slides.length;
5314
+    } else {
5315
+      swiper.virtual.slides.unshift(slides);
5316
+    }
5317
+
5318
+    if (swiper.params.virtual.cache) {
5319
+      var cache = swiper.virtual.cache;
5320
+      var newCache = {};
5321
+      Object.keys(cache).forEach(function (cachedIndex) {
5322
+        var $cachedEl = cache[cachedIndex];
5323
+        var cachedElIndex = $cachedEl.attr('data-swiper-slide-index');
5324
+
5325
+        if (cachedElIndex) {
5326
+          $cachedEl.attr('data-swiper-slide-index', parseInt(cachedElIndex, 10) + 1);
5327
+        }
5328
+
5329
+        newCache[parseInt(cachedIndex, 10) + numberOfNewSlides] = $cachedEl;
5330
+      });
5331
+      swiper.virtual.cache = newCache;
5332
+    }
5333
+
5334
+    swiper.virtual.update(true);
5335
+    swiper.slideTo(newActiveIndex, 0);
5336
+  },
5337
+  removeSlide: function removeSlide(slidesIndexes) {
5338
+    var swiper = this;
5339
+    if (typeof slidesIndexes === 'undefined' || slidesIndexes === null) return;
5340
+    var activeIndex = swiper.activeIndex;
5341
+
5342
+    if (Array.isArray(slidesIndexes)) {
5343
+      for (var i = slidesIndexes.length - 1; i >= 0; i -= 1) {
5344
+        swiper.virtual.slides.splice(slidesIndexes[i], 1);
5345
+
5346
+        if (swiper.params.virtual.cache) {
5347
+          delete swiper.virtual.cache[slidesIndexes[i]];
5348
+        }
5349
+
5350
+        if (slidesIndexes[i] < activeIndex) activeIndex -= 1;
5351
+        activeIndex = Math.max(activeIndex, 0);
5352
+      }
5353
+    } else {
5354
+      swiper.virtual.slides.splice(slidesIndexes, 1);
5355
+
5356
+      if (swiper.params.virtual.cache) {
5357
+        delete swiper.virtual.cache[slidesIndexes];
5358
+      }
5359
+
5360
+      if (slidesIndexes < activeIndex) activeIndex -= 1;
5361
+      activeIndex = Math.max(activeIndex, 0);
5362
+    }
5363
+
5364
+    swiper.virtual.update(true);
5365
+    swiper.slideTo(activeIndex, 0);
5366
+  },
5367
+  removeAllSlides: function removeAllSlides() {
5368
+    var swiper = this;
5369
+    swiper.virtual.slides = [];
5370
+
5371
+    if (swiper.params.virtual.cache) {
5372
+      swiper.virtual.cache = {};
5373
+    }
5374
+
5375
+    swiper.virtual.update(true);
5376
+    swiper.slideTo(0, 0);
5377
+  }
5378
+};
5379
+var Virtual$1 = {
5380
+  name: 'virtual',
5381
+  params: {
5382
+    virtual: {
5383
+      enabled: false,
5384
+      slides: [],
5385
+      cache: true,
5386
+      renderSlide: null,
5387
+      renderExternal: null,
5388
+      renderExternalUpdate: true,
5389
+      addSlidesBefore: 0,
5390
+      addSlidesAfter: 0
5391
+    }
5392
+  },
5393
+  create: function create() {
5394
+    var swiper = this;
5395
+    bindModuleMethods(swiper, {
5396
+      virtual: _extends({}, Virtual, {
5397
+        slides: swiper.params.virtual.slides,
5398
+        cache: {}
5399
+      })
5400
+    });
5401
+  },
5402
+  on: {
5403
+    beforeInit: function beforeInit(swiper) {
5404
+      if (!swiper.params.virtual.enabled) return;
5405
+      swiper.classNames.push(swiper.params.containerModifierClass + "virtual");
5406
+      var overwriteParams = {
5407
+        watchSlidesProgress: true
5408
+      };
5409
+      extend$1(swiper.params, overwriteParams);
5410
+      extend$1(swiper.originalParams, overwriteParams);
5411
+
5412
+      if (!swiper.params.initialSlide) {
5413
+        swiper.virtual.update();
5414
+      }
5415
+    },
5416
+    setTranslate: function setTranslate(swiper) {
5417
+      if (!swiper.params.virtual.enabled) return;
5418
+      swiper.virtual.update();
5419
+    }
5420
+  }
5421
+};
5422
+
5423
+var Keyboard = {
5424
+  handle: function handle(event) {
5425
+    var swiper = this;
5426
+    var window = getWindow();
5427
+    var document = getDocument();
5428
+    var rtl = swiper.rtlTranslate;
5429
+    var e = event;
5430
+    if (e.originalEvent) e = e.originalEvent; // jquery fix
5431
+
5432
+    var kc = e.keyCode || e.charCode;
5433
+    var pageUpDown = swiper.params.keyboard.pageUpDown;
5434
+    var isPageUp = pageUpDown && kc === 33;
5435
+    var isPageDown = pageUpDown && kc === 34;
5436
+    var isArrowLeft = kc === 37;
5437
+    var isArrowRight = kc === 39;
5438
+    var isArrowUp = kc === 38;
5439
+    var isArrowDown = kc === 40; // Directions locks
5440
+
5441
+    if (!swiper.allowSlideNext && (swiper.isHorizontal() && isArrowRight || swiper.isVertical() && isArrowDown || isPageDown)) {
5442
+      return false;
5443
+    }
5444
+
5445
+    if (!swiper.allowSlidePrev && (swiper.isHorizontal() && isArrowLeft || swiper.isVertical() && isArrowUp || isPageUp)) {
5446
+      return false;
5447
+    }
5448
+
5449
+    if (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey) {
5450
+      return undefined;
5451
+    }
5452
+
5453
+    if (document.activeElement && document.activeElement.nodeName && (document.activeElement.nodeName.toLowerCase() === 'input' || document.activeElement.nodeName.toLowerCase() === 'textarea')) {
5454
+      return undefined;
5455
+    }
5456
+
5457
+    if (swiper.params.keyboard.onlyInViewport && (isPageUp || isPageDown || isArrowLeft || isArrowRight || isArrowUp || isArrowDown)) {
5458
+      var inView = false; // Check that swiper should be inside of visible area of window
5459
+
5460
+      if (swiper.$el.parents("." + swiper.params.slideClass).length > 0 && swiper.$el.parents("." + swiper.params.slideActiveClass).length === 0) {
5461
+        return undefined;
5462
+      }
5463
+
5464
+      var windowWidth = window.innerWidth;
5465
+      var windowHeight = window.innerHeight;
5466
+      var swiperOffset = swiper.$el.offset();
5467
+      if (rtl) swiperOffset.left -= swiper.$el[0].scrollLeft;
5468
+      var swiperCoord = [[swiperOffset.left, swiperOffset.top], [swiperOffset.left + swiper.width, swiperOffset.top], [swiperOffset.left, swiperOffset.top + swiper.height], [swiperOffset.left + swiper.width, swiperOffset.top + swiper.height]];
5469
+
5470
+      for (var i = 0; i < swiperCoord.length; i += 1) {
5471
+        var point = swiperCoord[i];
5472
+
5473
+        if (point[0] >= 0 && point[0] <= windowWidth && point[1] >= 0 && point[1] <= windowHeight) {
5474
+          if (point[0] === 0 && point[1] === 0) continue; // eslint-disable-line
5475
+
5476
+          inView = true;
5477
+        }
5478
+      }
5479
+
5480
+      if (!inView) return undefined;
5481
+    }
5482
+
5483
+    if (swiper.isHorizontal()) {
5484
+      if (isPageUp || isPageDown || isArrowLeft || isArrowRight) {
5485
+        if (e.preventDefault) e.preventDefault();else e.returnValue = false;
5486
+      }
5487
+
5488
+      if ((isPageDown || isArrowRight) && !rtl || (isPageUp || isArrowLeft) && rtl) swiper.slideNext();
5489
+      if ((isPageUp || isArrowLeft) && !rtl || (isPageDown || isArrowRight) && rtl) swiper.slidePrev();
5490
+    } else {
5491
+      if (isPageUp || isPageDown || isArrowUp || isArrowDown) {
5492
+        if (e.preventDefault) e.preventDefault();else e.returnValue = false;
5493
+      }
5494
+
5495
+      if (isPageDown || isArrowDown) swiper.slideNext();
5496
+      if (isPageUp || isArrowUp) swiper.slidePrev();
5497
+    }
5498
+
5499
+    swiper.emit('keyPress', kc);
5500
+    return undefined;
5501
+  },
5502
+  enable: function enable() {
5503
+    var swiper = this;
5504
+    var document = getDocument();
5505
+    if (swiper.keyboard.enabled) return;
5506
+    $(document).on('keydown', swiper.keyboard.handle);
5507
+    swiper.keyboard.enabled = true;
5508
+  },
5509
+  disable: function disable() {
5510
+    var swiper = this;
5511
+    var document = getDocument();
5512
+    if (!swiper.keyboard.enabled) return;
5513
+    $(document).off('keydown', swiper.keyboard.handle);
5514
+    swiper.keyboard.enabled = false;
5515
+  }
5516
+};
5517
+var Keyboard$1 = {
5518
+  name: 'keyboard',
5519
+  params: {
5520
+    keyboard: {
5521
+      enabled: false,
5522
+      onlyInViewport: true,
5523
+      pageUpDown: true
5524
+    }
5525
+  },
5526
+  create: function create() {
5527
+    var swiper = this;
5528
+    bindModuleMethods(swiper, {
5529
+      keyboard: _extends({
5530
+        enabled: false
5531
+      }, Keyboard)
5532
+    });
5533
+  },
5534
+  on: {
5535
+    init: function init(swiper) {
5536
+      if (swiper.params.keyboard.enabled) {
5537
+        swiper.keyboard.enable();
5538
+      }
5539
+    },
5540
+    destroy: function destroy(swiper) {
5541
+      if (swiper.keyboard.enabled) {
5542
+        swiper.keyboard.disable();
5543
+      }
5544
+    }
5545
+  }
5546
+};
5547
+
5548
+function isEventSupported() {
5549
+  var document = getDocument();
5550
+  var eventName = 'onwheel';
5551
+  var isSupported = (eventName in document);
5552
+
5553
+  if (!isSupported) {
5554
+    var element = document.createElement('div');
5555
+    element.setAttribute(eventName, 'return;');
5556
+    isSupported = typeof element[eventName] === 'function';
5557
+  }
5558
+
5559
+  if (!isSupported && document.implementation && document.implementation.hasFeature && // always returns true in newer browsers as per the standard.
5560
+  // @see http://dom.spec.whatwg.org/#dom-domimplementation-hasfeature
5561
+  document.implementation.hasFeature('', '') !== true) {
5562
+    // This is the only way to test support for the `wheel` event in IE9+.
5563
+    isSupported = document.implementation.hasFeature('Events.wheel', '3.0');
5564
+  }
5565
+
5566
+  return isSupported;
5567
+}
5568
+
5569
+var Mousewheel = {
5570
+  lastScrollTime: now(),
5571
+  lastEventBeforeSnap: undefined,
5572
+  recentWheelEvents: [],
5573
+  event: function event() {
5574
+    var window = getWindow();
5575
+    if (window.navigator.userAgent.indexOf('firefox') > -1) return 'DOMMouseScroll';
5576
+    return isEventSupported() ? 'wheel' : 'mousewheel';
5577
+  },
5578
+  normalize: function normalize(e) {
5579
+    // Reasonable defaults
5580
+    var PIXEL_STEP = 10;
5581
+    var LINE_HEIGHT = 40;
5582
+    var PAGE_HEIGHT = 800;
5583
+    var sX = 0;
5584
+    var sY = 0; // spinX, spinY
5585
+
5586
+    var pX = 0;
5587
+    var pY = 0; // pixelX, pixelY
5588
+    // Legacy
5589
+
5590
+    if ('detail' in e) {
5591
+      sY = e.detail;
5592
+    }
5593
+
5594
+    if ('wheelDelta' in e) {
5595
+      sY = -e.wheelDelta / 120;
5596
+    }
5597
+
5598
+    if ('wheelDeltaY' in e) {
5599
+      sY = -e.wheelDeltaY / 120;
5600
+    }
5601
+
5602
+    if ('wheelDeltaX' in e) {
5603
+      sX = -e.wheelDeltaX / 120;
5604
+    } // side scrolling on FF with DOMMouseScroll
5605
+
5606
+
5607
+    if ('axis' in e && e.axis === e.HORIZONTAL_AXIS) {
5608
+      sX = sY;
5609
+      sY = 0;
5610
+    }
5611
+
5612
+    pX = sX * PIXEL_STEP;
5613
+    pY = sY * PIXEL_STEP;
5614
+
5615
+    if ('deltaY' in e) {
5616
+      pY = e.deltaY;
5617
+    }
5618
+
5619
+    if ('deltaX' in e) {
5620
+      pX = e.deltaX;
5621
+    }
5622
+
5623
+    if (e.shiftKey && !pX) {
5624
+      // if user scrolls with shift he wants horizontal scroll
5625
+      pX = pY;
5626
+      pY = 0;
5627
+    }
5628
+
5629
+    if ((pX || pY) && e.deltaMode) {
5630
+      if (e.deltaMode === 1) {
5631
+        // delta in LINE units
5632
+        pX *= LINE_HEIGHT;
5633
+        pY *= LINE_HEIGHT;
5634
+      } else {
5635
+        // delta in PAGE units
5636
+        pX *= PAGE_HEIGHT;
5637
+        pY *= PAGE_HEIGHT;
5638
+      }
5639
+    } // Fall-back if spin cannot be determined
5640
+
5641
+
5642
+    if (pX && !sX) {
5643
+      sX = pX < 1 ? -1 : 1;
5644
+    }
5645
+
5646
+    if (pY && !sY) {
5647
+      sY = pY < 1 ? -1 : 1;
5648
+    }
5649
+
5650
+    return {
5651
+      spinX: sX,
5652
+      spinY: sY,
5653
+      pixelX: pX,
5654
+      pixelY: pY
5655
+    };
5656
+  },
5657
+  handleMouseEnter: function handleMouseEnter() {
5658
+    var swiper = this;
5659
+    swiper.mouseEntered = true;
5660
+  },
5661
+  handleMouseLeave: function handleMouseLeave() {
5662
+    var swiper = this;
5663
+    swiper.mouseEntered = false;
5664
+  },
5665
+  handle: function handle(event) {
5666
+    var e = event;
5667
+    var disableParentSwiper = true;
5668
+    var swiper = this;
5669
+    var params = swiper.params.mousewheel;
5670
+
5671
+    if (swiper.params.cssMode) {
5672
+      e.preventDefault();
5673
+    }
5674
+
5675
+    var target = swiper.$el;
5676
+
5677
+    if (swiper.params.mousewheel.eventsTarget !== 'container') {
5678
+      target = $(swiper.params.mousewheel.eventsTarget);
5679
+    }
5680
+
5681
+    if (!swiper.mouseEntered && !target[0].contains(e.target) && !params.releaseOnEdges) return true;
5682
+    if (e.originalEvent) e = e.originalEvent; // jquery fix
5683
+
5684
+    var delta = 0;
5685
+    var rtlFactor = swiper.rtlTranslate ? -1 : 1;
5686
+    var data = Mousewheel.normalize(e);
5687
+
5688
+    if (params.forceToAxis) {
5689
+      if (swiper.isHorizontal()) {
5690
+        if (Math.abs(data.pixelX) > Math.abs(data.pixelY)) delta = -data.pixelX * rtlFactor;else return true;
5691
+      } else if (Math.abs(data.pixelY) > Math.abs(data.pixelX)) delta = -data.pixelY;else return true;
5692
+    } else {
5693
+      delta = Math.abs(data.pixelX) > Math.abs(data.pixelY) ? -data.pixelX * rtlFactor : -data.pixelY;
5694
+    }
5695
+
5696
+    if (delta === 0) return true;
5697
+    if (params.invert) delta = -delta; // Get the scroll positions
5698
+
5699
+    var positions = swiper.getTranslate() + delta * params.sensitivity;
5700
+    if (positions >= swiper.minTranslate()) positions = swiper.minTranslate();
5701
+    if (positions <= swiper.maxTranslate()) positions = swiper.maxTranslate(); // When loop is true:
5702
+    //     the disableParentSwiper will be true.
5703
+    // When loop is false:
5704
+    //     if the scroll positions is not on edge,
5705
+    //     then the disableParentSwiper will be true.
5706
+    //     if the scroll on edge positions,
5707
+    //     then the disableParentSwiper will be false.
5708
+
5709
+    disableParentSwiper = swiper.params.loop ? true : !(positions === swiper.minTranslate() || positions === swiper.maxTranslate());
5710
+    if (disableParentSwiper && swiper.params.nested) e.stopPropagation();
5711
+
5712
+    if (!swiper.params.freeMode) {
5713
+      // Register the new event in a variable which stores the relevant data
5714
+      var newEvent = {
5715
+        time: now(),
5716
+        delta: Math.abs(delta),
5717
+        direction: Math.sign(delta),
5718
+        raw: event
5719
+      }; // Keep the most recent events
5720
+
5721
+      var recentWheelEvents = swiper.mousewheel.recentWheelEvents;
5722
+
5723
+      if (recentWheelEvents.length >= 2) {
5724
+        recentWheelEvents.shift(); // only store the last N events
5725
+      }
5726
+
5727
+      var prevEvent = recentWheelEvents.length ? recentWheelEvents[recentWheelEvents.length - 1] : undefined;
5728
+      recentWheelEvents.push(newEvent); // If there is at least one previous recorded event:
5729
+      //   If direction has changed or
5730
+      //   if the scroll is quicker than the previous one:
5731
+      //     Animate the slider.
5732
+      // Else (this is the first time the wheel is moved):
5733
+      //     Animate the slider.
5734
+
5735
+      if (prevEvent) {
5736
+        if (newEvent.direction !== prevEvent.direction || newEvent.delta > prevEvent.delta || newEvent.time > prevEvent.time + 150) {
5737
+          swiper.mousewheel.animateSlider(newEvent);
5738
+        }
5739
+      } else {
5740
+        swiper.mousewheel.animateSlider(newEvent);
5741
+      } // If it's time to release the scroll:
5742
+      //   Return now so you don't hit the preventDefault.
5743
+
5744
+
5745
+      if (swiper.mousewheel.releaseScroll(newEvent)) {
5746
+        return true;
5747
+      }
5748
+    } else {
5749
+      // Freemode or scrollContainer:
5750
+      // If we recently snapped after a momentum scroll, then ignore wheel events
5751
+      // to give time for the deceleration to finish. Stop ignoring after 500 msecs
5752
+      // or if it's a new scroll (larger delta or inverse sign as last event before
5753
+      // an end-of-momentum snap).
5754
+      var _newEvent = {
5755
+        time: now(),
5756
+        delta: Math.abs(delta),
5757
+        direction: Math.sign(delta)
5758
+      };
5759
+      var lastEventBeforeSnap = swiper.mousewheel.lastEventBeforeSnap;
5760
+      var ignoreWheelEvents = lastEventBeforeSnap && _newEvent.time < lastEventBeforeSnap.time + 500 && _newEvent.delta <= lastEventBeforeSnap.delta && _newEvent.direction === lastEventBeforeSnap.direction;
5761
+
5762
+      if (!ignoreWheelEvents) {
5763
+        swiper.mousewheel.lastEventBeforeSnap = undefined;
5764
+
5765
+        if (swiper.params.loop) {
5766
+          swiper.loopFix();
5767
+        }
5768
+
5769
+        var position = swiper.getTranslate() + delta * params.sensitivity;
5770
+        var wasBeginning = swiper.isBeginning;
5771
+        var wasEnd = swiper.isEnd;
5772
+        if (position >= swiper.minTranslate()) position = swiper.minTranslate();
5773
+        if (position <= swiper.maxTranslate()) position = swiper.maxTranslate();
5774
+        swiper.setTransition(0);
5775
+        swiper.setTranslate(position);
5776
+        swiper.updateProgress();
5777
+        swiper.updateActiveIndex();
5778
+        swiper.updateSlidesClasses();
5779
+
5780
+        if (!wasBeginning && swiper.isBeginning || !wasEnd && swiper.isEnd) {
5781
+          swiper.updateSlidesClasses();
5782
+        }
5783
+
5784
+        if (swiper.params.freeModeSticky) {
5785
+          // When wheel scrolling starts with sticky (aka snap) enabled, then detect
5786
+          // the end of a momentum scroll by storing recent (N=15?) wheel events.
5787
+          // 1. do all N events have decreasing or same (absolute value) delta?
5788
+          // 2. did all N events arrive in the last M (M=500?) msecs?
5789
+          // 3. does the earliest event have an (absolute value) delta that's
5790
+          //    at least P (P=1?) larger than the most recent event's delta?
5791
+          // 4. does the latest event have a delta that's smaller than Q (Q=6?) pixels?
5792
+          // If 1-4 are "yes" then we're near the end of a momentum scroll deceleration.
5793
+          // Snap immediately and ignore remaining wheel events in this scroll.
5794
+          // See comment above for "remaining wheel events in this scroll" determination.
5795
+          // If 1-4 aren't satisfied, then wait to snap until 500ms after the last event.
5796
+          clearTimeout(swiper.mousewheel.timeout);
5797
+          swiper.mousewheel.timeout = undefined;
5798
+          var _recentWheelEvents = swiper.mousewheel.recentWheelEvents;
5799
+
5800
+          if (_recentWheelEvents.length >= 15) {
5801
+            _recentWheelEvents.shift(); // only store the last N events
5802
+
5803
+          }
5804
+
5805
+          var _prevEvent = _recentWheelEvents.length ? _recentWheelEvents[_recentWheelEvents.length - 1] : undefined;
5806
+
5807
+          var firstEvent = _recentWheelEvents[0];
5808
+
5809
+          _recentWheelEvents.push(_newEvent);
5810
+
5811
+          if (_prevEvent && (_newEvent.delta > _prevEvent.delta || _newEvent.direction !== _prevEvent.direction)) {
5812
+            // Increasing or reverse-sign delta means the user started scrolling again. Clear the wheel event log.
5813
+            _recentWheelEvents.splice(0);
5814
+          } else if (_recentWheelEvents.length >= 15 && _newEvent.time - firstEvent.time < 500 && firstEvent.delta - _newEvent.delta >= 1 && _newEvent.delta <= 6) {
5815
+            // We're at the end of the deceleration of a momentum scroll, so there's no need
5816
+            // to wait for more events. Snap ASAP on the next tick.
5817
+            // Also, because there's some remaining momentum we'll bias the snap in the
5818
+            // direction of the ongoing scroll because it's better UX for the scroll to snap
5819
+            // in the same direction as the scroll instead of reversing to snap.  Therefore,
5820
+            // if it's already scrolled more than 20% in the current direction, keep going.
5821
+            var snapToThreshold = delta > 0 ? 0.8 : 0.2;
5822
+            swiper.mousewheel.lastEventBeforeSnap = _newEvent;
5823
+
5824
+            _recentWheelEvents.splice(0);
5825
+
5826
+            swiper.mousewheel.timeout = nextTick(function () {
5827
+              swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);
5828
+            }, 0); // no delay; move on next tick
5829
+          }
5830
+
5831
+          if (!swiper.mousewheel.timeout) {
5832
+            // if we get here, then we haven't detected the end of a momentum scroll, so
5833
+            // we'll consider a scroll "complete" when there haven't been any wheel events
5834
+            // for 500ms.
5835
+            swiper.mousewheel.timeout = nextTick(function () {
5836
+              var snapToThreshold = 0.5;
5837
+              swiper.mousewheel.lastEventBeforeSnap = _newEvent;
5838
+
5839
+              _recentWheelEvents.splice(0);
5840
+
5841
+              swiper.slideToClosest(swiper.params.speed, true, undefined, snapToThreshold);
5842
+            }, 500);
5843
+          }
5844
+        } // Emit event
5845
+
5846
+
5847
+        if (!ignoreWheelEvents) swiper.emit('scroll', e); // Stop autoplay
5848
+
5849
+        if (swiper.params.autoplay && swiper.params.autoplayDisableOnInteraction) swiper.autoplay.stop(); // Return page scroll on edge positions
5850
+
5851
+        if (position === swiper.minTranslate() || position === swiper.maxTranslate()) return true;
5852
+      }
5853
+    }
5854
+
5855
+    if (e.preventDefault) e.preventDefault();else e.returnValue = false;
5856
+    return false;
5857
+  },
5858
+  animateSlider: function animateSlider(newEvent) {
5859
+    var swiper = this;
5860
+    var window = getWindow();
5861
+
5862
+    if (this.params.mousewheel.thresholdDelta && newEvent.delta < this.params.mousewheel.thresholdDelta) {
5863
+      // Prevent if delta of wheel scroll delta is below configured threshold
5864
+      return false;
5865
+    }
5866
+
5867
+    if (this.params.mousewheel.thresholdTime && now() - swiper.mousewheel.lastScrollTime < this.params.mousewheel.thresholdTime) {
5868
+      // Prevent if time between scrolls is below configured threshold
5869
+      return false;
5870
+    } // If the movement is NOT big enough and
5871
+    // if the last time the user scrolled was too close to the current one (avoid continuously triggering the slider):
5872
+    //   Don't go any further (avoid insignificant scroll movement).
5873
+
5874
+
5875
+    if (newEvent.delta >= 6 && now() - swiper.mousewheel.lastScrollTime < 60) {
5876
+      // Return false as a default
5877
+      return true;
5878
+    } // If user is scrolling towards the end:
5879
+    //   If the slider hasn't hit the latest slide or
5880
+    //   if the slider is a loop and
5881
+    //   if the slider isn't moving right now:
5882
+    //     Go to next slide and
5883
+    //     emit a scroll event.
5884
+    // Else (the user is scrolling towards the beginning) and
5885
+    // if the slider hasn't hit the first slide or
5886
+    // if the slider is a loop and
5887
+    // if the slider isn't moving right now:
5888
+    //   Go to prev slide and
5889
+    //   emit a scroll event.
5890
+
5891
+
5892
+    if (newEvent.direction < 0) {
5893
+      if ((!swiper.isEnd || swiper.params.loop) && !swiper.animating) {
5894
+        swiper.slideNext();
5895
+        swiper.emit('scroll', newEvent.raw);
5896
+      }
5897
+    } else if ((!swiper.isBeginning || swiper.params.loop) && !swiper.animating) {
5898
+      swiper.slidePrev();
5899
+      swiper.emit('scroll', newEvent.raw);
5900
+    } // If you got here is because an animation has been triggered so store the current time
5901
+
5902
+
5903
+    swiper.mousewheel.lastScrollTime = new window.Date().getTime(); // Return false as a default
5904
+
5905
+    return false;
5906
+  },
5907
+  releaseScroll: function releaseScroll(newEvent) {
5908
+    var swiper = this;
5909
+    var params = swiper.params.mousewheel;
5910
+
5911
+    if (newEvent.direction < 0) {
5912
+      if (swiper.isEnd && !swiper.params.loop && params.releaseOnEdges) {
5913
+        // Return true to animate scroll on edges
5914
+        return true;
5915
+      }
5916
+    } else if (swiper.isBeginning && !swiper.params.loop && params.releaseOnEdges) {
5917
+      // Return true to animate scroll on edges
5918
+      return true;
5919
+    }
5920
+
5921
+    return false;
5922
+  },
5923
+  enable: function enable() {
5924
+    var swiper = this;
5925
+    var event = Mousewheel.event();
5926
+
5927
+    if (swiper.params.cssMode) {
5928
+      swiper.wrapperEl.removeEventListener(event, swiper.mousewheel.handle);
5929
+      return true;
5930
+    }
5931
+
5932
+    if (!event) return false;
5933
+    if (swiper.mousewheel.enabled) return false;
5934
+    var target = swiper.$el;
5935
+
5936
+    if (swiper.params.mousewheel.eventsTarget !== 'container') {
5937
+      target = $(swiper.params.mousewheel.eventsTarget);
5938
+    }
5939
+
5940
+    target.on('mouseenter', swiper.mousewheel.handleMouseEnter);
5941
+    target.on('mouseleave', swiper.mousewheel.handleMouseLeave);
5942
+    target.on(event, swiper.mousewheel.handle);
5943
+    swiper.mousewheel.enabled = true;
5944
+    return true;
5945
+  },
5946
+  disable: function disable() {
5947
+    var swiper = this;
5948
+    var event = Mousewheel.event();
5949
+
5950
+    if (swiper.params.cssMode) {
5951
+      swiper.wrapperEl.addEventListener(event, swiper.mousewheel.handle);
5952
+      return true;
5953
+    }
5954
+
5955
+    if (!event) return false;
5956
+    if (!swiper.mousewheel.enabled) return false;
5957
+    var target = swiper.$el;
5958
+
5959
+    if (swiper.params.mousewheel.eventsTarget !== 'container') {
5960
+      target = $(swiper.params.mousewheel.eventsTarget);
5961
+    }
5962
+
5963
+    target.off(event, swiper.mousewheel.handle);
5964
+    swiper.mousewheel.enabled = false;
5965
+    return true;
5966
+  }
5967
+};
5968
+var Mousewheel$1 = {
5969
+  name: 'mousewheel',
5970
+  params: {
5971
+    mousewheel: {
5972
+      enabled: false,
5973
+      releaseOnEdges: false,
5974
+      invert: false,
5975
+      forceToAxis: false,
5976
+      sensitivity: 1,
5977
+      eventsTarget: 'container',
5978
+      thresholdDelta: null,
5979
+      thresholdTime: null
5980
+    }
5981
+  },
5982
+  create: function create() {
5983
+    var swiper = this;
5984
+    bindModuleMethods(swiper, {
5985
+      mousewheel: {
5986
+        enabled: false,
5987
+        lastScrollTime: now(),
5988
+        lastEventBeforeSnap: undefined,
5989
+        recentWheelEvents: [],
5990
+        enable: Mousewheel.enable,
5991
+        disable: Mousewheel.disable,
5992
+        handle: Mousewheel.handle,
5993
+        handleMouseEnter: Mousewheel.handleMouseEnter,
5994
+        handleMouseLeave: Mousewheel.handleMouseLeave,
5995
+        animateSlider: Mousewheel.animateSlider,
5996
+        releaseScroll: Mousewheel.releaseScroll
5997
+      }
5998
+    });
5999
+  },
6000
+  on: {
6001
+    init: function init(swiper) {
6002
+      if (!swiper.params.mousewheel.enabled && swiper.params.cssMode) {
6003
+        swiper.mousewheel.disable();
6004
+      }
6005
+
6006
+      if (swiper.params.mousewheel.enabled) swiper.mousewheel.enable();
6007
+    },
6008
+    destroy: function destroy(swiper) {
6009
+      if (swiper.params.cssMode) {
6010
+        swiper.mousewheel.enable();
6011
+      }
6012
+
6013
+      if (swiper.mousewheel.enabled) swiper.mousewheel.disable();
6014
+    }
6015
+  }
6016
+};
6017
+
6018
+var Navigation = {
6019
+  update: function update() {
6020
+    // Update Navigation Buttons
6021
+    var swiper = this;
6022
+    var params = swiper.params.navigation;
6023
+    if (swiper.params.loop) return;
6024
+    var _swiper$navigation = swiper.navigation,
6025
+        $nextEl = _swiper$navigation.$nextEl,
6026
+        $prevEl = _swiper$navigation.$prevEl;
6027
+
6028
+    if ($prevEl && $prevEl.length > 0) {
6029
+      if (swiper.isBeginning) {
6030
+        $prevEl.addClass(params.disabledClass);
6031
+      } else {
6032
+        $prevEl.removeClass(params.disabledClass);
6033
+      }
6034
+
6035
+      $prevEl[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](params.lockClass);
6036
+    }
6037
+
6038
+    if ($nextEl && $nextEl.length > 0) {
6039
+      if (swiper.isEnd) {
6040
+        $nextEl.addClass(params.disabledClass);
6041
+      } else {
6042
+        $nextEl.removeClass(params.disabledClass);
6043
+      }
6044
+
6045
+      $nextEl[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](params.lockClass);
6046
+    }
6047
+  },
6048
+  onPrevClick: function onPrevClick(e) {
6049
+    var swiper = this;
6050
+    e.preventDefault();
6051
+    if (swiper.isBeginning && !swiper.params.loop) return;
6052
+    swiper.slidePrev();
6053
+  },
6054
+  onNextClick: function onNextClick(e) {
6055
+    var swiper = this;
6056
+    e.preventDefault();
6057
+    if (swiper.isEnd && !swiper.params.loop) return;
6058
+    swiper.slideNext();
6059
+  },
6060
+  init: function init() {
6061
+    var swiper = this;
6062
+    var params = swiper.params.navigation;
6063
+    if (!(params.nextEl || params.prevEl)) return;
6064
+    var $nextEl;
6065
+    var $prevEl;
6066
+
6067
+    if (params.nextEl) {
6068
+      $nextEl = $(params.nextEl);
6069
+
6070
+      if (swiper.params.uniqueNavElements && typeof params.nextEl === 'string' && $nextEl.length > 1 && swiper.$el.find(params.nextEl).length === 1) {
6071
+        $nextEl = swiper.$el.find(params.nextEl);
6072
+      }
6073
+    }
6074
+
6075
+    if (params.prevEl) {
6076
+      $prevEl = $(params.prevEl);
6077
+
6078
+      if (swiper.params.uniqueNavElements && typeof params.prevEl === 'string' && $prevEl.length > 1 && swiper.$el.find(params.prevEl).length === 1) {
6079
+        $prevEl = swiper.$el.find(params.prevEl);
6080
+      }
6081
+    }
6082
+
6083
+    if ($nextEl && $nextEl.length > 0) {
6084
+      $nextEl.on('click', swiper.navigation.onNextClick);
6085
+    }
6086
+
6087
+    if ($prevEl && $prevEl.length > 0) {
6088
+      $prevEl.on('click', swiper.navigation.onPrevClick);
6089
+    }
6090
+
6091
+    extend$1(swiper.navigation, {
6092
+      $nextEl: $nextEl,
6093
+      nextEl: $nextEl && $nextEl[0],
6094
+      $prevEl: $prevEl,
6095
+      prevEl: $prevEl && $prevEl[0]
6096
+    });
6097
+  },
6098
+  destroy: function destroy() {
6099
+    var swiper = this;
6100
+    var _swiper$navigation2 = swiper.navigation,
6101
+        $nextEl = _swiper$navigation2.$nextEl,
6102
+        $prevEl = _swiper$navigation2.$prevEl;
6103
+
6104
+    if ($nextEl && $nextEl.length) {
6105
+      $nextEl.off('click', swiper.navigation.onNextClick);
6106
+      $nextEl.removeClass(swiper.params.navigation.disabledClass);
6107
+    }
6108
+
6109
+    if ($prevEl && $prevEl.length) {
6110
+      $prevEl.off('click', swiper.navigation.onPrevClick);
6111
+      $prevEl.removeClass(swiper.params.navigation.disabledClass);
6112
+    }
6113
+  }
6114
+};
6115
+var Navigation$1 = {
6116
+  name: 'navigation',
6117
+  params: {
6118
+    navigation: {
6119
+      nextEl: null,
6120
+      prevEl: null,
6121
+      hideOnClick: false,
6122
+      disabledClass: 'swiper-button-disabled',
6123
+      hiddenClass: 'swiper-button-hidden',
6124
+      lockClass: 'swiper-button-lock'
6125
+    }
6126
+  },
6127
+  create: function create() {
6128
+    var swiper = this;
6129
+    bindModuleMethods(swiper, {
6130
+      navigation: _extends({}, Navigation)
6131
+    });
6132
+  },
6133
+  on: {
6134
+    init: function init(swiper) {
6135
+      swiper.navigation.init();
6136
+      swiper.navigation.update();
6137
+    },
6138
+    toEdge: function toEdge(swiper) {
6139
+      swiper.navigation.update();
6140
+    },
6141
+    fromEdge: function fromEdge(swiper) {
6142
+      swiper.navigation.update();
6143
+    },
6144
+    destroy: function destroy(swiper) {
6145
+      swiper.navigation.destroy();
6146
+    },
6147
+    click: function click(swiper, e) {
6148
+      var _swiper$navigation3 = swiper.navigation,
6149
+          $nextEl = _swiper$navigation3.$nextEl,
6150
+          $prevEl = _swiper$navigation3.$prevEl;
6151
+
6152
+      if (swiper.params.navigation.hideOnClick && !$(e.target).is($prevEl) && !$(e.target).is($nextEl)) {
6153
+        var isHidden;
6154
+
6155
+        if ($nextEl) {
6156
+          isHidden = $nextEl.hasClass(swiper.params.navigation.hiddenClass);
6157
+        } else if ($prevEl) {
6158
+          isHidden = $prevEl.hasClass(swiper.params.navigation.hiddenClass);
6159
+        }
6160
+
6161
+        if (isHidden === true) {
6162
+          swiper.emit('navigationShow');
6163
+        } else {
6164
+          swiper.emit('navigationHide');
6165
+        }
6166
+
6167
+        if ($nextEl) {
6168
+          $nextEl.toggleClass(swiper.params.navigation.hiddenClass);
6169
+        }
6170
+
6171
+        if ($prevEl) {
6172
+          $prevEl.toggleClass(swiper.params.navigation.hiddenClass);
6173
+        }
6174
+      }
6175
+    }
6176
+  }
6177
+};
6178
+
6179
+var Pagination = {
6180
+  update: function update() {
6181
+    // Render || Update Pagination bullets/items
6182
+    var swiper = this;
6183
+    var rtl = swiper.rtl;
6184
+    var params = swiper.params.pagination;
6185
+    if (!params.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0) return;
6186
+    var slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;
6187
+    var $el = swiper.pagination.$el; // Current/Total
6188
+
6189
+    var current;
6190
+    var total = swiper.params.loop ? Math.ceil((slidesLength - swiper.loopedSlides * 2) / swiper.params.slidesPerGroup) : swiper.snapGrid.length;
6191
+
6192
+    if (swiper.params.loop) {
6193
+      current = Math.ceil((swiper.activeIndex - swiper.loopedSlides) / swiper.params.slidesPerGroup);
6194
+
6195
+      if (current > slidesLength - 1 - swiper.loopedSlides * 2) {
6196
+        current -= slidesLength - swiper.loopedSlides * 2;
6197
+      }
6198
+
6199
+      if (current > total - 1) current -= total;
6200
+      if (current < 0 && swiper.params.paginationType !== 'bullets') current = total + current;
6201
+    } else if (typeof swiper.snapIndex !== 'undefined') {
6202
+      current = swiper.snapIndex;
6203
+    } else {
6204
+      current = swiper.activeIndex || 0;
6205
+    } // Types
6206
+
6207
+
6208
+    if (params.type === 'bullets' && swiper.pagination.bullets && swiper.pagination.bullets.length > 0) {
6209
+      var bullets = swiper.pagination.bullets;
6210
+      var firstIndex;
6211
+      var lastIndex;
6212
+      var midIndex;
6213
+
6214
+      if (params.dynamicBullets) {
6215
+        swiper.pagination.bulletSize = bullets.eq(0)[swiper.isHorizontal() ? 'outerWidth' : 'outerHeight'](true);
6216
+        $el.css(swiper.isHorizontal() ? 'width' : 'height', swiper.pagination.bulletSize * (params.dynamicMainBullets + 4) + "px");
6217
+
6218
+        if (params.dynamicMainBullets > 1 && swiper.previousIndex !== undefined) {
6219
+          swiper.pagination.dynamicBulletIndex += current - swiper.previousIndex;
6220
+
6221
+          if (swiper.pagination.dynamicBulletIndex > params.dynamicMainBullets - 1) {
6222
+            swiper.pagination.dynamicBulletIndex = params.dynamicMainBullets - 1;
6223
+          } else if (swiper.pagination.dynamicBulletIndex < 0) {
6224
+            swiper.pagination.dynamicBulletIndex = 0;
6225
+          }
6226
+        }
6227
+
6228
+        firstIndex = current - swiper.pagination.dynamicBulletIndex;
6229
+        lastIndex = firstIndex + (Math.min(bullets.length, params.dynamicMainBullets) - 1);
6230
+        midIndex = (lastIndex + firstIndex) / 2;
6231
+      }
6232
+
6233
+      bullets.removeClass(params.bulletActiveClass + " " + params.bulletActiveClass + "-next " + params.bulletActiveClass + "-next-next " + params.bulletActiveClass + "-prev " + params.bulletActiveClass + "-prev-prev " + params.bulletActiveClass + "-main");
6234
+
6235
+      if ($el.length > 1) {
6236
+        bullets.each(function (bullet) {
6237
+          var $bullet = $(bullet);
6238
+          var bulletIndex = $bullet.index();
6239
+
6240
+          if (bulletIndex === current) {
6241
+            $bullet.addClass(params.bulletActiveClass);
6242
+          }
6243
+
6244
+          if (params.dynamicBullets) {
6245
+            if (bulletIndex >= firstIndex && bulletIndex <= lastIndex) {
6246
+              $bullet.addClass(params.bulletActiveClass + "-main");
6247
+            }
6248
+
6249
+            if (bulletIndex === firstIndex) {
6250
+              $bullet.prev().addClass(params.bulletActiveClass + "-prev").prev().addClass(params.bulletActiveClass + "-prev-prev");
6251
+            }
6252
+
6253
+            if (bulletIndex === lastIndex) {
6254
+              $bullet.next().addClass(params.bulletActiveClass + "-next").next().addClass(params.bulletActiveClass + "-next-next");
6255
+            }
6256
+          }
6257
+        });
6258
+      } else {
6259
+        var $bullet = bullets.eq(current);
6260
+        var bulletIndex = $bullet.index();
6261
+        $bullet.addClass(params.bulletActiveClass);
6262
+
6263
+        if (params.dynamicBullets) {
6264
+          var $firstDisplayedBullet = bullets.eq(firstIndex);
6265
+          var $lastDisplayedBullet = bullets.eq(lastIndex);
6266
+
6267
+          for (var i = firstIndex; i <= lastIndex; i += 1) {
6268
+            bullets.eq(i).addClass(params.bulletActiveClass + "-main");
6269
+          }
6270
+
6271
+          if (swiper.params.loop) {
6272
+            if (bulletIndex >= bullets.length - params.dynamicMainBullets) {
6273
+              for (var _i = params.dynamicMainBullets; _i >= 0; _i -= 1) {
6274
+                bullets.eq(bullets.length - _i).addClass(params.bulletActiveClass + "-main");
6275
+              }
6276
+
6277
+              bullets.eq(bullets.length - params.dynamicMainBullets - 1).addClass(params.bulletActiveClass + "-prev");
6278
+            } else {
6279
+              $firstDisplayedBullet.prev().addClass(params.bulletActiveClass + "-prev").prev().addClass(params.bulletActiveClass + "-prev-prev");
6280
+              $lastDisplayedBullet.next().addClass(params.bulletActiveClass + "-next").next().addClass(params.bulletActiveClass + "-next-next");
6281
+            }
6282
+          } else {
6283
+            $firstDisplayedBullet.prev().addClass(params.bulletActiveClass + "-prev").prev().addClass(params.bulletActiveClass + "-prev-prev");
6284
+            $lastDisplayedBullet.next().addClass(params.bulletActiveClass + "-next").next().addClass(params.bulletActiveClass + "-next-next");
6285
+          }
6286
+        }
6287
+      }
6288
+
6289
+      if (params.dynamicBullets) {
6290
+        var dynamicBulletsLength = Math.min(bullets.length, params.dynamicMainBullets + 4);
6291
+        var bulletsOffset = (swiper.pagination.bulletSize * dynamicBulletsLength - swiper.pagination.bulletSize) / 2 - midIndex * swiper.pagination.bulletSize;
6292
+        var offsetProp = rtl ? 'right' : 'left';
6293
+        bullets.css(swiper.isHorizontal() ? offsetProp : 'top', bulletsOffset + "px");
6294
+      }
6295
+    }
6296
+
6297
+    if (params.type === 'fraction') {
6298
+      $el.find("." + params.currentClass).text(params.formatFractionCurrent(current + 1));
6299
+      $el.find("." + params.totalClass).text(params.formatFractionTotal(total));
6300
+    }
6301
+
6302
+    if (params.type === 'progressbar') {
6303
+      var progressbarDirection;
6304
+
6305
+      if (params.progressbarOpposite) {
6306
+        progressbarDirection = swiper.isHorizontal() ? 'vertical' : 'horizontal';
6307
+      } else {
6308
+        progressbarDirection = swiper.isHorizontal() ? 'horizontal' : 'vertical';
6309
+      }
6310
+
6311
+      var scale = (current + 1) / total;
6312
+      var scaleX = 1;
6313
+      var scaleY = 1;
6314
+
6315
+      if (progressbarDirection === 'horizontal') {
6316
+        scaleX = scale;
6317
+      } else {
6318
+        scaleY = scale;
6319
+      }
6320
+
6321
+      $el.find("." + params.progressbarFillClass).transform("translate3d(0,0,0) scaleX(" + scaleX + ") scaleY(" + scaleY + ")").transition(swiper.params.speed);
6322
+    }
6323
+
6324
+    if (params.type === 'custom' && params.renderCustom) {
6325
+      $el.html(params.renderCustom(swiper, current + 1, total));
6326
+      swiper.emit('paginationRender', $el[0]);
6327
+    } else {
6328
+      swiper.emit('paginationUpdate', $el[0]);
6329
+    }
6330
+
6331
+    $el[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](params.lockClass);
6332
+  },
6333
+  render: function render() {
6334
+    // Render Container
6335
+    var swiper = this;
6336
+    var params = swiper.params.pagination;
6337
+    if (!params.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0) return;
6338
+    var slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;
6339
+    var $el = swiper.pagination.$el;
6340
+    var paginationHTML = '';
6341
+
6342
+    if (params.type === 'bullets') {
6343
+      var numberOfBullets = swiper.params.loop ? Math.ceil((slidesLength - swiper.loopedSlides * 2) / swiper.params.slidesPerGroup) : swiper.snapGrid.length;
6344
+
6345
+      for (var i = 0; i < numberOfBullets; i += 1) {
6346
+        if (params.renderBullet) {
6347
+          paginationHTML += params.renderBullet.call(swiper, i, params.bulletClass);
6348
+        } else {
6349
+          paginationHTML += "<" + params.bulletElement + " class=\"" + params.bulletClass + "\"></" + params.bulletElement + ">";
6350
+        }
6351
+      }
6352
+
6353
+      $el.html(paginationHTML);
6354
+      swiper.pagination.bullets = $el.find("." + params.bulletClass.replace(/ /g, '.'));
6355
+    }
6356
+
6357
+    if (params.type === 'fraction') {
6358
+      if (params.renderFraction) {
6359
+        paginationHTML = params.renderFraction.call(swiper, params.currentClass, params.totalClass);
6360
+      } else {
6361
+        paginationHTML = "<span class=\"" + params.currentClass + "\"></span>" + ' / ' + ("<span class=\"" + params.totalClass + "\"></span>");
6362
+      }
6363
+
6364
+      $el.html(paginationHTML);
6365
+    }
6366
+
6367
+    if (params.type === 'progressbar') {
6368
+      if (params.renderProgressbar) {
6369
+        paginationHTML = params.renderProgressbar.call(swiper, params.progressbarFillClass);
6370
+      } else {
6371
+        paginationHTML = "<span class=\"" + params.progressbarFillClass + "\"></span>";
6372
+      }
6373
+
6374
+      $el.html(paginationHTML);
6375
+    }
6376
+
6377
+    if (params.type !== 'custom') {
6378
+      swiper.emit('paginationRender', swiper.pagination.$el[0]);
6379
+    }
6380
+  },
6381
+  init: function init() {
6382
+    var swiper = this;
6383
+    var params = swiper.params.pagination;
6384
+    if (!params.el) return;
6385
+    var $el = $(params.el);
6386
+    if ($el.length === 0) return;
6387
+
6388
+    if (swiper.params.uniqueNavElements && typeof params.el === 'string' && $el.length > 1) {
6389
+      $el = swiper.$el.find(params.el);
6390
+    }
6391
+
6392
+    if (params.type === 'bullets' && params.clickable) {
6393
+      $el.addClass(params.clickableClass);
6394
+    }
6395
+
6396
+    $el.addClass(params.modifierClass + params.type);
6397
+
6398
+    if (params.type === 'bullets' && params.dynamicBullets) {
6399
+      $el.addClass("" + params.modifierClass + params.type + "-dynamic");
6400
+      swiper.pagination.dynamicBulletIndex = 0;
6401
+
6402
+      if (params.dynamicMainBullets < 1) {
6403
+        params.dynamicMainBullets = 1;
6404
+      }
6405
+    }
6406
+
6407
+    if (params.type === 'progressbar' && params.progressbarOpposite) {
6408
+      $el.addClass(params.progressbarOppositeClass);
6409
+    }
6410
+
6411
+    if (params.clickable) {
6412
+      $el.on('click', "." + params.bulletClass.replace(/ /g, '.'), function onClick(e) {
6413
+        e.preventDefault();
6414
+        var index = $(this).index() * swiper.params.slidesPerGroup;
6415
+        if (swiper.params.loop) index += swiper.loopedSlides;
6416
+        swiper.slideTo(index);
6417
+      });
6418
+    }
6419
+
6420
+    extend$1(swiper.pagination, {
6421
+      $el: $el,
6422
+      el: $el[0]
6423
+    });
6424
+  },
6425
+  destroy: function destroy() {
6426
+    var swiper = this;
6427
+    var params = swiper.params.pagination;
6428
+    if (!params.el || !swiper.pagination.el || !swiper.pagination.$el || swiper.pagination.$el.length === 0) return;
6429
+    var $el = swiper.pagination.$el;
6430
+    $el.removeClass(params.hiddenClass);
6431
+    $el.removeClass(params.modifierClass + params.type);
6432
+    if (swiper.pagination.bullets) swiper.pagination.bullets.removeClass(params.bulletActiveClass);
6433
+
6434
+    if (params.clickable) {
6435
+      $el.off('click', "." + params.bulletClass.replace(/ /g, '.'));
6436
+    }
6437
+  }
6438
+};
6439
+var Pagination$1 = {
6440
+  name: 'pagination',
6441
+  params: {
6442
+    pagination: {
6443
+      el: null,
6444
+      bulletElement: 'span',
6445
+      clickable: false,
6446
+      hideOnClick: false,
6447
+      renderBullet: null,
6448
+      renderProgressbar: null,
6449
+      renderFraction: null,
6450
+      renderCustom: null,
6451
+      progressbarOpposite: false,
6452
+      type: 'bullets',
6453
+      // 'bullets' or 'progressbar' or 'fraction' or 'custom'
6454
+      dynamicBullets: false,
6455
+      dynamicMainBullets: 1,
6456
+      formatFractionCurrent: function formatFractionCurrent(number) {
6457
+        return number;
6458
+      },
6459
+      formatFractionTotal: function formatFractionTotal(number) {
6460
+        return number;
6461
+      },
6462
+      bulletClass: 'swiper-pagination-bullet',
6463
+      bulletActiveClass: 'swiper-pagination-bullet-active',
6464
+      modifierClass: 'swiper-pagination-',
6465
+      // NEW
6466
+      currentClass: 'swiper-pagination-current',
6467
+      totalClass: 'swiper-pagination-total',
6468
+      hiddenClass: 'swiper-pagination-hidden',
6469
+      progressbarFillClass: 'swiper-pagination-progressbar-fill',
6470
+      progressbarOppositeClass: 'swiper-pagination-progressbar-opposite',
6471
+      clickableClass: 'swiper-pagination-clickable',
6472
+      // NEW
6473
+      lockClass: 'swiper-pagination-lock'
6474
+    }
6475
+  },
6476
+  create: function create() {
6477
+    var swiper = this;
6478
+    bindModuleMethods(swiper, {
6479
+      pagination: _extends({
6480
+        dynamicBulletIndex: 0
6481
+      }, Pagination)
6482
+    });
6483
+  },
6484
+  on: {
6485
+    init: function init(swiper) {
6486
+      swiper.pagination.init();
6487
+      swiper.pagination.render();
6488
+      swiper.pagination.update();
6489
+    },
6490
+    activeIndexChange: function activeIndexChange(swiper) {
6491
+      if (swiper.params.loop) {
6492
+        swiper.pagination.update();
6493
+      } else if (typeof swiper.snapIndex === 'undefined') {
6494
+        swiper.pagination.update();
6495
+      }
6496
+    },
6497
+    snapIndexChange: function snapIndexChange(swiper) {
6498
+      if (!swiper.params.loop) {
6499
+        swiper.pagination.update();
6500
+      }
6501
+    },
6502
+    slidesLengthChange: function slidesLengthChange(swiper) {
6503
+      if (swiper.params.loop) {
6504
+        swiper.pagination.render();
6505
+        swiper.pagination.update();
6506
+      }
6507
+    },
6508
+    snapGridLengthChange: function snapGridLengthChange(swiper) {
6509
+      if (!swiper.params.loop) {
6510
+        swiper.pagination.render();
6511
+        swiper.pagination.update();
6512
+      }
6513
+    },
6514
+    destroy: function destroy(swiper) {
6515
+      swiper.pagination.destroy();
6516
+    },
6517
+    click: function click(swiper, e) {
6518
+      if (swiper.params.pagination.el && swiper.params.pagination.hideOnClick && swiper.pagination.$el.length > 0 && !$(e.target).hasClass(swiper.params.pagination.bulletClass)) {
6519
+        var isHidden = swiper.pagination.$el.hasClass(swiper.params.pagination.hiddenClass);
6520
+
6521
+        if (isHidden === true) {
6522
+          swiper.emit('paginationShow');
6523
+        } else {
6524
+          swiper.emit('paginationHide');
6525
+        }
6526
+
6527
+        swiper.pagination.$el.toggleClass(swiper.params.pagination.hiddenClass);
6528
+      }
6529
+    }
6530
+  }
6531
+};
6532
+
6533
+var Scrollbar = {
6534
+  setTranslate: function setTranslate() {
6535
+    var swiper = this;
6536
+    if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
6537
+    var scrollbar = swiper.scrollbar,
6538
+        rtl = swiper.rtlTranslate,
6539
+        progress = swiper.progress;
6540
+    var dragSize = scrollbar.dragSize,
6541
+        trackSize = scrollbar.trackSize,
6542
+        $dragEl = scrollbar.$dragEl,
6543
+        $el = scrollbar.$el;
6544
+    var params = swiper.params.scrollbar;
6545
+    var newSize = dragSize;
6546
+    var newPos = (trackSize - dragSize) * progress;
6547
+
6548
+    if (rtl) {
6549
+      newPos = -newPos;
6550
+
6551
+      if (newPos > 0) {
6552
+        newSize = dragSize - newPos;
6553
+        newPos = 0;
6554
+      } else if (-newPos + dragSize > trackSize) {
6555
+        newSize = trackSize + newPos;
6556
+      }
6557
+    } else if (newPos < 0) {
6558
+      newSize = dragSize + newPos;
6559
+      newPos = 0;
6560
+    } else if (newPos + dragSize > trackSize) {
6561
+      newSize = trackSize - newPos;
6562
+    }
6563
+
6564
+    if (swiper.isHorizontal()) {
6565
+      $dragEl.transform("translate3d(" + newPos + "px, 0, 0)");
6566
+      $dragEl[0].style.width = newSize + "px";
6567
+    } else {
6568
+      $dragEl.transform("translate3d(0px, " + newPos + "px, 0)");
6569
+      $dragEl[0].style.height = newSize + "px";
6570
+    }
6571
+
6572
+    if (params.hide) {
6573
+      clearTimeout(swiper.scrollbar.timeout);
6574
+      $el[0].style.opacity = 1;
6575
+      swiper.scrollbar.timeout = setTimeout(function () {
6576
+        $el[0].style.opacity = 0;
6577
+        $el.transition(400);
6578
+      }, 1000);
6579
+    }
6580
+  },
6581
+  setTransition: function setTransition(duration) {
6582
+    var swiper = this;
6583
+    if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
6584
+    swiper.scrollbar.$dragEl.transition(duration);
6585
+  },
6586
+  updateSize: function updateSize() {
6587
+    var swiper = this;
6588
+    if (!swiper.params.scrollbar.el || !swiper.scrollbar.el) return;
6589
+    var scrollbar = swiper.scrollbar;
6590
+    var $dragEl = scrollbar.$dragEl,
6591
+        $el = scrollbar.$el;
6592
+    $dragEl[0].style.width = '';
6593
+    $dragEl[0].style.height = '';
6594
+    var trackSize = swiper.isHorizontal() ? $el[0].offsetWidth : $el[0].offsetHeight;
6595
+    var divider = swiper.size / swiper.virtualSize;
6596
+    var moveDivider = divider * (trackSize / swiper.size);
6597
+    var dragSize;
6598
+
6599
+    if (swiper.params.scrollbar.dragSize === 'auto') {
6600
+      dragSize = trackSize * divider;
6601
+    } else {
6602
+      dragSize = parseInt(swiper.params.scrollbar.dragSize, 10);
6603
+    }
6604
+
6605
+    if (swiper.isHorizontal()) {
6606
+      $dragEl[0].style.width = dragSize + "px";
6607
+    } else {
6608
+      $dragEl[0].style.height = dragSize + "px";
6609
+    }
6610
+
6611
+    if (divider >= 1) {
6612
+      $el[0].style.display = 'none';
6613
+    } else {
6614
+      $el[0].style.display = '';
6615
+    }
6616
+
6617
+    if (swiper.params.scrollbar.hide) {
6618
+      $el[0].style.opacity = 0;
6619
+    }
6620
+
6621
+    extend$1(scrollbar, {
6622
+      trackSize: trackSize,
6623
+      divider: divider,
6624
+      moveDivider: moveDivider,
6625
+      dragSize: dragSize
6626
+    });
6627
+    scrollbar.$el[swiper.params.watchOverflow && swiper.isLocked ? 'addClass' : 'removeClass'](swiper.params.scrollbar.lockClass);
6628
+  },
6629
+  getPointerPosition: function getPointerPosition(e) {
6630
+    var swiper = this;
6631
+
6632
+    if (swiper.isHorizontal()) {
6633
+      return e.type === 'touchstart' || e.type === 'touchmove' ? e.targetTouches[0].clientX : e.clientX;
6634
+    }
6635
+
6636
+    return e.type === 'touchstart' || e.type === 'touchmove' ? e.targetTouches[0].clientY : e.clientY;
6637
+  },
6638
+  setDragPosition: function setDragPosition(e) {
6639
+    var swiper = this;
6640
+    var scrollbar = swiper.scrollbar,
6641
+        rtl = swiper.rtlTranslate;
6642
+    var $el = scrollbar.$el,
6643
+        dragSize = scrollbar.dragSize,
6644
+        trackSize = scrollbar.trackSize,
6645
+        dragStartPos = scrollbar.dragStartPos;
6646
+    var positionRatio;
6647
+    positionRatio = (scrollbar.getPointerPosition(e) - $el.offset()[swiper.isHorizontal() ? 'left' : 'top'] - (dragStartPos !== null ? dragStartPos : dragSize / 2)) / (trackSize - dragSize);
6648
+    positionRatio = Math.max(Math.min(positionRatio, 1), 0);
6649
+
6650
+    if (rtl) {
6651
+      positionRatio = 1 - positionRatio;
6652
+    }
6653
+
6654
+    var position = swiper.minTranslate() + (swiper.maxTranslate() - swiper.minTranslate()) * positionRatio;
6655
+    swiper.updateProgress(position);
6656
+    swiper.setTranslate(position);
6657
+    swiper.updateActiveIndex();
6658
+    swiper.updateSlidesClasses();
6659
+  },
6660
+  onDragStart: function onDragStart(e) {
6661
+    var swiper = this;
6662
+    var params = swiper.params.scrollbar;
6663
+    var scrollbar = swiper.scrollbar,
6664
+        $wrapperEl = swiper.$wrapperEl;
6665
+    var $el = scrollbar.$el,
6666
+        $dragEl = scrollbar.$dragEl;
6667
+    swiper.scrollbar.isTouched = true;
6668
+    swiper.scrollbar.dragStartPos = e.target === $dragEl[0] || e.target === $dragEl ? scrollbar.getPointerPosition(e) - e.target.getBoundingClientRect()[swiper.isHorizontal() ? 'left' : 'top'] : null;
6669
+    e.preventDefault();
6670
+    e.stopPropagation();
6671
+    $wrapperEl.transition(100);
6672
+    $dragEl.transition(100);
6673
+    scrollbar.setDragPosition(e);
6674
+    clearTimeout(swiper.scrollbar.dragTimeout);
6675
+    $el.transition(0);
6676
+
6677
+    if (params.hide) {
6678
+      $el.css('opacity', 1);
6679
+    }
6680
+
6681
+    if (swiper.params.cssMode) {
6682
+      swiper.$wrapperEl.css('scroll-snap-type', 'none');
6683
+    }
6684
+
6685
+    swiper.emit('scrollbarDragStart', e);
6686
+  },
6687
+  onDragMove: function onDragMove(e) {
6688
+    var swiper = this;
6689
+    var scrollbar = swiper.scrollbar,
6690
+        $wrapperEl = swiper.$wrapperEl;
6691
+    var $el = scrollbar.$el,
6692
+        $dragEl = scrollbar.$dragEl;
6693
+    if (!swiper.scrollbar.isTouched) return;
6694
+    if (e.preventDefault) e.preventDefault();else e.returnValue = false;
6695
+    scrollbar.setDragPosition(e);
6696
+    $wrapperEl.transition(0);
6697
+    $el.transition(0);
6698
+    $dragEl.transition(0);
6699
+    swiper.emit('scrollbarDragMove', e);
6700
+  },
6701
+  onDragEnd: function onDragEnd(e) {
6702
+    var swiper = this;
6703
+    var params = swiper.params.scrollbar;
6704
+    var scrollbar = swiper.scrollbar,
6705
+        $wrapperEl = swiper.$wrapperEl;
6706
+    var $el = scrollbar.$el;
6707
+    if (!swiper.scrollbar.isTouched) return;
6708
+    swiper.scrollbar.isTouched = false;
6709
+
6710
+    if (swiper.params.cssMode) {
6711
+      swiper.$wrapperEl.css('scroll-snap-type', '');
6712
+      $wrapperEl.transition('');
6713
+    }
6714
+
6715
+    if (params.hide) {
6716
+      clearTimeout(swiper.scrollbar.dragTimeout);
6717
+      swiper.scrollbar.dragTimeout = nextTick(function () {
6718
+        $el.css('opacity', 0);
6719
+        $el.transition(400);
6720
+      }, 1000);
6721
+    }
6722
+
6723
+    swiper.emit('scrollbarDragEnd', e);
6724
+
6725
+    if (params.snapOnRelease) {
6726
+      swiper.slideToClosest();
6727
+    }
6728
+  },
6729
+  enableDraggable: function enableDraggable() {
6730
+    var swiper = this;
6731
+    if (!swiper.params.scrollbar.el) return;
6732
+    var document = getDocument();
6733
+    var scrollbar = swiper.scrollbar,
6734
+        touchEventsTouch = swiper.touchEventsTouch,
6735
+        touchEventsDesktop = swiper.touchEventsDesktop,
6736
+        params = swiper.params,
6737
+        support = swiper.support;
6738
+    var $el = scrollbar.$el;
6739
+    var target = $el[0];
6740
+    var activeListener = support.passiveListener && params.passiveListeners ? {
6741
+      passive: false,
6742
+      capture: false
6743
+    } : false;
6744
+    var passiveListener = support.passiveListener && params.passiveListeners ? {
6745
+      passive: true,
6746
+      capture: false
6747
+    } : false;
6748
+
6749
+    if (!support.touch) {
6750
+      target.addEventListener(touchEventsDesktop.start, swiper.scrollbar.onDragStart, activeListener);
6751
+      document.addEventListener(touchEventsDesktop.move, swiper.scrollbar.onDragMove, activeListener);
6752
+      document.addEventListener(touchEventsDesktop.end, swiper.scrollbar.onDragEnd, passiveListener);
6753
+    } else {
6754
+      target.addEventListener(touchEventsTouch.start, swiper.scrollbar.onDragStart, activeListener);
6755
+      target.addEventListener(touchEventsTouch.move, swiper.scrollbar.onDragMove, activeListener);
6756
+      target.addEventListener(touchEventsTouch.end, swiper.scrollbar.onDragEnd, passiveListener);
6757
+    }
6758
+  },
6759
+  disableDraggable: function disableDraggable() {
6760
+    var swiper = this;
6761
+    if (!swiper.params.scrollbar.el) return;
6762
+    var document = getDocument();
6763
+    var scrollbar = swiper.scrollbar,
6764
+        touchEventsTouch = swiper.touchEventsTouch,
6765
+        touchEventsDesktop = swiper.touchEventsDesktop,
6766
+        params = swiper.params,
6767
+        support = swiper.support;
6768
+    var $el = scrollbar.$el;
6769
+    var target = $el[0];
6770
+    var activeListener = support.passiveListener && params.passiveListeners ? {
6771
+      passive: false,
6772
+      capture: false
6773
+    } : false;
6774
+    var passiveListener = support.passiveListener && params.passiveListeners ? {
6775
+      passive: true,
6776
+      capture: false
6777
+    } : false;
6778
+
6779
+    if (!support.touch) {
6780
+      target.removeEventListener(touchEventsDesktop.start, swiper.scrollbar.onDragStart, activeListener);
6781
+      document.removeEventListener(touchEventsDesktop.move, swiper.scrollbar.onDragMove, activeListener);
6782
+      document.removeEventListener(touchEventsDesktop.end, swiper.scrollbar.onDragEnd, passiveListener);
6783
+    } else {
6784
+      target.removeEventListener(touchEventsTouch.start, swiper.scrollbar.onDragStart, activeListener);
6785
+      target.removeEventListener(touchEventsTouch.move, swiper.scrollbar.onDragMove, activeListener);
6786
+      target.removeEventListener(touchEventsTouch.end, swiper.scrollbar.onDragEnd, passiveListener);
6787
+    }
6788
+  },
6789
+  init: function init() {
6790
+    var swiper = this;
6791
+    if (!swiper.params.scrollbar.el) return;
6792
+    var scrollbar = swiper.scrollbar,
6793
+        $swiperEl = swiper.$el;
6794
+    var params = swiper.params.scrollbar;
6795
+    var $el = $(params.el);
6796
+
6797
+    if (swiper.params.uniqueNavElements && typeof params.el === 'string' && $el.length > 1 && $swiperEl.find(params.el).length === 1) {
6798
+      $el = $swiperEl.find(params.el);
6799
+    }
6800
+
6801
+    var $dragEl = $el.find("." + swiper.params.scrollbar.dragClass);
6802
+
6803
+    if ($dragEl.length === 0) {
6804
+      $dragEl = $("<div class=\"" + swiper.params.scrollbar.dragClass + "\"></div>");
6805
+      $el.append($dragEl);
6806
+    }
6807
+
6808
+    extend$1(scrollbar, {
6809
+      $el: $el,
6810
+      el: $el[0],
6811
+      $dragEl: $dragEl,
6812
+      dragEl: $dragEl[0]
6813
+    });
6814
+
6815
+    if (params.draggable) {
6816
+      scrollbar.enableDraggable();
6817
+    }
6818
+  },
6819
+  destroy: function destroy() {
6820
+    var swiper = this;
6821
+    swiper.scrollbar.disableDraggable();
6822
+  }
6823
+};
6824
+var Scrollbar$1 = {
6825
+  name: 'scrollbar',
6826
+  params: {
6827
+    scrollbar: {
6828
+      el: null,
6829
+      dragSize: 'auto',
6830
+      hide: false,
6831
+      draggable: false,
6832
+      snapOnRelease: true,
6833
+      lockClass: 'swiper-scrollbar-lock',
6834
+      dragClass: 'swiper-scrollbar-drag'
6835
+    }
6836
+  },
6837
+  create: function create() {
6838
+    var swiper = this;
6839
+    bindModuleMethods(swiper, {
6840
+      scrollbar: _extends({
6841
+        isTouched: false,
6842
+        timeout: null,
6843
+        dragTimeout: null
6844
+      }, Scrollbar)
6845
+    });
6846
+  },
6847
+  on: {
6848
+    init: function init(swiper) {
6849
+      swiper.scrollbar.init();
6850
+      swiper.scrollbar.updateSize();
6851
+      swiper.scrollbar.setTranslate();
6852
+    },
6853
+    update: function update(swiper) {
6854
+      swiper.scrollbar.updateSize();
6855
+    },
6856
+    resize: function resize(swiper) {
6857
+      swiper.scrollbar.updateSize();
6858
+    },
6859
+    observerUpdate: function observerUpdate(swiper) {
6860
+      swiper.scrollbar.updateSize();
6861
+    },
6862
+    setTranslate: function setTranslate(swiper) {
6863
+      swiper.scrollbar.setTranslate();
6864
+    },
6865
+    setTransition: function setTransition(swiper, duration) {
6866
+      swiper.scrollbar.setTransition(duration);
6867
+    },
6868
+    destroy: function destroy(swiper) {
6869
+      swiper.scrollbar.destroy();
6870
+    }
6871
+  }
6872
+};
6873
+
6874
+var Parallax = {
6875
+  setTransform: function setTransform(el, progress) {
6876
+    var swiper = this;
6877
+    var rtl = swiper.rtl;
6878
+    var $el = $(el);
6879
+    var rtlFactor = rtl ? -1 : 1;
6880
+    var p = $el.attr('data-swiper-parallax') || '0';
6881
+    var x = $el.attr('data-swiper-parallax-x');
6882
+    var y = $el.attr('data-swiper-parallax-y');
6883
+    var scale = $el.attr('data-swiper-parallax-scale');
6884
+    var opacity = $el.attr('data-swiper-parallax-opacity');
6885
+
6886
+    if (x || y) {
6887
+      x = x || '0';
6888
+      y = y || '0';
6889
+    } else if (swiper.isHorizontal()) {
6890
+      x = p;
6891
+      y = '0';
6892
+    } else {
6893
+      y = p;
6894
+      x = '0';
6895
+    }
6896
+
6897
+    if (x.indexOf('%') >= 0) {
6898
+      x = parseInt(x, 10) * progress * rtlFactor + "%";
6899
+    } else {
6900
+      x = x * progress * rtlFactor + "px";
6901
+    }
6902
+
6903
+    if (y.indexOf('%') >= 0) {
6904
+      y = parseInt(y, 10) * progress + "%";
6905
+    } else {
6906
+      y = y * progress + "px";
6907
+    }
6908
+
6909
+    if (typeof opacity !== 'undefined' && opacity !== null) {
6910
+      var currentOpacity = opacity - (opacity - 1) * (1 - Math.abs(progress));
6911
+      $el[0].style.opacity = currentOpacity;
6912
+    }
6913
+
6914
+    if (typeof scale === 'undefined' || scale === null) {
6915
+      $el.transform("translate3d(" + x + ", " + y + ", 0px)");
6916
+    } else {
6917
+      var currentScale = scale - (scale - 1) * (1 - Math.abs(progress));
6918
+      $el.transform("translate3d(" + x + ", " + y + ", 0px) scale(" + currentScale + ")");
6919
+    }
6920
+  },
6921
+  setTranslate: function setTranslate() {
6922
+    var swiper = this;
6923
+    var $el = swiper.$el,
6924
+        slides = swiper.slides,
6925
+        progress = swiper.progress,
6926
+        snapGrid = swiper.snapGrid;
6927
+    $el.children('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(function (el) {
6928
+      swiper.parallax.setTransform(el, progress);
6929
+    });
6930
+    slides.each(function (slideEl, slideIndex) {
6931
+      var slideProgress = slideEl.progress;
6932
+
6933
+      if (swiper.params.slidesPerGroup > 1 && swiper.params.slidesPerView !== 'auto') {
6934
+        slideProgress += Math.ceil(slideIndex / 2) - progress * (snapGrid.length - 1);
6935
+      }
6936
+
6937
+      slideProgress = Math.min(Math.max(slideProgress, -1), 1);
6938
+      $(slideEl).find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(function (el) {
6939
+        swiper.parallax.setTransform(el, slideProgress);
6940
+      });
6941
+    });
6942
+  },
6943
+  setTransition: function setTransition(duration) {
6944
+    if (duration === void 0) {
6945
+      duration = this.params.speed;
6946
+    }
6947
+
6948
+    var swiper = this;
6949
+    var $el = swiper.$el;
6950
+    $el.find('[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]').each(function (parallaxEl) {
6951
+      var $parallaxEl = $(parallaxEl);
6952
+      var parallaxDuration = parseInt($parallaxEl.attr('data-swiper-parallax-duration'), 10) || duration;
6953
+      if (duration === 0) parallaxDuration = 0;
6954
+      $parallaxEl.transition(parallaxDuration);
6955
+    });
6956
+  }
6957
+};
6958
+var Parallax$1 = {
6959
+  name: 'parallax',
6960
+  params: {
6961
+    parallax: {
6962
+      enabled: false
6963
+    }
6964
+  },
6965
+  create: function create() {
6966
+    var swiper = this;
6967
+    bindModuleMethods(swiper, {
6968
+      parallax: _extends({}, Parallax)
6969
+    });
6970
+  },
6971
+  on: {
6972
+    beforeInit: function beforeInit(swiper) {
6973
+      if (!swiper.params.parallax.enabled) return;
6974
+      swiper.params.watchSlidesProgress = true;
6975
+      swiper.originalParams.watchSlidesProgress = true;
6976
+    },
6977
+    init: function init(swiper) {
6978
+      if (!swiper.params.parallax.enabled) return;
6979
+      swiper.parallax.setTranslate();
6980
+    },
6981
+    setTranslate: function setTranslate(swiper) {
6982
+      if (!swiper.params.parallax.enabled) return;
6983
+      swiper.parallax.setTranslate();
6984
+    },
6985
+    setTransition: function setTransition(swiper, duration) {
6986
+      if (!swiper.params.parallax.enabled) return;
6987
+      swiper.parallax.setTransition(duration);
6988
+    }
6989
+  }
6990
+};
6991
+
6992
+var Zoom = {
6993
+  // Calc Scale From Multi-touches
6994
+  getDistanceBetweenTouches: function getDistanceBetweenTouches(e) {
6995
+    if (e.targetTouches.length < 2) return 1;
6996
+    var x1 = e.targetTouches[0].pageX;
6997
+    var y1 = e.targetTouches[0].pageY;
6998
+    var x2 = e.targetTouches[1].pageX;
6999
+    var y2 = e.targetTouches[1].pageY;
7000
+    var distance = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));
7001
+    return distance;
7002
+  },
7003
+  // Events
7004
+  onGestureStart: function onGestureStart(e) {
7005
+    var swiper = this;
7006
+    var support = swiper.support;
7007
+    var params = swiper.params.zoom;
7008
+    var zoom = swiper.zoom;
7009
+    var gesture = zoom.gesture;
7010
+    zoom.fakeGestureTouched = false;
7011
+    zoom.fakeGestureMoved = false;
7012
+
7013
+    if (!support.gestures) {
7014
+      if (e.type !== 'touchstart' || e.type === 'touchstart' && e.targetTouches.length < 2) {
7015
+        return;
7016
+      }
7017
+
7018
+      zoom.fakeGestureTouched = true;
7019
+      gesture.scaleStart = Zoom.getDistanceBetweenTouches(e);
7020
+    }
7021
+
7022
+    if (!gesture.$slideEl || !gesture.$slideEl.length) {
7023
+      gesture.$slideEl = $(e.target).closest("." + swiper.params.slideClass);
7024
+      if (gesture.$slideEl.length === 0) gesture.$slideEl = swiper.slides.eq(swiper.activeIndex);
7025
+      gesture.$imageEl = gesture.$slideEl.find('img, svg, canvas, picture, .swiper-zoom-target');
7026
+      gesture.$imageWrapEl = gesture.$imageEl.parent("." + params.containerClass);
7027
+      gesture.maxRatio = gesture.$imageWrapEl.attr('data-swiper-zoom') || params.maxRatio;
7028
+
7029
+      if (gesture.$imageWrapEl.length === 0) {
7030
+        gesture.$imageEl = undefined;
7031
+        return;
7032
+      }
7033
+    }
7034
+
7035
+    if (gesture.$imageEl) {
7036
+      gesture.$imageEl.transition(0);
7037
+    }
7038
+
7039
+    swiper.zoom.isScaling = true;
7040
+  },
7041
+  onGestureChange: function onGestureChange(e) {
7042
+    var swiper = this;
7043
+    var support = swiper.support;
7044
+    var params = swiper.params.zoom;
7045
+    var zoom = swiper.zoom;
7046
+    var gesture = zoom.gesture;
7047
+
7048
+    if (!support.gestures) {
7049
+      if (e.type !== 'touchmove' || e.type === 'touchmove' && e.targetTouches.length < 2) {
7050
+        return;
7051
+      }
7052
+
7053
+      zoom.fakeGestureMoved = true;
7054
+      gesture.scaleMove = Zoom.getDistanceBetweenTouches(e);
7055
+    }
7056
+
7057
+    if (!gesture.$imageEl || gesture.$imageEl.length === 0) {
7058
+      if (e.type === 'gesturechange') zoom.onGestureStart(e);
7059
+      return;
7060
+    }
7061
+
7062
+    if (support.gestures) {
7063
+      zoom.scale = e.scale * zoom.currentScale;
7064
+    } else {
7065
+      zoom.scale = gesture.scaleMove / gesture.scaleStart * zoom.currentScale;
7066
+    }
7067
+
7068
+    if (zoom.scale > gesture.maxRatio) {
7069
+      zoom.scale = gesture.maxRatio - 1 + Math.pow(zoom.scale - gesture.maxRatio + 1, 0.5);
7070
+    }
7071
+
7072
+    if (zoom.scale < params.minRatio) {
7073
+      zoom.scale = params.minRatio + 1 - Math.pow(params.minRatio - zoom.scale + 1, 0.5);
7074
+    }
7075
+
7076
+    gesture.$imageEl.transform("translate3d(0,0,0) scale(" + zoom.scale + ")");
7077
+  },
7078
+  onGestureEnd: function onGestureEnd(e) {
7079
+    var swiper = this;
7080
+    var device = swiper.device;
7081
+    var support = swiper.support;
7082
+    var params = swiper.params.zoom;
7083
+    var zoom = swiper.zoom;
7084
+    var gesture = zoom.gesture;
7085
+
7086
+    if (!support.gestures) {
7087
+      if (!zoom.fakeGestureTouched || !zoom.fakeGestureMoved) {
7088
+        return;
7089
+      }
7090
+
7091
+      if (e.type !== 'touchend' || e.type === 'touchend' && e.changedTouches.length < 2 && !device.android) {
7092
+        return;
7093
+      }
7094
+
7095
+      zoom.fakeGestureTouched = false;
7096
+      zoom.fakeGestureMoved = false;
7097
+    }
7098
+
7099
+    if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
7100
+    zoom.scale = Math.max(Math.min(zoom.scale, gesture.maxRatio), params.minRatio);
7101
+    gesture.$imageEl.transition(swiper.params.speed).transform("translate3d(0,0,0) scale(" + zoom.scale + ")");
7102
+    zoom.currentScale = zoom.scale;
7103
+    zoom.isScaling = false;
7104
+    if (zoom.scale === 1) gesture.$slideEl = undefined;
7105
+  },
7106
+  onTouchStart: function onTouchStart(e) {
7107
+    var swiper = this;
7108
+    var device = swiper.device;
7109
+    var zoom = swiper.zoom;
7110
+    var gesture = zoom.gesture,
7111
+        image = zoom.image;
7112
+    if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
7113
+    if (image.isTouched) return;
7114
+    if (device.android && e.cancelable) e.preventDefault();
7115
+    image.isTouched = true;
7116
+    image.touchesStart.x = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;
7117
+    image.touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;
7118
+  },
7119
+  onTouchMove: function onTouchMove(e) {
7120
+    var swiper = this;
7121
+    var zoom = swiper.zoom;
7122
+    var gesture = zoom.gesture,
7123
+        image = zoom.image,
7124
+        velocity = zoom.velocity;
7125
+    if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
7126
+    swiper.allowClick = false;
7127
+    if (!image.isTouched || !gesture.$slideEl) return;
7128
+
7129
+    if (!image.isMoved) {
7130
+      image.width = gesture.$imageEl[0].offsetWidth;
7131
+      image.height = gesture.$imageEl[0].offsetHeight;
7132
+      image.startX = getTranslate(gesture.$imageWrapEl[0], 'x') || 0;
7133
+      image.startY = getTranslate(gesture.$imageWrapEl[0], 'y') || 0;
7134
+      gesture.slideWidth = gesture.$slideEl[0].offsetWidth;
7135
+      gesture.slideHeight = gesture.$slideEl[0].offsetHeight;
7136
+      gesture.$imageWrapEl.transition(0);
7137
+
7138
+      if (swiper.rtl) {
7139
+        image.startX = -image.startX;
7140
+        image.startY = -image.startY;
7141
+      }
7142
+    } // Define if we need image drag
7143
+
7144
+
7145
+    var scaledWidth = image.width * zoom.scale;
7146
+    var scaledHeight = image.height * zoom.scale;
7147
+    if (scaledWidth < gesture.slideWidth && scaledHeight < gesture.slideHeight) return;
7148
+    image.minX = Math.min(gesture.slideWidth / 2 - scaledWidth / 2, 0);
7149
+    image.maxX = -image.minX;
7150
+    image.minY = Math.min(gesture.slideHeight / 2 - scaledHeight / 2, 0);
7151
+    image.maxY = -image.minY;
7152
+    image.touchesCurrent.x = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX;
7153
+    image.touchesCurrent.y = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY;
7154
+
7155
+    if (!image.isMoved && !zoom.isScaling) {
7156
+      if (swiper.isHorizontal() && (Math.floor(image.minX) === Math.floor(image.startX) && image.touchesCurrent.x < image.touchesStart.x || Math.floor(image.maxX) === Math.floor(image.startX) && image.touchesCurrent.x > image.touchesStart.x)) {
7157
+        image.isTouched = false;
7158
+        return;
7159
+      }
7160
+
7161
+      if (!swiper.isHorizontal() && (Math.floor(image.minY) === Math.floor(image.startY) && image.touchesCurrent.y < image.touchesStart.y || Math.floor(image.maxY) === Math.floor(image.startY) && image.touchesCurrent.y > image.touchesStart.y)) {
7162
+        image.isTouched = false;
7163
+        return;
7164
+      }
7165
+    }
7166
+
7167
+    if (e.cancelable) {
7168
+      e.preventDefault();
7169
+    }
7170
+
7171
+    e.stopPropagation();
7172
+    image.isMoved = true;
7173
+    image.currentX = image.touchesCurrent.x - image.touchesStart.x + image.startX;
7174
+    image.currentY = image.touchesCurrent.y - image.touchesStart.y + image.startY;
7175
+
7176
+    if (image.currentX < image.minX) {
7177
+      image.currentX = image.minX + 1 - Math.pow(image.minX - image.currentX + 1, 0.8);
7178
+    }
7179
+
7180
+    if (image.currentX > image.maxX) {
7181
+      image.currentX = image.maxX - 1 + Math.pow(image.currentX - image.maxX + 1, 0.8);
7182
+    }
7183
+
7184
+    if (image.currentY < image.minY) {
7185
+      image.currentY = image.minY + 1 - Math.pow(image.minY - image.currentY + 1, 0.8);
7186
+    }
7187
+
7188
+    if (image.currentY > image.maxY) {
7189
+      image.currentY = image.maxY - 1 + Math.pow(image.currentY - image.maxY + 1, 0.8);
7190
+    } // Velocity
7191
+
7192
+
7193
+    if (!velocity.prevPositionX) velocity.prevPositionX = image.touchesCurrent.x;
7194
+    if (!velocity.prevPositionY) velocity.prevPositionY = image.touchesCurrent.y;
7195
+    if (!velocity.prevTime) velocity.prevTime = Date.now();
7196
+    velocity.x = (image.touchesCurrent.x - velocity.prevPositionX) / (Date.now() - velocity.prevTime) / 2;
7197
+    velocity.y = (image.touchesCurrent.y - velocity.prevPositionY) / (Date.now() - velocity.prevTime) / 2;
7198
+    if (Math.abs(image.touchesCurrent.x - velocity.prevPositionX) < 2) velocity.x = 0;
7199
+    if (Math.abs(image.touchesCurrent.y - velocity.prevPositionY) < 2) velocity.y = 0;
7200
+    velocity.prevPositionX = image.touchesCurrent.x;
7201
+    velocity.prevPositionY = image.touchesCurrent.y;
7202
+    velocity.prevTime = Date.now();
7203
+    gesture.$imageWrapEl.transform("translate3d(" + image.currentX + "px, " + image.currentY + "px,0)");
7204
+  },
7205
+  onTouchEnd: function onTouchEnd() {
7206
+    var swiper = this;
7207
+    var zoom = swiper.zoom;
7208
+    var gesture = zoom.gesture,
7209
+        image = zoom.image,
7210
+        velocity = zoom.velocity;
7211
+    if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
7212
+
7213
+    if (!image.isTouched || !image.isMoved) {
7214
+      image.isTouched = false;
7215
+      image.isMoved = false;
7216
+      return;
7217
+    }
7218
+
7219
+    image.isTouched = false;
7220
+    image.isMoved = false;
7221
+    var momentumDurationX = 300;
7222
+    var momentumDurationY = 300;
7223
+    var momentumDistanceX = velocity.x * momentumDurationX;
7224
+    var newPositionX = image.currentX + momentumDistanceX;
7225
+    var momentumDistanceY = velocity.y * momentumDurationY;
7226
+    var newPositionY = image.currentY + momentumDistanceY; // Fix duration
7227
+
7228
+    if (velocity.x !== 0) momentumDurationX = Math.abs((newPositionX - image.currentX) / velocity.x);
7229
+    if (velocity.y !== 0) momentumDurationY = Math.abs((newPositionY - image.currentY) / velocity.y);
7230
+    var momentumDuration = Math.max(momentumDurationX, momentumDurationY);
7231
+    image.currentX = newPositionX;
7232
+    image.currentY = newPositionY; // Define if we need image drag
7233
+
7234
+    var scaledWidth = image.width * zoom.scale;
7235
+    var scaledHeight = image.height * zoom.scale;
7236
+    image.minX = Math.min(gesture.slideWidth / 2 - scaledWidth / 2, 0);
7237
+    image.maxX = -image.minX;
7238
+    image.minY = Math.min(gesture.slideHeight / 2 - scaledHeight / 2, 0);
7239
+    image.maxY = -image.minY;
7240
+    image.currentX = Math.max(Math.min(image.currentX, image.maxX), image.minX);
7241
+    image.currentY = Math.max(Math.min(image.currentY, image.maxY), image.minY);
7242
+    gesture.$imageWrapEl.transition(momentumDuration).transform("translate3d(" + image.currentX + "px, " + image.currentY + "px,0)");
7243
+  },
7244
+  onTransitionEnd: function onTransitionEnd() {
7245
+    var swiper = this;
7246
+    var zoom = swiper.zoom;
7247
+    var gesture = zoom.gesture;
7248
+
7249
+    if (gesture.$slideEl && swiper.previousIndex !== swiper.activeIndex) {
7250
+      if (gesture.$imageEl) {
7251
+        gesture.$imageEl.transform('translate3d(0,0,0) scale(1)');
7252
+      }
7253
+
7254
+      if (gesture.$imageWrapEl) {
7255
+        gesture.$imageWrapEl.transform('translate3d(0,0,0)');
7256
+      }
7257
+
7258
+      zoom.scale = 1;
7259
+      zoom.currentScale = 1;
7260
+      gesture.$slideEl = undefined;
7261
+      gesture.$imageEl = undefined;
7262
+      gesture.$imageWrapEl = undefined;
7263
+    }
7264
+  },
7265
+  // Toggle Zoom
7266
+  toggle: function toggle(e) {
7267
+    var swiper = this;
7268
+    var zoom = swiper.zoom;
7269
+
7270
+    if (zoom.scale && zoom.scale !== 1) {
7271
+      // Zoom Out
7272
+      zoom.out();
7273
+    } else {
7274
+      // Zoom In
7275
+      zoom.in(e);
7276
+    }
7277
+  },
7278
+  in: function _in(e) {
7279
+    var swiper = this;
7280
+    var zoom = swiper.zoom;
7281
+    var params = swiper.params.zoom;
7282
+    var gesture = zoom.gesture,
7283
+        image = zoom.image;
7284
+
7285
+    if (!gesture.$slideEl) {
7286
+      if (swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual) {
7287
+        gesture.$slideEl = swiper.$wrapperEl.children("." + swiper.params.slideActiveClass);
7288
+      } else {
7289
+        gesture.$slideEl = swiper.slides.eq(swiper.activeIndex);
7290
+      }
7291
+
7292
+      gesture.$imageEl = gesture.$slideEl.find('img, svg, canvas, picture, .swiper-zoom-target');
7293
+      gesture.$imageWrapEl = gesture.$imageEl.parent("." + params.containerClass);
7294
+    }
7295
+
7296
+    if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
7297
+    gesture.$slideEl.addClass("" + params.zoomedSlideClass);
7298
+    var touchX;
7299
+    var touchY;
7300
+    var offsetX;
7301
+    var offsetY;
7302
+    var diffX;
7303
+    var diffY;
7304
+    var translateX;
7305
+    var translateY;
7306
+    var imageWidth;
7307
+    var imageHeight;
7308
+    var scaledWidth;
7309
+    var scaledHeight;
7310
+    var translateMinX;
7311
+    var translateMinY;
7312
+    var translateMaxX;
7313
+    var translateMaxY;
7314
+    var slideWidth;
7315
+    var slideHeight;
7316
+
7317
+    if (typeof image.touchesStart.x === 'undefined' && e) {
7318
+      touchX = e.type === 'touchend' ? e.changedTouches[0].pageX : e.pageX;
7319
+      touchY = e.type === 'touchend' ? e.changedTouches[0].pageY : e.pageY;
7320
+    } else {
7321
+      touchX = image.touchesStart.x;
7322
+      touchY = image.touchesStart.y;
7323
+    }
7324
+
7325
+    zoom.scale = gesture.$imageWrapEl.attr('data-swiper-zoom') || params.maxRatio;
7326
+    zoom.currentScale = gesture.$imageWrapEl.attr('data-swiper-zoom') || params.maxRatio;
7327
+
7328
+    if (e) {
7329
+      slideWidth = gesture.$slideEl[0].offsetWidth;
7330
+      slideHeight = gesture.$slideEl[0].offsetHeight;
7331
+      offsetX = gesture.$slideEl.offset().left;
7332
+      offsetY = gesture.$slideEl.offset().top;
7333
+      diffX = offsetX + slideWidth / 2 - touchX;
7334
+      diffY = offsetY + slideHeight / 2 - touchY;
7335
+      imageWidth = gesture.$imageEl[0].offsetWidth;
7336
+      imageHeight = gesture.$imageEl[0].offsetHeight;
7337
+      scaledWidth = imageWidth * zoom.scale;
7338
+      scaledHeight = imageHeight * zoom.scale;
7339
+      translateMinX = Math.min(slideWidth / 2 - scaledWidth / 2, 0);
7340
+      translateMinY = Math.min(slideHeight / 2 - scaledHeight / 2, 0);
7341
+      translateMaxX = -translateMinX;
7342
+      translateMaxY = -translateMinY;
7343
+      translateX = diffX * zoom.scale;
7344
+      translateY = diffY * zoom.scale;
7345
+
7346
+      if (translateX < translateMinX) {
7347
+        translateX = translateMinX;
7348
+      }
7349
+
7350
+      if (translateX > translateMaxX) {
7351
+        translateX = translateMaxX;
7352
+      }
7353
+
7354
+      if (translateY < translateMinY) {
7355
+        translateY = translateMinY;
7356
+      }
7357
+
7358
+      if (translateY > translateMaxY) {
7359
+        translateY = translateMaxY;
7360
+      }
7361
+    } else {
7362
+      translateX = 0;
7363
+      translateY = 0;
7364
+    }
7365
+
7366
+    gesture.$imageWrapEl.transition(300).transform("translate3d(" + translateX + "px, " + translateY + "px,0)");
7367
+    gesture.$imageEl.transition(300).transform("translate3d(0,0,0) scale(" + zoom.scale + ")");
7368
+  },
7369
+  out: function out() {
7370
+    var swiper = this;
7371
+    var zoom = swiper.zoom;
7372
+    var params = swiper.params.zoom;
7373
+    var gesture = zoom.gesture;
7374
+
7375
+    if (!gesture.$slideEl) {
7376
+      if (swiper.params.virtual && swiper.params.virtual.enabled && swiper.virtual) {
7377
+        gesture.$slideEl = swiper.$wrapperEl.children("." + swiper.params.slideActiveClass);
7378
+      } else {
7379
+        gesture.$slideEl = swiper.slides.eq(swiper.activeIndex);
7380
+      }
7381
+
7382
+      gesture.$imageEl = gesture.$slideEl.find('img, svg, canvas, picture, .swiper-zoom-target');
7383
+      gesture.$imageWrapEl = gesture.$imageEl.parent("." + params.containerClass);
7384
+    }
7385
+
7386
+    if (!gesture.$imageEl || gesture.$imageEl.length === 0) return;
7387
+    zoom.scale = 1;
7388
+    zoom.currentScale = 1;
7389
+    gesture.$imageWrapEl.transition(300).transform('translate3d(0,0,0)');
7390
+    gesture.$imageEl.transition(300).transform('translate3d(0,0,0) scale(1)');
7391
+    gesture.$slideEl.removeClass("" + params.zoomedSlideClass);
7392
+    gesture.$slideEl = undefined;
7393
+  },
7394
+  toggleGestures: function toggleGestures(method) {
7395
+    var swiper = this;
7396
+    var zoom = swiper.zoom;
7397
+    var selector = zoom.slideSelector,
7398
+        passive = zoom.passiveListener;
7399
+    swiper.$wrapperEl[method]('gesturestart', selector, zoom.onGestureStart, passive);
7400
+    swiper.$wrapperEl[method]('gesturechange', selector, zoom.onGestureChange, passive);
7401
+    swiper.$wrapperEl[method]('gestureend', selector, zoom.onGestureEnd, passive);
7402
+  },
7403
+  enableGestures: function enableGestures() {
7404
+    if (this.zoom.gesturesEnabled) return;
7405
+    this.zoom.gesturesEnabled = true;
7406
+    this.zoom.toggleGestures('on');
7407
+  },
7408
+  disableGestures: function disableGestures() {
7409
+    if (!this.zoom.gesturesEnabled) return;
7410
+    this.zoom.gesturesEnabled = false;
7411
+    this.zoom.toggleGestures('off');
7412
+  },
7413
+  // Attach/Detach Events
7414
+  enable: function enable() {
7415
+    var swiper = this;
7416
+    var support = swiper.support;
7417
+    var zoom = swiper.zoom;
7418
+    if (zoom.enabled) return;
7419
+    zoom.enabled = true;
7420
+    var passiveListener = swiper.touchEvents.start === 'touchstart' && support.passiveListener && swiper.params.passiveListeners ? {
7421
+      passive: true,
7422
+      capture: false
7423
+    } : false;
7424
+    var activeListenerWithCapture = support.passiveListener ? {
7425
+      passive: false,
7426
+      capture: true
7427
+    } : true;
7428
+    var slideSelector = "." + swiper.params.slideClass;
7429
+    swiper.zoom.passiveListener = passiveListener;
7430
+    swiper.zoom.slideSelector = slideSelector; // Scale image
7431
+
7432
+    if (support.gestures) {
7433
+      swiper.$wrapperEl.on(swiper.touchEvents.start, swiper.zoom.enableGestures, passiveListener);
7434
+      swiper.$wrapperEl.on(swiper.touchEvents.end, swiper.zoom.disableGestures, passiveListener);
7435
+    } else if (swiper.touchEvents.start === 'touchstart') {
7436
+      swiper.$wrapperEl.on(swiper.touchEvents.start, slideSelector, zoom.onGestureStart, passiveListener);
7437
+      swiper.$wrapperEl.on(swiper.touchEvents.move, slideSelector, zoom.onGestureChange, activeListenerWithCapture);
7438
+      swiper.$wrapperEl.on(swiper.touchEvents.end, slideSelector, zoom.onGestureEnd, passiveListener);
7439
+
7440
+      if (swiper.touchEvents.cancel) {
7441
+        swiper.$wrapperEl.on(swiper.touchEvents.cancel, slideSelector, zoom.onGestureEnd, passiveListener);
7442
+      }
7443
+    } // Move image
7444
+
7445
+
7446
+    swiper.$wrapperEl.on(swiper.touchEvents.move, "." + swiper.params.zoom.containerClass, zoom.onTouchMove, activeListenerWithCapture);
7447
+  },
7448
+  disable: function disable() {
7449
+    var swiper = this;
7450
+    var zoom = swiper.zoom;
7451
+    if (!zoom.enabled) return;
7452
+    var support = swiper.support;
7453
+    swiper.zoom.enabled = false;
7454
+    var passiveListener = swiper.touchEvents.start === 'touchstart' && support.passiveListener && swiper.params.passiveListeners ? {
7455
+      passive: true,
7456
+      capture: false
7457
+    } : false;
7458
+    var activeListenerWithCapture = support.passiveListener ? {
7459
+      passive: false,
7460
+      capture: true
7461
+    } : true;
7462
+    var slideSelector = "." + swiper.params.slideClass; // Scale image
7463
+
7464
+    if (support.gestures) {
7465
+      swiper.$wrapperEl.off(swiper.touchEvents.start, swiper.zoom.enableGestures, passiveListener);
7466
+      swiper.$wrapperEl.off(swiper.touchEvents.end, swiper.zoom.disableGestures, passiveListener);
7467
+    } else if (swiper.touchEvents.start === 'touchstart') {
7468
+      swiper.$wrapperEl.off(swiper.touchEvents.start, slideSelector, zoom.onGestureStart, passiveListener);
7469
+      swiper.$wrapperEl.off(swiper.touchEvents.move, slideSelector, zoom.onGestureChange, activeListenerWithCapture);
7470
+      swiper.$wrapperEl.off(swiper.touchEvents.end, slideSelector, zoom.onGestureEnd, passiveListener);
7471
+
7472
+      if (swiper.touchEvents.cancel) {
7473
+        swiper.$wrapperEl.off(swiper.touchEvents.cancel, slideSelector, zoom.onGestureEnd, passiveListener);
7474
+      }
7475
+    } // Move image
7476
+
7477
+
7478
+    swiper.$wrapperEl.off(swiper.touchEvents.move, "." + swiper.params.zoom.containerClass, zoom.onTouchMove, activeListenerWithCapture);
7479
+  }
7480
+};
7481
+var Zoom$1 = {
7482
+  name: 'zoom',
7483
+  params: {
7484
+    zoom: {
7485
+      enabled: false,
7486
+      maxRatio: 3,
7487
+      minRatio: 1,
7488
+      toggle: true,
7489
+      containerClass: 'swiper-zoom-container',
7490
+      zoomedSlideClass: 'swiper-slide-zoomed'
7491
+    }
7492
+  },
7493
+  create: function create() {
7494
+    var swiper = this;
7495
+    bindModuleMethods(swiper, {
7496
+      zoom: _extends({
7497
+        enabled: false,
7498
+        scale: 1,
7499
+        currentScale: 1,
7500
+        isScaling: false,
7501
+        gesture: {
7502
+          $slideEl: undefined,
7503
+          slideWidth: undefined,
7504
+          slideHeight: undefined,
7505
+          $imageEl: undefined,
7506
+          $imageWrapEl: undefined,
7507
+          maxRatio: 3
7508
+        },
7509
+        image: {
7510
+          isTouched: undefined,
7511
+          isMoved: undefined,
7512
+          currentX: undefined,
7513
+          currentY: undefined,
7514
+          minX: undefined,
7515
+          minY: undefined,
7516
+          maxX: undefined,
7517
+          maxY: undefined,
7518
+          width: undefined,
7519
+          height: undefined,
7520
+          startX: undefined,
7521
+          startY: undefined,
7522
+          touchesStart: {},
7523
+          touchesCurrent: {}
7524
+        },
7525
+        velocity: {
7526
+          x: undefined,
7527
+          y: undefined,
7528
+          prevPositionX: undefined,
7529
+          prevPositionY: undefined,
7530
+          prevTime: undefined
7531
+        }
7532
+      }, Zoom)
7533
+    });
7534
+    var scale = 1;
7535
+    Object.defineProperty(swiper.zoom, 'scale', {
7536
+      get: function get() {
7537
+        return scale;
7538
+      },
7539
+      set: function set(value) {
7540
+        if (scale !== value) {
7541
+          var imageEl = swiper.zoom.gesture.$imageEl ? swiper.zoom.gesture.$imageEl[0] : undefined;
7542
+          var slideEl = swiper.zoom.gesture.$slideEl ? swiper.zoom.gesture.$slideEl[0] : undefined;
7543
+          swiper.emit('zoomChange', value, imageEl, slideEl);
7544
+        }
7545
+
7546
+        scale = value;
7547
+      }
7548
+    });
7549
+  },
7550
+  on: {
7551
+    init: function init(swiper) {
7552
+      if (swiper.params.zoom.enabled) {
7553
+        swiper.zoom.enable();
7554
+      }
7555
+    },
7556
+    destroy: function destroy(swiper) {
7557
+      swiper.zoom.disable();
7558
+    },
7559
+    touchStart: function touchStart(swiper, e) {
7560
+      if (!swiper.zoom.enabled) return;
7561
+      swiper.zoom.onTouchStart(e);
7562
+    },
7563
+    touchEnd: function touchEnd(swiper, e) {
7564
+      if (!swiper.zoom.enabled) return;
7565
+      swiper.zoom.onTouchEnd(e);
7566
+    },
7567
+    doubleTap: function doubleTap(swiper, e) {
7568
+      if (swiper.params.zoom.enabled && swiper.zoom.enabled && swiper.params.zoom.toggle) {
7569
+        swiper.zoom.toggle(e);
7570
+      }
7571
+    },
7572
+    transitionEnd: function transitionEnd(swiper) {
7573
+      if (swiper.zoom.enabled && swiper.params.zoom.enabled) {
7574
+        swiper.zoom.onTransitionEnd();
7575
+      }
7576
+    },
7577
+    slideChange: function slideChange(swiper) {
7578
+      if (swiper.zoom.enabled && swiper.params.zoom.enabled && swiper.params.cssMode) {
7579
+        swiper.zoom.onTransitionEnd();
7580
+      }
7581
+    }
7582
+  }
7583
+};
7584
+
7585
+var Lazy = {
7586
+  loadInSlide: function loadInSlide(index, loadInDuplicate) {
7587
+    if (loadInDuplicate === void 0) {
7588
+      loadInDuplicate = true;
7589
+    }
7590
+
7591
+    var swiper = this;
7592
+    var params = swiper.params.lazy;
7593
+    if (typeof index === 'undefined') return;
7594
+    if (swiper.slides.length === 0) return;
7595
+    var isVirtual = swiper.virtual && swiper.params.virtual.enabled;
7596
+    var $slideEl = isVirtual ? swiper.$wrapperEl.children("." + swiper.params.slideClass + "[data-swiper-slide-index=\"" + index + "\"]") : swiper.slides.eq(index);
7597
+    var $images = $slideEl.find("." + params.elementClass + ":not(." + params.loadedClass + "):not(." + params.loadingClass + ")");
7598
+
7599
+    if ($slideEl.hasClass(params.elementClass) && !$slideEl.hasClass(params.loadedClass) && !$slideEl.hasClass(params.loadingClass)) {
7600
+      $images.push($slideEl[0]);
7601
+    }
7602
+
7603
+    if ($images.length === 0) return;
7604
+    $images.each(function (imageEl) {
7605
+      var $imageEl = $(imageEl);
7606
+      $imageEl.addClass(params.loadingClass);
7607
+      var background = $imageEl.attr('data-background');
7608
+      var src = $imageEl.attr('data-src');
7609
+      var srcset = $imageEl.attr('data-srcset');
7610
+      var sizes = $imageEl.attr('data-sizes');
7611
+      var $pictureEl = $imageEl.parent('picture');
7612
+      swiper.loadImage($imageEl[0], src || background, srcset, sizes, false, function () {
7613
+        if (typeof swiper === 'undefined' || swiper === null || !swiper || swiper && !swiper.params || swiper.destroyed) return;
7614
+
7615
+        if (background) {
7616
+          $imageEl.css('background-image', "url(\"" + background + "\")");
7617
+          $imageEl.removeAttr('data-background');
7618
+        } else {
7619
+          if (srcset) {
7620
+            $imageEl.attr('srcset', srcset);
7621
+            $imageEl.removeAttr('data-srcset');
7622
+          }
7623
+
7624
+          if (sizes) {
7625
+            $imageEl.attr('sizes', sizes);
7626
+            $imageEl.removeAttr('data-sizes');
7627
+          }
7628
+
7629
+          if ($pictureEl.length) {
7630
+            $pictureEl.children('source').each(function (sourceEl) {
7631
+              var $source = $(sourceEl);
7632
+
7633
+              if ($source.attr('data-srcset')) {
7634
+                $source.attr('srcset', $source.attr('data-srcset'));
7635
+                $source.removeAttr('data-srcset');
7636
+              }
7637
+            });
7638
+          }
7639
+
7640
+          if (src) {
7641
+            $imageEl.attr('src', src);
7642
+            $imageEl.removeAttr('data-src');
7643
+          }
7644
+        }
7645
+
7646
+        $imageEl.addClass(params.loadedClass).removeClass(params.loadingClass);
7647
+        $slideEl.find("." + params.preloaderClass).remove();
7648
+
7649
+        if (swiper.params.loop && loadInDuplicate) {
7650
+          var slideOriginalIndex = $slideEl.attr('data-swiper-slide-index');
7651
+
7652
+          if ($slideEl.hasClass(swiper.params.slideDuplicateClass)) {
7653
+            var originalSlide = swiper.$wrapperEl.children("[data-swiper-slide-index=\"" + slideOriginalIndex + "\"]:not(." + swiper.params.slideDuplicateClass + ")");
7654
+            swiper.lazy.loadInSlide(originalSlide.index(), false);
7655
+          } else {
7656
+            var duplicatedSlide = swiper.$wrapperEl.children("." + swiper.params.slideDuplicateClass + "[data-swiper-slide-index=\"" + slideOriginalIndex + "\"]");
7657
+            swiper.lazy.loadInSlide(duplicatedSlide.index(), false);
7658
+          }
7659
+        }
7660
+
7661
+        swiper.emit('lazyImageReady', $slideEl[0], $imageEl[0]);
7662
+
7663
+        if (swiper.params.autoHeight) {
7664
+          swiper.updateAutoHeight();
7665
+        }
7666
+      });
7667
+      swiper.emit('lazyImageLoad', $slideEl[0], $imageEl[0]);
7668
+    });
7669
+  },
7670
+  load: function load() {
7671
+    var swiper = this;
7672
+    var $wrapperEl = swiper.$wrapperEl,
7673
+        swiperParams = swiper.params,
7674
+        slides = swiper.slides,
7675
+        activeIndex = swiper.activeIndex;
7676
+    var isVirtual = swiper.virtual && swiperParams.virtual.enabled;
7677
+    var params = swiperParams.lazy;
7678
+    var slidesPerView = swiperParams.slidesPerView;
7679
+
7680
+    if (slidesPerView === 'auto') {
7681
+      slidesPerView = 0;
7682
+    }
7683
+
7684
+    function slideExist(index) {
7685
+      if (isVirtual) {
7686
+        if ($wrapperEl.children("." + swiperParams.slideClass + "[data-swiper-slide-index=\"" + index + "\"]").length) {
7687
+          return true;
7688
+        }
7689
+      } else if (slides[index]) return true;
7690
+
7691
+      return false;
7692
+    }
7693
+
7694
+    function slideIndex(slideEl) {
7695
+      if (isVirtual) {
7696
+        return $(slideEl).attr('data-swiper-slide-index');
7697
+      }
7698
+
7699
+      return $(slideEl).index();
7700
+    }
7701
+
7702
+    if (!swiper.lazy.initialImageLoaded) swiper.lazy.initialImageLoaded = true;
7703
+
7704
+    if (swiper.params.watchSlidesVisibility) {
7705
+      $wrapperEl.children("." + swiperParams.slideVisibleClass).each(function (slideEl) {
7706
+        var index = isVirtual ? $(slideEl).attr('data-swiper-slide-index') : $(slideEl).index();
7707
+        swiper.lazy.loadInSlide(index);
7708
+      });
7709
+    } else if (slidesPerView > 1) {
7710
+      for (var i = activeIndex; i < activeIndex + slidesPerView; i += 1) {
7711
+        if (slideExist(i)) swiper.lazy.loadInSlide(i);
7712
+      }
7713
+    } else {
7714
+      swiper.lazy.loadInSlide(activeIndex);
7715
+    }
7716
+
7717
+    if (params.loadPrevNext) {
7718
+      if (slidesPerView > 1 || params.loadPrevNextAmount && params.loadPrevNextAmount > 1) {
7719
+        var amount = params.loadPrevNextAmount;
7720
+        var spv = slidesPerView;
7721
+        var maxIndex = Math.min(activeIndex + spv + Math.max(amount, spv), slides.length);
7722
+        var minIndex = Math.max(activeIndex - Math.max(spv, amount), 0); // Next Slides
7723
+
7724
+        for (var _i = activeIndex + slidesPerView; _i < maxIndex; _i += 1) {
7725
+          if (slideExist(_i)) swiper.lazy.loadInSlide(_i);
7726
+        } // Prev Slides
7727
+
7728
+
7729
+        for (var _i2 = minIndex; _i2 < activeIndex; _i2 += 1) {
7730
+          if (slideExist(_i2)) swiper.lazy.loadInSlide(_i2);
7731
+        }
7732
+      } else {
7733
+        var nextSlide = $wrapperEl.children("." + swiperParams.slideNextClass);
7734
+        if (nextSlide.length > 0) swiper.lazy.loadInSlide(slideIndex(nextSlide));
7735
+        var prevSlide = $wrapperEl.children("." + swiperParams.slidePrevClass);
7736
+        if (prevSlide.length > 0) swiper.lazy.loadInSlide(slideIndex(prevSlide));
7737
+      }
7738
+    }
7739
+  },
7740
+  checkInViewOnLoad: function checkInViewOnLoad() {
7741
+    var window = getWindow();
7742
+    var swiper = this;
7743
+    if (!swiper || swiper.destroyed) return;
7744
+    var $scrollElement = swiper.params.lazy.scrollingElement ? $(swiper.params.lazy.scrollingElement) : $(window);
7745
+    var isWindow = $scrollElement[0] === window;
7746
+    var scrollElementWidth = isWindow ? window.innerWidth : $scrollElement[0].offsetWidth;
7747
+    var scrollElementHeight = isWindow ? window.innerHeight : $scrollElement[0].offsetHeight;
7748
+    var swiperOffset = swiper.$el.offset();
7749
+    var rtl = swiper.rtlTranslate;
7750
+    var inView = false;
7751
+    if (rtl) swiperOffset.left -= swiper.$el[0].scrollLeft;
7752
+    var swiperCoord = [[swiperOffset.left, swiperOffset.top], [swiperOffset.left + swiper.width, swiperOffset.top], [swiperOffset.left, swiperOffset.top + swiper.height], [swiperOffset.left + swiper.width, swiperOffset.top + swiper.height]];
7753
+
7754
+    for (var i = 0; i < swiperCoord.length; i += 1) {
7755
+      var point = swiperCoord[i];
7756
+
7757
+      if (point[0] >= 0 && point[0] <= scrollElementWidth && point[1] >= 0 && point[1] <= scrollElementHeight) {
7758
+        if (point[0] === 0 && point[1] === 0) continue; // eslint-disable-line
7759
+
7760
+        inView = true;
7761
+      }
7762
+    }
7763
+
7764
+    if (inView) {
7765
+      swiper.lazy.load();
7766
+      $scrollElement.off('scroll', swiper.lazy.checkInViewOnLoad);
7767
+    } else if (!swiper.lazy.scrollHandlerAttached) {
7768
+      swiper.lazy.scrollHandlerAttached = true;
7769
+      $scrollElement.on('scroll', swiper.lazy.checkInViewOnLoad);
7770
+    }
7771
+  }
7772
+};
7773
+var Lazy$1 = {
7774
+  name: 'lazy',
7775
+  params: {
7776
+    lazy: {
7777
+      checkInView: false,
7778
+      enabled: false,
7779
+      loadPrevNext: false,
7780
+      loadPrevNextAmount: 1,
7781
+      loadOnTransitionStart: false,
7782
+      scrollingElement: '',
7783
+      elementClass: 'swiper-lazy',
7784
+      loadingClass: 'swiper-lazy-loading',
7785
+      loadedClass: 'swiper-lazy-loaded',
7786
+      preloaderClass: 'swiper-lazy-preloader'
7787
+    }
7788
+  },
7789
+  create: function create() {
7790
+    var swiper = this;
7791
+    bindModuleMethods(swiper, {
7792
+      lazy: _extends({
7793
+        initialImageLoaded: false
7794
+      }, Lazy)
7795
+    });
7796
+  },
7797
+  on: {
7798
+    beforeInit: function beforeInit(swiper) {
7799
+      if (swiper.params.lazy.enabled && swiper.params.preloadImages) {
7800
+        swiper.params.preloadImages = false;
7801
+      }
7802
+    },
7803
+    init: function init(swiper) {
7804
+      if (swiper.params.lazy.enabled && !swiper.params.loop && swiper.params.initialSlide === 0) {
7805
+        if (swiper.params.lazy.checkInView) {
7806
+          swiper.lazy.checkInViewOnLoad();
7807
+        } else {
7808
+          swiper.lazy.load();
7809
+        }
7810
+      }
7811
+    },
7812
+    scroll: function scroll(swiper) {
7813
+      if (swiper.params.freeMode && !swiper.params.freeModeSticky) {
7814
+        swiper.lazy.load();
7815
+      }
7816
+    },
7817
+    resize: function resize(swiper) {
7818
+      if (swiper.params.lazy.enabled) {
7819
+        swiper.lazy.load();
7820
+      }
7821
+    },
7822
+    scrollbarDragMove: function scrollbarDragMove(swiper) {
7823
+      if (swiper.params.lazy.enabled) {
7824
+        swiper.lazy.load();
7825
+      }
7826
+    },
7827
+    transitionStart: function transitionStart(swiper) {
7828
+      if (swiper.params.lazy.enabled) {
7829
+        if (swiper.params.lazy.loadOnTransitionStart || !swiper.params.lazy.loadOnTransitionStart && !swiper.lazy.initialImageLoaded) {
7830
+          swiper.lazy.load();
7831
+        }
7832
+      }
7833
+    },
7834
+    transitionEnd: function transitionEnd(swiper) {
7835
+      if (swiper.params.lazy.enabled && !swiper.params.lazy.loadOnTransitionStart) {
7836
+        swiper.lazy.load();
7837
+      }
7838
+    },
7839
+    slideChange: function slideChange(swiper) {
7840
+      if (swiper.params.lazy.enabled && swiper.params.cssMode) {
7841
+        swiper.lazy.load();
7842
+      }
7843
+    }
7844
+  }
7845
+};
7846
+
7847
+var Controller = {
7848
+  LinearSpline: function LinearSpline(x, y) {
7849
+    var binarySearch = function search() {
7850
+      var maxIndex;
7851
+      var minIndex;
7852
+      var guess;
7853
+      return function (array, val) {
7854
+        minIndex = -1;
7855
+        maxIndex = array.length;
7856
+
7857
+        while (maxIndex - minIndex > 1) {
7858
+          guess = maxIndex + minIndex >> 1;
7859
+
7860
+          if (array[guess] <= val) {
7861
+            minIndex = guess;
7862
+          } else {
7863
+            maxIndex = guess;
7864
+          }
7865
+        }
7866
+
7867
+        return maxIndex;
7868
+      };
7869
+    }();
7870
+
7871
+    this.x = x;
7872
+    this.y = y;
7873
+    this.lastIndex = x.length - 1; // Given an x value (x2), return the expected y2 value:
7874
+    // (x1,y1) is the known point before given value,
7875
+    // (x3,y3) is the known point after given value.
7876
+
7877
+    var i1;
7878
+    var i3;
7879
+
7880
+    this.interpolate = function interpolate(x2) {
7881
+      if (!x2) return 0; // Get the indexes of x1 and x3 (the array indexes before and after given x2):
7882
+
7883
+      i3 = binarySearch(this.x, x2);
7884
+      i1 = i3 - 1; // We have our indexes i1 & i3, so we can calculate already:
7885
+      // y2 := ((x2−x1) × (y3−y1)) ÷ (x3−x1) + y1
7886
+
7887
+      return (x2 - this.x[i1]) * (this.y[i3] - this.y[i1]) / (this.x[i3] - this.x[i1]) + this.y[i1];
7888
+    };
7889
+
7890
+    return this;
7891
+  },
7892
+  // xxx: for now i will just save one spline function to to
7893
+  getInterpolateFunction: function getInterpolateFunction(c) {
7894
+    var swiper = this;
7895
+
7896
+    if (!swiper.controller.spline) {
7897
+      swiper.controller.spline = swiper.params.loop ? new Controller.LinearSpline(swiper.slidesGrid, c.slidesGrid) : new Controller.LinearSpline(swiper.snapGrid, c.snapGrid);
7898
+    }
7899
+  },
7900
+  setTranslate: function setTranslate(_setTranslate, byController) {
7901
+    var swiper = this;
7902
+    var controlled = swiper.controller.control;
7903
+    var multiplier;
7904
+    var controlledTranslate;
7905
+    var Swiper = swiper.constructor;
7906
+
7907
+    function setControlledTranslate(c) {
7908
+      // this will create an Interpolate function based on the snapGrids
7909
+      // x is the Grid of the scrolled scroller and y will be the controlled scroller
7910
+      // it makes sense to create this only once and recall it for the interpolation
7911
+      // the function does a lot of value caching for performance
7912
+      var translate = swiper.rtlTranslate ? -swiper.translate : swiper.translate;
7913
+
7914
+      if (swiper.params.controller.by === 'slide') {
7915
+        swiper.controller.getInterpolateFunction(c); // i am not sure why the values have to be multiplicated this way, tried to invert the snapGrid
7916
+        // but it did not work out
7917
+
7918
+        controlledTranslate = -swiper.controller.spline.interpolate(-translate);
7919
+      }
7920
+
7921
+      if (!controlledTranslate || swiper.params.controller.by === 'container') {
7922
+        multiplier = (c.maxTranslate() - c.minTranslate()) / (swiper.maxTranslate() - swiper.minTranslate());
7923
+        controlledTranslate = (translate - swiper.minTranslate()) * multiplier + c.minTranslate();
7924
+      }
7925
+
7926
+      if (swiper.params.controller.inverse) {
7927
+        controlledTranslate = c.maxTranslate() - controlledTranslate;
7928
+      }
7929
+
7930
+      c.updateProgress(controlledTranslate);
7931
+      c.setTranslate(controlledTranslate, swiper);
7932
+      c.updateActiveIndex();
7933
+      c.updateSlidesClasses();
7934
+    }
7935
+
7936
+    if (Array.isArray(controlled)) {
7937
+      for (var i = 0; i < controlled.length; i += 1) {
7938
+        if (controlled[i] !== byController && controlled[i] instanceof Swiper) {
7939
+          setControlledTranslate(controlled[i]);
7940
+        }
7941
+      }
7942
+    } else if (controlled instanceof Swiper && byController !== controlled) {
7943
+      setControlledTranslate(controlled);
7944
+    }
7945
+  },
7946
+  setTransition: function setTransition(duration, byController) {
7947
+    var swiper = this;
7948
+    var Swiper = swiper.constructor;
7949
+    var controlled = swiper.controller.control;
7950
+    var i;
7951
+
7952
+    function setControlledTransition(c) {
7953
+      c.setTransition(duration, swiper);
7954
+
7955
+      if (duration !== 0) {
7956
+        c.transitionStart();
7957
+
7958
+        if (c.params.autoHeight) {
7959
+          nextTick(function () {
7960
+            c.updateAutoHeight();
7961
+          });
7962
+        }
7963
+
7964
+        c.$wrapperEl.transitionEnd(function () {
7965
+          if (!controlled) return;
7966
+
7967
+          if (c.params.loop && swiper.params.controller.by === 'slide') {
7968
+            c.loopFix();
7969
+          }
7970
+
7971
+          c.transitionEnd();
7972
+        });
7973
+      }
7974
+    }
7975
+
7976
+    if (Array.isArray(controlled)) {
7977
+      for (i = 0; i < controlled.length; i += 1) {
7978
+        if (controlled[i] !== byController && controlled[i] instanceof Swiper) {
7979
+          setControlledTransition(controlled[i]);
7980
+        }
7981
+      }
7982
+    } else if (controlled instanceof Swiper && byController !== controlled) {
7983
+      setControlledTransition(controlled);
7984
+    }
7985
+  }
7986
+};
7987
+var Controller$1 = {
7988
+  name: 'controller',
7989
+  params: {
7990
+    controller: {
7991
+      control: undefined,
7992
+      inverse: false,
7993
+      by: 'slide' // or 'container'
7994
+
7995
+    }
7996
+  },
7997
+  create: function create() {
7998
+    var swiper = this;
7999
+    bindModuleMethods(swiper, {
8000
+      controller: _extends({
8001
+        control: swiper.params.controller.control
8002
+      }, Controller)
8003
+    });
8004
+  },
8005
+  on: {
8006
+    update: function update(swiper) {
8007
+      if (!swiper.controller.control) return;
8008
+
8009
+      if (swiper.controller.spline) {
8010
+        swiper.controller.spline = undefined;
8011
+        delete swiper.controller.spline;
8012
+      }
8013
+    },
8014
+    resize: function resize(swiper) {
8015
+      if (!swiper.controller.control) return;
8016
+
8017
+      if (swiper.controller.spline) {
8018
+        swiper.controller.spline = undefined;
8019
+        delete swiper.controller.spline;
8020
+      }
8021
+    },
8022
+    observerUpdate: function observerUpdate(swiper) {
8023
+      if (!swiper.controller.control) return;
8024
+
8025
+      if (swiper.controller.spline) {
8026
+        swiper.controller.spline = undefined;
8027
+        delete swiper.controller.spline;
8028
+      }
8029
+    },
8030
+    setTranslate: function setTranslate(swiper, translate, byController) {
8031
+      if (!swiper.controller.control) return;
8032
+      swiper.controller.setTranslate(translate, byController);
8033
+    },
8034
+    setTransition: function setTransition(swiper, duration, byController) {
8035
+      if (!swiper.controller.control) return;
8036
+      swiper.controller.setTransition(duration, byController);
8037
+    }
8038
+  }
8039
+};
8040
+
8041
+var A11y = {
8042
+  getRandomNumber: function getRandomNumber(size) {
8043
+    if (size === void 0) {
8044
+      size = 16;
8045
+    }
8046
+
8047
+    var randomChar = function randomChar() {
8048
+      return Math.round(16 * Math.random()).toString(16);
8049
+    };
8050
+
8051
+    return 'x'.repeat(size).replace(/x/g, randomChar);
8052
+  },
8053
+  makeElFocusable: function makeElFocusable($el) {
8054
+    $el.attr('tabIndex', '0');
8055
+    return $el;
8056
+  },
8057
+  makeElNotFocusable: function makeElNotFocusable($el) {
8058
+    $el.attr('tabIndex', '-1');
8059
+    return $el;
8060
+  },
8061
+  addElRole: function addElRole($el, role) {
8062
+    $el.attr('role', role);
8063
+    return $el;
8064
+  },
8065
+  addElRoleDescription: function addElRoleDescription($el, description) {
8066
+    $el.attr('aria-role-description', description);
8067
+    return $el;
8068
+  },
8069
+  addElControls: function addElControls($el, controls) {
8070
+    $el.attr('aria-controls', controls);
8071
+    return $el;
8072
+  },
8073
+  addElLabel: function addElLabel($el, label) {
8074
+    $el.attr('aria-label', label);
8075
+    return $el;
8076
+  },
8077
+  addElId: function addElId($el, id) {
8078
+    $el.attr('id', id);
8079
+    return $el;
8080
+  },
8081
+  addElLive: function addElLive($el, live) {
8082
+    $el.attr('aria-live', live);
8083
+    return $el;
8084
+  },
8085
+  disableEl: function disableEl($el) {
8086
+    $el.attr('aria-disabled', true);
8087
+    return $el;
8088
+  },
8089
+  enableEl: function enableEl($el) {
8090
+    $el.attr('aria-disabled', false);
8091
+    return $el;
8092
+  },
8093
+  onEnterKey: function onEnterKey(e) {
8094
+    var swiper = this;
8095
+    var params = swiper.params.a11y;
8096
+    if (e.keyCode !== 13) return;
8097
+    var $targetEl = $(e.target);
8098
+
8099
+    if (swiper.navigation && swiper.navigation.$nextEl && $targetEl.is(swiper.navigation.$nextEl)) {
8100
+      if (!(swiper.isEnd && !swiper.params.loop)) {
8101
+        swiper.slideNext();
8102
+      }
8103
+
8104
+      if (swiper.isEnd) {
8105
+        swiper.a11y.notify(params.lastSlideMessage);
8106
+      } else {
8107
+        swiper.a11y.notify(params.nextSlideMessage);
8108
+      }
8109
+    }
8110
+
8111
+    if (swiper.navigation && swiper.navigation.$prevEl && $targetEl.is(swiper.navigation.$prevEl)) {
8112
+      if (!(swiper.isBeginning && !swiper.params.loop)) {
8113
+        swiper.slidePrev();
8114
+      }
8115
+
8116
+      if (swiper.isBeginning) {
8117
+        swiper.a11y.notify(params.firstSlideMessage);
8118
+      } else {
8119
+        swiper.a11y.notify(params.prevSlideMessage);
8120
+      }
8121
+    }
8122
+
8123
+    if (swiper.pagination && $targetEl.is("." + swiper.params.pagination.bulletClass.replace(/ /g, '.'))) {
8124
+      $targetEl[0].click();
8125
+    }
8126
+  },
8127
+  notify: function notify(message) {
8128
+    var swiper = this;
8129
+    var notification = swiper.a11y.liveRegion;
8130
+    if (notification.length === 0) return;
8131
+    notification.html('');
8132
+    notification.html(message);
8133
+  },
8134
+  updateNavigation: function updateNavigation() {
8135
+    var swiper = this;
8136
+    if (swiper.params.loop || !swiper.navigation) return;
8137
+    var _swiper$navigation = swiper.navigation,
8138
+        $nextEl = _swiper$navigation.$nextEl,
8139
+        $prevEl = _swiper$navigation.$prevEl;
8140
+
8141
+    if ($prevEl && $prevEl.length > 0) {
8142
+      if (swiper.isBeginning) {
8143
+        swiper.a11y.disableEl($prevEl);
8144
+        swiper.a11y.makeElNotFocusable($prevEl);
8145
+      } else {
8146
+        swiper.a11y.enableEl($prevEl);
8147
+        swiper.a11y.makeElFocusable($prevEl);
8148
+      }
8149
+    }
8150
+
8151
+    if ($nextEl && $nextEl.length > 0) {
8152
+      if (swiper.isEnd) {
8153
+        swiper.a11y.disableEl($nextEl);
8154
+        swiper.a11y.makeElNotFocusable($nextEl);
8155
+      } else {
8156
+        swiper.a11y.enableEl($nextEl);
8157
+        swiper.a11y.makeElFocusable($nextEl);
8158
+      }
8159
+    }
8160
+  },
8161
+  updatePagination: function updatePagination() {
8162
+    var swiper = this;
8163
+    var params = swiper.params.a11y;
8164
+
8165
+    if (swiper.pagination && swiper.params.pagination.clickable && swiper.pagination.bullets && swiper.pagination.bullets.length) {
8166
+      swiper.pagination.bullets.each(function (bulletEl) {
8167
+        var $bulletEl = $(bulletEl);
8168
+        swiper.a11y.makeElFocusable($bulletEl);
8169
+
8170
+        if (!swiper.params.pagination.renderBullet) {
8171
+          swiper.a11y.addElRole($bulletEl, 'button');
8172
+          swiper.a11y.addElLabel($bulletEl, params.paginationBulletMessage.replace(/\{\{index\}\}/, $bulletEl.index() + 1));
8173
+        }
8174
+      });
8175
+    }
8176
+  },
8177
+  init: function init() {
8178
+    var swiper = this;
8179
+    var params = swiper.params.a11y;
8180
+    swiper.$el.append(swiper.a11y.liveRegion); // Container
8181
+
8182
+    var $containerEl = swiper.$el;
8183
+
8184
+    if (params.containerRoleDescriptionMessage) {
8185
+      swiper.a11y.addElRoleDescription($containerEl, params.containerRoleDescriptionMessage);
8186
+    }
8187
+
8188
+    if (params.containerMessage) {
8189
+      swiper.a11y.addElLabel($containerEl, params.containerMessage);
8190
+    } // Wrapper
8191
+
8192
+
8193
+    var $wrapperEl = swiper.$wrapperEl;
8194
+    var wrapperId = $wrapperEl.attr('id') || "swiper-wrapper-" + swiper.a11y.getRandomNumber(16);
8195
+    var live;
8196
+    swiper.a11y.addElId($wrapperEl, wrapperId);
8197
+
8198
+    if (swiper.params.autoplay && swiper.params.autoplay.enabled) {
8199
+      live = 'off';
8200
+    } else {
8201
+      live = 'polite';
8202
+    }
8203
+
8204
+    swiper.a11y.addElLive($wrapperEl, live); // Slide
8205
+
8206
+    if (params.itemRoleDescriptionMessage) {
8207
+      swiper.a11y.addElRoleDescription($(swiper.slides), params.itemRoleDescriptionMessage);
8208
+    }
8209
+
8210
+    swiper.a11y.addElRole($(swiper.slides), 'group');
8211
+    swiper.slides.each(function (slideEl) {
8212
+      var $slideEl = $(slideEl);
8213
+      swiper.a11y.addElLabel($slideEl, $slideEl.index() + 1 + " / " + swiper.slides.length);
8214
+    }); // Navigation
8215
+
8216
+    var $nextEl;
8217
+    var $prevEl;
8218
+
8219
+    if (swiper.navigation && swiper.navigation.$nextEl) {
8220
+      $nextEl = swiper.navigation.$nextEl;
8221
+    }
8222
+
8223
+    if (swiper.navigation && swiper.navigation.$prevEl) {
8224
+      $prevEl = swiper.navigation.$prevEl;
8225
+    }
8226
+
8227
+    if ($nextEl && $nextEl.length) {
8228
+      swiper.a11y.makeElFocusable($nextEl);
8229
+
8230
+      if ($nextEl[0].tagName !== 'BUTTON') {
8231
+        swiper.a11y.addElRole($nextEl, 'button');
8232
+        $nextEl.on('keydown', swiper.a11y.onEnterKey);
8233
+      }
8234
+
8235
+      swiper.a11y.addElLabel($nextEl, params.nextSlideMessage);
8236
+      swiper.a11y.addElControls($nextEl, wrapperId);
8237
+    }
8238
+
8239
+    if ($prevEl && $prevEl.length) {
8240
+      swiper.a11y.makeElFocusable($prevEl);
8241
+
8242
+      if ($prevEl[0].tagName !== 'BUTTON') {
8243
+        swiper.a11y.addElRole($prevEl, 'button');
8244
+        $prevEl.on('keydown', swiper.a11y.onEnterKey);
8245
+      }
8246
+
8247
+      swiper.a11y.addElLabel($prevEl, params.prevSlideMessage);
8248
+      swiper.a11y.addElControls($prevEl, wrapperId);
8249
+    } // Pagination
8250
+
8251
+
8252
+    if (swiper.pagination && swiper.params.pagination.clickable && swiper.pagination.bullets && swiper.pagination.bullets.length) {
8253
+      swiper.pagination.$el.on('keydown', "." + swiper.params.pagination.bulletClass.replace(/ /g, '.'), swiper.a11y.onEnterKey);
8254
+    }
8255
+  },
8256
+  destroy: function destroy() {
8257
+    var swiper = this;
8258
+    if (swiper.a11y.liveRegion && swiper.a11y.liveRegion.length > 0) swiper.a11y.liveRegion.remove();
8259
+    var $nextEl;
8260
+    var $prevEl;
8261
+
8262
+    if (swiper.navigation && swiper.navigation.$nextEl) {
8263
+      $nextEl = swiper.navigation.$nextEl;
8264
+    }
8265
+
8266
+    if (swiper.navigation && swiper.navigation.$prevEl) {
8267
+      $prevEl = swiper.navigation.$prevEl;
8268
+    }
8269
+
8270
+    if ($nextEl) {
8271
+      $nextEl.off('keydown', swiper.a11y.onEnterKey);
8272
+    }
8273
+
8274
+    if ($prevEl) {
8275
+      $prevEl.off('keydown', swiper.a11y.onEnterKey);
8276
+    } // Pagination
8277
+
8278
+
8279
+    if (swiper.pagination && swiper.params.pagination.clickable && swiper.pagination.bullets && swiper.pagination.bullets.length) {
8280
+      swiper.pagination.$el.off('keydown', "." + swiper.params.pagination.bulletClass.replace(/ /g, '.'), swiper.a11y.onEnterKey);
8281
+    }
8282
+  }
8283
+};
8284
+var A11y$1 = {
8285
+  name: 'a11y',
8286
+  params: {
8287
+    a11y: {
8288
+      enabled: true,
8289
+      notificationClass: 'swiper-notification',
8290
+      prevSlideMessage: 'Previous slide',
8291
+      nextSlideMessage: 'Next slide',
8292
+      firstSlideMessage: 'This is the first slide',
8293
+      lastSlideMessage: 'This is the last slide',
8294
+      paginationBulletMessage: 'Go to slide {{index}}',
8295
+      containerMessage: null,
8296
+      containerRoleDescriptionMessage: null,
8297
+      itemRoleDescriptionMessage: null
8298
+    }
8299
+  },
8300
+  create: function create() {
8301
+    var swiper = this;
8302
+    bindModuleMethods(swiper, {
8303
+      a11y: _extends({}, A11y, {
8304
+        liveRegion: $("<span class=\"" + swiper.params.a11y.notificationClass + "\" aria-live=\"assertive\" aria-atomic=\"true\"></span>")
8305
+      })
8306
+    });
8307
+  },
8308
+  on: {
8309
+    afterInit: function afterInit(swiper) {
8310
+      if (!swiper.params.a11y.enabled) return;
8311
+      swiper.a11y.init();
8312
+      swiper.a11y.updateNavigation();
8313
+    },
8314
+    toEdge: function toEdge(swiper) {
8315
+      if (!swiper.params.a11y.enabled) return;
8316
+      swiper.a11y.updateNavigation();
8317
+    },
8318
+    fromEdge: function fromEdge(swiper) {
8319
+      if (!swiper.params.a11y.enabled) return;
8320
+      swiper.a11y.updateNavigation();
8321
+    },
8322
+    paginationUpdate: function paginationUpdate(swiper) {
8323
+      if (!swiper.params.a11y.enabled) return;
8324
+      swiper.a11y.updatePagination();
8325
+    },
8326
+    destroy: function destroy(swiper) {
8327
+      if (!swiper.params.a11y.enabled) return;
8328
+      swiper.a11y.destroy();
8329
+    }
8330
+  }
8331
+};
8332
+
8333
+var History = {
8334
+  init: function init() {
8335
+    var swiper = this;
8336
+    var window = getWindow();
8337
+    if (!swiper.params.history) return;
8338
+
8339
+    if (!window.history || !window.history.pushState) {
8340
+      swiper.params.history.enabled = false;
8341
+      swiper.params.hashNavigation.enabled = true;
8342
+      return;
8343
+    }
8344
+
8345
+    var history = swiper.history;
8346
+    history.initialized = true;
8347
+    history.paths = History.getPathValues(swiper.params.url);
8348
+    if (!history.paths.key && !history.paths.value) return;
8349
+    history.scrollToSlide(0, history.paths.value, swiper.params.runCallbacksOnInit);
8350
+
8351
+    if (!swiper.params.history.replaceState) {
8352
+      window.addEventListener('popstate', swiper.history.setHistoryPopState);
8353
+    }
8354
+  },
8355
+  destroy: function destroy() {
8356
+    var swiper = this;
8357
+    var window = getWindow();
8358
+
8359
+    if (!swiper.params.history.replaceState) {
8360
+      window.removeEventListener('popstate', swiper.history.setHistoryPopState);
8361
+    }
8362
+  },
8363
+  setHistoryPopState: function setHistoryPopState() {
8364
+    var swiper = this;
8365
+    swiper.history.paths = History.getPathValues(swiper.params.url);
8366
+    swiper.history.scrollToSlide(swiper.params.speed, swiper.history.paths.value, false);
8367
+  },
8368
+  getPathValues: function getPathValues(urlOverride) {
8369
+    var window = getWindow();
8370
+    var location;
8371
+
8372
+    if (urlOverride) {
8373
+      location = new URL(urlOverride);
8374
+    } else {
8375
+      location = window.location;
8376
+    }
8377
+
8378
+    var pathArray = location.pathname.slice(1).split('/').filter(function (part) {
8379
+      return part !== '';
8380
+    });
8381
+    var total = pathArray.length;
8382
+    var key = pathArray[total - 2];
8383
+    var value = pathArray[total - 1];
8384
+    return {
8385
+      key: key,
8386
+      value: value
8387
+    };
8388
+  },
8389
+  setHistory: function setHistory(key, index) {
8390
+    var swiper = this;
8391
+    var window = getWindow();
8392
+    if (!swiper.history.initialized || !swiper.params.history.enabled) return;
8393
+    var location;
8394
+
8395
+    if (swiper.params.url) {
8396
+      location = new URL(swiper.params.url);
8397
+    } else {
8398
+      location = window.location;
8399
+    }
8400
+
8401
+    var slide = swiper.slides.eq(index);
8402
+    var value = History.slugify(slide.attr('data-history'));
8403
+
8404
+    if (!location.pathname.includes(key)) {
8405
+      value = key + "/" + value;
8406
+    }
8407
+
8408
+    var currentState = window.history.state;
8409
+
8410
+    if (currentState && currentState.value === value) {
8411
+      return;
8412
+    }
8413
+
8414
+    if (swiper.params.history.replaceState) {
8415
+      window.history.replaceState({
8416
+        value: value
8417
+      }, null, value);
8418
+    } else {
8419
+      window.history.pushState({
8420
+        value: value
8421
+      }, null, value);
8422
+    }
8423
+  },
8424
+  slugify: function slugify(text) {
8425
+    return text.toString().replace(/\s+/g, '-').replace(/[^\w-]+/g, '').replace(/--+/g, '-').replace(/^-+/, '').replace(/-+$/, '');
8426
+  },
8427
+  scrollToSlide: function scrollToSlide(speed, value, runCallbacks) {
8428
+    var swiper = this;
8429
+
8430
+    if (value) {
8431
+      for (var i = 0, length = swiper.slides.length; i < length; i += 1) {
8432
+        var slide = swiper.slides.eq(i);
8433
+        var slideHistory = History.slugify(slide.attr('data-history'));
8434
+
8435
+        if (slideHistory === value && !slide.hasClass(swiper.params.slideDuplicateClass)) {
8436
+          var index = slide.index();
8437
+          swiper.slideTo(index, speed, runCallbacks);
8438
+        }
8439
+      }
8440
+    } else {
8441
+      swiper.slideTo(0, speed, runCallbacks);
8442
+    }
8443
+  }
8444
+};
8445
+var History$1 = {
8446
+  name: 'history',
8447
+  params: {
8448
+    history: {
8449
+      enabled: false,
8450
+      replaceState: false,
8451
+      key: 'slides'
8452
+    }
8453
+  },
8454
+  create: function create() {
8455
+    var swiper = this;
8456
+    bindModuleMethods(swiper, {
8457
+      history: _extends({}, History)
8458
+    });
8459
+  },
8460
+  on: {
8461
+    init: function init(swiper) {
8462
+      if (swiper.params.history.enabled) {
8463
+        swiper.history.init();
8464
+      }
8465
+    },
8466
+    destroy: function destroy(swiper) {
8467
+      if (swiper.params.history.enabled) {
8468
+        swiper.history.destroy();
8469
+      }
8470
+    },
8471
+    transitionEnd: function transitionEnd(swiper) {
8472
+      if (swiper.history.initialized) {
8473
+        swiper.history.setHistory(swiper.params.history.key, swiper.activeIndex);
8474
+      }
8475
+    },
8476
+    slideChange: function slideChange(swiper) {
8477
+      if (swiper.history.initialized && swiper.params.cssMode) {
8478
+        swiper.history.setHistory(swiper.params.history.key, swiper.activeIndex);
8479
+      }
8480
+    }
8481
+  }
8482
+};
8483
+
8484
+var HashNavigation = {
8485
+  onHashCange: function onHashCange() {
8486
+    var swiper = this;
8487
+    var document = getDocument();
8488
+    swiper.emit('hashChange');
8489
+    var newHash = document.location.hash.replace('#', '');
8490
+    var activeSlideHash = swiper.slides.eq(swiper.activeIndex).attr('data-hash');
8491
+
8492
+    if (newHash !== activeSlideHash) {
8493
+      var newIndex = swiper.$wrapperEl.children("." + swiper.params.slideClass + "[data-hash=\"" + newHash + "\"]").index();
8494
+      if (typeof newIndex === 'undefined') return;
8495
+      swiper.slideTo(newIndex);
8496
+    }
8497
+  },
8498
+  setHash: function setHash() {
8499
+    var swiper = this;
8500
+    var window = getWindow();
8501
+    var document = getDocument();
8502
+    if (!swiper.hashNavigation.initialized || !swiper.params.hashNavigation.enabled) return;
8503
+
8504
+    if (swiper.params.hashNavigation.replaceState && window.history && window.history.replaceState) {
8505
+      window.history.replaceState(null, null, "#" + swiper.slides.eq(swiper.activeIndex).attr('data-hash') || '');
8506
+      swiper.emit('hashSet');
8507
+    } else {
8508
+      var slide = swiper.slides.eq(swiper.activeIndex);
8509
+      var hash = slide.attr('data-hash') || slide.attr('data-history');
8510
+      document.location.hash = hash || '';
8511
+      swiper.emit('hashSet');
8512
+    }
8513
+  },
8514
+  init: function init() {
8515
+    var swiper = this;
8516
+    var document = getDocument();
8517
+    var window = getWindow();
8518
+    if (!swiper.params.hashNavigation.enabled || swiper.params.history && swiper.params.history.enabled) return;
8519
+    swiper.hashNavigation.initialized = true;
8520
+    var hash = document.location.hash.replace('#', '');
8521
+
8522
+    if (hash) {
8523
+      var speed = 0;
8524
+
8525
+      for (var i = 0, length = swiper.slides.length; i < length; i += 1) {
8526
+        var slide = swiper.slides.eq(i);
8527
+        var slideHash = slide.attr('data-hash') || slide.attr('data-history');
8528
+
8529
+        if (slideHash === hash && !slide.hasClass(swiper.params.slideDuplicateClass)) {
8530
+          var index = slide.index();
8531
+          swiper.slideTo(index, speed, swiper.params.runCallbacksOnInit, true);
8532
+        }
8533
+      }
8534
+    }
8535
+
8536
+    if (swiper.params.hashNavigation.watchState) {
8537
+      $(window).on('hashchange', swiper.hashNavigation.onHashCange);
8538
+    }
8539
+  },
8540
+  destroy: function destroy() {
8541
+    var swiper = this;
8542
+    var window = getWindow();
8543
+
8544
+    if (swiper.params.hashNavigation.watchState) {
8545
+      $(window).off('hashchange', swiper.hashNavigation.onHashCange);
8546
+    }
8547
+  }
8548
+};
8549
+var HashNavigation$1 = {
8550
+  name: 'hash-navigation',
8551
+  params: {
8552
+    hashNavigation: {
8553
+      enabled: false,
8554
+      replaceState: false,
8555
+      watchState: false
8556
+    }
8557
+  },
8558
+  create: function create() {
8559
+    var swiper = this;
8560
+    bindModuleMethods(swiper, {
8561
+      hashNavigation: _extends({
8562
+        initialized: false
8563
+      }, HashNavigation)
8564
+    });
8565
+  },
8566
+  on: {
8567
+    init: function init(swiper) {
8568
+      if (swiper.params.hashNavigation.enabled) {
8569
+        swiper.hashNavigation.init();
8570
+      }
8571
+    },
8572
+    destroy: function destroy(swiper) {
8573
+      if (swiper.params.hashNavigation.enabled) {
8574
+        swiper.hashNavigation.destroy();
8575
+      }
8576
+    },
8577
+    transitionEnd: function transitionEnd(swiper) {
8578
+      if (swiper.hashNavigation.initialized) {
8579
+        swiper.hashNavigation.setHash();
8580
+      }
8581
+    },
8582
+    slideChange: function slideChange(swiper) {
8583
+      if (swiper.hashNavigation.initialized && swiper.params.cssMode) {
8584
+        swiper.hashNavigation.setHash();
8585
+      }
8586
+    }
8587
+  }
8588
+};
8589
+
8590
+var Autoplay = {
8591
+  run: function run() {
8592
+    var swiper = this;
8593
+    var $activeSlideEl = swiper.slides.eq(swiper.activeIndex);
8594
+    var delay = swiper.params.autoplay.delay;
8595
+
8596
+    if ($activeSlideEl.attr('data-swiper-autoplay')) {
8597
+      delay = $activeSlideEl.attr('data-swiper-autoplay') || swiper.params.autoplay.delay;
8598
+    }
8599
+
8600
+    clearTimeout(swiper.autoplay.timeout);
8601
+    swiper.autoplay.timeout = nextTick(function () {
8602
+      var autoplayResult;
8603
+
8604
+      if (swiper.params.autoplay.reverseDirection) {
8605
+        if (swiper.params.loop) {
8606
+          swiper.loopFix();
8607
+          autoplayResult = swiper.slidePrev(swiper.params.speed, true, true);
8608
+          swiper.emit('autoplay');
8609
+        } else if (!swiper.isBeginning) {
8610
+          autoplayResult = swiper.slidePrev(swiper.params.speed, true, true);
8611
+          swiper.emit('autoplay');
8612
+        } else if (!swiper.params.autoplay.stopOnLastSlide) {
8613
+          autoplayResult = swiper.slideTo(swiper.slides.length - 1, swiper.params.speed, true, true);
8614
+          swiper.emit('autoplay');
8615
+        } else {
8616
+          swiper.autoplay.stop();
8617
+        }
8618
+      } else if (swiper.params.loop) {
8619
+        swiper.loopFix();
8620
+        autoplayResult = swiper.slideNext(swiper.params.speed, true, true);
8621
+        swiper.emit('autoplay');
8622
+      } else if (!swiper.isEnd) {
8623
+        autoplayResult = swiper.slideNext(swiper.params.speed, true, true);
8624
+        swiper.emit('autoplay');
8625
+      } else if (!swiper.params.autoplay.stopOnLastSlide) {
8626
+        autoplayResult = swiper.slideTo(0, swiper.params.speed, true, true);
8627
+        swiper.emit('autoplay');
8628
+      } else {
8629
+        swiper.autoplay.stop();
8630
+      }
8631
+
8632
+      if (swiper.params.cssMode && swiper.autoplay.running) swiper.autoplay.run();else if (autoplayResult === false) {
8633
+        swiper.autoplay.run();
8634
+      }
8635
+    }, delay);
8636
+  },
8637
+  start: function start() {
8638
+    var swiper = this;
8639
+    if (typeof swiper.autoplay.timeout !== 'undefined') return false;
8640
+    if (swiper.autoplay.running) return false;
8641
+    swiper.autoplay.running = true;
8642
+    swiper.emit('autoplayStart');
8643
+    swiper.autoplay.run();
8644
+    return true;
8645
+  },
8646
+  stop: function stop() {
8647
+    var swiper = this;
8648
+    if (!swiper.autoplay.running) return false;
8649
+    if (typeof swiper.autoplay.timeout === 'undefined') return false;
8650
+
8651
+    if (swiper.autoplay.timeout) {
8652
+      clearTimeout(swiper.autoplay.timeout);
8653
+      swiper.autoplay.timeout = undefined;
8654
+    }
8655
+
8656
+    swiper.autoplay.running = false;
8657
+    swiper.emit('autoplayStop');
8658
+    return true;
8659
+  },
8660
+  pause: function pause(speed) {
8661
+    var swiper = this;
8662
+    if (!swiper.autoplay.running) return;
8663
+    if (swiper.autoplay.paused) return;
8664
+    if (swiper.autoplay.timeout) clearTimeout(swiper.autoplay.timeout);
8665
+    swiper.autoplay.paused = true;
8666
+
8667
+    if (speed === 0 || !swiper.params.autoplay.waitForTransition) {
8668
+      swiper.autoplay.paused = false;
8669
+      swiper.autoplay.run();
8670
+    } else {
8671
+      swiper.$wrapperEl[0].addEventListener('transitionend', swiper.autoplay.onTransitionEnd);
8672
+      swiper.$wrapperEl[0].addEventListener('webkitTransitionEnd', swiper.autoplay.onTransitionEnd);
8673
+    }
8674
+  },
8675
+  onVisibilityChange: function onVisibilityChange() {
8676
+    var swiper = this;
8677
+    var document = getDocument();
8678
+
8679
+    if (document.visibilityState === 'hidden' && swiper.autoplay.running) {
8680
+      swiper.autoplay.pause();
8681
+    }
8682
+
8683
+    if (document.visibilityState === 'visible' && swiper.autoplay.paused) {
8684
+      swiper.autoplay.run();
8685
+      swiper.autoplay.paused = false;
8686
+    }
8687
+  },
8688
+  onTransitionEnd: function onTransitionEnd(e) {
8689
+    var swiper = this;
8690
+    if (!swiper || swiper.destroyed || !swiper.$wrapperEl) return;
8691
+    if (e.target !== swiper.$wrapperEl[0]) return;
8692
+    swiper.$wrapperEl[0].removeEventListener('transitionend', swiper.autoplay.onTransitionEnd);
8693
+    swiper.$wrapperEl[0].removeEventListener('webkitTransitionEnd', swiper.autoplay.onTransitionEnd);
8694
+    swiper.autoplay.paused = false;
8695
+
8696
+    if (!swiper.autoplay.running) {
8697
+      swiper.autoplay.stop();
8698
+    } else {
8699
+      swiper.autoplay.run();
8700
+    }
8701
+  }
8702
+};
8703
+var Autoplay$1 = {
8704
+  name: 'autoplay',
8705
+  params: {
8706
+    autoplay: {
8707
+      enabled: false,
8708
+      delay: 3000,
8709
+      waitForTransition: true,
8710
+      disableOnInteraction: true,
8711
+      stopOnLastSlide: false,
8712
+      reverseDirection: false
8713
+    }
8714
+  },
8715
+  create: function create() {
8716
+    var swiper = this;
8717
+    bindModuleMethods(swiper, {
8718
+      autoplay: _extends({}, Autoplay, {
8719
+        running: false,
8720
+        paused: false
8721
+      })
8722
+    });
8723
+  },
8724
+  on: {
8725
+    init: function init(swiper) {
8726
+      if (swiper.params.autoplay.enabled) {
8727
+        swiper.autoplay.start();
8728
+        var document = getDocument();
8729
+        document.addEventListener('visibilitychange', swiper.autoplay.onVisibilityChange);
8730
+      }
8731
+    },
8732
+    beforeTransitionStart: function beforeTransitionStart(swiper, speed, internal) {
8733
+      if (swiper.autoplay.running) {
8734
+        if (internal || !swiper.params.autoplay.disableOnInteraction) {
8735
+          swiper.autoplay.pause(speed);
8736
+        } else {
8737
+          swiper.autoplay.stop();
8738
+        }
8739
+      }
8740
+    },
8741
+    sliderFirstMove: function sliderFirstMove(swiper) {
8742
+      if (swiper.autoplay.running) {
8743
+        if (swiper.params.autoplay.disableOnInteraction) {
8744
+          swiper.autoplay.stop();
8745
+        } else {
8746
+          swiper.autoplay.pause();
8747
+        }
8748
+      }
8749
+    },
8750
+    touchEnd: function touchEnd(swiper) {
8751
+      if (swiper.params.cssMode && swiper.autoplay.paused && !swiper.params.autoplay.disableOnInteraction) {
8752
+        swiper.autoplay.run();
8753
+      }
8754
+    },
8755
+    destroy: function destroy(swiper) {
8756
+      if (swiper.autoplay.running) {
8757
+        swiper.autoplay.stop();
8758
+      }
8759
+
8760
+      var document = getDocument();
8761
+      document.removeEventListener('visibilitychange', swiper.autoplay.onVisibilityChange);
8762
+    }
8763
+  }
8764
+};
8765
+
8766
+var Fade = {
8767
+  setTranslate: function setTranslate() {
8768
+    var swiper = this;
8769
+    var slides = swiper.slides;
8770
+
8771
+    for (var i = 0; i < slides.length; i += 1) {
8772
+      var $slideEl = swiper.slides.eq(i);
8773
+      var offset = $slideEl[0].swiperSlideOffset;
8774
+      var tx = -offset;
8775
+      if (!swiper.params.virtualTranslate) tx -= swiper.translate;
8776
+      var ty = 0;
8777
+
8778
+      if (!swiper.isHorizontal()) {
8779
+        ty = tx;
8780
+        tx = 0;
8781
+      }
8782
+
8783
+      var slideOpacity = swiper.params.fadeEffect.crossFade ? Math.max(1 - Math.abs($slideEl[0].progress), 0) : 1 + Math.min(Math.max($slideEl[0].progress, -1), 0);
8784
+      $slideEl.css({
8785
+        opacity: slideOpacity
8786
+      }).transform("translate3d(" + tx + "px, " + ty + "px, 0px)");
8787
+    }
8788
+  },
8789
+  setTransition: function setTransition(duration) {
8790
+    var swiper = this;
8791
+    var slides = swiper.slides,
8792
+        $wrapperEl = swiper.$wrapperEl;
8793
+    slides.transition(duration);
8794
+
8795
+    if (swiper.params.virtualTranslate && duration !== 0) {
8796
+      var eventTriggered = false;
8797
+      slides.transitionEnd(function () {
8798
+        if (eventTriggered) return;
8799
+        if (!swiper || swiper.destroyed) return;
8800
+        eventTriggered = true;
8801
+        swiper.animating = false;
8802
+        var triggerEvents = ['webkitTransitionEnd', 'transitionend'];
8803
+
8804
+        for (var i = 0; i < triggerEvents.length; i += 1) {
8805
+          $wrapperEl.trigger(triggerEvents[i]);
8806
+        }
8807
+      });
8808
+    }
8809
+  }
8810
+};
8811
+var EffectFade = {
8812
+  name: 'effect-fade',
8813
+  params: {
8814
+    fadeEffect: {
8815
+      crossFade: false
8816
+    }
8817
+  },
8818
+  create: function create() {
8819
+    var swiper = this;
8820
+    bindModuleMethods(swiper, {
8821
+      fadeEffect: _extends({}, Fade)
8822
+    });
8823
+  },
8824
+  on: {
8825
+    beforeInit: function beforeInit(swiper) {
8826
+      if (swiper.params.effect !== 'fade') return;
8827
+      swiper.classNames.push(swiper.params.containerModifierClass + "fade");
8828
+      var overwriteParams = {
8829
+        slidesPerView: 1,
8830
+        slidesPerColumn: 1,
8831
+        slidesPerGroup: 1,
8832
+        watchSlidesProgress: true,
8833
+        spaceBetween: 0,
8834
+        virtualTranslate: true
8835
+      };
8836
+      extend$1(swiper.params, overwriteParams);
8837
+      extend$1(swiper.originalParams, overwriteParams);
8838
+    },
8839
+    setTranslate: function setTranslate(swiper) {
8840
+      if (swiper.params.effect !== 'fade') return;
8841
+      swiper.fadeEffect.setTranslate();
8842
+    },
8843
+    setTransition: function setTransition(swiper, duration) {
8844
+      if (swiper.params.effect !== 'fade') return;
8845
+      swiper.fadeEffect.setTransition(duration);
8846
+    }
8847
+  }
8848
+};
8849
+
8850
+var Cube = {
8851
+  setTranslate: function setTranslate() {
8852
+    var swiper = this;
8853
+    var $el = swiper.$el,
8854
+        $wrapperEl = swiper.$wrapperEl,
8855
+        slides = swiper.slides,
8856
+        swiperWidth = swiper.width,
8857
+        swiperHeight = swiper.height,
8858
+        rtl = swiper.rtlTranslate,
8859
+        swiperSize = swiper.size,
8860
+        browser = swiper.browser;
8861
+    var params = swiper.params.cubeEffect;
8862
+    var isHorizontal = swiper.isHorizontal();
8863
+    var isVirtual = swiper.virtual && swiper.params.virtual.enabled;
8864
+    var wrapperRotate = 0;
8865
+    var $cubeShadowEl;
8866
+
8867
+    if (params.shadow) {
8868
+      if (isHorizontal) {
8869
+        $cubeShadowEl = $wrapperEl.find('.swiper-cube-shadow');
8870
+
8871
+        if ($cubeShadowEl.length === 0) {
8872
+          $cubeShadowEl = $('<div class="swiper-cube-shadow"></div>');
8873
+          $wrapperEl.append($cubeShadowEl);
8874
+        }
8875
+
8876
+        $cubeShadowEl.css({
8877
+          height: swiperWidth + "px"
8878
+        });
8879
+      } else {
8880
+        $cubeShadowEl = $el.find('.swiper-cube-shadow');
8881
+
8882
+        if ($cubeShadowEl.length === 0) {
8883
+          $cubeShadowEl = $('<div class="swiper-cube-shadow"></div>');
8884
+          $el.append($cubeShadowEl);
8885
+        }
8886
+      }
8887
+    }
8888
+
8889
+    for (var i = 0; i < slides.length; i += 1) {
8890
+      var $slideEl = slides.eq(i);
8891
+      var slideIndex = i;
8892
+
8893
+      if (isVirtual) {
8894
+        slideIndex = parseInt($slideEl.attr('data-swiper-slide-index'), 10);
8895
+      }
8896
+
8897
+      var slideAngle = slideIndex * 90;
8898
+      var round = Math.floor(slideAngle / 360);
8899
+
8900
+      if (rtl) {
8901
+        slideAngle = -slideAngle;
8902
+        round = Math.floor(-slideAngle / 360);
8903
+      }
8904
+
8905
+      var progress = Math.max(Math.min($slideEl[0].progress, 1), -1);
8906
+      var tx = 0;
8907
+      var ty = 0;
8908
+      var tz = 0;
8909
+
8910
+      if (slideIndex % 4 === 0) {
8911
+        tx = -round * 4 * swiperSize;
8912
+        tz = 0;
8913
+      } else if ((slideIndex - 1) % 4 === 0) {
8914
+        tx = 0;
8915
+        tz = -round * 4 * swiperSize;
8916
+      } else if ((slideIndex - 2) % 4 === 0) {
8917
+        tx = swiperSize + round * 4 * swiperSize;
8918
+        tz = swiperSize;
8919
+      } else if ((slideIndex - 3) % 4 === 0) {
8920
+        tx = -swiperSize;
8921
+        tz = 3 * swiperSize + swiperSize * 4 * round;
8922
+      }
8923
+
8924
+      if (rtl) {
8925
+        tx = -tx;
8926
+      }
8927
+
8928
+      if (!isHorizontal) {
8929
+        ty = tx;
8930
+        tx = 0;
8931
+      }
8932
+
8933
+      var transform = "rotateX(" + (isHorizontal ? 0 : -slideAngle) + "deg) rotateY(" + (isHorizontal ? slideAngle : 0) + "deg) translate3d(" + tx + "px, " + ty + "px, " + tz + "px)";
8934
+
8935
+      if (progress <= 1 && progress > -1) {
8936
+        wrapperRotate = slideIndex * 90 + progress * 90;
8937
+        if (rtl) wrapperRotate = -slideIndex * 90 - progress * 90;
8938
+      }
8939
+
8940
+      $slideEl.transform(transform);
8941
+
8942
+      if (params.slideShadows) {
8943
+        // Set shadows
8944
+        var shadowBefore = isHorizontal ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top');
8945
+        var shadowAfter = isHorizontal ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom');
8946
+
8947
+        if (shadowBefore.length === 0) {
8948
+          shadowBefore = $("<div class=\"swiper-slide-shadow-" + (isHorizontal ? 'left' : 'top') + "\"></div>");
8949
+          $slideEl.append(shadowBefore);
8950
+        }
8951
+
8952
+        if (shadowAfter.length === 0) {
8953
+          shadowAfter = $("<div class=\"swiper-slide-shadow-" + (isHorizontal ? 'right' : 'bottom') + "\"></div>");
8954
+          $slideEl.append(shadowAfter);
8955
+        }
8956
+
8957
+        if (shadowBefore.length) shadowBefore[0].style.opacity = Math.max(-progress, 0);
8958
+        if (shadowAfter.length) shadowAfter[0].style.opacity = Math.max(progress, 0);
8959
+      }
8960
+    }
8961
+
8962
+    $wrapperEl.css({
8963
+      '-webkit-transform-origin': "50% 50% -" + swiperSize / 2 + "px",
8964
+      '-moz-transform-origin': "50% 50% -" + swiperSize / 2 + "px",
8965
+      '-ms-transform-origin': "50% 50% -" + swiperSize / 2 + "px",
8966
+      'transform-origin': "50% 50% -" + swiperSize / 2 + "px"
8967
+    });
8968
+
8969
+    if (params.shadow) {
8970
+      if (isHorizontal) {
8971
+        $cubeShadowEl.transform("translate3d(0px, " + (swiperWidth / 2 + params.shadowOffset) + "px, " + -swiperWidth / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + params.shadowScale + ")");
8972
+      } else {
8973
+        var shadowAngle = Math.abs(wrapperRotate) - Math.floor(Math.abs(wrapperRotate) / 90) * 90;
8974
+        var multiplier = 1.5 - (Math.sin(shadowAngle * 2 * Math.PI / 360) / 2 + Math.cos(shadowAngle * 2 * Math.PI / 360) / 2);
8975
+        var scale1 = params.shadowScale;
8976
+        var scale2 = params.shadowScale / multiplier;
8977
+        var offset = params.shadowOffset;
8978
+        $cubeShadowEl.transform("scale3d(" + scale1 + ", 1, " + scale2 + ") translate3d(0px, " + (swiperHeight / 2 + offset) + "px, " + -swiperHeight / 2 / scale2 + "px) rotateX(-90deg)");
8979
+      }
8980
+    }
8981
+
8982
+    var zFactor = browser.isSafari || browser.isWebView ? -swiperSize / 2 : 0;
8983
+    $wrapperEl.transform("translate3d(0px,0," + zFactor + "px) rotateX(" + (swiper.isHorizontal() ? 0 : wrapperRotate) + "deg) rotateY(" + (swiper.isHorizontal() ? -wrapperRotate : 0) + "deg)");
8984
+  },
8985
+  setTransition: function setTransition(duration) {
8986
+    var swiper = this;
8987
+    var $el = swiper.$el,
8988
+        slides = swiper.slides;
8989
+    slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
8990
+
8991
+    if (swiper.params.cubeEffect.shadow && !swiper.isHorizontal()) {
8992
+      $el.find('.swiper-cube-shadow').transition(duration);
8993
+    }
8994
+  }
8995
+};
8996
+var EffectCube = {
8997
+  name: 'effect-cube',
8998
+  params: {
8999
+    cubeEffect: {
9000
+      slideShadows: true,
9001
+      shadow: true,
9002
+      shadowOffset: 20,
9003
+      shadowScale: 0.94
9004
+    }
9005
+  },
9006
+  create: function create() {
9007
+    var swiper = this;
9008
+    bindModuleMethods(swiper, {
9009
+      cubeEffect: _extends({}, Cube)
9010
+    });
9011
+  },
9012
+  on: {
9013
+    beforeInit: function beforeInit(swiper) {
9014
+      if (swiper.params.effect !== 'cube') return;
9015
+      swiper.classNames.push(swiper.params.containerModifierClass + "cube");
9016
+      swiper.classNames.push(swiper.params.containerModifierClass + "3d");
9017
+      var overwriteParams = {
9018
+        slidesPerView: 1,
9019
+        slidesPerColumn: 1,
9020
+        slidesPerGroup: 1,
9021
+        watchSlidesProgress: true,
9022
+        resistanceRatio: 0,
9023
+        spaceBetween: 0,
9024
+        centeredSlides: false,
9025
+        virtualTranslate: true
9026
+      };
9027
+      extend$1(swiper.params, overwriteParams);
9028
+      extend$1(swiper.originalParams, overwriteParams);
9029
+    },
9030
+    setTranslate: function setTranslate(swiper) {
9031
+      if (swiper.params.effect !== 'cube') return;
9032
+      swiper.cubeEffect.setTranslate();
9033
+    },
9034
+    setTransition: function setTransition(swiper, duration) {
9035
+      if (swiper.params.effect !== 'cube') return;
9036
+      swiper.cubeEffect.setTransition(duration);
9037
+    }
9038
+  }
9039
+};
9040
+
9041
+var Flip = {
9042
+  setTranslate: function setTranslate() {
9043
+    var swiper = this;
9044
+    var slides = swiper.slides,
9045
+        rtl = swiper.rtlTranslate;
9046
+
9047
+    for (var i = 0; i < slides.length; i += 1) {
9048
+      var $slideEl = slides.eq(i);
9049
+      var progress = $slideEl[0].progress;
9050
+
9051
+      if (swiper.params.flipEffect.limitRotation) {
9052
+        progress = Math.max(Math.min($slideEl[0].progress, 1), -1);
9053
+      }
9054
+
9055
+      var offset = $slideEl[0].swiperSlideOffset;
9056
+      var rotate = -180 * progress;
9057
+      var rotateY = rotate;
9058
+      var rotateX = 0;
9059
+      var tx = -offset;
9060
+      var ty = 0;
9061
+
9062
+      if (!swiper.isHorizontal()) {
9063
+        ty = tx;
9064
+        tx = 0;
9065
+        rotateX = -rotateY;
9066
+        rotateY = 0;
9067
+      } else if (rtl) {
9068
+        rotateY = -rotateY;
9069
+      }
9070
+
9071
+      $slideEl[0].style.zIndex = -Math.abs(Math.round(progress)) + slides.length;
9072
+
9073
+      if (swiper.params.flipEffect.slideShadows) {
9074
+        // Set shadows
9075
+        var shadowBefore = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top');
9076
+        var shadowAfter = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom');
9077
+
9078
+        if (shadowBefore.length === 0) {
9079
+          shadowBefore = $("<div class=\"swiper-slide-shadow-" + (swiper.isHorizontal() ? 'left' : 'top') + "\"></div>");
9080
+          $slideEl.append(shadowBefore);
9081
+        }
9082
+
9083
+        if (shadowAfter.length === 0) {
9084
+          shadowAfter = $("<div class=\"swiper-slide-shadow-" + (swiper.isHorizontal() ? 'right' : 'bottom') + "\"></div>");
9085
+          $slideEl.append(shadowAfter);
9086
+        }
9087
+
9088
+        if (shadowBefore.length) shadowBefore[0].style.opacity = Math.max(-progress, 0);
9089
+        if (shadowAfter.length) shadowAfter[0].style.opacity = Math.max(progress, 0);
9090
+      }
9091
+
9092
+      $slideEl.transform("translate3d(" + tx + "px, " + ty + "px, 0px) rotateX(" + rotateX + "deg) rotateY(" + rotateY + "deg)");
9093
+    }
9094
+  },
9095
+  setTransition: function setTransition(duration) {
9096
+    var swiper = this;
9097
+    var slides = swiper.slides,
9098
+        activeIndex = swiper.activeIndex,
9099
+        $wrapperEl = swiper.$wrapperEl;
9100
+    slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
9101
+
9102
+    if (swiper.params.virtualTranslate && duration !== 0) {
9103
+      var eventTriggered = false; // eslint-disable-next-line
9104
+
9105
+      slides.eq(activeIndex).transitionEnd(function onTransitionEnd() {
9106
+        if (eventTriggered) return;
9107
+        if (!swiper || swiper.destroyed) return; // if (!$(this).hasClass(swiper.params.slideActiveClass)) return;
9108
+
9109
+        eventTriggered = true;
9110
+        swiper.animating = false;
9111
+        var triggerEvents = ['webkitTransitionEnd', 'transitionend'];
9112
+
9113
+        for (var i = 0; i < triggerEvents.length; i += 1) {
9114
+          $wrapperEl.trigger(triggerEvents[i]);
9115
+        }
9116
+      });
9117
+    }
9118
+  }
9119
+};
9120
+var EffectFlip = {
9121
+  name: 'effect-flip',
9122
+  params: {
9123
+    flipEffect: {
9124
+      slideShadows: true,
9125
+      limitRotation: true
9126
+    }
9127
+  },
9128
+  create: function create() {
9129
+    var swiper = this;
9130
+    bindModuleMethods(swiper, {
9131
+      flipEffect: _extends({}, Flip)
9132
+    });
9133
+  },
9134
+  on: {
9135
+    beforeInit: function beforeInit(swiper) {
9136
+      if (swiper.params.effect !== 'flip') return;
9137
+      swiper.classNames.push(swiper.params.containerModifierClass + "flip");
9138
+      swiper.classNames.push(swiper.params.containerModifierClass + "3d");
9139
+      var overwriteParams = {
9140
+        slidesPerView: 1,
9141
+        slidesPerColumn: 1,
9142
+        slidesPerGroup: 1,
9143
+        watchSlidesProgress: true,
9144
+        spaceBetween: 0,
9145
+        virtualTranslate: true
9146
+      };
9147
+      extend$1(swiper.params, overwriteParams);
9148
+      extend$1(swiper.originalParams, overwriteParams);
9149
+    },
9150
+    setTranslate: function setTranslate(swiper) {
9151
+      if (swiper.params.effect !== 'flip') return;
9152
+      swiper.flipEffect.setTranslate();
9153
+    },
9154
+    setTransition: function setTransition(swiper, duration) {
9155
+      if (swiper.params.effect !== 'flip') return;
9156
+      swiper.flipEffect.setTransition(duration);
9157
+    }
9158
+  }
9159
+};
9160
+
9161
+var Coverflow = {
9162
+  setTranslate: function setTranslate() {
9163
+    var swiper = this;
9164
+    var swiperWidth = swiper.width,
9165
+        swiperHeight = swiper.height,
9166
+        slides = swiper.slides,
9167
+        slidesSizesGrid = swiper.slidesSizesGrid;
9168
+    var params = swiper.params.coverflowEffect;
9169
+    var isHorizontal = swiper.isHorizontal();
9170
+    var transform = swiper.translate;
9171
+    var center = isHorizontal ? -transform + swiperWidth / 2 : -transform + swiperHeight / 2;
9172
+    var rotate = isHorizontal ? params.rotate : -params.rotate;
9173
+    var translate = params.depth; // Each slide offset from center
9174
+
9175
+    for (var i = 0, length = slides.length; i < length; i += 1) {
9176
+      var $slideEl = slides.eq(i);
9177
+      var slideSize = slidesSizesGrid[i];
9178
+      var slideOffset = $slideEl[0].swiperSlideOffset;
9179
+      var offsetMultiplier = (center - slideOffset - slideSize / 2) / slideSize * params.modifier;
9180
+      var rotateY = isHorizontal ? rotate * offsetMultiplier : 0;
9181
+      var rotateX = isHorizontal ? 0 : rotate * offsetMultiplier; // var rotateZ = 0
9182
+
9183
+      var translateZ = -translate * Math.abs(offsetMultiplier);
9184
+      var stretch = params.stretch; // Allow percentage to make a relative stretch for responsive sliders
9185
+
9186
+      if (typeof stretch === 'string' && stretch.indexOf('%') !== -1) {
9187
+        stretch = parseFloat(params.stretch) / 100 * slideSize;
9188
+      }
9189
+
9190
+      var translateY = isHorizontal ? 0 : stretch * offsetMultiplier;
9191
+      var translateX = isHorizontal ? stretch * offsetMultiplier : 0;
9192
+      var scale = 1 - (1 - params.scale) * Math.abs(offsetMultiplier); // Fix for ultra small values
9193
+
9194
+      if (Math.abs(translateX) < 0.001) translateX = 0;
9195
+      if (Math.abs(translateY) < 0.001) translateY = 0;
9196
+      if (Math.abs(translateZ) < 0.001) translateZ = 0;
9197
+      if (Math.abs(rotateY) < 0.001) rotateY = 0;
9198
+      if (Math.abs(rotateX) < 0.001) rotateX = 0;
9199
+      if (Math.abs(scale) < 0.001) scale = 0;
9200
+      var slideTransform = "translate3d(" + translateX + "px," + translateY + "px," + translateZ + "px)  rotateX(" + rotateX + "deg) rotateY(" + rotateY + "deg) scale(" + scale + ")";
9201
+      $slideEl.transform(slideTransform);
9202
+      $slideEl[0].style.zIndex = -Math.abs(Math.round(offsetMultiplier)) + 1;
9203
+
9204
+      if (params.slideShadows) {
9205
+        // Set shadows
9206
+        var $shadowBeforeEl = isHorizontal ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top');
9207
+        var $shadowAfterEl = isHorizontal ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom');
9208
+
9209
+        if ($shadowBeforeEl.length === 0) {
9210
+          $shadowBeforeEl = $("<div class=\"swiper-slide-shadow-" + (isHorizontal ? 'left' : 'top') + "\"></div>");
9211
+          $slideEl.append($shadowBeforeEl);
9212
+        }
9213
+
9214
+        if ($shadowAfterEl.length === 0) {
9215
+          $shadowAfterEl = $("<div class=\"swiper-slide-shadow-" + (isHorizontal ? 'right' : 'bottom') + "\"></div>");
9216
+          $slideEl.append($shadowAfterEl);
9217
+        }
9218
+
9219
+        if ($shadowBeforeEl.length) $shadowBeforeEl[0].style.opacity = offsetMultiplier > 0 ? offsetMultiplier : 0;
9220
+        if ($shadowAfterEl.length) $shadowAfterEl[0].style.opacity = -offsetMultiplier > 0 ? -offsetMultiplier : 0;
9221
+      }
9222
+    }
9223
+  },
9224
+  setTransition: function setTransition(duration) {
9225
+    var swiper = this;
9226
+    swiper.slides.transition(duration).find('.swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left').transition(duration);
9227
+  }
9228
+};
9229
+var EffectCoverflow = {
9230
+  name: 'effect-coverflow',
9231
+  params: {
9232
+    coverflowEffect: {
9233
+      rotate: 50,
9234
+      stretch: 0,
9235
+      depth: 100,
9236
+      scale: 1,
9237
+      modifier: 1,
9238
+      slideShadows: true
9239
+    }
9240
+  },
9241
+  create: function create() {
9242
+    var swiper = this;
9243
+    bindModuleMethods(swiper, {
9244
+      coverflowEffect: _extends({}, Coverflow)
9245
+    });
9246
+  },
9247
+  on: {
9248
+    beforeInit: function beforeInit(swiper) {
9249
+      if (swiper.params.effect !== 'coverflow') return;
9250
+      swiper.classNames.push(swiper.params.containerModifierClass + "coverflow");
9251
+      swiper.classNames.push(swiper.params.containerModifierClass + "3d");
9252
+      swiper.params.watchSlidesProgress = true;
9253
+      swiper.originalParams.watchSlidesProgress = true;
9254
+    },
9255
+    setTranslate: function setTranslate(swiper) {
9256
+      if (swiper.params.effect !== 'coverflow') return;
9257
+      swiper.coverflowEffect.setTranslate();
9258
+    },
9259
+    setTransition: function setTransition(swiper, duration) {
9260
+      if (swiper.params.effect !== 'coverflow') return;
9261
+      swiper.coverflowEffect.setTransition(duration);
9262
+    }
9263
+  }
9264
+};
9265
+
9266
+var Thumbs = {
9267
+  init: function init() {
9268
+    var swiper = this;
9269
+    var thumbsParams = swiper.params.thumbs;
9270
+    if (swiper.thumbs.initialized) return false;
9271
+    swiper.thumbs.initialized = true;
9272
+    var SwiperClass = swiper.constructor;
9273
+
9274
+    if (thumbsParams.swiper instanceof SwiperClass) {
9275
+      swiper.thumbs.swiper = thumbsParams.swiper;
9276
+      extend$1(swiper.thumbs.swiper.originalParams, {
9277
+        watchSlidesProgress: true,
9278
+        slideToClickedSlide: false
9279
+      });
9280
+      extend$1(swiper.thumbs.swiper.params, {
9281
+        watchSlidesProgress: true,
9282
+        slideToClickedSlide: false
9283
+      });
9284
+    } else if (isObject$1(thumbsParams.swiper)) {
9285
+      swiper.thumbs.swiper = new SwiperClass(extend$1({}, thumbsParams.swiper, {
9286
+        watchSlidesVisibility: true,
9287
+        watchSlidesProgress: true,
9288
+        slideToClickedSlide: false
9289
+      }));
9290
+      swiper.thumbs.swiperCreated = true;
9291
+    }
9292
+
9293
+    swiper.thumbs.swiper.$el.addClass(swiper.params.thumbs.thumbsContainerClass);
9294
+    swiper.thumbs.swiper.on('tap', swiper.thumbs.onThumbClick);
9295
+    return true;
9296
+  },
9297
+  onThumbClick: function onThumbClick() {
9298
+    var swiper = this;
9299
+    var thumbsSwiper = swiper.thumbs.swiper;
9300
+    if (!thumbsSwiper) return;
9301
+    var clickedIndex = thumbsSwiper.clickedIndex;
9302
+    var clickedSlide = thumbsSwiper.clickedSlide;
9303
+    if (clickedSlide && $(clickedSlide).hasClass(swiper.params.thumbs.slideThumbActiveClass)) return;
9304
+    if (typeof clickedIndex === 'undefined' || clickedIndex === null) return;
9305
+    var slideToIndex;
9306
+
9307
+    if (thumbsSwiper.params.loop) {
9308
+      slideToIndex = parseInt($(thumbsSwiper.clickedSlide).attr('data-swiper-slide-index'), 10);
9309
+    } else {
9310
+      slideToIndex = clickedIndex;
9311
+    }
9312
+
9313
+    if (swiper.params.loop) {
9314
+      var currentIndex = swiper.activeIndex;
9315
+
9316
+      if (swiper.slides.eq(currentIndex).hasClass(swiper.params.slideDuplicateClass)) {
9317
+        swiper.loopFix(); // eslint-disable-next-line
9318
+
9319
+        swiper._clientLeft = swiper.$wrapperEl[0].clientLeft;
9320
+        currentIndex = swiper.activeIndex;
9321
+      }
9322
+
9323
+      var prevIndex = swiper.slides.eq(currentIndex).prevAll("[data-swiper-slide-index=\"" + slideToIndex + "\"]").eq(0).index();
9324
+      var nextIndex = swiper.slides.eq(currentIndex).nextAll("[data-swiper-slide-index=\"" + slideToIndex + "\"]").eq(0).index();
9325
+      if (typeof prevIndex === 'undefined') slideToIndex = nextIndex;else if (typeof nextIndex === 'undefined') slideToIndex = prevIndex;else if (nextIndex - currentIndex < currentIndex - prevIndex) slideToIndex = nextIndex;else slideToIndex = prevIndex;
9326
+    }
9327
+
9328
+    swiper.slideTo(slideToIndex);
9329
+  },
9330
+  update: function update(initial) {
9331
+    var swiper = this;
9332
+    var thumbsSwiper = swiper.thumbs.swiper;
9333
+    if (!thumbsSwiper) return;
9334
+    var slidesPerView = thumbsSwiper.params.slidesPerView === 'auto' ? thumbsSwiper.slidesPerViewDynamic() : thumbsSwiper.params.slidesPerView;
9335
+    var autoScrollOffset = swiper.params.thumbs.autoScrollOffset;
9336
+    var useOffset = autoScrollOffset && !thumbsSwiper.params.loop;
9337
+
9338
+    if (swiper.realIndex !== thumbsSwiper.realIndex || useOffset) {
9339
+      var currentThumbsIndex = thumbsSwiper.activeIndex;
9340
+      var newThumbsIndex;
9341
+      var direction;
9342
+
9343
+      if (thumbsSwiper.params.loop) {
9344
+        if (thumbsSwiper.slides.eq(currentThumbsIndex).hasClass(thumbsSwiper.params.slideDuplicateClass)) {
9345
+          thumbsSwiper.loopFix(); // eslint-disable-next-line
9346
+
9347
+          thumbsSwiper._clientLeft = thumbsSwiper.$wrapperEl[0].clientLeft;
9348
+          currentThumbsIndex = thumbsSwiper.activeIndex;
9349
+        } // Find actual thumbs index to slide to
9350
+
9351
+
9352
+        var prevThumbsIndex = thumbsSwiper.slides.eq(currentThumbsIndex).prevAll("[data-swiper-slide-index=\"" + swiper.realIndex + "\"]").eq(0).index();
9353
+        var nextThumbsIndex = thumbsSwiper.slides.eq(currentThumbsIndex).nextAll("[data-swiper-slide-index=\"" + swiper.realIndex + "\"]").eq(0).index();
9354
+        if (typeof prevThumbsIndex === 'undefined') newThumbsIndex = nextThumbsIndex;else if (typeof nextThumbsIndex === 'undefined') newThumbsIndex = prevThumbsIndex;else if (nextThumbsIndex - currentThumbsIndex === currentThumbsIndex - prevThumbsIndex) newThumbsIndex = currentThumbsIndex;else if (nextThumbsIndex - currentThumbsIndex < currentThumbsIndex - prevThumbsIndex) newThumbsIndex = nextThumbsIndex;else newThumbsIndex = prevThumbsIndex;
9355
+        direction = swiper.activeIndex > swiper.previousIndex ? 'next' : 'prev';
9356
+      } else {
9357
+        newThumbsIndex = swiper.realIndex;
9358
+        direction = newThumbsIndex > swiper.previousIndex ? 'next' : 'prev';
9359
+      }
9360
+
9361
+      if (useOffset) {
9362
+        newThumbsIndex += direction === 'next' ? autoScrollOffset : -1 * autoScrollOffset;
9363
+      }
9364
+
9365
+      if (thumbsSwiper.visibleSlidesIndexes && thumbsSwiper.visibleSlidesIndexes.indexOf(newThumbsIndex) < 0) {
9366
+        if (thumbsSwiper.params.centeredSlides) {
9367
+          if (newThumbsIndex > currentThumbsIndex) {
9368
+            newThumbsIndex = newThumbsIndex - Math.floor(slidesPerView / 2) + 1;
9369
+          } else {
9370
+            newThumbsIndex = newThumbsIndex + Math.floor(slidesPerView / 2) - 1;
9371
+          }
9372
+        } else if (newThumbsIndex > currentThumbsIndex) {
9373
+          newThumbsIndex = newThumbsIndex - slidesPerView + 1;
9374
+        }
9375
+
9376
+        thumbsSwiper.slideTo(newThumbsIndex, initial ? 0 : undefined);
9377
+      }
9378
+    } // Activate thumbs
9379
+
9380
+
9381
+    var thumbsToActivate = 1;
9382
+    var thumbActiveClass = swiper.params.thumbs.slideThumbActiveClass;
9383
+
9384
+    if (swiper.params.slidesPerView > 1 && !swiper.params.centeredSlides) {
9385
+      thumbsToActivate = swiper.params.slidesPerView;
9386
+    }
9387
+
9388
+    if (!swiper.params.thumbs.multipleActiveThumbs) {
9389
+      thumbsToActivate = 1;
9390
+    }
9391
+
9392
+    thumbsToActivate = Math.floor(thumbsToActivate);
9393
+    thumbsSwiper.slides.removeClass(thumbActiveClass);
9394
+
9395
+    if (thumbsSwiper.params.loop || thumbsSwiper.params.virtual && thumbsSwiper.params.virtual.enabled) {
9396
+      for (var i = 0; i < thumbsToActivate; i += 1) {
9397
+        thumbsSwiper.$wrapperEl.children("[data-swiper-slide-index=\"" + (swiper.realIndex + i) + "\"]").addClass(thumbActiveClass);
9398
+      }
9399
+    } else {
9400
+      for (var _i = 0; _i < thumbsToActivate; _i += 1) {
9401
+        thumbsSwiper.slides.eq(swiper.realIndex + _i).addClass(thumbActiveClass);
9402
+      }
9403
+    }
9404
+  }
9405
+};
9406
+var Thumbs$1 = {
9407
+  name: 'thumbs',
9408
+  params: {
9409
+    thumbs: {
9410
+      swiper: null,
9411
+      multipleActiveThumbs: true,
9412
+      autoScrollOffset: 0,
9413
+      slideThumbActiveClass: 'swiper-slide-thumb-active',
9414
+      thumbsContainerClass: 'swiper-container-thumbs'
9415
+    }
9416
+  },
9417
+  create: function create() {
9418
+    var swiper = this;
9419
+    bindModuleMethods(swiper, {
9420
+      thumbs: _extends({
9421
+        swiper: null,
9422
+        initialized: false
9423
+      }, Thumbs)
9424
+    });
9425
+  },
9426
+  on: {
9427
+    beforeInit: function beforeInit(swiper) {
9428
+      var thumbs = swiper.params.thumbs;
9429
+      if (!thumbs || !thumbs.swiper) return;
9430
+      swiper.thumbs.init();
9431
+      swiper.thumbs.update(true);
9432
+    },
9433
+    slideChange: function slideChange(swiper) {
9434
+      if (!swiper.thumbs.swiper) return;
9435
+      swiper.thumbs.update();
9436
+    },
9437
+    update: function update(swiper) {
9438
+      if (!swiper.thumbs.swiper) return;
9439
+      swiper.thumbs.update();
9440
+    },
9441
+    resize: function resize(swiper) {
9442
+      if (!swiper.thumbs.swiper) return;
9443
+      swiper.thumbs.update();
9444
+    },
9445
+    observerUpdate: function observerUpdate(swiper) {
9446
+      if (!swiper.thumbs.swiper) return;
9447
+      swiper.thumbs.update();
9448
+    },
9449
+    setTransition: function setTransition(swiper, duration) {
9450
+      var thumbsSwiper = swiper.thumbs.swiper;
9451
+      if (!thumbsSwiper) return;
9452
+      thumbsSwiper.setTransition(duration);
9453
+    },
9454
+    beforeDestroy: function beforeDestroy(swiper) {
9455
+      var thumbsSwiper = swiper.thumbs.swiper;
9456
+      if (!thumbsSwiper) return;
9457
+
9458
+      if (swiper.thumbs.swiperCreated && thumbsSwiper) {
9459
+        thumbsSwiper.destroy();
9460
+      }
9461
+    }
9462
+  }
9463
+};
9464
+
9465
+// Swiper Class
9466
+var components = [Virtual$1, Keyboard$1, Mousewheel$1, Navigation$1, Pagination$1, Scrollbar$1, Parallax$1, Zoom$1, Lazy$1, Controller$1, A11y$1, History$1, HashNavigation$1, Autoplay$1, EffectFade, EffectCube, EffectFlip, EffectCoverflow, Thumbs$1];
9467
+Swiper.use(components);
9468
+
9469
+export default Swiper;
9470
+export { Swiper };
9471
+//# sourceMappingURL=swiper-bundle.esm.browser.js.map