hls.js 1.5.9-0.canary.10306 → 1.5.9-0.canary.10310

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/hls.js CHANGED
@@ -5,6 +5,11 @@
5
5
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Hls = factory());
6
6
  })(this, (function () { 'use strict';
7
7
 
8
+ function _arrayLikeToArray(r, a) {
9
+ (null == a || a > r.length) && (a = r.length);
10
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
11
+ return n;
12
+ }
8
13
  function _construct(t, e, r) {
9
14
  if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
10
15
  var o = [null];
@@ -12,6 +17,66 @@
12
17
  var p = new (t.bind.apply(t, o))();
13
18
  return r && _setPrototypeOf(p, r.prototype), p;
14
19
  }
20
+ function _defineProperties(e, r) {
21
+ for (var t = 0; t < r.length; t++) {
22
+ var o = r[t];
23
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
24
+ }
25
+ }
26
+ function _createClass(e, r, t) {
27
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
28
+ writable: !1
29
+ }), e;
30
+ }
31
+ function _createForOfIteratorHelperLoose(r, e) {
32
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
33
+ if (t) return (t = t.call(r)).next.bind(t);
34
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e ) {
35
+ t && (r = t);
36
+ var o = 0;
37
+ return function () {
38
+ return o >= r.length ? {
39
+ done: !0
40
+ } : {
41
+ done: !1,
42
+ value: r[o++]
43
+ };
44
+ };
45
+ }
46
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
47
+ }
48
+ function _defineProperty(e, r, t) {
49
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
50
+ value: t,
51
+ enumerable: !0,
52
+ configurable: !0,
53
+ writable: !0
54
+ }) : e[r] = t, e;
55
+ }
56
+ function _extends() {
57
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
58
+ for (var e = 1; e < arguments.length; e++) {
59
+ var t = arguments[e];
60
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
61
+ }
62
+ return n;
63
+ }, _extends.apply(null, arguments);
64
+ }
65
+ function _getPrototypeOf(t) {
66
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
67
+ return t.__proto__ || Object.getPrototypeOf(t);
68
+ }, _getPrototypeOf(t);
69
+ }
70
+ function _inheritsLoose(t, o) {
71
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
72
+ }
73
+ function _isNativeFunction(t) {
74
+ try {
75
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
76
+ } catch (n) {
77
+ return "function" == typeof t;
78
+ }
79
+ }
15
80
  function _isNativeReflectConstruct() {
16
81
  try {
17
82
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -41,6 +106,11 @@
41
106
  }
42
107
  return e;
43
108
  }
109
+ function _setPrototypeOf(t, e) {
110
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
111
+ return t.__proto__ = e, t;
112
+ }, _setPrototypeOf(t, e);
113
+ }
44
114
  function _toPrimitive(t, r) {
45
115
  if ("object" != typeof t || !t) return t;
46
116
  var e = t[Symbol.toPrimitive];
@@ -55,132 +125,34 @@
55
125
  var i = _toPrimitive(t, "string");
56
126
  return "symbol" == typeof i ? i : i + "";
57
127
  }
