@evercam/ui 0.0.55-beta.23 → 0.0.55-beta.25

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/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import we from "vue";
1
+ import Re from "vue";
2
2
  import Te from "moment-timezone";
3
3
  import * as I from "d3";
4
- var z = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(z || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), pa = /* @__PURE__ */ ((s) => (s._360 = "360", s._480 = "480", s._720 = "720", s._1080 = "1080", s.auto = "auto", s))(pa || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}), _e = /* @__PURE__ */ ((s) => (s.bars = "bars", s.dots = "dots", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s))(_e || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
5
- const ya = we.extend({
4
+ var z = /* @__PURE__ */ ((s) => (s.dot = "dot", s.xs = "xs", s.sm = "sm", s.md = "base", s.base = "base", s.lg = "lg", s.xl = "xl", s["2xl"] = "2xl", s["3xl"] = "3xl", s["4xl"] = "4xl", s["5xl"] = "5xl", s["6xl"] = "6xl", s["7xl"] = "7xl", s["8xl"] = "8xl", s["9xl"] = "9xl", s))(z || {}), ge = /* @__PURE__ */ ((s) => (s.warning = "warning", s.error = "error", s.info = "info", s.success = "success", s.primary = "primary", s.brand = "brand", s.default = "default", s))(ge || {}), pa = /* @__PURE__ */ ((s) => (s._360 = "360", s._480 = "480", s._720 = "720", s._1080 = "1080", s.auto = "auto", s))(pa || {}), kt = /* @__PURE__ */ ((s) => (s.overview = "overview", s.detailed = "detailed", s.detailedBackground = "detailedBackground", s))(kt || {}), Ce = /* @__PURE__ */ ((s) => (s.bars = "bars", s.dots = "dots", s.lineGraph = "lineGraph", s.barChart = "barGraph", s.milestones = "milestones", s))(Ce || {}), Pt = /* @__PURE__ */ ((s) => (s.zoom = "zoom", s.autoPan = "autoPan", s.initial = "initial", s))(Pt || {});
5
+ const ya = Re.extend({
6
6
  name: "EBadge",
7
7
  props: {
8
8
  text: {
@@ -94,7 +94,7 @@ var va = function() {
94
94
  null,
95
95
  null
96
96
  );
97
- const Mr = Ta.exports, Ea = we.extend({
97
+ const Mr = Ta.exports, Ea = Re.extend({
98
98
  name: "EAvatar",
99
99
  components: {
100
100
  Badge: Mr
@@ -164,7 +164,7 @@ var Sa = function() {
164
164
  null
165
165
  );
166
166
  const La = Aa.exports;
167
- function Ra(s) {
167
+ function _a(s) {
168
168
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
169
169
  }
170
170
  var Nr = {}, Br = {}, ji = {};
@@ -1929,14 +1929,14 @@ var Zi = {}, Qi = {}, Xr = {};
1929
1929
  mode: "rgb",
1930
1930
  color: t.default[m].map((k) => k.toString())
1931
1931
  };
1932
- let T = m.replace(n, (k, R, B, _, b) => [
1932
+ let T = m.replace(n, (k, _, B, R, b) => [
1933
1933
  "#",
1934
- R,
1935
- R,
1936
- B,
1937
- B,
1938
1934
  _,
1939
1935
  _,
1936
+ B,
1937
+ B,
1938
+ R,
1939
+ R,
1940
1940
  b ? b + b : ""
1941
1941
  ].join("")).match(r);
1942
1942
  if (T !== null)
@@ -2147,10 +2147,10 @@ var Ji = {}, Zr = {}, ei = {};
2147
2147
  return E;
2148
2148
  },
2149
2149
  gradient: function() {
2150
- return R;
2150
+ return _;
2151
2151
  },
2152
2152
  position: function() {
2153
- return _;
2153
+ return R;
2154
2154
  },
2155
2155
  familyName: function() {
2156
2156
  return b;
@@ -2253,7 +2253,7 @@ var Ji = {}, Zr = {}, ei = {};
2253
2253
  }
2254
2254
  function E(F) {
2255
2255
  let V = 0;
2256
- return (0, r.splitAtTopLevelOnly)(F, ",").every((M) => (M = c(M), M.startsWith("var(") ? !0 : h(M) || R(M) || [
2256
+ return (0, r.splitAtTopLevelOnly)(F, ",").every((M) => (M = c(M), M.startsWith("var(") ? !0 : h(M) || _(M) || [
2257
2257
  "element(",
2258
2258
  "image(",
2259
2259
  "cross-fade(",
@@ -2268,7 +2268,7 @@ var Ji = {}, Zr = {}, ei = {};
2268
2268
  "repeating-linear-gradient",
2269
2269
  "repeating-radial-gradient"
2270
2270
  ]);
2271
- function R(F) {
2271
+ function _(F) {
2272
2272
  F = c(F);
2273
2273
  for (let V of k)
2274
2274
  if (F.startsWith(`${V}(`))
@@ -2282,7 +2282,7 @@ var Ji = {}, Zr = {}, ei = {};
2282
2282
  "bottom",
2283
2283
  "left"
2284
2284
  ]);
2285
- function _(F) {
2285
+ function R(F) {
2286
2286
  let V = 0;
2287
2287
  return (0, r.splitAtTopLevelOnly)(F, "_").every((M) => (M = c(M), M.startsWith("var(") ? !0 : B.has(M) || y(M) || f(M) ? (V++, !0) : !1)) ? V > 0 : !1;
2288
2288
  }
@@ -2355,9 +2355,9 @@ var Qr = {};
2355
2355
  Object.defineProperty(s, "__esModule", {
2356
2356
  value: !0
2357
2357
  });
2358
- function e(_, b) {
2358
+ function e(R, b) {
2359
2359
  for (var C in b)
2360
- Object.defineProperty(_, C, {
2360
+ Object.defineProperty(R, C, {
2361
2361
  enumerable: !0,
2362
2362
  get: b[C]
2363
2363
  });
@@ -2382,93 +2382,93 @@ var Qr = {};
2382
2382
  return L;
2383
2383
  },
2384
2384
  coerceValue: function() {
2385
- return R;
2385
+ return _;
2386
2386
  },
2387
2387
  getMatchingTypes: function() {
2388
2388
  return B;
2389
2389
  }
2390
2390
  });
2391
2391
  const t = /* @__PURE__ */ l(qr), i = Zi, r = Ji, n = /* @__PURE__ */ l(ji), a = Qr, o = Jt;
2392
- function l(_) {
2393
- return _ && _.__esModule ? _ : {
2394
- default: _
2392
+ function l(R) {
2393
+ return R && R.__esModule ? R : {
2394
+ default: R
2395
2395
  };
2396
2396
  }
2397
- function c(_, b) {
2398
- _.walkClasses((C) => {
2397
+ function c(R, b) {
2398
+ R.walkClasses((C) => {
2399
2399
  C.value = b(C.value), C.raws && C.raws.value && (C.raws.value = (0, t.default)(C.raws.value));
2400
2400
  });
2401
2401
  }
2402
- function u(_, b) {
2403
- if (!f(_))
2402
+ function u(R, b) {
2403
+ if (!f(R))
2404
2404
  return;
2405
- let C = _.slice(1, -1);
2405
+ let C = R.slice(1, -1);
2406
2406
  if (b(C))
2407
2407
  return (0, r.normalize)(C);
2408
2408
  }
2409
- function h(_, b = {}, C) {
2410
- let P = b[_];
2409
+ function h(R, b = {}, C) {
2410
+ let P = b[R];
2411
2411
  if (P !== void 0)
2412
2412
  return (0, n.default)(P);
2413
- if (f(_)) {
2414
- let w = u(_, C);
2413
+ if (f(R)) {
2414
+ let w = u(R, C);
2415
2415
  return w === void 0 ? void 0 : (0, n.default)(w);
2416
2416
  }
2417
2417
  }
2418
- function d(_, b = {}, { validate: C = () => !0 } = {}) {
2418
+ function d(R, b = {}, { validate: C = () => !0 } = {}) {
2419
2419
  var P;
2420
- let w = (P = b.values) === null || P === void 0 ? void 0 : P[_];
2421
- return w !== void 0 ? w : b.supportsNegativeValues && _.startsWith("-") ? h(_.slice(1), b.values, C) : u(_, C);
2420
+ let w = (P = b.values) === null || P === void 0 ? void 0 : P[R];
2421
+ return w !== void 0 ? w : b.supportsNegativeValues && R.startsWith("-") ? h(R.slice(1), b.values, C) : u(R, C);
2422
2422
  }
2423
- function f(_) {
2424
- return _.startsWith("[") && _.endsWith("]");
2423
+ function f(R) {
2424
+ return R.startsWith("[") && R.endsWith("]");
2425
2425
  }
2426
- function m(_) {
2427
- let b = _.lastIndexOf("/");
2428
- return b === -1 || b === _.length - 1 ? [
2429
- _,
2426
+ function m(R) {
2427
+ let b = R.lastIndexOf("/");
2428
+ return b === -1 || b === R.length - 1 ? [
2429
+ R,
2430
2430
  void 0
2431
- ] : f(_) && !_.includes("]/[") ? [
2432
- _,
2431
+ ] : f(R) && !R.includes("]/[") ? [
2432
+ R,
2433
2433
  void 0
2434
2434
  ] : [
2435
- _.slice(0, b),
2436
- _.slice(b + 1)
2435
+ R.slice(0, b),
2436
+ R.slice(b + 1)
2437
2437
  ];
2438
2438
  }
2439
- function g(_) {
2440
- if (typeof _ == "string" && _.includes("<alpha-value>")) {
2441
- let b = _;
2439
+ function g(R) {
2440
+ if (typeof R == "string" && R.includes("<alpha-value>")) {
2441
+ let b = R;
2442
2442
  return ({ opacityValue: C = 1 }) => b.replace("<alpha-value>", C);
2443
2443
  }
2444
- return _;
2444
+ return R;
2445
2445
  }
2446
- function y(_) {
2447
- return (0, r.normalize)(_.slice(1, -1));
2446
+ function y(R) {
2447
+ return (0, r.normalize)(R.slice(1, -1));
2448
2448
  }
2449
- function v(_, b = {}, { tailwindConfig: C = {} } = {}) {
2449
+ function v(R, b = {}, { tailwindConfig: C = {} } = {}) {
2450
2450
  var P;
2451
- if (((P = b.values) === null || P === void 0 ? void 0 : P[_]) !== void 0) {
2451
+ if (((P = b.values) === null || P === void 0 ? void 0 : P[R]) !== void 0) {
2452
2452
  var w;
2453
- return g((w = b.values) === null || w === void 0 ? void 0 : w[_]);
2453
+ return g((w = b.values) === null || w === void 0 ? void 0 : w[R]);
2454
2454
  }
2455
- let [$, O] = m(_);
2455
+ let [$, O] = m(R);
2456
2456
  if (O !== void 0) {
2457
2457
  var U, F, V, H;
2458
2458
  let M = (H = (U = b.values) === null || U === void 0 ? void 0 : U[$]) !== null && H !== void 0 ? H : f($) ? $.slice(1, -1) : void 0;
2459
2459
  return M === void 0 ? void 0 : (M = g(M), f(O) ? (0, i.withAlphaValue)(M, y(O)) : ((F = C.theme) === null || F === void 0 || (V = F.opacity) === null || V === void 0 ? void 0 : V[O]) === void 0 ? void 0 : (0, i.withAlphaValue)(M, C.theme.opacity[O]));
2460
2460
  }
2461
- return d(_, b, {
2461
+ return d(R, b, {
2462
2462
  validate: r.color
2463
2463
  });
2464
2464
  }
2465
- function T(_, b = {}) {
2465
+ function T(R, b = {}) {
2466
2466
  var C;
2467
- return (C = b.values) === null || C === void 0 ? void 0 : C[_];
2467
+ return (C = b.values) === null || C === void 0 ? void 0 : C[R];
2468
2468
  }
2469
- function x(_) {
2469
+ function x(R) {
2470
2470
  return (b, C) => d(b, C, {
2471
- validate: _
2471
+ validate: R
2472
2472
  });
2473
2473
  }
2474
2474
  let L = {
@@ -2489,19 +2489,19 @@ var Qr = {};
2489
2489
  shadow: x(r.shadow),
2490
2490
  size: x(a.backgroundSize)
2491
2491
  }, E = Object.keys(L);
2492
- function k(_, b) {
2493
- let C = _.indexOf(b);
2492
+ function k(R, b) {
2493
+ let C = R.indexOf(b);
2494
2494
  return C === -1 ? [
2495
2495
  void 0,
2496
- _
2496
+ R
2497
2497
  ] : [
2498
- _.slice(0, C),
2499
- _.slice(C + 1)
2498
+ R.slice(0, C),
2499
+ R.slice(C + 1)
2500
2500
  ];
2501
2501
  }
2502
- function R(_, b, C, P) {
2502
+ function _(R, b, C, P) {
2503
2503
  if (C.values && b in C.values)
2504
- for (let { type: $ } of _ != null ? _ : []) {
2504
+ for (let { type: $ } of R != null ? R : []) {
2505
2505
  let O = L[$](b, C, {
2506
2506
  tailwindConfig: P
2507
2507
  });
@@ -2525,19 +2525,19 @@ var Qr = {};
2525
2525
  null
2526
2526
  ];
2527
2527
  }
2528
- let w = B(_, b, C, P);
2528
+ let w = B(R, b, C, P);
2529
2529
  for (let $ of w)
2530
2530
  return $;
2531
2531
  return [];
2532
2532
  }
2533
- function* B(_, b, C, P) {
2533
+ function* B(R, b, C, P) {
2534
2534
  let w = (0, o.flagEnabled)(P, "generalizedModifiers"), [$, O] = m(b);
2535
2535
  if (w && C.modifiers != null && (C.modifiers === "any" || typeof C.modifiers == "object" && (O && f(O) || O in C.modifiers)) || ($ = b, O = void 0), O !== void 0 && $ === "" && ($ = "DEFAULT"), O !== void 0 && typeof C.modifiers == "object") {
2536
2536
  var F, V;
2537
2537
  let H = (V = (F = C.modifiers) === null || F === void 0 ? void 0 : F[O]) !== null && V !== void 0 ? V : null;
2538
2538
  H !== null ? O = H : f(O) && (O = y(O));
2539
2539
  }
2540
- for (let { type: H } of _ != null ? _ : []) {
2540
+ for (let { type: H } of R != null ? R : []) {
2541
2541
  let M = L[H]($, C, {
2542
2542
  tailwindConfig: P
2543
2543
  });
@@ -2654,7 +2654,7 @@ var Jr = {};
2654
2654
  V.alpha = F, yield V;
2655
2655
  }
2656
2656
  }
2657
- function R(P) {
2657
+ function _(P) {
2658
2658
  const w = ($, O) => {
2659
2659
  for (const U of k($)) {
2660
2660
  let F = 0, V = P;
@@ -2696,7 +2696,7 @@ var Jr = {};
2696
2696
  });
2697
2697
  }), w;
2698
2698
  }
2699
- function _(P) {
2699
+ function R(P) {
2700
2700
  return [
2701
2701
  ...P
2702
2702
  ].reduceRight(($, O) => m(O) ? O({
@@ -2722,13 +2722,13 @@ var Jr = {};
2722
2722
  ];
2723
2723
  var $, O;
2724
2724
  return (0, o.normalizeConfig)((0, n.defaults)({
2725
- theme: R(E(x(w.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
2726
- corePlugins: _(w.map((U) => U.corePlugins)),
2725
+ theme: _(E(x(w.map((U) => ($ = U == null ? void 0 : U.theme) !== null && $ !== void 0 ? $ : {})))),
2726
+ corePlugins: R(w.map((U) => U.corePlugins)),
2727
2727
  plugins: b(P.map((U) => (O = U == null ? void 0 : U.plugins) !== null && O !== void 0 ? O : []))
2728
2728
  }, ...w));
2729
2729
  }
2730
2730
  })(Br);
2731
- var en = {}, _a = {
2731
+ var en = {}, Ra = {
2732
2732
  content: [],
2733
2733
  presets: [],
2734
2734
  darkMode: "media",
@@ -3728,7 +3728,7 @@ var en = {}, _a = {
3728
3728
  return r;
3729
3729
  }
3730
3730
  });
3731
- const e = /* @__PURE__ */ i(_a), t = Jt;
3731
+ const e = /* @__PURE__ */ i(Ra), t = Jt;
3732
3732
  function i(n) {
3733
3733
  return n && n.__esModule ? n : {
3734
3734
  default: n
@@ -3791,7 +3791,7 @@ var en = {}, _a = {
3791
3791
  })(Nr);
3792
3792
  let ri = Nr;
3793
3793
  var Ca = (ri.__esModule ? ri : { default: ri }).default;
3794
- const Da = /* @__PURE__ */ Ra(Ca);
3794
+ const Da = /* @__PURE__ */ _a(Ca);
3795
3795
  let ni = qi;
3796
3796
  var Oe = (ni.__esModule ? ni : { default: ni }).default;
3797
3797
  const Ia = {
@@ -3928,14 +3928,14 @@ const Ia = {
3928
3928
  pattern: /e-content-(around|baseline|between|center|end|evenly|normal|start|stretch)/
3929
3929
  }
3930
3930
  ]
3931
- }, tn = Da(ka), Pa = tn.theme.fontSize, Oa = tn.theme.colors, gd = [
3931
+ }, tn = Da(ka), Pa = tn.theme.fontSize, Oa = tn.theme.colors, Td = [
3932
3932
  z.dot,
3933
3933
  z.xs,
3934
3934
  z.sm,
3935
3935
  z.md,
3936
3936
  z.lg,
3937
3937
  z.xl
3938
- ], pd = [
3938
+ ], Ed = [
3939
3939
  z.xs,
3940
3940
  z.sm,
3941
3941
  z.md,
@@ -3957,14 +3957,14 @@ const Ia = {
3957
3957
  z["7xl"],
3958
3958
  z["8xl"],
3959
3959
  z["9xl"]
3960
- ], yd = [z.sm, z.md, z.base, z.lg], vd = [
3960
+ ], Sd = [z.sm, z.md, z.base, z.lg], bd = [
3961
3961
  ge.warning,
3962
3962
  ge.error,
3963
3963
  ge.info,
3964
3964
  ge.success,
3965
3965
  ge.primary,
3966
3966
  ge.default
3967
- ], xd = [
3967
+ ], Ad = [
3968
3968
  "play",
3969
3969
  "pause",
3970
3970
  "ended",
@@ -3975,7 +3975,7 @@ const Ia = {
3975
3975
  "canplay",
3976
3976
  "canplaythrough",
3977
3977
  "statechanged"
3978
- ], Ma = we.extend({
3978
+ ], Ma = Re.extend({
3979
3979
  name: "EIcon",
3980
3980
  props: {
3981
3981
  icon: {
@@ -4023,7 +4023,7 @@ var Na = function() {
4023
4023
  null,
4024
4024
  null
4025
4025
  );
4026
- const Ua = $a.exports, Ga = we.extend({
4026
+ const Ua = $a.exports, Ga = Re.extend({
4027
4027
  name: "ESpinner",
4028
4028
  props: {
4029
4029
  dark: {
@@ -4101,7 +4101,7 @@ var Ha = function() {
4101
4101
  null,
4102
4102
  null
4103
4103
  );
4104
- const sn = Ka.exports, Wa = we.extend({
4104
+ const sn = Ka.exports, Wa = Re.extend({
4105
4105
  props: {
4106
4106
  align: {
4107
4107
  type: String,
@@ -4174,7 +4174,7 @@ var za = function() {
4174
4174
  null,
4175
4175
  null
4176
4176
  );
4177
- const qa = ja.exports, Xa = we.extend({
4177
+ const qa = ja.exports, Xa = Re.extend({
4178
4178
  props: {
4179
4179
  alignSelf: {
4180
4180
  type: String,
@@ -4949,7 +4949,7 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
4949
4949
  cn(s, e) && (e += 10);
4950
4950
  }
4951
4951
  return t;
4952
- }, Lo = (s) => s.type === "PRIV" ? Ro(s) : s.type[0] === "W" ? Co(s) : _o(s), Ro = (s) => {
4952
+ }, Lo = (s) => s.type === "PRIV" ? _o(s) : s.type[0] === "W" ? Co(s) : Ro(s), _o = (s) => {
4953
4953
  if (s.size < 2)
4954
4954
  return;
4955
4955
  const e = Be(s.data, !0), t = new Uint8Array(s.data.subarray(e.length + 1));
@@ -4958,7 +4958,7 @@ const is = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
4958
4958
  info: e,
4959
4959
  data: t.buffer
4960
4960
  };
4961
- }, _o = (s) => {
4961
+ }, Ro = (s) => {
4962
4962
  if (s.size < 2)
4963
4963
  return;
4964
4964
  if (s.type === "TXXX") {
@@ -5413,7 +5413,7 @@ function Uo(s) {
5413
5413
  const i = t[t.length - 1];
5414
5414
  return e.valid = Qe(s, 0, i.byteOffset - 8), e.remainder = Qe(s, i.byteOffset - 8), e;
5415
5415
  }
5416
- function Re(s, e) {
5416
+ function _e(s, e) {
5417
5417
  const t = new Uint8Array(s.length + e.length);
5418
5418
  return t.set(s), t.set(e, s.length), t;
5419
5419
  }
@@ -5434,9 +5434,9 @@ function As(s, e) {
5434
5434
  const L = (g & 16) !== 0;
5435
5435
  let E = 0;
5436
5436
  const k = (g & 32) !== 0;
5437
- let R = 8;
5438
- m === n && (y && (R += 8), v && (R += 4), T && (x = Y(f, R), R += 4), L && (E = Y(f, R), R += 4), k && (R += 4), e.type === "video" && (a = Go(e.codec)), X(h, ["trun"]).map((B) => {
5439
- const _ = B[0], b = Y(B, 0) & 16777215, C = (b & 1) !== 0;
5437
+ let _ = 8;
5438
+ m === n && (y && (_ += 8), v && (_ += 4), T && (x = Y(f, _), _ += 4), L && (E = Y(f, _), _ += 4), k && (_ += 4), e.type === "video" && (a = Go(e.codec)), X(h, ["trun"]).map((B) => {
5439
+ const R = B[0], b = Y(B, 0) & 16777215, C = (b & 1) !== 0;
5440
5440
  let P = 0;
5441
5441
  const w = (b & 4) !== 0, $ = (b & 256) !== 0;
5442
5442
  let O = 0;
@@ -5449,7 +5449,7 @@ function As(s, e) {
5449
5449
  C && (P = Y(B, Z), Z += 4), w && (Z += 4);
5450
5450
  let ee = P + c;
5451
5451
  for (let ae = 0; ae < Q; ae++) {
5452
- if ($ ? (O = Y(B, Z), Z += 4) : O = x, U ? (F = Y(B, Z), Z += 4) : F = E, V && (Z += 4), H && (_ === 0 ? M = Y(B, Z) : M = mn(B, Z), Z += 4), e.type === te.VIDEO) {
5452
+ if ($ ? (O = Y(B, Z), Z += 4) : O = x, U ? (F = Y(B, Z), Z += 4) : F = E, V && (Z += 4), H && (R === 0 ? M = Y(B, Z) : M = mn(B, Z), Z += 4), e.type === te.VIDEO) {
5453
5453
  let ce = 0;
5454
5454
  for (; ce < F; ) {
5455
5455
  const fe = Y(i, ee);
@@ -5762,7 +5762,7 @@ function Oi(s, e) {
5762
5762
  }
5763
5763
  return e;
5764
5764
  }
5765
- function Rs(s, e, t) {
5765
+ function _s(s, e, t) {
5766
5766
  let i = s.variableList;
5767
5767
  i || (s.variableList = i = {});
5768
5768
  let r, n;
@@ -5885,7 +5885,7 @@ function Tn(s, e, t = !0) {
5885
5885
  function Et(s, e) {
5886
5886
  return `${e}/mp4;codecs="${s}"`;
5887
5887
  }
5888
- function _s(s) {
5888
+ function Rs(s) {
5889
5889
  if (s) {
5890
5890
  const e = s.substring(0, 4);
5891
5891
  return Ht.video[e];
@@ -5997,7 +5997,7 @@ class Me {
5997
5997
  case "DEFINE": {
5998
5998
  {
5999
5999
  const h = new ne(u);
6000
- xe(r, h, ["NAME", "VALUE", "QUERYPARAM"]), Rs(r, h, t);
6000
+ xe(r, h, ["NAME", "VALUE", "QUERYPARAM"]), _s(r, h, t);
6001
6001
  }
6002
6002
  break;
6003
6003
  }
@@ -6064,11 +6064,11 @@ class Me {
6064
6064
  let c = null, u = 0, h = 0, d = 0, f = 0, m = null, g = new ai(r, t), y, v, T, x = -1, L = !1, E = null;
6065
6065
  for (ws.lastIndex = 0, o.m3u8 = e, o.hasVariableRefs = Ls(e); (y = ws.exec(e)) !== null; ) {
6066
6066
  L && (L = !1, g = new ai(r, t), g.start = d, g.sn = u, g.cc = f, g.level = i, c && (g.initSegment = c, g.rawProgramDateTime = c.rawProgramDateTime, c.rawProgramDateTime = null, E && (g.setByteRange(E), E = null)));
6067
- const _ = y[1];
6068
- if (_) {
6069
- g.duration = parseFloat(_);
6067
+ const R = y[1];
6068
+ if (R) {
6069
+ g.duration = parseFloat(R);
6070
6070
  const b = (" " + y[2]).slice(1);
6071
- g.title = b || null, g.tagList.push(b ? ["INF", _, b] : ["INF", _]);
6071
+ g.title = b || null, g.tagList.push(b ? ["INF", R, b] : ["INF", R]);
6072
6072
  } else if (y[3]) {
6073
6073
  if (W(g.duration)) {
6074
6074
  g.start = d, T && Ns(g, T, o), g.sn = u, g.level = i, g.cc = f, l.push(g);
@@ -6143,7 +6143,7 @@ class Me {
6143
6143
  case "DEFINE": {
6144
6144
  {
6145
6145
  const w = new ne(C);
6146
- xe(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? jo(o, w, a) : Rs(o, w, t);
6146
+ xe(o, w, ["NAME", "VALUE", "IMPORT", "QUERYPARAM"]), "IMPORT" in w ? jo(o, w, a) : _s(o, w, t);
6147
6147
  }
6148
6148
  break;
6149
6149
  }
@@ -6217,11 +6217,11 @@ class Me {
6217
6217
  }
6218
6218
  }
6219
6219
  m && !m.relurl ? (l.pop(), d -= m.duration, o.partList && (o.fragmentHint = m)) : o.partList && (Fs(g, m), g.cc = f, o.fragmentHint = g, T && Ns(g, T, o));
6220
- const k = l.length, R = l[0], B = l[k - 1];
6220
+ const k = l.length, _ = l[0], B = l[k - 1];
6221
6221
  if (d += o.skippedSegments * o.targetduration, d > 0 && k && B) {
6222
6222
  o.averagetargetduration = d / k;
6223
- const _ = B.sn;
6224
- o.endSN = _ !== "initSegment" ? _ : 0, o.live || (B.endList = !0), R && (o.startCC = R.cc);
6223
+ const R = B.sn;
6224
+ o.endSN = R !== "initSegment" ? R : 0, o.live || (B.endList = !0), _ && (o.startCC = _.cc);
6225
6225
  } else
6226
6226
  o.endSN = 0, o.startCC = 0;
6227
6227
  return o.fragmentHint && (d += o.fragmentHint.duration), o.totalduration = d, o.endCC = f, x > 0 && il(l, x), o;
@@ -6758,7 +6758,7 @@ function Ot(s) {
6758
6758
  }
6759
6759
  return e;
6760
6760
  }
6761
- var Ie = {
6761
+ var we = {
6762
6762
  audioId3: "org.id3",
6763
6763
  dateRange: "com.apple.quicktime.HLS",
6764
6764
  emsg: "https://aomedia.org/emsg/ID3"
@@ -6858,7 +6858,7 @@ class ll {
6858
6858
  if (a)
6859
6859
  for (let o = 0; o < n.length; o++) {
6860
6860
  const l = n[o].type;
6861
- if (l === Ie.emsg && !i || !r)
6861
+ if (l === we.emsg && !i || !r)
6862
6862
  continue;
6863
6863
  const c = hn(n[o].data);
6864
6864
  if (c) {
@@ -6904,7 +6904,7 @@ class ll {
6904
6904
  } = a;
6905
6905
  if (n && (o || l)) {
6906
6906
  let c;
6907
- r === "audio" ? c = (u) => u.type === Ie.audioId3 && l : r === "video" ? c = (u) => u.type === Ie.emsg && o : c = (u) => u.type === Ie.audioId3 && l || u.type === Ie.emsg && o, Fi(n, t, i, c);
6907
+ r === "audio" ? c = (u) => u.type === we.audioId3 && l : r === "video" ? c = (u) => u.type === we.emsg && o : c = (u) => u.type === we.audioId3 && l || u.type === we.emsg && o, Fi(n, t, i, c);
6908
6908
  }
6909
6909
  }
6910
6910
  onLevelUpdated(e, {
@@ -6941,9 +6941,9 @@ class ll {
6941
6941
  else if (d.endOnNext && !y) {
6942
6942
  const L = a.reduce((E, k) => {
6943
6943
  if (k !== d.id) {
6944
- const R = n[k];
6945
- if (R.class === d.class && R.startDate > d.startDate && (!E || d.startDate < E.startDate))
6946
- return R;
6944
+ const _ = n[k];
6945
+ if (_.class === d.class && _.startDate > d.startDate && (!E || d.startDate < E.startDate))
6946
+ return _;
6947
6947
  }
6948
6948
  return E;
6949
6949
  }, null);
@@ -6958,12 +6958,12 @@ class ll {
6958
6958
  if (k)
6959
6959
  y && !m.durationKnown && (k.endTime = v);
6960
6960
  else if (c) {
6961
- let R = d.attr[E];
6962
- fo(E) && (R = ol(R));
6961
+ let _ = d.attr[E];
6962
+ fo(E) && (_ = ol(_));
6963
6963
  const B = $s(c, f, v, {
6964
6964
  key: E,
6965
- data: R
6966
- }, Ie.dateRange);
6965
+ data: _
6966
+ }, we.dateRange);
6967
6967
  B && (B.id = h, this.id3Track.addCue(B), g[E] = B);
6968
6968
  }
6969
6969
  }
@@ -7354,7 +7354,7 @@ function Ln(s, e, t) {
7354
7354
  }
7355
7355
  return null;
7356
7356
  }
7357
- function Rn(s) {
7357
+ function _n(s) {
7358
7358
  s.forEach((e, t) => {
7359
7359
  const {
7360
7360
  details: i
@@ -7397,7 +7397,7 @@ function Yt(s, e, t, i) {
7397
7397
  function xl(s) {
7398
7398
  return s === 0 && navigator.onLine === !1 || !!s && (s < 400 || s > 499);
7399
7399
  }
7400
- const _n = {
7400
+ const Rn = {
7401
7401
  /**
7402
7402
  * Searches for an item in an array which matches a certain condition.
7403
7403
  * This requires the condition to only match one item in the array,
@@ -7455,7 +7455,7 @@ function jt(s, e, t = 0, i = 0) {
7455
7455
  t === 0 && e[0].start === 0 && (r = e[0]);
7456
7456
  if (r && (!s || s.level === r.level) && $i(t, i, r) === 0)
7457
7457
  return r;
7458
- const n = _n.search(e, $i.bind(null, t, i));
7458
+ const n = Rn.search(e, $i.bind(null, t, i));
7459
7459
  return n && (n !== s || !r) ? n : r;
7460
7460
  }
7461
7461
  function $i(s = 0, e = 0, t) {
@@ -7469,7 +7469,7 @@ function El(s, e, t) {
7469
7469
  return (t.endProgramDateTime || 0) - i > s;
7470
7470
  }
7471
7471
  function Sl(s, e) {
7472
- return _n.search(s, (t) => t.cc < e ? 1 : t.cc > e ? -1 : 0);
7472
+ return Rn.search(s, (t) => t.cc < e ? 1 : t.cc > e ? -1 : 0);
7473
7473
  }
7474
7474
  var me = {
7475
7475
  DoNothing: 0,
@@ -7478,7 +7478,7 @@ var me = {
7478
7478
  RemoveAlternatePermanently: 3,
7479
7479
  InsertDiscontinuity: 4,
7480
7480
  RetryRequest: 5
7481
- }, Ce = {
7481
+ }, De = {
7482
7482
  None: 0,
7483
7483
  MoveAllAlternatesMatchingHost: 1,
7484
7484
  MoveAllAlternatesMatchingHDCP: 2,
@@ -7529,7 +7529,7 @@ class bl {
7529
7529
  if ((i = t.frag) != null && i.gap) {
7530
7530
  t.errorAction = {
7531
7531
  action: me.DoNothing,
7532
- flags: Ce.None
7532
+ flags: De.None
7533
7533
  };
7534
7534
  return;
7535
7535
  }
@@ -7557,7 +7557,7 @@ class bl {
7557
7557
  if (a) {
7558
7558
  const c = n.levels[n.loadLevel];
7559
7559
  if (c && (a.type === J.AUDIO_TRACK && c.hasAudioGroup(a.groupId) || a.type === J.SUBTITLE_TRACK && c.hasSubtitleGroup(a.groupId))) {
7560
- t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags = Ce.MoveAllAlternatesMatchingHost;
7560
+ t.errorAction = this.getPlaylistRetryOrSwitchAction(t, n.loadLevel), t.errorAction.action = me.SendAlternateToPenaltyBox, t.errorAction.flags = De.MoveAllAlternatesMatchingHost;
7561
7561
  return;
7562
7562
  }
7563
7563
  }
@@ -7567,7 +7567,7 @@ class bl {
7567
7567
  const c = n.levels[n.loadLevel], u = c == null ? void 0 : c.attrs["HDCP-LEVEL"];
7568
7568
  u ? t.errorAction = {
7569
7569
  action: me.SendAlternateToPenaltyBox,
7570
- flags: Ce.MoveAllAlternatesMatchingHDCP,
7570
+ flags: De.MoveAllAlternatesMatchingHDCP,
7571
7571
  hdcpLevel: u
7572
7572
  } : this.keySystemError(t);
7573
7573
  }
@@ -7586,7 +7586,7 @@ class bl {
7586
7586
  case D.BUFFER_NUDGE_ON_STALL:
7587
7587
  t.errorAction = {
7588
7588
  action: me.DoNothing,
7589
- flags: Ce.None
7589
+ flags: De.None
7590
7590
  };
7591
7591
  return;
7592
7592
  }
@@ -7601,7 +7601,7 @@ class bl {
7601
7601
  if (Yt(r, n, zt(e), e.response))
7602
7602
  return {
7603
7603
  action: me.RetryRequest,
7604
- flags: Ce.None,
7604
+ flags: De.None,
7605
7605
  retryConfig: r,
7606
7606
  retryCount: n
7607
7607
  };
@@ -7616,7 +7616,7 @@ class bl {
7616
7616
  if (r && (e.details !== D.FRAG_GAP && r.fragmentError++, Yt(o, l, zt(e), e.response)))
7617
7617
  return {
7618
7618
  action: me.RetryRequest,
7619
- flags: Ce.None,
7619
+ flags: De.None,
7620
7620
  retryConfig: o,
7621
7621
  retryCount: l
7622
7622
  };
@@ -7643,43 +7643,43 @@ class bl {
7643
7643
  audioCodec: k
7644
7644
  }) => r.audioCodec !== k), x = e.sourceBufferName === "video" && (c === D.BUFFER_ADD_CODEC_ERROR || c === D.BUFFER_APPEND_ERROR) && h.some(({
7645
7645
  codecSet: k,
7646
- audioCodec: R
7647
- }) => r.codecSet !== k && r.audioCodec === R), {
7646
+ audioCodec: _
7647
+ }) => r.codecSet !== k && r.audioCodec === _), {
7648
7648
  type: L,
7649
7649
  groupId: E
7650
7650
  } = (a = e.context) != null ? a : {};
7651
7651
  for (let k = h.length; k--; ) {
7652
- const R = (k + d) % h.length;
7653
- if (R !== d && R >= f && R <= m && h[R].loadError === 0) {
7652
+ const _ = (k + d) % h.length;
7653
+ if (_ !== d && _ >= f && _ <= m && h[_].loadError === 0) {
7654
7654
  var o, l;
7655
- const B = h[R];
7655
+ const B = h[_];
7656
7656
  if (c === D.FRAG_GAP && e.frag) {
7657
- const _ = h[R].details;
7658
- if (_) {
7659
- const b = jt(e.frag, _.fragments, e.frag.start);
7657
+ const R = h[_].details;
7658
+ if (R) {
7659
+ const b = jt(e.frag, R.fragments, e.frag.start);
7660
7660
  if (b != null && b.gap)
7661
7661
  continue;
7662
7662
  }
7663
7663
  } else {
7664
7664
  if (L === J.AUDIO_TRACK && B.hasAudioGroup(E) || L === J.SUBTITLE_TRACK && B.hasSubtitleGroup(E))
7665
7665
  continue;
7666
- if (g === j.AUDIO && (o = r.audioGroups) != null && o.some((_) => B.hasAudioGroup(_)) || g === j.SUBTITLE && (l = r.subtitleGroups) != null && l.some((_) => B.hasSubtitleGroup(_)) || v && r.audioCodec === B.audioCodec || !v && r.audioCodec !== B.audioCodec || x && r.codecSet === B.codecSet)
7666
+ if (g === j.AUDIO && (o = r.audioGroups) != null && o.some((R) => B.hasAudioGroup(R)) || g === j.SUBTITLE && (l = r.subtitleGroups) != null && l.some((R) => B.hasSubtitleGroup(R)) || v && r.audioCodec === B.audioCodec || !v && r.audioCodec !== B.audioCodec || x && r.codecSet === B.codecSet)
7667
7667
  continue;
7668
7668
  }
7669
- u = R;
7669
+ u = _;
7670
7670
  break;
7671
7671
  }
7672
7672
  }
7673
7673
  if (u > -1 && i.loadLevel !== u)
7674
7674
  return e.levelRetry = !0, this.playlistError = 0, {
7675
7675
  action: me.SendAlternateToPenaltyBox,
7676
- flags: Ce.None,
7676
+ flags: De.None,
7677
7677
  nextAutoLevel: u
7678
7678
  };
7679
7679
  }
7680
7680
  return {
7681
7681
  action: me.SendAlternateToPenaltyBox,
7682
- flags: Ce.MoveAllAlternatesMatchingHost
7682
+ flags: De.MoveAllAlternatesMatchingHost
7683
7683
  };
7684
7684
  }
7685
7685
  onErrorOut(e, t) {
@@ -7706,10 +7706,10 @@ class bl {
7706
7706
  nextAutoLevel: a
7707
7707
  } = i;
7708
7708
  switch (r) {
7709
- case Ce.None:
7709
+ case De.None:
7710
7710
  this.switchLevel(e, a);
7711
7711
  break;
7712
- case Ce.MoveAllAlternatesMatchingHDCP:
7712
+ case De.MoveAllAlternatesMatchingHDCP:
7713
7713
  n && (t.maxHdcpLevel = Ni[Ni.indexOf(n) - 1], i.resolved = !0), this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);
7714
7714
  break;
7715
7715
  }
@@ -7785,20 +7785,20 @@ class ns {
7785
7785
  if (r.canBlockReload && r.endSN && r.advanced) {
7786
7786
  const y = this.hls.config.lowLatencyMode, v = r.lastPartSn, T = r.endSN, x = r.lastPartIndex, L = x !== -1, E = v === T, k = y ? 0 : x;
7787
7787
  L ? (c = E ? T + 1 : v, u = E ? k : x + 1) : c = T + 1;
7788
- const R = r.age, B = R + r.ageHeader;
7789
- let _ = Math.min(B - r.partTarget, r.targetduration * 1.5);
7790
- if (_ > 0) {
7791
- if (i && _ > i.tuneInGoal)
7792
- this.warn(`CDN Tune-in goal increased from: ${i.tuneInGoal} to: ${_} with playlist age: ${r.age}`), _ = 0;
7788
+ const _ = r.age, B = _ + r.ageHeader;
7789
+ let R = Math.min(B - r.partTarget, r.targetduration * 1.5);
7790
+ if (R > 0) {
7791
+ if (i && R > i.tuneInGoal)
7792
+ this.warn(`CDN Tune-in goal increased from: ${i.tuneInGoal} to: ${R} with playlist age: ${r.age}`), R = 0;
7793
7793
  else {
7794
- const b = Math.floor(_ / r.targetduration);
7794
+ const b = Math.floor(R / r.targetduration);
7795
7795
  if (c += b, u !== void 0) {
7796
- const C = Math.round(_ % r.targetduration / r.partTarget);
7796
+ const C = Math.round(R % r.targetduration / r.partTarget);
7797
7797
  u += C;
7798
7798
  }
7799
- this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${R.toFixed(2)}s goal: ${_} skip sn ${b} to part ${u}`);
7799
+ this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${_.toFixed(2)}s goal: ${R} skip sn ${b} to part ${u}`);
7800
7800
  }
7801
- r.tuneInGoal = _;
7801
+ r.tuneInGoal = R;
7802
7802
  }
7803
7803
  if (l = this.getDeliveryDirectives(r, t.deliveryDirectives, c, u), y || !E) {
7804
7804
  this.loadPlaylist(l);
@@ -7924,7 +7924,7 @@ function Ll(s, e, t, i, r, n) {
7924
7924
  }
7925
7925
  return s.videoCodec !== void 0 && (s.width > 1920 && s.height > 1088 || s.height > 1920 && s.width > 1088 || s.frameRate > Math.max(i, 30) || s.videoRange !== "SDR" && s.videoRange !== t || s.bitrate > Math.max(r, 8e6)) || !!u && W(c) && Object.keys(u).some((h) => parseInt(h) > c);
7926
7926
  }
7927
- function Rl(s, e, t) {
7927
+ function _l(s, e, t) {
7928
7928
  const i = s.videoCodec, r = s.audioCodec;
7929
7929
  if (!i || !r || !t)
7930
7930
  return Promise.resolve(Cn);
@@ -7959,7 +7959,7 @@ function Rl(s, e, t) {
7959
7959
  }
7960
7960
  }));
7961
7961
  }), Promise.all(o.map((l) => {
7962
- const c = _l(l);
7962
+ const c = Rl(l);
7963
7963
  return Ws[c] || (Ws[c] = t.decodingInfo(l));
7964
7964
  })).then((l) => ({
7965
7965
  supported: !l.some((c) => !c.supported),
@@ -7972,7 +7972,7 @@ function Rl(s, e, t) {
7972
7972
  error: l
7973
7973
  }));
7974
7974
  }
7975
- function _l(s) {
7975
+ function Rl(s) {
7976
7976
  const {
7977
7977
  audio: e,
7978
7978
  video: t
@@ -8011,28 +8011,28 @@ function Il(s, e, t, i, r) {
8011
8011
  for (let E = n.length; E--; ) {
8012
8012
  const k = s[n[E]];
8013
8013
  c = k.channels[2] > 0, h = Math.min(h, k.minHeight), d = Math.min(d, k.minFramerate), f = Math.min(f, k.minBitrate);
8014
- const R = v.filter((B) => k.videoRanges[B] > 0);
8015
- R.length > 0 && (u = !0, g = R);
8014
+ const _ = v.filter((B) => k.videoRanges[B] > 0);
8015
+ _.length > 0 && (u = !0, g = _);
8016
8016
  }
8017
8017
  h = W(h) ? h : 0, d = W(d) ? d : 0;
8018
8018
  const T = Math.max(1080, h), x = Math.max(30, d);
8019
8019
  return f = W(f) ? f : t, t = Math.max(f, t), u || (e = void 0, g = []), {
8020
8020
  codecSet: n.reduce((E, k) => {
8021
- const R = s[k];
8021
+ const _ = s[k];
8022
8022
  if (k === E)
8023
8023
  return E;
8024
- if (R.minBitrate > t)
8025
- return Ue(k, `min bitrate of ${R.minBitrate} > current estimate of ${t}`), E;
8026
- if (!R.hasDefaultAudio)
8024
+ if (_.minBitrate > t)
8025
+ return Ue(k, `min bitrate of ${_.minBitrate} > current estimate of ${t}`), E;
8026
+ if (!_.hasDefaultAudio)
8027
8027
  return Ue(k, "no renditions with default or auto-select sound found"), E;
8028
8028
  if (o && k.indexOf(o.substring(0, 4)) % 5 !== 0)
8029
8029
  return Ue(k, `audio codec preference "${o}" not found`), E;
8030
8030
  if (a && !l) {
8031
- if (!R.channels[a])
8032
- return Ue(k, `no renditions with ${a} channel sound found (channels options: ${Object.keys(R.channels)})`), E;
8033
- } else if ((!o || l) && c && R.channels[2] === 0)
8031
+ if (!_.channels[a])
8032
+ return Ue(k, `no renditions with ${a} channel sound found (channels options: ${Object.keys(_.channels)})`), E;
8033
+ } else if ((!o || l) && c && _.channels[2] === 0)
8034
8034
  return Ue(k, "no renditions with stereo sound found"), E;
8035
- return R.minHeight > T ? (Ue(k, `min resolution of ${R.minHeight} > maximum of ${T}`), E) : R.minFramerate > x ? (Ue(k, `min framerate of ${R.minFramerate} > maximum of ${x}`), E) : g.some((B) => R.videoRanges[B] > 0) ? R.maxScore < m ? (Ue(k, `max score of ${R.maxScore} < selected max of ${m}`), E) : E && (Vt(k) >= Vt(E) || R.fragmentError > s[E].fragmentError) ? E : (m = R.maxScore, k) : (Ue(k, `no variants with VIDEO-RANGE of ${JSON.stringify(g)} found`), E);
8035
+ return _.minHeight > T ? (Ue(k, `min resolution of ${_.minHeight} > maximum of ${T}`), E) : _.minFramerate > x ? (Ue(k, `min framerate of ${_.minFramerate} > maximum of ${x}`), E) : g.some((B) => _.videoRanges[B] > 0) ? _.maxScore < m ? (Ue(k, `max score of ${_.maxScore} < selected max of ${m}`), E) : E && (Vt(k) >= Vt(E) || _.fragmentError > s[E].fragmentError) ? E : (m = _.maxScore, k) : (Ue(k, `no variants with VIDEO-RANGE of ${JSON.stringify(g)} found`), E);
8036
8036
  }, void 0),
8037
8037
  videoRanges: g,
8038
8038
  preferHDR: y,
@@ -8183,14 +8183,14 @@ class Fl {
8183
8183
  const g = d.len / m, y = l.loading.first ? l.loading.first - l.loading.start : -1, v = l.loaded && y > -1, T = this.getBwEstimate(), x = r.levels, L = x[t.level], E = l.total || Math.max(l.loaded, Math.round(c * L.averageBitrate / 8));
8184
8184
  let k = v ? u - y : u;
8185
8185
  k < 1 && v && (k = Math.min(u, l.loaded * 8 / T));
8186
- const R = v ? l.loaded * 1e3 / k : 0, B = R ? (E - l.loaded) / R : E * 8 / T + f / 1e3;
8186
+ const _ = v ? l.loaded * 1e3 / k : 0, B = _ ? (E - l.loaded) / _ : E * 8 / T + f / 1e3;
8187
8187
  if (B <= g)
8188
8188
  return;
8189
- const _ = R ? R * 8 : T;
8189
+ const R = _ ? _ * 8 : T;
8190
8190
  let b = Number.POSITIVE_INFINITY, C;
8191
8191
  for (C = t.level - 1; C > h; C--) {
8192
8192
  const w = x[C].maxBitrate;
8193
- if (b = this.getTimeToLoadFrag(f / 1e3, _, c * w, !x[C].details), b < g)
8193
+ if (b = this.getTimeToLoadFrag(f / 1e3, R, c * w, !x[C].details), b < g)
8194
8194
  break;
8195
8195
  }
8196
8196
  if (b >= B || b > c * 10)
@@ -8410,22 +8410,22 @@ class Fl {
8410
8410
  if (m.length === 1)
8411
8411
  return 0;
8412
8412
  const T = m[h], x = !!(T != null && (l = T.details) != null && l.live), L = y === -1 || u === -1;
8413
- let E, k = "SDR", R = (T == null ? void 0 : T.frameRate) || 0;
8413
+ let E, k = "SDR", _ = (T == null ? void 0 : T.frameRate) || 0;
8414
8414
  const {
8415
8415
  audioPreference: B,
8416
- videoPreference: _
8416
+ videoPreference: R
8417
8417
  } = v, b = this.audioTracksByGroup || (this.audioTracksByGroup = wl(g));
8418
8418
  if (L) {
8419
8419
  if (this.firstSelection !== -1)
8420
8420
  return this.firstSelection;
8421
- const O = this.codecTiers || (this.codecTiers = kl(m, b, t, i)), U = Il(O, k, e, B, _), {
8421
+ const O = this.codecTiers || (this.codecTiers = kl(m, b, t, i)), U = Il(O, k, e, B, R), {
8422
8422
  codecSet: F,
8423
8423
  videoRanges: V,
8424
8424
  minFramerate: H,
8425
8425
  minBitrate: M,
8426
8426
  preferHDR: Q
8427
8427
  } = U;
8428
- E = F, k = Q ? V[V.length - 1] : V[0], R = H, e = Math.max(e, M), S.log(`[abr] picked start tier ${JSON.stringify(U)}`);
8428
+ E = F, k = Q ? V[V.length - 1] : V[0], _ = H, e = Math.max(e, M), S.log(`[abr] picked start tier ${JSON.stringify(U)}`);
8429
8429
  } else
8430
8430
  E = T == null ? void 0 : T.codecSet, k = T == null ? void 0 : T.videoRange;
8431
8431
  const C = f ? f.duration : d ? d.duration : 0, P = this.bwEstimator.getEstimateTTFB() / 1e3, w = [];
@@ -8436,7 +8436,7 @@ class Fl {
8436
8436
  continue;
8437
8437
  if (v.useMediaCapabilities && !U.supportedResult && !U.supportedPromise) {
8438
8438
  const ae = navigator.mediaCapabilities;
8439
- typeof (ae == null ? void 0 : ae.decodingInfo) == "function" && Ll(U, b, k, R, e, B) ? (U.supportedPromise = Rl(U, b, ae), U.supportedPromise.then((ce) => {
8439
+ typeof (ae == null ? void 0 : ae.decodingInfo) == "function" && Ll(U, b, k, _, e, B) ? (U.supportedPromise = _l(U, b, ae), U.supportedPromise.then((ce) => {
8440
8440
  if (!this.hls)
8441
8441
  return;
8442
8442
  U.supportedResult = ce;
@@ -8444,7 +8444,7 @@ class Fl {
8444
8444
  ce.error ? S.warn(`[abr] MediaCapabilities decodingInfo error: "${ce.error}" for level ${be} ${JSON.stringify(ce)}`) : ce.supported || (S.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${be} ${JSON.stringify(ce)}`), be > -1 && fe.length > 1 && (S.log(`[abr] Removing unsupported level ${be}`), this.hls.removeLevel(be)));
8445
8445
  })) : U.supportedResult = Cn;
8446
8446
  }
8447
- if (E && U.codecSet !== E || k && U.videoRange !== k || F && R > U.frameRate || !F && R > 0 && R < U.frameRate || U.supportedResult && !(($ = U.supportedResult.decodingInfoResults) != null && $[0].smooth)) {
8447
+ if (E && U.codecSet !== E || k && U.videoRange !== k || F && _ > U.frameRate || !F && _ > 0 && _ < U.frameRate || U.supportedResult && !(($ = U.supportedResult.decodingInfoResults) != null && $[0].smooth)) {
8448
8448
  w.push(O);
8449
8449
  continue;
8450
8450
  }
@@ -8874,14 +8874,14 @@ class ie {
8874
8874
  }
8875
8875
  class as {
8876
8876
  constructor(e, t, i, r = 0, n = -1, a = !1) {
8877
- this.level = void 0, this.sn = void 0, this.part = void 0, this.id = void 0, this.size = void 0, this.partial = void 0, this.transmuxing = Rt(), this.buffering = {
8878
- audio: Rt(),
8879
- video: Rt(),
8880
- audiovideo: Rt()
8877
+ this.level = void 0, this.sn = void 0, this.part = void 0, this.id = void 0, this.size = void 0, this.partial = void 0, this.transmuxing = _t(), this.buffering = {
8878
+ audio: _t(),
8879
+ video: _t(),
8880
+ audiovideo: _t()
8881
8881
  }, this.level = e, this.sn = t, this.id = i, this.size = r, this.part = n, this.partial = a;
8882
8882
  }
8883
8883
  }
8884
- function Rt() {
8884
+ function _t() {
8885
8885
  return {
8886
8886
  start: 0,
8887
8887
  executeStart: 0,
@@ -9250,12 +9250,12 @@ class Yl {
9250
9250
  const r = this.keySize + 6, n = this.invKeySchedule, a = this.invSBox, o = this.invSubMix, l = o[0], c = o[1], u = o[2], h = o[3], d = this.uint8ArrayToUint32Array_(i);
9251
9251
  let f = d[0], m = d[1], g = d[2], y = d[3];
9252
9252
  const v = new Int32Array(e), T = new Int32Array(v.length);
9253
- let x, L, E, k, R, B, _, b, C, P, w, $, O, U;
9253
+ let x, L, E, k, _, B, R, b, C, P, w, $, O, U;
9254
9254
  const F = this.networkToHostOrderSwap;
9255
9255
  for (; t < v.length; ) {
9256
- for (C = F(v[t]), P = F(v[t + 1]), w = F(v[t + 2]), $ = F(v[t + 3]), R = C ^ n[0], B = $ ^ n[1], _ = w ^ n[2], b = P ^ n[3], O = 4, U = 1; U < r; U++)
9257
- x = l[R >>> 24] ^ c[B >> 16 & 255] ^ u[_ >> 8 & 255] ^ h[b & 255] ^ n[O], L = l[B >>> 24] ^ c[_ >> 16 & 255] ^ u[b >> 8 & 255] ^ h[R & 255] ^ n[O + 1], E = l[_ >>> 24] ^ c[b >> 16 & 255] ^ u[R >> 8 & 255] ^ h[B & 255] ^ n[O + 2], k = l[b >>> 24] ^ c[R >> 16 & 255] ^ u[B >> 8 & 255] ^ h[_ & 255] ^ n[O + 3], R = x, B = L, _ = E, b = k, O = O + 4;
9258
- x = a[R >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[_ >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[_ >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[R & 255] ^ n[O + 1], E = a[_ >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[_ & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = C, m = P, g = w, y = $, t = t + 4;
9256
+ for (C = F(v[t]), P = F(v[t + 1]), w = F(v[t + 2]), $ = F(v[t + 3]), _ = C ^ n[0], B = $ ^ n[1], R = w ^ n[2], b = P ^ n[3], O = 4, U = 1; U < r; U++)
9257
+ x = l[_ >>> 24] ^ c[B >> 16 & 255] ^ u[R >> 8 & 255] ^ h[b & 255] ^ n[O], L = l[B >>> 24] ^ c[R >> 16 & 255] ^ u[b >> 8 & 255] ^ h[_ & 255] ^ n[O + 1], E = l[R >>> 24] ^ c[b >> 16 & 255] ^ u[_ >> 8 & 255] ^ h[B & 255] ^ n[O + 2], k = l[b >>> 24] ^ c[_ >> 16 & 255] ^ u[B >> 8 & 255] ^ h[R & 255] ^ n[O + 3], _ = x, B = L, R = E, b = k, O = O + 4;
9258
+ x = a[_ >>> 24] << 24 ^ a[B >> 16 & 255] << 16 ^ a[R >> 8 & 255] << 8 ^ a[b & 255] ^ n[O], L = a[B >>> 24] << 24 ^ a[R >> 16 & 255] << 16 ^ a[b >> 8 & 255] << 8 ^ a[_ & 255] ^ n[O + 1], E = a[R >>> 24] << 24 ^ a[b >> 16 & 255] << 16 ^ a[_ >> 8 & 255] << 8 ^ a[B & 255] ^ n[O + 2], k = a[b >>> 24] << 24 ^ a[_ >> 16 & 255] << 16 ^ a[B >> 8 & 255] << 8 ^ a[R & 255] ^ n[O + 3], T[t] = F(x ^ f), T[t + 1] = F(k ^ m), T[t + 2] = F(E ^ g), T[t + 3] = F(L ^ y), f = C, m = P, g = w, y = $, t = t + 4;
9259
9259
  }
9260
9260
  return T.buffer;
9261
9261
  }
@@ -9307,7 +9307,7 @@ class os {
9307
9307
  currentResult: n,
9308
9308
  remainderData: a
9309
9309
  } = this;
9310
- this.logOnce("JS AES decrypt"), a && (e = Re(a, e), this.remainderData = null);
9310
+ this.logOnce("JS AES decrypt"), a && (e = _e(a, e), this.remainderData = null);
9311
9311
  const o = this.getValidChunk(e);
9312
9312
  if (!o.length)
9313
9313
  return null;
@@ -9698,7 +9698,7 @@ class ls extends Ml {
9698
9698
  data2: l
9699
9699
  } = e;
9700
9700
  let c = o;
9701
- if (o && l && (c = Re(o, l)), !((a = c) != null && a.length))
9701
+ if (o && l && (c = _e(o, l)), !((a = c) != null && a.length))
9702
9702
  return;
9703
9703
  const u = {
9704
9704
  type: e.type,
@@ -10134,14 +10134,14 @@ class cs {
10134
10134
  }
10135
10135
  // feed incoming data to the front of the parsing pipeline
10136
10136
  demux(e, t) {
10137
- this.cachedData && (e = Re(this.cachedData, e), this.cachedData = null);
10137
+ this.cachedData && (e = _e(this.cachedData, e), this.cachedData = null);
10138
10138
  let i = xt(e, 0), r = i ? i.length : 0, n;
10139
10139
  const a = this._audioTrack, o = this._id3Track, l = i ? ss(i) : void 0, c = e.length;
10140
10140
  for ((this.basePTS === null || this.frameIndex === 0 && W(l)) && (this.basePTS = ec(l, t, this.initPTS), this.lastPTS = this.basePTS), this.lastPTS === null && (this.lastPTS = this.basePTS), i && i.length > 0 && o.samples.push({
10141
10141
  pts: this.lastPTS,
10142
10142
  dts: this.lastPTS,
10143
10143
  data: i,
10144
- type: Ie.audioId3,
10144
+ type: we.audioId3,
10145
10145
  duration: Number.POSITIVE_INFINITY
10146
10146
  }); r < c; ) {
10147
10147
  if (this.canParse(e, r)) {
@@ -10152,12 +10152,12 @@ class cs {
10152
10152
  pts: this.lastPTS,
10153
10153
  dts: this.lastPTS,
10154
10154
  data: i,
10155
- type: Ie.audioId3,
10155
+ type: we.audioId3,
10156
10156
  duration: Number.POSITIVE_INFINITY
10157
10157
  }), r += i.length, n = r) : r++;
10158
10158
  if (r === c && n !== c) {
10159
10159
  const u = Qe(e, n);
10160
- this.cachedData ? this.cachedData = Re(this.cachedData, u) : this.cachedData = u;
10160
+ this.cachedData ? this.cachedData = _e(this.cachedData, u) : this.cachedData = u;
10161
10161
  }
10162
10162
  }
10163
10163
  return {
@@ -10294,7 +10294,7 @@ function Fn(s, e, t, i, r) {
10294
10294
  missing: -1
10295
10295
  };
10296
10296
  }
10297
- let _t = null;
10297
+ let Rt = null;
10298
10298
  const ac = [32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160], oc = [44100, 48e3, 32e3, 22050, 24e3, 16e3, 11025, 12e3, 8e3], lc = [
10299
10299
  // MPEG 2.5
10300
10300
  [
@@ -10371,11 +10371,11 @@ function Nn(s, e) {
10371
10371
  const t = s[e + 1] >> 3 & 3, i = s[e + 1] >> 1 & 3, r = s[e + 2] >> 4 & 15, n = s[e + 2] >> 2 & 3;
10372
10372
  if (t !== 1 && r !== 0 && r !== 15 && n !== 3) {
10373
10373
  const a = s[e + 2] >> 1 & 1, o = s[e + 3] >> 6, l = t === 3 ? 3 - i : i === 3 ? 3 : 4, c = ac[l * 14 + r - 1] * 1e3, h = oc[(t === 3 ? 0 : t === 2 ? 1 : 2) * 3 + n], d = o === 3 ? 1 : 2, f = lc[t][i], m = cc[i], g = f * 8 * m, y = Math.floor(f * c / h + a) * m;
10374
- if (_t === null) {
10374
+ if (Rt === null) {
10375
10375
  const x = (navigator.userAgent || "").match(/Chrome\/(\d+)/i);
10376
- _t = x ? parseInt(x[1]) : 0;
10376
+ Rt = x ? parseInt(x[1]) : 0;
10377
10377
  }
10378
- return !!_t && _t <= 87 && i === 2 && c >= 224e3 && o === 0 && (s[e + 3] = s[e + 3] | 128), {
10378
+ return !!Rt && Rt <= 87 && i === 2 && c >= 224e3 && o === 0 && (s[e + 3] = s[e + 3] | 128), {
10379
10379
  sampleRate: h,
10380
10380
  channelCount: d,
10381
10381
  frameLength: y,
@@ -10485,7 +10485,7 @@ class fc {
10485
10485
  let i = e;
10486
10486
  const r = this.videoTrack, n = this.txtTrack;
10487
10487
  if (this.config.progressive) {
10488
- this.remainderData && (i = Re(this.remainderData, e));
10488
+ this.remainderData && (i = _e(this.remainderData, e));
10489
10489
  const o = Uo(i);
10490
10490
  this.remainderData = o.remainder, r.samples = o.valid || new Uint8Array();
10491
10491
  } else
@@ -10525,7 +10525,7 @@ class fc {
10525
10525
  len: c.byteLength,
10526
10526
  dts: o,
10527
10527
  pts: o,
10528
- type: Ie.emsg,
10528
+ type: we.emsg,
10529
10529
  duration: l
10530
10530
  });
10531
10531
  }
@@ -10915,7 +10915,7 @@ class pc extends gc {
10915
10915
  a.push(f);
10916
10916
  } else {
10917
10917
  const f = this.getLastNalUnit(e.samples);
10918
- f && (n && o <= 4 - n && f.state && (f.data = f.data.subarray(0, f.data.byteLength - n)), c > 0 && (f.data = Re(f.data, t.subarray(0, c)), f.state = 0));
10918
+ f && (n && o <= 4 - n && f.state && (f.data = f.data.subarray(0, f.data.byteLength - n)), c > 0 && (f.data = _e(f.data, t.subarray(0, c)), f.state = 0));
10919
10919
  }
10920
10920
  o < i ? (u = t[o] & 31, h = o, d = u, r = 0) : r = -1;
10921
10921
  } else
@@ -10931,7 +10931,7 @@ class pc extends gc {
10931
10931
  }
10932
10932
  if (a.length === 0) {
10933
10933
  const f = this.getLastNalUnit(e.samples);
10934
- f && (f.data = Re(f.data, t));
10934
+ f && (f.data = _e(f.data, t));
10935
10935
  }
10936
10936
  return e.naluState = r, a;
10937
10937
  }
@@ -11069,7 +11069,7 @@ class ze {
11069
11069
  let n;
11070
11070
  const a = this._videoTrack, o = this._audioTrack, l = this._id3Track, c = this._txtTrack;
11071
11071
  let u = a.pid, h = a.pesData, d = o.pid, f = l.pid, m = o.pesData, g = l.pesData, y = null, v = this.pmtParsed, T = this._pmtId, x = e.length;
11072
- if (this.remainderData && (e = Re(this.remainderData, e), x = e.length, this.remainderData = null), x < ue && !r)
11072
+ if (this.remainderData && (e = _e(this.remainderData, e), x = e.length, this.remainderData = null), x < ue && !r)
11073
11073
  return this.remainderData = e, {
11074
11074
  audioTrack: o,
11075
11075
  videoTrack: a,
@@ -11079,21 +11079,21 @@ class ze {
11079
11079
  const L = Math.max(0, ze.syncOffset(e));
11080
11080
  x -= (x - L) % ue, x < e.byteLength && !r && (this.remainderData = new Uint8Array(e.buffer, x, e.buffer.byteLength - x));
11081
11081
  let E = 0;
11082
- for (let R = L; R < x; R += ue)
11083
- if (e[R] === 71) {
11084
- const B = !!(e[R + 1] & 64), _ = Ui(e, R), b = (e[R + 3] & 48) >> 4;
11082
+ for (let _ = L; _ < x; _ += ue)
11083
+ if (e[_] === 71) {
11084
+ const B = !!(e[_ + 1] & 64), R = Ui(e, _), b = (e[_ + 3] & 48) >> 4;
11085
11085
  let C;
11086
11086
  if (b > 1) {
11087
- if (C = R + 5 + e[R + 4], C === R + ue)
11087
+ if (C = _ + 5 + e[_ + 4], C === _ + ue)
11088
11088
  continue;
11089
11089
  } else
11090
- C = R + 4;
11091
- switch (_) {
11090
+ C = _ + 4;
11091
+ switch (R) {
11092
11092
  case u:
11093
11093
  B && (h && (n = it(h)) && this.videoParser.parseAVCPES(a, c, n, !1, this._duration), h = {
11094
11094
  data: [],
11095
11095
  size: 0
11096
- }), h && (h.data.push(e.subarray(C, R + ue)), h.size += R + ue - C);
11096
+ }), h && (h.data.push(e.subarray(C, _ + ue)), h.size += _ + ue - C);
11097
11097
  break;
11098
11098
  case d:
11099
11099
  if (B) {
@@ -11114,13 +11114,13 @@ class ze {
11114
11114
  size: 0
11115
11115
  };
11116
11116
  }
11117
- m && (m.data.push(e.subarray(C, R + ue)), m.size += R + ue - C);
11117
+ m && (m.data.push(e.subarray(C, _ + ue)), m.size += _ + ue - C);
11118
11118
  break;
11119
11119
  case f:
11120
11120
  B && (g && (n = it(g)) && this.parseID3PES(l, n), g = {
11121
11121
  data: [],
11122
11122
  size: 0
11123
- }), g && (g.data.push(e.subarray(C, R + ue)), g.size += R + ue - C);
11123
+ }), g && (g.data.push(e.subarray(C, _ + ue)), g.size += _ + ue - C);
11124
11124
  break;
11125
11125
  case 0:
11126
11126
  B && (C += e[C] + 1), T = this._pmtId = vc(e, C);
@@ -11128,26 +11128,26 @@ class ze {
11128
11128
  case T: {
11129
11129
  B && (C += e[C] + 1);
11130
11130
  const P = xc(e, C, this.typeSupported, i);
11131
- u = P.videoPid, u > 0 && (a.pid = u, a.segmentCodec = P.segmentVideoCodec), d = P.audioPid, d > 0 && (o.pid = d, o.segmentCodec = P.segmentAudioCodec), f = P.id3Pid, f > 0 && (l.pid = f), y !== null && !v && (S.warn(`MPEG-TS PMT found at ${R} after unknown PID '${y}'. Backtracking to sync byte @${L} to parse all TS packets.`), y = null, R = L - 188), v = this.pmtParsed = !0;
11131
+ u = P.videoPid, u > 0 && (a.pid = u, a.segmentCodec = P.segmentVideoCodec), d = P.audioPid, d > 0 && (o.pid = d, o.segmentCodec = P.segmentAudioCodec), f = P.id3Pid, f > 0 && (l.pid = f), y !== null && !v && (S.warn(`MPEG-TS PMT found at ${_} after unknown PID '${y}'. Backtracking to sync byte @${L} to parse all TS packets.`), y = null, _ = L - 188), v = this.pmtParsed = !0;
11132
11132
  break;
11133
11133
  }
11134
11134
  case 17:
11135
11135
  case 8191:
11136
11136
  break;
11137
11137
  default:
11138
- y = _;
11138
+ y = R;
11139
11139
  break;
11140
11140
  }
11141
11141
  } else
11142
11142
  E++;
11143
11143
  if (E > 0) {
11144
- const R = new Error(`Found ${E} TS packet/s that do not start with 0x47`);
11144
+ const _ = new Error(`Found ${E} TS packet/s that do not start with 0x47`);
11145
11145
  this.observer.emit(p.ERROR, p.ERROR, {
11146
11146
  type: q.MEDIA_ERROR,
11147
11147
  details: D.FRAG_PARSING_ERROR,
11148
11148
  fatal: !1,
11149
- error: R,
11150
- reason: R.message
11149
+ error: _,
11150
+ reason: _.message
11151
11151
  });
11152
11152
  }
11153
11153
  a.pesData = h, o.pesData = m, l.pesData = g;
@@ -11227,7 +11227,7 @@ class ze {
11227
11227
  this.aacOverFlow = null;
11228
11228
  const h = r.missing, d = r.sample.unit.byteLength;
11229
11229
  if (h === -1)
11230
- n = Re(r.sample.unit, n);
11230
+ n = _e(r.sample.unit, n);
11231
11231
  else {
11232
11232
  const f = d - h;
11233
11233
  r.sample.unit.set(n.subarray(0, h), f), e.samples.push(r.sample), i = r.missing;
@@ -11308,7 +11308,7 @@ class ze {
11308
11308
  return;
11309
11309
  }
11310
11310
  const i = oe({}, t, {
11311
- type: this._videoTrack ? Ie.emsg : Ie.audioId3,
11311
+ type: this._videoTrack ? we.emsg : we.audioId3,
11312
11312
  duration: Number.POSITIVE_INFINITY
11313
11313
  });
11314
11314
  e.samples.push(i);
@@ -11397,7 +11397,7 @@ function it(s) {
11397
11397
  if (!s || s.size === 0)
11398
11398
  return null;
11399
11399
  for (; o[0].length < 19 && o.length > 1; )
11400
- o[0] = Re(o[0], o[1]), o.splice(1, 1);
11400
+ o[0] = _e(o[0], o[1]), o.splice(1, 1);
11401
11401
  if (t = o[0], (t[0] << 16) + (t[1] << 8) + t[2] === 1) {
11402
11402
  if (i = (t[4] << 8) + t[5], i && i > s.size - 6)
11403
11403
  return null;
@@ -12489,7 +12489,7 @@ class A {
12489
12489
  static initSegment(e) {
12490
12490
  A.types || A.init();
12491
12491
  const t = A.moov(e);
12492
- return Re(A.FTYP, t);
12492
+ return _e(A.FTYP, t);
12493
12493
  }
12494
12494
  }
12495
12495
  A.types = void 0;
@@ -12555,14 +12555,14 @@ class Mt {
12555
12555
  const v = e.pid > -1, T = t.pid > -1, x = t.samples.length, L = e.samples.length > 0, E = o && x > 0 || x > 1;
12556
12556
  if ((!v || L) && (!T || E) || this.ISGenerated || o) {
12557
12557
  if (this.ISGenerated) {
12558
- var R, B, _, b;
12558
+ var _, B, R, b;
12559
12559
  const $ = this.videoTrackConfig;
12560
- $ && (t.width !== $.width || t.height !== $.height || ((R = t.pixelRatio) == null ? void 0 : R[0]) !== ((B = $.pixelRatio) == null ? void 0 : B[0]) || ((_ = t.pixelRatio) == null ? void 0 : _[1]) !== ((b = $.pixelRatio) == null ? void 0 : b[1])) && this.resetInitSegment();
12560
+ $ && (t.width !== $.width || t.height !== $.height || ((_ = t.pixelRatio) == null ? void 0 : _[0]) !== ((B = $.pixelRatio) == null ? void 0 : B[0]) || ((R = t.pixelRatio) == null ? void 0 : R[1]) !== ((b = $.pixelRatio) == null ? void 0 : b[1])) && this.resetInitSegment();
12561
12561
  } else
12562
12562
  h = this.generateIS(e, t, n, a);
12563
12563
  const C = this.isVideoContiguous;
12564
12564
  let P = -1, w;
12565
- if (E && (P = Rc(t.samples), !C && this.config.forceKeyFrameOnDiscontinuity))
12565
+ if (E && (P = _c(t.samples), !C && this.config.forceKeyFrameOnDiscontinuity))
12566
12566
  if (m = !0, P > 0) {
12567
12567
  S.warn(`[mp4-remuxer]: Dropped ${P} out of ${x} video samples due to a missing keyframe`);
12568
12568
  const $ = this.getVideoStartPts(t.samples);
@@ -12681,19 +12681,19 @@ class Mt {
12681
12681
  }
12682
12682
  }
12683
12683
  f = Math.max(0, f);
12684
- let E = 0, k = 0, R = f;
12684
+ let E = 0, k = 0, _ = f;
12685
12685
  for (let H = 0; H < l; H++) {
12686
12686
  const M = a[H], Q = M.units, Z = Q.length;
12687
12687
  let ee = 0;
12688
12688
  for (let ae = 0; ae < Z; ae++)
12689
12689
  ee += Q[ae].data.length;
12690
- k += ee, E += Z, M.length = ee, M.dts < R ? (M.dts = R, R += L / 4 | 0 || 1) : R = M.dts, g = Math.min(M.pts, g), y = Math.max(M.pts, y);
12690
+ k += ee, E += Z, M.length = ee, M.dts < _ ? (M.dts = _, _ += L / 4 | 0 || 1) : _ = M.dts, g = Math.min(M.pts, g), y = Math.max(M.pts, y);
12691
12691
  }
12692
12692
  m = a[l - 1].dts;
12693
12693
  const B = k + 4 * E + 8;
12694
- let _;
12694
+ let R;
12695
12695
  try {
12696
- _ = new Uint8Array(B);
12696
+ R = new Uint8Array(B);
12697
12697
  } catch (H) {
12698
12698
  this.observer.emit(p.ERROR, p.ERROR, {
12699
12699
  type: q.MUX_ERROR,
@@ -12705,15 +12705,15 @@ class Mt {
12705
12705
  });
12706
12706
  return;
12707
12707
  }
12708
- const b = new DataView(_.buffer);
12709
- b.setUint32(0, B), _.set(A.types.mdat, 4);
12708
+ const b = new DataView(R.buffer);
12709
+ b.setUint32(0, B), R.set(A.types.mdat, 4);
12710
12710
  let C = !1, P = Number.POSITIVE_INFINITY, w = Number.POSITIVE_INFINITY, $ = Number.NEGATIVE_INFINITY, O = Number.NEGATIVE_INFINITY;
12711
12711
  for (let H = 0; H < l; H++) {
12712
12712
  const M = a[H], Q = M.units;
12713
12713
  let Z = 0;
12714
12714
  for (let ce = 0, fe = Q.length; ce < fe; ce++) {
12715
12715
  const be = Q[ce], ft = be.data, si = be.data.byteLength;
12716
- b.setUint32(h, si), h += 4, _.set(ft, h), h += si, Z += 4 + si;
12716
+ b.setUint32(h, si), h += 4, R.set(ft, h), h += si, Z += 4 + si;
12717
12717
  }
12718
12718
  let ee;
12719
12719
  if (H < l - 1)
@@ -12754,7 +12754,7 @@ class Mt {
12754
12754
  samples: o
12755
12755
  })), F = "video", V = {
12756
12756
  data1: U,
12757
- data2: _,
12757
+ data2: R,
12758
12758
  startPTS: g / n,
12759
12759
  endPTS: (y + d) / n,
12760
12760
  startDTS: f / n,
@@ -12809,39 +12809,39 @@ class Mt {
12809
12809
  H.pts = V, V += u;
12810
12810
  }
12811
12811
  }
12812
- let L = null, E = null, k, R = 0, B = g.length;
12812
+ let L = null, E = null, k, _ = 0, B = g.length;
12813
12813
  for (; B--; )
12814
- R += g[B].unit.byteLength;
12814
+ _ += g[B].unit.byteLength;
12815
12815
  for (let U = 0, F = g.length; U < F; U++) {
12816
12816
  const V = g[U], H = V.unit;
12817
12817
  let M = V.pts;
12818
12818
  if (E !== null) {
12819
12819
  const Z = f[U - 1];
12820
12820
  Z.duration = Math.round((M - E) / l);
12821
- } else if (i && e.segmentCodec === "aac" && (M = v), L = M, R > 0) {
12822
- R += y;
12821
+ } else if (i && e.segmentCodec === "aac" && (M = v), L = M, _ > 0) {
12822
+ _ += y;
12823
12823
  try {
12824
- k = new Uint8Array(R);
12824
+ k = new Uint8Array(_);
12825
12825
  } catch (Z) {
12826
12826
  this.observer.emit(p.ERROR, p.ERROR, {
12827
12827
  type: q.MUX_ERROR,
12828
12828
  details: D.REMUX_ALLOC_ERROR,
12829
12829
  fatal: !1,
12830
12830
  error: Z,
12831
- bytes: R,
12832
- reason: `fail allocating audio mdat ${R}`
12831
+ bytes: _,
12832
+ reason: `fail allocating audio mdat ${_}`
12833
12833
  });
12834
12834
  return;
12835
12835
  }
12836
- d || (new DataView(k.buffer).setUint32(0, R), k.set(A.types.mdat, 4));
12836
+ d || (new DataView(k.buffer).setUint32(0, _), k.set(A.types.mdat, 4));
12837
12837
  } else
12838
12838
  return;
12839
12839
  k.set(H, y);
12840
12840
  const Q = H.byteLength;
12841
12841
  y += Q, f.push(new er(!0, c, Q, 0)), E = M;
12842
12842
  }
12843
- const _ = f.length;
12844
- if (!_)
12843
+ const R = f.length;
12844
+ if (!R)
12845
12845
  return;
12846
12846
  const b = f[f.length - 1];
12847
12847
  this.nextAudioPts = v = E + l * b.duration;
@@ -12859,7 +12859,7 @@ class Mt {
12859
12859
  type: "audio",
12860
12860
  hasAudio: !0,
12861
12861
  hasVideo: !1,
12862
- nb: _
12862
+ nb: R
12863
12863
  };
12864
12864
  return this.isAudioContiguous = !0, O;
12865
12865
  }
@@ -12889,7 +12889,7 @@ function Le(s, e) {
12889
12889
  s += t;
12890
12890
  return s;
12891
12891
  }
12892
- function Rc(s) {
12892
+ function _c(s) {
12893
12893
  for (let e = 0; e < s.length; e++)
12894
12894
  if (s[e].key)
12895
12895
  return e;
@@ -12936,7 +12936,7 @@ class er {
12936
12936
  };
12937
12937
  }
12938
12938
  }
12939
- class _c {
12939
+ class Rc {
12940
12940
  constructor() {
12941
12941
  this.emitInitSegment = !1, this.audioCodec = void 0, this.videoCodec = void 0, this.initData = void 0, this.initPTS = null, this.initTracks = void 0, this.lastEndTime = null;
12942
12942
  }
@@ -13015,7 +13015,7 @@ class _c {
13015
13015
  const L = !!m.audio, E = !!m.video;
13016
13016
  let k = "";
13017
13017
  L && (k += "audio"), E && (k += "video");
13018
- const R = {
13018
+ const _ = {
13019
13019
  data1: d,
13020
13020
  startPTS: T,
13021
13021
  startDTS: T,
@@ -13027,7 +13027,7 @@ class _c {
13027
13027
  nb: 1,
13028
13028
  dropped: 0
13029
13029
  };
13030
- return h.audio = R.type === "audio" ? R : void 0, h.video = R.type !== "audio" ? R : void 0, h.initSegment = f, h.id3 = Vn(i, n, c, c), r.samples.length && (h.text = Kn(r, n, c)), h;
13030
+ return h.audio = _.type === "audio" ? _ : void 0, h.video = _.type !== "audio" ? _ : void 0, h.initSegment = f, h.id3 = Vn(i, n, c, c), r.samples.length && (h.text = Kn(r, n, c)), h;
13031
13031
  }
13032
13032
  }
13033
13033
  function Cc(s, e, t, i) {
@@ -13058,7 +13058,7 @@ try {
13058
13058
  }
13059
13059
  const Nt = [{
13060
13060
  demux: fc,
13061
- remux: _c
13061
+ remux: Rc
13062
13062
  }, {
13063
13063
  demux: ze,
13064
13064
  remux: Mt
@@ -13106,13 +13106,13 @@ class ir {
13106
13106
  if (L && L.method === "AES-128") {
13107
13107
  const B = this.getDecrypter();
13108
13108
  if (B.isSync()) {
13109
- let _ = B.softwareDecrypt(a, L.key.buffer, L.iv.buffer);
13110
- if (i.part > -1 && (_ = B.flush()), !_)
13109
+ let R = B.softwareDecrypt(a, L.key.buffer, L.iv.buffer);
13110
+ if (i.part > -1 && (R = B.flush()), !R)
13111
13111
  return n.executeEnd = Ke(), vi(i);
13112
- a = new Uint8Array(_);
13112
+ a = new Uint8Array(R);
13113
13113
  } else
13114
- return this.decryptionPromise = B.webCryptoDecrypt(a, L.key.buffer, L.iv.buffer).then((_) => {
13115
- const b = this.push(_, null, i);
13114
+ return this.decryptionPromise = B.webCryptoDecrypt(a, L.key.buffer, L.iv.buffer).then((R) => {
13115
+ const b = this.push(R, null, i);
13116
13116
  return this.decryptionPromise = null, b;
13117
13117
  }), this.decryptionPromise;
13118
13118
  }
@@ -13129,8 +13129,8 @@ class ir {
13129
13129
  }), n.executeEnd = Ke(), vi(i);
13130
13130
  }
13131
13131
  (u || h || m || E) && this.resetInitSegment(x, g, y, T, t), (u || m || E) && this.resetInitialTimestamp(v), c || this.resetContiguity();
13132
- const k = this.transmux(a, L, f, d, i), R = this.currentTransmuxState;
13133
- return R.contiguous = !0, R.discontinuity = !1, R.trackSwitch = !1, n.executeEnd = Ke(), k;
13132
+ const k = this.transmux(a, L, f, d, i), _ = this.currentTransmuxState;
13133
+ return _.contiguous = !0, _.discontinuity = !1, _.trackSwitch = !1, n.executeEnd = Ke(), k;
13134
13134
  }
13135
13135
  // Due to data caching, flush calls can produce more than one TransmuxerResult (hence the Array type)
13136
13136
  flush(e) {
@@ -13452,9 +13452,9 @@ class zn {
13452
13452
  c.transmuxing.start = self.performance.now();
13453
13453
  const {
13454
13454
  transmuxer: f
13455
- } = this, m = a ? a.start : n.start, g = n.decryptdata, y = this.frag, v = !(y && n.cc === y.cc), T = !(y && c.level === y.level), x = y ? c.sn - y.sn : -1, L = this.part ? c.part - this.part.index : -1, E = x === 0 && c.id > 1 && c.id === (y == null ? void 0 : y.stats.chunkCount), k = !T && (x === 1 || x === 0 && (L === 1 || E && L <= 0)), R = self.performance.now();
13456
- (T || x || n.stats.parsing.start === 0) && (n.stats.parsing.start = R), a && (L || !k) && (a.stats.parsing.start = R);
13457
- const B = !(y && ((h = n.initSegment) == null ? void 0 : h.url) === ((d = y.initSegment) == null ? void 0 : d.url)), _ = new wc(v, k, l, T, m, B);
13455
+ } = this, m = a ? a.start : n.start, g = n.decryptdata, y = this.frag, v = !(y && n.cc === y.cc), T = !(y && c.level === y.level), x = y ? c.sn - y.sn : -1, L = this.part ? c.part - this.part.index : -1, E = x === 0 && c.id > 1 && c.id === (y == null ? void 0 : y.stats.chunkCount), k = !T && (x === 1 || x === 0 && (L === 1 || E && L <= 0)), _ = self.performance.now();
13456
+ (T || x || n.stats.parsing.start === 0) && (n.stats.parsing.start = _), a && (L || !k) && (a.stats.parsing.start = _);
13457
+ const B = !(y && ((h = n.initSegment) == null ? void 0 : h.url) === ((d = y.initSegment) == null ? void 0 : d.url)), R = new wc(v, k, l, T, m, B);
13458
13458
  if (!k || v || B) {
13459
13459
  S.log(`[transmuxer-interface, ${n.type}]: Starting new transmux session for sn: ${c.sn} p: ${c.part} level: ${c.level} id: ${c.id}
13460
13460
  discontinuity: ${v}
@@ -13472,10 +13472,10 @@ class zn {
13472
13472
  data: e,
13473
13473
  decryptdata: g,
13474
13474
  chunkMeta: c,
13475
- state: _
13475
+ state: R
13476
13476
  }, e instanceof ArrayBuffer ? [e] : []);
13477
13477
  else if (f) {
13478
- const b = f.push(e, g, c, _);
13478
+ const b = f.push(e, g, c, R);
13479
13479
  Bt(b) ? (f.async = !0, b.then((C) => {
13480
13480
  this.handleTransmuxComplete(C);
13481
13481
  }).catch((C) => {
@@ -15608,7 +15608,7 @@ const or = {
15608
15608
  }, jn = function(e) {
15609
15609
  let t = e;
15610
15610
  return or.hasOwnProperty(e) && (t = or[e]), String.fromCharCode(t);
15611
- }, De = 15, Ge = 100, Gc = {
15611
+ }, Ie = 15, Ge = 100, Gc = {
15612
15612
  17: 1,
15613
15613
  18: 3,
15614
15614
  21: 5,
@@ -15793,19 +15793,19 @@ class jc {
15793
15793
  }
15794
15794
  class xi {
15795
15795
  constructor(e) {
15796
- this.rows = [], this.currRow = De - 1, this.nrRollUpRows = null, this.lastOutputScreen = null, this.logger = void 0;
15797
- for (let t = 0; t < De; t++)
15796
+ this.rows = [], this.currRow = Ie - 1, this.nrRollUpRows = null, this.lastOutputScreen = null, this.logger = void 0;
15797
+ for (let t = 0; t < Ie; t++)
15798
15798
  this.rows.push(new jc(e));
15799
15799
  this.logger = e;
15800
15800
  }
15801
15801
  reset() {
15802
- for (let e = 0; e < De; e++)
15802
+ for (let e = 0; e < Ie; e++)
15803
15803
  this.rows[e].clear();
15804
- this.currRow = De - 1;
15804
+ this.currRow = Ie - 1;
15805
15805
  }
15806
15806
  equals(e) {
15807
15807
  let t = !0;
15808
- for (let i = 0; i < De; i++)
15808
+ for (let i = 0; i < Ie; i++)
15809
15809
  if (!this.rows[i].equals(e.rows[i])) {
15810
15810
  t = !1;
15811
15811
  break;
@@ -15813,12 +15813,12 @@ class xi {
15813
15813
  return t;
15814
15814
  }
15815
15815
  copy(e) {
15816
- for (let t = 0; t < De; t++)
15816
+ for (let t = 0; t < Ie; t++)
15817
15817
  this.rows[t].copy(e.rows[t]);
15818
15818
  }
15819
15819
  isEmpty() {
15820
15820
  let e = !0;
15821
- for (let t = 0; t < De; t++)
15821
+ for (let t = 0; t < Ie; t++)
15822
15822
  if (!this.rows[t].isEmpty()) {
15823
15823
  e = !1;
15824
15824
  break;
@@ -15850,7 +15850,7 @@ class xi {
15850
15850
  this.logger.log(2, () => "pacData = " + JSON.stringify(e));
15851
15851
  let t = e.row - 1;
15852
15852
  if (this.nrRollUpRows && t < this.nrRollUpRows - 1 && (t = this.nrRollUpRows - 1), this.nrRollUpRows && this.currRow !== t) {
15853
- for (let o = 0; o < De; o++)
15853
+ for (let o = 0; o < Ie; o++)
15854
15854
  this.rows[o].clear();
15855
15855
  const n = this.currRow + 1 - this.nrRollUpRows, a = this.lastOutputScreen;
15856
15856
  if (a) {
@@ -15900,7 +15900,7 @@ class xi {
15900
15900
  e = e || !1;
15901
15901
  const t = [];
15902
15902
  let i = "", r = -1;
15903
- for (let n = 0; n < De; n++) {
15903
+ for (let n = 0; n < Ie; n++) {
15904
15904
  const a = this.rows[n].getTextString();
15905
15905
  a && (r = n + 1, e ? t.push("Row " + r + ": '" + a + "'") : t.push(a.trim()));
15906
15906
  }
@@ -15913,10 +15913,10 @@ class xi {
15913
15913
  }
15914
15914
  class lr {
15915
15915
  constructor(e, t, i) {
15916
- this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[De - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null, this.logger = i;
15916
+ this.chNr = void 0, this.outputFilter = void 0, this.mode = void 0, this.verbose = void 0, this.displayedMemory = void 0, this.nonDisplayedMemory = void 0, this.lastOutputScreen = void 0, this.currRollUpRow = void 0, this.writeScreen = void 0, this.cueStartTime = void 0, this.logger = void 0, this.chNr = e, this.outputFilter = t, this.mode = null, this.verbose = 0, this.displayedMemory = new xi(i), this.nonDisplayedMemory = new xi(i), this.lastOutputScreen = new xi(i), this.currRollUpRow = this.displayedMemory.rows[Ie - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null, this.logger = i;
15917
15917
  }
15918
15918
  reset() {
15919
- this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[De - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null;
15919
+ this.mode = null, this.displayedMemory.reset(), this.nonDisplayedMemory.reset(), this.lastOutputScreen.reset(), this.outputFilter.reset(), this.currRollUpRow = this.displayedMemory.rows[Ie - 1], this.writeScreen = this.displayedMemory, this.mode = null, this.cueStartTime = null;
15920
15920
  }
15921
15921
  getHandler() {
15922
15922
  return this.outputFilter;
@@ -16201,7 +16201,7 @@ var ms = function() {
16201
16201
  enumerable: !0
16202
16202
  };
16203
16203
  u.hasBeenReset = !1;
16204
- let d = "", f = !1, m = o, g = l, y = c, v = null, T = "", x = !0, L = "auto", E = "start", k = 50, R = "middle", B = 50, _ = "middle";
16204
+ let d = "", f = !1, m = o, g = l, y = c, v = null, T = "", x = !0, L = "auto", E = "start", k = 50, _ = "middle", B = 50, R = "middle";
16205
16205
  Object.defineProperty(u, "id", n({}, h, {
16206
16206
  get: function() {
16207
16207
  return d;
@@ -16295,13 +16295,13 @@ var ms = function() {
16295
16295
  }
16296
16296
  })), Object.defineProperty(u, "positionAlign", n({}, h, {
16297
16297
  get: function() {
16298
- return R;
16298
+ return _;
16299
16299
  },
16300
16300
  set: function(b) {
16301
16301
  const C = r(b);
16302
16302
  if (!C)
16303
16303
  throw new SyntaxError("An invalid or illegal string was specified.");
16304
- R = C, this.hasBeenReset = !0;
16304
+ _ = C, this.hasBeenReset = !0;
16305
16305
  }
16306
16306
  })), Object.defineProperty(u, "size", n({}, h, {
16307
16307
  get: function() {
@@ -16314,13 +16314,13 @@ var ms = function() {
16314
16314
  }
16315
16315
  })), Object.defineProperty(u, "align", n({}, h, {
16316
16316
  get: function() {
16317
- return _;
16317
+ return R;
16318
16318
  },
16319
16319
  set: function(b) {
16320
16320
  const C = r(b);
16321
16321
  if (!C)
16322
16322
  throw new SyntaxError("An invalid or illegal string was specified.");
16323
- _ = C, this.hasBeenReset = !0;
16323
+ R = C, this.hasBeenReset = !0;
16324
16324
  }
16325
16325
  })), u.displayState = void 0;
16326
16326
  }
@@ -17036,7 +17036,7 @@ class lu {
17036
17036
  a.push(e);
17037
17037
  return;
17038
17038
  }
17039
- const l = this.hls, c = (t = i.initSegment) != null && t.data ? Re(i.initSegment.data, new Uint8Array(r)) : r;
17039
+ const l = this.hls, c = (t = i.initSegment) != null && t.data ? _e(i.initSegment.data, new Uint8Array(r)) : r;
17040
17040
  iu(c, this.initPTS[i.cc], this.vttCCs, i.cc, i.start, (u) => {
17041
17041
  this._appendCues(u, i.level), l.trigger(p.SUBTITLE_FRAG_PROCESSED, {
17042
17042
  success: !0,
@@ -17949,7 +17949,7 @@ function ra(s) {
17949
17949
  throw $e(s, vu);
17950
17950
  return s.toString();
17951
17951
  }
17952
- function Ru(s) {
17952
+ function _u(s) {
17953
17953
  return `@${ra(s.getTime() / 1e3)}`;
17954
17954
  }
17955
17955
  function na(s, e) {
@@ -17962,7 +17962,7 @@ function na(s, e) {
17962
17962
  } else
17963
17963
  return Math.round(s * t) / t;
17964
17964
  }
17965
- function _u(s) {
17965
+ function Ru(s) {
17966
17966
  const e = na(s, 3);
17967
17967
  if (Math.floor(Math.abs(e)).toString().length > 12)
17968
17968
  throw $e(s, yu);
@@ -17989,7 +17989,7 @@ function Ki(s) {
17989
17989
  case "number":
17990
17990
  if (!W(s))
17991
17991
  throw $e(s, yr);
17992
- return Number.isInteger(s) ? ra(s) : _u(s);
17992
+ return Number.isInteger(s) ? ra(s) : Ru(s);
17993
17993
  case "string":
17994
17994
  return Du(s);
17995
17995
  case "symbol":
@@ -17998,7 +17998,7 @@ function Ki(s) {
17998
17998
  return bu(s);
17999
17999
  case "object":
18000
18000
  if (s instanceof Date)
18001
- return Ru(s);
18001
+ return _u(s);
18002
18002
  if (s instanceof Uint8Array)
18003
18003
  return Lu(s);
18004
18004
  if (s instanceof sa)
@@ -18375,7 +18375,7 @@ class ju {
18375
18375
  const {
18376
18376
  errorAction: i
18377
18377
  } = t;
18378
- if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags === Ce.MoveAllAlternatesMatchingHost) {
18378
+ if ((i == null ? void 0 : i.action) === me.SendAlternateToPenaltyBox && i.flags === De.MoveAllAlternatesMatchingHost) {
18379
18379
  const r = this.levels;
18380
18380
  let n = this.pathwayPriority, a = this.pathwayId;
18381
18381
  if (t.context) {
@@ -18416,7 +18416,7 @@ class ju {
18416
18416
  return;
18417
18417
  const o = this.hls.nextLoadLevel, l = this.hls.levels[o];
18418
18418
  if (t = this.getLevelsForPathway(a), t.length > 0) {
18419
- this.log(`Setting Pathway to "${a}"`), this.pathwayId = a, Rn(t), this.hls.trigger(p.LEVELS_UPDATED, {
18419
+ this.log(`Setting Pathway to "${a}"`), this.pathwayId = a, _n(t), this.hls.trigger(p.LEVELS_UPDATED, {
18420
18420
  levels: t
18421
18421
  });
18422
18422
  const c = this.hls.levels[o];
@@ -19171,7 +19171,7 @@ function lh(s) {
19171
19171
  const e = s.loader;
19172
19172
  e !== Er && e !== ca ? (S.log("[config]: Custom loader detected, cannot enable progressive streaming"), s.progressive = !1) : Xu() && (s.loader = Er, s.progressive = !0, s.enableSoftwareAES = !0, S.log("[config]: Progressive streaming enabled, using FetchLoader"));
19173
19173
  }
19174
- let Ri;
19174
+ let _i;
19175
19175
  class ch extends ns {
19176
19176
  constructor(e, t) {
19177
19177
  super(e, "[level-controller]"), this._levels = [], this._firstLevel = -1, this._maxAutoLevel = -1, this._startLevel = void 0, this.currentLevel = null, this.currentLevelIndex = -1, this.manualLevelIndex = -1, this.steering = void 0, this.onParsedComplete = void 0, this.steering = t, this._registerListeners();
@@ -19212,7 +19212,7 @@ class ch extends ns {
19212
19212
  audioCodec: m,
19213
19213
  videoCodec: g
19214
19214
  } = u;
19215
- ((h = m) == null ? void 0 : h.indexOf("mp4a.40.34")) !== -1 && (Ri || (Ri = /chrome|firefox/i.test(navigator.userAgent)), Ri && (u.audioCodec = m = void 0)), m && (u.audioCodec = m = Kt(m, i)), ((d = g) == null ? void 0 : d.indexOf("avc1")) === 0 && (g = u.videoCodec = Qo(g));
19215
+ ((h = m) == null ? void 0 : h.indexOf("mp4a.40.34")) !== -1 && (_i || (_i = /chrome|firefox/i.test(navigator.userAgent)), _i && (u.audioCodec = m = void 0)), m && (u.audioCodec = m = Kt(m, i)), ((d = g) == null ? void 0 : d.indexOf("avc1")) === 0 && (g = u.videoCodec = Qo(g));
19216
19216
  const {
19217
19217
  width: y,
19218
19218
  height: v,
@@ -19225,9 +19225,9 @@ class ch extends ns {
19225
19225
  "FRAME-RATE": L,
19226
19226
  "HDCP-LEVEL": E,
19227
19227
  "PATHWAY-ID": k,
19228
- RESOLUTION: R,
19228
+ RESOLUTION: _,
19229
19229
  "VIDEO-RANGE": B
19230
- } = f, b = `${`${k || "."}-`}${u.bitrate}-${R}-${L}-${x}-${B}-${E}`;
19230
+ } = f, b = `${`${k || "."}-`}${u.bitrate}-${_}-${L}-${x}-${B}-${E}`;
19231
19231
  if (n[b])
19232
19232
  if (n[b].uri !== u.url && !u.attrs["PATHWAY-ID"]) {
19233
19233
  const C = a[b] += 1;
@@ -19284,7 +19284,7 @@ class ch extends ns {
19284
19284
  if (m.videoRange !== g.videoRange)
19285
19285
  return Wt.indexOf(m.videoRange) - Wt.indexOf(g.videoRange);
19286
19286
  if (m.videoCodec !== g.videoCodec) {
19287
- const y = _s(m.videoCodec), v = _s(g.videoCodec);
19287
+ const y = Rs(m.videoCodec), v = Rs(g.videoCodec);
19288
19288
  if (y !== v)
19289
19289
  return v - y;
19290
19290
  }
@@ -19470,7 +19470,7 @@ class ch extends ns {
19470
19470
  removeLevel(e) {
19471
19471
  var t;
19472
19472
  const i = this._levels.filter((r, n) => n !== e ? !0 : (this.steering && this.steering.removeLevel(r), r === this.currentLevel && (this.currentLevel = null, this.currentLevelIndex = -1, r.details && r.details.fragments.forEach((a) => a.level = -1)), !1));
19473
- Rn(i), this._levels = i, this.currentLevelIndex > -1 && (t = this.currentLevel) != null && t.details && (this.currentLevelIndex = this.currentLevel.details.fragments[0].level), this.hls.trigger(p.LEVELS_UPDATED, {
19473
+ _n(i), this._levels = i, this.currentLevelIndex > -1 && (t = this.currentLevel) != null && t.details && (this.currentLevelIndex = this.currentLevel.details.fragments[0].level), this.hls.trigger(p.LEVELS_UPDATED, {
19474
19474
  levels: i
19475
19475
  });
19476
19476
  }
@@ -20400,26 +20400,26 @@ class vh extends ls {
20400
20400
  startPTS: L,
20401
20401
  endPTS: E,
20402
20402
  startDTS: k,
20403
- endDTS: R
20403
+ endDTS: _
20404
20404
  } = h;
20405
20405
  if (c)
20406
20406
  c.elementaryStreams[h.type] = {
20407
20407
  startPTS: L,
20408
20408
  endPTS: E,
20409
20409
  startDTS: k,
20410
- endDTS: R
20410
+ endDTS: _
20411
20411
  };
20412
20412
  else if (h.firstKeyFrame && h.independent && a.id === 1 && !x && (this.couldBacktrack = !0), h.dropped && h.independent) {
20413
- const B = this.getMainFwdBufferInfo(), _ = (B ? B.end : this.getLoadPosition()) + this.config.maxBufferHole, b = h.firstKeyFramePTS ? h.firstKeyFramePTS : L;
20414
- if (!T && _ < b - this.config.maxBufferHole && !x) {
20413
+ const B = this.getMainFwdBufferInfo(), R = (B ? B.end : this.getLoadPosition()) + this.config.maxBufferHole, b = h.firstKeyFramePTS ? h.firstKeyFramePTS : L;
20414
+ if (!T && R < b - this.config.maxBufferHole && !x) {
20415
20415
  this.backtrack(l);
20416
20416
  return;
20417
20417
  } else
20418
20418
  x && (l.gap = !0);
20419
- l.setElementaryStreamInfo(h.type, l.start, E, l.start, R, !0);
20419
+ l.setElementaryStreamInfo(h.type, l.start, E, l.start, _, !0);
20420
20420
  } else
20421
20421
  T && L > Ut && (l.gap = !0);
20422
- l.setElementaryStreamInfo(h.type, L, E, k, R), this.backtrackFragment && (this.backtrackFragment = l), this.bufferFragmentData(h, l, c, a, T || x);
20422
+ l.setElementaryStreamInfo(h.type, L, E, k, _), this.backtrackFragment && (this.backtrackFragment = l), this.bufferFragmentData(h, l, c, a, T || x);
20423
20423
  } else if (T || x)
20424
20424
  l.gap = !0;
20425
20425
  else {
@@ -20605,12 +20605,12 @@ class Se {
20605
20605
  y && E.splice(1, 0, y), this.networkControllers = E;
20606
20606
  const k = [c, u, h, d, m, T];
20607
20607
  this.audioTrackController = this.createController(t.audioTrackController, E);
20608
- const R = t.audioStreamController;
20609
- R && E.push(new R(this, T, x)), this.subtitleTrackController = this.createController(t.subtitleTrackController, E);
20608
+ const _ = t.audioStreamController;
20609
+ _ && E.push(new _(this, T, x)), this.subtitleTrackController = this.createController(t.subtitleTrackController, E);
20610
20610
  const B = t.subtitleStreamController;
20611
20611
  B && E.push(new B(this, T, x)), this.createController(t.timelineController, k), x.emeController = this.emeController = this.createController(t.emeController, k), this.cmcdController = this.createController(t.cmcdController, k), this.latencyController = this.createController(cl, k), this.coreComponents = k, E.push(l);
20612
- const _ = l.onErrorOut;
20613
- typeof _ == "function" && this.on(p.ERROR, _, l);
20612
+ const R = l.onErrorOut;
20613
+ typeof R == "function" && this.on(p.ERROR, R, l);
20614
20614
  }
20615
20615
  createController(e, t) {
20616
20616
  if (e) {
@@ -21168,6 +21168,10 @@ const Sh = {
21168
21168
  withOverlay: {
21169
21169
  type: Boolean,
21170
21170
  default: !0
21171
+ },
21172
+ disabled: {
21173
+ type: Boolean,
21174
+ default: !1
21171
21175
  }
21172
21176
  },
21173
21177
  data() {
@@ -21210,7 +21214,8 @@ const Sh = {
21210
21214
  this.scale > this.maxScale ? this.scale = this.maxScale : this.scale < this.minScale && (this.scale = this.minScale);
21211
21215
  },
21212
21216
  handleZoom(s) {
21213
- s.preventDefault();
21217
+ if (s.preventDefault(), this.disabled)
21218
+ return;
21214
21219
  const e = this.$refs.container.getBoundingClientRect(), t = this.$refs.content.getBoundingClientRect();
21215
21220
  if (!e || !t)
21216
21221
  return;
@@ -21226,16 +21231,16 @@ const Sh = {
21226
21231
  this.left < u ? this.left = u : this.left > c && (this.left = c), this.top < h ? this.top = h : this.top > d && (this.top = d), this.updateTransform();
21227
21232
  },
21228
21233
  handleMouseDown(s) {
21229
- this.isZoomed && (this.isPanning = !0, this.panStart = { x: s.clientX, y: s.clientY });
21234
+ !this.isZoomed || this.disabled || (this.isPanning = !0, this.panStart = { x: s.clientX, y: s.clientY });
21230
21235
  },
21231
21236
  handleMouseUp() {
21232
- this.isPanning = !1;
21237
+ this.disabled || (this.isPanning = !1);
21233
21238
  },
21234
21239
  handleMouseLeave() {
21235
- this.isPanning = !1;
21240
+ this.disabled || (this.isPanning = !1);
21236
21241
  },
21237
21242
  handleMouseMove(s) {
21238
- if (!this.isPanning || !this.isZoomed)
21243
+ if (!this.isPanning || !this.isZoomed || this.disabled)
21239
21244
  return;
21240
21245
  const e = s.clientX - this.panStart.x, t = s.clientY - this.panStart.y;
21241
21246
  this.left += e, this.top += t, this.applyBoundsCorrection(), this.panStart = { x: s.clientX, y: s.clientY }, this.updateTransform();
@@ -21275,10 +21280,10 @@ const Sh = {
21275
21280
  s.length === 2 && (this.pinchDistance = this.getPointersDistance(...s));
21276
21281
  },
21277
21282
  handlePointerDown(s) {
21278
- this.ignorePointerEvents || (this.updatePointerEvent(s), this.isPinching = Object.values(this.pointers).length === 2, this.isPinching ? (this.isPanning = !1, this.updatePinchDistance()) : this.handleMouseDown(s));
21283
+ this.ignorePointerEvents || this.disabled || (this.updatePointerEvent(s), this.isPinching = Object.values(this.pointers).length === 2, this.isPinching ? (this.isPanning = !1, this.updatePinchDistance()) : this.handleMouseDown(s));
21279
21284
  },
21280
21285
  handlePointerMove(s) {
21281
- if (!this.ignorePointerEvents)
21286
+ if (!(this.ignorePointerEvents || this.disabled))
21282
21287
  if (this.updatePointerEvent(s), this.isPinching) {
21283
21288
  this.previousPinchDistance = this.pinchDistance, this.updatePinchDistance();
21284
21289
  const e = this.pinchDistance / this.previousPinchDistance;
@@ -21289,15 +21294,15 @@ const Sh = {
21289
21294
  this.handleMouseMove(s);
21290
21295
  },
21291
21296
  handlePointerUp(s) {
21292
- this.ignorePointerEvents || (this.clearPointerEvent(s), this.previousPinchDistance = 0, this.pinchDistance = 0, this.isPanning = !1, this.isPinching = !1);
21297
+ this.ignorePointerEvents || this.disabled || (this.clearPointerEvent(s), this.previousPinchDistance = 0, this.pinchDistance = 0, this.isPanning = !1, this.isPinching = !1);
21293
21298
  }
21294
21299
  }
21295
21300
  };
21296
21301
  var bh = function() {
21297
21302
  var e = this, t = e._self._c;
21298
21303
  return t("div", { ref: "container", staticClass: "e-zoomable e-w-full e-h-full" }, [t("div", { staticClass: "e-w-full e-h-full", class: {
21299
- "e-cursor-grab": e.isZoomed,
21300
- "e-cursor-grabbing": e.isPanning
21304
+ "e-cursor-grab": e.isZoomed && !e.disabled,
21305
+ "e-cursor-grabbing": e.isPanning && !e.disabled
21301
21306
  }, on: { mousewheel: e.handleZoom, mousedown: e.handleMouseDown, mouseup: e.handleMouseUp, mouseleave: e.handleMouseLeave, mousemove: e.handleMouseMove, pointerdown: e.handlePointerDown, pointermove: e.handlePointerMove, pointerup: e.handlePointerUp, pointercancel: e.handlePointerUp, pointerout: e.handlePointerUp, pointerleave: e.handlePointerUp } }, [t("div", { ref: "content", staticClass: "e-zoomable__content e-w-full e-h-full e-transform-0 e-touch-none", style: e.contentStyle }, [e._t("default")], 2), e.withOverlay ? t("div", { staticClass: "e-zoomable__overlay e-absolute e-w-full e-h-full e-bottom-0 e-left-0 e-overflow-hidden" }, [e._t("overlay")], 2) : e._e()])]);
21302
21307
  }, Ah = [], Lh = /* @__PURE__ */ ve(
21303
21308
  Sh,
@@ -21305,12 +21310,12 @@ var bh = function() {
21305
21310
  Ah,
21306
21311
  !1,
21307
21312
  null,
21308
- "59c1a333",
21313
+ "948b8067",
21309
21314
  null,
21310
21315
  null
21311
21316
  );
21312
21317
  const ma = Lh.exports;
21313
- const Rh = {
21318
+ const _h = {
21314
21319
  name: "EVideoPlayerOverlayAnimation",
21315
21320
  props: {
21316
21321
  isPlaying: {
@@ -21319,12 +21324,12 @@ const Rh = {
21319
21324
  }
21320
21325
  }
21321
21326
  };
21322
- var _h = function() {
21327
+ var Rh = function() {
21323
21328
  var e = this, t = e._self._c;
21324
21329
  return t("div", { staticClass: "image-player-overlay d-flex align-center justify-center" }, [t("div", { staticClass: "image-player-overlay__wrapper" }, [e.isPlaying ? t("svg", { attrs: { height: "100%", viewBox: "-1 0 36 36", width: "100%" } }, [t("path", { attrs: { d: "M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z" } })]) : t("svg", { attrs: { height: "100%", viewBox: "0.5 0 36 36", width: "100%" } }, [t("path", { attrs: { d: "M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z" } })])])]);
21325
21330
  }, Ch = [], Dh = /* @__PURE__ */ ve(
21326
- Rh,
21327
21331
  _h,
21332
+ Rh,
21328
21333
  Ch,
21329
21334
  !1,
21330
21335
  null,
@@ -21332,7 +21337,7 @@ var _h = function() {
21332
21337
  null,
21333
21338
  null
21334
21339
  );
21335
- const Ih = Dh.exports, _i = new Intl.NumberFormat(void 0, {
21340
+ const Ih = Dh.exports, Ri = new Intl.NumberFormat(void 0, {
21336
21341
  minimumIntegerDigits: 2
21337
21342
  }), br = [
21338
21343
  "play",
@@ -21348,9 +21353,9 @@ const Ih = Dh.exports, _i = new Intl.NumberFormat(void 0, {
21348
21353
  "error"
21349
21354
  ], Ci = (s) => {
21350
21355
  const e = Math.floor(s % 60), t = Math.floor(s / 60) % 60, i = Math.floor(s / 3600);
21351
- return i === 0 ? `${t}:${_i.format(e)}` : `${i}:${_i.format(
21356
+ return i === 0 ? `${t}:${Ri.format(e)}` : `${i}:${Ri.format(
21352
21357
  t
21353
- )}:${_i.format(e)}`;
21358
+ )}:${Ri.format(e)}`;
21354
21359
  }, wh = {
21355
21360
  name: "VideoPlayer",
21356
21361
  components: {
@@ -21422,6 +21427,14 @@ const Ih = Dh.exports, _i = new Intl.NumberFormat(void 0, {
21422
21427
  isWebRtc: {
21423
21428
  type: Boolean,
21424
21429
  default: !1
21430
+ },
21431
+ loaderColor: {
21432
+ type: String,
21433
+ default: "white"
21434
+ },
21435
+ loaderSize: {
21436
+ type: String,
21437
+ default: "9xl"
21425
21438
  }
21426
21439
  },
21427
21440
  data() {
@@ -21739,7 +21752,7 @@ const Ih = Dh.exports, _i = new Intl.NumberFormat(void 0, {
21739
21752
  };
21740
21753
  var kh = function() {
21741
21754
  var e = this, t = e._self._c;
21742
- return t("div", { ref: "videoContainer", staticClass: "video-container paused", attrs: { "data-volume-level": "high" } }, [e.isZoomable ? t("EZoomable", { attrs: { "ignore-pointer-events": e.zoomableIgnorePointerEvents }, on: { "apply-zoomable-style": function(i) {
21755
+ return t("div", { ref: "videoContainer", staticClass: "video-container paused", attrs: { "data-volume-level": "high" } }, [t("EZoomable", { attrs: { "ignore-pointer-events": e.zoomableIgnorePointerEvents, disabled: !e.isZoomable }, on: { "apply-zoomable-style": function(i) {
21743
21756
  return e.$emit("apply-zoomable-style", i);
21744
21757
  } }, scopedSlots: e._u([{ key: "overlay", fn: function() {
21745
21758
  return [e._t("zoomable-overlay")];
@@ -21749,9 +21762,7 @@ var kh = function() {
21749
21762
  } } })])];
21750
21763
  }), t("video", e._g(e._b({ ref: "player", staticClass: "e-w-full e-h-full e-absolute e-inset-0 e-z-50", attrs: { controls: !1, preload: "auto" }, on: { ended: e.handleEnded, click: e.onContainerClick, loadedmetadata: e.getDuration, timeupdate: e.handleTimeUpdate, loadeddata: e.handleLoading, progress: e.onProgress } }, "video", e.videoOptions, !1), e.videoListeners), [e.isWebRtc ? e._e() : e._l(e.sourceItems, function(i) {
21751
21764
  return t("source", e._g({ key: i.src, attrs: { src: i.src, type: i.type }, on: { error: e.handle404Error } }, e.videoListeners));
21752
- })], 2)], 2) : t("video", e._g(e._b({ ref: "player", staticClass: "e-w-full e-h-full", attrs: { controls: !1, preload: "auto" }, on: { ended: e.handleEnded, click: e.onContainerClick, loadedmetadata: e.getDuration, timeupdate: e.handleTimeUpdate, loadeddata: e.handleLoading, progress: e.onProgress } }, "video", e.videoOptions, !1), e.videoListeners), [e.isWebRtc ? e._e() : e._l(e.sourceItems, function(i) {
21753
- return t("source", e._g({ key: i.src, attrs: { src: i.src, type: i.type }, on: { error: e.handle404Error } }, e.videoListeners));
21754
- })], 2), e.isLoading ? t("div", { staticClass: "spinner-container" }, [t("ESpinner", { attrs: { color: !e.isHls && !e.isWebRtc, size: e.isHls || e.isWebRtc ? "7xl" : "9xl", opacity: "0.6", dark: !0 } })], 1) : e._e(), e._t("default"), e.playPauseAnimation && !e.disablePlayPauseAnimation ? t("EVideoPlayerOverlayAnimation", { attrs: { "is-playing": e.isPlaying } }) : e._e(), e.isError ? t("div", { staticClass: "spinner-container e-gap-3" }, [t("i", { staticClass: "fa-solid fa-video-slash fa-2xl e-align-middle" }), t("span", [e._v("This video file cannot be played.")])]) : e._e(), e._t("controls", function() {
21765
+ })], 2)], 2), e.isLoading ? t("div", { staticClass: "spinner-container" }, [t("ESpinner", { attrs: { color: e.loaderColor, size: e.loaderSize, opacity: "0.6", dark: !0 } })], 1) : e._e(), e._t("default"), e.playPauseAnimation && !e.disablePlayPauseAnimation ? t("EVideoPlayerOverlayAnimation", { attrs: { "is-playing": e.isPlaying } }) : e._e(), e.isError ? t("div", { staticClass: "spinner-container e-gap-3" }, [t("i", { staticClass: "fa-solid fa-video-slash fa-2xl e-align-middle" }), t("span", [e._v("This video file cannot be played.")])]) : e._e(), e._t("controls", function() {
21755
21766
  return [t("div", { class: ["video-controls-container", e.withControls] }, [t("div", { staticClass: "controls" }, [t("button", { ref: "playPauseBtn", staticClass: "play-pause-btn fa-lg fa-solid", class: {
21756
21767
  "fa-play": !e.playing,
21757
21768
  "fa-pause": e.playing
@@ -21759,16 +21770,7 @@ var kh = function() {
21759
21770
  "fa-expand": !e.isFullscreen,
21760
21771
  "fa-compress": e.isFullscreen
21761
21772
  }, on: { click: e.toggleFullscreenMode } })])])];
21762
- }, { controls: {
21763
- isPlaying: e.playing,
21764
- play: e.play,
21765
- currentTime: e.currentTime,
21766
- pause: e.pause,
21767
- videoLength: e.videoLength,
21768
- toggleFullscreenMode: e.toggleFullscreenMode,
21769
- isFullscreen: e.isFullscreen,
21770
- initHls: e.initHls
21771
- } })], 2);
21773
+ }, { play: e.play, pause: e.pause, isPlaying: e.playing, playerInstance: e.player, toggleFullscreen: e.toggleFullscreenMode, currentTime: e.currentTime, videoLength: e.videoLength, isFullscreen: e.isFullscreen })], 2);
21772
21774
  }, Ph = [function() {
21773
21775
  var s = this, e = s._self._c;
21774
21776
  return e("div", { staticClass: "timeline" }, [e("div", { staticClass: "thumb-indicator" })]);
@@ -21778,7 +21780,7 @@ var kh = function() {
21778
21780
  Ph,
21779
21781
  !1,
21780
21782
  null,
21781
- "1c971559",
21783
+ "9e9ffca8",
21782
21784
  null,
21783
21785
  null
21784
21786
  );
@@ -21806,7 +21808,7 @@ const Fh = Oh.exports, Zt = (s) => {
21806
21808
  }, wi = (s) => (e) => {
21807
21809
  const t = I.utcFormat("%M")(e);
21808
21810
  return Number.parseInt(t) % s !== 0;
21809
- }, Rr = (s) => (e) => {
21811
+ }, _r = (s) => (e) => {
21810
21812
  const t = I.utcFormat("%M")(e), i = I.utcFormat("%S")(e);
21811
21813
  return Number.parseInt(t) % s !== 0 && Number.parseInt(i) === 0;
21812
21814
  }, K = {
@@ -21937,12 +21939,12 @@ const Mh = {
21937
21939
  },
21938
21940
  {
21939
21941
  precision: K._20_seconds,
21940
- interval: (Cr = I.utcSecond.every(20)) == null ? void 0 : Cr.filter(Rr(2)),
21942
+ interval: (Cr = I.utcSecond.every(20)) == null ? void 0 : Cr.filter(_r(2)),
21941
21943
  format: Di
21942
21944
  },
21943
21945
  {
21944
21946
  precision: K._30_seconds,
21945
- interval: (Dr = I.utcSecond.every(30)) == null ? void 0 : Dr.filter(Rr(2)),
21947
+ interval: (Dr = I.utcSecond.every(30)) == null ? void 0 : Dr.filter(_r(2)),
21946
21948
  format: Di
21947
21949
  },
21948
21950
  {
@@ -22245,7 +22247,7 @@ const Mh = {
22245
22247
  milestoneDotLine: "e-tl-milestone-dot-line",
22246
22248
  milestoneDotDot: "e-tl-milestone-dot-dot",
22247
22249
  milestoneDotHovered: "e-tl-milestone-dot--hovered"
22248
- }, Bh = we.extend({
22250
+ }, Bh = Re.extend({
22249
22251
  name: "ETimeline",
22250
22252
  directives: {
22251
22253
  resizeObserver: vs
@@ -22481,7 +22483,7 @@ const Hh = Gh.exports, G = {
22481
22483
  transparencyGradientLight: "transparency-gradient-light",
22482
22484
  loadingGradient: "loading-gradient",
22483
22485
  stripedPattern: "stripedPattern"
22484
- }, Vh = we.extend({
22486
+ }, Vh = Re.extend({
22485
22487
  name: "ETimeline",
22486
22488
  directives: {
22487
22489
  resizeObserver: vs
@@ -22748,7 +22750,7 @@ const Hh = Gh.exports, G = {
22748
22750
  },
22749
22751
  lineGraphGroups() {
22750
22752
  return Object.entries(this.filteredEventsGroups).reduce(
22751
- (s, [e, t]) => t.chartType === _e.lineGraph ? { ...s, [e]: t } : s,
22753
+ (s, [e, t]) => t.chartType === Ce.lineGraph ? { ...s, [e]: t } : s,
22752
22754
  {}
22753
22755
  );
22754
22756
  },
@@ -22760,7 +22762,7 @@ const Hh = Gh.exports, G = {
22760
22762
  },
22761
22763
  barGroups() {
22762
22764
  return Object.entries(this.filteredEventsGroups).reduce(
22763
- (s, [e, t]) => !t.chartType || [_e.bars, _e.dots].includes(
22765
+ (s, [e, t]) => !t.chartType || [Ce.bars, Ce.dots].includes(
22764
22766
  t.chartType
22765
22767
  ) ? { ...s, [e]: t } : s,
22766
22768
  {}
@@ -22768,13 +22770,13 @@ const Hh = Gh.exports, G = {
22768
22770
  },
22769
22771
  barChartGroups() {
22770
22772
  return Object.entries(this.filteredEventsGroups).reduce(
22771
- (s, [e, t]) => t.chartType === _e.barChart ? { ...s, [e]: t } : s,
22773
+ (s, [e, t]) => t.chartType === Ce.barChart ? { ...s, [e]: t } : s,
22772
22774
  {}
22773
22775
  );
22774
22776
  },
22775
22777
  milestonesGroups() {
22776
22778
  return Object.entries(this.filteredEventsGroups).reduce(
22777
- (s, [e, t]) => t.chartType === _e.milestones ? { ...s, [e]: t } : s,
22779
+ (s, [e, t]) => t.chartType === Ce.milestones ? { ...s, [e]: t } : s,
22778
22780
  {}
22779
22781
  );
22780
22782
  },
@@ -22943,7 +22945,7 @@ const Hh = Gh.exports, G = {
22943
22945
  Object.entries(this.filteredEventsGroups).forEach(
22944
22946
  ([t, i]) => {
22945
22947
  const { color: r, chartType: n } = i, a = s.append("linearGradient").attr("id", `${He.loadingGradient}-${t}`).attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
22946
- a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [_e.lineGraph, _e.barChart].includes(
22948
+ a.append("stop").attr("offset", "0%").attr("stop-color", r).attr("stop-opacity", "0"), a.append("stop").attr("offset", "50%").attr("stop-color", r).attr("stop-opacity", "0.6"), a.append("stop").attr("offset", "100%").attr("stop-color", r).attr("stop-opacity", "0"), [Ce.lineGraph, Ce.barChart].includes(
22947
22949
  n
22948
22950
  ) && [
22949
22951
  {
@@ -23552,8 +23554,8 @@ const Hh = Gh.exports, G = {
23552
23554
  } = e;
23553
23555
  let m = this.getBarGroupYPosition(s, n);
23554
23556
  const y = [
23555
- _e.bars,
23556
- _e.dots,
23557
+ Ce.bars,
23558
+ Ce.dots,
23557
23559
  void 0
23558
23560
  ].includes(f) ? this.getBarGroupHeight(e) : d;
23559
23561
  t && (m = this.getMilestoneGroupYPosition(s)), this.drawProgressIndicator({
@@ -23597,7 +23599,7 @@ const Hh = Gh.exports, G = {
23597
23599
  type: s,
23598
23600
  eventsGroup: e,
23599
23601
  bottom: e.bottom,
23600
- dots: e.chartType === _e.dots,
23602
+ dots: e.chartType === Ce.dots,
23601
23603
  dotsSize: e.dotsSize || 3
23602
23604
  })
23603
23605
  );
@@ -24021,7 +24023,7 @@ var qh = function() {
24021
24023
  null,
24022
24024
  null
24023
24025
  );
24024
- const Qh = Zh.exports, Jh = we.extend({
24026
+ const Qh = Zh.exports, Jh = Re.extend({
24025
24027
  name: "EHeatmapBar",
24026
24028
  props: {
24027
24029
  items: {
@@ -24098,7 +24100,7 @@ var ed = function() {
24098
24100
  null,
24099
24101
  null
24100
24102
  );
24101
- const ga = id.exports, sd = we.extend({
24103
+ const ga = id.exports, sd = Re.extend({
24102
24104
  name: "EHoursHeatmap",
24103
24105
  components: {
24104
24106
  EHeatmapBar: ga
@@ -24171,7 +24173,98 @@ var rd = function() {
24171
24173
  null,
24172
24174
  null
24173
24175
  );
24174
- const od = ad.exports, ld = we.extend({
24176
+ const od = ad.exports, ld = Re.extend({
24177
+ name: "EReadMore",
24178
+ props: {
24179
+ content: {
24180
+ type: [Array, String],
24181
+ default: () => null
24182
+ },
24183
+ maxLength: {
24184
+ type: Number,
24185
+ default: () => 2
24186
+ },
24187
+ showAll: {
24188
+ type: Boolean,
24189
+ default: !1
24190
+ },
24191
+ expandText: {
24192
+ type: String,
24193
+ default: "see more..."
24194
+ },
24195
+ collapseText: {
24196
+ type: String,
24197
+ default: "less"
24198
+ },
24199
+ moreTextWithPlaceholder: {
24200
+ type: String,
24201
+ default: "and {count} more..."
24202
+ }
24203
+ },
24204
+ data() {
24205
+ return {
24206
+ showAllContent: !1
24207
+ };
24208
+ },
24209
+ computed: {
24210
+ hiddenContentLength() {
24211
+ var s, e;
24212
+ return Math.max(((e = (s = this.content) == null ? void 0 : s.length) != null ? e : 0) - this.maxLength, 0);
24213
+ },
24214
+ isArrayContent() {
24215
+ return Array.isArray(this.content);
24216
+ },
24217
+ isHiddenTextContent() {
24218
+ return this.hiddenContentLength > 0 && !this.showAllContent && !this.isArrayContent;
24219
+ },
24220
+ isHiddenArrayContent() {
24221
+ return this.hiddenContentLength > 0 && !this.showAllContent && this.isArrayContent;
24222
+ },
24223
+ isContentExpanded() {
24224
+ var s;
24225
+ return this.showAllContent && ((s = this.content) == null ? void 0 : s.length) > 0;
24226
+ },
24227
+ computedMoreText() {
24228
+ return this.moreTextWithPlaceholder.replace(
24229
+ "{count}",
24230
+ this.hiddenContentLength
24231
+ );
24232
+ }
24233
+ },
24234
+ mounted() {
24235
+ this.showAllContent = this.showAll;
24236
+ },
24237
+ methods: {
24238
+ displayContent() {
24239
+ return this.isArrayContent ? this.displayArrayContent() : this.displayTextContent();
24240
+ },
24241
+ displayArrayContent() {
24242
+ var s, e;
24243
+ return ((s = this.content) == null ? void 0 : s.length) > this.maxLength && this.showAllContent === !1 ? this.content.slice(0, this.maxLength).join(", ") : ((e = this.content) == null ? void 0 : e.length) > -1 ? this.content.join(", ") : "";
24244
+ },
24245
+ displayTextContent() {
24246
+ var s, e;
24247
+ return ((s = this.content) == null ? void 0 : s.length) > this.maxLength && this.showAllContent === !1 ? this.content.substr(0, this.maxLength) : ((e = this.content) == null ? void 0 : e.length) > -1 ? this.content : "";
24248
+ },
24249
+ toggleContentExpansion() {
24250
+ this.showAllContent = !this.showAllContent;
24251
+ }
24252
+ }
24253
+ });
24254
+ var cd = function() {
24255
+ var e = this, t = e._self._c;
24256
+ return e._self._setupProxy, t("span", { staticClass: "e-read-more" }, [t("span", { staticClass: "e-read-more__content mr-1", style: { "white-space": e.showAllContent ? "initial" : "nowrap" } }, [e._v(" " + e._s(e.displayContent()) + " ")]), e.isHiddenArrayContent ? t("span", { staticClass: "e-cursor-pointer e-text-primary", on: { click: e.toggleContentExpansion } }, [e._v(" " + e._s(e.computedMoreText) + " ")]) : e.isHiddenTextContent ? t("span", { staticClass: "e-cursor-pointer e-text-primary", on: { click: e.toggleContentExpansion } }, [e._v(" " + e._s(e.expandText) + " ")]) : e._e(), e.isContentExpanded ? t("span", { staticClass: "e-cursor-pointer e-text-primary", on: { click: e.toggleContentExpansion } }, [e._v(" " + e._s(e.collapseText) + " ")]) : e._e()]);
24257
+ }, ud = [], hd = /* @__PURE__ */ ve(
24258
+ ld,
24259
+ cd,
24260
+ ud,
24261
+ !1,
24262
+ null,
24263
+ null,
24264
+ null,
24265
+ null
24266
+ );
24267
+ const dd = hd.exports, fd = Re.extend({
24175
24268
  name: "EToggleSwitch",
24176
24269
  props: {
24177
24270
  options: {
@@ -24254,7 +24347,7 @@ const od = ad.exports, ld = we.extend({
24254
24347
  }
24255
24348
  }
24256
24349
  });
24257
- var cd = function() {
24350
+ var md = function() {
24258
24351
  var e = this, t = e._self._c;
24259
24352
  return t("div", { class: e.containerClasses }, [t("input", { directives: [{ name: "model", rawName: "v-model", value: e.value, expression: "value" }], staticClass: "e-hidden", attrs: { id: "toggle", type: "checkbox" }, domProps: { checked: Array.isArray(e.value) ? e._i(e.value, null) > -1 : e.value }, on: { change: function(i) {
24260
24353
  var r = e.value, n = i.target, a = !!n.checked;
@@ -24268,17 +24361,17 @@ var cd = function() {
24268
24361
  return e.handleClick(i.value);
24269
24362
  } } }, [t("span", { class: e.textClasses }, [e._v(e._s(i.title))])]);
24270
24363
  })], 2);
24271
- }, ud = [], hd = /* @__PURE__ */ ve(
24272
- ld,
24273
- cd,
24274
- ud,
24364
+ }, gd = [], pd = /* @__PURE__ */ ve(
24365
+ fd,
24366
+ md,
24367
+ gd,
24275
24368
  !1,
24276
24369
  null,
24277
24370
  null,
24278
24371
  null,
24279
24372
  null
24280
24373
  );
24281
- const dd = hd.exports, _r = {
24374
+ const yd = pd.exports, Rr = {
24282
24375
  EAvatar: La,
24283
24376
  EBadge: Mr,
24284
24377
  EIcon: Ua,
@@ -24290,33 +24383,37 @@ const dd = hd.exports, _r = {
24290
24383
  EVideoEmbed: Qh,
24291
24384
  EHeatmapBar: ga,
24292
24385
  EHoursHeatmap: od,
24293
- EToggleSwitch: dd,
24386
+ EReadMore: dd,
24387
+ EToggleSwitch: yd,
24294
24388
  EZoomable: ma
24295
- }, Sd = {
24389
+ }, Rd = {
24296
24390
  install(s) {
24297
- Object.keys(_r).forEach((e) => {
24298
- s.component(e, _r[e]);
24391
+ Object.keys(Rr).forEach((e) => {
24392
+ s.component(e, Rr[e]);
24299
24393
  }), Nh.forEach(({ name: e, definition: t }) => {
24300
24394
  s.directive(e, t);
24301
24395
  });
24302
24396
  }
24303
24397
  };
24304
24398
  export {
24305
- pd as AvatarSizes,
24306
- vd as BadgeColors,
24307
- gd as BadgeSizes,
24399
+ Ed as AvatarSizes,
24400
+ bd as BadgeColors,
24401
+ Td as BadgeSizes,
24308
24402
  ge as BaseColor,
24309
24403
  Oa as Colors,
24310
24404
  Nh as DirectivesMap,
24311
24405
  La as EAvatar,
24312
24406
  Mr as EBadge,
24313
24407
  eo as ECol,
24408
+ ga as EHeatmapBar,
24409
+ od as EHoursHeatmap,
24314
24410
  Ua as EIcon,
24411
+ dd as EReadMore,
24315
24412
  qa as ERow,
24316
24413
  sn as ESpinner,
24317
24414
  Yh as ETimeline,
24318
- dd as EToggleSwitch,
24319
- xd as EVENTS,
24415
+ yd as EToggleSwitch,
24416
+ Ad as EVENTS,
24320
24417
  Qh as EVideoEmbed,
24321
24418
  Fh as EVideoPlayer,
24322
24419
  ma as EZoomable,
@@ -24326,12 +24423,12 @@ export {
24326
24423
  z as Size,
24327
24424
  Pa as TextSizes,
24328
24425
  kt as TimelineAxis,
24329
- _e as TimelineChartType,
24426
+ Ce as TimelineChartType,
24330
24427
  Pt as TimelineIntervalChangeTrigger,
24331
- yd as ToggleSwitchSizes,
24332
- _r as components,
24428
+ Sd as ToggleSwitchSizes,
24429
+ Rr as components,
24333
24430
  Eh as debounce,
24334
- Sd as default,
24431
+ Rd as default,
24335
24432
  Th as exitFullScreen,
24336
24433
  tn as fullConfig,
24337
24434
  fa as isFullScreen,