@clappr/player 0.11.3 → 0.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/clappr.js CHANGED
@@ -4,6 +4,14 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Clappr = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
+ function _defineProperty$3(e, r, t) {
8
+ return (r = _toPropertyKey$4(r)) in e ? Object.defineProperty(e, r, {
9
+ value: t,
10
+ enumerable: !0,
11
+ configurable: !0,
12
+ writable: !0
13
+ }) : e[r] = t, e;
14
+ }
7
15
  function ownKeys$3(e, r) {
8
16
  var t = Object.keys(e);
9
17
  if (Object.getOwnPropertySymbols) {
@@ -25,38 +33,135 @@
25
33
  }
26
34
  return e;
27
35
  }
28
- function _defineProperty$3(obj, key, value) {
29
- key = _toPropertyKey$4(key);
30
- if (key in obj) {
31
- Object.defineProperty(obj, key, {
32
- value: value,
33
- enumerable: true,
34
- configurable: true,
35
- writable: true
36
- });
37
- } else {
38
- obj[key] = value;
39
- }
40
- return obj;
41
- }
42
- function _toPrimitive$4(input, hint) {
43
- if (typeof input !== "object" || input === null) return input;
44
- var prim = input[Symbol.toPrimitive];
45
- if (prim !== undefined) {
46
- var res = prim.call(input, hint || "default");
47
- if (typeof res !== "object") return res;
36
+ function _toPrimitive$4(t, r) {
37
+ if ("object" != typeof t || !t) return t;
38
+ var e = t[Symbol.toPrimitive];
39
+ if (void 0 !== e) {
40
+ var i = e.call(t, r || "default");
41
+ if ("object" != typeof i) return i;
48
42
  throw new TypeError("@@toPrimitive must return a primitive value.");
49
43
  }
50
- return (hint === "string" ? String : Number)(input);
44
+ return ("string" === r ? String : Number)(t);
51
45
  }
52
- function _toPropertyKey$4(arg) {
53
- var key = _toPrimitive$4(arg, "string");
54
- return typeof key === "symbol" ? key : String(key);
46
+ function _toPropertyKey$4(t) {
47
+ var i = _toPrimitive$4(t, "string");
48
+ return "symbol" == typeof i ? i : i + "";
55
49
  }
56
50
 
57
- function _callSuper$1(t, o, e) {
51
+ function _arrayLikeToArray$1(r, a) {
52
+ (null == a || a > r.length) && (a = r.length);
53
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
54
+ return n;
55
+ }
56
+ function _arrayWithHoles(r) {
57
+ if (Array.isArray(r)) return r;
58
+ }
59
+ function _arrayWithoutHoles$1(r) {
60
+ if (Array.isArray(r)) return _arrayLikeToArray$1(r);
61
+ }
62
+ function _assertThisInitialized$2(e) {
63
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
64
+ return e;
65
+ }
66
+ function _callSuper$2(t, o, e) {
58
67
  return o = _getPrototypeOf$2(o), _possibleConstructorReturn$2(t, _isNativeReflectConstruct$2() ? Reflect.construct(o, e || [], _getPrototypeOf$2(t).constructor) : o.apply(t, e));
59
68
  }
69
+ function _classCallCheck$2(a, n) {
70
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
71
+ }
72
+ function _defineProperties$2(e, r) {
73
+ for (var t = 0; t < r.length; t++) {
74
+ var o = r[t];
75
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$3(o.key), o);
76
+ }
77
+ }
78
+ function _createClass$2(e, r, t) {
79
+ return r && _defineProperties$2(e.prototype, r), t && _defineProperties$2(e, t), Object.defineProperty(e, "prototype", {
80
+ writable: !1
81
+ }), e;
82
+ }
83
+ function _createForOfIteratorHelper(r, e) {
84
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
85
+ if (!t) {
86
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e) {
87
+ t && (r = t);
88
+ var n = 0,
89
+ F = function () {};
90
+ return {
91
+ s: F,
92
+ n: function () {
93
+ return n >= r.length ? {
94
+ done: !0
95
+ } : {
96
+ done: !1,
97
+ value: r[n++]
98
+ };
99
+ },
100
+ e: function (r) {
101
+ throw r;
102
+ },
103
+ f: F
104
+ };
105
+ }
106
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
107
+ }
108
+ var o,
109
+ a = !0,
110
+ u = !1;
111
+ return {
112
+ s: function () {
113
+ t = t.call(r);
114
+ },
115
+ n: function () {
116
+ var r = t.next();
117
+ return a = r.done, r;
118
+ },
119
+ e: function (r) {
120
+ u = !0, o = r;
121
+ },
122
+ f: function () {
123
+ try {
124
+ a || null == t.return || t.return();
125
+ } finally {
126
+ if (u) throw o;
127
+ }
128
+ }
129
+ };
130
+ }
131
+ function _defineProperty$2(e, r, t) {
132
+ return (r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, {
133
+ value: t,
134
+ enumerable: !0,
135
+ configurable: !0,
136
+ writable: !0
137
+ }) : e[r] = t, e;
138
+ }
139
+ function _get$2() {
140
+ return _get$2 = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
141
+ var p = _superPropBase$2(e, t);
142
+ if (p) {
143
+ var n = Object.getOwnPropertyDescriptor(p, t);
144
+ return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
145
+ }
146
+ }, _get$2.apply(null, arguments);
147
+ }
148
+ function _getPrototypeOf$2(t) {
149
+ return _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
150
+ return t.__proto__ || Object.getPrototypeOf(t);
151
+ }, _getPrototypeOf$2(t);
152
+ }
153
+ function _inherits$2(t, e) {
154
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
155
+ t.prototype = Object.create(e && e.prototype, {
156
+ constructor: {
157
+ value: t,
158
+ writable: !0,
159
+ configurable: !0
160
+ }
161
+ }), Object.defineProperty(t, "prototype", {
162
+ writable: !1
163
+ }), e && _setPrototypeOf$2(t, e);
164
+ }
60
165
  function _isNativeReflectConstruct$2() {
61
166
  try {
62
167
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -65,6 +170,9 @@
65
170
  return !!t;
66
171
  })();
67
172
  }
173
+ function _iterableToArray$1(r) {
174
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
175
+ }
68
176
  function _iterableToArrayLimit(r, l) {
69
177
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
70
178
  if (null != t) {
@@ -92,6 +200,12 @@
92
200
  return a;
93
201
  }
94
202
  }
203
+ function _nonIterableRest() {
204
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
205
+ }
206
+ function _nonIterableSpread$1() {
207
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
208
+ }
95
209
  function ownKeys$2(e, r) {
96
210
  var t = Object.keys(e);
97
211
  if (Object.getOwnPropertySymbols) {
@@ -113,6 +227,32 @@
113
227
  }
114
228
  return e;
115
229
  }
230
+ function _possibleConstructorReturn$2(t, e) {
231
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
232
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
233
+ return _assertThisInitialized$2(t);
234
+ }
235
+ function _setPrototypeOf$2(t, e) {
236
+ return _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
237
+ return t.__proto__ = e, t;
238
+ }, _setPrototypeOf$2(t, e);
239
+ }
240
+ function _slicedToArray(r, e) {
241
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
242
+ }
243
+ function _superPropBase$2(t, o) {
244
+ for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf$2(t)););
245
+ return t;
246
+ }
247
+ function _superPropGet$2(t, o, e, r) {
248
+ var p = _get$2(_getPrototypeOf$2(t.prototype), o, e);
249
+ return "function" == typeof p ? function (t) {
250
+ return p.apply(e, t);
251
+ } : p;
252
+ }
253
+ function _toConsumableArray$1(r) {
254
+ return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$1();
255
+ }
116
256
  function _toPrimitive$3(t, r) {
117
257
  if ("object" != typeof t || !t) return t;
118
258
  var e = t[Symbol.toPrimitive];
@@ -127,202 +267,22 @@
127
267
  var i = _toPrimitive$3(t, "string");
128
268
  return "symbol" == typeof i ? i : i + "";
129
269
  }
130
- function _typeof(o) {
270
+ function _typeof$1(o) {
131
271
  "@babel/helpers - typeof";
132
272
 
133
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
273
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
134
274
  return typeof o;
135
275
  } : function (o) {
136
276
  return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
137
- }, _typeof(o);
138
- }
139
- function _classCallCheck$2(instance, Constructor) {
140
- if (!(instance instanceof Constructor)) {
141
- throw new TypeError("Cannot call a class as a function");
142
- }
277
+ }, _typeof$1(o);
143
278
  }