58
- function _defineProperties(target, props) {
59
- for (var i = 0; i < props.length; i++) {
60
- var descriptor = props[i];
61
- descriptor.enumerable = descriptor.enumerable || false;
62
- descriptor.configurable = true;
63
- if ("value" in descriptor) descriptor.writable = true;
64
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
128
+ function _unsupportedIterableToArray(r, a) {
129
+ if (r) {
130
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
131
+ var t = {}.toString.call(r).slice(8, -1);
132
+ 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;
65
133
  }
66
134
  }
67
- function _createClass(Constructor, protoProps, staticProps) {
68
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
69
- if (staticProps) _defineProperties(Constructor, staticProps);
70
- Object.defineProperty(Constructor, "prototype", {
71
- writable: false
72
- });
73
- return Constructor;
74
- }
75
- function _defineProperty(obj, key, value) {
76
- key = _toPropertyKey(key);
77
- if (key in obj) {
78
- Object.defineProperty(obj, key, {
79
- value: value,
80
- enumerable: true,
81
- configurable: true,
82
- writable: true
83
- });
84
- } else {
85
- obj[key] = value;
86
- }
87
- return obj;
88
- }
89
- function _extends() {
90
- _extends = Object.assign ? Object.assign.bind() : function (target) {
91
- for (var i = 1; i < arguments.length; i++) {
92
- var source = arguments[i];
93
- for (var key in source) {
94
- if (Object.prototype.hasOwnProperty.call(source, key)) {
95
- target[key] = source[key];
96
- }
97
- }
98
- }
99
- return target;
100
- };
101
- return _extends.apply(this, arguments);
102
- }
103
- function _inheritsLoose(subClass, superClass) {
104
- subClass.prototype = Object.create(superClass.prototype);
105
- subClass.prototype.constructor = subClass;
106
- _setPrototypeOf(subClass, superClass);
107
- }
108
- function _getPrototypeOf(o) {
109
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
110
- return o.__proto__ || Object.getPrototypeOf(o);
111
- };
112
- return _getPrototypeOf(o);
113
- }
114
- function _setPrototypeOf(o, p) {
115
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
116
- o.__proto__ = p;
117
- return o;
118
- };
119
- return _setPrototypeOf(o, p);
120
- }
121
- function _isNativeFunction(fn) {
122
- try {
123
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
124
- } catch (e) {
125
- return typeof fn === "function";
126
- }
127
- }
128
- function _wrapNativeSuper(Class) {
129
- var _cache = typeof Map === "function" ? new Map() : undefined;
130
- _wrapNativeSuper = function _wrapNativeSuper(Class) {
131
- if (Class === null || !_isNativeFunction(Class)) return Class;
132
- if (typeof Class !== "function") {
133
- throw new TypeError("Super expression must either be null or a function");
134
- }
135
- if (typeof _cache !== "undefined") {
136
- if (_cache.has(Class)) return _cache.get(Class);
137
- _cache.set(Class, Wrapper);
135
+ function _wrapNativeSuper(t) {
136
+ var r = "function" == typeof Map ? new Map() : void 0;
137
+ return _wrapNativeSuper = function (t) {
138
+ if (null === t || !_isNativeFunction(t)) return t;
139
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
140
+ if (void 0 !== r) {
141
+ if (r.has(t)) return r.get(t);
142
+ r.set(t, Wrapper);
138
143
  }
139
144
  function Wrapper() {
140
- return _construct(Class, arguments, _getPrototypeOf(this).constructor);
145
+ return _construct(t, arguments, _getPrototypeOf(this).constructor);
141
146
  }
142
- Wrapper.prototype = Object.create(Class.prototype, {
147
+ return Wrapper.prototype = Object.create(t.prototype, {
143
148
  constructor: {
144
149
  value: Wrapper,
145
- enumerable: false,
146
- writable: true,
147
- configurable: true
150
+ enumerable: !1,
151
+ writable: !0,
152
+ configurable: !0
148
153
  }
149
- });
150
- return _setPrototypeOf(Wrapper, Class);
151
- };
152
- return _wrapNativeSuper(Class);
153
- }
154
- function _unsupportedIterableToArray(o, minLen) {
155
- if (!o) return;
156
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
157
- var n = Object.prototype.toString.call(o).slice(8, -1);
158
- if (n === "Object" && o.constructor) n = o.constructor.name;
159
- if (n === "Map" || n === "Set") return Array.from(o);
160
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
161
- }
162
- function _arrayLikeToArray(arr, len) {
163
- if (len == null || len > arr.length) len = arr.length;
164
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
165
- return arr2;
166
- }
167
- function _createForOfIteratorHelperLoose(o, allowArrayLike) {
168
- var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
169
- if (it) return (it = it.call(o)).next.bind(it);
170
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike ) {
171
- if (it) o = it;
172
- var i = 0;
173
- return function () {
174
- if (i >= o.length) return {
175
- done: true
176
- };
177
- return {
178
- done: false,
179
- value: o[i++]
180
- };
181
- };
182
- }
183
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
154
+ }), _setPrototypeOf(Wrapper, t);
155
+ }, _wrapNativeSuper(t);
184
156
  }
185
157
 
186
158
  function getDefaultExportFromCjs (x) {
@@ -637,7 +609,7 @@
637
609
  // Some browsers don't allow to use bind on console object anyway
638
610
  // fallback to default if needed
639
611
  try {
640
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.9-0.canary.10306");
612
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.9-0.canary.10310");
641
613
  } catch (e) {
642
614
  /* log fn threw an exception. All logger methods are no-ops. */
643
615
  return createLogger();
@@ -30531,7 +30503,7 @@
30531
30503
  * Get the video-dev/hls.js package version.
30532
30504
  */
30533
30505
  function get() {
30534
- return "1.5.9-0.canary.10306";
30506
+ return "1.5.9-0.canary.10310";
30535
30507
  }
30536
30508
  }, {
30537
30509
  key: "Events",