144
- function _defineProperties$2(target, props) {
145
- for (var i = 0; i < props.length; i++) {
146
- var descriptor = props[i];
147
- descriptor.enumerable = descriptor.enumerable || false;
148
- descriptor.configurable = true;
149
- if ("value" in descriptor) descriptor.writable = true;
150
- Object.defineProperty(target, _toPropertyKey$3(descriptor.key), descriptor);
279
+ function _unsupportedIterableToArray$1(r, a) {
280
+ if (r) {
281
+ if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
282
+ var t = {}.toString.call(r).slice(8, -1);
283
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
151
284
  }
152
285
  }
153
- function _createClass$2(Constructor, protoProps, staticProps) {
154
- if (protoProps) _defineProperties$2(Constructor.prototype, protoProps);
155
- if (staticProps) _defineProperties$2(Constructor, staticProps);
156
- Object.defineProperty(Constructor, "prototype", {
157
- writable: false
158
- });
159
- return Constructor;
160
- }
161
- function _defineProperty$2(obj, key, value) {
162
- key = _toPropertyKey$3(key);
163
- if (key in obj) {
164
- Object.defineProperty(obj, key, {
165
- value: value,
166
- enumerable: true,
167
- configurable: true,
168
- writable: true
169
- });
170
- } else {
171
- obj[key] = value;
172
- }
173
- return obj;
174
- }
175
- function _inherits$2(subClass, superClass) {
176
- if (typeof superClass !== "function" && superClass !== null) {
177
- throw new TypeError("Super expression must either be null or a function");
178
- }
179
- subClass.prototype = Object.create(superClass && superClass.prototype, {
180
- constructor: {
181
- value: subClass,
182
- writable: true,
183
- configurable: true
184
- }
185
- });
186
- Object.defineProperty(subClass, "prototype", {
187
- writable: false
188
- });
189
- if (superClass) _setPrototypeOf$2(subClass, superClass);
190
- }
191
- function _getPrototypeOf$2(o) {
192
- _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
193
- return o.__proto__ || Object.getPrototypeOf(o);
194
- };
195
- return _getPrototypeOf$2(o);
196
- }
197
- function _setPrototypeOf$2(o, p) {
198
- _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
199
- o.__proto__ = p;
200
- return o;
201
- };
202
- return _setPrototypeOf$2(o, p);
203
- }
204
- function _assertThisInitialized$2(self) {
205
- if (self === void 0) {
206
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
207
- }
208
- return self;
209
- }
210
- function _possibleConstructorReturn$2(self, call) {
211
- if (call && (typeof call === "object" || typeof call === "function")) {
212
- return call;
213
- } else if (call !== void 0) {
214
- throw new TypeError("Derived constructors may only return object or undefined");
215
- }
216
- return _assertThisInitialized$2(self);
217
- }
218
- function _superPropBase$2(object, property) {
219
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
220
- object = _getPrototypeOf$2(object);
221
- if (object === null) break;
222
- }
223
- return object;
224
- }
225
- function _get$2() {
226
- if (typeof Reflect !== "undefined" && Reflect.get) {
227
- _get$2 = Reflect.get.bind();
228
- } else {
229
- _get$2 = function _get(target, property, receiver) {
230
- var base = _superPropBase$2(target, property);
231
- if (!base) return;
232
- var desc = Object.getOwnPropertyDescriptor(base, property);
233
- if (desc.get) {
234
- return desc.get.call(arguments.length < 3 ? target : receiver);
235
- }
236
- return desc.value;
237
- };
238
- }
239
- return _get$2.apply(this, arguments);
240
- }
241
- function _slicedToArray(arr, i) {
242
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
243
- }
244
- function _toConsumableArray$1(arr) {
245
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
246
- }
247
- function _arrayWithoutHoles$1(arr) {
248
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
249
- }
250
- function _arrayWithHoles(arr) {
251
- if (Array.isArray(arr)) return arr;
252
- }
253
- function _iterableToArray$1(iter) {
254
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
255
- }
256
- function _unsupportedIterableToArray$1(o, minLen) {
257
- if (!o) return;
258
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
259
- var n = Object.prototype.toString.call(o).slice(8, -1);
260
- if (n === "Object" && o.constructor) n = o.constructor.name;
261
- if (n === "Map" || n === "Set") return Array.from(o);
262
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
263
- }
264
- function _arrayLikeToArray$1(arr, len) {
265
- if (len == null || len > arr.length) len = arr.length;
266
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
267
- return arr2;
268
- }
269
- function _nonIterableSpread$1() {
270
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
271
- }
272
- function _nonIterableRest() {
273
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
274
- }
275
- function _createForOfIteratorHelper(o, allowArrayLike) {
276
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
277
- if (!it) {
278
- if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike) {
279
- if (it) o = it;
280
- var i = 0;
281
- var F = function () {};
282
- return {
283
- s: F,
284
- n: function () {
285
- if (i >= o.length) return {
286
- done: true
287
- };
288
- return {
289
- done: false,
290
- value: o[i++]
291
- };
292
- },
293
- e: function (e) {
294
- throw e;
295
- },
296
- f: F
297
- };
298
- }
299
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
300
- }
301
- var normalCompletion = true,
302
- didErr = false,
303
- err;
304
- return {
305
- s: function () {
306
- it = it.call(o);
307
- },
308
- n: function () {
309
- var step = it.next();
310
- normalCompletion = step.done;
311
- return step;
312
- },
313
- e: function (e) {
314
- didErr = true;
315
- err = e;
316
- },
317
- f: function () {
318
- try {
319
- if (!normalCompletion && it.return != null) it.return();
320
- } finally {
321
- if (didErr) throw err;
322
- }
323
- }
324
- };
325
- }
326
286
  function getDefaultExportFromCjs$1(x) {
327
287
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
328
288
  }
@@ -615,7 +575,6 @@
615
575
  element.querySelectorAll(selector) // Or it's not simple, and we need to query all
616
576
  );
617
577
  };
618
-
619
578
  function filtered(nodes, selector) {
620
579
  return selector == null ? $(nodes) : $(nodes).filter(selector);
621
580
  }
@@ -1098,7 +1057,7 @@
1098
1057
  },
1099
1058
  scrollTop: function (value) {
1100
1059
  if (!this.length) return;
1101
- var hasScrollTop = ('scrollTop' in this[0]);
1060
+ var hasScrollTop = 'scrollTop' in this[0];
1102
1061
  if (value === undefined$1) return hasScrollTop ? this[0].scrollTop : this[0].pageYOffset;
1103
1062
  return this.each(hasScrollTop ? function () {
1104
1063
  this.scrollTop = value;
@@ -1108,7 +1067,7 @@
1108
1067
  },
1109
1068
  scrollLeft: function (value) {
1110
1069
  if (!this.length) return;
1111
- var hasScrollLeft = ('scrollLeft' in this[0]);
1070
+ var hasScrollLeft = 'scrollLeft' in this[0];
1112
1071
  if (value === undefined$1) return hasScrollLeft ? this[0].scrollLeft : this[0].pageXOffset;
1113
1072
  return this.each(hasScrollLeft ? function () {
1114
1073
  this.scrollLeft = value;
@@ -1158,7 +1117,6 @@
1158
1117
 
1159
1118
  // Generate the `width` and `height` functions
1160
1119
  ;
1161
-
1162
1120
  ['width', 'height'].forEach(function (dimension) {
1163
1121
  var dimensionProperty = dimension.replace(/./, function (m) {
1164
1122
  return m[0].toUpperCase();
@@ -1795,7 +1753,7 @@
1795
1753
  },
1796
1754
  handlers = {},
1797
1755
  specialEvents = {},
1798
- focusinSupported = ('onfocusin' in window),
1756
+ focusinSupported = 'onfocusin' in window,
1799
1757
  focus = {
1800
1758
  focus: 'focusin',
1801
1759
  blur: 'focusout'
@@ -2025,7 +1983,6 @@
2025
1983
 
2026
1984
  // shortcut methods for `.bind(event, fn)` for each event type
2027
1985
  ;
2028
-
2029
1986
  ('focusin focusout focus blur load resize scroll unload click dblclick ' + 'mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave ' + 'change select keydown keypress keyup error').split(' ').forEach(function (event) {
2030
1987
  $.fn[event] = function (callback) {
2031
1988
  return 0 in arguments ? this.bind(event, callback) : this.trigger(event);
@@ -2799,7 +2756,7 @@
2799
2756
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2800
2757
  args[_key] = arguments[_key];
2801
2758
  }
2802
- _this = _callSuper$1(this, Surrogate, [].concat(args));
2759
+ _this = _callSuper$2(this, Surrogate, [].concat(args));
2803
2760
  if (properties.initialize) properties.initialize.apply(_this, args);
2804
2761
  return _this;
2805
2762
  }
@@ -3233,7 +3190,7 @@
3233
3190
  if (!name) return true;
3234
3191
 
3235
3192
  // Handle event maps.
3236
- if (_typeof(name) === 'object') {
3193
+ if (_typeof$1(name) === 'object') {
3237
3194
  for (var key in name) obj[action].apply(obj, [key, name[key]].concat(rest));
3238
3195
  return false;
3239
3196
  }
@@ -3331,7 +3288,7 @@
3331
3288
  */
3332
3289
  }, {
3333
3290
  key: "once",
3334
- value: function once(name, callback, context) {
3291
+ value: function _once(name, callback, context) {
3335
3292
  var _this = this;
3336
3293
  var _once;
3337
3294
  if (!eventsApi(this, 'once', name, [callback, context]) || !callback) return this;
@@ -3414,7 +3371,7 @@
3414
3371
  var listeningTo = this._listeningTo;
3415
3372
  if (!listeningTo) return this;
3416
3373
  var remove = !name && !callback;
3417
- if (!callback && _typeof(name) === 'object') callback = this;
3374
+ if (!callback && _typeof$1(name) === 'object') callback = this;
3418
3375
  if (obj) (listeningTo = {})[obj._listenId] = obj;
3419
3376
  for (var id in listeningTo) {
3420
3377
  obj = listeningTo[id];
@@ -3448,7 +3405,7 @@
3448
3405
  var listeningTo = this._listeningTo || (this._listeningTo = {});
3449
3406
  var id = obj._listenId || (obj._listenId = uniqueId('l'));
3450
3407
  listeningTo[id] = obj;
3451
- if (!callback && _typeof(name) === 'object') callback = this;
3408
+ if (!callback && _typeof$1(name) === 'object') callback = this;
3452
3409
  obj.on(name, callback, this);
3453
3410
  return this;
3454
3411
  };
@@ -3469,7 +3426,7 @@
3469
3426
  var listeningTo = this._listeningTo || (this._listeningTo = {});
3470
3427
  var id = obj._listenId || (obj._listenId = uniqueId('l'));
3471
3428
  listeningTo[id] = obj;
3472
- if (!callback && _typeof(name) === 'object') callback = this;
3429
+ if (!callback && _typeof$1(name) === 'object') callback = this;
3473
3430
  obj.once(name, callback, this);
3474
3431
  return this;
3475
3432
  };
@@ -4189,7 +4146,7 @@
4189
4146
  var _this;
4190
4147
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
4191
4148
  _classCallCheck$2(this, BaseObject);
4192
- _this = _callSuper$1(this, BaseObject, [options]);
4149
+ _this = _callSuper$2(this, BaseObject, [options]);
4193
4150
  _this._options = options;
4194
4151
  _this.uniqueId = uniqueId('o');
4195
4152
  return _this;
@@ -4348,7 +4305,7 @@
4348
4305
  function UIObject(options) {
4349
4306
  var _this;
4350
4307
  _classCallCheck$2(this, UIObject);
4351
- _this = _callSuper$1(this, UIObject, [options]);
4308
+ _this = _callSuper$2(this, UIObject, [options]);
4352
4309
  /**
4353
4310
  * a unique id prefixed with `'c'`, `c1, c232`
4354
4311
  *
@@ -4589,7 +4546,7 @@
4589
4546
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
4590
4547
  var core = arguments.length > 1 ? arguments[1] : undefined;
4591
4548
  _classCallCheck$2(this, PlayerError);
4592
- _this = _callSuper$1(this, PlayerError, [options]);
4549
+ _this = _callSuper$2(this, PlayerError, [options]);
4593
4550
  _this.core = core;
4594
4551
  return _this;
4595
4552
  }
@@ -4670,7 +4627,7 @@
4670
4627
  function UICorePlugin(core) {
4671
4628
  var _this;
4672
4629
  _classCallCheck$2(this, UICorePlugin);
4673
- _this = _callSuper$1(this, UICorePlugin, [core.options]);
4630
+ _this = _callSuper$2(this, UICorePlugin, [core.options]);
4674
4631
  _this.core = core;
4675
4632
  _this.enabled = true;
4676
4633
  _this.bindEvents();
@@ -4739,7 +4696,7 @@
4739
4696
  function Container(options, i18n, playerError) {
4740
4697
  var _this;
4741
4698
  _classCallCheck$2(this, Container);
4742
- _this = _callSuper$1(this, Container, [options]);
4699
+ _this = _callSuper$2(this, Container, [options]);
4743
4700
  _this._i18n = i18n;
4744
4701
  _this.currentTime = 0;
4745
4702
  _this.volume = 100;
@@ -5470,7 +5427,7 @@
5470
5427
  function Playback(options, i18n, playerError) {
5471
5428
  var _this;
5472
5429
  _classCallCheck$2(this, Playback);
5473
- _this = _callSuper$1(this, Playback, [options]);
5430
+ _this = _callSuper$2(this, Playback, [options]);
5474
5431
  _this.settings = {};
5475
5432
  _this._i18n = i18n;
5476
5433
  _this.playerError = playerError;
@@ -5916,7 +5873,7 @@
5916
5873
  function ContainerFactory(options, loader, i18n, playerError) {
5917
5874
  var _this;
5918
5875
  _classCallCheck$2(this, ContainerFactory);
5919
- _this = _callSuper$1(this, ContainerFactory, [options]);
5876
+ _this = _callSuper$2(this, ContainerFactory, [options]);
5920
5877
  _this._i18n = i18n;
5921
5878
  _this.loader = loader;
5922
5879
  _this.playerError = playerError;
@@ -5953,7 +5910,7 @@
5953
5910
  value: function createContainer(source) {
5954
5911
  var resolvedSource = null;
5955
5912
  var mimeType = this.options.mimeType;
5956
- if (_typeof(source) === 'object') {
5913
+ if (_typeof$1(source) === 'object') {
5957
5914
  resolvedSource = source.source.toString();
5958
5915
  if (source.mimeType) mimeType = source.mimeType;
5959
5916
  } else {
@@ -6003,7 +5960,7 @@
6003
5960
  function Core(options) {
6004
5961
  var _this;
6005
5962
  _classCallCheck$2(this, Core);
6006
- _this = _callSuper$1(this, Core, [options]);
5963
+ _this = _callSuper$2(this, Core, [options]);
6007
5964
  _this.playerError = new PlayerError(options, _this);
6008
5965
  _this.configureDomRecycler();
6009
5966
  _this.firstResize = true;
@@ -6128,7 +6085,7 @@
6128
6085
  key: "activePlaybackEl",
6129
6086
  get: function get() {
6130
6087
  if (!this.activePlayback) return undefined;
6131
- return this.activePlayback.$el ? this.activePlayback.$el.find('video')[0] : this.activePlayback.el;
6088
+ return this.activePlayback.$el ? this.activePlayback.$el.find('video')[0] || this.activePlayback.el : this.activePlayback.el;
6132
6089
  }
6133
6090
  }, {
6134
6091
  key: "configureDomRecycler",
@@ -6502,7 +6459,7 @@
6502
6459
  function CoreFactory(player) {
6503
6460
  var _this;
6504
6461
  _classCallCheck$2(this, CoreFactory);
6505
- _this = _callSuper$1(this, CoreFactory, [player.options]);
6462
+ _this = _callSuper$2(this, CoreFactory, [player.options]);
6506
6463
  _this.player = player;
6507
6464
  return _this;
6508
6465
  }
@@ -6625,7 +6582,7 @@
6625
6582
  plugins: {},
6626
6583
  playbacks: []
6627
6584
  };
6628
- var currentVersion = "0.11.3";
6585
+ var currentVersion = "0.11.4";
6629
6586
  return /*#__PURE__*/function () {
6630
6587
  /**
6631
6588
  * builds the loader
@@ -6992,7 +6949,7 @@
6992
6949
  function Player(options) {
6993
6950
  var _this;
6994
6951
  _classCallCheck$2(this, Player);
6995
- _this = _callSuper$1(this, Player, [options]);
6952
+ _this = _callSuper$2(this, Player, [options]);
6996
6953
  var playbackDefaultOptions = {
6997
6954
  recycleVideo: true
6998
6955
  };
@@ -7521,7 +7478,7 @@
7521
7478
  function ContainerPlugin(container) {
7522
7479
  var _this;
7523
7480
  _classCallCheck$2(this, ContainerPlugin);
7524
- _this = _callSuper$1(this, ContainerPlugin, [container.options]);
7481
+ _this = _callSuper$2(this, ContainerPlugin, [container.options]);
7525
7482
  _this.container = container;
7526
7483
  _this.enabled = true;
7527
7484
  _this.bindEvents();
@@ -7568,7 +7525,7 @@
7568
7525
  function CorePlugin(core) {
7569
7526
  var _this;
7570
7527
  _classCallCheck$2(this, CorePlugin);
7571
- _this = _callSuper$1(this, CorePlugin, [core.options]);
7528
+ _this = _callSuper$2(this, CorePlugin, [core.options]);
7572
7529
  _this.core = core;
7573
7530
  _this.enabled = true;
7574
7531
  _this.bindEvents();
@@ -7628,7 +7585,7 @@
7628
7585
  function UIContainerPlugin(container) {
7629
7586
  var _this;
7630
7587
  _classCallCheck$2(this, UIContainerPlugin);
7631
- _this = _callSuper$1(this, UIContainerPlugin, [container.options]);
7588
+ _this = _callSuper$2(this, UIContainerPlugin, [container.options]);
7632
7589
  _this.container = container;
7633
7590
  _this.enabled = true;
7634
7591
  _this.bindEvents();
@@ -7702,7 +7659,7 @@
7702
7659
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7703
7660
  args[_key] = arguments[_key];
7704
7661
  }
7705
- _this = _callSuper$1(this, HTML5Video, [].concat(args));
7662
+ _this = _callSuper$2(this, HTML5Video, [].concat(args));
7706
7663
  _this._destroyed = false;
7707
7664
  _this._loadStarted = false;
7708
7665
  _this._isBuffering = false;
@@ -7760,7 +7717,7 @@
7760
7717
  key: "supportedVersion",
7761
7718
  get: function get() {
7762
7719
  return {
7763
- min: "0.11.3"
7720
+ min: "0.11.4"
7764
7721
  };
7765
7722
  }
7766
7723
  }, {
@@ -7862,7 +7819,7 @@
7862
7819
  }, {
7863
7820
  key: "configure",
7864
7821
  value: function configure(options) {
7865
- _get$2(_getPrototypeOf$2(HTML5Video.prototype), "configure", this).call(this, options);
7822
+ _superPropGet$2(HTML5Video, "configure", this)([options]);
7866
7823
  this.el.loop = !!options.loop;
7867
7824
  }
7868
7825
 
@@ -7999,16 +7956,16 @@
7999
7956
  value: function consent(cb) {
8000
7957
  var _this3 = this;
8001
7958
  if (this.isPlaying() || this.el._consented) {
8002
- _get$2(_getPrototypeOf$2(HTML5Video.prototype), "consent", this).call(this, cb);
7959
+ _superPropGet$2(HTML5Video, "consent", this)([cb]);
8003
7960
  } else {
8004
- var eventHandler = function eventHandler() {
8005
- _this3.el.removeEventListener('loadedmetadata', eventHandler, false);
8006
- _this3.el.removeEventListener('error', eventHandler, false);
7961
+ var _eventHandler = function eventHandler() {
7962
+ _this3.el.removeEventListener('loadedmetadata', _eventHandler, false);
7963
+ _this3.el.removeEventListener('error', _eventHandler, false);
8007
7964
  _this3.el._consented = true; // Flag to call load() only once
8008
- _get$2(_getPrototypeOf$2(HTML5Video.prototype), "consent", _this3).call(_this3, cb);
7965
+ _superPropGet$2(HTML5Video, "consent", _this3)([cb]);
8009
7966
  };
8010
- this.el.addEventListener('loadedmetadata', eventHandler, false);
8011
- this.el.addEventListener('error', eventHandler, false);
7967
+ this.el.addEventListener('loadedmetadata', _eventHandler, false);
7968
+ this.el.addEventListener('error', _eventHandler, false);
8012
7969
  this.el.load();
8013
7970
  }
8014
7971
  }
@@ -8264,7 +8221,7 @@
8264
8221
  this._stopPlayheadMovingChecks();
8265
8222
  this.handleTextTrackChange && this.el.textTracks.removeEventListener('change', this.handleTextTrackChange);
8266
8223
  this.$el.off('contextmenu');
8267
- _get$2(_getPrototypeOf$2(HTML5Video.prototype), "destroy", this).call(this);
8224
+ _superPropGet$2(HTML5Video, "destroy", this)([]);
8268
8225
  this.el.removeAttribute('src');
8269
8226
  this.el.load(); // load with no src to stop loading of the previous source and avoid leaks
8270
8227
  this._src = null;
@@ -8510,7 +8467,7 @@
8510
8467
  var HTML5Audio = /*#__PURE__*/function (_HTML5Video) {
8511
8468
  function HTML5Audio() {
8512
8469
  _classCallCheck$2(this, HTML5Audio);
8513
- return _callSuper$1(this, HTML5Audio, arguments);
8470
+ return _callSuper$2(this, HTML5Audio, arguments);
8514
8471
  }
8515
8472
  _inherits$2(HTML5Audio, _HTML5Video);
8516
8473
  return _createClass$2(HTML5Audio, [{
@@ -8522,7 +8479,7 @@
8522
8479
  key: "supportedVersion",
8523
8480
  get: function get() {
8524
8481
  return {
8525
- min: "0.11.3"
8482
+ min: "0.11.4"
8526
8483
  };
8527
8484
  }
8528
8485
  }, {
@@ -8563,7 +8520,7 @@
8563
8520
  function HTMLImg(params) {
8564
8521
  var _this;
8565
8522
  _classCallCheck$2(this, HTMLImg);
8566
- _this = _callSuper$1(this, HTMLImg, [params]);
8523
+ _this = _callSuper$2(this, HTMLImg, [params]);
8567
8524
  _this.el.src = params.src;
8568
8525
  return _this;
8569
8526
  }
@@ -8577,7 +8534,7 @@
8577
8534
  key: "supportedVersion",
8578
8535
  get: function get() {
8579
8536
  return {
8580
- min: "0.11.3"
8537
+ min: "0.11.4"
8581
8538
  };
8582
8539
  }
8583
8540
  }, {
@@ -8643,7 +8600,7 @@
8643
8600
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8644
8601
  args[_key] = arguments[_key];
8645
8602
  }
8646
- _this = _callSuper$1(this, NoOp, [].concat(args));
8603
+ _this = _callSuper$2(this, NoOp, [].concat(args));
8647
8604
  _this._noiseFrameNum = -1;
8648
8605
  return _this;
8649
8606
  }
@@ -8657,7 +8614,7 @@
8657
8614
  key: "supportedVersion",
8658
8615
  get: function get() {
8659
8616
  return {
8660
- min: "0.11.3"
8617
+ min: "0.11.4"
8661
8618
  };
8662
8619
  }
8663
8620
  }, {
@@ -8763,7 +8720,7 @@
8763
8720
  function Strings(core) {
8764
8721
  var _this;
8765
8722
  _classCallCheck$2(this, Strings);
8766
- _this = _callSuper$1(this, Strings, [core]);
8723
+ _this = _callSuper$2(this, Strings, [core]);
8767
8724
  _this._initializeMessages();
8768
8725
  return _this;
8769
8726
  }
@@ -8783,7 +8740,7 @@
8783
8740
  key: "supportedVersion",
8784
8741
  get: function get() {
8785
8742
  return {
8786
- min: "0.11.3"
8743
+ min: "0.11.4"
8787
8744
  };
8788
8745
  }
8789
8746
  }, {
@@ -8912,7 +8869,7 @@
8912
8869
  var SourcesPlugin = /*#__PURE__*/function (_CorePlugin) {
8913
8870
  function SourcesPlugin() {
8914
8871
  _classCallCheck$2(this, SourcesPlugin);
8915
- return _callSuper$1(this, SourcesPlugin, arguments);
8872
+ return _callSuper$2(this, SourcesPlugin, arguments);
8916
8873
  }
8917
8874
  _inherits$2(SourcesPlugin, _CorePlugin);
8918
8875
  return _createClass$2(SourcesPlugin, [{
@@ -8924,7 +8881,7 @@
8924
8881
  key: "supportedVersion",
8925
8882
  get: function get() {
8926
8883
  return {
8927
- min: "0.11.3"
8884
+ min: "0.11.4"
8928
8885
  };
8929
8886
  }
8930
8887
  }, {
@@ -8953,7 +8910,7 @@
8953
8910
  @type {string}
8954
8911
  @default
8955
8912
  */
8956
- var version$1 = "0.11.3";
8913
+ var version$1 = "0.11.4";
8957
8914
 
8958
8915
  // Built-in Plugins/Playbacks
8959
8916
 
@@ -8989,9 +8946,53 @@
8989
8946
  $: $
8990
8947
  };
8991
8948
 
8992
- function _callSuper(t, o, e) {
8949
+ function _assertThisInitialized$1(e) {
8950
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
8951
+ return e;
8952
+ }
8953
+ function _callSuper$1(t, o, e) {
8993
8954
  return o = _getPrototypeOf$1(o), _possibleConstructorReturn$1(t, _isNativeReflectConstruct$1() ? Reflect.construct(o, e || [], _getPrototypeOf$1(t).constructor) : o.apply(t, e));
8994
8955
  }
8956
+ function _classCallCheck$1(a, n) {
8957
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
8958
+ }
8959
+ function _defineProperties$1(e, r) {
8960
+ for (var t = 0; t < r.length; t++) {
8961
+ var o = r[t];
8962
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$2(o.key), o);
8963
+ }
8964
+ }
8965
+ function _createClass$1(e, r, t) {
8966
+ return r && _defineProperties$1(e.prototype, r), t && _defineProperties$1(e, t), Object.defineProperty(e, "prototype", {
8967
+ writable: !1
8968
+ }), e;
8969
+ }
8970
+ function _get$1() {
8971
+ return _get$1 = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
8972
+ var p = _superPropBase$1(e, t);
8973
+ if (p) {
8974
+ var n = Object.getOwnPropertyDescriptor(p, t);
8975
+ return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
8976
+ }
8977
+ }, _get$1.apply(null, arguments);
8978
+ }
8979
+ function _getPrototypeOf$1(t) {
8980
+ return _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
8981
+ return t.__proto__ || Object.getPrototypeOf(t);
8982
+ }, _getPrototypeOf$1(t);
8983
+ }
8984
+ function _inherits$1(t, e) {
8985
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
8986
+ t.prototype = Object.create(e && e.prototype, {
8987
+ constructor: {
8988
+ value: t,
8989
+ writable: !0,
8990
+ configurable: !0
8991
+ }
8992
+ }), Object.defineProperty(t, "prototype", {
8993
+ writable: !1
8994
+ }), e && _setPrototypeOf$1(t, e);
8995
+ }
8995
8996
  function _isNativeReflectConstruct$1() {
8996
8997
  try {
8997
8998
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -9000,6 +9001,26 @@
9000
9001
  return !!t;
9001
9002
  })();
9002
9003
  }
9004
+ function _possibleConstructorReturn$1(t, e) {
9005
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
9006
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
9007
+ return _assertThisInitialized$1(t);
9008
+ }
9009
+ function _setPrototypeOf$1(t, e) {
9010
+ return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
9011
+ return t.__proto__ = e, t;
9012
+ }, _setPrototypeOf$1(t, e);
9013
+ }
9014
+ function _superPropBase$1(t, o) {
9015
+ for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf$1(t)););
9016
+ return t;
9017
+ }
9018
+ function _superPropGet$1(t, o, e, r) {
9019
+ var p = _get$1(_getPrototypeOf$1(1 & r ? t.prototype : t), o, e);
9020
+ return 2 & r && "function" == typeof p ? function (t) {
9021
+ return p.apply(e, t);
9022
+ } : p;
9023
+ }
9003
9024
  function _toPrimitive$2(t, r) {
9004
9025
  if ("object" != typeof t || !t) return t;
9005
9026
  var e = t[Symbol.toPrimitive];
@@ -9014,98 +9035,19 @@
9014
9035
  var i = _toPrimitive$2(t, "string");
9015
9036
  return "symbol" == typeof i ? i : i + "";
9016
9037
  }
9017
- function _classCallCheck$1(instance, Constructor) {
9018
- if (!(instance instanceof Constructor)) {
9019
- throw new TypeError("Cannot call a class as a function");
9020
- }
9021
- }
9022
- function _defineProperties$1(target, props) {
9023
- for (var i = 0; i < props.length; i++) {
9024
- var descriptor = props[i];
9025
- descriptor.enumerable = descriptor.enumerable || false;
9026
- descriptor.configurable = true;
9027
- if ("value" in descriptor) descriptor.writable = true;
9028
- Object.defineProperty(target, _toPropertyKey$2(descriptor.key), descriptor);
9029
- }
9030
- }
9031
- function _createClass$1(Constructor, protoProps, staticProps) {
9032
- if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
9033
- if (staticProps) _defineProperties$1(Constructor, staticProps);
9034
- Object.defineProperty(Constructor, "prototype", {
9035
- writable: false
9036
- });
9037
- return Constructor;
9038
- }
9039
- function _inherits$1(subClass, superClass) {
9040
- if (typeof superClass !== "function" && superClass !== null) {
9041
- throw new TypeError("Super expression must either be null or a function");
9042
- }
9043
- subClass.prototype = Object.create(superClass && superClass.prototype, {
9044
- constructor: {
9045
- value: subClass,
9046
- writable: true,
9047
- configurable: true
9048
- }
9049
- });
9050
- Object.defineProperty(subClass, "prototype", {
9051
- writable: false
9052
- });
9053
- if (superClass) _setPrototypeOf$1(subClass, superClass);
9054
- }
9055
- function _getPrototypeOf$1(o) {
9056
- _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
9057
- return o.__proto__ || Object.getPrototypeOf(o);
9058
- };
9059
- return _getPrototypeOf$1(o);
9060
- }
9061
- function _setPrototypeOf$1(o, p) {
9062
- _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
9063
- o.__proto__ = p;
9064
- return o;
9065
- };
9066
- return _setPrototypeOf$1(o, p);
9067
- }
9068
- function _assertThisInitialized$1(self) {
9069
- if (self === void 0) {
9070
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9071
- }
9072
- return self;
9073
- }
9074
- function _possibleConstructorReturn$1(self, call) {
9075
- if (call && (typeof call === "object" || typeof call === "function")) {
9076
- return call;
9077
- } else if (call !== void 0) {
9078
- throw new TypeError("Derived constructors may only return object or undefined");
9079
- }
9080
- return _assertThisInitialized$1(self);
9081
- }
9082
- function _superPropBase$1(object, property) {
9083
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
9084
- object = _getPrototypeOf$1(object);
9085
- if (object === null) break;
9086
- }
9087
- return object;
9088
- }
9089
- function _get$1() {
9090
- if (typeof Reflect !== "undefined" && Reflect.get) {
9091
- _get$1 = Reflect.get.bind();
9092
- } else {
9093
- _get$1 = function _get(target, property, receiver) {
9094
- var base = _superPropBase$1(target, property);
9095
- if (!base) return;
9096
- var desc = Object.getOwnPropertyDescriptor(base, property);
9097
- if (desc.get) {
9098
- return desc.get.call(arguments.length < 3 ? target : receiver);
9099
- }
9100
- return desc.value;
9101
- };
9102
- }
9103
- return _get$1.apply(this, arguments);
9038
+ function _typeof(o) {
9039
+ "@babel/helpers - typeof";
9040
+
9041
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
9042
+ return typeof o;
9043
+ } : function (o) {
9044
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
9045
+ }, _typeof(o);
9104
9046
  }
9105
9047
  var ClickToPausePlugin = /*#__PURE__*/function (_ContainerPlugin) {
9106
9048
  function ClickToPausePlugin(container) {
9107
9049
  _classCallCheck$1(this, ClickToPausePlugin);
9108
- return _callSuper(this, ClickToPausePlugin, [container]);
9050
+ return _callSuper$1(this, ClickToPausePlugin, [container]);
9109
9051
  }
9110
9052
  _inherits$1(ClickToPausePlugin, _ContainerPlugin);
9111
9053
  return _createClass$1(ClickToPausePlugin, [{
@@ -9117,7 +9059,7 @@
9117
9059
  key: "supportedVersion",
9118
9060
  get: function get() {
9119
9061
  return {
9120
- min: "0.11.3"
9062
+ min: "0.11.4"
9121
9063
  };
9122
9064
  }
9123
9065
  }, {
@@ -9157,7 +9099,7 @@
9157
9099
  function ClosedCaptions(core) {
9158
9100
  var _this;
9159
9101
  _classCallCheck$1(this, ClosedCaptions);
9160
- _this = _callSuper(this, ClosedCaptions, [core]);
9102
+ _this = _callSuper$1(this, ClosedCaptions, [core]);
9161
9103
  var config = core.options.closedCaptionsConfig;
9162
9104
  _this._title = config && config.title ? config.title : null;
9163
9105
  _this._ariaLabel = config && config.ariaLabel ? config.ariaLabel : 'cc-button';
@@ -9176,7 +9118,7 @@
9176
9118
  key: "supportedVersion",
9177
9119
  get: function get() {
9178
9120
  return {
9179
- min: "0.11.3"
9121
+ min: "0.11.4"
9180
9122
  };
9181
9123
  }
9182
9124
  }, {
@@ -9316,7 +9258,7 @@
9316
9258
  function DVRControls(core) {
9317
9259
  var _this;
9318
9260
  _classCallCheck$1(this, DVRControls);
9319
- _this = _callSuper(this, DVRControls, [core]);
9261
+ _this = _callSuper$1(this, DVRControls, [core]);
9320
9262
  _this.settingsUpdate();
9321
9263
  return _this;
9322
9264
  }
@@ -9335,7 +9277,7 @@
9335
9277
  key: "supportedVersion",
9336
9278
  get: function get() {
9337
9279
  return {
9338
- min: "0.11.3"
9280
+ min: "0.11.4"
9339
9281
  };
9340
9282
  }
9341
9283
  }, {
@@ -9450,7 +9392,7 @@
9450
9392
  var EndVideo$1 = /*#__PURE__*/function (_CorePlugin) {
9451
9393
  function EndVideo() {
9452
9394
  _classCallCheck$1(this, EndVideo);
9453
- return _callSuper(this, EndVideo, arguments);
9395
+ return _callSuper$1(this, EndVideo, arguments);
9454
9396
  }
9455
9397
  _inherits$1(EndVideo, _CorePlugin);
9456
9398
  return _createClass$1(EndVideo, [{
@@ -9462,7 +9404,7 @@
9462
9404
  key: "supportedVersion",
9463
9405
  get: function get() {
9464
9406
  return {
9465
- min: "0.11.3"
9407
+ min: "0.11.4"
9466
9408
  };
9467
9409
  }
9468
9410
  }, {
@@ -9496,7 +9438,7 @@
9496
9438
  function ErrorScreen(core) {
9497
9439
  var _this;
9498
9440
  _classCallCheck$1(this, ErrorScreen);
9499
- _this = _callSuper(this, ErrorScreen, [core]);
9441
+ _this = _callSuper$1(this, ErrorScreen, [core]);
9500
9442
  if (_this.options.disableErrorScreen) return _possibleConstructorReturn$1(_this, _this.disable());
9501
9443
  return _this;
9502
9444
  }
@@ -9510,7 +9452,7 @@
9510
9452
  key: "supportedVersion",
9511
9453
  get: function get() {
9512
9454
  return {
9513
- min: "0.11.3"
9455
+ min: "0.11.4"
9514
9456
  };
9515
9457
  }
9516
9458
  }, {
@@ -9615,7 +9557,7 @@
9615
9557
  function Favicon(core) {
9616
9558
  var _this;
9617
9559
  _classCallCheck$1(this, Favicon);
9618
- _this = _callSuper(this, Favicon, [core]);
9560
+ _this = _callSuper$1(this, Favicon, [core]);
9619
9561
  _this._container = null;
9620
9562
  _this.configure();
9621
9563
  return _this;
@@ -9630,7 +9572,7 @@
9630
9572
  key: "supportedVersion",
9631
9573
  get: function get() {
9632
9574
  return {
9633
- min: "0.11.3"
9575
+ min: "0.11.4"
9634
9576
  };
9635
9577
  }
9636
9578
  }, {
@@ -9673,13 +9615,13 @@
9673
9615
  }, {
9674
9616
  key: "disable",
9675
9617
  value: function disable() {
9676
- _get$1(_getPrototypeOf$1(Favicon.prototype), "disable", this).call(this);
9618
+ _superPropGet$1(Favicon, "disable", this, 3)([]);
9677
9619
  this.resetIcon();
9678
9620
  }
9679
9621
  }, {
9680
9622
  key: "destroy",
9681
9623
  value: function destroy() {
9682
- _get$1(_getPrototypeOf$1(Favicon.prototype), "destroy", this).call(this);
9624
+ _superPropGet$1(Favicon, "destroy", this, 3)([]);
9683
9625
  this.resetIcon();
9684
9626
  }
9685
9627
  }, {
@@ -9729,7 +9671,7 @@
9729
9671
  function GoogleAnalytics(container) {
9730
9672
  var _this;
9731
9673
  _classCallCheck$1(this, GoogleAnalytics);
9732
- _this = _callSuper(this, GoogleAnalytics, [container]);
9674
+ _this = _callSuper$1(this, GoogleAnalytics, [container]);
9733
9675
  if (_this.container.options.gaAccount) {
9734
9676
  _this.account = _this.container.options.gaAccount;
9735
9677
  _this.trackerName = _this.container.options.gaTrackerName ? _this.container.options.gaTrackerName + '.' : 'Clappr.';
@@ -9749,7 +9691,7 @@
9749
9691
  key: "supportedVersion",
9750
9692
  get: function get() {
9751
9693
  return {
9752
- min: "0.11.3"
9694
+ min: "0.11.4"
9753
9695
  };
9754
9696
  }
9755
9697
  }, {
@@ -10067,10 +10009,11 @@
10067
10009
  this.upHandler = this.handler('up');
10068
10010
  Kibo.registerEvent(this.element, 'keydown', this.downHandler);
10069
10011
  Kibo.registerEvent(this.element, 'keyup', this.upHandler);
10070
- Kibo.registerEvent(window, 'unload', function unloader() {
10012
+ var unloadEvent = _typeof(window.onbeforeunload) === 'object' ? 'beforeunload' : 'unload';
10013
+ Kibo.registerEvent(window, unloadEvent, function unloader() {
10071
10014
  Kibo.unregisterEvent(that.element, 'keydown', that.downHandler);
10072
10015
  Kibo.unregisterEvent(that.element, 'keyup', that.upHandler);
10073
- Kibo.unregisterEvent(window, 'unload', unloader);
10016
+ Kibo.unregisterEvent(window, unloadEvent, unloader);
10074
10017
  });
10075
10018
  };
10076
10019
  Kibo.prototype.handler = function (upOrDown) {
@@ -10198,7 +10141,7 @@
10198
10141
  function MediaControl(core) {
10199
10142
  var _this;
10200
10143
  _classCallCheck$1(this, MediaControl);
10201
- _this = _callSuper(this, MediaControl, [core]);
10144
+ _this = _callSuper$1(this, MediaControl, [core]);
10202
10145
  _this.persistConfig = _this.options.persistConfig;
10203
10146
  _this.currentPositionValue = null;
10204
10147
  _this.currentDurationValue = null;
@@ -10239,7 +10182,7 @@
10239
10182
  key: "supportedVersion",
10240
10183
  get: function get() {
10241
10184
  return {
10242
- min: "0.11.3"
10185
+ min: "0.11.4"
10243
10186
  };
10244
10187
  }
10245
10188
  }, {
@@ -10943,7 +10886,7 @@
10943
10886
  $(document).unbind('mousemove', this.updateDragHandler);
10944
10887
  this.unbindKeyEvents();
10945
10888
  this.stopListening();
10946
- _get$1(_getPrototypeOf$1(MediaControl.prototype), "destroy", this).call(this);
10889
+ _superPropGet$1(MediaControl, "destroy", this, 3)([]);
10947
10890
  }
10948
10891
 
10949
10892
  /**
@@ -11020,7 +10963,7 @@
11020
10963
  function PosterPlugin(container) {
11021
10964
  var _this;
11022
10965
  _classCallCheck$1(this, PosterPlugin);
11023
- _this = _callSuper(this, PosterPlugin, [container]);
10966
+ _this = _callSuper$1(this, PosterPlugin, [container]);
11024
10967
  _this.hasStartedPlaying = false;
11025
10968
  _this.playRequested = false;
11026
10969
  _this.render();
@@ -11039,7 +10982,7 @@
11039
10982
  key: "supportedVersion",
11040
10983
  get: function get() {
11041
10984
  return {
11042
- min: "0.11.3"
10985
+ min: "0.11.4"
11043
10986
  };
11044
10987
  }
11045
10988
  }, {
@@ -11221,7 +11164,7 @@
11221
11164
  function SeekTime(core) {
11222
11165
  var _this;
11223
11166
  _classCallCheck$1(this, SeekTime);
11224
- _this = _callSuper(this, SeekTime, [core]);
11167
+ _this = _callSuper$1(this, SeekTime, [core]);
11225
11168
  _this.hoveringOverSeekBar = false;
11226
11169
  _this.hoverPosition = null;
11227
11170
  _this.duration = null;
@@ -11242,7 +11185,7 @@
11242
11185
  key: "supportedVersion",
11243
11186
  get: function get() {
11244
11187
  return {
11245
- min: "0.11.3"
11188
+ min: "0.11.4"
11246
11189
  };
11247
11190
  }
11248
11191
  }, {
@@ -11423,7 +11366,7 @@
11423
11366
  function SpinnerThreeBouncePlugin(container) {
11424
11367
  var _this;
11425
11368
  _classCallCheck$1(this, SpinnerThreeBouncePlugin);
11426
- _this = _callSuper(this, SpinnerThreeBouncePlugin, [container]);
11369
+ _this = _callSuper$1(this, SpinnerThreeBouncePlugin, [container]);
11427
11370
  _this.template = tmpl(spinnerHTML);
11428
11371
  _this.showTimeout = null;
11429
11372
  _this.listenTo(_this.container, Events$1.CONTAINER_STATE_BUFFERING, _this.onBuffering);
@@ -11444,7 +11387,7 @@
11444
11387
  key: "supportedVersion",
11445
11388
  get: function get() {
11446
11389
  return {
11447
- min: "0.11.3"
11390
+ min: "0.11.4"
11448
11391
  };
11449
11392
  }
11450
11393
  }, {
@@ -11506,7 +11449,7 @@
11506
11449
  function StatsPlugin(container) {
11507
11450
  var _this;
11508
11451
  _classCallCheck$1(this, StatsPlugin);
11509
- _this = _callSuper(this, StatsPlugin, [container]);
11452
+ _this = _callSuper$1(this, StatsPlugin, [container]);
11510
11453
  _this.setInitialAttrs();
11511
11454
  _this.reportInterval = _this.options.reportInterval || 5000;
11512
11455
  _this.state = 'IDLE';
@@ -11522,7 +11465,7 @@
11522
11465
  key: "supportedVersion",
11523
11466
  get: function get() {
11524
11467
  return {
11525
- min: "0.11.3"
11468
+ min: "0.11.4"
11526
11469
  };
11527
11470
  }
11528
11471
  }, {
@@ -11629,7 +11572,7 @@
11629
11572
  function WaterMarkPlugin(container) {
11630
11573
  var _this;
11631
11574
  _classCallCheck$1(this, WaterMarkPlugin);
11632
- _this = _callSuper(this, WaterMarkPlugin, [container]);
11575
+ _this = _callSuper$1(this, WaterMarkPlugin, [container]);
11633
11576
  _this.configure();
11634
11577
  return _this;
11635
11578
  }
@@ -11643,7 +11586,7 @@
11643
11586
  key: "supportedVersion",
11644
11587
  get: function get() {
11645
11588
  return {
11646
- min: "0.11.3"
11589
+ min: "0.11.4"
11647
11590
  };
11648
11591
  }
11649
11592
  }, {
@@ -11715,7 +11658,7 @@
11715
11658
  WaterMark: WaterMarkPlugin
11716
11659
  };
11717
11660
 
11718
- var version = "0.11.3";
11661
+ var version = "0.11.5";
11719
11662
  for (var _i = 0, _Object$values = Object.values(Plugins); _i < _Object$values.length; _i++) {
11720
11663
  var plugin = _Object$values[_i];
11721
11664
  Loader.registerPlugin(plugin);
@@ -11754,6 +11697,83 @@
11754
11697
  version: version
11755
11698
  });
11756
11699
 
11700
+ function _arrayLikeToArray(r, a) {
11701
+ (null == a || a > r.length) && (a = r.length);
11702
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
11703
+ return n;
11704
+ }
11705
+ function _arrayWithoutHoles(r) {
11706
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
11707
+ }
11708
+ function _assertThisInitialized(e) {
11709
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
11710
+ return e;
11711
+ }
11712
+ function _callSuper(t, o, e) {
11713
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
11714
+ }
11715
+ function _classCallCheck(a, n) {
11716
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
11717
+ }
11718
+ function _defineProperties(e, r) {
11719
+ for (var t = 0; t < r.length; t++) {
11720
+ var o = r[t];
11721
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$1(o.key), o);
11722
+ }
11723
+ }
11724
+ function _createClass(e, r, t) {
11725
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
11726
+ writable: !1
11727
+ }), e;
11728
+ }
11729
+ function _defineProperty$1(e, r, t) {
11730
+ return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
11731
+ value: t,
11732
+ enumerable: !0,
11733
+ configurable: !0,
11734
+ writable: !0
11735
+ }) : e[r] = t, e;
11736
+ }
11737
+ function _get() {
11738
+ return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
11739
+ var p = _superPropBase(e, t);
11740
+ if (p) {
11741
+ var n = Object.getOwnPropertyDescriptor(p, t);
11742
+ return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value;
11743
+ }
11744
+ }, _get.apply(null, arguments);
11745
+ }
11746
+ function _getPrototypeOf(t) {
11747
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
11748
+ return t.__proto__ || Object.getPrototypeOf(t);
11749
+ }, _getPrototypeOf(t);
11750
+ }
11751
+ function _inherits(t, e) {
11752
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
11753
+ t.prototype = Object.create(e && e.prototype, {
11754
+ constructor: {
11755
+ value: t,
11756
+ writable: !0,
11757
+ configurable: !0
11758
+ }
11759
+ }), Object.defineProperty(t, "prototype", {
11760
+ writable: !1
11761
+ }), e && _setPrototypeOf(t, e);
11762
+ }
11763
+ function _isNativeReflectConstruct() {
11764
+ try {
11765
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
11766
+ } catch (t) {}
11767
+ return (_isNativeReflectConstruct = function () {
11768
+ return !!t;
11769
+ })();
11770
+ }
11771
+ function _iterableToArray(r) {
11772
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
11773
+ }
11774
+ function _nonIterableSpread() {
11775
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11776
+ }
11757
11777
  function ownKeys$1(e, r) {
11758
11778
  var t = Object.keys(e);
11759
11779
  if (Object.getOwnPropertySymbols) {
@@ -11775,171 +11795,49 @@
11775
11795
  }
11776
11796
  return e;
11777
11797
  }
11778
- function _classCallCheck(instance, Constructor) {
11779
- if (!(instance instanceof Constructor)) {
11780
- throw new TypeError("Cannot call a class as a function");
11781
- }
11782
- }
11783
- function _defineProperties(target, props) {
11784
- for (var i = 0; i < props.length; i++) {
11785
- var descriptor = props[i];
11786
- descriptor.enumerable = descriptor.enumerable || false;
11787
- descriptor.configurable = true;
11788
- if ("value" in descriptor) descriptor.writable = true;
11789
- Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor);
11790
- }
11798
+ function _possibleConstructorReturn(t, e) {
11799
+ if (e && ("object" == typeof e || "function" == typeof e)) return e;
11800
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
11801
+ return _assertThisInitialized(t);
11791
11802
  }
11792
- function _createClass(Constructor, protoProps, staticProps) {
11793
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
11794
- if (staticProps) _defineProperties(Constructor, staticProps);
11795
- Object.defineProperty(Constructor, "prototype", {
11796
- writable: false
11797
- });
11798
- return Constructor;
11803
+ function _setPrototypeOf(t, e) {
11804
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
11805
+ return t.__proto__ = e, t;
11806
+ }, _setPrototypeOf(t, e);
11799
11807
  }
11800
- function _defineProperty$1(obj, key, value) {
11801
- key = _toPropertyKey$1(key);
11802
- if (key in obj) {
11803
- Object.defineProperty(obj, key, {
11804
- value: value,
11805
- enumerable: true,
11806
- configurable: true,
11807
- writable: true
11808
- });
11809
- } else {
11810
- obj[key] = value;
11811
- }
11812
- return obj;
11813
- }
11814
- function _inherits(subClass, superClass) {
11815
- if (typeof superClass !== "function" && superClass !== null) {
11816
- throw new TypeError("Super expression must either be null or a function");
11817
- }
11818
- subClass.prototype = Object.create(superClass && superClass.prototype, {
11819
- constructor: {
11820
- value: subClass,
11821
- writable: true,
11822
- configurable: true
11823
- }
11824
- });
11825
- Object.defineProperty(subClass, "prototype", {
11826
- writable: false
11827
- });
11828
- if (superClass) _setPrototypeOf(subClass, superClass);
11829
- }
11830
- function _getPrototypeOf(o) {
11831
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
11832
- return o.__proto__ || Object.getPrototypeOf(o);
11833
- };
11834
- return _getPrototypeOf(o);
11835
- }
11836
- function _setPrototypeOf(o, p) {
11837
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
11838
- o.__proto__ = p;
11839
- return o;
11840
- };
11841
- return _setPrototypeOf(o, p);
11842
- }
11843
- function _isNativeReflectConstruct() {
11844
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
11845
- if (Reflect.construct.sham) return false;
11846
- if (typeof Proxy === "function") return true;
11847
- try {
11848
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
11849
- return true;
11850
- } catch (e) {
11851
- return false;
11852
- }
11853
- }
11854
- function _assertThisInitialized(self) {
11855
- if (self === void 0) {
11856
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
11857
- }
11858
- return self;
11859
- }
11860
- function _possibleConstructorReturn(self, call) {
11861
- if (call && (typeof call === "object" || typeof call === "function")) {
11862
- return call;
11863
- } else if (call !== void 0) {
11864
- throw new TypeError("Derived constructors may only return object or undefined");
11865
- }
11866
- return _assertThisInitialized(self);
11808
+ function _superPropBase(t, o) {
11809
+ for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
11810
+ return t;
11867
11811
  }
11868
- function _createSuper(Derived) {
11869
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
11870
- return function _createSuperInternal() {
11871
- var Super = _getPrototypeOf(Derived),
11872
- result;
11873
- if (hasNativeReflectConstruct) {
11874
- var NewTarget = _getPrototypeOf(this).constructor;
11875
- result = Reflect.construct(Super, arguments, NewTarget);
11876
- } else {
11877
- result = Super.apply(this, arguments);
11878
- }
11879
- return _possibleConstructorReturn(this, result);
11880
- };
11812
+ function _superPropGet(t, o, e, r) {
11813
+ var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e);
11814
+ return 2 & r && "function" == typeof p ? function (t) {
11815
+ return p.apply(e, t);
11816
+ } : p;
11881
11817
  }
11882
- function _superPropBase(object, property) {
11883
- while (!Object.prototype.hasOwnProperty.call(object, property)) {
11884
- object = _getPrototypeOf(object);
11885
- if (object === null) break;
11886
- }
11887
- return object;
11818
+ function _toConsumableArray(r) {
11819
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
11888
11820
  }
11889
- function _get() {
11890
- if (typeof Reflect !== "undefined" && Reflect.get) {
11891
- _get = Reflect.get.bind();
11892
- } else {
11893
- _get = function _get(target, property, receiver) {
11894
- var base = _superPropBase(target, property);
11895
- if (!base) return;
11896
- var desc = Object.getOwnPropertyDescriptor(base, property);
11897
- if (desc.get) {
11898
- return desc.get.call(arguments.length < 3 ? target : receiver);
11899
- }
11900
- return desc.value;
11901
- };
11821
+ function _toPrimitive$1(t, r) {
11822
+ if ("object" != typeof t || !t) return t;
11823
+ var e = t[Symbol.toPrimitive];
11824
+ if (void 0 !== e) {
11825
+ var i = e.call(t, r || "default");
11826
+ if ("object" != typeof i) return i;
11827
+ throw new TypeError("@@toPrimitive must return a primitive value.");
11902
11828
  }
11903
- return _get.apply(this, arguments);
11904
- }
11905
- function _toConsumableArray(arr) {
11906
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
11907
- }
11908
- function _arrayWithoutHoles(arr) {
11909
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
11910
- }
11911
- function _iterableToArray(iter) {
11912
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
11913
- }
11914
- function _unsupportedIterableToArray(o, minLen) {
11915
- if (!o) return;
11916
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
11917
- var n = Object.prototype.toString.call(o).slice(8, -1);
11918
- if (n === "Object" && o.constructor) n = o.constructor.name;
11919
- if (n === "Map" || n === "Set") return Array.from(o);
11920
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
11921
- }
11922
- function _arrayLikeToArray(arr, len) {
11923
- if (len == null || len > arr.length) len = arr.length;
11924
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
11925
- return arr2;
11829
+ return ("string" === r ? String : Number)(t);
11926
11830
  }
11927
- function _nonIterableSpread() {
11928
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11831
+ function _toPropertyKey$1(t) {
11832
+ var i = _toPrimitive$1(t, "string");
11833
+ return "symbol" == typeof i ? i : i + "";
11929
11834
  }
11930
- function _toPrimitive$1(input, hint) {
11931
- if (typeof input !== "object" || input === null) return input;
11932
- var prim = input[Symbol.toPrimitive];
11933
- if (prim !== undefined) {
11934
- var res = prim.call(input, hint || "default");
11935
- if (typeof res !== "object") return res;
11936
- throw new TypeError("@@toPrimitive must return a primitive value.");
11835
+ function _unsupportedIterableToArray(r, a) {
11836
+ if (r) {
11837
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
11838
+ var t = {}.toString.call(r).slice(8, -1);
11839
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
11937
11840
  }
11938
- return (hint === "string" ? String : Number)(input);
11939
- }
11940
- function _toPropertyKey$1(arg) {
11941
- var key = _toPrimitive$1(arg, "string");
11942
- return typeof key === "symbol" ? key : String(key);
11943
11841
  }
11944
11842
  function getDefaultExportFromCjs(x) {
11945
11843
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -12997,7 +12895,6 @@
12997
12895
  // return KeySystems.CLEARKEY;
12998
12896
  }
12999
12897
  }
13000
-
13001
12898
  function keySystemDomainToKeySystemFormat(keySystem) {
13002
12899
  switch (keySystem) {
13003
12900
  case KeySystems.FAIRPLAY:
@@ -13710,7 +13607,6 @@
13710
13607
  if (flags & 0x80) {
13711
13608
  i += 2; // skip dependency es_id
13712
13609
  }
13713
-
13714
13610
  if (flags & 0x40) {
13715
13611
  i += esdsBox[i++]; // skip URL
13716
13612
  }
@@ -18017,7 +17913,6 @@
18017
17913
  }
18018
17914
  // Loading is handled by the subclasses
18019
17915
  }
18020
-
18021
17916
  shouldLoadPlaylist(playlist) {
18022
17917
  return this.canLoad && !!playlist && !!playlist.url && (!playlist.details || playlist.details.live);
18023
17918
  }
@@ -18389,7 +18284,6 @@
18389
18284
  });
18390
18285
  });
18391
18286
  }
18392
-
18393
18287
  return Promise.all(configurations.map(configuration => {
18394
18288
  // Cache MediaCapabilities promises
18395
18289
  const decodingInfoKey = getMediaDecodingInfoKey(configuration);
@@ -22226,7 +22120,6 @@
22226
22120
  this.resetTransmuxer();
22227
22121
  // For this error fallthrough. Marking parsed will allow advancing to next fragment.
22228
22122
  }
22229
-
22230
22123
  this.state = State.PARSED;
22231
22124
  this.hls.trigger(Events.FRAG_PARSED, {
22232
22125
  frag,
@@ -22767,7 +22660,6 @@
22767
22660
  // Layer2
22768
22661
  12 // Layer1
22769
22662
  ]];
22770
-
22771
22663
  const BytesInSlot = [0,
22772
22664
  // Reserved
22773
22665
  1,
@@ -22776,7 +22668,6 @@
22776
22668
  // Layer2
22777
22669
  4 // Layer1
22778
22670
  ];
22779
-
22780
22671
  function appendFrame$1(track, data, offset, pts, frameIndex) {
22781
22672
  // Using http://www.datavoyage.com/mpgscript/mpeghdr.htm as a reference
22782
22673
  if (offset + 24 > data.length) {
@@ -23140,7 +23031,6 @@
23140
23031
  if (start + 8 > data.length) {
23141
23032
  return -1; // not enough bytes left
23142
23033
  }
23143
-
23144
23034
  if (data[start] !== 0x0b || data[start + 1] !== 0x77) {
23145
23035
  return -1; // invalid magic
23146
23036
  }
@@ -23150,7 +23040,6 @@
23150
23040
  if (samplingRateCode >= 3) {
23151
23041
  return -1; // invalid sampling rate
23152
23042
  }
23153
-
23154
23043
  const samplingRateMap = [48000, 44100, 32000];
23155
23044
  const sampleRate = samplingRateMap[samplingRateCode];
23156
23045
 
@@ -23477,7 +23366,6 @@
23477
23366
  skipEG();
23478
23367
  } // offset_for_ref_frame[ i ]
23479
23368
  }
23480
-
23481
23369
  skipUEG(); // max_num_ref_frames
23482
23370
  skipBits(1); // gaps_in_frame_num_value_allowed_flag
23483
23371
  const picWidthInMbsMinus1 = readUEG();
@@ -23626,7 +23514,6 @@
23626
23514
  break;
23627
23515
  // IDR
23628
23516
  }
23629
-
23630
23517
  case 5:
23631
23518
  push = true;
23632
23519
  // handle PES not starting with AUD
@@ -23649,7 +23536,6 @@
23649
23536
  break;
23650
23537
  // SPS
23651
23538
  }
23652
-
23653
23539
  case 7:
23654
23540
  {
23655
23541
  var _track$pixelRatio, _track$pixelRatio2;
@@ -24889,7 +24775,6 @@
24889
24775
  // reserved
24890
24776
  0x56, 0x69, 0x64, 0x65, 0x6f, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x00 // name: 'VideoHandler'
24891
24777
  ]);
24892
-
24893
24778
  const audioHdlr = new Uint8Array([0x00,
24894
24779
  // version 0
24895
24780
  0x00, 0x00, 0x00,
@@ -24906,7 +24791,6 @@
24906
24791
  // reserved
24907
24792
  0x53, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x00 // name: 'SoundHandler'
24908
24793
  ]);
24909
-
24910
24794
  MP4.HDLR_TYPES = {
24911
24795
  video: videoHdlr,
24912
24796
  audio: audioHdlr
@@ -24925,14 +24809,12 @@
24925
24809
  // version 0
24926
24810
  0x00, 0x00, 0x01 // entry_flags
24927
24811
  ]);
24928
-
24929
24812
  const stco = new Uint8Array([0x00,
24930
24813
  // version
24931
24814
  0x00, 0x00, 0x00,
24932
24815
  // flags
24933
24816
  0x00, 0x00, 0x00, 0x00 // entry_count
24934
24817
  ]);
24935
-
24936
24818
  MP4.STTS = MP4.STSC = MP4.STCO = stco;
24937
24819
  MP4.STSZ = new Uint8Array([0x00,
24938
24820
  // version
@@ -24942,7 +24824,6 @@
24942
24824
  // sample_size
24943
24825
  0x00, 0x00, 0x00, 0x00 // sample_count
24944
24826
  ]);
24945
-
24946
24827
  MP4.VMHD = new Uint8Array([0x00,
24947
24828
  // version
24948
24829
  0x00, 0x00, 0x01,
@@ -24951,7 +24832,6 @@
24951
24832
  // graphicsmode
24952
24833
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00 // opcolor
24953
24834
  ]);
24954
-
24955
24835
  MP4.SMHD = new Uint8Array([0x00,
24956
24836
  // version
24957
24837
  0x00, 0x00, 0x00,
@@ -24960,7 +24840,6 @@
24960
24840
  // balance
24961
24841
  0x00, 0x00 // reserved
24962
24842
  ]);
24963
-
24964
24843
  MP4.STSD = new Uint8Array([0x00,
24965
24844
  // version 0
24966
24845
  0x00, 0x00, 0x00,
@@ -25028,7 +24907,6 @@
25028
24907
  sequenceNumber >> 24, sequenceNumber >> 16 & 0xff, sequenceNumber >> 8 & 0xff, sequenceNumber & 0xff // sequence_number
25029
24908
  ]));
25030
24909
  }
25031
-
25032
24910
  static minf(track) {
25033
24911
  if (track.type === 'audio') {
25034
24912
  return MP4.box(MP4.types.minf, MP4.box(MP4.types.smhd, MP4.SMHD), MP4.DINF, MP4.stbl(track));
@@ -25085,7 +24963,6 @@
25085
24963
  // pre_defined
25086
24964
  0xff, 0xff, 0xff, 0xff // next_track_ID
25087
24965
  ]);
25088
-
25089
24966
  return MP4.box(MP4.types.mvhd, bytes);
25090
24967
  }
25091
24968
  static sdtp(track) {
@@ -25225,7 +25102,6 @@
25225
25102
  0x05 // descriptor_type
25226
25103
  ].concat([configlen]).concat(track.config).concat([0x06, 0x01, 0x02])); // GASpecificConfig)); // length + audio config descriptor
25227
25104
  }
25228
-
25229
25105
  static audioStsd(track) {
25230
25106
  const samplerate = track.samplerate;
25231
25107
  return new Uint8Array([0x00, 0x00, 0x00,
@@ -25304,7 +25180,6 @@
25304
25180
  height >> 8 & 0xff, height & 0xff, 0x00, 0x00 // height
25305
25181
  ]));
25306
25182
  }
25307
-
25308
25183
  static traf(track, baseMediaDecodeTime) {
25309
25184
  const sampleDependencyTable = MP4.sdtp(track);
25310
25185
  const id = track.id;
@@ -25359,7 +25234,6 @@
25359
25234
  0x00, 0x01, 0x00, 0x01 // default_sample_flags
25360
25235
  ]));
25361
25236
  }
25362
-
25363
25237
  static trun(track, offset) {
25364
25238
  const samples = track.samples || [];
25365
25239
  const len = samples.length;
@@ -28037,7 +27911,7 @@
28037
27911
  }
28038
27912
  super._handleFragmentLoadComplete(fragLoadedData);
28039
27913
  }
28040
- onBufferReset( /* event: Events.BUFFER_RESET */
27914
+ onBufferReset(/* event: Events.BUFFER_RESET */
28041
27915
  ) {
28042
27916
  // reset reference to sourcebuffers
28043
27917
  this.mediaBuffer = this.videoBuffer = null;
@@ -28202,7 +28076,6 @@
28202
28076
  });
28203
28077
  // Only flush audio from old audio tracks when PTS is known on new audio track
28204
28078
  }
28205
-
28206
28079
  if (audio) {
28207
28080
  const {
28208
28081
  startPTS,
@@ -31173,7 +31046,6 @@
31173
31046
  this.setPen(bkgData);
31174
31047
  this.insertChar(0x20); // Space
31175
31048
  }
31176
-
31177
31049
  setRollUpRows(nrRows) {
31178
31050
  this.nrRollUpRows = nrRows;
31179
31051
  }
@@ -31182,7 +31054,6 @@
31182
31054
  this.logger.log(3, 'roll_up but nrRollUpRows not set yet');
31183
31055
  return; // Not properly setup
31184
31056
  }
31185
-
31186
31057
  this.logger.log(1, () => this.getDisplayText());
31187
31058
  const topRowIndex = this.currRow + 1 - this.nrRollUpRows;
31188
31059
  const topRow = this.rows.splice(topRowIndex, 1)[0];
@@ -32769,7 +32640,6 @@
32769
32640
  // 'direction',
32770
32641
  // 'writingMode'
32771
32642
  ];
32772
-
32773
32643
  const regionStyleName = region != null && region.hasAttribute('style') ? region.getAttribute('style') : null;
32774
32644
  if (regionStyleName && styleElements.hasOwnProperty(regionStyleName)) {
32775
32645
  regionStyle = styleElements[regionStyleName];
@@ -33232,7 +33102,7 @@
33232
33102
  if (payload.byteLength) {
33233
33103
  const decryptData = frag.decryptdata;
33234
33104
  // fragment after decryption has a stats object
33235
- const decrypted = ('stats' in data);
33105
+ const decrypted = 'stats' in data;
33236
33106
  // If the subtitles are not encrypted, parse VTTs now. Otherwise, we need to wait.
33237
33107
  if (decryptData == null || !decryptData.encrypted || decrypted) {
33238
33108
  const trackPlaylistMedia = this.tracks[frag.level];
@@ -35175,7 +35045,6 @@
35175
35045
  if (value === true) {
35176
35046
  return `;${serializeKey(key)}`; // omit true
35177
35047
  }
35178
-
35179
35048
  return `;${serializeKey(key)}=${serializeBareItem(value)}`;
35180
35049
  }).join('');
35181
35050
  }
@@ -40056,7 +39925,6 @@
40056
39925
  this.autoLevelCapping = -1;
40057
39926
  this.streamController.nextLevelSwitch(); // Now we're uncapped, get the next level asap.
40058
39927
  }
40059
-
40060
39928
  this.config.capLevelToPlayerSize = newCapLevelToPlayerSize;
40061
39929
  }
40062
39930
  }
@@ -40384,15 +40252,13 @@
40384
40252
  Events$1.register('PLAYBACK_FRAGMENT_CHANGED');
40385
40253
  Events$1.register('PLAYBACK_FRAGMENT_PARSING_METADATA');
40386
40254
  var HlsjsPlayback = /*#__PURE__*/function (_HTML5Video) {
40387
- _inherits(HlsjsPlayback, _HTML5Video);
40388
- var _super = _createSuper(HlsjsPlayback);
40389
40255
  function HlsjsPlayback() {
40390
40256
  var _this;
40391
40257
  _classCallCheck(this, HlsjsPlayback);
40392
40258
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
40393
40259
  args[_key] = arguments[_key];
40394
40260
  }
40395
- _this = _super.call.apply(_super, [this].concat(args));
40261
+ _this = _callSuper(this, HlsjsPlayback, [].concat(args));
40396
40262
  _this.options.hlsPlayback = _objectSpread2$1(_objectSpread2$1({}, _this.defaultOptions), _this.options.hlsPlayback);
40397
40263
  _this._timeUpdateThrottleDelay = 200;
40398
40264
  _this._timeUpdateFiringRate = 0.2;
@@ -40400,7 +40266,8 @@
40400
40266
  _this._setInitialState();
40401
40267
  return _this;
40402
40268
  }
40403
- _createClass(HlsjsPlayback, [{
40269
+ _inherits(HlsjsPlayback, _HTML5Video);
40270
+ return _createClass(HlsjsPlayback, [{
40404
40271
  key: "name",
40405
40272
  get: function get() {
40406
40273
  return 'hls';
@@ -40409,7 +40276,7 @@
40409
40276
  key: "supportedVersion",
40410
40277
  get: function get() {
40411
40278
  return {
40412
- min: "0.11.3"
40279
+ min: "0.11.4"
40413
40280
  };
40414
40281
  }
40415
40282
  }, {
@@ -40422,7 +40289,6 @@
40422
40289
  get: function get() {
40423
40290
  if (this._currentLevel === null || this._currentLevel === undefined) return AUTO;else return this._currentLevel; //0 is a valid level ID
40424
40291
  },
40425
-
40426
40292
  set: function set(id) {
40427
40293
  this._currentLevel = id;
40428
40294
  this.trigger(Events$1.PLAYBACK_LEVEL_SWITCH_START);
@@ -40692,7 +40558,7 @@
40692
40558
  key: "render",
40693
40559
  value: function render() {
40694
40560
  this._ready();
40695
- return _get(_getPrototypeOf(HlsjsPlayback.prototype), "render", this).call(this);
40561
+ return _superPropGet(HlsjsPlayback, "render", this, 3)([]);
40696
40562
  }
40697
40563
  }, {
40698
40564
  key: "_ready",
@@ -40936,7 +40802,7 @@
40936
40802
  var isSameDuration = Math.abs(this._lastDuration - duration) < this._durationChangeMinOffset;
40937
40803
  if (isSameDuration) return;
40938
40804
  this._lastDuration = duration;
40939
- _get(_getPrototypeOf(HlsjsPlayback.prototype), "_onDurationChange", this).call(this);
40805
+ _superPropGet(HlsjsPlayback, "_onDurationChange", this, 3)([]);
40940
40806
  }
40941
40807
  }, {
40942
40808
  key: "_onProgress",
@@ -40971,7 +40837,7 @@
40971
40837
  value: function play() {
40972
40838
  !this._hls && this._setup();
40973
40839
  !this._manifestLoading && !this.options.hlsPlayback.preload && this._hls.loadSource(this.options.src);
40974
- _get(_getPrototypeOf(HlsjsPlayback.prototype), "play", this).call(this);
40840
+ _superPropGet(HlsjsPlayback, "play", this, 3)([]);
40975
40841
  this._startTimeUpdateTimer();
40976
40842
  }
40977
40843
  }, {
@@ -40984,7 +40850,7 @@
40984
40850
  key: "stop",
40985
40851
  value: function stop() {
40986
40852
  this._stopTimeUpdateTimer();
40987
- if (this._hls) _get(_getPrototypeOf(HlsjsPlayback.prototype), "stop", this).call(this);
40853
+ if (this._hls) _superPropGet(HlsjsPlayback, "stop", this, 3)([]);
40988
40854
  this._destroyHLSInstance();
40989
40855
  }
40990
40856
  }, {
@@ -40992,7 +40858,7 @@
40992
40858
  value: function destroy() {
40993
40859
  this._stopTimeUpdateTimer();
40994
40860
  this._destroyHLSInstance();
40995
- _get(_getPrototypeOf(HlsjsPlayback.prototype), "destroy", this).call(this);
40861
+ _superPropGet(HlsjsPlayback, "destroy", this, 3)([]);
40996
40862
  }
40997
40863
  }, {
40998
40864
  key: "_updatePlaybackType",
@@ -41204,7 +41070,6 @@
41204
41070
  return Hls;
41205
41071
  }
41206
41072
  }]);
41207
- return HlsjsPlayback;
41208
41073
  }(HTML5Video);
41209
41074
  HlsjsPlayback.canPlay = function (resource, mimeType) {
41210
41075
  var resourceParts = resource.split('?')[0].match(/.*\.(.*)$/) || [];